/*
Theme Name: Wisdom Tooth Info Center
Theme URI: https://wisdomtooth.zibsuri.com/
Description: 사랑니 발치 정보센터 전용 테마 — 정보 아카이브 + 인근 치과 검색 플랫폼
Version: 1.0.0
Author: MUN HO YOUNG
Text Domain: wisdomtooth
*/

/* ============ DESIGN TOKENS ============ */
:root {
  --navy: #123A5C;
  --navy-600: #1C4A70;
  --navy-700: #17405F;
  --navy-800: #0F2F4A;
  --navy-900: #0B2338;
  --mint: #2BB3A3;
  --mint-600: #1E9C8E;
  --mint-soft: #E3F5F2;
  --coral: #E8735A;
  --coral-soft: #FDEBE7;
  --amber: #F0A93B;
  --ivory: #FAF8F4;
  --gray-50: #F2F5F7;
  --gray-100: #E9EEF2;
  --gray-200: #DCE3E9;
  --gray-300: #C4CDD5;
  --gray-500: #82909C;
  --gray-600: #5E6D79;
  --gray-700: #42525F;
  --ink: #1D2A37;
  --white: #FFFFFF;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(18,58,92,.05), 0 4px 14px rgba(18,58,92,.06);
  --shadow-md: 0 2px 8px rgba(18,58,92,.07), 0 16px 34px rgba(18,58,92,.10);
  --shadow-lg: 0 4px 12px rgba(18,58,92,.08), 0 28px 60px rgba(18,58,92,.14);

  --font-body: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;

  --container: 1160px;
  --space: 8px;
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--mint-600); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--mint); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em;
  border: 1px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--mint); color: #fff; box-shadow: 0 6px 18px rgba(43,179,163,.32); }
.btn-primary:hover { background: var(--mint-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,179,163,.4); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-300); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--gray-50); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--ivory); color: var(--navy); transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gray-100);
}
.site-header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--mint); flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.brand-sub { font-size: 11.5px; color: var(--gray-500); font-weight: 500; letter-spacing: -0.01em; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--gray-700);
}
.main-nav a:hover { color: var(--navy); background: var(--gray-50); }
.main-nav .current-menu-item a, .main-nav .current-cat a { color: var(--navy); background: var(--mint-soft); }
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 0; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 82% -10%, rgba(43,179,163,.28), transparent 60%),
    radial-gradient(700px 420px at 8% 110%, rgba(43,179,163,.14), transparent 55%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 58%, var(--navy-600) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 96px 0 88px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  font-size: 13px; font-weight: 600; color: #D9F3EF; letter-spacing: .02em; margin-bottom: 22px;
}
.hero-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.hero h1 { font-family: var(--font-serif); font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; line-height: 1.18; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero-lead { font-size: 17.5px; line-height: 1.8; color: rgba(255,255,255,.86); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13.5px; font-weight: 600;
}
.hero-chip strong { color: #7EE0D2; font-size: 15px; }
.hero-visual { position: relative; }
.hero-img-wrap { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-img-wrap img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-img-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,35,56,0) 55%, rgba(11,35,56,.35)); }
.hero-float {
  position: absolute; left: -22px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 14px 18px; border-radius: 16px; box-shadow: var(--shadow-md);
}
.hero-float-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--mint-soft); color: var(--mint-600); display: flex; align-items: center; justify-content: center; }
.hero-float b { display: block; font-size: 14.5px; }
.hero-float span { font-size: 12.5px; color: var(--gray-500); }

/* ============ SECTION COMMON ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--ivory); }
.section-gray { background: var(--gray-50); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--mint-600); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-family: var(--font-serif); font-size: clamp(28px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 14px; }
.section-desc { font-size: 16.5px; color: var(--gray-600); line-height: 1.8; }

/* ============ QUICK GUIDE CARDS ============ */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card {
  position: relative; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; display: block;
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.guide-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; }
.guide-icon.mint { background: var(--mint); }
.guide-icon.navy { background: var(--navy); }
.guide-icon.coral { background: var(--coral); }
.guide-card h3 { font-size: 18.5px; margin-bottom: 10px; }
.guide-card p { font-size: 14.5px; color: var(--gray-600); margin-bottom: 14px; line-height: 1.7; }
.guide-more { font-size: 14px; font-weight: 700; color: var(--mint-600); display: inline-flex; align-items: center; gap: 6px; }
.guide-more::after { content: "→"; transition: transform .2s ease; }
.guide-card:hover .guide-more::after { transform: translateX(4px); }

