/* ヒカリカイロプラクティック 共通スタイル
   ★「書いたのに効かない」ときは、後ろに書き足す前に詳細度を数えること（落とし穴集 A-1）。
     このファイルはクラス1つ（0,1,0）を基本にし、入れ子は2段までにしている。 */

:root {
  --bg: #edebe6;
  --bg-2: #f6f5f1;
  --paper: #ffffff;
  --ink: #493929;
  --ink-2: #76695b;
  --line: #d6d0c4;
  --accent: #b9155b;
  --dark: #493929;
  --mincho: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --gothic: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --wrap: 1120px;
  --head-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .04em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--mincho); font-weight: 500; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  height: var(--head-h);
  background: rgba(237, 235, 230, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(73, 57, 41, .08);
}
.site-head .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo img { height: 52px; width: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.gnav a {
  font-family: var(--mincho); font-size: 14px; text-decoration: none;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.gnav a:hover, .gnav a[aria-current="page"] { border-bottom-color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  :root { --head-h: 64px; }
  .site-logo img { height: 42px; }
  .nav-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: none; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
  .site-head.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-head.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-head.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnav {
    position: fixed; inset: var(--head-h) 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-head.is-open .gnav { display: block; }
  .gnav ul { flex-direction: column; gap: 0; padding: 8px 16px 20px; }
  .gnav a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
}

/* ---------- 共通パーツ ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-2); }
.sec-title { text-align: center; margin-bottom: 56px; }
.sec-title .en { display: block; font-family: var(--mincho); font-size: 40px; letter-spacing: .18em; }
.sec-title .ja { display: block; font-size: 13px; color: var(--ink-2); margin-top: 6px; letter-spacing: .2em; }
.lead { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.note { font-size: 13px; color: var(--ink-2); }

.btn {
  display: inline-block; min-width: 180px; text-align: center;
  padding: 12px 28px; border: 1px solid var(--ink); border-radius: 999px;
  background: transparent; color: var(--ink);
  font-family: var(--mincho); font-size: 14px; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: transparent; color: var(--ink); }

.page-head { padding: 90px 0 60px; text-align: center; }
.page-head .en { display: block; font-family: var(--mincho); font-size: 40px; letter-spacing: .18em; }
.page-head h1 { font-size: 16px; color: var(--ink-2); margin-top: 6px; letter-spacing: .2em; font-family: var(--gothic); font-weight: 400; }
.page-hero { aspect-ratio: 16 / 6; overflow: hidden; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- トップ：メインビジュアル ---------- */
.hero { position: relative; height: min(88vh, 760px); min-height: 480px; overflow: hidden; background: #f4f2ee; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 30%; }
.hero-copy { position: absolute; right: 6%; top: 56%; transform: translateY(-50%);
  background: rgba(246, 245, 241, .82); padding: 28px 36px; }
.hero-copy h1 { font-size: clamp(22px, 3vw, 38px); letter-spacing: .12em; margin-bottom: 28px; }
@media (max-width: 700px) {
  .hero { height: 78vh; }
  .hero img { object-position: 25% 30%; }
  .hero-copy { right: auto; left: 16px; top: auto; bottom: 36px; transform: none;
    background: rgba(255, 255, 255, .78); padding: 18px 20px; }
  .hero-copy h1 { margin-bottom: 16px; }
}

/* ---------- コンセプト ---------- */
.concept-intro { text-align: center; font-family: var(--mincho); font-size: 17px; line-height: 2.2; margin-bottom: 70px; }
.concept-intro strong { display: block; font-size: 24px; font-weight: 500; margin: 8px 0; letter-spacing: .14em; }
.concept-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.concept-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.concept-photos img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.concept-photos img:first-child { margin-top: 40px; }
.concept-text h2 { font-size: 22px; margin-bottom: 24px; }
.concept-text .em { font-family: var(--mincho); font-size: 16px; }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .sec-title .en, .page-head .en { font-size: 28px; }
  .page-head { padding: 64px 0 40px; }
}
@media (max-width: 800px) { .concept-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- コース（タブ） ---------- */
.course-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.course-tabs [role="tab"] {
  font-family: var(--mincho); font-size: 14px; color: var(--ink);
  background: transparent; border: 1px solid var(--ink); border-radius: 999px;
  padding: 10px 20px; cursor: pointer;
}
.course-tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; }
.course-panel { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: start; }
.course-panel[hidden] { display: none; }
.course-panel > img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.course-panel h3 { font-size: 28px; letter-spacing: .14em; margin-bottom: 16px; }
.course-fit { color: var(--accent); font-size: 13px; line-height: 1.8; margin-bottom: 16px; }
.course-fit b { display: block; font-weight: 500; }
.course-body { font-size: 14px; }
.price { width: 100%; border-collapse: collapse; margin: 20px 0 8px; font-size: 14px; }
.price th, .price td { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.price th { background: var(--dark); color: #fff; font-weight: 400; text-align: left; width: 45%; border-bottom-color: rgba(255,255,255,.2); }
.price td { background: var(--paper); text-align: right; font-family: var(--mincho); font-size: 16px; }
.course-panel .btn { margin-top: 20px; }
@media (max-width: 800px) { .course-panel { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- 店舗 ---------- */
.shop-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 56px; }
.shop-index a { font-family: var(--mincho); text-decoration: none; border-bottom: 1px solid var(--line); }
.shop { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.shop:first-of-type { border-top: 0; }
.shop > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.shop h3 { font-size: 22px; margin-bottom: 16px; }
.shop-info { margin: 0 0 20px; display: grid; grid-template-columns: 6.5em 1fr; gap: 4px 12px; font-size: 14px; }
.shop-info dt { color: var(--ink-2); }
.shop-info dd { margin: 0; }
.shop-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.shop-btns .btn { min-width: 0; flex: 1 1 140px; padding: 10px 14px; }
.shop-sns { display: flex; gap: 14px; margin-bottom: 16px; font-size: 13px; }
.shop-notes { list-style: none; padding: 0; margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.shop-notes li { padding-left: 1em; text-indent: -1em; margin-bottom: 4px; }
.map { width: 100%; height: 260px; border: 0; margin-top: 18px; filter: grayscale(.3); }
@media (max-width: 800px) { .shop { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- PELVISMAKE ---------- */
.pelvis { background: #111; color: #f2efe9; }
.pelvis .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.pelvis-logo { width: 280px; margin-bottom: 24px; background: #fff; padding: 10px 16px; }
.pelvis h2 { font-size: 24px; margin-bottom: 20px; }
.pelvis .btn { border-color: #f2efe9; color: #f2efe9; }
.pelvis .btn:hover { background: #f2efe9; color: #111; }
.pelvis-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; align-items: end; }
@media (max-width: 800px) { .pelvis .wrap { grid-template-columns: 1fr; } }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 9em 8em 1fr; gap: 12px; padding: 18px 4px; text-decoration: none; align-items: baseline; }
.news-list a:hover .news-title { text-decoration: underline; }
.news-date { font-family: var(--mincho); color: var(--ink-2); font-size: 14px; }
.news-cat { font-size: 12px; color: var(--accent); }
@media (max-width: 640px) { .news-list a { grid-template-columns: auto 1fr; } .news-title { grid-column: 1 / -1; } }
.news-more { text-align: center; margin-top: 36px; }
.article { max-width: 760px; margin: 0 auto; background: var(--paper); padding: 56px clamp(20px, 6vw, 64px); }
.article h2 { font-size: 24px; margin: 8px 0 32px; }
.article-body p { margin-bottom: 1.4em; }
.article-nav { display: flex; justify-content: space-between; gap: 16px; max-width: 760px; margin: 28px auto 0; font-size: 14px; }

/* ---------- フォーム ---------- */
.form { max-width: 720px; margin: 0 auto; }
.form-row { margin-bottom: 22px; }
.form-row > label, .form-row > .label { display: block; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--accent); font-size: 12px; margin-left: 6px; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"],
.form input[type="date"], .form input[type="time"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
}
.form textarea { min-height: 180px; resize: vertical; }
.form .is-invalid { border-color: var(--accent); }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-dt { display: grid; grid-template-columns: 3fr 2fr; gap: 12px; }
.form-radio { display: flex; gap: 24px; }
.form-radio label { display: flex; align-items: center; gap: 6px; }
.form-err { color: var(--accent); font-size: 12.5px; margin-top: 4px; min-height: 1em; }
.form-actions { text-align: center; margin-top: 36px; }
.form-status { text-align: center; margin-top: 18px; min-height: 1.5em; }
.form-status.is-error { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

/* ---------- Q&A・お客様の声・会社概要 ---------- */
.qa { max-width: 860px; margin: 0 auto; }
.qa details { background: var(--paper); margin-bottom: 12px; }
.qa summary { cursor: pointer; padding: 20px 52px 20px 24px; font-family: var(--mincho); font-size: 16px; position: relative; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q."; color: var(--accent); margin-right: 10px; }
.qa summary::after { content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 20px; }
.qa details[open] summary::after { content: "−"; }
.qa .answer { padding: 0 24px 20px; font-size: 14px; }

.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.voice { background: var(--paper); padding: 32px 28px; font-size: 14px; }
.voice cite { display: block; margin-top: 16px; font-style: normal; color: var(--ink-2); font-size: 13px; text-align: right; }
@media (max-width: 900px) { .voices { grid-template-columns: 1fr; } }

.table-dl { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: 10em 1fr; background: var(--paper); }
.table-dl dt, .table-dl dd { margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.table-dl dt { background: var(--bg-2); }
@media (max-width: 640px) { .table-dl { grid-template-columns: 1fr; } .table-dl dt { border-bottom: 0; padding-bottom: 6px; } }

.policy { max-width: 860px; margin: 0 auto; background: var(--paper); padding: 48px clamp(20px, 6vw, 56px); font-size: 14px; }
.policy h2 { font-size: 17px; margin: 32px 0 10px; }
.policy ol { padding-left: 1.6em; margin: 0 0 1em; }
.policy ol ol { margin-top: .4em; }

/* ---------- フッター ---------- */
.site-foot { background: var(--dark); color: #eee8df; padding: 64px 0 28px; font-size: 13px; }
.site-foot a { text-decoration: none; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.foot-logo { width: 220px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 36px; }
.foot-sns { display: flex; gap: 16px; margin-top: 14px; }
.copy { text-align: center; margin-top: 48px; font-size: 11.5px; opacity: .7; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
