/* =========================================================
   Denwa.co.jp — site.css
   電話の向こうに、人がいる。
   ========================================================= */

:root {
  --ink: #17110d;
  --ink-soft: #4a3b32;
  --paper: #f7efe4;
  --paper-soft: #fffaf2;
  --cream: #f3dfc2;
  --sepia: #8b5e3c;
  --deep: #241713;
  --deep-2: #3a211b;
  --red: #9f2f22;
  --gold: #c9903f;
  --green: #21483d;
  --line: rgba(36, 23, 19, 0.16);
  --shadow: 0 24px 70px rgba(36, 23, 19, 0.18);
  --shadow-soft: 0 12px 35px rgba(36, 23, 19, 0.11);
  --radius: 28px;
  --radius-small: 16px;
  --max: 1180px;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(201, 144, 63, 0.16), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(159, 47, 34, 0.11), transparent 30%),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(36, 23, 19, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 23, 19, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  line-height: 1.18;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4.1rem);
}

h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.container,
.wrap,
.inner {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36, 23, 19, 0.86);
  color: #fff8ec;
  border-bottom: 1px solid rgba(255, 248, 236, 0.18);
  backdrop-filter: blur(18px);
}

.nav,
.navbar,
.header-inner {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.brand,
.site-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.logo::before,
.brand::before,
.site-title::before {
  content: "☎";
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 248, 236, 0.38);
  border-radius: 50%;
  color: var(--gold);
}

.nav-links,
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a,
.menu a {
  color: #fff8ec;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  opacity: 0.93;
}

.nav-links a:hover,
.menu a:hover,
.nav-links a.active,
.menu a.active {
  background: rgba(255, 248, 236, 0.13);
  color: #fff;
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff8ec;
  background:
    linear-gradient(90deg, rgba(20, 12, 10, 0.88), rgba(20, 12, 10, 0.52), rgba(20, 12, 10, 0.22)),
    var(--hero-image, url("/images/denwa-home-hero-rainy-window-old-telephone-soft-glow.jpg")) center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(0deg, rgba(20, 12, 10, 0.9), transparent);
  pointer-events: none;
}

.hero-content,
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 120px 0 70px;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 248, 236, 0.35);
  border-radius: 999px;
  background: rgba(255, 248, 236, 0.1);
  color: #ffe0a3;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 970px;
  margin-bottom: 22px;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
}

.hero .lead,
.lead {
  max-width: 780px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: rgba(255, 248, 236, 0.92);
  line-height: 2;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* =========================================================
   Buttons / Pills
   ========================================================= */

.btn,
.button,
.cta,
.read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid rgba(36, 23, 19, 0.18);
  border-radius: 999px;
  background: var(--deep);
  color: #fff8ec;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover,
.button:hover,
.cta:hover,
.read-more:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  background: var(--red);
}

.btn.light,
.button.light,
.cta.light {
  background: #fff8ec;
  color: var(--deep);
}

.pill-row,
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill,
.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

/* =========================================================
   Sections
   ========================================================= */

.section {
  padding: clamp(54px, 8vw, 110px) 0;
}

.section.alt,
.band {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.75), rgba(243, 223, 194, 0.34));
  border-block: 1px solid var(--line);
}

.section-header {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header p {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.lede,
.editorial-lead {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.82);
  box-shadow: var(--shadow-soft);
}

.lede p,
.editorial-lead p {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 2.2;
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.grid,
.card-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card,
.feature-card,
.article-card {
  grid-column: span 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.86);
  box-shadow: var(--shadow-soft);
}

.card.large,
.feature-card.large {
  grid-column: span 6;
}

.card.full,
.feature-card.full {
  grid-column: 1 / -1;
}

.card img,
.feature-card img,
.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body,
.card-content,
.feature-content {
  padding: 24px;
}

.card h3 a,
.feature-card h3 a,
.article-card h3 a {
  text-decoration: none;
}

.card p,
.feature-card p,
.article-card p {
  color: var(--ink-soft);
}

.meta {
  margin-bottom: 10px;
  color: var(--sepia);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* =========================================================
   Feature Split Layout
   ========================================================= */

.split,
.feature-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 62px);
  align-items: center;
}

