/* MEN'S FLEX 下層ページ共通（配色・フォントはトップページと同じ） */
:root {
  --navy: #14203a;
  --navy-tint: #e9edf4;
  --black: #0a0a0a;
  --red: #be000a;
  --gray: #f0f0f0;
  --text: #000000;
  --sub: #555b66;
  --white: #ffffff;
  --line: #dde1e8;
  --r: 20px;
  --max: 960px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--white); color: var(--text);
  font-family: "Noto Sans JP", sans-serif; font-weight: 400;
  line-height: 1.85; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.en { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: .06em; }
h1, h2, h3 { font-weight: 900; line-height: 1.45; }
.nw { display: inline-block; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--navy); color: var(--white);
  font-weight: 700; text-decoration: none; letter-spacing: .04em;
  padding: 16px 36px; border-radius: 999px; box-shadow: 0 6px 0 #0a1224;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(3px); box-shadow: 0 3px 0 #0a1224; }
.btn.lg { font-size: 18px; padding: 20px 48px; }
.btn.sm { padding: 9px 20px; font-size: 13px; box-shadow: none; }
.btn.sm:hover { transform: none; opacity: .85; }
.btn.ghost { background: var(--white); color: var(--navy); border: 2px solid var(--navy); box-shadow: none; }
.btn.ghost:hover { transform: none; background: var(--navy-tint); }

/* ヘッダー */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; max-width: 1080px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); line-height: 1; }
.logo img { height: 44px; width: auto; display: block; }
.logo small { font-size: 11px; font-weight: 700; margin-left: 2px; letter-spacing: .1em; }
nav { display: flex; gap: 20px; align-items: center; }
nav a.link { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--sub); }
nav a.link:hover, nav a.link[aria-current] { color: var(--navy); }

/* ヘッダーの「メニュー」（スマホでだけ表示。PCは上のリンクを表示） */
.menu-dd { position: relative; display: none; }
.menu-dd summary {
  list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; padding: 5px 14px; line-height: 1.4; user-select: none;
}
.menu-dd summary::-webkit-details-marker { display: none; }
.menu-dd summary::after { content: "▾"; margin-left: 6px; }
.menu-dd[open] summary { background: var(--navy); color: var(--white); }
.menu-dd .dd {
  position: absolute; right: 0; top: calc(100% + 12px); width: 270px; z-index: 70;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px rgba(20,32,58,.18); padding: 8px;
}
.menu-dd .dd a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.menu-dd .dd a:hover, .menu-dd .dd a[aria-current] { background: var(--navy-tint); }
.menu-dd .dd small { display: block; font-size: 11px; font-weight: 400; color: var(--sub); }

/* パンくず */
.crumbs { font-size: 12px; color: var(--sub); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ページ見出し */
.page-hero { background: linear-gradient(180deg, var(--navy-tint) 0%, var(--white) 100%); padding: 40px 0 56px; }
.page-hero .label { display: block; font-size: 22px; color: var(--navy); opacity: .6; line-height: 1; }
.page-hero h1 { font-size: clamp(28px, 5vw, 46px); color: var(--navy); margin: 10px 0 6px; }
.page-hero .h1-sub { font-weight: 700; color: var(--sub); }
.page-hero .lead { margin-top: 20px; max-width: 720px; }
.page-hero .cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.catch-band { background: var(--black); color: var(--white); }
.catch-band .wrap { padding-top: 16px; padding-bottom: 16px; text-align: center; font-weight: 900; font-size: clamp(15px, 2.2vw, 20px); }

/* 数字 */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 32px; max-width: 720px; }
.nums div { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 700; }
.nums b { display: block; font-family: "Bebas Neue"; font-weight: 400; font-size: 44px; line-height: 1.05; color: var(--navy); }
.nums b.red { color: var(--red); }
.nums b small { font-family: "Noto Sans JP"; font-size: 14px; font-weight: 700; margin-left: 2px; }

/* セクション */
section { padding: 80px 0; }
section.gray { background: var(--gray); }
.sec-head { text-align: center; margin-bottom: 40px; }
.sec-head .en { display: block; font-size: 20px; color: var(--navy); opacity: .55; line-height: 1; }
.sec-head h2 { font-size: clamp(22px, 3.6vw, 32px); margin-top: 8px; }
.sec-head p { color: var(--sub); margin-top: 12px; }
.body-text { max-width: 760px; margin: 0 auto; }
.body-text p + p { margin-top: 14px; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--white); border-radius: var(--r); padding: 24px 22px; box-shadow: 0 4px 0 var(--line); border: 1px solid var(--line); }
.card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--sub); }
.card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.card .tag { display: inline-block; background: var(--navy-tint); color: var(--navy); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 12px; margin-bottom: 8px; }
.card .en.big { display: block; font-size: 26px; color: var(--navy); line-height: 1; }

