/* シフトイン 紹介ページ
   色は3つ：橙（主・ボタン）・濃紺（文字）・淡い橙（面）。白は地。グラデーションと色の帯は使わない */
:root {
  --orange: #b95300;      /* 白地で 4.9:1 */
  --navy: #17324a;        /* 白地で 13:1 */
  --cream: #fff4e8;
  --sub: #4f5d69;         /* 補足の文字。白地で 6.6:1、淡い橙で 6.1:1 */
  --line: #e6dccf;
  --white: #fff;
  --error: #b3261e;
  --wrap: 1180px;
  --narrow: 780px;
  --gutter: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.4, .4, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.05em;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--navy); word-break: auto-phrase; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; line-height: 1.42; letter-spacing: 0.04em; }
h2 { font-size: clamp(25px, 3.1vw, 38px); font-weight: 700; line-height: 1.5; letter-spacing: 0.05em; }
h3 { font-size: clamp(17px, 1.9vw, 20px); font-weight: 700; line-height: 1.6; letter-spacing: 0.04em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.small { font-size: 14px; color: var(--sub); line-height: 1.85; }
.nb { display: inline-block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }

.skip { position: absolute; left: 8px; top: -80px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 8px; }

/* ヘッダー（白い浮いた札） */
.site-header { position: sticky; top: 0; z-index: 50; padding: 12px 0; background: transparent; }
.header-inner {
  display: flex; align-items: center; gap: 24px; min-height: 64px;
  background: var(--white); border-radius: 12px; box-shadow: 0 1px 3px rgba(23, 50, 74, .12), 0 6px 20px rgba(23, 50, 74, .06);
  padding: 0 12px 0 24px; margin: 0 auto; max-width: calc(var(--wrap) - 2 * var(--gutter));
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: 0.1em; color: var(--navy); text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; }
.site-footer .brand img { height: 32px; }
.gnav { margin-left: auto; }
.gnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.gnav a { display: block; padding: 10px 12px; color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 700; border-radius: 6px; }
.gnav a:hover { background: var(--cream); }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--orange); color: var(--white); text-decoration: none; font-weight: 700; font-family: inherit;
  border: 2px solid var(--orange); border-radius: 8px; cursor: pointer; letter-spacing: 0.06em; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: #9a4500; border-color: #9a4500; text-decoration: none; }
.btn-small { font-size: 15px; padding: 10px 18px; min-height: 48px; }
.btn-large { font-size: 17px; padding: 16px 32px; min-height: 60px; }
.btn-line { background: var(--white); color: var(--orange); }
.btn-line:hover { background: var(--cream); color: var(--orange); border-color: var(--orange); }

/* ファーストビュー */
.fv { padding: clamp(40px, 6vw, 80px) 0 0; }
.fv-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--orange); font-size: 15px; letter-spacing: 0.12em; margin-bottom: 24px; }
.fv h1 { margin-bottom: 28px; font-size: clamp(30px, 4.2vw, 52px); }
.fv h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(16px, 1.6vw, 18px); max-width: 34em; margin-bottom: 32px; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0 0 32px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.facts li { padding: 14px 22px; border-right: 1px solid var(--line); }
.facts li:last-child { border-right: 0; }
.facts-k { display: block; font-size: 13px; color: var(--sub); font-weight: 700; letter-spacing: 0.08em; }
.facts-v { display: block; font-size: clamp(19px, 2vw, 24px); font-weight: 800; color: var(--navy); letter-spacing: 0.04em; line-height: 1.5; }
.facts-v small { font-size: 13px; font-weight: 700; color: var(--sub); margin-left: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 16px; }
.note { font-size: 14px; color: var(--sub); }

/* 実物の画面（スマホ2台） */
.fv-visual { position: relative; }
.phones { margin: 0 auto; width: 100%; max-width: 480px; }
.phones-stage { position: relative; aspect-ratio: 0.76; }
.phone {
  position: absolute; width: 58%; aspect-ratio: 390 / 800;
  border: 10px solid var(--navy); border-radius: 36px; overflow: hidden; background: var(--white);
  box-shadow: 0 2px 4px rgba(23, 50, 74, .12), 0 24px 48px rgba(23, 50, 74, .14);
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-back { right: 0; top: 0; }
.phone-front { left: 2%; top: 9%; }
.phones-stage::before { content: ""; position: absolute; z-index: -1; right: 8%; top: 6%; width: 80%; height: 80%; border-radius: 24px; background: var(--cream); }
.phones figcaption { margin-top: 12px; font-size: 13px; color: var(--sub); text-align: right; }
.boards { margin: clamp(56px, 7vw, 88px) 0 0; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; }
.boards-k { font-size: 13px; color: var(--sub); letter-spacing: 0.1em; }

/* セクション（余白は重要度で変える） */
.sec { padding: 96px 0; }
.sec-tint { background: var(--cream); }
.sec-compact { padding: 56px 0 72px; }
.sec-cta { padding: 112px 0; background: var(--cream); }
.sec h2 { margin-bottom: 24px; }
.section-lead { font-size: 17px; color: var(--sub); max-width: 42em; margin-bottom: 44px; }

/* 悩み */
.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 36px; align-items: start; }
.pain-lead { font-size: 17px; }
.pain-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pain-list li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); font-weight: 700; position: relative; }
.pain-list li::before { content: ""; position: absolute; left: 4px; top: 28px; width: 14px; height: 2px; background: var(--orange); }

