/* ========================================
   金岡町だけマガジン — Kanaoka-cho only
   Cool mist / pine / dusk slate
   ======================================== */

:root {
  --ink: #161c18;
  --ink-soft: #3a453e;
  --paper: #f5f7f4;
  --mist: #dce5df;
  --pine: #254538;
  --moss: #5a7d68;
  --dusk: #3d4a52;
  --teal: #3d7a8c;
  --line: rgba(22, 28, 24, 0.12);
  --shadow: 0 18px 50px rgba(22, 28, 24, 0.08);
  --display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --max: 1120px;
  --measure: 40rem;
  --gutter: clamp(1.25rem, 5.5vw, 2rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.85;
  font-size: 1.05rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--pine);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.measure {
  width: min(100% - (var(--gutter) * 2), var(--measure));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.mag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 247, 244, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.mag-header.is-scrolled {
  border-bottom-color: var(--line);
}

.mag-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.5rem;
}

.mag-logo {
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.mag-logo a {
  color: var(--ink);
  text-decoration: none;
}

.mag-logo span {
  display: block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--moss);
  margin-top: 0.15rem;
}

.mag-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.mag-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mag-nav a:hover,
.mag-nav a[aria-current="page"] {
  color: var(--pine);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  margin: 0.35rem auto;
  background: var(--ink);
}

/* ---------- Cover / Hero ---------- */

.cover {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf7;
  background: var(--pine);
}

.cover-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(90, 125, 104, 0.45), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(61, 122, 140, 0.28), transparent 50%),
    linear-gradient(160deg, #1a2e24 0%, #254538 42%, #3d4a52 100%);
}

.cover-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 48px,
      rgba(245, 247, 244, 0.03) 48px,
      rgba(245, 247, 244, 0.03) 49px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 48px,
      rgba(245, 247, 244, 0.025) 48px,
      rgba(245, 247, 244, 0.025) 49px
    );
  animation: gridDrift 28s linear infinite;
}

.cover-visual::after {
  content: "";
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  right: -12%;
  top: -18%;
  border-radius: 50%;
  border: 1px solid rgba(245, 247, 244, 0.12);
  box-shadow:
    inset 0 0 0 80px rgba(245, 247, 244, 0.02),
    inset 0 0 0 160px rgba(245, 247, 244, 0.015);
  animation: orbFloat 14s ease-in-out infinite;
}

@keyframes gridDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-49px, -49px, 0); }
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 3%); }
}

.cover-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0 4.5rem;
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.cover-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 247, 244, 0.72);
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.9s 0.15s ease forwards;
}

.cover-brand {
  font-family: var(--display);
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  opacity: 0;
  animation: rise 0.95s 0.28s ease forwards;
}

.cover-lead {
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(245, 247, 244, 0.88);
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: rise 0.95s 0.42s ease forwards;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise 0.95s 0.55s ease forwards;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-solid {
  background: var(--paper);
  color: var(--pine);
}

.btn-solid:hover {
  background: #fff;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: #f7faf7;
  border-color: rgba(247, 250, 247, 0.4);
}

.btn-ghost:hover {
  border-color: #f7faf7;
  color: #fff;
}

.btn-dark {
  background: var(--pine);
  color: #f7faf7;
}

.btn-dark:hover {
  background: #1a2e24;
  color: #fff;
}

/* ---------- Sections ---------- */

.section {
  padding: 5.5rem 0;
}

.section-head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--moss);
  font-weight: 500;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.section-desc {
  color: var(--ink-soft);
  font-size: 1rem;
}

.band-mist {
  background: var(--mist);
}

.band-pine {
  background: var(--pine);
  color: #f7faf7;
}

.band-pine .section-kicker {
  color: rgba(245, 247, 244, 0.65);
}

.band-pine .section-title,
.band-pine .section-desc {
  color: #f7faf7;
}

.band-pine .section-desc {
  opacity: 0.82;
}

/* ---------- Feature card (magazine spread) ---------- */

.feature-spread {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 420px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-spread-visual {
  position: relative;
  background:
    linear-gradient(145deg, rgba(37, 69, 56, 0.92), rgba(61, 74, 82, 0.75)),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 16px,
      rgba(245, 247, 244, 0.04) 16px,
      rgba(245, 247, 244, 0.04) 17px
    );
  min-height: 280px;
}

.feature-spread-visual .issue {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(245, 247, 244, 0.85);
}

.feature-spread-body {
  padding: clamp(1.75rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.feature-spread-body h3 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  line-height: 1.35;
  font-weight: 600;
}

.feature-spread-body h3 a {
  color: inherit;
  text-decoration: none;
}

.feature-spread-body h3 a:hover {
  color: var(--pine);
}

.feature-spread-body p {
  color: var(--ink-soft);
}

.feature-meta {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--moss);
}

/* ---------- Portrait grid ---------- */

.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.place-card {
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transform: translateY(0);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(22, 28, 24, 0.12);
}

.place-card-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