.split.reverse .split-media,
.feature-split.reverse .split-media {
  order: 2;
}

.split-media img,
.feature-split img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-text,
.feature-text {
  padding: clamp(18px, 3vw, 36px);
}

.split-text p,
.feature-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* =========================================================
   Story / Article Pages
   ========================================================= */

.article-hero {
  padding: 80px 0 34px;
}

.article-hero .container {
  display: grid;
  gap: 24px;
}

.article-title {
  max-width: 1000px;
  color: var(--deep);
}

.article-subtitle {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.article-image {
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-image img {
  width: 100%;
  max-height: 640px;
  object-fit: cover;
}

.article-body {
  width: min(850px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(38px, 6vw, 78px) 0;
}

.article-body p {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 1.5vw, 1.23rem);
  line-height: 2.25;
}

.article-body h2 {
  margin-top: 2.2em;
  color: var(--deep);
}

.pullquote,
blockquote {
  margin: 42px 0;
  padding: 28px 30px;
  border-left: 6px solid var(--red);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: rgba(255, 250, 242, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.75;
  color: var(--deep);
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: var(--radius);
  background: var(--deep);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.045);
  opacity: 0.82;
}

.gallery-caption {
  position: absolute;
  inset: auto 14px 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(20, 12, 10, 0.76);
  color: #fff8ec;
  font-weight: 800;
}

/* =========================================================
   Lists / Info Blocks
   ========================================================= */

.info-list,
.link-list {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.info-list li,
.link-list li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: rgba(255, 250, 242, 0.78);
}

.notice,
.callout {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(159, 47, 34, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(159, 47, 34, 0.08), rgba(201, 144, 63, 0.12)),
    rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer,
footer {
  background: var(--deep);
  color: #fff8ec;
  padding: 56px 0 34px;
  border-top: 1px solid rgba(255, 248, 236, 0.16);
}

.footer-grid {
  width: min(var(--max), calc(100% - 36px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a,
footer a {
  color: #fff8ec;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 36px));
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 248, 236, 0.16);
  color: rgba(255, 248, 236, 0.72);
  font-size: 0.9rem;
}

/* =========================================================
   Utilities
   ========================================================= */

.center {
  text-align: center;
}

.narrow {
  width: min(850px, calc(100% - 36px));
  margin-inline: auto;
}

.wide {
  width: min(1320px, calc(100% - 36px));
  margin-inline: auto;
}

.muted {
  color: var(--ink-soft);
}

.sep {
  height: 1px;
  background: var(--line);
  margin: 34px 0;
}

.shadow {
  box-shadow: var(--shadow);
}

.rounded {
  border-radius: var(--radius);
}

.no-underline {
  text-decoration: none;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 960px) {
  .nav,
  .navbar,
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links,
  .menu {
    justify-content: flex-start;
  }

  .hero {
    min-height: 76vh;
    background:
      linear-gradient(180deg, rgba(20, 12, 10, 0.84), rgba(20, 12, 10, 0.45)),
      var(--hero-image, url("/images/denwa-home-hero-rainy-window-old-telephone-soft-glow.jpg")) center / cover no-repeat;
  }

  .card,
  .feature-card,
  .article-card,
  .card.large,
  .feature-card.large {
    grid-column: span 6;
  }

  .split,
  .feature-split {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media,
  .feature-split.reverse .split-media {
    order: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.85;
  }

  .container,
  .wrap,
  .inner,
  .hero-content,
  .hero-inner {
    width: min(100% - 26px, var(--max));
  }

  .hero-content,
  .hero-inner {
    padding: 90px 0 52px;
  }

  .nav-links a,
  .menu a {
    font-size: 0.84rem;
    padding: 7px 9px;
  }

  .card,
  .feature-card,
  .article-card,
  .card.large,
  .feature-card.large {
    grid-column: 1 / -1;
  }

  .card-body,
  .card-content,
  .feature-content {
    padding: 20px;
  }

  .split-media img,
  .feature-split img {
    min-height: 280px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .article-body p {
    font-size: 1.02rem;
    line-height: 2.05;
  }

  .hero-actions,
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .button,
  .cta,
  .read-more {
    width: 100%;
  }
}
