/* components.css｜どのページにも出る部品（帯・ボタン・見出し・一覧・フォーム） */

/* ===== 上の帯 ===== */
.hd { position: sticky; top: 0; z-index: 40; background: var(--w); border-bottom: 1px solid var(--rule); }
.hd .in { display: flex; align-items: center; gap: 40px; height: var(--head-h); }
.hd .logo img { height: 26px; width: auto; }
.hd .gnav { display: flex; gap: 28px; font-size: 13px; font-weight: 500; margin-left: auto; }
.hd .gnav a { padding: 6px 0; }
.hd .gnav a:hover, .hd .gnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.hd .cta { display: flex; gap: 8px; }
.hd .cta a { font-size: 13px; font-weight: 700; padding: 10px 18px; background: var(--k); color: var(--w); white-space: nowrap; }
.hd .cta a.l { background: var(--line-g); }
.menu { display: none; width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; position: relative; }
.menu::before, .menu::after { content: ""; position: absolute; left: 11px; right: 11px; height: 2px; background: var(--k); transition: transform .2s ease, top .2s ease; }
.menu::before { top: 17px; }
.menu::after { top: 25px; }
.menu[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
.menu[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: var(--head-h) 0 0; z-index: 39; background: var(--k); color: var(--w); overflow-y: auto;
  padding-block: 28px calc(40px + env(safe-area-inset-bottom, 0px)); padding-left: max(var(--gut), env(safe-area-inset-left, 0px)); padding-right: max(var(--gut), env(safe-area-inset-right, 0px)); }
.drawer ul { border-top: 1px solid var(--dk-rule); }
.drawer li a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--dk-rule); font-size: 17px; font-weight: 700; }
.drawer li a small { font-family: var(--en); font-size: 12px; font-weight: 400; letter-spacing: .14em; color: var(--g2); }
.drawer .btns { margin-top: 28px; }
body.is-menu { overflow: hidden; }

@media (max-width: 1000px) {
  .hd .in { gap: 12px; }
  .hd .gnav { display: none; }
  .hd .cta { margin-left: auto; }
  .hd .cta a { font-size: 12px; padding: 8px 12px; }
  .hd .cta a.l { display: none; }
  .hd .logo img { height: 22px; }
  .menu { display: block; }
}

/* ===== ボタン ===== */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; font-weight: 700; font-size: 14px; background: var(--k); color: var(--w); border: 1px solid var(--k); white-space: nowrap; text-align: center; }
.btn.wh { background: var(--w); color: var(--k); border-color: var(--w); }
.btn.l { background: var(--line-g); color: #fff; border-color: var(--line-g); }
.btn.o { background: transparent; color: var(--k); }
.btn:hover { filter: brightness(1.12); }
.more { display: inline-flex; gap: 40px; justify-content: space-between; align-items: center; margin-top: 28px; padding: 16px 22px; border: 1px solid currentColor; font-size: 14px; font-weight: 700; }
.more .j { font-size: 18px; line-height: 1; }
.more:hover { background: var(--k); color: var(--w); }
.dark .more:hover { background: var(--w); color: var(--k); }

/* ===== 節の見出し（大きな数字＋英字＋日本語） ===== */
.num { display: flex; align-items: flex-end; gap: 18px; }
.num b { font-family: var(--en); font-size: clamp(80px, 10vw, 148px); font-weight: 500; line-height: .76; letter-spacing: -.04em; }
.num span { font-size: 12px; letter-spacing: .06em; padding-bottom: 6px; line-height: 1.5; }
.num span em { display: block; font-style: normal; font-family: var(--en); font-size: 26px; font-weight: 500; letter-spacing: .02em; }
.num h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }
@media (max-width: 560px) {
  .num { gap: 14px; }
  .num b { font-size: 80px; }
  .num span { font-size: 11px; padding-bottom: 4px; }
  .num span em { font-size: 20px; font-weight: 400; }
}

