/* =========================================================
   site.css  (index.css + interview.css の統合版)
   - 変数・レイアウト・UIコンポーネントを共通化
   - ページ固有（#hero / .hero など）は双方を共存
   ========================================================= */

/* ========== CSS Variables ========== */
:root{
  /* Brand */
  --brand-500:#F53C20;
  --brand-600:#E0341C;
  --brand-50:#FFF3F1;

  /* Neutral */
  --gray-900:#1B1D1F;
  --gray-700:#3D4248;
  --gray-500:#6B7280;
  --gray-100:#F3F4F6;
  --white:#fff;

  /* Layout & effect */
  --container:1120px;
  --section-pad-pc:76px;
  --section-pad-sp:64px;

  /* Radius & Shadow */
  --radius:10px;        /* 基本角丸 */
  --radius-sm:8px;      /* 小さめ角丸（補助） */
  --shadow-sm:0 2px 10px rgba(0,0,0,.06);
  --shadow-md:0 10px 30px rgba(0,0,0,.16);

  /* Motion */
  --transition:.2s ease;

  /* Page specific */
  --hero-focal-y:35%; /* interview 由来の視点補正 */
}

/* ========== Base Reset ========== */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0 }
body{
  font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;
  color:var(--gray-900);
  background:#F7FAFC;
}
img{ max-width:100%; display:block }
a{ color:var(--brand-600); text-decoration:none }
.container{ max-width:var(--container); margin:0 auto; padding:0 20px }

/* ========== Typography ========== */
h1{ font-size:clamp(28px,4.5vw,44px); line-height:1.2; font-weight:800; margin:.25em 0 .4em }
h2{ font-size:clamp(22px,3vw,32px); font-weight:800; margin:0 0 .6em }
h3{ font-size:clamp(18px,2.2vw,22px); font-weight:700; }
p{ line-height:1.75; margin:.8rem 0 }


/* LPページだけ h3 を赤に */
body[data-page="lp"] h3 {
  color: var(--brand-600);
}

/* Interview用の見出し微調整（必要ページのみ併用可） */
.hero-title{ font-size:clamp(22px,3.2vw,34px); line-height:1.25; font-weight:800; margin:.25em 0 .35em }

