/*
Theme Name: Gikkuri Guide
Theme URI: https://gikkuri.yodonavi.osaka/
Author: Gikkuri Guide Editorial Team
Description: ぎっくり腰の総合情報サイト専用テーマ
Version: 1.0.2
Text Domain: gikkuri-guide
*/

:root {
  --ink: #193239;
  --muted: #61777c;
  --teal: #087d7a;
  --teal-deep: #055b5a;
  --teal-soft: #e5f5f3;
  --cream: #fffaf1;
  --amber: #f5ae3d;
  --coral: #e8664d;
  --red-soft: #fff1ee;
  --line: #dce8e6;
  --white: #fff;
  --shadow: 0 18px 44px rgba(20, 70, 70, .10);
  --radius: 22px;
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfc;
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.85;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
.wrap { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 9999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid rgba(8,125,122,.12);
  backdrop-filter: blur(12px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(8,125,122,.24); }
.brand-mark svg { width: 25px; height: 25px; }
.brand-copy strong { display: block; font-size: 1.05rem; line-height: 1.2; letter-spacing: .04em; }
.brand-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
.main-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 700; font-size: .88rem; text-decoration: none; }
.main-nav a:hover { background: var(--teal-soft); color: var(--teal-deep); }
.nav-emergency a { color: #fff; background: var(--coral); }
.nav-emergency a:hover { color: #fff; background: #cf503a; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--teal-soft); color: var(--teal-deep); cursor: pointer; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 20px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }

.hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; background: #edf6f4; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246,252,250,.99) 0%, rgba(246,252,250,.95) 39%, rgba(246,252,250,.22) 68%, rgba(246,252,250,.04) 100%), var(--hero-image) center/cover no-repeat; }
.hero::after { content: ""; position: absolute; left: -120px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; background: rgba(245,174,61,.13); }
.hero-inner { position: relative; z-index: 1; padding-block: 78px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 7px 13px; border-radius: 999px; color: var(--teal-deep); background: #fff; border: 1px solid rgba(8,125,122,.18); font-size: .82rem; font-weight: 800; box-shadow: 0 8px 24px rgba(20,70,70,.06); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.hero h1 { max-width: 710px; margin: 0; font-size: clamp(2.25rem, 5.2vw, 4.7rem); line-height: 1.2; letter-spacing: -.035em; }
.hero h1 span { color: var(--teal); }
.hero-lead { max-width: 650px; margin: 24px 0 30px; color: #405a60; font-size: clamp(1rem, 1.7vw, 1.18rem); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 11px 22px; border-radius: 13px; background: var(--teal); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 10px 24px rgba(8,125,122,.22); }
.button:hover { background: var(--teal-deep); color: #fff; transform: translateY(-1px); }
.button-secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); box-shadow: none; }
.button-secondary:hover { color: var(--teal-deep); background: var(--teal-soft); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .82rem; font-weight: 700; }
.hero-proof li::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 900; }

.emergency-strip { position: relative; z-index: 4; margin-top: -54px; }
.emergency-box { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 24px 26px; border: 1px solid #f6b5a8; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.emergency-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--red-soft); color: var(--coral); font-size: 1.7rem; font-weight: 900; }
.emergency-box h2 { margin: 0 0 3px; font-size: 1.05rem; }
.emergency-box p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.text-link { font-weight: 800; white-space: nowrap; }

.section { padding-block: 92px; }
.section-soft { background: #f0f8f6; }
.section-cream { background: var(--cream); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-label { display: block; color: var(--teal); font-size: .78rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.section h2, .section-title { margin: 8px 0 12px; font-size: clamp(1.75rem, 3.3vw, 2.65rem); line-height: 1.35; letter-spacing: -.02em; }
.section-head p { margin: 0; color: var(--muted); }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.check-card { position: relative; padding: 24px 24px 24px 66px; border: 1px solid #f1c0b7; border-radius: 18px; background: #fff; }
.check-card::before { content: "!"; position: absolute; left: 20px; top: 24px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--coral); font-weight: 900; }
.check-card strong { display: block; margin-bottom: 4px; font-size: 1rem; }
.check-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.notice { margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #fff7e5; border-left: 5px solid var(--amber); font-size: .92rem; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { overflow: hidden; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(20,70,70,.15); }
.feature-card img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.feature-card-body { padding: 24px; }
.card-kicker { display: block; margin-bottom: 8px; color: var(--teal); font-size: .74rem; font-weight: 900; letter-spacing: .08em; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.18rem; line-height: 1.5; }
.feature-card p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; }
.feature-card a { font-weight: 800; text-decoration: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.step { counter-increment: steps; padding: 26px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.step::before { content: "0" counter(steps); display: block; margin-bottom: 18px; color: var(--amber); font-size: 1.8rem; font-weight: 900; line-height: 1; }
.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .85rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.post-card-image { display: block; overflow: hidden; aspect-ratio: 5/3; background: var(--teal-soft); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.post-card:hover img { transform: scale(1.035); }
.post-card-content { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.post-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: .72rem; }
.category-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; color: var(--teal-deep); background: var(--teal-soft); font-weight: 800; }
.post-card h3 { margin: 0 0 10px; font-size: 1.08rem; line-height: 1.55; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.post-card .read-more { margin-top: auto; padding-top: 16px; font-weight: 800; font-size: .84rem; text-decoration: none; }

.policy-box { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; padding: 44px; border-radius: 28px; background: var(--teal-deep); color: #fff; box-shadow: var(--shadow); }
.policy-box .section-label { color: #9fe4de; }
.policy-box h2 { margin-top: 8px; }
.policy-list { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.policy-list li { position: relative; padding-left: 32px; color: #e6f5f4; }
.policy-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-weight: 900; }

.page-hero { padding: 64px 0 52px; background: linear-gradient(135deg, #e7f6f3, #fffaf1); }
.page-hero .wrap { max-width: 880px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: .76rem; }
.breadcrumbs a { color: inherit; }
.page-hero h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.35; }
.page-lead { margin: 16px 0 0; color: var(--muted); font-size: 1.02rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 48px; align-items: start; padding-block: 58px 92px; }
.article-main { min-width: 0; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 16px; color: var(--muted); font-size: .78rem; }
.article-main > .featured-image { width: 100%; margin: 0 0 34px; border-radius: 22px; box-shadow: var(--shadow); }
.article-summary { margin-bottom: 28px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 16px; background: #f5faf9; color: #3f595e; font-weight: 600; }
.article-content { font-size: 1rem; }
.article-content h2 { margin: 3.1em 0 1.1em; padding: .72em .85em; border-left: 6px solid var(--teal); border-radius: 0 12px 12px 0; background: var(--teal-soft); font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.5; }
.article-content h3 { margin: 2.3em 0 .8em; padding-bottom: .45em; border-bottom: 2px solid var(--line); font-size: 1.27rem; line-height: 1.5; }
.article-content h4 { margin: 2em 0 .7em; font-size: 1.08rem; }
.article-content p { margin: 1.25em 0; }
.article-content ul, .article-content ol { margin: 1.2em 0; padding-left: 1.45em; }
.article-content li { margin: .55em 0; }
.article-content blockquote { margin: 1.7em 0; padding: 19px 22px; border-left: 5px solid var(--amber); background: #fff8e8; }
.article-content .alert, .article-alert { margin: 1.8em 0; padding: 20px 22px; border: 1px solid #f3b0a3; border-radius: 14px; background: var(--red-soft); }
.article-content .point { margin: 1.8em 0; padding: 20px 22px; border: 1px solid #9fd5cf; border-radius: 14px; background: var(--teal-soft); }
.article-content .source-box { margin-top: 3em; padding: 20px 22px; border-radius: 14px; background: #f4f5f5; color: #53666a; font-size: .82rem; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .88rem; }
.article-content th, .article-content td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-content th { background: var(--teal-soft); }
.article-sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.sidebar-box { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sidebar-box h2 { margin: 0 0 12px; font-size: .92rem; }
.toc-list { margin: 0; padding: 0; list-style: none; font-size: .78rem; }
.toc-list li + li { margin-top: 8px; }
.toc-list a { color: #425b60; text-decoration: none; }
.toc-list a:hover { color: var(--teal); }
.sidebar-emergency { border-color: #efb0a4; background: var(--red-soft); }
.sidebar-emergency a { font-weight: 800; }
.author-box { margin-top: 44px; padding: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.author-box strong { display: block; margin-bottom: 5px; }
.author-box p { margin: 0; color: var(--muted); font-size: .84rem; }

.archive-wrap { padding-block: 64px 92px; }
.archive-head { margin-bottom: 36px; }
.archive-head h1 { margin: 0 0 8px; font-size: clamp(2rem,4vw,3rem); }
.pagination { margin-top: 38px; text-align: center; }
.pagination .page-numbers { display: inline-grid; min-width: 40px; height: 40px; place-items: center; margin: 3px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; }
.pagination .current { color: #fff; background: var(--teal); border-color: var(--teal); }

.site-footer { background: #123d42; color: #d9eeee; }
.footer-main { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; padding-block: 58px 36px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-copy { max-width: 600px; margin: 18px 0 0; color: #b8d3d5; font-size: .82rem; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: #d9eeee; font-size: .84rem; text-decoration: none; }
.footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255,255,255,.1); color: #a8c5c7; font-size: .72rem; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 20px; }
.mobile-guide { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; left: 20px; right: 20px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { display: grid; }
  .main-nav a { padding: 12px; }
  .hero { min-height: 610px; }
  .hero::before { background: linear-gradient(90deg, rgba(246,252,250,.98) 0%, rgba(246,252,250,.92) 55%, rgba(246,252,250,.36) 100%), var(--hero-image) 64% center/cover no-repeat; }
  .hero h1 { max-width: 640px; }
  .feature-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-row: 1; }
  .sidebar-emergency { display: none; }
  .policy-box { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 680px) {
  .wrap { width: min(calc(100% - 28px), var(--content)); }
  .header-inner { min-height: 68px; }
  .brand-copy small { display: none; }
  .main-nav { top: 68px; left: 14px; right: 14px; }
  .hero { min-height: 720px; align-items: end; }
  .hero::before { background: linear-gradient(180deg, rgba(246,252,250,.08) 0%, rgba(246,252,250,.35) 30%, rgba(246,252,250,.98) 57%, #f6fcfa 100%), var(--hero-image) 69% top/auto 58% no-repeat, #edf6f4; }
  .hero-inner { padding: 300px 0 86px; }
  .hero h1 { font-size: clamp(2.05rem, 10.5vw, 3.2rem); }
  .hero-lead { margin: 18px 0 24px; font-size: .96rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-proof { display: grid; gap: 6px; margin-top: 24px; }
  .emergency-strip { margin-top: -36px; }
  .emergency-box { grid-template-columns: auto 1fr; gap: 13px; padding: 19px; }
  .emergency-icon { width: 42px; height: 42px; }
  .emergency-box .text-link { grid-column: 1 / -1; padding-left: 55px; }
  .section { padding-block: 70px; }
  .section-head { margin-bottom: 30px; text-align: left; }
  .check-grid, .feature-grid, .post-grid, .steps { grid-template-columns: 1fr; }
  .check-card { padding: 20px 18px 20px 58px; }
  .policy-box { padding: 28px 22px; border-radius: 22px; }
  .page-hero { padding: 44px 0 38px; }
  .article-layout { padding-block: 38px 82px; gap: 26px; }
  .article-content { font-size: .96rem; }
  .article-content h2 { margin-top: 2.5em; padding: .65em .72em; }
  .article-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .wrap { display: block; }
  .mobile-guide { display: block; position: fixed; z-index: 90; left: 14px; right: 14px; bottom: 12px; padding: 12px 18px; border-radius: 13px; color: #fff; background: var(--coral); text-align: center; text-decoration: none; font-weight: 800; box-shadow: 0 12px 30px rgba(128,42,29,.28); }
  body { padding-bottom: 64px; }
}
