/* ひじり鍼灸整骨院 — style.css */
:root {
  --ink: #1f2a30;
  --indigo: #1f3a4d;
  --indigo-2: #2c5068;
  --paper: #fbf7ef;
  --sand: #f3ead9;
  --sand-2: #e7d9c0;
  --vermilion: #c8553d;
  --moss: #5f7d5a;
  --muted: #5c6b73;
  --line: #e2d6c0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 58, 77, .08);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo-2); }
a:hover { color: var(--vermilion); }
h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.45;
  color: var(--indigo);
  margin: 0 0 .6em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 239, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--indigo); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 1.15rem; font-weight: 600; line-height: 1.2; }
.brand-name small { display: block; font-family: inherit; font-size: .68rem; color: var(--muted); letter-spacing: .12em; font-weight: 400; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--indigo); border-bottom-color: var(--vermilion); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--vermilion); color: #fff !important;
  text-decoration: none; font-weight: 600;
  padding: .75rem 1.5rem; border-radius: 999px; border: 0;
  font-size: 1rem; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 16px rgba(200, 85, 61, .25);
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: #b2452f; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--indigo) !important; border: 1.5px solid var(--indigo); box-shadow: none; }
.btn-ghost:hover { background: var(--indigo); color: #fff !important; }
.site-nav a.btn { padding: .55rem 1.2rem; font-size: .92rem; border-bottom: 0; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--indigo);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; right: 0; }
.nav-toggle span::after { top: 7px; left: 0; right: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 4rem 0 3.5rem; background: linear-gradient(180deg, var(--paper), var(--sand)); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .82rem; letter-spacing: .18em; color: var(--vermilion); font-weight: 600; margin-bottom: .8rem; }
.hero p.lead { font-size: 1.08rem; color: #3a4850; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.hero-badges li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .85rem; font-size: .82rem; color: var(--muted); }

.page-hero { padding: 3.2rem 0 2.4rem; background: var(--sand); border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }
.section-alt { background: var(--sand); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head p { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: start; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow);
}
.card .num { font-family: "Hiragino Mincho ProN", serif; color: var(--vermilion); font-size: .9rem; letter-spacing: .1em; }
.card p:last-child { margin-bottom: 0; }

.symptoms { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; padding: 0; list-style: none; }
.symptoms li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .55rem 1.1rem; font-size: .95rem; }

/* price table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--indigo); color: #fff; font-weight: 600; font-size: .92rem; }
.price-table td.price { white-space: nowrap; font-weight: 700; color: var(--indigo); }
.price-table tr:last-child td { border-bottom: 0; }
.note { font-size: .85rem; color: var(--muted); margin-top: .9rem; }

/* flow */
.flow { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.flow li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.2rem; position: relative; }
.flow li::before {
  content: counter(step); display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--indigo); color: #fff; font-weight: 700; margin-bottom: .6rem;
}
.flow h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.flow p { font-size: .9rem; margin: 0; color: #3a4850; }

/* hours */
.hours { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.hours th, .hours td { border: 1px solid var(--line); padding: .6rem .3rem; text-align: center; }
.hours thead th { background: var(--sand-2); }
.hours .off { color: #a0a8ad; }
.hours .open { color: var(--moss); font-weight: 700; }

.info-list { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: .55rem 1rem; }
.info-list dt { font-weight: 700; color: var(--indigo); }
.info-list dd { margin: 0; }

/* CTA band */
.cta-band { background: var(--indigo); color: #e9eef1; text-align: center; padding: 4rem 0; }
.cta-band h2 { color: #fff; }
.cta-band .tel { font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; color: #fff; display: block; margin: .4rem 0 1.4rem; text-decoration: none; }

/* about */
.profile { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.avatar { aspect-ratio: 1; border-radius: 50%; background: var(--sand-2); display: grid; place-items: center; overflow: hidden; }
.avatar svg { width: 70%; height: 70%; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--sand-2); }
.timeline li { padding: 0 0 1rem 1.2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--vermilion); }
.timeline strong { color: var(--indigo); margin-right: .6rem; }
.map-placeholder {
  border-radius: var(--radius); border: 1px dashed var(--muted); min-height: 260px;
  display: grid; place-items: center; text-align: center; color: var(--muted); padding: 1.5rem;
  background: repeating-linear-gradient(45deg, #fff, #fff 12px, var(--sand) 12px, var(--sand) 24px);
}

/* forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { margin-bottom: 1.3rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.req { background: var(--vermilion); color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 4px; margin-left: .4rem; vertical-align: middle; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], select, textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #cbbfa8; border-radius: 10px; background: var(--paper);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--indigo-2); outline-offset: 1px; background: #fff; }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; }
.checkbox input { margin-top: .45rem; }
.form-message { display: none; margin-top: 1.2rem; padding: 1rem 1.2rem; border-radius: 10px; }
.form-message.is-visible { display: block; }
.form-message.success { background: #eaf2e6; border: 1px solid #b7cdb0; color: #2f4a2a; }
.form-message.error { background: #fbe9e5; border: 1px solid #e6b3a7; color: #7a2b1c; }

/* privacy */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.25rem; margin-top: 2.2rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.prose ul, .prose ol { padding-left: 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: #17262f; color: #b9c4ca; padding: 3rem 0 1.6rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #dfe7eb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { border-top: 1px solid #2c3c46; margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-size: .8rem; }
.dummy { color: #8796a0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-open .site-nav { max-height: 420px; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.2rem; }
  .site-nav li a { display: block; padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav li:last-child a { border-bottom: 0; margin-top: .9rem; }
  .hero { padding-top: 2.5rem; }
  .hero-grid, .grid-2, .profile { grid-template-columns: 1fr; gap: 2rem; }
  .profile .avatar { max-width: 180px; }
  .grid-3, .flow, .form-row.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 3.2rem 0; }
  .price-table th, .price-table td { padding: .8rem; font-size: .92rem; }
  .info-list { grid-template-columns: 1fr; gap: .1rem; }
  .info-list dd { margin-bottom: .6rem; }
  .form { padding: 1.4rem; }
  .brand-name small { font-size: .56rem; letter-spacing: .04em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
}
