/* 伊勢町パーク — isemachi-park.com
   設計方針は CLAUDE.md を参照。面を分けるのは色ではなく余白。
   アクセント色は看板の緑を1色だけ、リンクと CTA にのみ使う。 */

:root {
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --surface-base: #ffffff;
  --surface-muted: #f5f5f7;
  --border: #d2d2d7;
  --accent: #1a6b45;
  --accent-hover: #15573a;
  --accent-on: #ffffff;

  --gutter: 16px;
  --measure: 36em;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text-primary: #ebebf0;
    --text-secondary: #a1a1a6;
    --surface-base: #111113;
    --surface-muted: #1c1c1f;
    --border: #38383c;
    --accent: #4ab883;
    --accent-hover: #6fd1a3;
    --accent-on: #0b1a12;
  }
}

:root[data-theme="dark"] {
  --text-primary: #ebebf0;
  --text-secondary: #a1a1a6;
  --surface-base: #111113;
  --surface-muted: #1c1c1f;
  --border: #38383c;
  --accent: #4ab883;
  --accent-hover: #6fd1a3;
  --accent-on: #0b1a12;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  font-feature-settings: "palt";
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.3; text-wrap: balance; margin: 0; }
p { text-wrap: pretty; margin: 0; }

.wrap {
  max-width: 1000px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.prose { max-width: var(--measure); }

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface-base) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

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

.site-header__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text-primary);
}

.site-header__tel {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  white-space: nowrap;
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.btn--primary { background: var(--accent); color: var(--accent-on); }
.btn--primary:hover { background: var(--accent-hover); color: var(--accent-on); }

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-hover); }

.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- ヒーロー ---------- */

.hero { padding: 64px 0 0; }

.hero h1 {
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: -0.02em;
}

.hero__tagline {
  margin-top: 16px;
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--text-secondary);
}

.hero__place {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-secondary);
}

.hero__figure { margin: 48px 0 0; }

.hero__figure img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 700px) {
  .hero__figure img { aspect-ratio: 2 / 1; }
}

/* ---------- セクション ---------- */

.section {
  padding: 64px 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: 56px; /* sticky ヘッダーの下に隠れないように */
}
.section:first-of-type { border-top: 0; }

.section > .wrap > h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  letter-spacing: -0.01em;
}

.section__lead { margin-top: 16px; color: var(--text-secondary); }

.section p + p { margin-top: 16px; }

.block { margin-top: 40px; }
.block h3 { font-size: 19px; }
.block h3 + p, .block h3 + ul { margin-top: 8px; }

/* ---------- 定義リスト（概要） ---------- */

.specs {
  margin: 40px 0 0;
  border-top: 1px solid var(--border);
}

.specs > div {
  display: grid;
  gap: 4px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 600px) {
  .specs > div { grid-template-columns: 200px 1fr; }
}

.specs dt { color: var(--text-secondary); font-size: 15px; }
.specs dd { margin: 0; }

/* ---------- 箇条書き ---------- */

.list { margin: 16px 0 0; padding-left: 1.25em; }
.list li + li { margin-top: 8px; }
.list--plain { list-style: none; padding-left: 0; }

/* ---------- 料金 ---------- */

.price { margin-top: 40px; }

.price__amount {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.price__note { margin-top: 8px; color: var(--text-secondary); font-size: 15px; }

/* ---------- 図版 ---------- */

figure { margin: 40px 0 0; }

/* 縦長の元写真でも版面を圧迫しないよう、横長に切り詰めて見せる */
figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 50%;
  border-radius: 8px;
}

.figure--sign img { object-position: center 45%; }
.figure--spaces img { object-position: center 55%; }

@media (max-width: 599px) {
  figure img { aspect-ratio: 4 / 3; }
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- フォーム ---------- */

.form { margin-top: 40px; max-width: 520px; }

.field { margin-top: 24px; }

.field > label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field__hint {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--text-secondary); }

.req { color: var(--accent); font-size: 13px; margin-left: 4px; }

/* honeypot: 人間には見えない。display:none だとボットに検知されやすいため位置で隠す */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status { margin-top: 16px; font-size: 15px; }
.form__status[data-state="error"] { color: #b3261e; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .form__status[data-state="error"] { color: #f2b8b5; }
}

.form .btn { margin-top: 24px; }

.noscript-note {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface-muted);
  border-radius: 8px;
  font-size: 15px;
}

/* ---------- 連絡先カード ---------- */

.contact-direct {
  margin-top: 40px;
  padding: 24px;
  background: var(--surface-muted);
  border-radius: 8px;
}

.contact-direct__tel {
  display: inline-block;
  margin-top: 8px;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  text-decoration: none;
}

/* ---------- フッター ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom));
  font-size: 14px;
  color: var(--text-secondary);
}

.site-footer a { color: var(--text-secondary); }
.site-footer a:hover { color: var(--accent); }

.site-footer__links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer__copy { margin-top: 24px; }

/* ---------- サンクス / 下層ページ ---------- */

.page { padding: 64px 0; }
.page h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.01em; }
.page h2 { font-size: 19px; margin-top: 40px; }
.page h2 + p { margin-top: 8px; }
.page p + p { margin-top: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
