/* ヒトリダチ サービスサイト 第3版 — 土台（色・文字・ボタン・ヘッダー・登場の動き）
   型はバクラク請求書受取にそろえる（鮮やかな青の面・白い見出し・左右分割のカード）。評価は docs/lp/eval_v2.md */
:root {
  --paper: #ffffff;
  --paper-2: #f3f6fc;
  --indigo-50: #eef2fd;
  --indigo-100: #dfe6fb;
  --ink: #1a2238;
  --ink-2: #3d4763;
  --muted: #6b7489;
  --line: #e4e8f1;
  --line-cool: #e3e8f3;
  --brand: #3557e0;
  --brand-2: #4b6bf0;
  --brand-deep: #2340b8;
  --lime: #d9f25c;
  --sun: #ffc933;
  --sun-deep: #f2b705;
  --sun-soft: #fff1c2;
  --shu: #e0482c;
  --good: #2e9e6b;
  --good-bg: #e3f5ec;
  --bad: #c2503d;
  --bad-bg: #fbe9e5;
  --hold: #56607a;
  --hold-bg: #e9edf5;
  --navy: #14213d;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 50px rgba(26, 34, 56, 0.12);
  --shadow-sm: 0 6px 18px rgba(26, 34, 56, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-num: "Inter", "Noto Sans JP", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; letter-spacing: 0.03em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, figcaption, .lead { word-break: auto-phrase; text-wrap: pretty; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.wrap { width: min(1120px, 100% - 64px); margin-inline: auto; }
.wrap--narrow { width: min(860px, 100% - 64px); }
.pc { display: inline; }
.sp { display: none; }

/* ---- 区画の見出し（英字の小見出し＋日本語の見出し） ---- */
.sec { padding: 110px 0; }
.sec--tint { background: var(--paper-2); }
.sec-head { margin-bottom: 52px; text-align: center; }
.sec-head--left { text-align: left; }
.en { display: inline-block; margin-bottom: 14px; padding: 2px 12px; border-radius: 4px; background: var(--lime); color: var(--ink); font-family: var(--font-num); font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; line-height: 1.5; letter-spacing: 0.02em; }
.h2 em { font-style: normal; color: var(--brand); }
.lead { max-width: 40em; margin: 18px auto 0; color: var(--ink-2); }
.sec-head--left .lead { margin-left: 0; }
.source { margin-top: 18px; font-size: 12px; line-height: 1.7; color: var(--muted); }

/* ---- ボタン ---- */
.btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 8px 48px 8px 32px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 17px; line-height: 1.35; text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, color 0.2s; }
.btn small { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; }
.btn--sm { min-height: 40px; padding: 6px 18px; font-size: 14px; }
.btn--lg { min-height: 66px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 14px rgba(242, 183, 5, 0.35); }
.btn--sun:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(242, 183, 5, 0.4); }
.btn--white { background: #fff; color: var(--brand); border-color: #fff; }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 34, 56, 0.18); }
.btn--line { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--line:hover { background: var(--brand); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn__arrow { position: absolute; right: 22px; top: 50%; width: 8px; height: 8px; border-top: 2.5px solid currentColor; border-right: 2.5px solid currentColor; transform: translateY(-50%) rotate(45deg); transition: right 0.25s var(--ease); }
.btn:hover .btn__arrow { right: 18px; }
.btn--sm .btn__arrow { display: none; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 14px 16px; }
.cta-pair--center { justify-content: center; }

/* ---- ヘッダー ---- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { position: relative; display: inline-flex; align-items: flex-end; gap: 3px; width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: var(--brand); }
.logo__mark i { display: block; width: 3px; border-radius: 2px; background: #fff; }
.logo__mark i:nth-child(1) { height: 8px; }
.logo__mark i:nth-child(2) { height: 13px; }
.logo__mark i:nth-child(3) { height: 18px; background: var(--sun); }
.logo__name { font-weight: 900; font-size: 20px; letter-spacing: 0.06em; }
.logo__desc { font-size: 11px; font-weight: 700; color: var(--muted); line-height: 1.3; }
.logo--light { color: #fff; }
.site-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 700; }
.site-nav a { position: relative; text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__cta { display: flex; gap: 10px; }

/* ---- 登場の動き（画面に入ると下から浮かぶ） ---- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---- 下に固定する申込ボタン（スマホ） ---- */
.sticky-cta { display: none; }

/* ---- フッター ---- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 34px 0 110px; }
.site-footer__copy { margin-left: auto; }

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-header__cta { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ===== 第4版: 仕上げ（ロゴ・文字組み） ===== */
.logo__mark { display: block; width: 34px; height: 34px; padding: 0; background: none; border-radius: 0; }
.logo__name { font-family: var(--font-num); font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
h1, h2, h3, .fv__cat, .en, .btn, .point__no { font-feature-settings: "palt"; }
.h2 { letter-spacing: 0.04em; }
.fv__title { letter-spacing: 0.03em; }
.site-nav a { white-space: nowrap; }
.logo { gap: 9px; }
.logo__desc { padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); font-size: 10.5px; line-height: 1.45; }
.logo__img { display: block; height: 32px; width: auto; }
.site-footer .logo__img { height: 26px; }
/* 本文も文節で改行する（スマホで語の途中で割れないように） */
p, li, dd, dt, b, .who, .q-tag, .source { word-break: auto-phrase; }
.logo__desc { font-size: 12px; }
/* 区画の見出しの左寄せの型（見出しは左、説明は右） */
.sec-head[data-split] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: end; text-align: left; }
.sec-head[data-split] .en { grid-column: 1; justify-self: start; }
.sec-head[data-split] .h2 { grid-column: 1; }
.sec-head[data-split] .lead { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: end; max-width: none; }
.sec-head[data-split] .lead small { display: block; }