/* 補助UI（共通） */
.label{ background-color:var(--brand-600); padding:1px 6px; color:#fff; font-weight:bold }
.badge{ background:var(--brand-500); color:#fff; border-radius:6px; padding:2px 8px; font-weight:800 }
.speaker{ color:var(--brand-600); font-weight:700 }
.section-title{ font-size:clamp(15px,1.6vw,18px); font-weight:800; color:var(--gray-700); margin:0 0 10px; letter-spacing:.02em }
.section-lead{ font-size:clamp(18px,2.4vw,26px); font-weight:800; color:var(--gray-900); line-height:1.45; margin:0 0 20px }

/* スクリーンリーダー用 */
.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;
}

/* ========== Header / Global Nav ========== */
header{ position:sticky; top:0; z-index:100; background:#fff; box-shadow:0 1px 0 rgba(0,0,0,.06) }
.header-inner{ display:flex; align-items:center; justify-content:space-between; height:64px }
.header-left{ display:flex; align-items:center; gap:12px; min-width:0 }
.logo{ height:28px; flex:0 0 auto }
.company h1{ font-size:14px; font-weight:600; margin:0; color:var(--gray-700); white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.header-nav{ display:flex; gap:16px; align-items:center; flex-wrap:nowrap }
.header-nav a{ color:var(--gray-700); font-weight:700; padding:8px 10px; border-radius:8px; white-space:nowrap }

/* Buttons (共通) */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  background:var(--brand-500); color:#fff; border:2px solid var(--brand-500);
  padding:12px 20px; border-radius:10px; font-weight:800
}
.btn:hover{ background:var(--brand-600); border-color:var(--brand-600) }
.btn-outline{ background:transparent; color:var(--brand-600); border-color:var(--brand-600) }
.btn-outline:hover{ background:var(--brand-50) }
.header-nav a.btn{ color:#fff }
.header-nav a.btn-outline{ color:var(--brand-600) }

/* Hamburger (共通) */
.hamburger{ display:none; background:#fff; border:1px solid var(--gray-100); border-radius:10px; padding:10px 12px; line-height:0; cursor:pointer }
.hamburger:hover{ border-color:#ffd3ca }
.hamburger:focus-visible{ outline:2px solid var(--brand-500); outline-offset:2px }
.hamburger-icon{ width:22px; height:16px; position:relative; display:inline-block }
.hamburger-icon span{ position:absolute; left:0; right:0; height:2px; background:var(--gray-900); border-radius:2px; transition:.2s ease }
.hamburger-icon span:nth-child(1){ top:0 }
.hamburger-icon span:nth-child(2){ top:7px }
.hamburger-icon span:nth-child(3){ bottom:0 }

/* Mobile menu (共通) */
.mobile-menu-backdrop{ display:none; position:fixed; inset:0; background:rgba(27,29,31,.45); z-index:80 }
.mobile-menu{ display:none; position:absolute; top:100%; left:0; right:0; background:#fff; border-top:1px solid var(--gray-100); box-shadow:0 12px 32px rgba(0,0,0,.12); z-index:110 }
.mobile-menu-inner{ max-width:var(--container); margin:0 auto; padding:14px 16px 18px }
.mobile-menu a{ display:block; padding:12px 10px; border-radius:10px; font-weight:700 }
.mobile-menu a:hover{ background:var(--brand-50) }
.mobile-menu .menu-cta{ margin-top:10px; display:flex; gap:10px; flex-wrap:wrap }
.mobile-menu .menu-cta a{ flex:1 1 140px }
.mobile-menu .menu-meta{ margin-top:10px; padding-top:10px; border-top:1px solid var(--gray-100); display:flex; gap:14px; flex-wrap:wrap }
.mobile-menu .menu-meta a{ padding:0; color:var(--gray-700); font-weight:600 }
.mobile-menu .menu-meta a:hover{ background:transparent; color:var(--brand-600) }

/* Mobile open state */
body.menu-open .mobile-menu-backdrop{ display:block }
body.menu-open .mobile-menu{ display:block }
body.menu-open .hamburger-icon span:nth-child(1){ transform:translateY(7px) rotate(45deg) }
body.menu-open .hamburger-icon span:nth-child(2){ opacity:0 }
body.menu-open .hamburger-icon span:nth-child(3){ transform:translateY(-7px) rotate(-45deg) }

/* ========== Sections ========== */
section{ padding:var(--section-pad-pc) 0 }
@media(max-width:768px){ section{ padding:var(--section-pad-sp) 0 } }

/* ========== Hero (LP側: #hero) ========== */
#hero{
  background-color:var(--brand-50);
  /* index.css 由来：画像上に白系グラデを乗せる場合の例
     ※ hero.svg を使うページのみ適用されます */
  background-image: none; /* 初期は無効、必要ページで上書き可 */
}
#hero .hero-inner{ display:grid; gap:16px }
.hero-sub{ font-size:1.25rem; color:var(--gray-700); font-weight:bold }
.hero-ctas{ display:flex; gap:12px; flex-wrap:wrap; margin-top:.5rem }
.hero-proof{ margin-top:6px; font-size:.9rem; color:var(--gray-700) }

/* ========== Hero (Interview側: .hero) ========== */
.hero{ background:var(--brand-50) }
.hero-inner{ display:grid; grid-template-columns: 1fr 1.15fr; gap:24px; align-items:start }
.hero-copy{ min-width:0 }
.hero-media{
  min-width:0; border-radius:14px; box-shadow:var(--shadow-sm);
/*  background-image:url('../img/photo_AA01.jpg'); background-size:cover;*/
/*  background-position:center var(--hero-focal-y); min-height:380px;*/ width:100%;
}
.hero-media .hero-figure{ margin:0; position:relative }

.hero-media figcaption{ margin-top:12px; margin-left:8px; color:var(--gray-500); font-size:.9rem; background:transparent }
@media(max-width:960px){
  .hero-inner{ grid-template-columns:1fr }
  .hero-media{ min-height:280px }
}

/* ========== Cards / Blocks (共通) ========== */
.card{ background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:24px }
.strengths-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:24px; margin-top:24px }
.strengths-grid .item{ background:#fff; border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:24px; text-align:center }
.strengths-grid .item img{ width:72px; height:72px; margin:0 auto 8px }
.cards{ display:flex; flex-wrap:wrap; justify-content:center; gap:20px }
.cards>.card{ width:calc((100% - 20px)/2) }
@media(max-width:768px){ .cards>.card{ width:100% } }

/* ========== Promo (LPの導入事例ハイライト) ========== */
.promo{ position:relative; background:linear-gradient(180deg,#fff,#fff7f5); border:1px solid #ffd3ca; border-radius:16px; padding:28px; box-shadow:var(--shadow-md) }
.promo h3{ font-size:1.4rem; margin:0 0 .4rem }
.promo .lead{ color:var(--gray-700) }
.promo .cta-row{ display:flex; gap:12px; flex-wrap:wrap; margin-top:12px }
.promo .eyecatch{ position:absolute; right:24px; bottom:24px; width:360px; height:240px; border-radius:10px; background:url('../img/photo_AA01.jpg') center/cover no-repeat }
@media(max-width:900px){
  .promo{ padding-bottom:180px }
  .promo .eyecatch{ right:16px; left:16px; bottom:16px; width:auto; height:220px }
}

/* ========== FAQ (details) ========== */
details{ border:1px solid var(--gray-100); border-radius:var(--radius); margin-bottom:.5rem; background:#fff }
details summary{ padding:.9rem 1rem; font-weight:700; font-size:1rem; color:var(--brand-600) }
details[open] summary{ background:var(--brand-50); color:var(--brand-600) }

/* ========== Footer ========== */
footer{ background:var(--brand-500); color:#fff; text-align:center; padding:36px 0 }

/* ========== Mobile header stacking (interview側の改善を共通化) ========== */
@media(max-width:768px){
  .header-inner{ height:auto; align-items:flex-start; padding:10px 0 }
  .header-left{ flex-direction:column; align-items:flex-start; gap:4px }
  .logo{ height:22px }
  .company h1{ font-size:12px; line-height:1.3; white-space:normal; max-width:100%; overflow:visible; text-overflow:unset }
  .header-nav{ display:none }
  .hamburger{ display:inline-flex; align-items:center; gap:8px }
}

/* =========================================================
   ▼ 共通CTA：お問い合わせ 2カラム（背景なし）
   （メール／電話ボックス）
   ========================================================= */
.contact-dual{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:24px auto 0;
  max-width:var(--container);
}
.contact-box{
  position:relative;
  display:block;
  text-decoration:none;
  color:inherit;
  background:transparent; /* 背景なし */
  border:2px solid rgba(0,0,0,.08);
  border-radius:14px;
  transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-box-inner{
  display:grid;
  grid-template-columns:48px 1fr 42px; /* アイコン / テキスト / 矢印 */
  align-items:center;
  gap:14px;
  padding:18px 16px;
  min-height:96px;
}
/* 差し替え想定のアイコン */
.contact-icon{ width:48px; height:48px; object-fit:contain; display:block }

.contact-texts{ display:flex; flex-direction:column; gap:6px }
.contact-title{ font-weight:900; font-size:clamp(18px,2.2vw,20px); line-height:1.25 }
.contact-sub{ font-size:clamp(12px,1.6vw,14px); color:var(--gray-700); line-height:1.6 }

/* 右端の矢印（装飾） */
.contact-arrow{
  justify-self:end;
  width:40px; height:40px; border-radius:999px;
  background:rgba(0,0,0,.04);
  display:inline-flex; align-items:center; justify-content:center;
  transition:transform var(--transition), background var(--transition), box-shadow var(--transition);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.08);
}
.contact-arrow::before{
  content:""; display:block; width:10px; height:10px;
  border-right:3px solid currentColor; border-bottom:3px solid currentColor;
  transform:rotate(-45deg); color:var(--gray-900);
  transition:transform var(--transition), color var(--transition);
}

/* Hover */
.contact-box:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  border-color:rgba(0,0,0,.14);
}
.contact-box:hover .contact-arrow{
  background:rgba(0,0,0,.06);
  box-shadow:inset 0 0 0 2px rgba(0,0,0,.16);
  transform:translateX(3px);
}
.contact-box:hover .contact-arrow::before{ transform:translateX(1px) rotate(-45deg) }

/* 色アクセント（任意） */
.link-mail .contact-title{ color:var(--brand-600) }
.link-phone .contact-title{ color:var(--brand-600) }

/* Responsive */
@media (max-width:768px){
  .contact-dual{ grid-template-columns:1fr }
  .contact-box-inner{ grid-template-columns:40px 1fr 36px; min-height:86px }
  .contact-icon{ width:40px; height:40px }
  .contact-arrow{ width:36px; height:36px }
}

/* =========================================================
   ▼ ページ固有要素（必要に応じて使用）
   - .qa-q や .page, .content など Interviewページ向けの補助
   ========================================================= */
#main .hero-inner, #main .page, #main .cta-inner, #main .content{
  max-width:var(--container); margin:0 auto; padding:0 20px; width:100%;
}
.qa-q{ display:flex; align-items:baseline; gap:10px }
.qa-q p{ margin:0 }
.qa-q .badge{ flex:0 0 auto }

/* 既存LPのインタビューモジュールや料金表の補助（必要に応じて） */
.pricing-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:16px }
@media(max-width:768px){ .pricing-grid{ grid-template-columns:1fr } }
.pricing-kv{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:12px }
.pricing-kv .kv{ background:var(--brand-50); border:1px solid #ffd3ca; border-radius:12px; padding:12px 14px }
.pricing-kv .kv-label{ color:var(--brand-600); font-weight:800; font-size:.85rem; letter-spacing:.02em }
.pricing-kv .kv-value{ margin-top:6px; color:var(--gray-900); font-weight:900; font-size:1.25rem; line-height:1.2 }
@media(max-width:768px){ .pricing-kv{ grid-template-columns:1fr } }

/* =========================================
   Hotfix for index.html (LP 専用の上書き)
   ========================================= */

/* 1) Hero：背景とレイアウトをLP仕様に戻す（IDスコープで確実に上書き） */
#hero{
  background-color: var(--brand-50);
  background-image:
    linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)),
    url('../img/hero.svg'); /* 画像パスは従来通り。必要に応じて調整可 */
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right center;
  background-size: auto, 40%;
}
#hero .hero-inner{
  display: grid;
  grid-template-columns: 1fr; /* Interviewの2カラム指定を打ち消す */
  gap: 16px;
}
@media (max-width: 900px) {
  #hero{
    background-image:
      linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6)),
      url('../img/hero.svg');
    background-position: 0 0, right bottom;
    background-size: auto, 70%;
  }
}
@media (max-width: 480px) {
  #hero{
    background-size: auto, 85%;
    background-position: 0 0, right 120%;
  }
}

