/* ==========================================================
   生成りの地に墨色の文字、差し色は深い青緑。動きはおしゃれにシンプルに
   スマホを基準に書き、大きな画面だけ左右に組む
   ========================================================== */

/* --- 基本の値 --- */
:root {
  /* 生成りの地に墨色の文字、差し色は深い青緑（デザイン見本のクリニックと同じ色味） */
  --paper: #F5F3ED;
  --paper-deep: #ECE9E1;
  --white: #FBFAF7;
  --accent-soft: #8DB3AE;
  --red: #B8432E;
  --accent: #2E5E5A;
  --accent-deep: #224845;
  --ink: #24302F;
  --ink-soft: #4A5553;
  --line: rgba(36, 48, 47, .16);
  --line-strong: #7F8A88;

  /* 外部フォントが無くても成り立つよう、端末にある書体を順に並べる */
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium",
    "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif;

  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* 固定の帯の裏にフォーカス先が隠れないようにする */
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--gothic);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.9;
  line-break: strict;
  overflow-wrap: anywhere;
}

p, ul, ol, dl, dd, figure, h1, h2, h3, h4 { margin: 0; }
ul[role="list"], ol[role="list"] { padding: 0; list-style: none; }
strong { font-weight: 700; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* --- 共通の枠 --- */
.wrap { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 30;
  padding: .625rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.ph { display: inline-block; max-width: 100%; }

h1, h2, h3, h4 { font-feature-settings: "palt"; }
h1 {
  font-size: clamp(2.125rem, 9vw, 3.25rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.35;
}
h2 {
  font-size: clamp(1.625rem, 1.2rem + 1.9vw, 2.5rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.5;
}
h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.6; }

/* --- 試作の表示 --- */
.proto-band {
  padding: .25rem 1.25rem;
  color: var(--white);
  background: var(--ink);
  font-size: .875rem;
  line-height: 1.7;
  text-align: center;
}
.proto-note {
  padding-left: .75rem;
  border-left: 3px solid var(--accent-soft);
  color: var(--ink-soft);
  font-size: .875rem;
  line-height: 1.75;
}

/* --- 上部の帯 --- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .625rem clamp(1.25rem, 3.5vw, 3.5rem);
  /* どの画面幅でも付いてくる。無料相談をいつでも押せるようにする */
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.site-name { font-weight: 700; line-height: 1.4; text-decoration: none; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav a {
  position: relative;
  display: inline-block;
  padding-block: .625rem;
  font-size: .9375rem;
  line-height: 1.5;
  text-decoration: none;
}
.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: .375rem;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after, .site-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* --- ボタン --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
  min-height: 3.5rem;
  padding: .5rem 2.25rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: var(--white);
  background: var(--accent);
  font: 700 1rem/1.4 var(--gothic);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease-out, border-color .2s ease-out, color .2s ease-out;
}
.btn:hover, .btn:focus-visible { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--line { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--ink); }
.btn--line:hover, .btn--line:focus-visible { color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn--small { flex: none; width: auto; min-height: 2.75rem; padding: .25rem 1.25rem; font-size: .9375rem; }
.btn__arrow {
  flex: none;
  width: 1.5rem;
  height: .75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__arrow, .btn:focus-visible .btn__arrow { transform: translateX(4px); }

.btn-plain {
  min-height: 2.75rem;
  padding: .5rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  font: 700 1rem/1.5 var(--gothic);
  cursor: pointer;
  transition: background-color .2s ease-out, color .2s ease-out;
}
.btn-plain:hover { color: var(--white); background: var(--ink); }

/* --- 1. 最初の画面 --- */
.hero { position: relative; overflow: hidden; background: var(--paper); }
/* 青空の写真の下の端を、地の生成りへつなぐ */
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 30%; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero__sky {
  position: absolute;
  inset: -6% 0 0;
  background: url("img/sky.webp") center top / cover no-repeat;
  will-change: transform;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  width: min(100% - 2.5rem, 76rem);
  margin-inline: auto;
  padding-block: 3rem 3.5rem;
}
.hero__text { display: grid; gap: 1.25rem; justify-items: start; }
.hero__tag { font-size: .9375rem; font-weight: 700; }
.hero__lead { max-width: 34rem; }
.hero__actions { display: grid; gap: .75rem; width: 100%; }

/* 行ごとに下からせり上がる。文字そのものは最初から本文にあり、終わると全部見える */
.line { display: block; overflow: hidden; padding-block: .06em; }
.line__in { display: block; }

/* 見本の画面を重ねて浮かべる */
.hero__stack { position: relative; aspect-ratio: 16 / 11; }
.float { position: absolute; display: block; width: 68%; border-radius: 12px; }
/* 浮かぶ動きは .float、押せる合図の持ち上がりは中の .float__card に分けて、動きどうしを打ち消さない */
.float__card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(36, 48, 47, .22);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.float__card img { display: block; width: 100%; height: auto; }
.float__label {
  position: absolute;
  bottom: .75rem;
  left: .75rem;
  padding: .25rem .875rem;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s, transform .25s var(--ease);
}
.float:hover, .float:focus-visible { z-index: 4; }
.float:hover .float__card, .float:focus-visible .float__card { transform: translateY(-8px) scale(1.03); box-shadow: 0 28px 60px rgba(36, 48, 47, .3); }
.float:hover .float__label, .float:focus-visible .float__label { opacity: 1; transform: none; }
.float--1 { top: 0; left: 0; z-index: 1; }
.float--2 { top: 18%; right: 0; z-index: 2; }
.float--3 { bottom: 0; left: 12%; z-index: 3; }

/* --- セクションの共通部品 --- */
.sec { padding-block: clamp(4.5rem, 3.5rem + 4.5vw, 8rem); background: var(--paper); }
.sec--paper-deep { background: var(--paper-deep); }
.sec__head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.sec__head .sec-label { margin-bottom: 0; }
.sec-label {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-bottom: .875rem;
  color: var(--accent);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.5;
}
.sec-label::before {
  content: "";
  width: 1.75rem;
  height: 2px;
  background: currentColor;
  transform-origin: left;
  transition: transform .7s var(--ease) .1s;
}
.is-pending .sec-label::before, .sec__head.is-pending .sec-label::before { transform: scaleX(0); }

.prose { display: grid; gap: 1rem; }
.split { display: grid; gap: 2rem; }

/* --- キャンペーンへのバナー。水玉が流れ、値段が数え下がる --- */
.banner-wrap { margin-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) 0; }
.cp-banner {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: 0;
  color: var(--ink);
  background-color: #D3ECFD;
  border: 3px solid #5A3A24;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: 0 6px 0 #5A3A24;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cp-banner:hover, .cp-banner:focus-visible { transform: translateY(2px); box-shadow: 0 4px 0 #5A3A24; }
/* 絵の左端を地の色へ溶かし、四角い境目を見せない */
.cp-banner__art { width: 100%; }
.cp-banner__text { position: relative; z-index: 1; display: grid; gap: .25rem; align-content: center; justify-items: start; padding: .75rem 4.5rem 1.5rem 1.25rem; }
.cp-banner__kicker { padding: .125rem .75rem; color: var(--white); background: var(--red); border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.cp-banner__title { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); font-weight: 700; line-height: 1.4; }
.cp-banner__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .75rem; }
.cp-banner__market { padding: .125rem .5rem; background: rgba(255, 255, 255, .85); border-radius: 6px; font-size: .9375rem; font-weight: 700; }
.cp-banner__arrow { font-weight: 700; }
.cp-banner__zero { color: var(--red); font-size: clamp(2.75rem, 2rem + 4vw, 4.5rem); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; -webkit-text-stroke: 1px #5A3A24; text-shadow: 3px 3px 0 var(--white); }
.cp-banner__lead { padding: .125rem .5rem; background: rgba(255, 255, 255, .85); border-radius: 6px; font-size: .9375rem; font-weight: 700; }
.cp-banner__go { position: absolute; right: 1rem; bottom: 1rem; z-index: 1; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; color: var(--white); background: var(--accent); border: 3px solid #5A3A24; border-radius: 50%; }
.cp-banner__go svg { width: 1.25rem; height: .75rem; fill: none; stroke: currentColor; stroke-width: 2.5; transition: transform .25s var(--ease); }
.cp-banner:hover .cp-banner__go svg { transform: translateX(3px); }

/* --- 2. チームについて --- */
.points { display: grid; gap: 1.5rem; }
.point { display: grid; gap: .375rem; align-content: start; }
.point__art { width: 100%; margin-bottom: .75rem; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid #5A3A24; border-radius: var(--radius); }
.point__scene { position: relative; margin-bottom: .75rem; container-type: inline-size; }
.point__scene .point__art { margin-bottom: 0; }
.point__say { position: absolute; top: 14.5%; width: 26%; color: var(--ink); font-size: clamp(.625rem, 4.4cqi, .9375rem); font-weight: 700; line-height: 1.4; text-align: center; transform: translate(-50%, -50%); }
.point__say--left { left: 19%; }
.point__say--right { left: 81%; }
.point__no { color: var(--accent); font-size: .9375rem; font-weight: 800; letter-spacing: .08em; }
.point h3 { font-size: 1.3125rem; }

@media (min-width: 48rem) {
  .cp-banner { min-height: 13rem; padding: 1.25rem 45% 1.25rem clamp(1.25rem, 4vw, 3rem); }
  .cp-banner__text { padding: 0; }
  /* 絵の左端を地の色へ溶かし、四角い境目を見せない */
  .cp-banner__art { position: absolute; right: 0; bottom: 0; width: auto; height: 100%; max-width: none; -webkit-mask-image: linear-gradient(to right, transparent, #000 35%); mask-image: linear-gradient(to right, transparent, #000 35%); }
}
/* 数え下げが0円で止まった時に弾ませ、光の筋をときどき横切らせる */
@media (prefers-reduced-motion: no-preference) {
  .cp-banner::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .55) 50%, transparent 60%);
    pointer-events: none;
    transform: translateX(-100%);
    animation: cp-shine 5s ease-in-out 2.5s infinite;
  }
  @keyframes cp-shine { 0% { transform: translateX(-100%); } 30%, 100% { transform: translateX(100%); } }
  .cp-banner__zero { display: inline-block; }
  .cp-banner__zero.is-done { animation: cp-pop .6s cubic-bezier(.3, 1.6, .5, 1); }
  @keyframes cp-pop { 0% { transform: scale(1); } 40% { transform: scale(1.25) rotate(-4deg); } 100% { transform: scale(1); } }
}

/* 見本の章から、キャンペーンへ */
.works__cp { display: inline-block; padding: .625rem 1.125rem; color: var(--ink); background: var(--white); border: 2px solid var(--accent); border-radius: 999px; font-weight: 700; line-height: 1.6; text-decoration: none; transition: background-color .2s; }
.works__cp strong { color: var(--red); }
.works__cp:hover, .works__cp:focus-visible { background: var(--paper-deep); }

/* 制作の流れの階段の図。各段に、下の一覧と同じ番号と名前を重ねる */
.flow__scene { position: relative; margin-bottom: 2rem; container-type: inline-size; }
.flow__art { width: 100%; border: 3px solid #5A3A24; border-radius: var(--radius); }
.flow__steps li { position: absolute; top: var(--y); left: var(--x); display: flex; align-items: center; gap: .375rem; color: var(--ink); font-size: clamp(.6875rem, 1.25cqi, .9375rem); font-weight: 700; white-space: nowrap; transform: translate(-50%, -50%); }
.flow__steps span { padding: .0625rem .5rem; background: var(--white); border: 2px solid #5A3A24; border-radius: 999px; }
.flow__steps b { display: grid; place-items: center; width: 1.75em; height: 1.75em; color: var(--white); background: var(--accent); border-radius: 50%; }
@container (max-width: 40rem) {
  .flow__steps li { font-size: .6875rem; }
  .flow__steps span { display: none; }
}

/* --- 開く時の演出と、ページを移る時の演出 --- */
.page-veil {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--accent);
  font-size: clamp(2.5rem, 2rem + 6vw, 6rem);
  font-weight: 800;
  pointer-events: none;
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%));
  transition: clip-path .65s cubic-bezier(.7, 0, .2, 1);
}
.page-veil.is-on { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.page-veil span { opacity: 0; transform: scale(.6); transition: opacity .3s .3s, transform .5s cubic-bezier(.3, 1.6, .5, 1) .3s; }
.page-veil.is-on span { opacity: 1; transform: none; }

.is-intro body::before, .is-intro body::after { position: fixed; z-index: 9998; pointer-events: none; }
.is-intro body::before {
  content: "";
  inset: 0;
  background: var(--accent);
  animation: intro-wipe .9s cubic-bezier(.7, 0, .2, 1) .9s both;
}
.is-intro body::after {
  content: "Web制作をする、チームです。";
  top: 50%;
  left: 50%;
  color: var(--white);
  font-size: clamp(1.25rem, 1rem + 2vw, 2.25rem);
  font-weight: 700;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  animation: intro-word 1.6s ease both;
}
@keyframes intro-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes intro-word { 0% { opacity: 0; transform: translate(-50%, -30%); } 25%, 55% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -80%); } }
.is-intro .line__in { animation-delay: 1.5s; }
.is-intro .line:nth-child(2) .line__in { animation-delay: 1.62s; }
.is-intro .hero__tag, .is-intro .hero__lead, .is-intro .hero__actions { animation-delay: 1.85s; }
.is-intro .float { animation-delay: 1.6s, 2.8s; }
.is-intro .float--2 { animation-delay: 1.75s, 3.1s; }
.is-intro .float--3 { animation-delay: 1.9s, 3.4s; }

/* --- 3. デザイン見本 --- */
.works { display: grid; gap: 1.5rem; }
.work {
  display: block;
  overflow: hidden;
  height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 var(--line);
  text-decoration: none;
  transition: box-shadow .35s var(--ease);
}
.work img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top; transition: transform .7s var(--ease); }
.work:hover img, .work:focus-visible img { transform: scale(1.04); }
.work:hover, .work:focus-visible { box-shadow: 0 16px 40px rgba(36, 48, 47, .14); }
.work__meta { position: relative; display: grid; gap: .125rem; padding: 1rem 1.25rem 1.25rem; background: var(--white); }
.work__kind { color: var(--accent); font-size: .875rem; font-weight: 700; }
.work__name { font-weight: 700; line-height: 1.6; }
.work__also { color: var(--ink-soft); font-size: .875rem; line-height: 1.6; }
.work__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .375rem .625rem; margin-top: .5rem; padding-top: .625rem; border-top: 1px solid var(--line); }
.work__market { color: var(--ink-soft); font-size: .875rem; }
.work__arrow { color: var(--ink-soft); }
.work__zero { color: var(--accent); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.works__note { display: grid; gap: .75rem; margin-top: 2rem; color: var(--ink-soft); font-size: .875rem; line-height: 1.75; }

/* --- 4. 安心の約束 --- */
.promises { display: grid; }
.promises > div { padding-block: 1.25rem; border-top: 1px solid var(--line); }
.promises dt { margin-bottom: .25rem; font-size: 1.125rem; font-weight: 700; line-height: 1.6; }

/* --- 5. 料金 --- */
.plans { display: grid; gap: 1.25rem; }
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
}
.plan--accent { color: var(--white); background: var(--accent); }
.plan dl { display: flex; flex: 1; flex-direction: column; gap: 1rem; }
.plan dt { font-size: .875rem; font-weight: 700; }
.plan__price { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.plan--accent .plan__price { border-top-color: rgba(255, 255, 255, .4); }
.kari {
  display: inline-block;
  margin-left: .5em;
  padding-inline: .5em;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: .75rem;
  line-height: 1.5;
}
.price { font-size: 1.875rem; font-weight: 700; font-feature-settings: "palt"; line-height: 1.4; }
.price--tbd { font-size: 1.125rem; }
.plan--accent .price { font-size: 3rem; line-height: 1.1; }
.plan__cp { margin-left: .5rem; padding: 0 .5rem; color: var(--red); background: var(--white); border-radius: 999px; font-size: .75rem; }
.plans__cp { margin-top: 1rem; }
.plans__notes { display: grid; gap: 1.5rem; margin-top: 2rem; }
.plans__columns { display: grid; gap: 1.5rem; }
.plans__columns h3 { margin-bottom: .375rem; }

/* --- 6. 制作の流れ --- */
.steps { display: grid; counter-reset: step; }
.steps li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.5rem;
  border-top: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1.25rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--accent);
  font-weight: 700;
  line-height: 1;
}
.steps .proto-note { margin-top: .5rem; }

/* --- 7. メンバー --- */
.members { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.member { display: grid; grid-template-columns: minmax(0, 1fr); gap: .25rem; align-content: start; min-width: 0; }
.member h3 { font-size: 1.25rem; }
.member__photo {
  display: grid;
  align-content: center;
  justify-items: center;
  aspect-ratio: 4 / 3;
  margin-bottom: .875rem;
  color: var(--ink-soft);
  background: var(--white);
  border-radius: var(--radius);
  font-size: .9375rem;
  line-height: 1.7;
}
.member__role { color: var(--ink-soft); }
.member__tel {
  width: fit-content;
  max-width: 100%;
  margin-block: .25rem;
  padding: .125rem .875rem;
  color: var(--white);
  background: var(--accent);
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.7;
}
.members__note { margin-top: 2rem; color: var(--ink-soft); }

/* --- 8. よくある質問 --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  min-height: 3.5rem;
  padding: 1rem 2.5rem 1rem 0;
  font-weight: 700;
  line-height: 1.65;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  right: .25rem;
  width: 1rem;
  height: 2px;
  background: var(--accent);
  transition: transform .3s var(--ease);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: none; }
.faq details p { padding-bottom: 1.25rem; }

/* --- 9. お問い合わせ --- */
.closing { background: linear-gradient(var(--white), var(--paper-deep)); }
.signature { display: grid; font-weight: 700; line-height: 1.8; }
.contact { display: grid; gap: 1.25rem; }
.reply {
  min-width: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(36, 48, 47, .09);
}
.reply h3 { margin-bottom: 1.25rem; font-size: 1.375rem; }

.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .25rem; min-width: 0; }
.field label { font-weight: 700; line-height: 1.7; }
.req, .opt {
  display: inline-block;
  margin-left: .25em;
  padding-inline: .5em;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: .1em;
}
.req { color: var(--white); background: var(--ink); border-color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .625rem .875rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: var(--white);
  font: 500 1rem/1.7 var(--gothic);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--ink); border-width: 3px; }