/* 表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 660px; font-size: 15px; }
caption { text-align: left; font-weight: 700; padding: 18px 22px 0; color: var(--sub); font-size: 14px; }
th, td { padding: 18px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.75; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 15px; white-space: nowrap; }
tbody th { font-weight: 700; width: 26%; }
.ours-col { background: var(--cream); font-weight: 700; }
thead .ours-col { color: var(--orange); font-size: 17px; }
.th-note { display: block; font-size: 13px; font-weight: 400; color: var(--sub); margin-top: 4px; white-space: normal; }
.price td { font-size: 19px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price .total th, .price .total td { background: var(--navy); color: var(--white); }
.notes { margin: 28px 0 0; padding-left: 1.2em; font-size: 15px; }
.notes li + li { margin-top: 6px; }

/* お任せいただく範囲 */
.grid-scope { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.process { list-style: none; margin: 0; padding: 0; counter-reset: p; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.process li { counter-increment: p; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 12px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.process li:last-child { border-bottom: 0; }
.process li::before { content: counter(p); font-weight: 800; font-variant-numeric: tabular-nums; color: var(--sub); }
.process .step { font-weight: 700; }
.process .owner { font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.process .ours { background: var(--white); }
.process .ours .owner { background: var(--orange); color: var(--white); }
.process .store { background: var(--cream); }
.process .store .owner { border: 1px solid var(--navy); color: var(--navy); background: var(--white); }

/* 約束 */
.promises { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: q; display: grid; gap: 16px; }
.promises li { counter-increment: q; position: relative; padding: 28px 28px 26px 92px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.promises li::before {
  content: counter(q); position: absolute; left: 28px; top: 26px;
  width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.promises h3 { margin-bottom: 8px; }
.promises p { margin: 0; }

/* 流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { padding: 28px 24px; border-radius: 12px; background: var(--white); }
.steps .num { display: block; font-size: 15px; font-weight: 800; color: var(--orange); letter-spacing: 0.1em; margin-bottom: 12px; }
.steps .num::before { content: "手順 "; }
.steps h3 { font-size: 18px; margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15px; }

/* よくある質問 */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 52px 22px 4px; font-weight: 700; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--orange); }
.faq details[open] summary::after { content: "−"; content: "−" / ""; }
.faq details > div { padding: 0 4px 22px; }
.faq details p { margin: 0; }

/* フォーム */
.sec-cta .section-lead { margin-bottom: 32px; }
.form { background: var(--white); border-radius: 16px; padding: clamp(24px, 4vw, 44px); }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
fieldset.field label { margin-top: 14px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--navy); background: var(--white);
  border: 1px solid #7d8790; border-radius: 8px; padding: 12px 14px; min-height: 50px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
[aria-invalid="true"] { border: 2px solid var(--error); }
.error { color: var(--error); font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.error::before { content: "エラー："; }
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; }
.check input { width: 24px; height: 24px; min-height: 0; margin: 0; flex: none; accent-color: var(--orange); }
.check label { font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn-large { width: 100%; margin-top: 16px; }
.form button[aria-disabled="true"] { opacity: 0.6; cursor: wait; }
.status { margin: 12px 0 0; font-weight: 700; }
.err-summary { border: 2px solid var(--error); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.err-summary h3 { color: var(--error); margin-bottom: 8px; }
.err-summary ul { margin: 0; padding-left: 1.2em; }
.err-summary a { color: var(--error); }
.done { border: 2px solid var(--orange); border-radius: 16px; padding: 28px 24px; background: var(--white); }
.done h3 { color: var(--orange); margin-bottom: 8px; }
.done p { margin: 0; }

/* 出典 */
.sec-compact h2 { font-size: clamp(18px, 2vw, 21px); }
.sources { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--sub); }
.sources li + li { margin-top: 8px; }

/* フッター */
.site-footer { background: var(--navy); color: #e8edf2; padding: 56px 0 64px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 32px; align-items: start; }
.site-footer .brand { margin-bottom: 12px; }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.company { margin: 0; display: grid; gap: 6px; }
.company div { display: grid; grid-template-columns: 7em 1fr; gap: 12px; }
.company dt { color: #b8c4cf; }
.company dd { margin: 0; }
.foot-links { margin: 0; }

/* 下層ページ（プライバシーポリシー・送信結果） */
.doc { padding: 56px 0 104px; }
.doc h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 32px; }
.doc h2 { font-size: clamp(19px, 2.2vw, 22px); margin: 44px 0 12px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 4px; }
.doc .meta { color: var(--sub); font-size: 14px; margin-top: 48px; }
.doc table { min-width: 0; font-size: 15px; }

@media (max-width: 1080px) {
  .gnav { display: none; }
  .header-inner { justify-content: space-between; }
}
@media (max-width: 900px) {
  .fv-grid { grid-template-columns: 1fr; }
  .phones { max-width: 420px; margin-top: 8px; }
  .grid-scope, .pain-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-header { padding: 8px 0; }
  .header-inner { padding: 0 8px 0 16px; min-height: 56px; border-radius: 10px; max-width: calc(100% - 16px); }
  .brand img { height: 30px; }
  .btn-small { padding: 8px 12px; font-size: 14px; min-height: 44px; }
  .sec { padding: 72px 0; }
  .sec-cta { padding: 80px 0; }
  .facts { grid-template-columns: 1fr 1fr; width: 100%; }
  .facts li:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .cta-row .btn { width: 100%; }
  .phone { border-width: 7px; border-radius: 26px; }
  .steps { grid-template-columns: 1fr; }
  .process li { grid-template-columns: 2em 1fr; }
  .process .owner { grid-column: 2; justify-self: start; }
  .promises li { padding: 24px 20px 22px 76px; }
  .promises li::before { left: 18px; }
  .company div { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* 窓口の表（下層ページ） */
.contact-dl { margin: 0 0 1em; display: grid; gap: 4px; }
.contact-dl div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.contact-dl dd { margin: 0; }
