@charset "UTF-8";

/*
 * Fullness Career — サイト共通スタイルシート
 *
 * 目次（見出しの番号・名称で検索）
 * 01 共通：基本設定、文字、ボタン、ヘッダー、フッター
 * 02 トップページ（index.html）：各セクション、レスポンシブ、アニメーション
 * 03 aboutページ（about.html）：各セクション、レスポンシブ、アニメーション
 *
 */

/* ==========================================================================
   01 共通：基本設定・共通ボタン・ヘッダー・フッター
   ========================================================================== */

/* 共通デザイントークン */
:root {
  --color-text: #484747;
  --color-white: #fafbff;
  --color-yellow: #d3bf6c;
  --color-white-text: #fafcff;
  --color-accent-green: #007680;
  --gradient-button-opacity: 1;
  --paper: #faf6f3;
  --content-max: 1006px;
  --page-gutter: 24px;
  --content-width: min(var(--content-max), calc(100% - 2 * var(--page-gutter)));
  --content-edge: max(var(--page-gutter), calc((100% - var(--content-max)) / 2));
  --heading-size: clamp(2.8rem, 3.34vw, 4rem);
  --heading-line-height: 1.85;
  --heading-emphasis-size: clamp(3.6rem, 4.67vw, 5.6rem);
}

/* ブラウザ共通・タイポグラフィ */
html {
  max-width: 100%;
  overflow-x: hidden;
  font-size: 62.5%;
  scroll-behavior: smooth;
}

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

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--paper) url("../images/paper-texture.jpg") center / cover fixed;
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2;
}

body.is-menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h2 {
  font-size: var(--heading-size);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

/* 本文の太さは両ページ共通。strongなどの意味のある強調は維持する。 */
p {
  font-weight: 500;
}

mark {
  background: none;
  color: var(--color-yellow);
}

em {
  color: var(--color-accent-green);
  font-style: normal;
}

h2 :is(em, strong, mark) {
  font-size: var(--heading-emphasis-size);
  line-height: 1;
}

.sp-only {
  display: none;
}

/* 両ページの本文・カード・CTAは、この1か所で幅と横余白を管理する。
   背景や挿絵のはみ出し、カード内側の余白は各セクションで管理する。 */
.layout-width,
.about-width,
.top-story,
.top-note__inner,
.top-bio__card,
.site-cta__inner {
  width: var(--content-width);
  margin-inline: auto;
}

/* 共通ボタン */
.gradient-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 290px;
  max-width: 100%;
  min-height: 58px;
  padding: 0 24px 0 38px;
  border-radius: 999px;
  background: #208a92;
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: var(--gradient-button-opacity);
  transition: filter .25s, transform .25s;
}

.gradient-button::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.gradient-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.gradient-button:focus-visible {
  outline: 2px solid #007680;
  outline-offset: 5px;
}

/* ヘッダー・ナビゲーション */
.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px var(--page-gutter);
}

.site-header__logo {
  display: block;
  /* 横長ロゴの縦横比を保ち、PCでは元画像の1/2サイズで表示する。 */
  width: 229px;
  flex-shrink: 0;
}

.site-header__nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-header__nav a:not(.gradient-button) {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  transition: color .25s ease, transform .25s ease;
}

.site-header__nav a[aria-current="page"] {
  color: var(--color-accent-green);
}

.site-header__nav a:not(.gradient-button):focus-visible {
  color: var(--color-accent-green);
  transform: translateY(-3px);
}

.gradient-button--header {
  width: 293px;
  min-height: 58px;
  color: #fff;
}

.site-header__toggle {
  display: none;
}

/* レスポンシブ：(hover: hover) and (pointer: fine) */
@media (hover: hover) and (pointer: fine) {
  .site-header__nav a:not(.gradient-button):hover {
    color: var(--color-accent-green);
    transform: translateY(-3px);
  }
}

/* フッター */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: 145px;
  padding: 0 var(--page-gutter) 80px;
  background: transparent;
  text-align: center;
}

.site-footer p {
  font-size: 1.6rem;
}

/* 共通CTA：見出し・本文・ボタン・イラストを同じ幅と間隔で表示する。 */
.site-cta {
  padding-top: 210px;
}

.site-cta__inner {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  align-items: center;
}

.site-cta h2 {
  margin-bottom: 36px;
  color: #625e5e;
}

.site-cta p {
  margin-bottom: 44px;
  font-size: 1.6rem;
  line-height: 2;
}

.site-cta__art,
.site-cta__art img {
  width: 100%;
  height: auto;
}

.site-footer a {
  color: inherit;
  transition: color .3s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--color-accent-green);
}

.site-footer a:focus-visible {
  outline: 2px solid rgb(0 118 128 / 35%);
  outline-offset: 5px;
}

/* レスポンシブ：(max-width: 1100px) */
@media (max-width: 1100px) {
  .site-header__nav ul {
    gap: 22px;
  }

  .gradient-button--header {
    width: 250px;
  }
}

