/* =========================================================
   Callback.co.jp
   恋は、折り返してくる。
   Romantic editorial magazine stylesheet
   ========================================================= */

:root {
  --ink: #241716;
  --ink-soft: #5d4642;
  --muted: #8a746f;
  --paper: #fff8f3;
  --paper-warm: #f7ece4;
  --paper-deep: #ead7cb;
  --rose: #b04f5f;
  --rose-deep: #7d2f3d;
  --wine: #4c1f2b;
  --gold: #c99857;
  --mist: rgba(255, 248, 243, 0.82);
  --glass: rgba(255, 255, 255, 0.68);
  --shadow: 0 22px 60px rgba(50, 24, 22, 0.16);
  --shadow-soft: 0 12px 32px rgba(50, 24, 22, 0.10);
  --radius: 28px;
  --radius-sm: 16px;
  --max: 1180px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Arial, sans-serif;
}

/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(176, 79, 95, 0.12), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(201, 152, 87, 0.14), transparent 38rem),
    linear-gradient(180deg, #fffaf6 0%, var(--paper) 42%, #f3e3da 100%);
  font-family: var(--sans);
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 31, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 31, 43, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 75%);
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1.25rem;
}

strong {
  color: var(--ink);
  font-weight: 800;
}

::selection {
  background: rgba(176, 79, 95, 0.24);
}

/* =========================================================
   Layout helpers
   ========================================================= */

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

.section {
  padding: clamp(56px, 8vw, 112px) 0;
}

.section-tight {
  padding: clamp(36px, 5vw, 72px) 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.kicker {
  color: var(--rose-deep);
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 2.05;
  color: var(--ink-soft);
}

.center {
  text-align: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 248, 243, 0.84);
  border-bottom: 1px solid rgba(76, 31, 43, 0.09);
}

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

.logo,
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-main,
.brand-title {
  font-family: var(--serif);
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  font-weight: 800;
  letter-spacing: 0.035em;
  color: var(--wine);
}

.logo-sub,
.brand-subtitle {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: var(--rose-deep);
  letter-spacing: 0.16em;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(176, 79, 95, 0.11);
  color: var(--rose-deep);
  transform: translateY(-1px);
}

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

.hero {
  position: relative;
  min-height: min(820px, calc(100vh - 76px));
  display: grid;
  align-items: end;
  padding: clamp(90px, 12vw, 150px) 0 clamp(52px, 8vw, 92px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 23, 22, 0.78) 0%, rgba(36, 23, 22, 0.46) 44%, rgba(36, 23, 22, 0.12) 100%),
    var(--hero-image, url("/images/callback-home-hero-rainy-tokyo-window-phone-glow-love-story.jpg"));
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--paper));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  color: #fffaf6;
}

.hero-card {
  width: min(780px, 100%);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(48, 20, 27, 0.66), rgba(48, 20, 27, 0.34));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero .eyebrow {
  color: #f7d7dc;
}

.hero-title,
h1 {
  margin: 0.5rem 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.hero-subtitle {
  margin: 0 0 1.4rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  color: #ffe8df;
}

.hero-text {
  max-width: 670px;
  color: rgba(255, 250, 246, 0.9);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

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

.btn,
.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(76, 31, 43, 0.14);
  font-weight: 900;
  letter-spacing: 0.04em;
  background: var(--wine);
  color: #fff8f3;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.secondary,
.button.secondary,
.cta.secondary {
  background: rgba(255, 248, 243, 0.18);
  color: #fff8f3;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: rgba(176, 79, 95, 0.10);
  color: var(--rose-deep);
  border: 1px solid rgba(176, 79, 95, 0.14);
  font-size: 0.82rem;
  font-weight: 800;
}

/* =========================================================
   Typography
   ========================================================= */

h2,
.section-title {
  margin: 0.45rem 0 1.1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.3vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  color: var(--wine);
}

h3 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.24;
  color: var(--wine);
}

h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--rose-deep);
}

.page-title {
  padding: clamp(64px, 10vw, 120px) 0 clamp(34px, 6vw, 70px);
}

.page-title h1 {
  color: var(--wine);
  font-size: clamp(2.8rem, 7vw, 6.6rem);
}

.page-title p {
  max-width: 760px;
}

/* =========================================================
   Editorial intro
   ========================================================= */

.editorial-intro {
  margin-top: -36px;
  position: relative;
  z-index: 5;
}

.intro-panel {
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 54px);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(76, 31, 43, 0.08);
}

.intro-panel p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.6vw, 1.42rem);
  line-height: 2.1;
}

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

.grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 32px);
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.story-card,
.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.86);
  border: 1px solid rgba(76, 31, 43, 0.09);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover,
.story-card:hover,
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

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

.card-body,
.story-body,
.feature-body {
  padding: clamp(20px, 3vw, 30px);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
  color: var(--rose-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

/* =========================================================
   Feature bands
   ========================================================= */

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

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(76, 31, 43, 0.08);
}

.split-image img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
}

.split-copy {
  padding: clamp(6px, 2vw, 22px);
}

.callout {
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(76, 31, 43, 0.96), rgba(125, 47, 61, 0.92)),
    url("/images/callback-second-chance-couple-city-crosswalk-night.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
  color: #fff8f3;
  box-shadow: var(--shadow);
}