/* ============ MAIN GUIDE BANNER ============ */
.guide-banner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md);
}
.guide-banner-media { position: relative; min-height: 320px; }
.guide-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-banner-body { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.guide-banner-body .badge { display: inline-flex; align-self: flex-start; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}
.badge-mint { background: var(--mint-soft); color: var(--mint-600); }
.badge-navy { background: var(--navy); color: #fff; }
.badge-coral { background: var(--coral-soft); color: var(--coral); }
.badge-amber { background: #FDF3E0; color: #B57A16; }
.guide-banner-body h3 { font-family: var(--font-serif); font-size: 26px; margin-bottom: 14px; }
.guide-banner-body p { color: var(--gray-600); font-size: 15.5px; margin-bottom: 22px; }
.guide-banner-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 26px; }
.guide-banner-points li { list-style: none; font-size: 14px; color: var(--gray-700); display: flex; gap: 8px; align-items: flex-start; }
.guide-banner-points li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); margin-top: 9px; }

/* ============ TIMELINE SECTION ============ */
.timeline-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.timeline-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); width: 100%; }
.timeline-steps { display: flex; flex-direction: column; gap: 0; }
.timeline-step { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding-bottom: 26px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before { content: ""; position: absolute; left: 31px; top: 46px; bottom: 0; width: 2px; background: var(--gray-200); }
.timeline-step:last-child::before { display: none; }
.timeline-day {
  width: 64px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em;
}
.timeline-step:nth-child(even) .timeline-day { background: var(--mint); }
.timeline-step h4 { font-size: 17px; margin-bottom: 5px; }
.timeline-step p { font-size: 14.5px; color: var(--gray-600); margin: 0; }

/* ============ IMPACTION SECTION ============ */
.impact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.impact-media img { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); width: 100%; }
.impact-list { display: grid; gap: 14px; margin: 24px 0; }
.impact-item { display: flex; gap: 14px; align-items: flex-start; }
.impact-item-num {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800;
}
.impact-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.impact-item p { font-size: 14px; color: var(--gray-600); margin: 0; }

/* ============ CATEGORY GRID ============ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cat-card h3 { font-family: var(--font-serif); font-size: 21px; }
.cat-count { font-size: 13px; font-weight: 700; color: var(--gray-500); background: var(--gray-50); padding: 5px 11px; border-radius: 999px; }
.cat-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-card li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 8px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--gray-700); }
.cat-card li a:hover { background: var(--gray-50); color: var(--navy); }
.cat-card li a::after { content: "→"; color: var(--gray-300); font-weight: 500; }

/* ============ POST CARDS / CAROUSEL ============ */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card .badge { align-self: flex-start; margin-bottom: 12px; }
.post-card h3 { font-size: 17.5px; line-height: 1.45; margin-bottom: 8px; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--mint-600); }
.post-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.post-card-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--gray-500); }

.carousel-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px);
  gap: 20px; overflow-x: auto; padding: 4px 4px 20px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--gray-300) transparent;
}
.carousel-scroll::-webkit-scrollbar { height: 8px; }
.carousel-scroll::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 99px; }
.carousel-scroll .post-card { scroll-snap-align: start; }

