/* ============================================================
   髪ガイド（kamiguide.com）— refined editorial health-media
   見出し=明朝 / 本文=端末ゴシック / 紙色×墨×パイングリーン
   ============================================================ */

:root {
  --paper:      #f6f3ec;
  --paper-2:    #efeadd;
  --card:       #fffdf8;
  --ink:        #221f1a;
  --ink-soft:   #524c43;
  --ink-mute:   #8a8073;
  --pine:       #2f5d50;
  --pine-deep:  #21463c;
  --pine-tint:  #e9efe9;
  --clay:       #b06a3f;
  --line:       #e3dccd;
  --line-soft:  #ece6d9;
  --focus:      #3f7d6b;

  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
               "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;

  --wrap: 1080px;
  --wrap-narrow: 720px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(34,31,26,.05), 0 4px 14px rgba(34,31,26,.05);
  --shadow-md: 0 6px 30px rgba(33,70,60,.10);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(47,93,80,.06), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(176,106,63,.05), transparent 55%);
  line-height: 1.85;
  font-size: 16.5px;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pine); text-decoration-color: var(--line); text-underline-offset: .18em; }
a:hover { color: var(--pine-deep); }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 3px; }

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, var(--wrap-narrow)); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--pine); color: var(--paper); padding: .6em 1em; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,236,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.4rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; color: var(--ink); letter-spacing: .03em; }
.brand-sub { font-size: .62rem; letter-spacing: .34em; color: var(--ink-mute); text-transform: uppercase; padding-left: .1em; }

.site-nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  text-decoration: none; color: var(--ink-soft); font-size: .93rem; font-weight: 600;
  padding: .3em 0; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -.15em; height: 2px;
  background: var(--pine); transition: right .25s ease;
}
.site-nav a:hover { color: var(--pine-deep); }
.site-nav a:hover::after { right: 0; }

.navtoggle, .navtoggle-btn { display: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--pine); font-weight: 700; margin: 0 0 1.1rem;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.34; letter-spacing: .01em;
  margin: 0 0 1.1rem; color: var(--ink);
}
.hero h1 .accent { color: var(--pine); }
.hero-lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: .96rem; text-decoration: none;
  padding: .82em 1.5em; border-radius: 999px; transition: transform .15s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--pine); color: var(--paper); box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--pine-deep); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--pine); }

/* ---------- section frame ---------- */
.section { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head .eyebrow { margin-bottom: .5rem; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0; color: var(--ink); letter-spacing: .02em;
}
.section-head p { color: var(--ink-soft); margin: .6rem 0 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line-soft); }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  display: block; text-decoration: none; color: inherit; position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--pine);
  transform: scaleY(0); transform-origin: top; transition: transform .22s ease;
}
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--pine-tint); }
.cat-card:hover::before { transform: scaleY(1); }
.cat-num { font-family: var(--font-display); font-size: .9rem; color: var(--clay); letter-spacing: .1em; }
.cat-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.24rem; margin: .35rem 0 .5rem; }
.cat-card p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.75; }

/* ---------- article list (home) ---------- */
.post-list { display: grid; gap: 1.1rem; }
.post-row {
  display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: baseline;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--pine-tint); }
.post-order { font-family: var(--font-display); font-size: 1.6rem; color: var(--pine); line-height: 1; opacity: .5; }
.post-main h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin: 0 0 .4rem; color: var(--ink); }
.post-main p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.post-tags { margin-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }

.chip {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  color: var(--pine-deep); background: var(--pine-tint);
  padding: .28em .8em; border-radius: 999px; line-height: 1.4;
}
.chip.kw { color: var(--clay); background: rgba(176,106,63,.1); }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.trust-item h4 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .3rem; color: var(--pine-deep); }
.trust-item p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------- article page ---------- */
.article { padding: clamp(1.6rem, 4vw, 2.6rem) 0 3rem; }
.article .wrap { max-width: var(--wrap-narrow); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1.4rem; font-size: .82rem; color: var(--ink-mute); }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { text-decoration: none; color: var(--ink-mute); }
.breadcrumb a:hover { color: var(--pine); }

.article-head { margin-bottom: 2rem; }
.article-head h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.4; letter-spacing: .01em;
  margin: .7rem 0 .9rem; color: var(--ink);
}
.article-head .lead { font-size: 1.04rem; color: var(--ink-soft); margin: 0; }
.article-meta { margin-top: 1rem; display: flex; gap: .8rem; align-items: center; font-size: .82rem; color: var(--ink-mute); }
.draft-badge { background: rgba(176,106,63,.12); color: var(--clay); padding: .2em .7em; border-radius: 6px; font-weight: 700; }

