/* KEYCLE video — design tokens (yellow base, rounded, friendly)
   yellow       #eeff55  brand yellow (from the leather blog)
   yellow-soft  #f8ffbf  tint
   yellow-pale  #fcffe6  section wash
   ink          #16251c  text (deep green-black; always dark on yellow)
   sub          #51605a  secondary text
   green        #3fa564  small accents (ticks, dots)
   line         #e3e9bd  card borders
   warm         #ffb23d  floating button gradient end
*/
:root {
  --yellow: #eeff55;
  --yellow-soft: #f8ffbf;
  --yellow-pale: #fcffe6;
  --ink: #16251c;
  --sub: #51605a;
  --green: #3fa564;
  --line: #e3e9bd;
  --warm: #ffb23d;
  --paper: #ffffff;
  --radius: 18px;
  --measure: 40rem;
  --wide: 66rem;
  --font: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", sans-serif;
  --shadow: 0 8px 24px rgba(90, 110, 0, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: 0.03em;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}
img, iframe { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-color: var(--green); text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 20; }
.skip:focus { top: 0.5rem; }

/* header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; max-width: var(--wide); margin: 0 auto; padding: 0.9rem 1.25rem;
}
.brand { font-weight: 800; letter-spacing: 0.16em; text-decoration: none; color: var(--ink); font-size: 1.15rem; }
.brand small { font-weight: 500; letter-spacing: 0.04em; color: var(--sub); margin-left: 0.7em; font-size: 0.78rem; }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: 0.92rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 0.2rem 0; border-bottom: 3px solid transparent; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--yellow); }
.nav a.nav-cta {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px;
  padding: 0.35rem 1.1rem; font-weight: 800;
}
.nav a.nav-cta:hover { background: var(--ink); color: var(--yellow); }

main { display: block; }

/* sections */
.section { padding: 5rem 1.25rem; }
.section.wash { background: linear-gradient(180deg, var(--yellow-pale) 0%, var(--yellow-soft) 100%); }
.section.yellow { background: var(--yellow); }
.inner { max-width: var(--measure); margin: 0 auto; }
.inner.wide { max-width: var(--wide); }
.center { text-align: center; }
.center .inner > p, .center .inner > .note { text-align: center; }

/* section label = highlighter stroke */
.label {
  display: inline-block; margin: 0 0 1rem; padding: 0.15rem 1.2rem;
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.22em; color: var(--ink);
  background: linear-gradient(100deg, transparent 0, var(--yellow) 6%, var(--yellow) 94%, transparent 100%);
  transform: rotate(-1.5deg);
}
h1, h2, h3 { line-height: 1.5; margin: 0; font-weight: 800; letter-spacing: 0.04em; }
h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4.2vw, 2.15rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
p { margin: 0 0 1.4em; }
.lead { font-size: 1.08rem; }
.note { font-size: 0.88rem; color: var(--sub); line-height: 1.8; }
.mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 0.1em; }

/* hero */
.hero { padding: 3.5rem 1.25rem 5rem; background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-soft) 55%, #fff 100%); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.badge {
  display: inline-block; margin: 0 0 1.2rem; padding: 0.25rem 1.1rem;
  background: rgba(255,255,255,0.75); border: 2px solid var(--ink); border-radius: 999px;
  font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em;
}
.hero .pre { font-weight: 700; margin: 0 0 0.4rem; color: var(--sub); }
.hero h1 { margin-bottom: 1.6rem; font-size: clamp(1.6rem, 4.4vw, 2.4rem); }
.hero .sub { font-size: 1.05rem; margin: 0 0 0.5rem; }
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(16rem, 70%); aspect-ratio: 9 / 16; background: #fff; border: 4px solid var(--ink);
  border-radius: 28px; box-shadow: 10px 12px 0 var(--ink), var(--shadow);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0; overflow: hidden; color: var(--sub); font-size: 0.85rem; transform: rotate(3deg);
}
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; }