/* （補足）Interviewページ用の2カラムレイアウトは .hero 内に限定 */
.hero .hero-inner{
  grid-template-columns: 1fr 1.15fr; /* 既存site.cssの意図をスコープ限定で維持 */
}

/* 2) 「導入実績」：LPで使っていたボタンスタイルを復活（link-strong） */
.link-strong{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  background: var(--brand-500);
  border: 2px solid var(--brand-500);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
}
.link-strong::after{ content: "→"; }
.link-strong:hover{
  background: var(--brand-600);
  border-color: var(--brand-600);
}

/* 3) 「導入実績」：eyecatchのサイズ・配置をLP仕様に（#cases配下だけに適用） */
#cases .promo{
  padding-right: 420px;
  min-height: 300px;
}
#cases .promo .eyecatch{
  width: 360px;
  height: 240px;
  right: 24px;
  bottom: 24px;
  background-position: center;
  background-size: cover;
}
@media (max-width: 900px){
  #cases .promo{
    padding-right: 28px;
    padding-bottom: 260px;
    min-height: auto;
  }
  #cases .promo .eyecatch{
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    height: 220px;
  }
}

/* 4) 「よくある質問」：文字サイズをLP仕様に戻す（IDスコープで上書き） */
#faq details summary{
  padding: .9rem 1rem;
  font-weight: 500;
  /* 旧「150%」相当。clampで端末幅に追従 */
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--brand-600);
}
#faq details[open] summary{
  background: var(--brand-50);
  color: var(--brand-600);
}

