/*
Theme Name: 和泉工業株式会社
Description: 和泉工業株式会社の公式WordPressテーマ。宮崎県都城市を拠点とする建設会社のコーポレートサイト。
Version: 1.0
Author: 和泉工業株式会社
*/

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* カスタムプロパティ */
:root {
  --primary: hsl(215, 80%, 30%);
  --primary-foreground: hsl(0, 0%, 98%);
  --primary-light: hsl(215, 70%, 90%);
  --construction-yellow: hsl(45, 100%, 50%);
  --construction-dark: hsl(215, 30%, 20%);
  --construction-gray: hsl(210, 10%, 95%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222.2, 84%, 4.9%);
  --muted-foreground: hsl(215.4, 16.3%, 46.9%);
  --border: hsl(214.3, 31.8%, 91.4%);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --container-padding: 1rem;
  --container-max-width: 1200px;
}

/* ベーススタイル */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* メインコンテンツエリア */
.main-content {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.content-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* 採用ページ専用スタイル */
.recruitment-page {
  background-color: var(--background);
}

/* ヒーローセクション */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* 背景画像が設定されていない場合のデフォルトスタイルは上記のまま */
/* 背景画像が設定されている場合は、functions.phpで動的にCSSが追加される */

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-title .highlight {
  color: var(--construction-yellow);
  background: linear-gradient(45deg, var(--construction-yellow), hsl(45, 100%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.hero-cta .cta-button {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
}

.hero-image {
  display: none;
}

/* セクション共通 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--construction-yellow), hsl(45, 100%, 60%));
  border-radius: 2px;
}

/* ボタンスタイル */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  min-width: 200px; /* 最小幅を設定 */
  text-align: center;
}

.cta-button.primary {
  background: linear-gradient(135deg, var(--construction-yellow), hsl(45, 100%, 60%));
  color: var(--construction-dark);
}

.cta-button.primary:hover {
  background: var(--construction-yellow);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.cta-button.secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.cta-button.secondary:hover {
  background: var(--primary);
  color: white;
}

.cta-button.large {
  padding: 1rem 2rem;
  font-size: 1rem;
  min-width: 250px; /* ラージボタンはより大きな最小幅 */
}

/* 課題提起セクション */
.problems-section {
  padding: 4rem 0;
  background-color: var(--construction-gray);
}

.problems-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.problem-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.problem-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
}

.problems-conclusion {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 2rem;
}

/* 5つの価値セクション */
.values-section {
  padding: 4rem 0;
  background: white;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.value-item {
  position: relative;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.value-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.value-number {
  position: absolute;
  top: -15px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--construction-yellow), hsl(45, 100%, 60%));
  color: var(--construction-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
}

.value-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.value-item p {
  line-height: 1.6;
  color: var(--foreground);
}

/* 18の未来セクション */
.future-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-light), white);
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.future-item {
  background: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.future-item:hover {
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

/* 信頼と実績セクション */
.trust-section {
  padding: 4rem 0;
  background: white;
}

.president-message,
.employee-voices,
.achievements {
  margin-bottom: 3rem;
}

.president-message h3,
.employee-voices h3,
.achievements h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.president-message blockquote {
  background: var(--construction-gray);
  padding: 2rem;
  border-radius: 12px;
  border-left: 4px solid var(--construction-yellow);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--foreground);
}

.voices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.voice-item {
  background: white;
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.voice-item p {
  font-style: italic;
  line-height: 1.6;
  color: var(--foreground);
}

.achievements p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--foreground);
}

/* 募集要項セクション */
.recruitment-details {
  padding: 4rem 0;
  background: var(--construction-gray);
}

.recruitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.requirement-section,
.job-details {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.requirement-section h3,
.job-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.requirement-section ul,
.job-details ul {
  list-style: none;
  padding: 0;
}

.requirement-section li,
.job-details li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding-left: 1.5rem;
}

.requirement-section li:before,
.job-details li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--construction-yellow);
  font-weight: bold;
}

.requirement-section li:last-child,
.job-details li:last-child {
  border-bottom: none;
}

/* 応募プロセス */
.application-process {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.application-process h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--construction-gray);
  border-radius: 8px;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), hsl(215, 70%, 40%));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.step-content p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* 最終CTA */