.quote-list { list-style: none; margin: 0 0 1.6em; padding: 0; }
.quote-list li {
  position: relative; background: var(--yellow-pale); border: 2px solid var(--line); border-radius: 14px;
  padding: 0.7rem 1rem 0.7rem 2.6rem; margin-bottom: 0.7rem;
}
.quote-list li::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 0.9rem; height: 0.9rem; margin-top: -0.45rem;
  border-radius: 50%; background: var(--green);
}
.strong-line { font-weight: 800; font-size: 1.15rem; line-height: 1.8; }

/* before / after */
.ba { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .ba { grid-template-columns: 1fr 1fr; } }
.ba figure { margin: 0; text-align: left; }
.ba .frame {
  aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center;
  background: #fff; border: 2px dashed var(--sub); border-radius: var(--radius); color: var(--sub); font-size: 0.9rem; padding: 1rem;
}
.ba figcaption {
  display: inline-block; margin-top: 0.7rem; padding: 0.1rem 1rem; font-weight: 800;
  background: var(--yellow); border-radius: 999px;
}

/* case image */
.case-head { font-size: clamp(1.25rem, 3.6vw, 1.7rem); margin: 0 0 1.5rem; }
.cases { display: grid; gap: 2rem; }
.cases + .note { margin-top: 3.5rem; margin-bottom: 0; }
.case { margin: 0; }
.case picture { display: block; }
.case img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

/* three points = step cards */
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 52rem) { .points { grid-template-columns: repeat(3, 1fr); } }
.points li {
  position: relative; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 3.4rem 1.5rem 1.6rem; box-shadow: var(--shadow);
}
.points li::before {
  counter-increment: p; content: counter(p);
  position: absolute; left: 1.5rem; top: -1.3rem; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); border: 3px solid var(--ink);
  font-size: 1.3rem; font-weight: 800; color: var(--ink);
}
.points { counter-reset: p; }
.points h3 { margin-bottom: 0.7rem; }
.points p { margin: 0; font-size: 0.95rem; }

/* plan cards */
.plans { display: grid; gap: 1.5rem; grid-template-columns: 1fr; text-align: left; }
@media (min-width: 46rem) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: 6px 6px 0 var(--ink);
}
.plan h3 { font-size: 1.2rem; background: var(--yellow); margin: 0; padding: 1rem 1.5rem; border-bottom: 2px solid var(--ink); }
.plan .body { padding: 1.4rem 1.5rem 1.6rem; }
.plan p { margin: 0 0 0.8em; }
.plan p:last-child { margin-bottom: 0; }
.plan .for { color: var(--sub); font-size: 0.92rem; font-weight: 700; }

/* flow */
.flow { list-style: none; margin: 0 0 1.5rem; padding: 0; counter-reset: f; }
.flow li {
  counter-increment: f; position: relative; background: #fff; border: 2px solid var(--line); border-radius: 14px;
  padding: 0.9rem 1rem 0.9rem 3.6rem; margin-bottom: 0.8rem;
}
.flow li::before {
  content: counter(f); position: absolute; left: 0.9rem; top: 0.95rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
}
.flow strong { display: block; }
.flow span { display: block; font-size: 0.92rem; color: var(--sub); line-height: 1.8; }
.phase {
  display: inline-block; font-weight: 800; margin: 1.8rem 0 0.8rem; padding: 0.1rem 1rem;
  background: var(--yellow); border-radius: 999px;
}