/* 目立たないサブリンク */
.sub-link-wrap {
  text-align: right;
  margin-top: 32px; /* 前要素との距離感 */
  margin-bottom: -32px; /* 導入実績との距離感 */
}

.sub-link {
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: underline;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sub-link::after {
  content: "→";
  font-size: 16px;
}

.sub-link:hover {
  opacity: .75;
}

/* ===== Interview Hero: モバイル可読性の改善（最小差分） ===== */

/* 画像は <img> 主体で制御。背景画像指定は無効化 */
.hero-media {
  background-image: none;   /* 既存の bg を停止 */
  min-height: unset;        /* 高さ固定を解除 */
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  overflow: hidden;         /* 角丸を画像へ適用 */
}

/* ヒーロー画像：比率を安定化し、トリミングは中心寄せ */
.hero-figure {
  margin: 0;
}
.hero-figure > img {
  position: static !important; /* 既存のsr-only相当を解除 */
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;        /* 端末差を吸収。写真に合わせ 4/3 なら変更可 */
  object-fit: cover;           /* 端末比の差はトリミングで吸収 */
  object-position: 50% var(--hero-focal-y, 50%);
}

/* キャプションは画像直下で一貫した余白に */
.hero-media figcaption {
  margin: 8px 4px 0;
  padding: 0 6px 6px;
  font-size: .85rem;
  color: var(--gray-500);
}

/* レイアウト：SP時に「画像→コピー」の順。PCは既存の2カラム維持 */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  /* 並び順：画像を先、コピーを後（視線誘導の自然化） */
  .hero-media { order: 0; }
  .hero-copy  { order: 1; }
}

