/* ==========================================================================
   だし探訪 - スタイルシート
   ========================================================================== */

:root {
  --bg: #faf6ee;
  --bg-card: #ffffff;
  --ink: #262019;
  --ink-soft: #6b5f4f;
  --ink-faint: #948a79;
  --line: #e6ddc9;
  --line-strong: #d8cbae;
  --brand: #6b3a2a;
  --brand-dark: #4c281c;
  --accent-soft: #f3e6d6;
  --shadow-sm: 0 2px 10px -4px rgba(38, 32, 25, 0.18);
  --shadow-md: 0 14px 32px -16px rgba(38, 32, 25, 0.28);
  --shadow-lg: 0 24px 50px -20px rgba(38, 32, 25, 0.32);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --serif: 'Shippori Mincho', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(107, 58, 42, 0.05) 1px, transparent 0);
  background-size: 22px 22px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Background decoration (rotating rings) ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-ring {
  position: absolute;
  fill: none;
  stroke: currentColor;
}
.bg-ring svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bg-ring circle { fill: none; stroke: currentColor; stroke-width: 2; }
.bg-ring-ticks line { stroke: currentColor; stroke-width: 2; }

.bg-ring-1 {
  top: -190px;
  left: -210px;
  width: 560px;
  height: 560px;
  color: var(--brand);
  opacity: 0.24;
  animation: spin-cw 170s linear infinite;
}
.bg-ring-2 {
  bottom: -260px;
  right: -220px;
  width: 680px;
  height: 680px;
  color: var(--brand-dark);
  opacity: 0.2;
  animation: spin-ccw 220s linear infinite;
}
.bg-ring-3 {
  top: 32%;
  right: -190px;
  width: 380px;
  height: 380px;
  color: #2c4a70;
  opacity: 0.2;
  animation: spin-cw 130s linear infinite;
}
.bg-ring-4 {
  bottom: 6%;
  left: -160px;
  width: 300px;
  height: 300px;
  color: #1f5344;
  opacity: 0.2;
  animation: spin-ccw 110s linear infinite;
}

@keyframes spin-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-ccw {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .bg-ring { animation: none !important; }
}

@media (max-width: 720px) {
  .bg-ring-2, .bg-ring-3 { display: none; }
  .bg-ring-1 { width: 420px; height: 420px; top: -150px; left: -170px; }
  .bg-ring-4 { width: 220px; height: 220px; }
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand);
  margin: 0 0 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark { color: var(--brand); display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }
.brand-sub { font-size: 10px; letter-spacing: 0.16em; color: var(--ink-faint); margin-top: 2px; }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--brand); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}
.nav-toggle span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.mobile-nav.is-open { display: flex; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  margin-bottom: 20px;
}
.hero-lead {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; color: var(--brand); }
.hero-mascot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46%;
  transform: translate(-50%, -50%);
  image-rendering: pixelated;
  filter: drop-shadow(0 14px 20px rgba(38, 32, 25, 0.22));
}
.hero-mascot-badge {
  position: absolute;
  right: 6%;
  bottom: 10%;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: 26px;
}

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--cat-color, var(--brand)); color: var(--cat-color, var(--brand)); }
.filter-tab.is-active {
  background: var(--cat-color, var(--brand));
  border-color: var(--cat-color, var(--brand));
  color: #fff;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--cat-color, var(--brand));
}

/* ---------- Featured card ---------- */
.featured-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-media {
  position: relative;
  min-height: 220px;
  background:
    radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--cat-color) 20%, transparent), transparent 60%),
    linear-gradient(135deg, var(--cat-accent), #fff 120%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.featured-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cat-color);
  align-self: flex-start;
}
.featured-mascot {
  position: absolute;
  right: 18px;
  bottom: 14px;
  width: 84px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(38, 32, 25, 0.25));
}
.featured-body { padding: 32px 36px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.featured-body h2 { font-size: 24px; color: var(--ink); }
.featured-body p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-faint); }
.meta-row .dot { opacity: 0.6; }
.meta-row.small { font-size: 12.5px; }

/* ---------- Article grid / cards ---------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card-media {
  position: relative;
  height: 108px;
  padding: 16px;
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--cat-color) 25%, transparent), transparent 65%),
    linear-gradient(150deg, var(--cat-accent), #fff 130%);
  display: flex;
  align-items: flex-start;
}
.card-mascot {
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 62px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 10px rgba(38, 32, 25, 0.2));
}
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.card-body p {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-soft);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- CTA section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-lg);
  margin: 0 24px;
  color: #fff;
}
.cta-inner { max-width: 640px; text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-inner h2 { color: #fff; font-size: 24px; }
.cta-inner p { color: rgba(255,255,255,0.85); margin: 0 0 6px; }
.cta-section .btn-primary { background: #fff; color: var(--brand-dark); }
.cta-section .btn-primary:hover { background: var(--accent-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span:last-child { color: var(--ink-soft); }

/* ---------- Category hero ---------- */
.category-hero {
  padding: 52px 0 40px;
  background: linear-gradient(180deg, var(--cat-accent), var(--bg) 140%);
  border-bottom: 1px solid var(--line);
}
.category-hero h1 { font-size: clamp(26px, 3.6vw, 34px); color: var(--ink); margin-bottom: 8px; }
.category-hero p { color: var(--ink-soft); margin: 0; }
.category-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.category-mascot {
  width: 120px;
  flex-shrink: 0;
  image-rendering: pixelated;
  filter: drop-shadow(0 10px 16px rgba(38, 32, 25, 0.22));
}

