/* ============================================================
   株式会社タオタオ コーポレートサイト ver2 CSS
   デザインシステム: BizReach LP ベース
   カラー: #051F32 (Navy) / #ffffff / #f8f9fa
   シグネチャー: 角丸ボタン (6px)、ソフトドロップシャドウ、グラデーション
   ============================================================ */

/* --- CSS変数 --- */
:root {
  --dark-bg:      #051F32;
  --dark-bg-end:  #0a3a5c;
  --white-bg:     #ffffff;
  --light-bg:     #f8f9fa;
  --btn-bg:       #051F32;
  --text-dark:    #333333;
  --text-light:   #ffffff;
  --text-muted:   rgba(255, 255, 255, 0.7);
  --text-sub:     #666666;
  --accent:       #051F32;
  --line-subtle:  #e0e0e0;

  /* シャドウ（BizReach: ソフトドロップ、ほぼ真下） */
  --shadow-natural: 1px 2px 20.4px rgba(178, 178, 178, 0.25);

  /* ボタン・カード角丸（BizReach: 6px） */
  --btn-radius: 6px;

  /* トランジション速度（BizReach: 0.3s） */
  --transition-speed: 0.3s;

  /* ベージュグラデーション（BizReach: ショーケースセクション用） */
  --beige-start: #e8dfd1;
  --beige-end:   #c9b79b;

  --contents-width: 1000px;
  --header-height:  64px;
  --header-height-sp: 56px;

  /* スペーシング（WordPress 7段階スケール準拠） */
  --sp-20: 0.44rem;   /*  7px */
  --sp-30: 0.67rem;   /* 11px */
  --sp-40: 1rem;      /* 16px */
  --sp-50: 1.5rem;    /* 24px */
  --sp-60: 2.25rem;   /* 36px */
  --sp-70: 3.38rem;   /* 54px */
  --sp-80: 5.06rem;   /* 81px */
}

/* --- リセット・ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans JP', YuGothic, "Yu Gothic", -apple-system, BlinkMacSystemFont,
               'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--dark-bg);
  text-decoration: none;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--white-bg);
  z-index: 100;
}

.site-header.scrolled {
  box-shadow: var(--shadow-natural);
}

.header-inner {
  max-width: var(--contents-width);
  margin: 0 auto;
  padding: 0 var(--sp-50);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

/* ロゴ */
.header-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-bg);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ナビゲーション */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5em;
  list-style: none;
}

.header-nav a {
  font-size: 13px;
  color: var(--dark-bg);
  text-decoration: none;
  padding: 8px 12px;
  letter-spacing: 0.03em;
}

.header-nav a:hover {
  color: var(--btn-bg);
}

/* ヘッダーCTAボタン */
.header-cta {
  background-color: var(--btn-bg);
  color: var(--text-light) !important;
  padding: calc(0.667em + 2px) calc(1.333em + 2px);
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-bg);
  font-size: 1.125em;
  line-height: 1.0;
  white-space: nowrap;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.header-cta:hover {
  background-color: var(--white-bg);
  color: var(--btn-bg) !important;
}

/* ハンバーガーメニューボタン */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark-bg);
  transition: all 0.3s ease;
}

.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--white-bg);
  box-shadow: var(--shadow-natural);
  z-index: 99;
  padding: var(--sp-40) 0;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu ul li a {
  display: block;
  padding: 14px var(--sp-50);
  font-size: 15px;
  color: var(--dark-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu ul li:last-child a {
  border-bottom: none;
  color: var(--btn-bg);
  font-weight: 700;
}

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  padding: var(--sp-80) 0;
}

.section-inner {
  max-width: var(--contents-width);
  margin: 0 auto;
  padding: 0 var(--sp-50);
}

/* セクション背景色 */
.section--dark  { background: linear-gradient(var(--dark-bg), var(--dark-bg-end));  }
.section--white { background-color: var(--white-bg); }
.section--light { background-color: var(--light-bg); }

/* セクション個別スペーシング（均一性を崩す） */
#problems  { padding: var(--sp-70) 0; position: relative; padding-bottom: calc(var(--sp-70) + 30px); }

/* セクション間ウェーブ区切り（BizReach: 対角区切り） */
#problems::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--light-bg);
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  z-index: 1;
}
#reasons   { padding: var(--sp-70) 0; background: linear-gradient(var(--beige-start), var(--beige-end)); }
#flow      { padding: var(--sp-80) 0; }
#company   { padding: var(--sp-60) 0; }

/* セクション見出し */
.section-heading {
  margin-bottom: var(--sp-70);
}