.final-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary), hsl(215, 70%, 40%));
  color: white;
  text-align: center;
}

.final-cta h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .cta-button {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
}

/* レスポンシブデザイン */
@media (min-width: 640px) {
  .problems-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .future-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .hero-image {
    display: block;
  }
  
  .hero-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .recruitment-grid {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .future-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .voices-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* アクセシビリティ対応 */
@media (prefers-reduced-motion: reduce) {
  .value-item,
  .future-item,
  .cta-button {
    transition: none;
  }
  
  .value-item:hover,
  .cta-button:hover {
    transform: none;
  }
}

/* ヘッダー */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
}

.logo-icon {
  background-color: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 4px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
}

/* カスタムロゴスタイル */
.custom-logo-header,
.custom-logo-mobile,
.custom-logo-footer {
  display: block;
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.logo-icon .custom-logo-header {
  max-width: 100%;
  max-height: 32px;
}

.footer-logo-icon .custom-logo-footer {
  max-width: 100%;
  max-height: 28px;
}

.mobile-menu-header .logo-icon .custom-logo-mobile {
  max-width: 100%;
  max-height: 32px;
}

/* ロゴがない場合のSVGアイコンスタイル */
.logo-icon svg,
.footer-logo-icon svg {
  transition: all 0.3s ease;
}

.logo:hover .logo-icon {
  background-color: white;
  border-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--construction-yellow);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.desktop-contact {
  display: none;
}

.contact-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.contact-btn:hover {
  background: var(--primary);
  box-shadow: var(--shadow-hover);
}

.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--construction-gray);
}

.close-icon {
  display: none;
}

.mobile-menu-btn.active .menu-icon {
  display: none;
}

.mobile-menu-btn.active .close-icon {
  display: block;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background-color: white;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.mobile-menu-header .logo-icon {
  background-color: white;
  border: 1px solid white;
}

.mobile-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.mobile-close-btn:hover {
  background-color: var(--construction-gray);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mobile-contact-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.mobile-contact-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--primary);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.mobile-call-btn:hover {
  background: var(--primary);
  box-shadow: var(--shadow-hover);
}

/* フッター */
.footer {
  border-top: 1px solid var(--border);
  background-color: var(--construction-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-company {
  text-align: left;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  background: white;
  border: 1px solid white;
  border-radius: 6px;
  padding: 4px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

.footer-description {
  font-size: 0.875rem;
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.footer-contact-item svg {
  color: var(--construction-yellow);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-contact-item p {
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer-services {
  text-align: left;
}

.footer-services h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-flex;
  flex-direction: column;
}

.footer-underline {
  height: 2px;
  background-color: var(--construction-yellow);
  width: 3rem;
  margin-top: 0.5rem;
}

.footer-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  list-style: none;
}

.footer-services-list li {
  font-size: 0.875rem;
  color: #d1d5db;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: left;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* レスポンシブデザイン */
@media (max-width: 640px) {
  .logo-icon .custom-logo-header {
    max-height: 28px;
  }

  .mobile-menu-header .logo-icon .custom-logo-mobile {
    max-height: 28px;
  }

  .footer-logo-icon .custom-logo-footer {
    max-height: 24px;
  }

  .hero-cta .cta-button,
  .cta-buttons .cta-button {
    flex: 1 1 100%;
    min-width: 100%;
    max-width: 100%;
  }
  
  .cta-button {
    min-width: 100%;
  }
  
  .cta-button.large {
    min-width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .hero-cta .cta-button {
    min-width: 200px;
    max-width: 250px;
  }
  
  .cta-buttons .cta-button {
    min-width: 220px;
    max-width: 270px;
  }
}

@media (min-width: 768px) {
  :root {
    --container-padding: 2rem;
  }

  .desktop-nav {
    display: flex;
  }

  .desktop-contact {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .logo-icon .custom-logo-header {
    max-height: 36px;
  }

  .footer-logo-icon .custom-logo-footer {
    max-height: 32px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スムーススクロール */
html {
  scroll-behavior: smooth;
}

/* フォーカス状態 */
button:focus,
a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ユーティリティクラス */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