.callout h2,
.callout h3 {
  color: #fff8f3;
}

.callout p {
  color: rgba(255, 248, 243, 0.86);
}

.callout .eyebrow {
  color: #f7d7dc;
}

/* =========================================================
   Story list
   ========================================================= */

.story-list {
  display: grid;
  gap: 1rem;
}

.story-link {
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 22px;
  background: rgba(255, 248, 243, 0.8);
  border: 1px solid rgba(76, 31, 43, 0.08);
  box-shadow: 0 8px 24px rgba(50, 24, 22, 0.06);
  transition: transform 0.2s ease, background 0.2s ease;
}

.story-link:hover {
  transform: translateX(4px);
  background: #fffaf6;
}

.story-link img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 18px;
}

.story-link h3 {
  font-size: 1.12rem;
  margin-bottom: 0.15rem;
}

.story-link p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.story-arrow {
  color: var(--rose-deep);
  font-weight: 900;
  padding-right: 0.65rem;
}

/* =========================================================
   Article pages
   ========================================================= */

.article-hero {
  padding: clamp(74px, 10vw, 140px) 0 clamp(34px, 6vw, 70px);
}

.article-hero-inner {
  width: min(980px, calc(100% - 40px));
  margin-inline: auto;
}

.article-hero h1 {
  color: var(--wine);
  margin-bottom: 1rem;
}

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

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

.article-body {
  width: min(820px, calc(100% - 40px));
  margin-inline: auto;
  padding-bottom: clamp(60px, 10vw, 130px);
}

.article-body p {
  font-family: var(--serif);
  font-size: clamp(1.04rem, 1.25vw, 1.22rem);
  line-height: 2.15;
}

.article-body h2 {
  margin-top: 3.5rem;
  font-size: clamp(1.85rem, 3.4vw, 3.2rem);
}

.article-body blockquote {
  margin: 2.4rem 0;
  padding: clamp(24px, 4vw, 44px);
  border-left: 5px solid var(--rose);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(176, 79, 95, 0.08);
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  line-height: 1.75;
}

.article-body ul,
.article-body ol {
  padding-left: 1.4rem;
  margin: 1.3rem 0 2rem;
}

.article-body li {
  margin-bottom: 0.7rem;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 24px);
}

.gallery-item {
  grid-column: span 4;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  background: var(--paper-deep);
}

.gallery-item.wide {
  grid-column: span 8;
}

.gallery-item.tall img {
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1rem;
  color: #fff8f3;
  background: linear-gradient(to top, rgba(36, 23, 22, 0.72), transparent);
  font-weight: 800;
}

/* =========================================================
   Forms / Contact
   ========================================================= */

.contact-panel,
.form-panel {
  padding: clamp(26px, 4vw, 46px);
  border-radius: var(--radius);
  background: rgba(255, 248, 243, 0.88);
  border: 1px solid rgba(76, 31, 43, 0.08);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  color: var(--rose-deep);
  font-weight: 900;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(76, 31, 43, 0.18);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

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

.site-footer {
  padding: clamp(44px, 7vw, 82px) 0 34px;
  background:
    linear-gradient(135deg, rgba(76, 31, 43, 0.98), rgba(36, 23, 22, 0.98));
  color: #fff8f3;
}

.footer-grid {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: clamp(28px, 4vw, 52px);
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.site-footer p {
  color: rgba(255, 248, 243, 0.76);
}

.footer-links {
  display: grid;
  gap: 0.6rem;
}

.footer-links a {
  color: rgba(255, 248, 243, 0.82);
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  width: min(var(--max), calc(100% - 40px));
  margin: 42px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 248, 243, 0.16);
  color: rgba(255, 248, 243, 0.6);
  font-size: 0.88rem;
}

/* =========================================================
   Utility backgrounds
   ========================================================= */

.bg-paper {
  background: var(--paper);
}

.bg-warm {
  background: var(--paper-warm);
}

.bg-deep {
  background: var(--paper-deep);
}

.bg-romance {
  background:
    radial-gradient(circle at top right, rgba(176, 79, 95, 0.16), transparent 30rem),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
}

.divider {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 31, 43, 0.18), transparent);
}

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

@media (max-width: 980px) {
  .navbar,
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

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

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 6;
  }
}

@media (max-width: 680px) {
  .container,
  .wrap,
  .hero-inner,
  .article-hero-inner,
  .article-body,
  .article-image,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 760px;
    background-position: center;
  }

  .hero-card {
    padding: 24px;
    border-radius: 22px;
  }

  .hero-title,
  h1 {
    font-size: clamp(2.8rem, 15vw, 4.8rem);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .story-link {
    grid-template-columns: 70px 1fr;
  }

  .story-link img {
    width: 70px;
    height: 70px;
  }

  .story-arrow {
    display: none;
  }

  .gallery-item,
  .gallery-item.wide {
    grid-column: span 12;
  }

  .nav-links a {
    padding: 0.48rem 0.64rem;
    font-size: 0.82rem;
  }

  .section {
    padding: 54px 0;
  }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .actions {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: none;
    padding: 2rem 0;
  }

  .hero-card,
  .intro-panel,
  .card,
  .callout {
    box-shadow: none;
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
  }
}