/* チェックリスト */
.checks { list-style: none; max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.checks li { background: var(--white); border-radius: 14px; padding: 14px 18px 14px 48px; position: relative; font-weight: 700; box-shadow: 0 3px 0 var(--line); }
.checks li::before { content: "✓"; position: absolute; left: 18px; top: 13px; color: var(--navy); font-weight: 900; }

/* 流れ */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li { background: var(--white); border-radius: var(--r); padding: 20px 16px; border: 1px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-family: "Bebas Neue"; font-size: 26px; color: var(--navy); line-height: 1; }
.steps h3 { font-size: 16px; color: var(--navy); margin: 6px 0 4px; }
.steps p { font-size: 13px; color: var(--sub); line-height: 1.7; }

/* 表 */
.tbl { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; background: var(--white); border-radius: var(--r); overflow: hidden; }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--navy); color: var(--white); font-size: 13px; }
.tbl tbody th { color: var(--navy); font-weight: 900; white-space: nowrap; }

/* 料金 */
.price-box { max-width: 560px; margin: 0 auto; background: var(--white); border: 3px solid var(--navy); border-radius: 28px; overflow: hidden; }
.price-box .head { background: var(--navy); color: var(--white); text-align: center; padding: 12px; font-weight: 700; font-size: 14px; }
.price-box table { width: 100%; border-collapse: collapse; }
.price-box th, .price-box td { padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-box th { text-align: left; line-height: 1.4; }
.price-box td { text-align: right; white-space: nowrap; }
.price-box b { font-family: "Bebas Neue"; font-weight: 400; font-size: 32px; margin-right: 2px; }
.price-box tr.hl { background: #fff5f5; }
.price-box tr.hl th, .price-box tr.hl b { color: var(--red); }
.price-box .foot { padding: 14px 22px; font-size: 12px; color: var(--sub); }
.note { text-align: center; font-size: 12px; color: var(--sub); margin-top: 18px; }
.box { max-width: 760px; margin: 28px auto 0; background: var(--white); border-radius: var(--r); padding: 22px 24px; border: 1px solid var(--line); }
.box h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.box p, .box li { font-size: 14px; }
.box ul { padding-left: 1.2em; }

/* 質問一覧（診断ページ） */
.qs { list-style: none; counter-reset: q; max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.qs li { background: var(--white); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); }
.qs li h3 { font-size: 15px; }
.qs li h3::before { counter-increment: q; content: "Q" counter(q); font-family: "Bebas Neue"; color: var(--navy); font-size: 20px; margin-right: 10px; font-weight: 400; }
.qs .opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qs .opts span { background: var(--navy-tint); color: var(--navy); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.qs small { display: block; color: var(--sub); font-size: 12px; margin-top: 6px; }

/* よくある質問 */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 4px; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-family: "Bebas Neue"; color: var(--navy); font-size: 20px; margin-right: 10px; }
.faq summary::after { content: "+"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--navy); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 4px 18px 26px; color: var(--sub); font-size: 14px; }
.faq h3 { font-size: 15px; color: var(--navy); margin: 32px 0 8px; }
.faq h3:first-child { margin-top: 0; }

/* 他のメニュー */
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.more a { display: block; background: var(--white); border: 2px solid var(--navy); border-radius: 16px; padding: 16px 18px; text-decoration: none; font-weight: 700; color: var(--navy); }
.more a:hover { background: var(--navy-tint); }
.more a small { display: block; font-size: 12px; color: var(--sub); font-weight: 400; }

/* 締めのCTA */
.final { background: var(--navy); color: var(--white); text-align: center; }
.final h2 { font-size: clamp(24px, 4.4vw, 40px); }
.final p { margin: 12px 0 30px; opacity: .85; font-weight: 700; }
.final .btn { background: var(--white); color: var(--navy); box-shadow: 0 6px 0 #9aa6bd; }

/* フッター */
footer { background: var(--black); color: #9aa0aa; font-size: 12px; padding: 40px 0 110px; }
footer .wrap { max-width: 1080px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
footer .logo img { height: 52px; }
footer address { font-style: normal; margin-top: 10px; line-height: 1.9; }
footer ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
footer ul a { text-decoration: none; color: #d0d4da; }
footer ul a:hover { color: var(--white); }
footer .copy { text-align: center; margin-top: 28px; }

.sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; box-shadow: none; }

@media (max-width: 900px) {
  nav a.link { display: none; }
  .menu-dd { display: block; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  section { padding: 60px 0; }
  header .btn { display: none; }
  .btn.lg { font-size: 16px; padding: 18px 28px; }
  .nums b { font-size: 34px; }
  .nums div { font-size: 11px; padding: 12px 6px; }
  .tbl th, .tbl td { padding: 12px 10px; font-size: 13px; }
  .tbl tbody th { white-space: normal; }
  footer .cols { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
}
