/* ============================================
   JIN家子孫繫栄チャンネル LP
   D2: 温かみテーマ
   ============================================ */

:root {
  --color-bg: #FFF8E7;
  --color-bg-soft: #FFFCF3;
  --color-primary: #FFB07A;
  --color-primary-dark: #F18E50;
  --color-pink: #F8C8DC;
  --color-green: #A8D5BA;
  --color-text: #3D3D3D;
  --color-text-soft: #6B6B6B;
  --color-muted: #E8E1D0;
  --color-card: #FFFFFF;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-soft: 0 4px 16px rgba(61, 61, 61, 0.06);
  --shadow-card: 0 6px 24px rgba(61, 61, 61, 0.08);
  --shadow-cta: 0 8px 24px rgba(255, 176, 122, 0.35);

  --font-jp: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Quicksand", "M PLUS Rounded 1c", system-ui, sans-serif;

  --container: 1080px;
}

/* ---- Reset / Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

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

a { color: inherit; text-decoration: none; transition: opacity .2s ease, color .2s ease; }
a:hover { opacity: .85; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 700; line-height: 1.4; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

.center { text-align: center; }

.sp-only { display: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-text); color: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(61, 61, 61, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-pink));
  color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.brand-mark i { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: .02em; }
.brand-sub { font-size: 11px; color: var(--color-text-soft); }

.primary-nav ul { display: flex; gap: 28px; }
.primary-nav a {
  font-weight: 500; font-size: 15px; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover { border-bottom-color: var(--color-primary); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; padding: 10px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle-bar {
  display: block; height: 2px; background: var(--color-text); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--font-en); font-weight: 700; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn i { width: 18px; height: 18px; }
.btn-primary {
  background: var(--color-primary); color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); opacity: 1; }
.btn-ghost {
  background: var(--color-card); color: var(--color-text);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-muted);
}
.btn-ghost:hover { background: var(--color-bg-soft); }

/* ---- Eyebrow / Section head ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-weight: 600; font-size: 13px;
  color: var(--color-primary-dark); letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow i { width: 16px; height: 16px; }

.section-head {
  text-align: center; margin-bottom: 48px;
}
.section-title {
  font-size: 28px; letter-spacing: .02em;
}
.section-lead {
  margin-top: 12px; color: var(--color-text-soft); font-size: 15px;
}

.section { padding: 88px 0; }

/* ---- Hero ---- */
.hero {
  padding: 64px 0 80px;
  background:
    radial-gradient(circle at 85% 20%, rgba(248, 200, 220, .35), transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(168, 213, 186, .25), transparent 55%),
    var(--color-bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
}
.hero-text .eyebrow { margin-bottom: 16px; }
.hero-title {
  font-size: 40px; line-height: 1.35; letter-spacing: .01em;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--color-text-soft); font-size: 16px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  display: grid; place-items: center;
  filter: drop-shadow(0 12px 24px rgba(61, 61, 61, 0.1));
}
.hero-visual svg { width: 100%; max-width: 360px; }

/* ---- About ---- */
.section-about { background: var(--color-bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: var(--color-card);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .2s ease;
}
.about-card:hover { transform: translateY(-4px); }
.about-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, #FFE6CF, var(--color-pink));
  color: var(--color-primary-dark);
  display: grid; place-items: center; margin: 0 auto 16px;
}
.about-icon i { width: 28px; height: 28px; }
.about-card h3 { font-size: 18px; margin-bottom: 8px; }
.about-card p { font-size: 14px; color: var(--color-text-soft); }

/* ---- Series ---- */
.series-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.series-card {
  position: relative;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(61, 61, 61, 0.04);
}
.series-card-primary {
  background: linear-gradient(160deg, #FFF1DF 0%, #FFE3D0 100%);
  border-color: rgba(255, 176, 122, 0.4);
}
.series-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-en); font-weight: 700; font-size: 12px;
  color: var(--color-primary-dark);
  background: #fff;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 16px;
}
.series-badge i { width: 14px; height: 14px; }
.series-badge-alt { color: #5BA882; }
.series-card h3 {
  font-size: 22px; margin-bottom: 12px;
}
.series-card > p {
  color: var(--color-text-soft); font-size: 15px; margin-bottom: 20px;
}
.series-points li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 14px; padding: 6px 0;
}
.series-points i {
  width: 18px; height: 18px; color: var(--color-green); flex-shrink: 0; margin-top: 4px;
}

/* ---- Video ---- */
.section-video { background: var(--color-bg-soft); }
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #000;
  margin-bottom: 32px;
}
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border: 0;
}

/* ---- Note ---- */
.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.note-card {
  background: var(--color-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.note-card:hover { transform: translateY(-4px); opacity: 1; }
.note-thumb {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  color: #fff;
}
.note-thumb i { width: 56px; height: 56px; }
.note-thumb-1 { background: linear-gradient(135deg, #FFB07A, #F18E50); }
.note-thumb-2 { background: linear-gradient(135deg, #F8C8DC, #E89AB5); }
.note-thumb-3 { background: linear-gradient(135deg, #A8D5BA, #7FBA98); }
.note-body { padding: 20px 22px 24px; }
.note-tag {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  color: var(--color-primary-dark); margin-bottom: 8px;
}
.note-body h3 { font-size: 16px; margin-bottom: 8px; }
.note-excerpt { font-size: 13px; color: var(--color-text-soft); }

/* ---- Disclaimer ---- */
.section-disclaimer { padding: 32px 0 64px; }
.disclaimer {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--color-bg-soft);
  border: 1px dashed rgba(61, 61, 61, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: 13px; color: var(--color-text-soft); line-height: 1.7;
}
.disclaimer i { width: 20px; height: 20px; color: var(--color-primary-dark); flex-shrink: 0; margin-top: 2px; }

/* ---- Footer ---- */
.site-footer {
  background: #FBEFD8;
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 24px;
  align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-weight: 700; font-size: 15px; }
.footer-tag { font-size: 12px; color: var(--color-text-soft); }
.footer-links {
  display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.footer-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-soft);
}
.footer-links a i { width: 16px; height: 16px; color: var(--color-primary-dark); }
.copyright {
  font-family: var(--font-en); font-size: 12px; color: var(--color-text-soft);
  text-align: right;
}

/* ============================================
   Responsive (~768px breakpoint)
   ============================================ */
@media (max-width: 768px) {
  .sp-only { display: inline; }

  .section { padding: 64px 0; }

  /* Header nav -> drawer */
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid rgba(61, 61, 61, 0.06);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .primary-nav.is-open { max-height: 320px; }
  .primary-nav ul {
    flex-direction: column; gap: 0;
    padding: 8px 24px 16px;
  }
  .primary-nav a {
    display: block; padding: 14px 0;
    border-bottom: 1px solid var(--color-muted);
  }
  .primary-nav li:last-child a { border-bottom: 0; }

  .brand-sub { display: none; }

  /* Hero */
  .hero { padding: 40px 0 56px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual svg { max-width: 240px; }

  /* About / Series / Note grids */
  .about-grid,
  .series-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .series-card { padding: 28px 24px; }
  .series-card h3 { font-size: 20px; }

  .section-title { font-size: 24px; }
  .section-head { margin-bottom: 36px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .copyright { text-align: center; }
}