/* price */
.price-table { width: 100%; border-collapse: separate; border-spacing: 0 0.7rem; margin: 0; }
.price-table th, .price-table td { text-align: left; padding: 1rem 1.2rem; background: #fff; vertical-align: middle; }
.price-table th { font-weight: 800; width: 42%; border: 2px solid var(--line); border-right: 0; border-radius: 14px 0 0 14px; }
.price-table td { border: 2px solid var(--line); border-left: 0; border-radius: 0 14px 14px 0; }
.price-table .yen { font-size: 1.45rem; font-weight: 800; white-space: nowrap; background: linear-gradient(transparent 62%, var(--yellow) 62%); }
.price-table small { display: block; color: var(--sub); font-size: 0.85rem; font-weight: 500; line-height: 1.7; }

.rules { margin: 0 0 1.5rem; padding-left: 0; list-style: none; }
.rules li { position: relative; padding-left: 1.5rem; margin-bottom: 0.6rem; }
.rules li::before { content: ""; position: absolute; left: 0.2rem; top: 0.8em; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--green); }
.section h3 { margin-top: 2.2rem; }
.section h3:first-child { margin-top: 0; }
.btn-row + h2 { margin-top: 3.5rem; }

/* buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 2rem 0 0; }
.center .btn-row { justify-content: center; }
.btn {
  display: inline-block; min-height: 3.2rem; padding: 0.75rem 2.2rem;
  background: linear-gradient(135deg, #f8ffa8 0%, var(--yellow) 100%); color: var(--ink); text-decoration: none; font-weight: 800;
  border: 2px solid var(--ink); border-radius: 999px; text-align: center; line-height: 1.6;
  box-shadow: 0 4px 0 var(--ink); transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn.ghost { background: #fff; }
.btn[hidden] { display: none; }

/* Q&A */
.qa { text-align: left; }
.qa details { background: #fff; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 0.8rem; }
.qa details[open] { border-color: var(--ink); }
.qa summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative; font-weight: 800; line-height: 1.7; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 1rem; top: 50%; margin-top: -0.9rem; width: 1.8rem; height: 1.8rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: 1.2rem; font-weight: 800;
}
.qa details[open] summary::after { content: "−"; }
.qa .ans { padding: 0 1.2rem 1.2rem; }
.qa .ans p:last-child { margin-bottom: 0; }

/* contact */
.cta-panel {
  max-width: var(--measure); margin: 0 auto; background: #fff; border: 2px solid var(--ink); border-radius: 24px;
  padding: 2.5rem 1.5rem; box-shadow: 8px 8px 0 var(--ink);
}
.cta-panel h2 { margin-bottom: 1rem; }
.cta-panel p:last-of-type { margin-bottom: 0; }
.form-frame { width: 100%; height: 1200px; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; }
.fallback { background: var(--yellow-pale); border: 2px dashed var(--sub); border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.4rem; }
.fallback p:last-child { margin-bottom: 0; }

.page-title { padding: 3.5rem 1.25rem 3rem; background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-soft) 100%); }
.page-title h1 { font-size: clamp(1.7rem, 4.8vw, 2.4rem); }
.page-title .lead { margin: 1rem 0 0; }

.legal h2 { font-size: 1.1rem; margin: 2.2rem 0 0.6rem; }
.legal dl { margin: 0; }
.legal dt { font-weight: 800; margin-top: 1rem; }
.legal dd { margin: 0; }