/* ============ STATS BAND ============ */
.stats-band {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--navy-900), var(--navy));
}
.stats-band::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; }
.stats-inner { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 72px 0; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(30px, 3.6vw, 44px); color: #7EE0D2; margin-bottom: 8px; letter-spacing: -0.01em; }
.stat span { font-size: 14px; color: rgba(255,255,255,.82); font-weight: 500; }
.stat small { display: block; margin-top: 4px; font-size: 12px; color: rgba(255,255,255,.55); }

/* ============ DENTAL SEARCH ============ */
.search-section { background: var(--gray-50); }
.search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.search-intro { position: sticky; top: 96px; }
.search-intro img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin: 22px 0 18px; width: 100%; }
.search-note { font-size: 12.5px; color: var(--gray-500); line-height: 1.7; }
.ds-panel {
  background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.ds-panel-head { padding: 18px 22px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; gap: 10px; }
.ds-panel-head b { font-size: 15px; }
.ds-panel-head .ds-status { margin-left: auto; font-size: 12.5px; color: var(--gray-500); }
.ds-body { padding: 22px; }
.ds-row { display: grid; gap: 14px; margin-bottom: 16px; }
.ds-row.two { grid-template-columns: 1fr 1fr; }
.ds-row.three { grid-template-columns: repeat(3, 1fr); }
.ds-label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 7px; }
.ds-label em { font-style: normal; color: var(--coral); }
.ds-select, .ds-input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
}
.ds-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6D79' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.ds-select:focus, .ds-input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(43,179,163,.15); }
.ds-input:disabled, .ds-select:disabled { background: var(--gray-50); color: var(--gray-500); }
.ds-cl-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-cl-chip {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--gray-200);
  background: #fff; font-size: 14px; font-weight: 600; color: var(--gray-600); transition: all .2s ease;
}
.ds-cl-chip:hover { border-color: var(--navy); color: var(--navy); }
.ds-cl-chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.ds-geo { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--gray-600); margin-bottom: 14px; }
.ds-geo button { border: 0; background: transparent; color: var(--mint-600); font-weight: 700; font-size: 13.5px; padding: 6px; border-radius: 8px; }
.ds-geo button:hover { background: var(--mint-soft); }
.ds-search-btn { width: 100%; min-height: 52px; border: 0; border-radius: var(--radius-sm); background: var(--navy); color: #fff; font-size: 16px; font-weight: 700; transition: all .2s ease; }
.ds-search-btn:hover { background: var(--navy-600); }
.ds-search-btn:disabled { opacity: .55; cursor: not-allowed; }
.ds-results { margin-top: 20px; border-top: 1px solid var(--gray-100); padding-top: 18px; }
.ds-results-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.ds-results-head b { font-size: 15px; }
.ds-results-head span { font-size: 13px; color: var(--gray-500); }
.ds-list { display: grid; gap: 10px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.ds-item {
  width: 100%; text-align: left; background: var(--gray-50); border: 1px solid var(--gray-100);
  border-radius: var(--radius-md); padding: 16px 18px; transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.ds-item:hover { border-color: var(--mint); background: #fff; transform: translateY(-1px); }
.ds-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ds-item-head b { font-size: 15.5px; }
.ds-item .ds-cl-tag { font-size: 11.5px; font-weight: 700; color: var(--mint-600); background: var(--mint-soft); padding: 3px 8px; border-radius: 999px; }
.ds-item .ds-addr { font-size: 13px; color: var(--gray-600); margin-bottom: 4px; }
.ds-item .ds-sub { font-size: 12.5px; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ds-empty { padding: 32px 16px; text-align: center; color: var(--gray-500); font-size: 14.5px; }
.ds-loading { display: none; text-align: center; padding: 28px; color: var(--gray-500); font-size: 14px; }
.ds-loading.show { display: block; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--gray-200); border-top-color: var(--mint); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -5px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* modal */
.ds-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.ds-modal.open { display: flex; }
.ds-modal-backdrop { position: absolute; inset: 0; background: rgba(11,35,56,.55); backdrop-filter: blur(3px); }
.ds-modal-panel {
  position: relative; width: 100%; max-width: 720px; background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); padding: 32px; margin: auto 0;
}
.ds-modal-close { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--gray-50); font-size: 20px; color: var(--gray-600); }
.ds-modal-close:hover { background: var(--gray-100); }
.ds-modal h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 6px; padding-right: 48px; }
.ds-modal .ds-m-sub { font-size: 13.5px; color: var(--gray-500); margin-bottom: 18px; }
.ds-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-bottom: 20px; }
.ds-info-grid div { background: var(--gray-50); border-radius: var(--radius-sm); padding: 12px 14px; }
.ds-info-grid dt { font-size: 12px; color: var(--gray-500); margin-bottom: 3px; }
.ds-info-grid dd { margin: 0; font-size: 14px; font-weight: 600; }
.ds-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--gray-200); margin-bottom: 16px; overflow-x: auto; }
.ds-tab { min-height: 44px; padding: 0 16px; border: 0; background: transparent; font-size: 14px; font-weight: 700; color: var(--gray-500); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.ds-tab.on { color: var(--navy); border-bottom-color: var(--mint); }
.ds-table-wrap { overflow-x: auto; margin-bottom: 16px; }
table.ds-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
table.ds-table th, table.ds-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-100); text-align: left; }
table.ds-table th { background: var(--gray-50); font-size: 12.5px; color: var(--gray-600); }
.ds-price-list { display: grid; gap: 8px; }
.ds-price-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 13.5px; }
.ds-price-item span:last-child { font-weight: 700; white-space: nowrap; }
.ds-modal-note { font-size: 12px; color: var(--gray-500); line-height: 1.7; border-top: 1px solid var(--gray-100); padding-top: 14px; }

