/* Sun Court Heiwa-dori 1001 — official direct-booking site
   Phase1 static. Mobile-first, lightweight, no framework. */

:root {
  --bg: #fbf9f5;
  --bg-alt: #f2ede4;
  --ink: #2a2722;
  --ink-soft: #5c564c;
  --line: #e3dccf;
  --accent: #1f6f5c;      /* Hokkaido pine green */
  --accent-strong: #185647;
  --gold: #b88a3e;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 35, 25, 0.08);
  --maxw: 1080px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 62px; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; text-decoration: none; color: var(--ink); }
.brand b { font-size: 15px; letter-spacing: .02em; }
.brand span { font-size: 11px; color: var(--ink-soft); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 18px; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.nav a:hover { color: var(--accent); }
.nav .btn { font-size: 13px; padding: 8px 14px; }
.nav-links { display: flex; gap: 18px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--ink); padding: 4px 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  padding: 13px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--accent); }
.btn.secondary:hover { background: var(--bg-alt); }
.btn.line { background: #06c755; border-color: #06c755; color: #fff; }
.btn.line:hover { background: #05b14c; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  min-height: 78vh; display: flex; align-items: flex-end;
  background: #2a2722;
}
.hero img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .82;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,14,.15) 0%, rgba(20,18,14,.65) 100%);
}
.hero .container { position: relative; z-index: 2; padding-bottom: 54px; padding-top: 40px; }
.hero .eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .9; margin: 0 0 10px; }
.hero h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.2; margin: 0 0 14px; font-weight: 700; }
.hero p.lead { font-size: clamp(15px, 2.2vw, 19px); max-width: 36em; margin: 0 0 26px; opacity: .95; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 44em; margin-bottom: 32px; }
.section-head .eyebrow { color: var(--accent); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; margin: 0 0 8px; }
h2 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.3; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; }
.muted { color: var(--ink-soft); }
.lead { font-size: 17px; }

/* ---------- Direct booking pitch ---------- */
.pitch {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px;
}
.pitch .card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.pitch .card .ico { font-size: 26px; }
.pitch .card h3 { margin-top: 10px; }
.pitch .card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery a { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 3/2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery .tall { grid-row: span 2; aspect-ratio: 3/4; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 6px; }
.features .row { display: flex; gap: 10px; align-items: flex-start; }
.features .row .k { font-size: 18px; line-height: 1.4; }
.features .row .t b { display: block; font-size: 15px; }
.features .row .t span { font-size: 14px; color: var(--ink-soft); }

/* ---------- Price / table ---------- */
.price-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.price-box {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.price-box .big { font-size: 26px; font-weight: 700; color: var(--accent); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th { background: var(--bg-alt); font-size: 13px; }
table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .hi { background: #eef6f2; font-weight: 700; color: var(--accent-strong); }
.flag { background: #fff6e6; border: 1px dashed var(--gold); color: #7a5a1e; padding: 2px 8px; border-radius: 6px; font-size: 12.5px; display: inline-block; }

/* ---------- Access ---------- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.access-grid .map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow); }
.access-grid iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.notice { background: #fdf3f3; border: 1px solid #f0caca; color: #8a3b3b; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 8px 0 8px 40px; border-bottom: 1px solid var(--line); font-size: 15px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 8px;
  width: 26px; height: 26px; background: var(--accent); color: #fff; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 4px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
form.book { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: 15px; background: var(--bg); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); background: #fff; }
.field .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.form-msg { padding: 12px 14px; border-radius: 9px; font-size: 14.5px; margin-bottom: 14px; display: none; }
.form-msg.ok { display: block; background: #eef6f2; color: var(--accent-strong); border: 1px solid #bfe0d4; }
.form-msg.err { display: block; background: #fdf3f3; color: #8a3b3b; border: 1px solid #f0caca; }
.side-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.side-card h3 { margin-top: 0; }
.side-card .lineblock { text-align: center; padding: 14px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d4c9; padding: 46px 0 30px; font-size: 14px; }
.site-footer a { color: #e9e3d6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { color: #fff; font-size: 14px; margin: 0 0 12px; letter-spacing: .04em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-legal { border-top: 1px solid #3c382f; margin-top: 30px; padding-top: 18px; color: #9c968a; font-size: 12.5px; line-height: 1.7; }
.foot-legal .reg { display: inline-block; background: #322f28; padding: 2px 8px; border-radius: 6px; color: #d9d4c9; }

/* ---------- Legal pages ---------- */
.legal-wrap { max-width: 760px; }
.legal-wrap h1 { font-size: 26px; margin-bottom: 6px; }
.legal-wrap .updated { color: var(--ink-soft); font-size: 13px; margin-bottom: 28px; }
.legal-wrap h2 { font-size: 19px; margin-top: 34px; }
.legal-wrap table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; }
.legal-wrap table th, .legal-wrap table td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.legal-wrap table th { width: 34%; background: var(--bg-alt); font-weight: 600; }
.legal-wrap .todo { background: #fff6e6; border: 1px dashed var(--gold); color: #7a5a1e; padding: 1px 7px; border-radius: 6px; font-size: 13px; }
.draft-banner { background: #fff6e6; border: 1px solid var(--gold); color: #7a5a1e; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 26px; }
.backlink { font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pitch { grid-template-columns: 1fr; }
  .price-grid, .access-grid, .contact-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .tall { grid-row: auto; aspect-ratio: 3/2; }
  .nav-links {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  section { padding: 48px 0; }
  .hero { min-height: 70vh; }
}