/* レスポンシブ：(min-width: 768px) and (max-width: 960px) */
@media (min-width: 768px) and (max-width: 960px) {
  .site-header__logo {
    width: 200px;
  }

  .site-header__nav ul {
    gap: 13px;
  }

  .site-header__nav a:not(.gradient-button) {
    font-size: 1.25rem;
  }

  .gradient-button--header {
    width: 205px;
    min-height: 50px;
    padding-inline: 25px 18px;
    font-size: 1.15rem;
  }
}

@media (min-width: 768px) and (max-width: 1000px) {
  .site-cta__inner {
    grid-template-columns: 48% minmax(0, 1fr);
  }
}

/* レスポンシブ：(max-width: 767px) */
@media (max-width: 767px) {
  :root {
    --page-gutter: 20px;
    --heading-size: clamp(2.4rem, 6.2vw, 2.8rem);
    --heading-line-height: 1.8;
  }

  body {
    font-size: 1.6rem;
  }

  .site-header {
    padding: 13px var(--page-gutter);
  }

  .site-header__logo {
    width: 200px;
  }

  .site-header__toggle {
    position: relative;
    z-index: 52;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    padding: 10px 8px;
    background: rgb(250 251 255 / 82%);
    border-radius: 50%;
  }

  .site-header__toggle span {
    display: block;
    height: 2px;
    background: var(--color-text);
    transition: transform .25s, opacity .25s;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .site-header__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__nav {
    position: fixed;
    z-index: 51;
    inset: 0 0 auto auto;
    display: none;
    width: min(82%, 330px);
    min-height: 100svh;
    padding: 88px 25px 30px;
    background: rgb(250 251 255 / 97%);
    box-shadow: -8px 0 24px rgb(72 71 71 / 18%);
  }

  .site-header__nav.is-open {
    display: block;
  }

  .site-header__nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header__nav a:not(.gradient-button) {
    display: block;
    padding: 13px 8px;
    border-bottom: 1px solid rgb(72 75 100 / 15%);
    font-size: 1.4rem;
  }

  .gradient-button--header {
    width: 100%;
    min-height: 50px;
    margin-top: 22px;
  }

  .gradient-button {
    width: min(280px, 100%);
  }

  .sp-only {
    display: inline;
  }

  .site-footer {
    margin-top: 64px;
    padding-bottom: 48px;
  }

  .site-footer p {
    font-size: 1.3rem;
  }

  .site-cta {
    padding-top: 100px;
  }

  .site-cta__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .site-cta__copy {
    min-width: 0;
  }

  .site-cta h2 {
    margin-bottom: 28px;
  }

  .site-cta p {
    margin-bottom: 36px;
  }

  .site-cta__art {
    max-width: 480px;
    margin-inline: auto;
  }
}


/* アニメーション */
.js .fade-reveal {
  opacity: 0;
  transition: opacity .9s ease var(--reveal-delay, 0s);
}

.js .fade-reveal.is-revealed {
  opacity: var(--event-card-opacity, 1);
}

.js .fade-reveal:focus-within {
  opacity: var(--event-card-opacity, 1);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .fade-reveal {
    opacity: var(--event-card-opacity, 1);
    transition: none;
  }
}

/*==========================================================
   02 トップページ（index.html）：FV・記事カード・各セクション
========================================================== */

/* 導入〜愛の定義：見出し・各段落を24px下から個別にフェードアップ。
   動きを減らす設定では、共通の即時表示を使用する。 */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.top-intro, .top-fear, .top-conditional, .top-family, .top-definition) .fade-reveal {
    translate: 0 24px;
    transition: opacity .9s ease, translate .9s cubic-bezier(.22, .61, .36, 1);
  }

  .js :is(.top-intro, .top-fear, .top-conditional, .top-family, .top-definition) .fade-reveal.is-revealed,
  .js :is(.top-intro, .top-fear, .top-conditional, .top-family, .top-definition) .fade-reveal:focus-within {
    translate: 0 0;
  }
}

/* トップ後半：意味のまとまりごとの登場演出。JSで一度だけ表示。
   ボタンは外側の要素をフェードさせ、既存のホバー速度を変えない。 */
.story-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .js :is(.top-page, .site-cta) [data-entrance].fade-reveal {
    transition: opacity var(--entrance-duration, 1.2s) ease var(--reveal-delay, 0s);
  }

  .js :is(.top-page, .site-cta) [data-entrance="up"].fade-reveal {
    translate: 0 8px;
    transition:
      opacity var(--entrance-duration, 1.2s) ease var(--reveal-delay, 0s),
      translate var(--entrance-duration, 1.2s) cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0s);
  }

  .js :is(.top-page, .site-cta) [data-entrance="up"].is-revealed {
    translate: 0 0;
  }

  .js :is(.top-page, .site-cta) [data-entrance].fade-reveal:focus-within {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

/* ファーストビュー */
.top-hero {
  --hero-art-left: calc(var(--content-edge) + var(--content-width) * .44);
  position: relative;
  isolation: isolate;
  height: clamp(650px, 57.15vw, 820px);
  overflow: clip;
  background: #faf6f3 url("../images/paper-texture.jpg") center top / cover;
}

.top-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 17% 0 0;
  background: url("../images/blob.png") center top / 100% auto no-repeat;
  pointer-events: none;
}

.top-hero__art {
  position: absolute;
  top: 17%;
  left: var(--hero-art-left);
  width: min(800px, calc(100% - var(--hero-art-left) - var(--page-gutter)));
  height: auto;
  object-fit: contain;
}