/* タイポグラフィ：モバイルの行長と行間を調整 */
.hero-title {
  /* 見出しサイズは少し控えめにしつつ太字を維持 */
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1.35;
  letter-spacing: .01em;
  margin: .35em 0 .25em;
  /* 最大幅で行長を制御（日本語はおよそ28〜32文字/行が読みやすい） */
  max-width: 26ch;
}
.hero-lead {
  line-height: 1.75;
  color: var(--gray-900);
  
}

/* モバイル時の余白（上下の呼吸）を増やす */
@media (max-width: 768px) {
  section.hero {
    padding-top: calc(var(--section-pad-sp) * 0.75 + env(safe-area-inset-top));
    padding-bottom: calc(var(--section-pad-sp) * 0.75);
  }
  .hero-inner {
    gap: 16px;
  }
  .hero-copy {
    padding-inline: 2px; /* わずかに左右余白を足す */
  }
}

/* アクセシビリティ：見出し直後の改行 <br> をSPで緩和 */
@media (max-width: 480px) {
  .hero-title .br { display: none; }
}

/* 画像比率を 4:3 写真に揃えたい場合は上の aspect-ratio を 4/3 に変更
.hero-figure > img { aspect-ratio: 4 / 3; }
*/



/* 念のため、背景画像は無効化（重なり表示の違和感防止） */
.hero .hero-media {

  border-radius: 14px;
  overflow: hidden; /* 角丸を画像に適用 */
  position: relative;
}
/* ===== スマホのヒーローを自然な縦並びに整える ===== */

@media (max-width: 960px) {

  /* 画像を先に、テキストを後に */
  .hero-media { order: 0; }
  .hero-copy  { order: 1; }

  /* 画像はフル幅で見せる */
  .hero-media {
    width: 100%;
    margin: 0 auto;
  }

  .hero-media img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 12px;
  }

  /* キャプションを画像のすぐ下に寄せる */
  .hero-media figcaption {
    margin-top: 6px;
    padding-left: 4px;
  }

  /* 見出し部分の横幅が広すぎるのでパディング調整 */
  .hero-copy {
    padding: 0 4px;
  }

  /* 見出しの読みやすさ改善 */
  .hero-title {
    max-width: 28ch;
    line-height: 1.35;
  }
}

/* ===== Interview Hero：画像は <img> 主体／SPは縦並び ===== */

/* PC：従来どおり2カラム、SP：1カラム */
.hero .hero-inner{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap:24px;
  align-items:start;
}
@media (max-width: 960px){
  .hero .hero-inner{
    grid-template-columns: 1fr;
    gap:16px;
  }
}

/* 画像ブロック：背景は使わず <img> 表示に一本化 */
.hero .hero-media{
  width:100%;
  border-radius:14px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;     /* 角丸を画像に適用 */
  position:relative;
}

/* 画像そのものの表示安定化（比率は用途で変更） */
.hero .hero-figure{ margin:0; }
.hero .hero-figure > img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 4 / 3;         /* ← 写真が4:3っぽいので推奨。16/9にしたい場合は変更 */
  object-fit: cover;
  object-position: 50% var(--hero-focal-y, 50%);
}

/* キャプションは画像直下に寄せて密度を下げる */
.hero .hero-media figcaption{
  margin:8px 4px 0;
  padding:0 6px 6px;
  font-size:.85rem;
  color:var(--gray-500);
}

/* モバイル：縦の視線誘導（画像 → コピー）に固定 */
@media (max-width: 960px){
  .hero .hero-media{ order:0; }
  .hero .hero-copy { order:1; padding-inline:4px; }
}

/* 見出し・リードの読みやすさ（行長を抑えて圧迫感を軽減） */
.hero .hero-title{
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1.35;
  letter-spacing: .01em;
  margin: .35em 0 .25em;
  max-width: 28ch;            /* 26〜30chの範囲で微調整可 */
}
.hero .hero-lead{
  line-height:1.75;
  color:var(--gray-900);
  
}

/* モバイルでは見出し内の強制改行を抑止（読みやすさ優先） */
@media (max-width: 480px){
  .hero .hero-title .br{ display:none; }
}
