/* =========================================================
   Design tokens (BE・HERO 漫画扉ページ風 — 墨黒×ヒーロー赤×クラフト紙)
   ========================================================= */
:root {
  /* Brand */
  --color-main: #0a0a0a;          /* 墨黒 */
  --color-main-dark: #000000;
  --color-main-thin: rgba(10, 10, 10, 0.06);
  --color-accent: #e63946;        /* ヒーロー赤 */
  --color-accent-2: #f1c40f;      /* アクセント黄 */
  --color-accent-3: #2fcd90;      /* fresh green */

  /* Text & background */
  --color-text: #1a1a1a;
  --color-text-muted: #6b6555;
  --color-bg: #fffaf2;            /* クラフト紙ホワイト */
  --color-bg-alt: #faf3e7;        /* 薄クラフト紙 */
  --color-bg-soft: #fff5d4;       /* 薄黄 */
  --color-border: #e8dcc4;

  /* Gradient (赤クリームグラデーション) */
  --grad-1: #fff5d4;
  --grad-2: #ffd6c8;

  /* Marker */
  --mark-blue: #ffe089;
  --mark-yellow: #fff099;
  --mark-pink: #ffd6e0;

  /* Layout */
  --container: 1180px;
  --container-narrow: 920px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-sm: 0 2px 8px rgba(10, 10, 10, 0.08);
  --shadow-md: 0 12px 28px rgba(10, 10, 10, 0.12);
  --shadow-lg: 0 24px 60px rgba(10, 10, 10, 0.20);

  /* Type */
  --font-jp: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-en: "Poppins", "Helvetica Neue", Arial, sans-serif;

  /* Header */
  --header-h: 72px;
}

/* =========================================================
   Reset (lightweight)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--color-main); }
button { font-family: inherit; cursor: pointer; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1em; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
  width: min(100%, var(--container));
  margin-inline: auto;
  padding-inline: 24px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--color-bg-alt); }
.section--brand {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
}

/* =========================================================
   Typography
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--color-main);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--color-text);
}
.section-title .accent {
  background: linear-gradient(transparent 64%, var(--mark-yellow) 0);
}
.section-lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--color-text-muted);
  max-width: 720px;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-lead { margin-inline: auto; }

/* =========================================================
   Button
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .08em;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center;
}
.btn--primary {
  background: var(--color-main);
  color: #fff;
  box-shadow: 0 8px 0 var(--color-main-dark);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--color-main-dark);
}
.btn--ghost {
  background: #fff;
  color: var(--color-main);
  border-color: var(--color-main);
}
.btn--ghost:hover { background: var(--color-main); color: #fff; }
.btn--accent {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 8px 0 #a31e2c;
}
.btn--accent:hover { transform: translateY(2px); box-shadow: 0 4px 0 #a31e2c; color: #fff; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 250, 242, .95);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 2px solid var(--color-main);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-family: var(--font-en);
  font-size: 22px;
  color: var(--color-main);
  letter-spacing: .04em;
}
.site-logo__mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--color-main);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  box-shadow: 0 6px 0 var(--color-main-dark);
}
.site-logo__sub {
  font-family: var(--font-jp);
  font-size: 11px;
  color: var(--color-text-muted);
  letter-spacing: .15em;
  margin-left: 4px;
}

.gnav { display: flex; align-items: center; gap: 28px; }
.gnav__list { display: flex; gap: 28px; }
.gnav__list a {
  position: relative;
  font-weight: 700;
  font-size: 15px;
  padding: 4px 0;
}
.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 3px;
  background: var(--color-main);
  border-radius: 2px;
  transition: width .25s ease;
}
.gnav__list a:hover::after,
.gnav__list a.is-current::after { width: 100%; }
.gnav__cta { padding: 7px 20px; font-size: 14px; background: #06C755; box-shadow: 0 6px 0 #04923f; }
.gnav__cta:hover { background: #06C755; box-shadow: 0 3px 0 #04923f; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 3px;
  background: var(--color-main);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .gnav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    border: none;
    box-shadow: var(--shadow-md);
    z-index: 95;
    overflow-y: auto;
  }
  .gnav.is-open { display: flex; }
  .gnav__list { flex-direction: column; gap: 4px; }
  .gnav__list a {
    display: block;
    padding: 16px 8px;
    border-bottom: 1px dashed var(--color-border);
    font-size: 16px;
  }
  .gnav__list a::after { display: none; }
  .gnav__cta {
    margin-top: 24px;
    align-self: stretch;
    text-align: center;
    padding: 16px 22px;
    font-size: 15px;
  }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #0a0a0a;
  color: #cfc8b8;
  padding: 72px 0 32px;
}
.site-footer a:hover { color: #fff; opacity: .85; }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__brand .site-logo { color: #fff; }
.site-footer__brand .site-logo__mark { background: var(--color-accent); color: #fff; box-shadow: 0 6px 0 #a31e2c; }
.site-footer__brand .site-logo__sub { color: #9a9182; }
.site-footer__brand p { margin-top: 18px; font-size: 14px; color: #b8af9d; }
.site-footer__heading {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--color-accent);
  margin-bottom: 20px;
}
.site-footer__links { display: grid; gap: 12px; font-size: 14px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: #9a9182;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 36px; padding-bottom: 32px; }
}

/* =========================================================
   Page hero (sub-pages)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
  padding: clamp(80px, 12vw, 140px) 0 clamp(64px, 9vw, 100px);
  position: relative;
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 2; text-align: center; }
.page-hero__en {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 88px);
  color: rgba(255, 255, 255, .55);
  letter-spacing: .06em;
  line-height: 1;
  text-transform: uppercase;
}
.page-hero__title {
  margin-top: 8px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text);
}
.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.page-hero::before { width: 320px; height: 320px; background: #fff; top: -100px; left: -80px; }
.page-hero::after { width: 260px; height: 260px; background: var(--color-accent); right: -60px; bottom: -120px; opacity: .35; }

/* =========================================================
   Breadcrumbs
   ========================================================= */
.breadcrumb {
  font-size: 12px;
  color: var(--color-text-muted);
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #aaa; }

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.flex-center { display: flex; justify-content: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