/* ---------- prose (Markdown本文) ---------- */
.prose { font-size: 1.04rem; line-height: 1.95; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.5;
  margin-top: 2.6em; margin-bottom: .2em; padding-top: .9em;
  border-top: 1px solid var(--line); color: var(--ink); letter-spacing: .01em;
  scroll-margin-top: 90px;
}
.prose h2::before { content: "❋"; color: var(--pine); font-size: .8em; margin-right: .5em; vertical-align: .06em; }
.prose h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  margin-top: 2em; margin-bottom: .1em; color: var(--pine-deep); scroll-margin-top: 90px;
}
.prose p { margin-block: 0; }
.prose a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pine-tint); }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li { margin-top: .5em; }
.prose li::marker { color: var(--pine); }
.prose strong { color: var(--pine-deep); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0; padding: 1em 1.3em; background: var(--pine-tint);
  border-left: 4px solid var(--pine); border-radius: 0 10px 10px 0; color: var(--ink-soft);
}
.prose blockquote p { margin: 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose h3 + p, .prose h2 + p { margin-top: .6em; }

/* 参考・出典/免責 見出し（Markdown内 h3） */
.prose h3:last-of-type { }

/* ---------- CTA card ---------- */
.cta-card {
  margin-top: 3rem; background: linear-gradient(135deg, var(--pine), var(--pine-deep));
  color: var(--paper); border-radius: 18px; padding: 2rem 1.9rem; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: "❋"; position: absolute; right: -.2em; bottom: -.4em; font-size: 8rem;
  color: rgba(255,255,255,.06); line-height: 1;
}
.cta-eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; margin: 0 0 .6rem; color: #d8e6df; font-weight: 700; }
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin: 0 0 .6rem; color: #fff; }
.cta-body { margin: 0 0 .8rem; color: #e4ede8; font-size: .96rem; }
.cta-note { font-size: .78rem; color: #b9cdc4; }

/* ---------- 免責ブロック ---------- */
.disclaimer-block {
  margin-top: 2.2rem; padding: 1.1rem 1.3rem; background: var(--paper-2);
  border: 1px dashed var(--line); border-radius: 10px;
  font-size: .85rem; color: var(--ink-mute); line-height: 1.8;
}
.disclaimer-block p { margin: 0; }

/* ---------- related ---------- */
.related { margin-top: 3rem; }
.related-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 1rem; color: var(--ink); }
.related-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.related-list a { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .15s ease; }
.related-list a:hover { border-color: var(--pine); transform: translateX(3px); }
.related-chip { font-size: .68rem; font-weight: 700; color: var(--pine-deep); background: var(--pine-tint); padding: .25em .7em; border-radius: 999px; white-space: nowrap; }
.related-headline { font-weight: 600; color: var(--ink); font-size: .95rem; }

/* ---------- static page ---------- */
.static-page { padding: clamp(1.8rem, 4vw, 2.8rem) 0 3.5rem; }
.page-head { margin-bottom: 1.8rem; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: .6rem 0 .6rem; }
.static-page .prose h2 { font-size: 1.3rem; }
.static-page table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.static-page th, .static-page td { text-align: left; padding: .7em .9em; border: 1px solid var(--line); vertical-align: top; }
.static-page th { background: var(--paper-2); font-weight: 700; white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; background: var(--pine-deep); color: #d9e3de; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; padding: 3rem 0 1.6rem; }
.footer-brand .brand-name { color: #fff; font-family: var(--font-display); font-size: 1.3rem; }
.footer-tagline { margin: .7rem 0 0; color: #aec1b9; font-size: .88rem; max-width: 42ch; line-height: 1.8; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.footer-nav a { color: #d9e3de; text-decoration: none; font-size: .92rem; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0 2.4rem; font-size: .78rem; color: #9fb3aa; line-height: 1.8; }
.footer-legal p { margin: .3em 0; }
.footer-pr { color: #b6c7bf; }
.copyright { margin-top: .8rem !important; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .navtoggle-btn {
    display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; margin-left: auto;
  }
  .navtoggle-btn span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
  .site-nav {
    position: fixed; inset: 68px 0 auto 0; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav ul { flex-direction: column; gap: 0; padding: .5rem 1.2rem 1.2rem; }
  .site-nav li { border-bottom: 1px solid var(--line-soft); }
  .site-nav a { display: block; padding: .9em 0; }
  .navtoggle:checked ~ .site-nav { max-height: 60vh; }
  .navtoggle:checked ~ .navtoggle-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navtoggle:checked ~ .navtoggle-btn span:nth-child(2) { opacity: 0; }
  .navtoggle:checked ~ .navtoggle-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .footer-inner { grid-template-columns: 1fr; gap: 1.6rem; }
  .post-row { grid-template-columns: 1fr; gap: .5rem; }
  .post-order { display: none; }
}

/* motion配慮 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* load reveal（控えめ） */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .6s ease both; }
.reveal-2 { animation: rise .6s ease .08s both; }
.reveal-3 { animation: rise .6s ease .16s both; }

/* ---------- notice / form ---------- */
.notice {
  background: var(--pine-tint); border: 1px solid #cfe0d7; border-radius: 12px;
  padding: 1rem 1.2rem; margin-bottom: 1.8rem; color: var(--pine-deep); font-size: .92rem;
}
.notice p { margin: 0; }
.contact-form { display: grid; gap: 1.3rem; max-width: 560px; margin-top: 1.6rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .75em .9em; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(47,93,80,.12);
}
.field textarea { resize: vertical; }
.field-note { font-size: .82rem; color: var(--ink-mute); margin: 0; }
.contact-form .btn { justify-self: start; border: none; cursor: pointer; }
.form-result {
  margin: 0; padding: .8rem 1rem; background: var(--pine-tint); border-radius: 10px;
  color: var(--pine-deep); font-size: .9rem;
}
.form-result.is-error { background: #f6e5df; color: #9a3a1e; }
.contact-form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 404 ---------- */
.notfound { padding: clamp(3rem, 10vw, 6.5rem) 0; text-align: center; }
.notfound .eyebrow { justify-content: center; }
.notfound h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .4rem 0 .8rem; color: var(--ink); }
.notfound-lead { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 1.8rem; }
.notfound-actions { justify-content: center; }