.section-heading__ja {
  display: block;
  font-size: clamp(24px, 3.7vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: var(--sp-20);
}

.section-heading__en {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ダークセクション内の見出し */
.section--dark .section-heading__ja {
  color: var(--text-light);
}

.section--dark .section-heading__en {
  color: var(--text-muted);
}

/* ============================================================
   ヒーロー（ver1準拠: 左寄せ・リッチグラデーション）
   ============================================================ */
#hero {
  position: relative;
  padding-top: var(--header-height);
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #051F32 0%, #0a3a5c 40%, #1565a0 75%, #2196f3 100%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(33,150,243,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(5,31,50,0.6) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 120px 48px 100px;
  text-align: left;
}

.hero-label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-desc {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  margin-bottom: 44px;
  max-width: 600px;
}

/* ヒーローボタン */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: all var(--transition-speed) ease;
  border: none;
}

.hero-btn--primary {
  background-color: #ffffff;
  color: #051F32;
}

.hero-btn--primary:hover {
  background-color: #f0f4f8;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-btn--outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.5);
}

.hero-btn--outline:hover {
  border-color: #ffffff;
  background-color: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   事業概要 (About) — テキスト左 + 画像右の2カラム
   ============================================================ */
.about-columns {
  display: flex;
  align-items: center;
  gap: var(--sp-70);
}

.about-columns__text {
  flex: 1;
}

.about-columns__image {
  flex-shrink: 0;
  width: 380px;
  max-width: 40%;
}

.about-columns__image img {
  width: 100%;
  height: auto;
  border-radius: var(--btn-radius);
}

#about .about-body {
  font-size: 16px;
  line-height: 2;
  color: var(--text-sub);
}

.about-cta {
  margin-top: var(--sp-60);
}

/* 画像プレースホルダー共通 */
.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  border: 2px dashed #adb5bd;
  border-radius: var(--btn-radius);
  color: #868e96;
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
  padding: var(--sp-40);
  aspect-ratio: 4 / 3;
}

/* ============================================================
   よくあるお悩み (Problems)
   ============================================================ */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-50);
}

.problem-card {
  background-color: var(--white-bg);
  padding: var(--sp-60) var(--sp-50);
  box-shadow: var(--shadow-natural);
  border-radius: var(--btn-radius);
}

.problem-card__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: var(--sp-40);
  line-height: 1;
}

.problem-card__icon-img {
  width: 60px;
  height: 60px;
  margin-bottom: var(--sp-40);
}

.problem-card__icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* アイコンプレースホルダー */
.icon-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e9ecef;
  border: 2px dashed #adb5bd;
  border-radius: 50%;
  color: #868e96;
  font-size: 20px;
  font-weight: 700;
}

.problem-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-30);
  line-height: 1.5;
}

.problem-card__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* 旧 Reasons スタイル (.reasons-list, .reason-item, .reasons-grid, .reason-card) は
   .reasons-showcase 移行により削除済み */

/* ============================================================
   選ばれる理由 (Reasons) — Showcase横長カード + 画像
   BizReach Showcase Differentiator Card パターン
   ============================================================ */
.reasons-showcase {
  display: flex;
  flex-direction: column;
  gap: var(--sp-50);
}

.showcase-card {
  display: flex;
  align-items: center;
  gap: var(--sp-60);
  background-color: var(--white-bg);
  padding: var(--sp-70) var(--sp-60);
  box-shadow: var(--shadow-natural);
  border-radius: var(--btn-radius);
}

/* 偶数カード: 左右反転 */
.showcase-card--reverse {
  flex-direction: row-reverse;
}

.showcase-card__body {
  flex: 1;
}

.showcase-card__num {
  display: block;
  font-size: 48px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  margin-bottom: var(--sp-40);
}

.showcase-card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-40);
  line-height: 1.5;
}

.showcase-card__accent {
  color: var(--dark-bg);
  border-bottom: 2px solid var(--dark-bg);
  padding-bottom: 1px;
}

.showcase-card__desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.8;
}

.showcase-card__image {
  flex-shrink: 0;
  width: 300px;
}

.showcase-card__image img {
  width: 100%;
  height: auto;
  border-radius: var(--btn-radius);
}

/* ============================================================
   ご利用の流れ (Flow)
   ============================================================ */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-40);
  align-items: start;
  position: relative;
}

/* ステップ間の矢印（疑似要素） */
.flow-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(25% - 4px);
  right: calc(25% - 4px);
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, #ccc 15%,
    #ccc 85%, transparent 100%
  );
  z-index: 0;
}

