/* Hallmark · macrostructure: Long Document · theme: existing Vivace · tone: quiet, honest · anchor hue: rose
 * Pre-emit critique: P5 H4 E4 S5 R5 V4. Existing brief, typography and tokens take precedence. */
:root {
  --text-body: 1rem;
  --text-heading: 1.5rem;
  --text-hero: 1.625rem;
  --text-hero-pc: 2.25rem;
  --text-wordmark: 2rem;
  --text-number: 2.5rem;
  --space-zero: 0px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --width-reading: 680px;
  --width-cta: 460px;
  --width-portrait: 400px;
  --width-rule: 1px;
  --width-focus: 3px;
  --radius-bubble: 24px;
  --radius-circle: 50%;
  --hero-circle-size: 100%;
  --hero-circle-top: 12%;
  --opacity-hover: .9;
  --duration: 160ms;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
html, body { overflow-x: clip; }
body { font-size: var(--text-body); }
/* 見出しは読点・句点で折り返す。既定の CJK 改行だと「残らな／い。」と語中で割れる。
 * keep-all で文節を塊に保ち、収まらないときだけ break-word で逃がす。 */
h1, h2, h3 { letter-spacing: var(--ls-head); line-height: var(--lh-body); word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; line-break: strict; min-width: 0; }
/* pretty で最終行に1〜2文字だけ残る（「も、」だけ改行）のを防ぐ */
p, li, dd { overflow-wrap: break-word; line-break: strict; text-wrap: pretty; }
/* 短い一行ものは見出しと同じ扱い。「（10／項目）」のような割れを防ぐ */
.label, .note, .gift__extra, .gift__part, .cta__sub, .profile__kana { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
/* メールアドレス・URL だけは途中で折り返さないと収まらない */
.operator dd { overflow-wrap: anywhere; }
figure, blockquote { margin: var(--space-zero); }
.note, .label, .cta__sub, .faq .faq__a { font-size: var(--text-body); color: var(--c-deep); }
.label { margin-bottom: var(--space-md); }
.masthead { padding: var(--space-md) var(--gutter); background: var(--c-cream); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.masthead p { margin: var(--space-zero); }
.masthead__inner > p { display: none; }
.wordmark { display: inline-flex; flex-direction: column; font-family: var(--en); font-size: var(--text-wordmark); font-weight: 300; line-height: var(--lh-body); color: var(--c-deep); text-decoration: none; }
.wordmark span { font-family: var(--jp); font-size: var(--text-body); }
.hero__grid, .profile__grid { display: grid; gap: var(--space-2xl); align-items: center; }
h1 { font-size: var(--text-hero); }
.hero__lead { margin-top: var(--space-lg); font-size: var(--text-heading); }
.hero__cta { text-align: center; }
.hero__portrait { position: relative; isolation: isolate; align-self: end; max-width: var(--width-portrait); width: 100%; margin-inline: auto; margin-bottom: calc(var(--sec-pad-sp) * -1); }
.hero__portrait::before { content: ''; position: absolute; z-index: -1; width: var(--hero-circle-size); aspect-ratio: 1; top: var(--hero-circle-top); left: var(--space-zero); border-radius: var(--radius-circle); background: var(--c-pale); }
.hero__portrait picture { display: block; }
.hero__portrait img { width: 100%; height: auto; }
.hero__portrait figcaption { position: absolute; left: var(--space-zero); bottom: var(--space-md); color: var(--c-deep); }
.hero__portrait figcaption span { margin-left: var(--space-md); font-family: var(--en); }
.section-heading { text-align: center; margin-bottom: var(--space-2xl); }
.section-heading .lead { margin-top: var(--space-lg); }
.concerns__grid { gap: var(--space-xl); }
.bubble { position: relative; background: var(--c-pale); border-radius: var(--radius-bubble); padding: var(--space-lg); }
.bubble::after { content: ''; position: absolute; width: var(--space-lg); height: var(--space-lg); bottom: calc(var(--space-sm) * -1); left: var(--space-xl); transform: rotate(45deg); background: var(--c-pale); }
.bubble h3 { font-size: var(--text-body); color: var(--c-deep); }
.reading { max-width: var(--width-reading); }
.story__body { margin-top: var(--space-xl); }
.story__body p, .profile__copy p, .community p { margin-bottom: var(--space-lg); }
.story__lesson { border: var(--width-rule) solid var(--c-main); padding: var(--space-lg); margin-top: var(--space-xl); color: var(--c-deep); background: var(--c-cream); }
.gift__grid { gap: var(--space-md); }
.gift__card { padding: var(--space-lg); background: var(--c-cream); border-radius: var(--radius); }
.gift__point { color: var(--c-deep); font-family: var(--en); margin-bottom: var(--space-md); }
.gift__point span { font-size: var(--text-number); font-weight: 300; margin-left: var(--space-sm); }
.gift__part { color: var(--c-deep); }
.gift__card h3 { font-size: var(--text-body); }
.gift__extra { text-align: center; padding: var(--space-lg); margin-top: var(--space-lg); background: var(--c-pale); }
.profile__portrait { max-width: var(--width-portrait); width: 100%; margin-inline: auto; }
.profile__portrait img { width: 100%; border-radius: var(--radius); }
.profile__portrait figcaption { margin-top: var(--space-md); color: var(--c-deep); }
.profile__kana { display: block; font-size: var(--text-body); font-weight: 400; }
.community__list { padding-left: var(--space-lg); margin-block: var(--space-xl); }
.community__list li + li { margin-top: var(--space-md); }
.faq details { padding: var(--space-lg) var(--space-zero); border-color: var(--c-mid); }
.faq summary { position: relative; padding-right: var(--space-xl); letter-spacing: var(--ls-head); }
.faq summary::after { content: '+'; position: absolute; right: var(--space-zero); top: var(--space-zero); color: var(--c-main); }
.faq details[open] summary::after { content: '−'; }
.faq .faq__a { margin-top: var(--space-md); color: var(--c-ink); }
.final-cta { text-align: center; }
.final-cta .cta__sub { margin-top: var(--space-lg); }
.final-cta__closing { margin-top: var(--space-xl); color: var(--c-deep); }
.cta__btn { background: var(--c-line); color: var(--c-white); text-align: center; max-width: var(--width-cta); padding: var(--space-md) var(--space-sm); min-height: var(--space-3xl); font-size: var(--text-body); letter-spacing: var(--space-zero); line-height: var(--lh-body); white-space: nowrap; transition: opacity var(--duration) var(--ease-out); }
.cta__btn:hover { opacity: var(--opacity-hover); }
.cta__btn[aria-disabled='true'] { cursor: not-allowed; }
a:focus-visible, summary:focus-visible { outline: var(--width-focus) solid var(--c-main); outline-offset: var(--space-xs); }
.footer { background: var(--c-cream); }
.operator { margin-block: var(--space-xl); font-size: var(--text-body); }
.operator div { margin-top: var(--space-md); }
.operator dt { color: var(--c-deep); }
.operator dd { margin: var(--space-zero); }
.footer__privacy { display: inline-block; text-underline-offset: var(--space-xs); }
.footer__copyright { margin-top: var(--space-xl); font-family: var(--en); color: var(--c-deep); }
.privacy__notice { border: var(--width-rule) solid var(--c-main); padding: var(--space-lg); margin-block: var(--space-xl); }
@media (min-width: 768px) {
  .masthead__inner > p { display: block; }
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--space-3xl); }
  .hero__portrait { margin-bottom: calc(var(--sec-pad) * -1); }
  h1 { font-size: var(--text-hero-pc); }
  .profile__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-4xl); }
  .gift__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gift__card { padding: var(--space-md); }
  .operator div { display: grid; grid-template-columns: minmax(0, .25fr) minmax(0, 1fr); gap: var(--space-lg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta__btn { transition: none; }
}
