:root {
    /* 事業部カラー：オレンジ */
    --accent: #ff8a3d;
    --accent-strong: #e96a0c;
    --accent-bg: #fff3e9;
    --ink: #2b2b2b;
    --weak: #6d6d6d;
    --card: #ffffff;
    --paper: #f4eee6;
    --line: rgba(0,0,0,.08);
}

* {box-sizing: border-box}
html, body {
    margin: 0;
    padding: 0;
}
body {
    font-family: system-ui, -apple-system, "Helvetica Neue", Arial, "ヒラギノ角ゴ ProN", Meiryo, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

/* ========== ヒーロー ========== */
.hero {
    background: linear-gradient(180deg, #fff 0%, var(--accent-bg) 100%);
    border-bottom: 1px solid var(--line);
    position: relative;
    text-align: center;
    padding-bottom: 30px;
}
.hero_inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 20px 20px;
    text-align: center;
}
.back-home {
    position: absolute;
    left: 20px;
    top: 16px;
    font-size: .95rem;
    color: var(--weak);
    text-decoration: none;
}
.back-home:hover {
    color: var(--ink);
}
.brand-logo {
    width: 200px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.hero-kicker {
    color: var(--accent-strong);
    font-weight: 700;
    letter-spacing: .06em;
    font-size: 1rem;
    margin: 0 0 6px;
}
.hero_title {
    font-size: clamp(24px, 4vw, 36px);
    margin: 0 0 6px;
}
.hero_lead {
    color: #555;
    margin: 0 0 18px;
}
.hero_cta {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ===== Fullscreen Global Nav ===== */
.global-nav{
    position: fixed;
    inset: 0;
    z-index: 300;                          /* ヘッダーより後ろ */
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-bg);             /* アクセントカラーで全面 */
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .22s ease;
}
.nav-toggle:checked ~ .global-nav{ 
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

/* 背景（押すと閉じる） */
.nav-backdrop{
    position:absolute;
    inset:0;
    background: transparent;
    display:block;
}

/* パネル本体 */
.global-panel{
    position: relative;
    width: 100%;
    max-width: var(--container, 1100px);
    margin: 0 auto;
    padding: 80px 20px 40px;
    background: none;
    border: none;
    box-shadow: none;
}
/* オーバーレイ内のメニュー全体 */
.global-menu {
  max-width: 880px;
  margin: 0 auto;
  padding: 72px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* MENU / SNS 見出し */
.global-heading {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* SNS 用にちょっと余白を変えたい場合 */
.global-heading--sub {
  margin-top: 8px;
}

/* ===== メニュー一覧 ===== */
.global-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;   /* 行間, 列の間隔 */
}

.global-list li {
  margin: 0;
}

.global-list a {
    position: relative;
    display: inline-block;
    font-size: clamp(18px, 2.3vw, 22px);
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--accent);
    text-decoration: none;
    opacity: 1;
    padding-bottom: 4px;
    transition: transform .25s ease;
}

/* ホバーは今のままの雰囲気をキープ */
.global-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;                         /* ← 最初は非表示 */
    background: var(--accent);
    transition: width .25s ease;      /* ← スッと伸びるアニメーション */
}
/* ホバーした時だけ下線が伸びる */
.global-list a:hover::after {
  width: 100%;                      /* ← 文字の長さぴったりで完成 */
}

.global-list a:hover {
  transform: translateX(4px);
  opacity: 1;                       /* ← 文字は消えない */
  color: var(--accent);
}

/* ===== SNS リンク ===== */
.global-sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;            /* ← 横並び */
  gap: 16px 24px;
}

.global-sns a {
  position: relative;        /* 下線のために必須 */
  display: inline-block;
  color: var(--accent);               /* 常に白 */
  font-size: 0.9rem;
  text-decoration: none;
  padding-bottom: 3px;       /* 下線の余白 */
  opacity: 1;
  transition: transform .25s ease;
}

.global-sns a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .25s ease;
}
/* ホバー：文字はそのまま、下線だけ伸びる、少し右に動く */
.global-sns a:hover {
  color: var(--accent);      /* 文字色を固定 */
  opacity: 1;       /* 消えない */
  transform: translateX(3px);
}

.global-sns a:hover::after {
  width: 100%;      /* ← ここで文字幅ぴったりの下線が出る！ */
}