.place-card-visual.tone-a {
  background: linear-gradient(160deg, #2f5d4a, #1a2e24 70%);
}

.place-card-visual.tone-b {
  background: linear-gradient(160deg, #3d4a52, #254538 75%);
}

.place-card-visual.tone-c {
  background: linear-gradient(160deg, #3d7a8c, #254538 80%);
}

.place-card-visual.tone-d {
  background: linear-gradient(160deg, #5a7d68, #2a3340 78%);
}

.place-card-visual::after {
  content: attr(data-label);
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-family: var(--display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: rgba(245, 247, 244, 0.9);
}

.place-card-body {
  padding: 1.35rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.place-cat {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--moss);
}

.place-card-body h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.35;
  font-weight: 600;
}

.place-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

.place-card-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.place-more {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--pine);
}

/* ---------- Article page ---------- */

.article-hero {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 100%);
}

.article-hero .container {
  max-width: 44rem;
}

.article-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--moss);
  margin-bottom: 1rem;
}

.article-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.65rem, 5.5vw, 3rem);
  line-height: 1.35;
  font-weight: 600;
  margin-bottom: 1.15rem;
  letter-spacing: 0.01em;
}

.article-deck {
  font-size: clamp(1rem, 2.8vw, 1.12rem);
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: 1.35rem;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.35rem;
  font-size: 0.88rem;
  color: var(--dusk);
}

.article-body {
  padding: clamp(2.5rem, 5vw, 3.75rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.article-body .measure > * + * {
  margin-top: 1.45rem;
}

.article-body h2 {
  font-family: var(--display);
  font-size: clamp(1.3rem, 3.5vw, 1.55rem);
  font-weight: 600;
  margin-top: clamp(2.25rem, 5vw, 2.85rem);
  line-height: 1.45;
  color: var(--ink);
}

.article-body p,
.article-body li {
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 2.6vw, 1.08rem);
  line-height: 1.95;
}

.article-body ul {
  padding-left: 1.35rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1.15rem 0 1.15rem 1.15rem;
  border-left: 3px solid var(--pine);
  font-family: var(--display);
  font-size: clamp(1.08rem, 3vw, 1.22rem);
  line-height: 1.8;
  color: var(--ink);
}

.pull-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem 1.15rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0 !important;
}

.pull-stat strong {
  font-family: var(--display);
  font-size: clamp(1.6rem, 5vw, 2rem);
  color: var(--pine);
  line-height: 1;
}

.pull-stat span {
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2.5vw, 1.02rem);
  line-height: 1.8;
}

.fact-box {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.15rem, 3.5vw, 1.5rem) clamp(1.1rem, 3.5vw, 1.5rem);
  margin: 2rem 0 !important;
  border-radius: 2px;
}

.fact-box h3 {
  font-family: var(--display);
  font-size: 1.12rem;
  margin-bottom: 0.95rem;
}

.fact-box dl {
  display: grid;
  gap: 0.75rem;
}

.fact-box dt {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--moss);
}

.fact-box dd {
  color: var(--ink-soft);
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
  line-height: 1.75;
  word-break: break-word;
}

.sources {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--dusk);
  line-height: 1.75;
}

.sources ul {
  margin-top: 0.75rem;
  padding-left: 1.15rem;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.page-nav a {
  text-decoration: none;
  color: var(--pine);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Index list ---------- */

.index-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.index-item {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.index-item .cat {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--moss);
}

.index-item a {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}

.index-item a:hover {
  color: var(--pine);
}

.index-item .status {
  font-size: 0.8rem;
  color: var(--dusk);
}

/* ---------- Footer ---------- */

.mag-footer {
  background: var(--ink);
  color: rgba(245, 247, 244, 0.78);
  padding: 3.5rem 0 2.5rem;
}

.mag-footer .brand {
  font-family: var(--display);
  font-size: 1.5rem;
  color: #f7faf7;
  margin-bottom: 0.75rem;
}

.mag-footer p {
  max-width: 28rem;
  font-size: 0.92rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.mag-footer small {
  display: block;
  font-size: 0.78rem;
  opacity: 0.65;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
  .feature-spread {
    grid-template-columns: 1fr;
  }

  .feature-spread-body {
    padding: 1.5rem var(--gutter) 1.75rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .index-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 1.35rem;
    --measure: 100%;
  }

  body {
    font-size: 1.06rem;
    line-height: 1.9;
  }

  .mag-logo {
    font-size: 0.98rem;
    max-width: calc(100% - 3.25rem);
    line-height: 1.3;
  }

  .mag-logo span {
    letter-spacing: 0.12em;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .mag-nav {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1.1rem var(--gutter) 1.35rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .mag-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mag-nav ul {
    flex-direction: column;
    gap: 0.95rem;
  }

  .cover-content {
    padding: 4.25rem 0 3.25rem;
  }

  .cover-brand {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
    line-height: 1.15;
  }

  .cover-lead {
    font-size: 1.02rem;
    line-height: 1.9;
  }

  .place-card-body {
    padding: 1.25rem 1.2rem 1.45rem;
  }

  .place-card-body h3 {
    font-size: 1.22rem;
    line-height: 1.4;
  }

  .pull-stat {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .fact-box dd a {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  :root {
    --gutter: 1.2rem;
  }

  .article-hero h1 {
    font-size: 1.55rem;
  }
}