/* ---------- Article hero ---------- */
.article-hero {
  padding: 48px 0 44px;
  background: linear-gradient(180deg, var(--cat-accent), var(--bg) 150%);
  border-bottom: 1px solid var(--line);
}
.article-hero-top { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; }
.article-hero .badge { margin: 0; }
.article-hero-mascot { width: 48px; image-rendering: pixelated; filter: drop-shadow(0 4px 8px rgba(38, 32, 25, 0.2)); }
.article-hero h1 { font-size: clamp(26px, 3.6vw, 36px); color: var(--ink); margin-bottom: 16px; max-width: 26ch; }
.article-excerpt { color: var(--ink-soft); font-size: 16px; max-width: 60ch; margin: 0 0 18px; }

/* ---------- Article layout ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 52px 24px 20px;
  align-items: start;
}
.article-toc { position: sticky; top: 96px; }
.toc-inner {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.toc-inner h2 {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.toc-inner ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: toc; }
.toc-inner li { counter-increment: toc; }
.toc-inner a {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: flex;
  gap: 8px;
}
.toc-inner a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.toc-inner a:hover { color: var(--brand); }
.toc-tags { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 16px; }

.tag {
  font-size: 12px;
  color: var(--brand);
  background: var(--accent-soft);
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 600;
}

.article-body { max-width: 720px; }
.article-section { margin-bottom: 44px; padding-top: 12px; }
.article-section h2 {
  font-size: 21px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-index {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.article-section p {
  font-size: 15.5px;
  color: #3a332a;
  margin: 0 0 18px;
  line-height: 1.95;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }

/* ---------- FAQ ---------- */
.article-faq { margin-top: 52px; padding-top: 12px; }
.article-faq h2 {
  font-size: 21px;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-item[open] summary { margin-bottom: 10px; }
.faq-item p {
  margin: 0;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.related-section { border-top: 1px solid var(--line); background: var(--accent-soft); background-image: none; }

/* ---------- About / 404 ---------- */
.about-content { max-width: 680px; display: flex; flex-direction: column; gap: 18px; }
.about-content p { color: #3a332a; font-size: 15.5px; }
.not-found { text-align: center; padding: 60px 24px 100px; }
.not-found h1 { font-size: 26px; margin-bottom: 10px; }
.not-found p { color: var(--ink-soft); margin-bottom: 26px; }
.notfound-mascot {
  width: 160px;
  margin: 0 auto 8px;
  image-rendering: pixelated;
  filter: drop-shadow(0 12px 18px rgba(38, 32, 25, 0.2));
}

.mascot-lineup { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.mascot-lineup h2 { font-size: 20px; color: var(--ink); margin-bottom: 8px; }
.mascot-lineup > p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 24px; }
.mascot-lineup-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.mascot-lineup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
}
.mascot-lineup-item img { width: 84px; image-rendering: pixelated; margin-bottom: 6px; }
.mascot-lineup-name { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.mascot-lineup-label { font-size: 12px; color: var(--ink-faint); }
@media (max-width: 620px) {
  .mascot-lineup-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */
.site-footer { background: #221c15; color: #d9d0c1; margin-top: 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 56px 24px 36px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand-title { color: #fff; font-size: 20px; }
.footer-brand p { font-size: 13.5px; color: #a89d89; margin-top: 12px; line-height: 1.8; }
.footer-links { display: flex; gap: 60px; }
.footer-links h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #8a7f6c;
  margin-bottom: 14px;
}
.footer-links a { display: block; font-size: 13.5px; color: #c9bfab; margin-bottom: 10px; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #382f24;
  padding: 18px 24px;
  font-size: 12.5px;
  color: #776c5a;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { max-width: 260px; margin: 0 auto; }
  .article-layout { grid-template-columns: 1fr; }
  .article-toc { position: static; }
  .toc-inner ol { flex-direction: row; flex-wrap: wrap; }
  .toc-inner ol li { flex: 1 1 45%; }
  .featured-card { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .article-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .hero { padding: 48px 0 36px; }
  .footer-inner { flex-direction: column; }
  .featured-body { padding: 26px; }
}
