/* ヨガ図鑑 — shared stylesheet. No external fonts or CDNs. */
:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-2: #f3eee5;
  --ink: #2a2826;
  --ink-soft: #57524b;
  --line: #e2dacb;
  --brand: #2f6b5e;
  --brand-dark: #234f45;
  --brand-soft: #e3eee9;
  --accent: #a8532a;
  --accent-soft: #f8e9df;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(42, 40, 38, .06), 0 6px 20px rgba(42, 40, 38, .06);
  --max: 1120px;
  --measure: 760px;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.5; letter-spacing: .04em; color: var(--ink); word-break: auto-phrase; text-wrap: pretty; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); margin: 2.4em 0 .8em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 .5em; }
p { margin: 0 0 1.2em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 8px; top: -60px; background: var(--brand-dark); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { top: 8px; color: #fff; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .site-header { position: sticky; top: 0; z-index: 5; } }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 10px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); }
.logo-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; letter-spacing: .08em; }
.brand-tag { font-size: .78rem; color: var(--ink-soft); }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a { display: flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none; color: var(--ink); font-size: .95rem; border-radius: var(--radius-sm); }
.nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.nav a[aria-current="page"] { color: var(--brand-dark); font-weight: 700; box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--ink-soft); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: #fff; letter-spacing: .06em; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--brand-dark); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* home hero */
.hero { padding: 40px 0 48px; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 48px; } .hero { padding: 64px 0; } }
.hero .eyebrow { margin-bottom: .6em; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); }
.hero-lead { font-size: 1.05rem; color: var(--ink-soft); }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-media img[src$=".svg"] { object-fit: contain; background: var(--brand-soft); }
.eyebrow { font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .12em; margin: 0 0 .3em; }

/* sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: var(--measure); margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }
.section-head p { color: var(--ink-soft); }
.narrow { max-width: var(--measure); }

.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); list-style: none; padding: 0; margin: 0; }
.values li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.values h3 { margin: 0 0 .4em; font-size: 1.08rem; }
.values p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.values .num { display: inline-block; font-family: var(--serif); color: var(--accent); font-weight: 700; margin-right: .4em; }

/* cards */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: var(--brand-soft); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 18px; }
.card-title { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; color: var(--brand-dark); }
.card-text { font-size: .9rem; color: var(--ink-soft); line-height: 1.7; }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; line-height: 1.7; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--brand-soft); color: var(--brand-dark); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.info-table th { width: 32%; background: var(--surface-2); white-space: normal; }
.info-table .sub { display: block; font-size: .85rem; color: var(--ink-soft); }

/* article */
.article { padding-bottom: 56px; }
.article-head { max-width: var(--measure); margin: 20px auto 0; }
.byline { font-size: .85rem; color: var(--ink-soft); }
.hero-photo, .hero-pose { margin: 8px auto 32px; max-width: var(--measure); border-radius: var(--radius); overflow: hidden; }
.hero-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-photo-pose img { aspect-ratio: 3 / 2; }
.hero-pose { background: var(--brand-soft); }
.hero-pose img { width: 100%; max-width: 560px; margin: 0 auto; }
.prose { max-width: var(--measure); margin: 0 auto; }
.prose .lead { font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose h2 { padding-bottom: .3em; border-bottom: 2px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { scroll-margin-top: 90px; }
.steps { counter-reset: s; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; margin-bottom: .9em; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; line-height: 1; }
.pose-fig { margin: 0 0 1.6em; background: var(--brand-soft); border-radius: var(--radius); padding: 8px; }
.pose-fig img { margin: 0 auto; max-width: 480px; width: 100%; }
.pose-fig figcaption, .photo figcaption { font-size: .85rem; color: var(--ink-soft); text-align: center; padding: 4px 8px 6px; }
.photo { margin: 0 0 1.6em; }
.photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px 8px; margin: 0 0 2em; }
.toc-h { font-weight: 700; margin: 0 0 .3em; }
.toc ol { margin: 0 0 .6em; padding-left: 1.4em; }
.toc a { display: inline-block; padding: 6px 0; min-height: 44px; line-height: 1.6; }
@media (min-width: 768px) { .toc a { min-height: 0; } }
.tip, .note, .caution { border-radius: var(--radius-sm); padding: 16px 20px; margin: 0 0 1.6em; font-size: .97rem; }
.tip { background: var(--brand-soft); border-left: 5px solid var(--brand); }
.caution { background: var(--accent-soft); border-left: 5px solid var(--accent); }
.note { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
.tip p:last-child, .note p:last-child, .caution p:last-child { margin-bottom: 0; }
.box-title { display: block; font-weight: 700; margin-bottom: .2em; color: var(--ink); }
.faq-item { border-top: 1px solid var(--line); padding: 4px 0; }
.faq-item h3 { margin: 1em 0 .4em; font-size: 1.05rem; }
.faq-item h3::before { content: "Q. "; color: var(--accent); }
.related { max-width: var(--max); margin: 48px auto 0; }
.related h2 { text-align: left; }
.back { text-align: center; margin-top: 32px; }

/* CTA band */
.cta-band { background: var(--brand-dark); color: #fff; padding: 48px 0; }
.cta-band h2 { color: #fff; margin-top: 0; }
.cta-band p { color: #e6efec; }
.cta-band .btn { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-soft); }

/* contact card */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 2em; }
.contact-card dl { margin: 0 0 1em; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.contact-card dt { font-weight: 700; color: var(--ink-soft); }
.contact-card dd { margin: 0; }

/* page body for core pages */
.page { padding-top: 8px; padding-bottom: 64px; }
.page-head { max-width: var(--measure); margin: 20px auto 24px; }
.page .prose h2:first-child { margin-top: 1em; }

/* 404 */
.notfound { text-align: center; padding-top: 48px; padding-bottom: 64px; }
.notfound .btn-row { justify-content: center; margin: 24px 0 40px; }
.notfound .card-grid { text-align: left; }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--ink-soft); margin: .8em 0 0; }
.operator { font-weight: 700; color: var(--ink) !important; }
.footer-h { font-family: var(--sans); font-size: .95rem; margin: 0 0 .4em; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: flex; align-items: center; min-height: 44px; color: var(--ink-soft); text-decoration: none; }
.site-footer li a:hover { color: var(--brand-dark); text-decoration: underline; }
.copyright { text-align: center; color: var(--ink-soft); font-size: .82rem; margin: 32px 0 0; padding: 0 16px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