.field__error, .form__status { font-weight: 700; line-height: 1.7; }
.field__error::before { content: "確認 "; }
.form__status { padding: .625rem .875rem; border: 2px solid var(--ink); border-radius: 10px; }

.confirm { display: grid; gap: 1rem; }
.confirm h4 { font-size: 1.1875rem; font-weight: 700; }
.confirm h4:focus { outline: none; }
.confirm__warn { padding: .625rem .875rem; border: 2px solid var(--ink); border-radius: 10px; font-weight: 700; }
.confirm__list > div { padding-block: .625rem; border-top: 1px solid var(--line); }
.confirm__list dt { color: var(--ink-soft); font-size: .875rem; }
.confirm__list dd { white-space: pre-wrap; }
.confirm .btn-plain { justify-self: start; }

.tel-card { align-self: start; padding: 1.5rem; background: var(--white); border-radius: var(--radius); }
.tel-card__title { color: var(--ink-soft); font-size: .875rem; font-weight: 700; }
.tel-card__number { font-size: 1.5rem; font-weight: 700; line-height: 1.6; }

/* --- フッター --- */
.site-footer { padding-block: 2.5rem; color: var(--white); background: var(--ink); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.footer__note { font-size: .875rem; }
.footer__top { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; text-underline-offset: .25em; }

/* --- 404 ページ --- */
.page-plain { background: var(--paper); }
.notfound { display: grid; gap: 1.5rem; padding-block: 3rem 5rem; }
.notfound > * { max-width: 40rem; }
.notfound .btn { width: fit-content; }
.notfound h1 { font-size: clamp(1.5rem, 1.15rem + 2vw, 2.75rem); }

/* --- 動き。動きを減らす設定では一切かからない --- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  [data-reveal].is-pending { opacity: 0; transform: translateY(24px); }
  .works li:nth-child(2) { transition-delay: .08s; }
  .works li:nth-child(3) { transition-delay: .16s; }
  .works li:nth-child(5) { transition-delay: .08s; }
  .works li:nth-child(6) { transition-delay: .16s; }
  .works li:nth-child(7) { transition-delay: .08s; }

  .line__in { animation: line-up 1s var(--ease) both; }
  .line:nth-child(2) .line__in { animation-delay: .12s; }
  @keyframes line-up { from { transform: translateY(110%); } to { transform: none; } }

  .hero__tag, .hero__lead, .hero__actions { animation: soft-in .9s var(--ease) .35s both; }
  @keyframes soft-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

  .float { animation: float-in 1.1s var(--ease) both, float-idle 7s ease-in-out 1.2s infinite alternate; }
  .float--2 { animation-delay: .15s, 1.5s; }
  .float--3 { animation-delay: .3s, 1.8s; }
  @keyframes float-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  @keyframes float-idle { from { transform: none; } to { transform: translateY(-10px); } }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__arrow, .btn-plain, .work, .work img, .cp-banner, .cp-banner__go svg, .works__cp, .float__card, .float__label, .site-nav a::after, .faq summary::before, .faq summary::after { transition: none; }
}

/* --- タブレット以上 --- */
@media (min-width: 48rem) {
  .btn { width: fit-content; min-width: 14rem; }
  .btn--small { min-width: 0; }
  .hero__actions { display: flex; flex-wrap: wrap; }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans, .members, .points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .members { gap: 1.5rem; }
  .member__photo { aspect-ratio: 4 / 5; }
  .plans__columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
  .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .contact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .reply { padding: 2rem; }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
  .split--narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

/* --- パソコン --- */
@media (min-width: 60rem) {
  .promises, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .works { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .works li { grid-column: span 2; }
  .works li:nth-child(n + 4) { grid-column: span 3; }
}

/* --- 大きな画面 --- */
@media (min-width: 68rem) {
  .site-nav { display: block; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 3rem;
    min-height: min(calc(100svh - 6rem), 52rem);
    padding-block: 3rem 5rem;
  }
  h1 { font-size: clamp(3rem, 4.4vw, 4.5rem); }
}

/* --- 印刷では全部を見せる --- */
@media print {
  [data-reveal].is-pending { opacity: 1; transform: none; }
  .skip-link { display: none; }
  .site-header { position: static; }
}
