:root {
  --ink: #17213b;
  --navy: #172347;
  --purple: #6f5a88;
  --gold: #b89755;
  --paper: #fbfaf7;
  --white: #fff;
  --muted: #6c7180;
  --line: rgba(23, 33, 59, .16);
  --shadow: 0 22px 60px rgba(23, 33, 59, .12);
  --accent: #5776ae;
  --accent-soft: #e8eef8;
  --accent-deep: #263f70;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.8;
}
a { color: inherit; }
figure { margin: 0; }
.theme-product { --accent: #b66f82; --accent-soft: #faedf0; --accent-deep: #783f50; }
.theme-recruit { --accent: #557c6a; --accent-soft: #e8f1ec; --accent-deep: #294f3f; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(100% - 48px, 1180px);
  margin-inline: auto;
  padding-top: clamp(24px, 4vw, 44px);
  color: var(--white);
}
.brand {
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.back-link::before { content: "←"; }

.work-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  padding: clamp(132px, 16vw, 184px) 24px clamp(72px, 9vw, 108px);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, color-mix(in srgb, var(--accent) 65%, transparent), transparent 30rem),
    linear-gradient(135deg, #101b3d 0%, #182954 56%, color-mix(in srgb, var(--accent-deep) 74%, #30264b) 100%);
}
.work-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.work-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  width: min(100%, 1080px);
  margin-inline: auto;
}
.work-hero__category {
  display: inline-flex;
  margin: 0 0 22px;
  padding: 6px 13px;
  border: 1px solid rgba(228,207,145,.65);
  border-radius: 999px;
  color: #e4cf91;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}
.work-hero h1 {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.42;
  letter-spacing: .02em;
}
.work-hero__brand {
  margin: 22px 0 0;
  color: #e4cf91;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: .12em;
}
.work-hero__lead {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.76);
  font-size: clamp(15px, 1.8vw, 18px);
}
.hero-concept {
  position: relative;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 36px 90px rgba(4,9,26,.28);
  backdrop-filter: blur(10px);
}
.hero-concept::before {
  content: "STORY DESIGN";
  display: block;
  margin-bottom: 24px;
  color: #e4cf91;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero-concept p {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.75;
}
.hero-concept__flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero-concept__flow span {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.09);
  font-size: 12px;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 118px) 24px;
}
.section--tint { background: linear-gradient(145deg, var(--accent-soft), #fbfaf7 62%); }
.section--navy { color: var(--white); background: var(--navy); }
.inner { width: min(100%, 1080px); margin-inline: auto; }
.inner--reading { width: min(100%, 760px); }
.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section--navy .kicker { color: #d9c185; }
.section-title {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(28px, 4.8vw, 48px);
  line-height: 1.5;
  letter-spacing: .02em;
}
.section-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}
.section--navy .section-lead { color: rgba(255,255,255,.74); }

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(36px, 6vw, 58px);
}
.overview-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 42px rgba(23,33,59,.07);
}
.overview-card dt {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
.overview-card dd { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.75; }
.challenge {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  margin-top: clamp(42px, 7vw, 76px);
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 22px;
  background: var(--white);
}
.challenge__label { margin: 0; color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .14em; }
.challenge__quote {
  margin: 10px 0 0;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(24px, 3.6vw, 37px);
  font-weight: 700;
  line-height: 1.55;
}
.challenge__body { margin: 0; color: var(--muted); font-size: 16px; }

.comic-intro { text-align: center; }
.comic-intro .kicker { color: #d9c185; }
.comic-intro .section-lead { margin-inline: auto; }
.comic-stack {
  display: grid;
  gap: clamp(18px, 4vw, 32px);
  width: min(100%, 760px);
  margin: clamp(42px, 7vw, 68px) auto 0;
}
.comic-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(430px, 69vw, 560px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: clamp(14px, 2vw, 22px);
  background: #f4f2ed;
  box-shadow: 0 22px 60px rgba(4,9,26,.22);
  isolation: isolate;
}
.art-slot {
  position: absolute;
  inset: 0 0 38%;
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 28%, color-mix(in srgb, var(--accent) 34%, white), transparent 19%),
    linear-gradient(145deg, color-mix(in srgb, var(--accent-soft) 80%, white), #d9dee8);
}
.art-slot::before {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -34%;
  width: 54%;
  aspect-ratio: 1;
  border: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 50%;
  box-shadow:
    -250px -40px 0 -72px color-mix(in srgb, var(--accent) 15%, transparent),
    -120px -120px 0 -88px rgba(255,255,255,.52);
}
.art-slot::after {
  content: attr(data-image);
  position: absolute;
  top: 14px;
  right: 16px;
  padding: 5px 9px;
  border: 1px solid rgba(23,33,59,.13);
  border-radius: 999px;
  color: rgba(23,33,59,.48);
  background: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.art-slot__number {
  position: absolute;
  left: 7%;
  bottom: 4%;
  color: rgba(255,255,255,.82);
  font-family: Georgia, serif;
  font-size: clamp(76px, 18vw, 144px);
  line-height: .8;
  text-shadow: 0 3px 18px rgba(23,33,59,.1);
}
.art-slot__scene {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(76%, 500px);
  padding: 18px 22px;
  border: 1px solid rgba(23,33,59,.14);
  border-radius: 13px;
  color: var(--accent-deep);
  background: rgba(255,255,255,.78);
  box-shadow: 0 16px 34px rgba(23,33,59,.1);
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  transform: translate(-50%, -50%) rotate(-1deg);
}
.comic-panel:nth-child(even) .art-slot__scene { transform: translate(-50%, -50%) rotate(1deg); }
.panel-copy {
  position: absolute;
  inset: 62% 0 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(24px, 5vw, 42px);
  border-top: 5px solid var(--ink);
  color: var(--ink);
  background: #fff;
}
.panel-copy__meta { margin: 0; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.speech {
  margin: 0;
  font-family: "UD Digi Kyokasho NK-B", "UD デジタル 教科書体 N-B", "Noto Sans JP", sans-serif;
  font-size: clamp(18px, 3.4vw, 26px);
  font-weight: 700;
  line-height: 1.55;
}
.speech small { color: var(--muted); font-size: .68em; font-weight: 600; }
.comic-ending {
  margin-top: 22px;
  padding: clamp(30px, 6vw, 52px);
  border: 1px solid rgba(228,207,145,.35);
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  text-align: center;
}
.comic-ending p { margin: 0; color: #e4cf91; font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: clamp(24px, 4.2vw, 39px); font-weight: 700; line-height: 1.6; }
.comic-ending strong { display: block; margin-top: 14px; color: var(--white); font-family: Georgia, serif; font-size: 17px; letter-spacing: .14em; }
.sample-notice {
  margin: 26px auto 0;
  color: rgba(255,255,255,.6);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(38px, 6vw, 64px);
}
.strategy-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 14px 42px rgba(23,33,59,.06);
}
.strategy-card__number { color: var(--gold); font-family: Georgia, serif; font-size: 30px; }
.strategy-card h3 { margin: 14px 0 0; color: var(--navy); font-size: 18px; line-height: 1.55; }
.strategy-card p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.intent {
  margin-top: clamp(38px, 6vw, 64px);
  padding: clamp(28px, 5vw, 50px);
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
}
.intent h3 { margin: 0; color: var(--accent-deep); font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: clamp(21px, 3vw, 29px); }
.intent p { margin: 16px 0 0; color: var(--ink); }
.emotion-change {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}
.emotion-change > div { padding: 22px; border-radius: 16px; background: var(--white); }
.emotion-change span { display: block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.emotion-change strong { display: block; margin-top: 8px; font-size: clamp(16px, 2.5vw, 21px); }
.emotion-change__arrow { color: var(--gold); font-size: 26px; }

.channel-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}
.channel-list li {
  flex: 1 1 150px;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  font-weight: 700;
  text-align: center;
}
.legal-note { margin: 24px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }

.closing {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 13vw, 150px) 24px clamp(100px, 14vw, 160px);
  color: var(--white);
  background: linear-gradient(145deg, #101a39, #28325d 55%, #32264b);
  text-align: center;
}
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(115deg, transparent 48%, rgba(224,201,134,.22) 49%, transparent 50%);
  background-size: 44px 44px;
}
.closing__inner { position: relative; z-index: 1; width: min(100%, 860px); margin-inline: auto; }
.closing .kicker { color: #d9c185; }
.closing h2 { margin: 0; font-family: "Noto Serif JP", "Yu Mincho", serif; font-size: clamp(29px, 5vw, 51px); line-height: 1.6; }
.closing__message { margin: 28px 0 0; color: rgba(255,255,255,.75); font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 26px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--navy);
  background: #e0c986;
  font-weight: 800;
  text-decoration: none;
}
.button--secondary { border-color: rgba(255,255,255,.4); color: var(--white); background: transparent; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 24px 0 0; padding: 0; color: rgba(255,255,255,.74); font-size: 13px; font-weight: 700; list-style: none; }
.trust li::before { content: "✓"; margin-right: 7px; color: #e4cf91; }
.work-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 34px 0 0; padding: 0; list-style: none; }
.work-nav a { color: rgba(255,255,255,.68); font-size: 13px; text-underline-offset: 4px; }
.mobile-cta { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
  .site-header { width: calc(100% - 36px); padding-top: 20px; }
  .back-link { padding: 7px 12px; font-size: 12px; }
  .work-hero { min-height: 0; padding: 116px 18px 66px; }
  .work-hero__inner { grid-template-columns: 1fr; gap: 34px; }
  .work-hero h1 { font-size: clamp(34px, 10vw, 45px); }
  .hero-concept { padding: 26px; }
  .section { padding: 64px 18px; }
  .overview-grid, .strategy-grid { grid-template-columns: 1fr; }
  .challenge { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
  .section--comic { padding-inline: 0; }
  .comic-intro { width: auto; margin-inline: 18px; }
  .sample-notice { margin-inline: 18px; }
  .comic-stack { gap: 14px; }
  .comic-panel { min-height: 500px; border-inline: 0; border-radius: 0; box-shadow: none; }
  .art-slot { bottom: 40%; }
  .panel-copy { top: 60%; padding: 25px 20px; }
  .speech { font-size: clamp(17px, 5vw, 21px); }
  .art-slot::after { right: 10px; max-width: 78%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .art-slot__scene { width: 82%; font-size: 17px; }
  .comic-ending { margin: 14px 18px 0; border-radius: 16px; }
  .emotion-change { grid-template-columns: 1fr; }
  .emotion-change__arrow { transform: rotate(90deg); text-align: center; }
  .closing { padding-inline: 18px; padding-bottom: 124px; }
  .actions { display: grid; }
  .trust { display: grid; gap: 6px; }
  .mobile-cta {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 18px;
    border: 1px solid #c9a95f;
    border-radius: 999px;
    color: var(--navy);
    background: #e4cf91;
    box-shadow: 0 13px 34px rgba(10,18,39,.28);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
  }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