@media (max-width: 640px) {
  .global-menu {
    padding: 56px 24px 40px;
    gap: 24px;
  }

  .global-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* ===== ハンバーガーアイコン（3本線→×） ===== */
/* ボタン本体：幅30px固定 */
.hero .menu{
  width: 30px;          /* アイコンの幅はずっと 30px 固定 */
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;   /* 左寄せ */
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 16px;
  z-index: 400;
}

/* 3本線のベース */
.hero .menu .bar{
  display: block;
  height: 2px;
  width: 30px;              /* 基本の長さ */
  background: #ff8a3d;      /* 事業部カラーに合わせたオレンジ */
  border-radius: 999px;
  transition:
    width .25s ease,
    transform .25s ease,
    opacity .2s ease;
  transform-origin: center;
}

/* 最初は長さバラバラ */
.hero .menu .bar:nth-child(1){ width: 30px; }  /* 一番長い */
.hero .menu .bar:nth-child(2){ width: 22px; }
.hero .menu .bar:nth-child(3){ width: 16px; }  /* 一番短い */

.hero .menu .bar + .bar{
  margin-top: 6px;
}

/* ▼ メニュー閉じているときだけ：ホバーでニュッと同じ長さになる */
.nav-toggle:not(:checked) ~ .hero .menu:hover .bar{
  width: 30px;
}

/* ===== チェックされたら綺麗な「×」に変形 ===== */

/* チェック時は3本を中央に寄せる */
.nav-toggle:checked ~ .hero .menu{
  align-items: center;
}

/* 3本を中央で重ねる */
.nav-toggle:checked ~ .hero .menu .bar{
  position: absolute;
  left: 50%;
  top: 50%;
  width: 30px;
  margin-top: 0;
  transform-origin: center;
  background: var(--accent);
}

/* 上の線 → ／ */
.nav-toggle:checked ~ .hero .menu .bar:nth-child(1){
  transform: translate(-50%, -50%) rotate(45deg);
}

/* 真ん中の線消す */
.nav-toggle:checked ~ .hero .menu .bar:nth-child(2){
  opacity: 0;
}

/* 下の線 → ＼ */
.nav-toggle:checked ~ .hero .menu .bar:nth-child(3){
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 開いているときはホバーしても形が崩れないように */
.nav-toggle:checked ~ .hero .menu:hover .bar{
  width: 30px;
}

/* 小さめ画面でのタイポサイズ調整 */
@media (max-width: 520px){
  .global-list a{ font-size: clamp(18px, 5.5vw, 22px); }
}

/*（任意）オーバーレイ表示中の背景スクロール抑止：対応ブラウザ向け */
@supports selector(:has(*)) {
  body:has(#nav-toggle:checked){ overflow: hidden; }
}

/* ========== ボタン ========== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all .2s ease;
    cursor: pointer;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,138,61,.25);
}
.btn--primary:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}
.btn--ghost {
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn--ghost:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
}
.btn--lg {
    padding: 14px 26px;
    font-size: 16px;
}

/* ========== レイアウト ========== */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 32px 20px;
}
.section {
    margin: 32px 0;
}
.section_title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .05em;
    color: #000;
    margin: 0 0 14px;
    position: relative;
}
.section_title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    margin-top: 8px;
}

/* ========== Cards / Grid ========== */
.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}
.card_title {
    margin: 0 0 6px;
    font-weight: 800;
}
.card_text {
    margin: 0;
    color: var(--weak);
}

/* ========== Flow ========== */
.flow {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.flow li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: center;
}
.flow li span {
    width: 26px;
    border-radius: 999px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    height: 26px;
}

/* ========== Price ========== */
.price {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.price_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.price_row:last-child {
    border-bottom: none;
}
.price_item {
    padding: 12px 14px;
}
.price_row:nth-child(even) {
    background: #fafafa;
}

/* ========== QA ========== */
.qa {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 10px 0;
}
.qa>summary {
    cursor: pointer;
    font-weight: 700;
    color: #222;
}
.qa[open]>summary {
    color: var(--accent-strong);
}

/* ========== CTA ========== */
.cta {
    text-align: center;
    margin: 44px 0 10px;
    padding: 28px 18px;
    background: linear-gradient(180deg, var(--accent-bg), #fff);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.cta_title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
}
.cta_sub {
    margin: 10px 0 0;
    color: var(--weak);
}
.cta a {
    color: var(--accent-strong);
}
.btn.btn--primary.btn--lg {
     background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,138,61,.25);
}
.btn.btn--primary.btn--lg:hover {
    background: var(--accent-strong);
    transform: translateY(-1px);
}

/* ========== Footer ========== */
.footer {
    padding: 30px 16px 40px;
    text-align: center;
    color: #9a9a9a;
}
.sub-brand {
    font-size: .95rem;
    margin-bottom: 6px;
}
.ft-copy{
  max-width: 1100px;
  margin: 16px auto 0;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 12px;
  text-align: center;
  font-size: .85rem;
  opacity: .85;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .grid3{grid-template-columns:1fr; gap:12px;}
    .hero_inner{padding:44px 16px 40px;}
    .brand-logo{width:140px}
}

/* =========================================================
   📱 スマホ最適化（600px以下）
========================================================= */
@media (max-width: 600px) {

/* ===== 全体の中央揃えは hero 本体に適用 ===== */
  .hero {
    text-align: center;
    padding: 28px 16px 32px;
  }

  /* ===== ロゴ ===== */
  .brand-logo {
    width: 140px;
    margin: 0 auto 8px;
  }

  /* ===== キッカー（小見出し） ===== */
  .hero-kicker {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  /* ===== タイトル ===== */
  .hero_title {
    font-size: 1.6rem;
    line-height: 1.3;
    margin: 0 auto 8px;
    max-width: 20em;      /* 行長を揃える */
    padding: 0;           /* ← 余計なpaddingを削除 */
  }

  /* ===== リード文 ===== */
  .hero_lead {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto 20px;
    max-width: 22em;
    padding: 0;
  }

  /* ===== CTA ボタン ===== */
  .hero_cta a {
    width: 90%;
    max-width: 180px;
    margin: 0 auto;          /* ← 横方向をど真ん中に */
    justify-content: center; /* ← ボタン内の文字も中央揃え */
  }

  /* ===== 戻るリンクとハンバーガー位置 ===== */
  .back-home {
    left: 14px;
    top: 14px;
  }
  .hero .menu {
    right: 16px;
    top: 14px;
  }
}