/* ============ FAQ / CTA ============ */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.faq-item { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-md); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.faq-item h3 { font-size: 15.5px; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--gray-600); margin: 0; line-height: 1.7; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-900), var(--navy-600)); color: #fff; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 24px 24px; }
.cta-inner { position: relative; padding: 84px 24px; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-family: var(--font-serif); font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.85); margin-bottom: 26px; font-size: 16px; }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255,255,255,.5); }
.footer-desc { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.6); max-width: 340px; }
.footer-col h4 { font-size: 14px; color: #fff; margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,.68); }
.footer-col a:hover { color: #7EE0D2; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.12); padding: 28px 0 22px;
  display: grid; gap: 10px;
}
.footer-legal p { margin: 0; font-size: 12.5px; line-height: 1.75; color: rgba(255,255,255,.52); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* ============ SINGLE / PAGE / ARCHIVE ============ */
.site-main { min-height: 60vh; }
.entry-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy)); color: #fff; padding: 64px 0 56px; }
.entry-hero .entry-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7EE0D2; margin-bottom: 16px; }
.entry-hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); line-height: 1.3; max-width: 820px; margin-bottom: 14px; }
.entry-hero .entry-meta { font-size: 13.5px; color: rgba(255,255,255,.65); display: flex; gap: 12px; flex-wrap: wrap; }
.entry-wrap { max-width: 820px; margin: 0 auto; padding: 48px 24px 72px; }
.entry-body { font-size: 17px; line-height: 1.85; }
.entry-body > * { margin-bottom: 1.4em; }
.entry-body h2 {
  font-family: var(--font-serif); font-size: 25px; line-height: 1.4; letter-spacing: -0.015em;
  margin: 2em 0 0.9em; padding-top: .3em; position: relative;
}
.entry-body h2::before { content: ""; display: block; width: 34px; height: 5px; border-radius: 4px; background: var(--mint); margin-bottom: 14px; }
.entry-body h3 { font-size: 19px; margin: 1.6em 0 .7em; color: var(--navy); }
.entry-body p { line-height: 1.9; }
.entry-body ul, .entry-body ol { line-height: 1.85; }
.entry-body li { margin-bottom: .5em; }
.entry-body a { color: var(--mint-600); font-weight: 600; border-bottom: 1px solid rgba(43,179,163,.35); }
.entry-body a:hover { border-bottom-color: var(--mint-600); }
.entry-body img { border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); margin: 1.6em auto; }
.entry-body figure { margin: 1.6em 0; }
.entry-body figcaption { font-size: 13px; color: var(--gray-500); text-align: center; margin-top: 10px; }

.entry-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 1.6em 0; box-shadow: var(--shadow-sm); border-radius: var(--radius-md); overflow: hidden; }
.entry-body table th { background: var(--navy); color: #fff; font-weight: 700; }
.entry-body table th, .entry-body table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-100); text-align: left; vertical-align: top; }
.entry-body table tr:nth-child(even) td { background: var(--gray-50); }
.entry-body table tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; margin: 1.6em 0; }
.table-scroll table { margin: 0; }

.key-summary {
  background: var(--mint-soft); border: 1px solid #C4E8E2; border-radius: var(--radius-lg);
  padding: 22px 24px; margin: 0 0 2em; font-size: 15.5px; line-height: 1.85;
}
.key-summary b { color: var(--navy); }
.key-summary ul { margin: 10px 0 0; padding-left: 1.15em; }
.key-summary li { margin-bottom: .4em; }