.top-hero__copy {
  position: absolute;
  z-index: 2;
  top: 29%;
  left: var(--content-edge);
}

.top-hero__copy h2 {
  font-size: clamp(2.4rem, 2.85vw, 4rem);
  font-weight: 700;
  line-height: 1.55;
}

.top-hero__copy h2 > span {
  display: block;
}

.top-hero__copy h2 > span + span {
  margin-top: .8em;
}

.top-hero__copy h2 :is(em, mark) {
  font-size: clamp(3.6rem, 4.1vw, 5.6rem);
  line-height: 1;
}

.top-hero__copy em {
  color: #889d81;
}

.top-hero__copy mark {
  color: #d3bf6c;
}

/* FV専用：文字の位置と行高は固定し、全文表示後に画像だけをフェード。 */
/* スクリプトの準備前に、全文や画像が一瞬見えるのを防ぐ。 */
@media (prefers-reduced-motion: no-preference) {
  .js .top-hero:not(.is-hero-typing) .top-hero__copy {
    visibility: hidden;
  }

  .js .top-hero:not(.is-hero-art-visible) .top-hero__art {
    opacity: 0;
  }
}

.top-hero__copy h2 .top-hero__character {
  display: inline;
  margin: 0;
  opacity: 0;
}

.top-hero__copy h2 .top-hero__character.is-character-visible {
  opacity: 1;
}

.top-hero.is-hero-typing .top-hero__art {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.top-hero.is-hero-art-visible .top-hero__art {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .top-hero__copy h2 .top-hero__character,
  .top-hero.is-hero-typing .top-hero__art {
    opacity: 1;
    transition: none;
  }
}

/* note記事カード */
.note-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px auto;
}

.note-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  box-shadow: 0 6px 18px rgb(72 71 71 / 11%);
}

.note-card__thumb {
  display: block;
  height: 145px;
  margin: 16px 16px 0;
  overflow: hidden;
  border: 0;
  background: #f2f0f1;
}

.note-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.note-card:hover .note-card__thumb img,
.note-card:focus-within .note-card__thumb img {
  transform: scale(1.025);
}

.note-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 24px 22px 18px;
}

.note-card h3 {
  font-size: 1.8rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  transition: opacity .3s ease;
}

.note-card__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  gap: 6px;
  margin-top: auto;
  border-bottom: 1px solid var(--color-accent-green);
  font-size: 1.6rem;
  line-height: 1.7;
  transition: color .25s ease, border-color .25s ease;
}

.note-card__link span {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border-radius: 50%;
  background: var(--color-yellow);
  transition: background-color .25s ease;
}

.note-card__link span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 46%;
  width: 5px;
  height: 5px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.note-card__link:hover,
.note-card__link:focus-visible,
.note-card:hover .note-card__link,
.note-card:focus-within .note-card__link {
  border-color: var(--color-yellow);
  color: var(--color-accent-green);
}

.note-card__link:hover span,
.note-card__link:focus-visible span,
.note-card:hover .note-card__link span,
.note-card:focus-within .note-card__link span {
  background: var(--color-accent-green);
}

.note-card:hover h3,
.note-card:focus-within h3 {
  opacity: .68;
}

.note-card__link:focus-visible {
  outline: 2px solid rgb(0 118 128 / 35%);
  outline-offset: 4px;
}

.note-feed-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  white-space: nowrap;
}

.note-section__button {
  margin-left: auto;
}

/* プロフィール見出し */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-accent-green);
  font-size: 1.6rem;
}

p.eyebrow {
  font-weight: 700;
}

.eyebrow::after {
  content: "";
  width: 40px;
  flex: 0 0 40px;
  border-top: 1px solid #007680;
}