/* ===== 下層ページの頭 ===== */
.phead { padding-block: clamp(40px, 6vw, 80px) clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.phead .w { font-family: var(--en); font-weight: 500; font-size: clamp(64px, 12vw, 180px); line-height: .8; letter-spacing: -.045em; overflow-wrap: normal; word-break: keep-all; }
.phead h1 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.55; margin-top: clamp(20px, 2.6vw, 32px); text-wrap: balance; }
.phead p { color: var(--g3); margin-top: 14px; max-width: var(--read); }
.crumb { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--g); padding-top: 18px; }
.crumb li + li::before { content: "/"; margin-right: 10px; color: var(--g2); }
.crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== 一覧（事例・コラム・よくある質問・流れ） ===== */
.caselist { border-top: 2px solid var(--k); }
.caselist li a { display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.dark .caselist { border-color: var(--w); }
.dark .caselist li a { border-color: var(--dk-rule); }
.caselist li a:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.caselist .t { font-family: var(--en); font-size: 12px; letter-spacing: .14em; color: var(--g); }
.caselist .t span { font-family: var(--jp); letter-spacing: 0; margin-left: 10px; }
.caselist h3 { grid-column: 1; font-size: 18px; line-height: 1.6; }
.caselist p { grid-column: 1; font-size: 13.5px; font-weight: 700; }
.caselist li a::after { content: "→"; grid-row: 1 / 4; grid-column: 2; align-self: center; font-family: var(--en); font-size: 24px; }

.col { border-top: 2px solid var(--k); }
.col li a { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.col li a::after { content: "→"; font-family: var(--en); font-size: 18px; }
.col li a:hover span { text-decoration: underline; text-underline-offset: 4px; }
.col time { font-family: var(--en); font-size: 14px; font-weight: 500; }

.faq .q { border-bottom: 1px solid var(--rule); padding: 24px 0; }
.faq .q:first-child { border-top: 2px solid var(--k); }
.faq h3 { font-size: 17px; line-height: 1.6; display: grid; grid-template-columns: 34px 1fr; }
.faq h3::before { content: "Q."; font-family: var(--en); font-weight: 500; }
.faq p { font-size: 14.5px; color: var(--g3); padding: 8px 0 0 34px; }
.faq p a { text-decoration: underline; text-underline-offset: 3px; }

.steps li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.steps li:first-child { border-top: 2px solid var(--k); }
.steps .st { font-family: var(--en); font-size: 56px; font-weight: 500; line-height: .9; letter-spacing: -.03em; }
.steps b { font-size: 18px; display: block; line-height: 1.6; }
.steps p { font-size: 14.5px; color: var(--g3); margin-top: 4px; }
.steps p a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 560px) {
  .caselist li a { padding: 18px 0; gap: 4px 12px; }
  .caselist .t { font-size: 11px; }
  .caselist h3 { font-size: 15px; }
  .caselist p { font-size: 12.5px; }
  .caselist li a::after { font-size: 20px; }
  .col li a { grid-template-columns: 88px 1fr; gap: 10px; padding: 14px 0; font-size: 14px; }
  .col li a::after { display: none; }
  .col time { font-size: 13px; font-weight: 400; }
  .faq .q { padding: 16px 0; }
  .faq h3 { font-size: 15px; grid-template-columns: 26px 1fr; }
  .faq p { font-size: 13.5px; padding-left: 26px; }
  .steps li { grid-template-columns: 64px 1fr; gap: 10px; padding: 16px 0; }
  .steps .st { font-size: 40px; }
  .steps b { font-size: 15px; }
  .steps p { font-size: 13px; }
}

/* ===== 最後の呼びかけ ===== */
.end { margin-top: 140px; display: grid; grid-template-columns: 7fr 5fr; }
.end .ph { min-width: 0; min-height: clamp(440px, 42vw, 620px); }
.end .bk { background: var(--k); color: var(--w); padding: 70px var(--gut) 64px 56px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.end .qc { position: absolute; right: 0; top: -150px; width: 122px; height: 150px; }
.end .qc path { fill: var(--k); }
.end .w { font-family: var(--en); font-size: clamp(78px, 9vw, 140px); font-weight: 500; line-height: .85; letter-spacing: -.04em; }
.end p { font-size: 17px; margin-top: 24px; }
.end .btns { display: grid; gap: 10px; margin-top: 28px; max-width: 420px; }
@media (max-width: 1000px) {
  .end { grid-template-columns: 1fr; margin-top: 80px; }
  .end .ph { min-height: 0; aspect-ratio: 4 / 3; }
  .end .qc { display: none; }
  .end .bk { padding: 0 var(--gut) 44px; }
  .end .w { margin-top: -0.42em; position: relative; }
}
@media (max-width: 560px) {
  .end .ph { aspect-ratio: 4 / 5; }
  .end .w { font-size: 78px; margin-top: -74px; }
  .end p { font-size: 14px; margin-top: 16px; }
}

/* ===== 下の帯 ===== */
.ft { background: var(--k); color: var(--w); border-top: 1px solid var(--dk-rule); }
.ft .in { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 24px 60px; padding-block: 48px 40px; }
.ft .logo img { height: 26px; width: auto; }
.ft nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; color: var(--g2); }
.ft nav a:hover { color: var(--w); }
.ft .op { grid-column: 1 / -1; font-size: 12px; color: var(--g2); border-top: 1px solid var(--dk-rule); padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.ft small { font-family: var(--en); font-size: 12px; color: var(--g2); }
@media (max-width: 1000px) {
  .ft .in { grid-template-columns: 1fr; gap: 20px; padding-block: 32px calc(var(--bar-h) + 28px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== スマホの下の固定ボタン ===== */
.bar { display: none; }
@media (max-width: 1000px) {
  .bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--k);
    padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
  .bar > div { max-width: 560px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .bar a { text-align: center; font-size: 14px; font-weight: 700; padding: 12px 0; background: var(--w); color: var(--k); }
  .bar a.l { background: var(--line-g); color: #fff; }
}

/* ===== フォーム（白地） ===== */
.form { display: grid; gap: 22px; max-width: 760px; }
.form .row { display: grid; gap: 8px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form label, .form legend { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.form .req, .form .opt { font-size: 11px; font-weight: 700; padding: 1px 6px; line-height: 1.6; }
.form .req { background: var(--k); color: var(--w); }
.form .opt { border: 1px solid var(--g2); color: var(--g); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="url"], .form select, .form textarea {
  width: 100%; min-height: 52px; border: 1px solid #8A8A8A; border-radius: 0; background: var(--w); padding: 10px 14px; font-size: 16px; }
.form textarea { min-height: 160px; line-height: 1.8; resize: vertical; }
.form fieldset { border: 0; display: grid; gap: 10px; }
.form .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.form .opts label { font-weight: 500; border: 1px solid #8A8A8A; padding: 0 14px; min-height: 44px; cursor: pointer; }
.form .opts input { accent-color: var(--k); width: 18px; height: 18px; }
.form .opts label:has(input:checked) { background: var(--k); color: var(--w); border-color: var(--k); }
.form .agree { font-weight: 500; }
.form .agree a { text-decoration: underline; text-underline-offset: 3px; }
.form .note { font-size: 12.5px; color: var(--g); }
.form .err { font-size: 13px; color: #B3261E; font-weight: 700; }
.form button[type="submit"] { justify-self: start; min-width: 280px; }
.done { border: 2px solid var(--k); padding: 28px; display: grid; gap: 10px; max-width: 760px; }
.done b { font-size: 18px; }
@media (max-width: 560px) {
  .form .row2 { grid-template-columns: 1fr; }
  .form button[type="submit"] { justify-self: stretch; min-width: 0; }
}

/* 黒地の URL 診断（トップと /check/ で同じ部品） */
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--w); }
.seg button { font-size: 14px; font-weight: 700; padding: 13px 0; border: 0; background: transparent; color: var(--w); }
.seg button[aria-pressed="true"] { background: var(--w); color: var(--k); }
.dfields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.dfields label { font-size: 12.5px; font-weight: 700; display: grid; gap: 6px; color: var(--g2); }
.dfields input { font-size: 16px; border: 0; border-bottom: 1px solid var(--w); padding: 9px 0; background: transparent; color: var(--w); border-radius: 0; width: 100%; }
.dfields input::placeholder { color: #8A8A8A; }
.dfields input:focus { outline: none; border-bottom-width: 2px; }
.dfields .wide { grid-column: 1 / -1; }
.dform .line-btn { display: block; width: 100%; text-align: center; margin-top: 28px; background: var(--line-g); color: #fff; font-weight: 700; padding: 16px; border: 0; font-size: 15px; }
.dform .note { font-size: 12px; color: var(--g2); margin-top: 12px; }
.dform .err { font-size: 13px; color: #FFB4A8; font-weight: 700; margin-top: 12px; }
.dform .done { border-color: var(--w); margin-top: 24px; }
.dform .done a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .dfields { grid-template-columns: 1fr; gap: 14px; margin-top: 18px; } }

/* 確認用の帯（noindex の確認用 URL・金額が確定前のページ） */
.draft { background: #FFF4CC; color: #5A4300; font-size: 12.5px; font-weight: 700; text-align: center; padding: 6px var(--gut); }
