/* KAIKA LP (kaika.space). Colours are the app's (src/app/globals.css); system fonts only. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --text: #22302a;
  --muted: #4f5d55;
  --border: #ddd5c8;
  --primary: #2c6a4d;
  --primary-dark: #1f4d38;
  --primary-ink: #ffffff;
  --primary-soft: #e3f0e8;
  --accent: #b83f69;
  --accent-soft: #fbe6ee;
  --focus: #1f5fbf;
  --line: #06c755;
  --line-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 48, 42, 0.06), 0 4px 16px rgba(34, 48, 42, 0.08);
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  word-break: auto-phrase;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  line-height: 1.4;
  margin: 0;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
  z-index: 100;
}

.skip:focus {
  top: 8px;
}

.wrap {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 243, 0.96);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}

.site-header__logo img {
  width: 120px;
}

.site-nav {
  display: none;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--primary);
}

@media (min-width: 880px) {
  .site-nav {
    display: flex;
  }
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--line {
  background: var(--line);
  color: #0b2614;
}

.btn--ghost {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--primary);
}

.btn--small {
  min-height: 44px;
  padding: 6px 14px;
  font-size: 0.875rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* hero */
.hero {
  position: relative;
  color: var(--text);
  background: linear-gradient(180deg, #eaf3ff 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 24px;
  padding-block: 40px 48px;
}

.hero__badge {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.875rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  letter-spacing: 0.02em;
}

.hero__lead {
  font-size: 1.0625rem;
  color: var(--text);
}

.hero__art {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    padding-block: 72px 80px;
  }
}

/* sections */
section.block {
  padding-block: 56px;
}

section.block--alt {
  background: var(--surface-2);
}

.block__head {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.block__num {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.875rem;
}

.block h2 {
  font-size: clamp(1.4rem, 4.4vw, 2rem);
}

.block h3 {
  font-size: 1.125rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}

.card--who h3 {
  color: var(--primary);
}

.note {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border-left: 4px solid var(--primary);
  font-size: 0.9375rem;
}

.note--soft {
  background: var(--primary-soft);
}

/* flow */
.flow {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  counter-reset: flow;
}

@media (min-width: 720px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow li {
  counter-increment: flow;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  font-weight: 700;
  text-align: center;
}

.flow li::before {
  content: counter(flow);
  display: block;
  color: var(--accent);
  font-size: 0.8125rem;
}

/* map strip */
.mapstrip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-radius: 12px;
  overflow: hidden;
}

.mapstrip figure {
  margin: 0;
  position: relative;
}

.mapstrip figcaption {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.zones li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}

.zones img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* demo */
.demo-band {
  background: var(--primary);
  color: var(--primary-ink);
}

.demo-band a.btn--ghost {
  background: var(--surface);
}

.demo-band__inner {
  display: grid;
  gap: 16px;
  padding-block: 40px;
}

@media (min-width: 880px) {
  .demo-band__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--surface-2);
  font-size: 0.8125rem;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

/* stacked rows on phones */
@media (max-width: 719px) {
  table.stack thead {
    display: none;
  }
  table.stack tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  table.stack tr:last-child {
    border-bottom: 0;
  }
  table.stack th,
  table.stack td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  table.stack td[data-label]::before {
    content: attr(data-label) "：";
    font-weight: 700;
    color: var(--muted);
    font-size: 0.8125rem;
  }
}

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-weight: 800;
}

/* pricing */
.prices {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .prices {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price {
  text-align: center;
}

.price__name {
  font-weight: 800;
  font-size: 1.125rem;
}

.price__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.price__amount small {
  font-size: 0.875rem;
  font-weight: 700;
}

.price__amount--tbd {
  font-size: 1rem;
  color: var(--muted);
}

.price__detail {
  font-size: 0.875rem;
  color: var(--muted);
}

.base-fee {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 16px;
}

/* faq */
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
}

details + details {
  margin-top: 10px;
}

summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
  list-style-position: inside;
}

details p {
  padding: 0 0 16px;
}

/* closing cta */
.closing {
  text-align: center;
}

.closing .cta-row {
  justify-content: center;
}

/* footer */
.site-footer {
  background: #22302a;
  color: #f0ede6;
  padding-block: 40px;
  font-size: 0.875rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer__inner {
  display: grid;
  gap: 16px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-footer img {
  width: 120px;
}

.stack {
  display: grid;
  gap: 16px;
}

.stack-sm {
  display: grid;
  gap: 8px;
}

ul.plain {
  margin: 0;
  padding-left: 1.2em;
}

ul.plain li + li {
  margin-top: 4px;
}

/* 相談のカード：机の絵の上に、相談の条件を小さな札で重ねる */
.consult-art {
  position: relative;
  margin: 0 0 12px;
  border-radius: 12px;
  overflow: hidden;
}

.consult-art__chips {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.consult-art__chips span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.7;
}

/* パンフレット：めくれる冊子（assets/pamphlet.js）。スクリプトが動かないときは、8ページを並べて見せる */
.flipbook {
  margin-top: 8px;
}

.flipbook__stage {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: 8px;
}

.flipbook__stage:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 6px;
}

.flipbook__book:not(.is-ready) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.flipbook__page {
  background: #fff;
}

.flipbook__page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flipbook__book:not(.is-ready) .flipbook__page {
  box-shadow: var(--shadow);
}

.flipbook__book.is-ready .flipbook__page {
  box-shadow: inset 0 0 0 1px var(--border);
}

.flipbook__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.flipbook__controls[hidden] {
  display: none;
}

.flipbook__controls .btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.flipbook__count {
  min-width: 7em;
  margin: 0;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.flipbook__save {
  margin: 16px 0 0;
  text-align: center;
}

.flipbook__zoom {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.9375rem;
}

.flipbook__zoom[hidden] {
  display: none;
}