.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.flow-step__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--dark-bg);
  color: var(--text-light);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin: 0 auto var(--sp-50);
}

.flow-step__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--sp-30);
  line-height: 1.4;
}

.flow-step__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ============================================================
   会社概要 (Company)
   ============================================================ */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table tr {
  border-bottom: 1px solid var(--line-subtle);
}

.company-table tr:first-child {
  border-top: 1px solid var(--line-subtle);
}

.company-table th,
.company-table td {
  padding: var(--sp-50) var(--sp-60);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 180px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.company-table td {
  color: var(--text-sub);
}

/* ============================================================
   お問い合わせ CTA (Contact)
   ============================================================ */
#contact {
  text-align: center;
}

#contact .section-heading__ja {
  color: var(--text-light);
}

#contact .section-heading__en {
  color: var(--text-muted);
}

.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: var(--sp-70);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form-area {
  margin-top: var(--sp-70);
}

/* 角丸ボタン（BizReach: border-radius 6px + hover色反転） */
.btn-pill {
  display: inline-block;
  background-color: var(--btn-bg);
  color: var(--text-light);
  padding: 16px 28px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--btn-bg);
  font-size: 1.125em;
  font-weight: 700;
  line-height: 1.0;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

.btn-pill:hover {
  background-color: var(--white-bg);
  color: var(--btn-bg);
}

/* ダークセクション用ボタン（白背景） */
.btn-pill--light {
  background-color: var(--white-bg);
  color: var(--dark-bg);
  border-color: var(--white-bg);
}

.btn-pill--light:hover {
  background-color: var(--btn-bg);
  color: var(--text-light);
  border-color: var(--btn-bg);
}

/* ============================================================
   中間CTAバナー（BizReach: Banner セクション）
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-end));
  padding: var(--sp-70) 0;
  text-align: center;
}

.cta-banner__inner {
  max-width: var(--contents-width);
  margin: 0 auto;
  padding: 0 var(--sp-50);
}

.cta-banner__text {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: var(--sp-50);
  line-height: 1.6;
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  background-color: var(--dark-bg);
  padding: var(--sp-70) 0 var(--sp-50);
}

.footer-inner {
  max-width: var(--contents-width);
  margin: 0 auto;
  padding: 0 var(--sp-50);
}

.footer-logo {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-50);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-40);
  list-style: none;
  margin-bottom: var(--sp-60);
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}


/* ============================================================
   フェードインアニメーション
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 768px) {
  /* スクロールオフセット: モバイルヘッダー高さ */
  html { scroll-padding-top: var(--header-height-sp); }

  /* ヘッダー */
  .site-header { height: var(--header-height-sp); }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .hamburger  { display: flex; }
  .mobile-menu { top: var(--header-height-sp); }

  /* ヒーロー */
  #hero { min-height: 480px; }
  .hero-inner { padding: 80px 24px 64px; }
  .hero-buttons { flex-direction: column; gap: 12px; }
  .hero-btn { text-align: center; justify-content: center; padding: 14px 32px; }

  /* セクション — BizReachモバイルパディング 7.4vw */
  .section { padding: var(--sp-70) 0; }
  .section-inner { padding: 0 7.4vw; }

  /* グリッド: 1カラム */
  .problems-grid,
  .flow-steps {
    grid-template-columns: 1fr;
    gap: var(--sp-40);
  }

  /* 事業概要: モバイルで縦積み */
  .about-columns {
    flex-direction: column;
    gap: var(--sp-50);
  }
  .about-columns__image {
    width: 100%;
    max-width: 400px;
  }

  /* Showcaseカード: モバイルで縦積み・テキスト中央 */
  .showcase-card,
  .showcase-card--reverse {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-50) var(--sp-40);
  }
  .showcase-card__image {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .showcase-card__num {
    font-size: 36px;
  }

  /* フロー矢印非表示 */
  .flow-steps::before { display: none; }

  /* テーブルスタック */
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: var(--sp-30) var(--sp-40);
  }

  .company-table th { padding-bottom: 0; }
  .company-table td { padding-top: var(--sp-20); padding-bottom: var(--sp-40); }

  /* ボタン全幅 */
  .btn-pill { display: block; text-align: center; }

  /* ウェーブ区切り縮小 */
  #problems::after { height: 40px; }

/* フッターナビ縦積み */
  .footer-nav { flex-direction: column; gap: var(--sp-30); }
}

/* 600pxブレークポイント削除: clamp()流体タイポグラフィで対応 */