/* レスポンシブ：(max-width: 767px) */
@media (max-width: 767px) {
  .top-hero {
    height: auto;
    min-height: 0;
    padding: 128px var(--page-gutter) 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .top-hero::before {
    inset: 32% 0 0;
    background-size: auto 100%;
  }

  .top-hero__art {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    order: 2;
    width: min(100%, 520px);
    align-self: center;
  }

  .top-hero__copy {
    position: relative;
    top: auto;
    left: auto;
    width: fit-content;
    max-width: 100%;
    align-self: center;
  }

  .top-hero__copy h2 {
    font-size: clamp(2.2rem, 5.9vw, 2.8rem);
  }

  .note-list {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 48px 0;
  }

  .note-card {
    display: flex;
    flex-direction: column;
  }

  .note-card__thumb {
    height: 145px;
    min-height: 145px;
  }

  .note-card__body {
    padding: 24px 22px 18px;
  }

  .note-card h3 {
    font-size: 1.8rem;
  }

  .note-section__button {
    margin-inline: auto;
  }
}

/* 動きを減らす設定：操作への色の反応は残し、移動・拡大・待ち時間はなくす。 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gradient-button,
  .site-header__nav a:not(.gradient-button),
  .site-header__toggle span,
  .site-footer a,
  .note-card__thumb img,
  .note-card h3,
  .note-card__link,
  .note-card__link span {
    transition: none;
  }

  .gradient-button:hover,
  .site-header__nav a:not(.gradient-button):hover,
  .site-header__nav a:not(.gradient-button):focus-visible,
  .note-card:hover .note-card__thumb img,
  .note-card:focus-within .note-card__thumb img {
    transform: none;
  }
}

/* ========================================================================== 
   トップページ
   ========================================================================== */
.top-page {
  --top-dark: #2e2c2c;
}

.top-page .top-hero {
  overflow: visible;
  background: transparent;
}

.top-page .top-hero::before {
  bottom: auto;
  height: 61.35vw;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

/* 見出し・本文：PCでは1006pxの中心に揃える。 */
.top-story {
  position: relative;
  z-index: 1;
  text-align: center;
}

.top-story h2,
.top-magma h2,
.top-expression h2 {
  font-size: var(--heading-size);
  font-weight: 700;
  line-height: var(--heading-line-height);
}

.top-page h2 :is(em, strong, mark) {
  font-size: var(--heading-emphasis-size);
  font-style: normal;
  line-height: 1;
}

.top-story h2 {
  margin-bottom: 72px;
}

.top-story p {
  font-size: 1.6rem;
  line-height: 2.1;
}

.top-story p + p {
  margin-top: 36px;
}

/* 02 導入：画像内の下端曲線を残し、その下を濃いグレーへ接続。 */
.top-intro {
  position: relative;
  padding: 90px 0 clamp(190px, 20vw, 280px);
  /* 画像拡縮時の端数で紙背景が下端にのぞかないよう、接続色を敷く。 */
  background: linear-gradient(to top, var(--top-dark) 4px, transparent 4px);
}

.top-intro::before {
  content: "";
  position: absolute;
  /* 下端を2px延長し、次の濃色背景と重ねる。文章の余白は変えない。 */
  inset: 0 0 -2px;
  background: url("../images/top_bk-blob-top.png") center bottom / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 90px);
  mask-image: linear-gradient(transparent, #000 90px);
  pointer-events: none;
}

.top-intro .top-story p + p {
  margin-top: 58px;
}

.top-intro .intro-keyword {
  color: var(--color-yellow);
  font-size: clamp(2.2rem, 2.67vw, 3.2rem);
}

.top-intro .intro-keyword__quote {
  color: #484747;
}

/* 03–04 自分への恐れ・条件付きの愛：共通の背景色で継ぎ目を消す。 */
.top-fear,
.top-conditional {
  position: relative;
  background: var(--top-dark);
  color: #fafbff;
}

.top-fear {
  padding: 130px 0 0;
}

.top-fear h2 {
  margin-bottom: 112px;
}

.top-conditional {
  /* 前の文章との間隔を詰め、濃色背景の流れを保つ。 */
  padding: 160px 0 170px;
}

/* 描画倍率によって境界が端数ピクセルになる場合も、背面の紙が
   細い線として透けないよう背景だけを重ねる。文章の位置は変えない。 */
.top-conditional::before {
  content: "";
  position: absolute;
  top: -2px;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--top-dark);
  pointer-events: none;
}

.top-conditional mark {
  color: #f2c55f;
}

/* 05–06 無条件の愛：上部だけに濃色を含む素材を配置。
   下端は紙の共通背景が見えるため、画面幅が変わっても黒が漏れない。 */
.top-family {
  --family-art-scale: 1;
  position: relative;
  padding: clamp(280px, 28vw, 390px) 0 70px;
}

.top-family::before {
  content: "";
  position: absolute;
  /* vwの丸め値ではなく、実際の横幅と画像比率から高さを決める。 */
  inset: -2px 0 auto;
  aspect-ratio: calc(1366 / (811 * var(--family-art-scale)));
  background: url("../images/top_bk-blob-bottom.png") center top / calc(100% * var(--family-art-scale)) 100% no-repeat;
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
  pointer-events: none;
}

.top-family .top-story h2 {
  color: #625e5e;
}

/* 07 愛の定義：上端の紙と波形が含まれた新素材を使用。 */
.top-definition {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(310px, 31vw, 425px) 0 285px;
  color: #fafbff;
}

/* 参照07〜08に合わせ、青緑の下端はぼかさず直線で紙背景へ切り替える。
   素材最終行の半透明ピクセルだけ枠外へ出し、細い隙間を防ぐ。 */
.top-definition::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("../images/top_bk-bubble.png") center top / 100% calc(100% * 1446 / 1445) no-repeat;
  pointer-events: none;
}

.top-definition h2 {
  margin-bottom: 48px;
}

.top-definition h2 em {
  color: inherit;
}