/* floating button */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 15; width: 5.6rem; height: 5.6rem; border-radius: 50%;
  display: grid; place-items: center; text-align: center; text-decoration: none; color: var(--ink);
  font-size: 0.8rem; font-weight: 800; line-height: 1.4;
  background: radial-gradient(circle at 30% 25%, #fff6a0, var(--yellow) 45%, var(--warm) 100%);
  border: 2px solid var(--ink); box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.float-cta:hover { color: var(--ink); transform: scale(1.05); }

/* footer */
.site-footer { background: var(--yellow); color: var(--ink); padding: 2.5rem 1.25rem; font-size: 0.9rem; border-top: 2px solid var(--ink); }
.site-footer .inner { max-width: var(--wide); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media (max-width: 30rem) {
  .section { padding: 3.5rem 1.25rem; }
  .nav { gap: 0.9rem; font-size: 0.85rem; }
  .price-table th, .price-table td { display: block; width: 100%; border: 2px solid var(--line); }
  .price-table th { border-bottom: 0; border-radius: 14px 14px 0 0; padding-bottom: 0.2rem; }
  .price-table td { border-top: 0; border-radius: 0 0 14px 14px; padding-top: 0.2rem; }
  .price-table { border-spacing: 0; }
  .price-table tr { display: block; margin-bottom: 0.8rem; }
  .float-cta { width: 4.6rem; height: 4.6rem; font-size: 0.7rem; }
  .phone { box-shadow: 6px 8px 0 var(--ink); }
}
@media print { .float-cta { display: none; } }

/* AI video page */
.ai-card { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 1.6rem 1.4rem 1.8rem; margin: 0 0 2.5rem; }
.ai-card h2 { font-size: 1.3rem; margin: 0 0 1.2rem; display: flex; align-items: center; gap: 0.8rem; text-align: left; }
.ai-no { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 1rem; font-weight: 800; }
.ai-grid { display: grid; gap: 1rem; align-items: center; justify-items: center; grid-template-columns: 1fr; }
.ai-pair { display: grid; gap: 0.8rem; width: 100%; grid-template-columns: 1fr 1fr; }
.ai-pair.land { grid-template-columns: 1fr; }
.ai-pair figure { margin: 0; position: relative; }
.ai-pair img { display: block; width: 100%; height: auto; border-radius: 12px; border: 2px solid var(--ink); }
.ai-pair figcaption { position: absolute; left: 0.5rem; top: 0.5rem; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; padding: 0.15rem 0.7rem; border-radius: 999px; }
.ai-pair figure + figure figcaption { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); }
.ai-arrow { margin: 0; font-weight: 800; text-align: center; line-height: 1.5; }
.ai-arrow small { display: block; font-size: 0.82rem; color: var(--sub); }
.ai-video { position: relative; width: min(15rem, 70%); }
.ai-video video { display: block; width: 100%; aspect-ratio: 9 / 16; background: #000; border: 4px solid var(--ink); border-radius: 24px; box-shadow: 6px 8px 0 var(--ink); object-fit: cover; }
.ai-badge { position: absolute; left: 0.8rem; top: 0.8rem; margin: 0; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; font-size: 0.72rem; font-weight: 800; padding: 0.1rem 0.7rem; pointer-events: none; }
.ai-copy { margin-top: 1.4rem; }
.ai-copy p { margin: 0 0 0.8em; }
.ai-copy p:last-child { margin-bottom: 0; }
@media (min-width: 46rem) {
  .ai-card { padding: 2rem 2.2rem 2.2rem; }
  .ai-grid { grid-template-columns: 1.3fr auto 15rem; }
  .ai-grid.no-pair { grid-template-columns: 15rem; justify-content: center; }
  .ai-video { width: 15rem; }
}

/* option box on service page */
.option-box { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); padding: 1.6rem 1.5rem 1.8rem; }
.option-box h2 { margin-top: 0; }
@media (min-width: 46rem) {
  .ai-pair:not(.land) { max-width: 31rem; }
  .ai-grid:not(.no-pair) { grid-template-columns: 1fr auto 15rem; justify-content: center; }
  .ai-pair.land { max-width: 26rem; }
}
.ai-arrow::before { content: "↓"; display: block; font-size: 1.4rem; }
@media (min-width: 46rem) { .ai-arrow::before { content: "→"; } }
.ai-sheet { margin: 0; width: 100%; }
.ai-sheet img { display: block; width: 100%; height: auto; border-radius: 14px; border: 2px solid var(--ink); }
@media (min-width: 46rem) {
  .ai-grid.sheet, .ai-grid.sheet:not(.no-pair) { grid-template-columns: 1fr; }
}
.ai-sheet picture { display: block; }
.ai-copy p { font-size: clamp(0.82rem, 3.9vw, 1rem); letter-spacing: 0.02em; }
.cta-panel p { font-size: clamp(0.7rem, 3.5vw, 1rem); }
