/* こもれび整体院 (fictional) — mobile-first, system fonts only, no third-party assets. */

:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --white: #fffdf8;
  --ink: #2e2a24;
  --muted: #6b6455;
  --line: #dcd4c2;
  --moss: #4d6239;
  --moss-dark: #3a4a2b;
  --moss-soft: #e3e8d6;
  --wood: #8a6a4a;
  --wood-soft: #efe3d3;
  --line-green: #06c755;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --mincho: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
  --callbar-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.03em;
  -webkit-text-size-adjust: 100%;
  padding-bottom: calc(var(--callbar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss-dark); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; line-height: 1.5; letter-spacing: 0.06em; margin: 0; }
p { margin: 0 0 0.8em; }
small { font-size: 0.8em; }
strong { font-weight: 700; }

.inner { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.note { color: var(--muted); font-size: 0.82rem; line-height: 1.7; margin: 0.4em 0 0; }

/* Demo ribbon */
.demo-ribbon {
  margin: 0;
  padding: 6px 18px;
  background: var(--wood);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.6;
}
.demo-ribbon .nowrap { white-space: nowrap; }
.demo-ribbon strong { font-weight: 700; border-bottom: 1px solid rgba(255, 255, 255, 0.7); }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { border-radius: 8px; }
.logo-text { font-family: var(--mincho); font-size: 1.25rem; font-weight: 600; line-height: 1.25; letter-spacing: 0.08em; }
.logo-sub { display: block; font-family: var(--gothic); font-size: 0.65rem; font-weight: 400; color: var(--muted); letter-spacing: 0.1em; }
.header-contact { display: none; }

.global-nav {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 18px 8px;
  font-size: 0.82rem;
  white-space: nowrap;
  scrollbar-width: none;
}
.global-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.global-nav a:hover { border-bottom-color: var(--wood); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
}
.btn small { font-size: 0.65rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); color: var(--ink); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-ask { background: var(--moss); color: #fff; }
.btn-ask:hover { background: var(--moss-dark); }
.is-demo { cursor: not-allowed; opacity: 0.8; }

/* Hero */
.hero { background: var(--white); }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-copy { padding: 24px 18px 32px; }
.hero-lead { margin: 0 0 6px; color: var(--wood); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; }
.hero-title { font-size: 1.85rem; line-height: 1.55; margin-bottom: 14px; color: var(--moss-dark); }
.hero-text { font-size: 0.95rem; }
.hero-points { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.hero-points li {
  padding: 3px 10px;
  border: 1px solid var(--moss);
  border-radius: 2px;
  color: var(--moss-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

/* News */
.news { background: var(--paper-2); padding: 18px 0; }
.news .inner { display: grid; gap: 8px; }
.news-title { font-size: 1rem; display: flex; align-items: baseline; gap: 10px; }
.news-title span { font-family: var(--gothic); font-size: 0.7rem; color: var(--wood); letter-spacing: 0.15em; }
.news-list { margin: 0; font-size: 0.88rem; }
.news-list dt { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.05em; }
.news-list dd { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px dotted var(--line); }
.news-list dd:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* Sections */
.section { padding: 52px 0; }
.section-tint { background: var(--white); }
.sec-head { margin-bottom: 26px; }
.sec-en {
  margin: 0 0 2px;
  color: var(--wood);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}
.sec-head h2 {
  font-size: 1.55rem;
  padding-bottom: 10px;
  position: relative;
}
.sec-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--wood);
}
.sec-lead { margin: 12px 0 0; color: var(--muted); font-size: 0.88rem; }

/* Features: two photo rows, then three short numbered items */
.feature { display: grid; gap: 16px; margin-bottom: 36px; }
.feature-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-num {
  margin: 0;
  font-family: var(--mincho);
  font-size: 2rem;
  line-height: 1;
  color: var(--wood);
  letter-spacing: 0.05em;
}
.feature h3, .feature-list h3 { font-size: 1.2rem; margin: 6px 0 10px; color: var(--moss-dark); }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-list .feature-num { font-size: 1.4rem; }
.feature-list h3 { font-size: 1.05rem; margin: 4px 0 6px; }
.feature-list p { margin: 0; font-size: 0.92rem; }

/* Menu */
.menu-grid { display: grid; gap: 8px 40px; }
.menu-block h3 {
  font-size: 1.08rem;
  margin: 26px 0 8px;
  padding-left: 10px;
  border-left: 3px solid var(--moss);
  line-height: 1.35;
}
.menu-block > h3:first-child { margin-top: 0; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.price-table th, .price-table td { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.price-table thead th { font-size: 0.75rem; color: var(--muted); font-weight: 400; border-bottom: 1px solid var(--ink); }
.price-table tbody th { font-weight: 700; }
.price-table th small { display: block; font-weight: 400; color: var(--muted); }
.price-table .price { text-align: right; font-family: var(--mincho); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

.first-offer {
  margin: 0 0 8px;
  padding: 16px 18px;
  background: var(--wood-soft);
  border-left: 4px solid var(--wood);
}
.first-offer-label { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: var(--wood); }
.first-offer-price { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.first-offer-price span { font-size: 0.78rem; font-weight: 400; color: var(--muted); }
.first-offer-price strong { font-family: var(--mincho); font-size: 1.9rem; color: var(--ink); letter-spacing: 0.02em; }

.menu-foot { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.menu-foot dl { margin: 0 0 6px; font-size: 0.9rem; }
.menu-foot dt { font-weight: 700; }
.menu-foot dd { margin: 0; }
.menu-foot .cancel { margin-top: 16px; }

/* Flow */
.flow { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 10px; }
.flow li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 64px;
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 64px;
}
.flow li::before {
  content: "STEP\A" counter(step, decimal-leading-zero);
  white-space: pre;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--moss);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
}
.flow h3 { font-size: 1rem; margin-bottom: 2px; }
.flow p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.flow-notes { margin-top: 28px; display: grid; gap: 14px; }
.flow-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.flow-notes dl { margin: 0; font-size: 0.92rem; }
.flow-notes dt { font-weight: 700; color: var(--moss-dark); }
.flow-notes dd { margin: 0 0 10px; }

/* Message */
.message { display: grid; gap: 22px; }
.message-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.message-body p { font-size: 0.95rem; }
.signature { text-align: right; font-family: var(--mincho); font-size: 1.05rem !important; margin-top: 18px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 14px 32px 14px 34px;
  font-weight: 700;
  font-size: 0.95rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q";
  position: absolute;
  left: 4px;
  top: 12px;
  font-family: var(--mincho);
  font-size: 1.15rem;
  color: var(--moss);
}
.faq summary::after { content: "+"; position: absolute; right: 8px; top: 12px; font-size: 1.2rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq details p { position: relative; margin: 0; padding: 0 12px 16px 34px; font-size: 0.92rem; }
.faq details p::before {
  content: "A";
  position: absolute;
  left: 4px;
  top: -3px;
  font-family: var(--mincho);
  font-size: 1.15rem;
  color: var(--wood);
}

/* Access */
.access-grid { display: grid; gap: 28px; }
.hours-grid { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: var(--white); }
.hours-grid caption { text-align: left; font-family: var(--mincho); font-size: 1.08rem; font-weight: 600; padding: 0 0 8px; }
.hours-grid th, .hours-grid td { border: 1px solid var(--line); padding: 8px 2px; text-align: center; }
.hours-grid thead th { background: var(--moss); color: #fff; font-weight: 700; border-color: var(--moss); }
.hours-grid tbody th { font-weight: 400; white-space: nowrap; padding: 8px 6px; font-size: 0.8rem; }
.hours-grid td { color: var(--moss); font-size: 1rem; }
.hours-grid td.no { color: #b5ad9c; }
.hours-notes { list-style: none; margin: 8px 0 0; padding: 0; }

.address { margin: 0; font-size: 0.9rem; display: grid; grid-template-columns: 4.2em 1fr; }
.address dt { font-weight: 700; color: var(--moss-dark); padding: 8px 0; border-bottom: 1px solid var(--line); }
.address dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); }
.map { margin: 18px 0 0; }
.map img { width: 100%; border: 1px solid var(--line); }
.map figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }

/* Footer */
.site-footer { background: var(--moss-dark); color: #e9e4d4; padding: 32px 0; font-size: 0.82rem; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; gap: 18px; }
.footer-name { font-family: var(--mincho); font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.footer-demo { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 14px; }
.credit { color: #bfc7ad; font-size: 0.72rem; }

/* Mobile call bar: 電話 / LINE予約 (demo, inert) / 質問する (opens the chat) */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  height: calc(var(--callbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 8px rgba(46, 42, 36, 0.08);
}
.callbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
}
.callbar-item + .callbar-item { border-left: 1px solid var(--line); }
.callbar-item small { font-size: 0.62rem; font-weight: 400; color: var(--muted); }
.callbar-line { background: var(--line-green); color: #fff; }
.callbar-line small { color: #e6fbe9; }
.callbar-ask { background: var(--moss); color: #fff; cursor: pointer; }
.callbar-ask small { color: #dfe7d3; }

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

/* Tablet and up */
@media (min-width: 720px) {
  body { font-size: 16px; padding-bottom: 0; }
  .callbar { display: none; }
  .header-contact { display: flex; align-items: center; gap: 12px; }
  .header-tel { margin: 0; display: grid; text-align: right; line-height: 1.35; }
  .tel-label { font-size: 0.7rem; color: var(--muted); }
  .tel-number { font-family: var(--mincho); font-size: 1.35rem; font-weight: 600; letter-spacing: 0.06em; }
  .tel-note { font-size: 0.65rem; color: var(--muted); }
  .global-nav { max-width: 1080px; margin: 0 auto; gap: 28px; padding: 0 18px 10px; font-size: 0.88rem; }

  .hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .hero-photo img { height: 100%; aspect-ratio: auto; min-height: 440px; }
  .hero-copy { padding: 56px 48px 48px 44px; align-self: center; }
  .hero-title { font-size: 2.4rem; }

  .news .inner { grid-template-columns: 160px 1fr; align-items: start; }
  .news-list { display: grid; grid-template-columns: 7em 1fr; }
  .news-list dd { margin-bottom: 8px; }

  .section { padding: 80px 0; }
  .sec-head h2 { font-size: 1.85rem; }

  .feature { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
  .feature.is-reverse .feature-photo { order: 2; }
  /* A dense list, one row per item: number | heading | text */
  .feature-list li { display: grid; grid-template-columns: 4em 19em 1fr; align-items: baseline; gap: 0 20px; }
  .feature-list h3 { margin: 0; }

  .menu-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow-notes { grid-template-columns: 0.9fr 1fr; align-items: center; gap: 32px; }
  .flow-notes .note { grid-column: 2; margin-top: -10px; }

  .message { grid-template-columns: 0.85fr 1fr; gap: 56px; align-items: center; }

  .access-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1.4fr; }
  .footer-demo { border-top: 0; padding-top: 0; border-left: 1px solid rgba(255, 255, 255, 0.2); padding-left: 24px; }
}

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