.top-bubbles {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.top-bubbles > .top-bubbles__bubble {
  position: absolute;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  width: var(--bubble-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(250 251 255 / var(--bubble-alpha, 30%));
  opacity: 1;
  filter: none;
  animation: top-bubble-drift var(--float-time, 7s) ease-in-out infinite;
}

.js .top-bubbles > .top-bubbles__bubble {
  opacity: 0;
  animation: none;
}

.js .is-bubbles-visible .top-bubbles > .top-bubbles__bubble {
  animation:
    top-bubble-rise var(--rise-time, 5s) ease-out var(--rise-delay, 0s) both,
    top-bubble-drift var(--float-time, 7s) ease-in-out calc(var(--rise-time, 5s) + var(--rise-delay, 0s)) infinite;
}

.top-bubbles > .top-bubbles__bubble:nth-child(1) {
  left: 26%; top: 63%;
  --bubble-size: 16px;
}
.top-bubbles > .top-bubbles__bubble:nth-child(2) {
  left: 29%; top: 68%;
  --bubble-size: 22px;
  --float-time: 8s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(3) {
  left: 20%; top: 73%;
  --bubble-size: 44px;
  --float-time: 9s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(4) {
  left: 25%;
  top: 81%;
  --bubble-size:44px;
}
.top-bubbles > .top-bubbles__bubble:nth-child(5) {
  left: 16%; top: 88%;
  --bubble-size: 80px;
  --bubble-alpha: 50%;
  --float-time: 10s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(6) {
  right: 26%;
  top: 61%;
  --bubble-size: 44px;
  --float-time: 8s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(7) {
  right: 20%;
  top: 67%;
  --bubble-size: 22px;
}
.top-bubbles > .top-bubbles__bubble:nth-child(8) {
  right: 17%;
  top: 74%;
  --bubble-size: 16px;
  --float-time: 9s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(9) {
  right: 25%;
  top: 80%;
  --bubble-size: 88px;
  --float-time: 11s;
}
.top-bubbles > .top-bubbles__bubble:nth-child(10) {
  right: 15%;
  top: 90%;
  --bubble-size: 80px;
}

.top-magma {
  position: relative;
  min-height: calc(130.09vw + 220px);
  padding: 260px var(--page-gutter) 0;
  background: url("../images/top_bk-magma.png") center bottom / 100% auto no-repeat;
  text-align: center;
}

.top-magma__intro {
  position: relative;
  isolation: isolate;
}

.top-magma__bubbles {
  position: absolute;
  z-index: 0;
  top: -140px;
  left: 50%;
  width: min(950px, 100%);
  aspect-ratio: 992 / 502;
  transform: translateX(-50%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.top-magma__bubbles > .top-magma__bubble {
  position: absolute;
  top: var(--magma-bubble-top, 40%);
  width: var(--magma-bubble-size, 60px);
  aspect-ratio: 1;
  border-radius: 50%;
  /* XDのぼかし4に合わせ、白い円の輪郭を柔らかくする。 */
  background: rgb(255 255 255 / 78%);
  filter: blur(4px);
  opacity: .85;
  animation: magma-bubble-float var(--magma-bubble-time, 10s) ease-in-out var(--magma-bubble-delay, 0s) infinite;
}

.top-magma__bubbles > .top-magma__bubble:nth-child(1) {
  left: 14.9%;
  --magma-bubble-top: 6.8%;
  --magma-bubble-size: 16px;
  --magma-bubble-time: 10s;
  --magma-bubble-delay: -5s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(2) {
  left: 18.8%;
  --magma-bubble-top: 21.5%;
  --magma-bubble-size: 22px;
  --magma-bubble-time: 8s;
  --magma-bubble-delay: -3s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(3) {
  left: 5.8%;
  --magma-bubble-top: 33.1%;
  --magma-bubble-size: 44px;
  --magma-bubble-time: 12s;
  --magma-bubble-delay: -2s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(4) {
  left: 13.1%;
  --magma-bubble-top: 57.8%;
  --magma-bubble-size: 44px;
  --magma-bubble-time: 11s;
  --magma-bubble-delay: -7s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(5) {
  left: 0;
  --magma-bubble-top: 78.1%;
  --magma-bubble-size: 80px;
  --magma-bubble-time: 9s;
  --magma-bubble-delay: -4s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(6) {
  right: 17.1%;
  --magma-bubble-top: 0%;
  --magma-bubble-size: 44px;
  --magma-bubble-time: 10.5s;
  --magma-bubble-delay: -8s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(7) {
  right: 7.1%;
  --magma-bubble-top: 19.5%;
  --magma-bubble-size: 22px;
  --magma-bubble-time: 9.5s;
  --magma-bubble-delay: -1s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(8) {
  right: 20%;
  --magma-bubble-top: 35.5%;
  --magma-bubble-size: 16px;
  --magma-bubble-time: 11.5s;
  --magma-bubble-delay: -6s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(9) {
  right: 14.9%;
  --magma-bubble-top: 53.4%;
  --magma-bubble-size: 88px;
  --magma-bubble-time: 12s;
  --magma-bubble-delay: -9s;
}
.top-magma__bubbles > .top-magma__bubble:nth-child(10) {
  right: 0;
  --magma-bubble-top: 84.5%;
  --magma-bubble-size: 80px;
  --magma-bubble-time: 10s;
  --magma-bubble-delay: -2s;
}

.js .top-magma__bubbles {
  opacity: 0;
}

.js .top-magma__bubbles > .top-magma__bubble {
  animation-play-state: paused;
}

.js .is-bubbles-visible .top-magma__bubbles {
  opacity: 1;
}

.js .is-bubbles-visible .top-magma__bubbles > .top-magma__bubble {
  animation-play-state: running;
}

.js .is-bubbles-paused .top-bubbles > .top-bubbles__bubble,
.js .is-bubbles-paused .top-magma__bubbles > .top-magma__bubble {
  animation-play-state: paused;
}

.top-magma__lead {
  position: relative;
  z-index: 1;
  width: min(var(--content-max), 100%);
  margin-inline: auto;
}

.top-magma__lead-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .js .top-magma__lead.fade-reveal {
    opacity: 1;
    transition: none;
  }

  .js .top-magma__lead-line {
    opacity: 0;
    transition: opacity 1.8s ease;
  }

  .js .top-magma__lead-line + .top-magma__lead-line {
    transition-delay: .5s;
  }

  .js .top-magma__lead.is-revealed .top-magma__lead-line {
    opacity: 1;
  }
}

.top-magma__question {
  position: absolute;
  z-index: 1;
  top: calc(220px + 64vw);
  left: 0;
  width: 100%;
  padding-inline: var(--page-gutter);
  color: #fafbff;
}

.top-magma__question em {
  color: inherit;
}

.top-expression {
  position: relative;
  z-index: 1;
  min-height: 111.06vw;
  margin-top: -1px;
  padding-top: 48vw;
  background: url("../images/top_tree.png") center top / 100% auto no-repeat;
  text-align: center;
  pointer-events: none;
}

.top-expression h2 {
  position: relative;
  z-index: 2;
  padding-inline: var(--page-gutter);
  color: #625e5e;
}

.top-question {
  position: relative;
  margin-top: -40vw;
  padding-top: 45vw;
}

.top-question__river {
  position: absolute;
  top: 0;
  left: 50%;
  width: 31%;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}

.top-question .top-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -120px;
  left: 50%;
  width: min(670px, 100vw);
  height: 430px;
  transform: translateX(-50%);
  background: url("../images/top-_circle.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.top-question h2 em {
  color: #007680;
}

@media (prefers-reduced-motion: no-preference) {
  .js .top-question h2.fade-reveal {
    transition: opacity 1.4s ease;
  }

  .js .top-question p.fade-reveal {
    translate: 0 12px;
    transition: opacity 1.2s ease, translate 1.2s cubic-bezier(.22, .61, .36, 1);
  }

  .js .top-question p.fade-reveal:last-child {
    transition-duration: 1.6s;
  }

  .js .top-question p.fade-reveal.is-revealed,
  .js .top-question p.fade-reveal:focus-within {
    translate: 0 0;
  }
}

.top-note {
  padding: 170px 0 0;
}

.top-note .top-story {
  width: 100%;
}

.top-note h2 {
  margin-bottom: 42px;
  color: #625e5e;
}

.top-note .note-list {
  width: min(810px, 100%);
  gap: 24px;
  margin: 48px auto;
}

/* PCは記事一覧全体、SPは各カードを12px下から0.9秒で登場させる。
   対象の切り替えはJSで行い、時間差や親子の二重フェードは付けない。 */
@media (prefers-reduced-motion: no-preference) {
  .js .top-note :is(.note-list, .note-card).fade-reveal {
    translate: 0 12px;
    transition: opacity .9s ease, translate .9s cubic-bezier(.22, .61, .36, 1);
  }

  .js .top-note :is(.note-list, .note-card).fade-reveal.is-revealed,
  .js .top-note :is(.note-list, .note-card).fade-reveal:focus-within {
    translate: 0 0;
  }
}

.top-note .note-card__thumb {
  height: auto;
  aspect-ratio: 1.85;
  margin: 12px 12px 0;
}

.top-note .note-section__button {
  margin-right: max(0px, calc((100% - 810px) / 2));
  background: #4e9fa5;
}

.top-bio {
  position: relative;
  padding: 130px 0 0;
}

.top-bio::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52.42vw;
  background: url("../images/top_bk-profile.png") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
  pointer-events: none;
}

.top-bio__card {
  position: relative;
  display: grid;
  grid-template-columns: 39% minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  padding: 48px;
  background: #fafbff;
  box-shadow: 0 4px 8px rgb(72 71 71 / 15%);
}

.top-bio__photo {
  width: 100%;
  height: auto;
}

.top-bio__body h2 {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0;
  font-size: clamp(3.2rem, 3.34vw, 4rem);
  line-height: 1.5;
  color: #625e5e;
}

.top-bio__body h2 small {
  font-size: 1.4rem;
  font-weight: 700;
}

.top-bio__body > p {
  font-size: 1.6rem;
  line-height: 2;
}

.top-bio__body > p:not(.eyebrow) {
  font-weight: 400;
}

.top-bio__body .gradient-button {
  margin: 24px 0 0 auto;
  background: #38929c;
}

/* 泡アニメーション */
@keyframes top-bubble-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(5px, -10px, 0); }
}

@keyframes top-bubble-rise {
  from { opacity: 0; translate: 0 220px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes magma-bubble-float {
  0%, 100% { transform: translate3d(-2px, 4px, 0); }
  50% { transform: translate3d(2px, -4px, 0); }
}

/* タブレット：長いコピー・プロフィールを無理に横並びにしない。 */
@media (max-width: 1000px) {
  .top-bio__card {
    grid-template-columns: 34% minmax(0, 1fr);
    gap: 28px;
    padding: 32px;
  }

  .top-magma {
    padding-top: 180px;
  }

}

/* スマートフォン：素材の曲線は維持し、本文に合わせて縦に伸ばす。 */
@media (max-width: 767px) {
  .top-page .top-hero::before {
    height: 100%;
    background-size: auto 100%;
  }

  .top-story h2 {
    margin-bottom: 44px;
  }

  .top-story p {
    line-height: 2;
  }

  .top-story p + p {
    margin-top: 30px;
  }

  .top-intro {
    padding: 70px 0 170px;
  }

  .top-intro::before {
    background-size: 180% 100%;
  }

  .top-intro .top-story p + p {
    margin-top: 38px;
  }

  .top-fear {
    padding-top: 76px;
  }

  .top-conditional {
    padding: 80px 0 100px;
  }

  .top-family {
    --family-art-scale: 1.7;
    padding-top: 180px;
    padding-bottom: 40px;
  }

  .top-definition {
    padding: 230px 0 190px;
  }

  .top-bubbles > .top-bubbles__bubble {
    width: calc(var(--bubble-size) * .65);
  }

  .top-bubbles > .top-bubbles__bubble:nth-child(-n+5) {
    left: 7%;
  }
  .top-bubbles > .top-bubbles__bubble:nth-child(n+6) {
    right: 7%;
  }
  .top-bubbles > .top-bubbles__bubble:nth-child(2n) {
    margin-inline: 12px;
  }

  .top-magma {
    min-height: 1120px;
    padding-top: 120px;
    background-size: max(100%, calc(850px * 1366 / 1777)) auto;
    background-position: 60% bottom;
  }

  .top-magma__question {
    top: 710px;
  }

  .top-magma__bubbles {
    top: -65px;
    height: calc(100% + 150px);
    aspect-ratio: auto;
  }

  .top-magma__bubbles > .top-magma__bubble {
    width: calc(var(--magma-bubble-size) * .72);
  }

  .top-expression {
    min-height: 620px;
    padding-top: 245px;
    background-size: 100% 620px;
  }

  .top-expression h2 {
    font-size: 2.4rem;
  }

  .top-question {
    margin-top: -205px;
    padding-top: 300px;
  }

  .top-question__river {
    width: 220px;
    max-width: 58%;
  }

  .top-question h2 {
    font-size: 2.4rem;
  }

  .top-question .top-story::before {
    top: -75px;
    height: 290px;
  }

  .top-note {
    padding-top: 100px;
  }

  .top-note .note-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .top-note .note-card__thumb {
    aspect-ratio: 1.91;
  }

  .top-note .note-section__button {
    margin-inline: auto;
  }

  .top-bio {
    padding-top: 90px;
  }

  .top-bio__card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 24px;
  }

  .top-bio__photo {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .top-bio__body h2 {
    display: block;
  }

  .top-bio__body h2 small {
    display: block;
    margin-top: 12px;
  }

  .top-bio__body .gradient-button {
    padding-inline: 22px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .top-magma__bubbles,
  .js .top-magma__bubbles {
    opacity: 1;
    transition: none;
  }

  .top-magma__bubbles > .top-magma__bubble {
    animation: none;
  }

  .top-bubbles > .top-bubbles__bubble,
  .js .top-definition .top-bubbles > .top-bubbles__bubble {
    opacity: 1;
    animation: none;
  }
}


/* ===================================================
   03 自己紹介ページ（about.html）
   =================================================== */

.about-page h3 {
  font-size: clamp(2rem, 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.65;
}

/* 01 FV */
.about-hero {
  padding: 140px 0 190px;
}

.about-hero__inner {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  align-items: center;
  column-gap: 128px;
  row-gap: 72px;
}

.about-hero__title {
  grid-column: 1 / -1;
}

.about-hero__title p {
  font-size: 4rem;
  line-height: 1.4;
}

.about-hero__title h2 {
  font-size: 2rem;
  font-weight: 500;
  line-height: 2;
}

.about-hero__photo {
  width: 100%;
  height: auto;
}

.about-hero__message {
  min-width: 0;
  font-size: clamp(2.4rem, 2.6vw, 3.6rem);
  line-height: 1.9;
}

.about-hero__message-line {
  display: block;
}

.about-hero__message strong {
  font-size: inherit;
}

.about-hero__message :is(em, mark) {
  font-size: var(--heading-emphasis-size);
  line-height: 1;
}

/* 02 PROFILE */
.about-profile {
  position: relative;
  isolation: isolate;
}

/* 紙の曲線をFV側へ重ねる。本文の高さに追従させ、SPでも途中で切らない。 */
.about-profile::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: clamp(-180px, -13.2vw, -48px);
  right: 0;
  bottom: 48px;
  left: 0;
  background: url("../images/blob.png") center / cover no-repeat;
  pointer-events: none;
}

/* ワイド画面ではcoverの上下トリミングを避け、紙の曲線全体を表示する。 */
@media (min-width: 1366px) {
  .about-profile::before {
    background-size: 100% 100%;
  }
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.about-page .section-heading h2 {
  line-height: 1.2;
}

.section-heading--teal {
  color: var(--color-accent-green);
}

.section-heading--yellow {
  color: var(--color-yellow);
}

.section-heading--yellow::after {
  background: #707070;
}

.about-profile__copy p {
  font-size: 1.6rem;
  line-height: 3;
}

.about-profile__copy p + p {
  margin-top: 48px;
}

/* 03 CAREER */
.career {
  padding-top: 100px;
}

.career .section-heading {
  margin-bottom: 80px;
}

.career-list {
  position: relative;
}

.career-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 109px;
  width: 1px;
  background: var(--color-yellow);
}

.career-list li {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
}

.career-list li + li {
  margin-top: 48px;
}

.career-list li::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 104px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--color-yellow);
  border-radius: 50%;
  background: #faf6f3;
}

.career-list time {
  font-size: clamp(2rem, 2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.65;
}

.career-list h3 {
  margin-bottom: 12px;
}

.career-list p {
  font-size: 1.6rem;
  line-height: 2;
}

/* 04 出来事 */
.events {
  padding-top: 100px;
}

.events h2 {
  margin-bottom: 72px;
  text-align: center;
}

.events__stage {
  position: relative;
  isolation: isolate;
}

.events__art {
  position: absolute;
  z-index: -1;
  top: 24px;
  right: -12%;
  width: 106%;
  pointer-events: none;
}

.events__art img {
  width: 100%;
  height: auto;
  opacity: .3;
}

.events__cards {
  display: grid;
  grid-template-columns: 38.5% 38.5%;
  justify-content: space-between;
  row-gap: 48px;
}

.events__cards article {
  --event-card-opacity: .8;
  padding: 30px 28px;
  border-radius: 20px;
  color: #fafbff;
  opacity: var(--event-card-opacity);
}

.events__cards > article:nth-child(1) {
  background: #d3bf6c;
}

.events__cards > article:nth-child(2) {
  background: #808080;
}

.events__cards > article:nth-child(3) {
  background: #00801e;
}

.events__cards-side {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  display: grid;
  gap: 48px;
}

.events__cards-side article {
  --event-card-opacity: .9;
  background: #e68742;
}

.events__cards-side article:first-child {
  background: #007680;
}

.events__cards h3 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 1.6vw, 2.2rem);
}

.events__cards p {
  font-size: 1.6rem;
  line-height: 2;
}

/* 05 今、届けたいこと：手紙素材ではなく、紙背景に直接配置する。 */
.message {
  padding-top: 190px;
  text-align: center;
}

.message h2 {
  margin-bottom: 36px;
}

.message p {
  font-size: 1.6rem;
  line-height: 2.2;
}

.message strong {
  color: var(--color-accent-green);
}

/* タブレット：写真とコピーの間隔を縮め、カード内の本文幅を確保する。 */
@media (min-width: 768px) and (max-width: 1100px) {
  .about-hero__inner {
    grid-template-columns: 26% minmax(0, 1fr);
    column-gap: 8%;
  }

  .about-hero__message {
    font-size: clamp(2rem, 2.65vw, 2.8rem);
  }

  .events__cards {
    grid-template-columns: 43% 43%;
  }

  .events__cards article {
    padding: 24px;
  }

}

/* SP */
@media (max-width: 767px) {
  .about-hero {
    padding: 105px 0 96px;
  }

  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-hero__title p {
    font-size: 3.2rem;
  }

  .about-hero__title h2 {
    font-size: 1.6rem;
  }

  .about-hero__photo {
    width: min(240px, 75%);
    margin-inline: auto;
  }

  .about-hero__message {
    font-size: clamp(1.8rem, 4.7vw, 2.6rem);
    line-height: 2;
  }

  .section-heading {
    gap: 24px;
    margin-bottom: 32px;
  }

  .about-profile__copy p {
    line-height: 2.2;
  }

  .about-profile__copy p + p {
    margin-top: 32px;
  }

  .career {
    padding-top: 80px;
  }

  .career .section-heading {
    margin-bottom: 40px;
  }

  .career-list::before {
    left: 57px;
    top: 16px;
  }

  .career-list li {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
  }

  .career-list li + li {
    margin-top: 36px;
  }

  .career-list li::before {
    top: 12px;
    left: 53px;
    width: 9px;
    height: 9px;
  }

  .career-list time {
    font-size: 2rem;
  }

  .career-list p {
    line-height: 1.9;
  }

  .career-list p br {
    display: none;
  }

  .events {
    padding-top: 90px;
  }

  .events h2 {
    margin-bottom: 40px;
  }

  .events__art {
    top: 160px;
    right: -15%;
    width: 125%;
  }

  .events__cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .events__cards-side {
    display: contents;
  }

  .events__cards article {
    padding: 24px;
  }

  .events__cards article[data-event-order="1"] {
    order: 1;
  }
  .events__cards article[data-event-order="2"] {
    order: 2;
  }
  .events__cards article[data-event-order="3"] {
    order: 3;
  }
  .events__cards article[data-event-order="4"] {
    order: 4;
  }
  .events__cards article[data-event-order="5"] {
    order: 5;
  }

  .message {
    padding-top: 96px;
  }

  .message h2 {
    margin-bottom: 28px;
  }

  .message p {
    line-height: 2.2;
    overflow-wrap: anywhere;
  }

}
