/* カスタマイズ自動実行プラグイン 公開サイト 共通スタイル。書体は fonts/fonts.css で読み込む */
:root {
  --ink: #172a4a;
  --text: #36445c;
  --muted: #66738a;
  --blue: #1f5bd8;
  --blue-dark: #1646ad;
  --sky: #edf4ff;
  --sky-deep: #dbe8fd;
  --orange: #e56a00;
  --orange-dark: #c95a00;
  --yellow: #ffe66b;
  --green: #12885c;
  --green-soft: #e3f5ec;
  --line: #d9e2ef;
  --white: #fff;
  --head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); background: var(--white);
  font-family: var(--body); font-size: 16px; line-height: 1.9;
  letter-spacing: 0.02em;
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid #f0a000; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); line-height: 1.45; margin: 0; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mk { background: linear-gradient(transparent 64%, var(--yellow) 64%); }

/* ボタン */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; font-family: var(--head); font-weight: 700; line-height: 1.4;
  border-radius: 999px; padding: 14px 34px; font-size: 1.06rem; text-align: center;
}
.btn small { font-family: var(--body); font-weight: 500; font-size: 0.72rem; opacity: 0.95; }
.btn-main { background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark); }
.btn-main:hover { background: #f07810; }
.btn-sub { background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.btn-sub:hover { background: var(--sky); }
.btn-s { padding: 9px 20px; font-size: 0.9rem; box-shadow: none; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 900; font-size: 1.1rem; white-space: nowrap; }
.logo svg { flex: none; }
.logo span small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.62rem; color: var(--muted); line-height: 1.2; letter-spacing: 0.06em; }
.logo span { line-height: 1.3; }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 26px; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.gnav a:hover { color: var(--blue); }
.hd-cta { display: flex; gap: 10px; }
.gnav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 16px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* ヒーロー */
.hero { background: var(--sky); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 84px; }
.tag { display: table; font-family: var(--body); line-height: 1.9; letter-spacing: 0.03em; background: var(--ink); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 3px 14px; border-radius: 4px; margin-bottom: 20px; }
.hero h1 { font-weight: 900; font-size: clamp(1.7rem, 3.3vw, 2.45rem); line-height: 1.6; letter-spacing: 0.02em; }
.hero-lead { margin-top: 22px; font-size: 1.05rem; color: var(--text); max-width: 30em; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-points li {
  display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--sky-deep);
  border-radius: 6px; padding: 5px 14px; font-weight: 700; font-size: 0.88rem; color: var(--ink);
}
.hero-points li::before { content: ""; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg) translateY(-2px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ヒーローの画面イメージ */
.stage { position: relative; padding: 30px 0 92px 34px; }
.win { background: #fff; border-radius: 12px; box-shadow: 0 24px 48px -18px rgba(23,42,74,0.35); border: 1px solid #c9d6ea; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9eef6; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c2cddd; }
.win-bar b { flex: 1; margin-left: 8px; background: #fff; border-radius: 6px; font-weight: 400; font-size: 0.7rem; color: var(--muted); padding: 2px 12px; line-height: 1.7; letter-spacing: 0; }
.rec { font-size: 0.7rem; font-weight: 700; color: #c62828; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #e53935; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.k-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.k-head strong { color: var(--ink); font-size: 0.92rem; }
.k-head span { font-size: 0.7rem; color: var(--muted); }
.k-tools { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.k-tools em { font-style: normal; font-size: 0.72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 2px 10px; }
.k-btn { position: relative; margin-left: auto; background: var(--blue); color: #fff; font-size: 0.76rem; font-weight: 700; padding: 5px 14px; border-radius: 4px; }
.k-btn::after { content: ""; position: absolute; inset: -7px; border: 2px solid var(--orange); border-radius: 9px; }
.cursor { position: absolute; right: -6px; bottom: -20px; }
.k-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.k-table th { text-align: left; background: #f4f7fb; color: var(--muted); font-weight: 500; padding: 6px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.k-table td { padding: 8px 16px; border-bottom: 1px solid #edf1f7; color: var(--text); }
.k-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--green); font-weight: 700; font-size: 0.68rem; margin-left: 6px; }
.float { position: absolute; background: #fff; border-radius: 10px; border: 1px solid #c9d6ea; box-shadow: 0 14px 30px -12px rgba(23,42,74,0.35); }
.f-log { left: 0; bottom: 0; width: 300px; padding: 12px 14px; }
.f-log p { font-size: 0.72rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.f-log li { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; padding: 4px 0; border-top: 1px dashed var(--line); line-height: 1.6; }
.f-log li span:nth-child(2) { flex: 1; }
.ok, .ng { font-weight: 700; font-size: 0.66rem; border-radius: 3px; padding: 0 7px; }
.ok { background: var(--green-soft); color: var(--green); }
.ng { background: #fdeceb; color: #b3261e; }
.f-next { right: -10px; top: -6px; padding: 9px 16px; display: flex; align-items: center; gap: 10px; font-size: 0.76rem; line-height: 1.5; }
.f-next strong { display: block; color: var(--ink); font-size: 0.95rem; font-family: var(--head); }

/* セクション共通 */
.sec { padding: 96px 0; }
.sec-sky { background: var(--sky); }
.sec-h { text-align: center; margin-bottom: 52px; }
.sec-h h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; }
.sec-h p { margin-top: 14px; color: var(--muted); }
.nb { display: inline-block; }
.cta-center { justify-content: center; }

/* 悩み */
.worry ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; margin: 0 auto; }
.worry li { display: flex; gap: 14px; align-items: flex-start; background: #f5f7fa; border-radius: 10px; padding: 20px 22px; font-weight: 500; color: var(--ink); line-height: 1.75; }
.worry li svg { flex: none; margin-top: 3px; }
.answer { position: relative; max-width: 900px; margin: 56px auto 0; background: var(--ink); color: #fff; border-radius: 14px; padding: 34px 40px; text-align: center; }
.answer::before { content: ""; position: absolute; left: 50%; top: -38px; margin-left: -22px; border: 22px solid transparent; border-top: 18px solid #c9d3e2; border-bottom: 0; }
.answer h3 { color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 900; }
.answer h3 span { color: var(--yellow); }
.answer p { margin-top: 12px; font-size: 0.95rem; color: #d7e0ee; }

/* しくみ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; counter-reset: flow; }
.flow li { position: relative; background: #fff; border-radius: 12px; padding: 30px 22px 24px; text-align: center; counter-increment: flow; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -25px; top: 50%; margin-top: -11px; border: 11px solid transparent; border-left: 13px solid var(--blue); border-right: 0; }
.flow li::before {
  content: counter(flow); position: absolute; left: 50%; top: -17px; margin-left: -17px; width: 34px; height: 34px;
  border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 900; line-height: 34px;
}
.flow svg { display: block; margin: 0 auto 12px; }
.flow h3 { font-size: 1.02rem; margin-bottom: 8px; }
.flow p { font-size: 0.86rem; line-height: 1.75; text-align: left; }

/* 特長 */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feat > * { min-width: 0; }
.feat + .feat { margin-top: 88px; }
.feat:nth-of-type(even) .feat-txt { order: 2; }
.feat-no { display: inline-flex; align-items: baseline; gap: 6px; color: var(--blue); font-family: var(--head); font-weight: 900; font-size: 0.95rem; border-bottom: 3px solid var(--blue); padding-bottom: 2px; margin-bottom: 18px; }
.feat-no b { font-size: 1.7rem; line-height: 1; }
.feat h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 900; }
.feat-txt > p { margin-top: 18px; }
.feat-txt ul { margin-top: 18px; }
.feat-txt li { position: relative; padding-left: 26px; font-size: 0.94rem; margin-top: 6px; }
.feat-txt li::before { content: ""; position: absolute; left: 3px; top: 0.6em; width: 13px; height: 7px; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.panel { background: var(--sky); border-radius: 16px; padding: 30px; }
.code { background: #1b2740; color: #dfe7f5; border-radius: 10px; padding: 20px 22px; font: 0.76rem/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; overflow-x: auto; white-space: pre; }
.code .c { color: #8fa1c0; }
.code .add { display: block; background: rgba(255,230,107,0.16); margin: 0 -22px; padding: 0 22px; color: var(--yellow); }
.code-cap { margin-top: 12px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.form { background: #fff; border-radius: 10px; border: 1px solid #c9d6ea; padding: 20px 22px; font-size: 0.82rem; }
.form-t { font-weight: 700; } .form h4, .form-t { margin: 0 0 12px; color: var(--ink); font-size: 0.92rem; }
.form dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 10px 12px; align-items: center; }
.form dt { color: var(--muted); word-break: keep-all; }
.form dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); border-radius: 5px; padding: 1px 11px; color: var(--text); background: #fff; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.inp { border: 1px solid var(--line); border-radius: 5px; padding: 1px 11px; min-width: 5em; word-break: keep-all; }
.log { background: #fff; border-radius: 10px; border: 1px solid #c9d6ea; overflow: hidden; font-size: 0.8rem; }
.log-row { display: grid; grid-template-columns: 5.2em 1fr auto; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid #edf1f7; }
.log-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-open { padding: 14px 16px 16px; background: #f7f9fc; display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
.movie { aspect-ratio: 16 / 10; border-radius: 6px; background: #1b2740; display: flex; align-items: center; justify-content: center; }
.log-open p { font-size: 0.76rem; line-height: 1.7; }
.log-open p b { color: #b3261e; }
.log-open code { display: block; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 0.7rem; letter-spacing: 0; color: var(--text); }

/* 使いみち */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uses li { background: #fff; border-radius: 12px; padding: 26px 24px; border-top: 5px solid var(--blue); }
.uses .when { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--blue-dark); background: var(--sky); border-radius: 4px; padding: 0 10px; margin-bottom: 10px; }
.uses h3 { font-size: 1.08rem; margin-bottom: 8px; }
.uses p { font-size: 0.9rem; line-height: 1.8; }

/* 比較 */
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 0.9rem; line-height: 1.75; }
.cmp th, .cmp td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp thead th { font-family: var(--head); color: var(--ink); text-align: center; background: #f1f4f9; border-bottom: 0; }
.cmp thead th:first-child { background: none; }
.cmp tbody th { width: 9.5em; color: var(--ink); background: #f8fafc; white-space: nowrap; }
.cmp .me { background: #fffbe6; border-left: 3px solid var(--orange); border-right: 3px solid var(--orange); color: var(--ink); font-weight: 500; }
.cmp thead .me { background: var(--orange); color: #fff; border-radius: 10px 10px 0 0; }
.cmp tbody tr:last-child .me { border-bottom: 3px solid var(--orange); }
.cmp-note { margin-top: 20px; font-size: 0.86rem; color: var(--muted); max-width: 52em; }

/* 安心 */
.safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.safe li { display: grid; grid-template-columns: 56px 1fr; gap: 18px; background: #fff; border-radius: 12px; padding: 26px; }
.safe h3 { font-size: 1.05rem; margin-bottom: 6px; }
.safe p { font-size: 0.9rem; line-height: 1.8; }
.more { text-align: center; margin-top: 32px; font-weight: 700; }

/* 料金 */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 880px; margin: 0 auto; }
.plan { border: 2px solid var(--line); border-radius: 16px; padding: 34px 32px; background: #fff; display: flex; flex-direction: column; }
.plan.paid { border-color: var(--blue); }
.plan h3 { font-size: 1.15rem; text-align: center; }
.plan .sub { text-align: center; font-size: 0.84rem; color: var(--muted); }
.yen { text-align: center; color: var(--ink); font-family: var(--head); font-weight: 900; margin: 14px 0 4px; line-height: 1.3; }
.yen b { font-size: 3rem; letter-spacing: 0; }
.yen span { font-size: 1rem; }
.plan ul { margin: 20px 0 26px; border-top: 1px solid var(--line); }
.plan li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.plan li b { color: var(--ink); text-align: right; }
.plan .btn { margin-top: auto; }
.plan-note { max-width: 880px; margin: 24px auto 0; font-size: 0.86rem; color: var(--muted); }

/* 導入の流れ */
.steps { max-width: 820px; margin: 0 auto; counter-reset: st; }
.steps li { position: relative; counter-increment: st; padding: 0 0 34px 84px; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; border: 3px solid var(--blue); color: var(--blue); font-family: var(--head); font-weight: 900; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; width: 3px; background: var(--sky-deep); }
.steps h3 { font-size: 1.1rem; padding-top: 12px; }
.steps p { margin-top: 6px; font-size: 0.92rem; }
.steps .who { display: inline-block; margin-top: 8px; font-size: 0.78rem; font-weight: 700; color: var(--blue-dark); background: #fff; border: 1px solid var(--sky-deep); border-radius: 4px; padding: 0 10px; }

/* よくある質問 */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.faq details + details { margin-top: 12px; }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 18px 56px 18px 62px; font-weight: 700; color: var(--ink); line-height: 1.7; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq .a::before {
  position: absolute; left: 18px; width: 30px; height: 30px; border-radius: 50%; text-align: center;
  font-family: var(--head); font-weight: 900; line-height: 30px;
}
.faq summary::before { content: "Q"; top: 16px; background: var(--blue); color: #fff; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .a { position: relative; padding: 4px 28px 22px 62px; font-size: 0.94rem; }
.faq .a::before { content: "A"; top: 2px; background: #fff3e6; color: var(--orange); }

/* 最後の案内 */
.last { background: var(--blue); color: #fff; text-align: center; padding: 76px 0 80px; }
.last h2 { color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 900; }
.last p { margin-top: 14px; color: #dce7fb; }
.last .hero-cta { justify-content: center; }
.last .btn-sub { border-color: #fff; }
.last .wrap > small { display: block; margin-top: 22px; font-size: 0.8rem; color: #dce7fb; }
.last .wrap > small a { color: #fff; }

/* フッター */
.ft { background: var(--ink); color: #c5cfe0; font-size: 0.86rem; padding: 48px 0 32px; }
.ft .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.ft .logo { color: #fff; margin-bottom: 14px; }
.ft h3 { color: #fff; font-size: 0.9rem; margin-bottom: 10px; }
.ft a { color: #c5cfe0; text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft li { margin-bottom: 4px; }
.copy { grid-column: 1 / -1; border-top: 1px solid #33466a; padding-top: 20px; font-size: 0.76rem; color: #93a2bd; }

@media (max-width: 960px) {
  html { scroll-padding-top: 16px; }
  .hd { position: static; }
  .hd .wrap { flex-wrap: wrap; height: auto; gap: 0 16px; padding-top: 10px; }
  .hd-cta { margin-left: auto; }
  .gnav { order: 3; width: 100%; margin: 6px -24px 0; padding: 0 24px; overflow-x: auto; width: calc(100% + 48px); }
  .gnav ul { gap: 22px; white-space: nowrap; }
  .gnav a { display: block; padding: 8px 0 10px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 60px; }
  .stage { max-width: 600px; margin-top: 12px; }
  .flow { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .flow li:nth-child(2)::after { display: none; }
  .feat { grid-template-columns: 1fr; gap: 30px; }
  .feat:nth-of-type(even) .feat-txt { order: 0; }
  .uses { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sec { padding: 64px 0; }
  .sec-h { margin-bottom: 38px; }
  .logo span small { display: none; }
  .hero-cta .btn { width: 100%; }
  .stage { padding-left: 0; padding-bottom: 130px; }
  .f-log { width: 88%; }
  .f-next { right: 0; }
  .worry ul, .uses, .safe, .plans, .ft .wrap { grid-template-columns: 1fr; }
  .answer { padding: 28px 22px; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .panel { padding: 16px; }
  .log-open { grid-template-columns: 1fr; }
  .safe li { grid-template-columns: 44px 1fr; padding: 20px; }
  .plan { padding: 28px 22px; }
  .steps li { padding-left: 64px; }
  .steps li::before { width: 44px; height: 44px; font-size: 1.15rem; }
  .steps li:not(:last-child)::after { left: 21px; top: 48px; }
  .steps h3 { padding-top: 6px; }
  .faq summary { padding-left: 56px; padding-right: 46px; }
  .faq .a { padding-left: 56px; padding-right: 18px; }
  .faq summary::before, .faq .a::before { left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rec::before { animation: none; }
}

/* 機能一覧・ご利用の条件(トップページ) */
#functions { padding-top: 0; }
.spec { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.8; background: #fff; border-radius: 12px; overflow: hidden; }
.spec th, .spec td { padding: 16px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 12.5em; color: var(--ink); background: #f8fafc; }
.spec-wrap { max-width: 940px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sec-sky .spec-wrap { border-color: var(--sky-deep); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; letter-spacing: 0; background: #f1f4f9; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; }
@media (max-width: 640px) {
  .spec th, .spec td { display: block; width: auto; padding: 12px 16px; }
  .spec th { border-bottom: 0; padding-bottom: 4px; background: #fff; }
  .spec td { padding-top: 0; }
}

/* 下層ページ(料金・導入ガイド・よくある質問・規約類) */
.doc { padding: 0 0 96px; }
.doc .wrap { max-width: 900px; }
.doc h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 900; margin: 0 0 20px; }
.doc h2 { font-size: 1.32rem; font-weight: 900; margin: 64px 0 20px; padding: 10px 18px; background: var(--sky); border-left: 6px solid var(--blue); border-radius: 0 8px 8px 0; }
.doc h3 { font-size: 1.08rem; line-height: 1.6; margin: 36px 0 10px; }
.doc h4 { font-size: 1rem; margin: 24px 0 6px; color: var(--ink); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 1.5em; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc .lead { font-size: 1.05rem; margin-bottom: 8px; }
.doc .note { color: var(--muted); font-size: 0.9rem; }
.doc .toc { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 20px 26px; margin: 28px 0 8px; font-size: 0.94rem; }
.doc .toc p { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.doc .toc ol, .doc .toc ul { margin: 0; }
.doc .toc li { margin-bottom: 2px; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; margin: 0 0 20px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.93rem; line-height: 1.75; }
.doc caption { text-align: left; font-weight: 700; padding: 0 0 8px; color: var(--ink); }
.doc th, .doc td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; }
.doc thead th { background: var(--sky); color: var(--ink); }
.doc tbody th { background: #f8fafc; color: var(--ink); font-weight: 700; }
.doc .box { border: 1px solid var(--sky-deep); background: var(--sky); padding: 16px 20px; margin: 0 0 20px; border-radius: 10px; }
.doc .box > :last-child { margin-bottom: 0; }
.doc .box.caution { border-color: #f3d19c; background: #fff7e8; }
.doc .box strong.title { display: block; margin-bottom: 4px; }
.doc .price { font-family: var(--head); font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1.4; }
.doc .price small { font-family: var(--body); font-size: 0.9rem; font-weight: 400; color: var(--muted); }
.doc pre { background: #1b2740; color: #dfe7f5; padding: 18px 20px; border-radius: 10px; overflow-x: auto; line-height: 1.7; font-size: 0.86rem; letter-spacing: 0; margin: 0 0 20px; }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.doc .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 8px; }
.doc .button {
  display: inline-block; text-decoration: none; font-family: var(--head); font-weight: 700; line-height: 1.4; text-align: center;
  border-radius: 999px; padding: 14px 32px; background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark);
}
.doc .button:hover { background: #f07810; }
.doc .button.secondary { background: #fff; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; padding: 12px 30px; }
.doc .button.secondary:hover { background: var(--sky); }
.doc .faq-item { border-bottom: 1px solid var(--line); padding: 4px 0 14px; }
.doc .faq-item h3 { position: relative; margin-top: 22px; padding-left: 40px; }
.doc .faq-item h3::before {
  content: "Q"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff; font-weight: 900; font-size: 0.9rem; line-height: 28px; text-align: center;
}
.doc .faq-item > :not(h3) { margin-left: 40px; }
.doc .draft { border: 2px solid #b3261e; background: #fdeceb; color: #7a1410; padding: 12px 18px; margin: 0 0 28px; border-radius: 8px; font-weight: 700; }
.doc .draft span { display: block; font-weight: 400; font-size: 0.92rem; }
mark.todo { background: #fff0b3; color: #5a3b00; border: 1px dashed #8a5a00; border-radius: 3px; padding: 1px 4px; font-weight: 700; }
.legal h2 { font-size: 1.12rem; background: none; border-left: 0; border-bottom: 2px solid var(--line); border-radius: 0; padding: 0 0 8px; margin-top: 44px; }
.legal ol { padding-left: 1.7em; }
.legal ol ol { list-style: none; padding-left: 0.5em; counter-reset: sub; }
.legal ol ol > li { counter-increment: sub; position: relative; padding-left: 2.2em; }
.legal ol ol > li::before { content: "(" counter(sub) ")"; position: absolute; left: 0; }
.compare th[scope="row"] { white-space: normal; width: 24%; }
@media (max-width: 640px) {
  .doc { padding: 0 0 64px; }
  .doc h2 { font-size: 1.15rem; margin-top: 48px; }
  .doc .button { width: 100%; }
  .doc .faq-item > :not(h3) { margin-left: 0; }
}
@media print {
  .hd, .skip, .actions, .last, .hero-cta { display: none; }
  body { font-size: 11pt; }
}

/* ==================================================================
   下層ページ
   ページごとに役割が違うので、骨格も変えている。
   料金・よくある質問は題名を帯に置き、導入ガイドとその関連ページは白地に左寄せで置く
   ================================================================== */
img { max-width: 100%; height: auto; }
h1, h2, h3 { letter-spacing: 0.01em; }
.lead, .sec-h p, .ask, .eq, .last p, .prep-more, .plan .sub { word-break: auto-phrase; }
.pg-hero { background: var(--sky); padding: 54px 0 58px; text-align: center; }
.pg-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; letter-spacing: 0.04em; }
.pg-hero .lead { margin: 16px auto 0; max-width: 41em; font-size: 1.02rem; text-wrap: balance; }
.doc-head { padding: 34px 0 38px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 900; }
.doc-head .lead { margin-top: 14px; max-width: 46em; font-size: 1.02rem; }
.doc-head.narrow .wrap { max-width: 908px; }
.col { max-width: 880px; }
.col-s { max-width: 760px; }
.notes { margin-top: 20px; font-size: 0.86rem; line-height: 1.8; color: var(--muted); }
.notes li { position: relative; padding-left: 1.4em; margin-top: 4px; }
.notes li::before { content: "※"; position: absolute; left: 0; }
.who { display: inline-block; font-family: var(--body); font-size: 0.76rem; font-weight: 700; line-height: 1.7; letter-spacing: 0.03em; color: var(--blue-dark); background: var(--sky); border-radius: 4px; padding: 0 9px; }
.sec-sky .who, .flowband .who { background: #fff; }

/* 文章が中心の部分(共通の初期化で消している余白と行頭記号を戻す) */
.prose p, p.prose { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); }
.prose > :last-child { margin-bottom: 0; }

/* 画面写真 */
.shot { margin: 0 0 22px; }
.shot img { display: block; width: 100%; border: 1px solid #c9d6ea; border-radius: 10px; box-shadow: 0 10px 24px -14px rgba(23, 42, 74, 0.35); background: #fff; }
.shot .zoom { display: block; cursor: zoom-in; border-radius: 10px; }
.shot figcaption { margin-top: 8px; font-size: 0.82rem; color: var(--muted); }
.shot.narrow { max-width: 620px; }
.where { display: inline-block; margin-bottom: 6px; font-size: 0.74rem; font-weight: 700; line-height: 1.8; letter-spacing: 0.04em; color: #fff; background: var(--ink); border-radius: 4px; padding: 0 9px; }

/* 注意書き(事故につながるものだけに使う) */
.callout { border: 1px solid #f3d19c; background: #fff7e8; border-radius: 10px; padding: 14px 18px; margin: 0 0 20px; font-size: 0.94rem; }
.callout strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* 導入ガイド・ジョブの設定・運用とトラブル対応を行き来するリンクと、ページ内の区分へのリンク */
.fam { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0 0 22px; font-family: var(--head); font-weight: 700; font-size: 0.9rem; }
.fam a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.fam a:hover { color: var(--blue); }
.fam a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--blue); }
.jump { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 28px; }
.pg-hero .jump { justify-content: center; }
.jump a { display: inline-flex; align-items: center; gap: 9px; padding: 4px 0; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 0.92rem; line-height: 1.7; text-decoration: none; border-bottom: 2px solid var(--sky-deep); }
.jump a::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); }
.jump a:hover { color: var(--blue); border-bottom-color: var(--blue); }
/* ジョブの設定: 設定画面の並び順を、番号つきで示す */
.order { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; counter-reset: od; font-family: var(--head); font-weight: 700; font-size: 0.9rem; }
.order li { counter-increment: od; display: flex; align-items: center; gap: 8px; }
.order li::before { content: counter(od); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.72rem; line-height: 22px; text-align: center; }
.order li:not(:last-child)::after { content: ""; width: 18px; height: 2px; background: #b5c2d6; margin-left: 4px; }
.order a { color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--sky-deep); }
.order a:hover { color: var(--blue); border-bottom-color: var(--blue); }

/* 共通の部品 */
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px; }
.sec-sky .card { border-color: transparent; }
.card h3 { font-size: 1.08rem; margin-bottom: 14px; }
.kv { margin-top: 0; margin-bottom: 0; }
.kv > div { display: grid; grid-template-columns: 11em 1fr; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv > div:last-child { padding-bottom: 0; }
.kv dt { font-weight: 700; color: var(--ink); }
.kv dd { margin: 0; font-size: 0.94rem; }
.card .kv > div { grid-template-columns: 1fr; gap: 2px; padding: 11px 0; }
.kv.wide > div { grid-template-columns: 15em 1fr; }
.anc { position: absolute; }
.check li { position: relative; padding-left: 30px; margin-top: 12px; font-size: 0.94rem; }
.check li:first-child { margin-top: 0; }
.check li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 13px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.check li b { color: var(--ink); }
.check li small { display: block; font-size: 0.86rem; color: var(--muted); }

/* ---------- 料金 ---------- */
.price-top { padding-top: 60px; }
.plans.wide { max-width: 940px; }
.plan h2 { font-size: 1.15rem; text-align: center; }
.plan-how { margin-top: auto; font-size: 0.86rem; color: var(--muted); }
.eq { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; max-width: 940px; margin: 30px auto 0; padding: 18px 24px; background: var(--sky); border-radius: 12px; color: var(--ink); text-align: center; }
.eq b { font-family: var(--head); font-weight: 900; font-size: 1.15rem; }
.eq span { font-size: 0.92rem; }
.extra { max-width: 940px; margin: 24px auto 0; border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
.extra h3 { font-size: 1.04rem; margin-bottom: 10px; }
.extra li { position: relative; padding-left: 1.2em; font-size: 0.94rem; margin-top: 8px; }
.extra li::before { content: ""; position: absolute; left: 0.1em; top: 0.8em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.extra li b { color: var(--ink); }
.extra > p { font-size: 0.94rem; }
.lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lane-g { background: #fff; border-radius: 12px; padding: 20px 22px; }
.lane-t { font-family: var(--head); font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.lane { display: flex; gap: 6px; background: var(--sky); border-radius: 8px; padding: 6px; margin-bottom: 6px; min-height: 46px; }
.job { flex: 0 0 31%; background: var(--blue); color: #fff; font-size: 0.8rem; font-weight: 700; text-align: center; border-radius: 5px; padding: 3px 0; }
.job.j2 { background: #e56a00; }
.job.j3 { background: #12885c; }
.lane-n { margin: 12px 0 0; font-size: 0.86rem; }
.lanes-note { margin-top: 26px; font-size: 0.95rem; }
.s3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s3; }
.s3 li { counter-increment: s3; position: relative; background: #fff; border-radius: 12px; padding: 34px 24px 24px; }
.s3 li::before { content: counter(s3); position: absolute; left: 24px; top: -17px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 900; line-height: 34px; text-align: center; }
.s3 li:not(:last-child)::after { content: ""; position: absolute; right: -25px; top: 50%; margin-top: -11px; border: 11px solid transparent; border-left: 13px solid var(--blue); border-right: 0; }
.s3 h3 { font-size: 1.04rem; margin-bottom: 8px; }
.s3 p { font-size: 0.9rem; line-height: 1.8; }
#contract .shot { margin-bottom: 40px; }
#contract .shot figcaption { text-align: center; }
#contract .kv { background: #fff; border-radius: 12px; padding: 26px 30px; }

/* ---------- 導入ガイド(最初のジョブが動くまで) ---------- */
.flowband { background: var(--sky); padding: 30px 0 34px; }
.flow6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; counter-reset: fl; text-align: center; }
.flow6 li { counter-increment: fl; }
.flow6 a { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 16px 8px 14px; background: #fff; border-radius: 12px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 0.9rem; line-height: 1.5; word-break: auto-phrase; text-wrap: balance; }
.flow6 a::before { content: counter(fl); flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 900; line-height: 32px; text-align: center; }
.flow6 a:hover { box-shadow: 0 0 0 2px var(--blue); }
.flow6 b { font-weight: 700; }
.flow6 .who { margin-top: auto; background: var(--sky); font-size: 0.7rem; }
.flow6 .goal a { background: var(--ink); color: #fff; }
.flow6 .goal a::before { content: ""; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16.5l5 5 9-10' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.flow6 .goal .who { background: rgba(255, 255, 255, 0.16); color: #fff; }
.prep { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.prep-more { margin-top: 22px; font-size: 0.94rem; }
.gsteps { max-width: 860px; margin: 0 auto; }
.gstep { position: relative; padding: 0 0 64px 96px; }
.gstep::before { content: ""; position: absolute; left: 33px; top: 74px; bottom: 6px; width: 3px; background: var(--sky-deep); }
.gstep:last-child { padding-bottom: 0; }
.gstep:last-child::before { display: none; }
.gstep-n { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 68px; height: 68px; border-radius: 50%; background: var(--blue); color: #fff; font-family: var(--head); font-weight: 700; font-size: 0.64rem; line-height: 1.15; letter-spacing: 0.08em; }
.gstep-n b { font-size: 1.55rem; font-weight: 900; line-height: 1; letter-spacing: 0; }
.gstep-n i { font-style: normal; font-size: 0.62rem; letter-spacing: 0.02em; opacity: 0.85; }
.gstep h2 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 900; padding-top: 6px; }
.gstep .who { margin: 8px 0 22px; }
.gstep > p { margin: 0 0 16px; }
.gstep > p.dl { margin-bottom: 24px; }
.gstep.goal { background: #fff; border-radius: 16px; padding: 34px 36px 34px 132px; }
.gstep.goal .gstep-n { left: 36px; top: 34px; background: var(--green); font-size: 0.8rem; letter-spacing: 0.04em; }
.gstep.goal .who { background: var(--sky); }
.acts { counter-reset: act; margin: 0 0 22px; }
.acts > li { counter-increment: act; position: relative; padding-left: 2.3em; margin-bottom: 10px; }
.acts > li::before { content: counter(act); position: absolute; left: 0; top: 0.3em; width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-size: 0.8em; line-height: 1.45em; text-align: center; }
.acts small { display: block; font-size: 0.88rem; color: var(--muted); }
.done-mark { position: relative; background: var(--green-soft); border-radius: 10px; padding: 14px 18px 14px 50px; margin: 0 0 16px; color: var(--ink); font-size: 0.95rem; }
.done-mark::before { content: ""; position: absolute; left: 20px; top: 1.35em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.done-mark b { display: block; font-family: var(--head); color: var(--green); font-size: 0.88rem; }
.trouble { border: 1px solid var(--line); border-radius: 10px; margin: 0 0 8px; background: #fff; }
.trouble summary { position: relative; cursor: pointer; list-style: none; padding: 12px 46px 12px 18px; font-weight: 700; font-size: 0.94rem; color: var(--ink); border-radius: 10px; }
.trouble summary::-webkit-details-marker { display: none; }
.trouble summary span { margin-left: 14px; font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.trouble summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; margin-top: -7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.trouble[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.trouble dl { margin: 0; padding: 0 18px 16px; font-size: 0.93rem; }
.trouble dt { font-weight: 700; color: var(--ink); margin-top: 12px; }
.trouble dt:first-child { margin-top: 2px; }
.trouble dd { margin: 4px 0 0; }
.code-wrap { margin: 0 0 22px; min-width: 0; }
.code-wrap .code-cap { text-align: left; }
.next-list { border-top: 1px solid var(--line); }
.next-list li { border-bottom: 1px solid var(--line); }
.next-list a { position: relative; display: block; padding: 18px 44px 18px 4px; text-decoration: none; color: var(--text); }
.next-list a::after { content: ""; position: absolute; right: 12px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 3px solid var(--blue); border-top: 3px solid var(--blue); transform: rotate(45deg); }
.next-list b { display: block; font-family: var(--head); color: var(--ink); font-size: 1.04rem; }
.next-list span { font-size: 0.9rem; line-height: 1.8; }
.next-list a:hover b { color: var(--blue); }

/* ---------- 説明ページ(ジョブの設定、運用とトラブル対応、ご利用の条件と制約) ---------- */
.ref { padding: 56px 0 96px; }
.ref .wrap { max-width: 908px; }
.ref section { padding-top: 60px; }
.ref section:first-child { padding-top: 0; }
.ref h2 { font-size: 1.45rem; font-weight: 900; padding-bottom: 12px; border-bottom: 3px solid var(--ink); margin-bottom: 22px; }
.ref h3 { font-size: 1.1rem; margin: 34px 0 12px; }
.ref .prose { margin-bottom: 18px; }
.ref .kv { margin-bottom: 24px; }
.ref .kv + .prose, .ref .kv + p.prose, .ref table + p.prose, .ref .check + p.prose { margin-top: 20px; }
.ref .check { margin: 0 0 4px; }
/* 症状ごとの対処(ページ内検索で探せるよう、開いたまま並べる) */
.sym { margin: 0 0 8px; }
.sym dt { position: relative; font-weight: 700; color: var(--ink); padding: 16px 0 0 18px; margin-top: 16px; border-top: 1px solid var(--line); }
.sym dt:first-child { border-top: 0; margin-top: 0; padding-top: 4px; }
.sym dt::before { content: ""; position: absolute; left: 0; bottom: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.sym dd { margin: 6px 0 0 18px; font-size: 0.94rem; }
.opt { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 0.93rem; line-height: 1.8; }
.opt th, .opt td { padding: 12px 16px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.opt thead th { font-size: 0.82rem; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.opt tbody th { width: 30%; color: var(--ink); }
.opt td:last-child, .opt th:last-child { padding-right: 0; }
.opt.env td:nth-child(2) { width: 7.5em; white-space: nowrap; }
.v { display: inline-block; min-width: 6.2em; text-align: center; font-weight: 700; font-size: 0.8rem; line-height: 1.9; border-radius: 4px; padding: 0 8px; }
.v-ok { background: var(--green-soft); color: var(--green); }
.v-set { background: var(--sky); color: var(--blue-dark); }
.v-no { background: #fdeceb; color: #b3261e; }

/* ---------- よくある質問 ---------- */
.faq-page { background: var(--sky); padding: 8px 0 88px; }
.qa-group { background: #fff; border-radius: 16px; max-width: 900px; margin: 0 auto 28px; padding: 34px 40px 14px; }
.qa-group h2 { font-size: 1.3rem; font-weight: 900; padding-bottom: 14px; border-bottom: 3px solid var(--ink); }
.qa-row { border-bottom: 1px solid var(--line); }
.qa-row:last-child { border-bottom: 0; }
.qa-row summary { position: relative; cursor: pointer; list-style: none; padding: 18px 40px 18px 36px; }
.qa-row summary::-webkit-details-marker { display: none; }
.qa-row summary::before { content: "Q"; position: absolute; left: 2px; top: 16px; font-family: var(--head); font-weight: 900; font-size: 1.1rem; color: var(--blue); line-height: 1.7; }
.qa-row summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; margin-top: -8px; border-right: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(45deg); }
.qa-row[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa-row summary h3 { display: inline; font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.7; text-wrap: wrap; }
.qa-row summary:hover h3 { color: var(--blue); }
.qa-row .a { padding: 0 8px 22px 36px; font-size: 0.95rem; }
.qa-row .a p { margin: 0 0 10px; }
.qa-row .a ul { list-style: disc; padding-left: 1.4em; margin: 0 0 10px; }
.qa-row .a li { margin-bottom: 4px; }
.qa-row .a > :last-child { margin-bottom: 0; }
.qa-row .a .rel { font-size: 0.88rem; color: var(--muted); }
.ask { max-width: 900px; margin: 0 auto; padding: 8px 8px 0; text-align: center; font-size: 0.95rem; }

/* 規約類 */
.doc > .wrap { padding-top: 40px; }

/* 幅をそろえて中央に置く(ほかの部品の余白指定より後ろに置く) */
.col, .col-s, .plans.wide, .eq, .extra { margin-left: auto; margin-right: auto; }

@media (max-width: 960px) {
  .flow6 { grid-template-columns: repeat(3, 1fr); }
  .s3 { grid-template-columns: 1fr; gap: 30px; }
  .s3 li:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .hd .wrap { padding-left: 16px; padding-right: 16px; gap: 0 10px; }
  .logo { font-size: 1rem; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
  .hd-cta .btn-s { padding: 8px 14px; font-size: 0.82rem; }
  /* 名前が長いので、幅の狭い画面ではヘッダーのボタンを出さない(1行目に収まらず、ボタンだけの行ができるため) */
  @media (max-width: 480px) { .hd-cta { display: none; } }
  .gnav { margin-left: -16px; margin-right: -16px; padding: 0 16px; width: calc(100% + 32px); }
  .pg-hero { padding: 36px 0 40px; }
  .doc-head { padding: 24px 0 28px; }
  .fam { gap: 2px 18px; font-size: 0.84rem; }
  .jump { gap: 4px 20px; }
  .jump a { font-size: 0.86rem; }
  .order li:not(:last-child)::after { width: 10px; }
  .flow6 { grid-template-columns: 1fr; gap: 8px; text-align: left; }
  .flow6 a { display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; row-gap: 4px; align-items: center; padding: 10px 14px; }
  .flow6 a::before { grid-row: 1 / span 2; width: 28px; height: 28px; line-height: 28px; }
  .flow6 b { grid-column: 2; }
  .flow6 .who { grid-column: 2; justify-self: start; margin: 0; }
  .prep, .lanes { grid-template-columns: 1fr; }
  .gstep, .gstep.goal { padding: 0 0 48px; }
  .gstep.goal { padding: 24px 18px; }
  .gstep::before { display: none; }
  .gstep-n, .gstep.goal .gstep-n { position: static; display: inline-flex; flex-direction: row; align-items: baseline; gap: 5px; width: auto; height: auto; border-radius: 999px; padding: 4px 16px; margin: 0 0 10px; font-size: 0.74rem; }
  .gstep-n b { font-size: 1.05rem; }
  .gstep-n i { font-size: 0.74rem; }
  .gstep h2 { padding-top: 0; }
  .gstep .who { margin-bottom: 18px; }
  .trouble summary span { display: block; margin: 2px 0 0; }
  .kv > div, .kv.wide > div { grid-template-columns: 1fr; gap: 2px; }
  .card, .extra { padding: 20px; }
  #contract .kv { padding: 20px; }
  .qa-group { padding: 24px 18px 6px; border-radius: 12px; }
  .qa-row summary { padding-right: 32px; padding-left: 30px; }
  .qa-row summary::after { right: 4px; }
  .qa-row .a { padding-left: 30px; padding-right: 0; }
  .ref { padding: 36px 0 64px; }
  .ref section { padding-top: 48px; }
  .opt, .opt tbody, .opt tr, .opt th, .opt td { display: block; width: auto; }
  .opt thead { display: none; }
  .opt tbody th { width: auto; border-bottom: 0; padding: 14px 0 2px; }
  .opt td { padding: 0 0 12px; border-bottom: 0; }
  .opt tr { border-bottom: 1px solid var(--line); }
  .opt.env td:nth-child(2) { width: auto; padding: 4px 0 6px; }
}
@media print {
  .hd, .skip, .last, .hero-cta, .fam, .jump, .flowband { display: none; }
  body { font-size: 11pt; }
}