.callout {
  border-left: 4px solid var(--mint); background: var(--gray-50); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px; margin: 1.8em 0; font-size: 15px; line-height: 1.8;
}
.callout.warn { border-left-color: var(--coral); background: var(--coral-soft); }
.callout.navy { border-left-color: var(--navy); background: var(--ivory); }
.callout b { color: var(--navy); }
.callout.warn b { color: var(--coral); }
blockquote {
  border-left: 4px solid var(--navy); background: var(--ivory); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 20px; margin: 1.8em 0; font-size: 15px; color: var(--gray-700);
}
blockquote p { margin: 0; }

/* inline charts */
.chart { margin: 1.8em 0; display: grid; gap: 14px; }
.chart-row { display: grid; grid-template-columns: 130px 1fr 52px; align-items: center; gap: 14px; font-size: 14px; }
.chart-row .chart-label { font-weight: 700; color: var(--gray-700); font-size: 13.5px; }
.chart-bar { height: 22px; border-radius: 8px; background: var(--gray-100); overflow: hidden; position: relative; }
.chart-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--mint), var(--mint-600)); min-width: 6px; animation: growBar .8s ease both; transform-origin: left; }
.chart-bar.navy i { background: linear-gradient(90deg, var(--navy-600), var(--navy)); }
.chart-bar.coral i { background: linear-gradient(90deg, var(--coral), #E8543A); }
.chart-row .chart-val { font-weight: 800; color: var(--navy); text-align: right; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.entry-toc { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius-lg); padding: 20px 24px; margin: 0 0 2em; }
.entry-toc h3 { font-size: 15px; margin-bottom: 12px; color: var(--navy); }
.entry-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.entry-toc a { font-size: 14px; color: var(--gray-700); font-weight: 500; }

.related-posts { margin-top: 48px; border-top: 1px solid var(--gray-100); padding-top: 36px; }
.related-posts h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.related-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.related-card-body { padding: 14px 16px 16px; }
.related-card-body h4 { font-size: 14.5px; line-height: 1.5; margin-bottom: 6px; }
.related-card-body span { font-size: 12px; color: var(--gray-500); }

.legal-notice { font-size: 0.85em; color: #777; background: #f8f9fa; border-left: 3px solid #cbd5e1; padding: 10px 14px; margin-top: 2em; border-radius: 0 6px 6px 0; }
.legal-notice p { margin: 4px 0; }
.ai-notice { font-size: 0.85em; color: #888; margin-top: 2em; }

/* archive / index */
.archive-hero { background: var(--ivory); padding: 56px 0; }
.archive-hero h1 { font-family: var(--font-serif); font-size: clamp(26px, 3.4vw, 38px); }
.archive-hero p { color: var(--gray-600); max-width: 640px; margin: 10px 0 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 0 72px; }
.pagination { display: flex; justify-content: center; gap: 8px; padding-bottom: 72px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--gray-200); border-radius: 12px; font-size: 14.5px; font-weight: 700; color: var(--gray-600); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 72px 0 64px; }
  .hero-visual { max-width: 620px; }
  .guide-grid, .cat-grid, .cards-grid, .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid, .impact-grid, .search-grid, .guide-banner { grid-template-columns: 1fr; }
  .timeline-media, .impact-media { max-width: 620px; }
  .search-intro { position: static; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
}
@media (max-width: 768px) {
  .section { padding: 68px 0; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 72px; left: 0; right: 0; display: none;
    background: #fff; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md); padding: 12px 20px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: flex; width: 100%; min-height: 48px; }
  .nav-cta { margin: 10px 0 0; }
  .guide-grid, .cat-grid, .cards-grid, .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .ds-row.two, .ds-row.three { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .guide-banner-body { padding: 32px 26px; }
  .guide-banner-points { grid-template-columns: 1fr; }
  .ds-modal { padding: 16px 12px; }
  .ds-modal-panel { padding: 24px 18px; }
  .ds-info-grid { grid-template-columns: 1fr; }
  .chart-row { grid-template-columns: 96px 1fr 46px; gap: 8px; }
  .hero { padding-top: 8px; }
  .hero-float { left: 12px; bottom: 14px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
