:root {
  --ink: #1f312d;
  --body: #33443f;
  --muted: #6f7e78;
  --paper: #fffaf6;
  --white: #fffefd;
  --sage: #e9f4ee;
  --sage-deep: #2e6656;
  --leaf: #19453c;
  --rose: #a45d69;
  --rose-soft: #fff0f2;
  --sky: #edf5fb;
  --gold: #9b7131;
  --gold-soft: #fbf1dd;
  --line: rgba(46, 102, 86, 0.24);
  --shadow: 0 18px 42px rgba(22, 42, 35, 0.12);
}

* { box-sizing: border-box; }
html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--body);
  background: linear-gradient(180deg, var(--paper) 0%, #f8fbf8 46%, #f8f0ee 100%);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  letter-spacing: 0;
  line-break: strict;
}
body::before {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--sage-deep), var(--rose), #4677a7, var(--gold));
  transform: scaleX(0);
  transform-origin: left center;
}
img {
  display: block;
  max-width: 100%;
}
figure,
p,
h1,
h2 {
  margin: 0;
}
p {
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.95;
}
h1,
h2 {
  color: var(--ink);
  font-weight: 850;
  letter-spacing: 0;
}
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffefd 0%, var(--paper) 58%, #fff7f3 100%);
}
.hero__shade {
  position: relative;
  height: 43svh;
  min-height: 300px;
  max-height: 410px;
  background:
    linear-gradient(180deg, rgba(255, 250, 246, 0) 0%, rgba(255, 250, 246, 0.1) 52%, var(--paper) 100%),
    url("../../img/yukari-header-yukari.jpg") right center / cover no-repeat;
}
.hero__shade::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 94px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 250, 246, 0), var(--paper));
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 34px, 440px);
  margin: 0 auto;
  padding: 24px 0 38px;
}
.hero h1 {
  color: var(--leaf);
  padding-left: 16px;
  border-left: 3px solid rgba(164, 93, 105, 0.86);
  font-size: clamp(25.5px, 6.9vw, 30px);
  line-height: 1.52;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  text-wrap: balance;
}
.hero h1 span {
  display: block;
}
.hero h1 span:nth-child(3) {
  color: #7b4651;
}
.hero__quote {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(164, 93, 105, 0.24);
  color: #793f4a;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.72;
}
.hero__lead {
  margin-top: 16px;
  color: var(--body);
  font-size: 15.8px;
  font-weight: 750;
  line-height: 1.9;
}
.hero__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-top: 20px;
  padding: 9px 14px 9px 10px;
  border: 1px solid rgba(46, 102, 86, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(22, 42, 35, 0.1);
}
.hero__profile img {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
}
.hero__profile p {
  color: var(--leaf);
  font-size: 14.2px;
  font-weight: 850;
  line-height: 1.45;
}
.article {
  overflow-x: clip;
}
.story-section {
  position: relative;
  padding: 56px 0;
}
.story-section + .story-section::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100% - 54px, 560px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: translateX(-50%);
}
.section--white { background: rgba(255, 254, 253, 0.78); }
.section--sage { background: var(--sage); }
.section--blush { background: var(--rose-soft); }
.section--sky { background: var(--sky); }
.section--rose { background: #f8edf0; }
.section--gold { background: var(--gold-soft); }
.section--final { background: linear-gradient(180deg, #fffefd 0%, #edf5f2 100%); }
.container {
  width: min(100% - 30px, 560px);
  margin: 0 auto;
}
.section-head {
  display: grid;
  gap: 13px;
  margin-bottom: 26px;
  padding-bottom: 14px;
}
.section-head::before {
  width: 44px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--sage-deep), var(--rose));
  border-radius: 999px;
}
.section-head h2 {
  font-size: 24px;
  line-height: 1.48;
  text-wrap: balance;
}
.text-flow {
  display: grid;
  gap: 19px;
}
.text-flow--intro p {
  color: var(--leaf);
  font-size: 17.5px;
  font-weight: 800;
  line-height: 1.86;
}
.pull-quote {
  display: grid;
  gap: 9px;
  margin: 31px 0 0;
  padding: 22px 18px;
  border-left: 4px solid var(--sage-deep);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 34px rgba(28, 48, 41, 0.08);
}
.section--rose .pull-quote {
  border-color: var(--rose);
}
.section--gold .pull-quote {
  border-color: var(--gold);
}
.pull-quote p {
  color: var(--leaf);
  font-size: 18.5px;
  font-weight: 850;
  line-height: 1.76;
}
.section--rose .pull-quote p {
  color: #7e3f4d;
}
.section--gold .pull-quote p {
  color: #705018;
}
.story-photo {
  width: 100%;
  margin: 34px auto 0;
}
.story-photo img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #e8e1d7;
}
.story-photo--memory img {
  object-position: center top;
}
.story-photo--illustration {
  width: min(100% - 18px, 460px);
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}
.story-photo--illustration img {
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
}
.story-photo--icon {
  width: min(148px, 42vw);
  margin-left: auto;
  margin-right: auto;
}
.story-photo--icon img {
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 999px;
  padding: 12px;
  background: #fff;
}
.message-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 34px 0 0;
}
.message-card > img {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 26px rgba(22, 42, 35, 0.14);
}
.message-bubble {
  position: relative;
  display: grid;
  gap: 13px;
  flex: 1;
  padding: 18px 17px;
  border: 1px solid rgba(164, 93, 105, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 38px rgba(22, 42, 35, 0.1);
}
.message-bubble::before {
  position: absolute;
  top: 22px;
  left: -8px;
  width: 16px;
  height: 16px;
  content: "";
  background: rgba(255, 255, 255, 0.86);
  border-left: 1px solid rgba(164, 93, 105, 0.18);
  border-bottom: 1px solid rgba(164, 93, 105, 0.18);
  transform: rotate(45deg);
}
.message-bubble p {
  color: var(--leaf);
  font-size: 15.8px;
  font-weight: 750;
  line-height: 1.84;
}
.message-bubble__name {
  color: #7b4651 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  text-align: right;
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: scrollProgress linear both;
    animation-timeline: scroll(root);
  }
  @supports (animation-timeline: view()) {
    .section-head,
    .text-flow,
    .pull-quote,
    .story-photo {
      animation: fadeUp 0.7s ease both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}
@keyframes scrollProgress {
  to { transform: scaleX(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  p {
    font-size: 17.2px;
    line-height: 2.02;
  }
  .hero {
    min-height: 78svh;
    display: grid;
    align-items: center;
    background: var(--paper);
  }
  .hero__shade {
    position: absolute;
    inset: 0;
    height: auto;
    max-height: none;
    min-height: 78svh;
    background:
      linear-gradient(90deg, rgba(255, 250, 246, 0.98) 0%, rgba(255, 250, 246, 0.9) 43%, rgba(255, 250, 246, 0.2) 100%),
      url("../../img/yukari-header-yukari.jpg") center center / cover no-repeat,
      var(--paper);
  }
  .hero__shade::after {
    display: none;
  }
  .hero__inner {
    width: min(100% - 88px, 980px);
    padding: 110px 0 82px;
  }
  .hero h1 {
    max-width: 640px;
    padding-left: 24px;
    border-left-width: 4px;
    font-size: 48px;
    line-height: 1.32;
  }
  .hero__quote {
    max-width: 560px;
    font-size: 24px;
    line-height: 1.68;
  }
  .hero__lead {
    max-width: 610px;
    font-size: 18.5px;
  }
  .hero__profile {
    margin-top: 26px;
    padding: 10px 18px 10px 11px;
  }
  .hero__profile img {
    width: 60px;
    height: 60px;
  }
  .hero__profile p {
    font-size: 16px;
  }
  .story-section {
    padding: 84px 0;
  }
  .container {
    width: min(100% - 84px, 760px);
  }
  .section-head h2 {
    font-size: 35px;
    line-height: 1.42;
  }
  .text-flow--intro p {
    font-size: 22px;
  }
  .pull-quote {
    padding: 30px 38px;
  }
  .pull-quote p {
    font-size: 22px;
  }
  .story-photo {
    width: min(100%, 760px);
  }
  .story-photo img {
    aspect-ratio: 3 / 2;
  }
  .story-photo--illustration {
    width: min(100%, 560px);
    padding: 22px;
  }
  .story-photo--icon {
    width: 160px;
  }
  .message-card {
    gap: 16px;
    margin-top: 44px;
  }
  .message-card > img {
    width: 78px;
    height: 78px;
  }
  .message-bubble {
    padding: 24px 28px;
  }
  .message-bubble p {
    font-size: 17.4px;
    line-height: 1.94;
  }
}

@media (max-width: 380px) {
  p {
    font-size: 15.9px;
  }
  .hero h1 {
    font-size: 26.5px;
  }
  .hero__quote {
    font-size: 17px;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .pull-quote p {
    font-size: 17.5px;
  }
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hero.hero--card {
  display: block;
  min-height: 0;
  padding: 0 0 20px;
  background: #fffaf6;
}

.hero__card-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  background: #fffaf6;
}

@media (min-width: 700px) {
  .hero.hero--card {
    display: block;
    min-height: 0;
    padding: 24px 0 36px;
  }

  .hero__card-image {
    width: min(100% - 64px, 1440px);
    border-radius: 8px;
  }
}

.intro-video {
  width: min(100% - 30px, 760px);
  margin: 12px auto 36px;
}

.intro-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
