:root {
  --color-base: #0d1b2e;
  --color-surface: #16273f;
  --color-text: #e8d6a0;
  --color-text-warm: #ecd48c;
  --color-accent: #e8a84f;
  --color-accent-light: #f0d9a0;

  --nav-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 18px;
  scroll-padding-top: var(--nav-height);
}

body {
  background-color: var(--color-base);
  color: var(--color-text);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-weight: 500;
  line-height: 1.8;
  text-shadow: 0 0 0.5px currentColor;
}

body.modal-open {
  overflow: hidden;
}

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

ul {
  list-style: none;
}

/* Header / Navigation */

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(13, 27, 46, 0.9);
  backdrop-filter: blur(4px);
  z-index: 100;
  border-bottom: 1px solid var(--color-surface);
}

#main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.75rem;
  padding: 1rem 1.25rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.1rem;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--color-text-warm);
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  /* widthではなくtransform（reflowを伴わない）で伸縮させる */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* Scenes */

.scene {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--nav-height) 1.5rem 4rem;
  position: relative;
}

.scene-inner {
  text-align: center;
  max-width: 720px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  color: var(--color-text-warm);
}

.hero-subtitle {
  position: relative;
  display: inline-block;
  color: var(--color-accent-light);
}

.hero-subtitle::after {
  content: "";
  position: absolute;
  /* 文字の左右、少し外側まで対称にはみ出す位置に、最初から実寸で配置しておく */
  left: -0.3em;
  right: -0.3em;
  bottom: -4px;
  height: 2px;
  /* 上の文字（.hero-subtitle）と同じ色に統一 */
  background-color: var(--color-accent-light);
  /* widthではなくtransform（GPU合成のみで済む）で左から右へ伸ばす。
     reflowを伴うwidthアニメーションは、スクロールと重なるとカクつきの原因になるため使わない */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.hero-subtitle.is-underlined::after {
  transform: scaleX(1);
}

.scene-text {
  color: var(--color-accent-light);
  font-size: 1.1rem;
}

.scene-text + .scene-text {
  margin-top: 0.75rem;
}

.intro-scenes,
.firefly-zone {
  position: relative;
}

/* Scene 1: 夜の街にたどり着く導入シーン（スクロール量に連動した固定演出） */

.scene1-pin-wrapper {
  position: relative;
  height: 8483vh; /* js/main.js の TOTAL_VH と必ず一致させる */
}

.scene1-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background-color: var(--color-base);
}

/* ナビの帯（position:fixed, z-index:100）が写真の上に重なって
   上部を隠してしまうため、写真レイヤー自体をナビの高さ分だけ
   下げて配置する（.scene1-stage自体の高さ(100vh)は変更しない） */
.scene1-photo-layer {
  position: absolute;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
  transform-origin: 50% 88%;
}

/* photo06以降はこのレイヤーには含めない＝photo05専用のズームインの影響を受けない */
.scene1-photo-layer-fixed {
  position: absolute;
  top: var(--nav-height);
  right: 0;
  bottom: 0;
  left: 0;
}

.scene1-photo {
  position: absolute;
  inset: 0;
  background-color: var(--color-base);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
}

.scene1-photo-main {
  z-index: 1;
}

.scene1-photo-main:first-child {
  opacity: 1;
}

.scene1-navy-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: var(--color-base);
  opacity: 0;
  pointer-events: none;
}

.scene1-photo-06 {
  z-index: 3;
}

.scene1-photo-07 {
  z-index: 5;
}

.scene1-photo-08 {
  z-index: 7;
}

.scene1-photo-09 {
  z-index: 9;
}

.scene1-photo-10 {
  z-index: 11;
}

.scene1-photo-11 {
  z-index: 13;
}

.scene1-photo-12 {
  z-index: 15;
  transform-origin: 50% 50%; /* 画面中央に視線を固定したままズームインするため */
}

.scene1-photo-13 {
  z-index: 17;
}

.scene1-photo-14 {
  z-index: 19;
}

.scene1-photo-15 {
  z-index: 21;
}

.scene1-photo-16 {
  z-index: 23;
}

.scene1-photo-17 {
  z-index: 25;
}

.scene1-photo-18 {
  z-index: 27;
}

.scene1-firefly {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-accent-light);
  box-shadow: 0 0 18px 6px var(--color-accent-light),
    0 0 36px 14px rgba(240, 217, 160, 0.4);
  z-index: 25;
  opacity: 0;
  pointer-events: none;
}

.scene1-firefly-caption {
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 14%;
  z-index: 25;
  display: flex;
  justify-content: flex-end;
  padding-left: 42%;
  opacity: 0;
  pointer-events: none;
}

.scene1-hero {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 1.5rem 4rem;
}

.scene1-caption {
  position: absolute;
  left: 0;
  right: 8%;
  bottom: 12%;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  padding-left: 30%;
  opacity: 0;
  pointer-events: none;
}

.scene1-caption-text {
  max-width: 32em;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 2;
  /* 単色のイエローゴールド（見出し「不思議な魔法の本屋さん」と同じ色）。
     色相が変化するグラデーション/シマーは使わず、opacityのみで現れて消える */
  color: var(--color-text-warm);
  filter: drop-shadow(0 0 10px rgba(236, 212, 140, 0.55));
}

/* Scene 1: 固定写真の上に重なる既存セクションの文字演出
   （Philosophy / Edge / Tools / Certifications 共通） */

.scene1-stage #philosophy,
.scene1-stage #edge,
.scene1-stage #tools,
.scene1-stage #certifications {
  position: absolute;
  inset: 0;
  z-index: 15;
  min-height: 0;
  border-top: none;
  background: none;
  opacity: 0;
  pointer-events: none;
}

/* Edge・Toolsは、見出し+本文のセットを見出し1行分だけ上に平行移動する
   （見出しと本文の間隔自体はそのまま。Philosophy/Certificationsは対象外） */
.scene1-stage #edge {
  transform: translateY(calc(-1 * var(--title-line-height, 0px)));
}

/* Toolsは本文の行数がEdgeと異なり、そのままだと見出しの高さがズレるため、
   Edgeの見出しの高さに揃うよう微調整を加える（見出し・本文の間隔は変えない） */
.scene1-stage #tools {
  transform: translateY(calc(-1 * var(--title-line-height, 0px) + 12.6px));
}

.scene-bookshop {
  min-height: auto;
  display: block;
  padding: 0;
}

/* Certifications: ５項目分の文章量が画面高さを超えるため、
   このセクションだけ上詰め＋本文エリアを内部スクロールにする
   （Philosophy / Edge / Toolsの中央寄せ表示は変更しない） */

.scene1-stage #certifications {
  justify-content: flex-start;
}

.scene1-stage #certifications .section-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: hidden;
  padding-top: 13rem;
  padding-bottom: 13rem;
}

/* Philosophy: スマートフォン幅ではナビの帯が2段になり縦の余白が減る一方、
   本文の行数（<br>による改行）は変わらないため、中央寄せのままだと
   タイトル・本文の上側がナビの帯に隠れてしまう。
   Certificationsと同じ考え方で上詰め＋内部スクロールにする
   （PC/タブレット幅は本文が収まっているため変更しない） */
@media (max-width: 640px) {
  .scene1-stage #philosophy {
    justify-content: flex-start;
  }

  .scene1-stage #philosophy .section-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: hidden;
  }
}

/* Content sections */

.content-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 3rem;
  border-top: 1px solid var(--color-surface);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.5rem;
  color: var(--color-accent-light);
}

/* Works見出しの特別演出：マウス操作のPCブラウザでのみ、静的な見出しを
   筆記体のロゴ（フォントの実データから抽出したパス）にフワッと
   一度だけ差し替える。
   画面幅ではなくポインタ種類で判定する（hover:hover かつ pointer:fine ＝
   実際にマウスでホバー操作できる環境）。ウィンドウ幅だけで判定すると、
   PCでもブラウザの表示領域が狭い時（アプリに埋め込まれたプレビュー
   ペインなど）に誤ってスマホ・タブレット側の表示になってしまうため。
   スマホ・タブレット（タッチ操作、pointer:coarseまたはhover:none）では、
   画面の大きさに関わらず、従来通りの静的な見出しのまま */
.works-title-fx {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .works-title-static {
    display: none;
  }

  .works-title-fx {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 12rem;
    margin-bottom: 1rem;
    position: relative;
  }

  /* 文字が現れた後、その上にふんわりと浮かぶ光の粒。
     光っていると視認できるよう、グロー(box-shadow)を付けて発光感を出し、
     粒ごとに大きさをはっきり変えることで、大小が混ざって見えるようにする。
     グローも大きさに比例させる（固定値だと小さい粒まで同じ大きさの
     光暈に埋もれ、大小の差が分かりにくくなるため）。
     アニメーションさせるのはtransformとopacityのみなので、reflowは起こさない */
  .works-title-fx-particle {
    position: absolute;
    width: var(--particle-size, 7px);
    height: var(--particle-size, 7px);
    border-radius: 50%;
    background: radial-gradient(circle, #fffdf5 0%, var(--color-accent-light) 60%, rgba(240, 217, 160, 0) 100%);
    box-shadow: 0 0 calc(var(--particle-size, 7px) * 1.1) calc(var(--particle-size, 7px) * 0.3) rgba(240, 217, 160, 0.85);
    opacity: 0;
    pointer-events: none;
    animation: works-title-sparkle ease-in-out forwards;
  }

  @keyframes works-title-sparkle {
    0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.3);
    }
    30% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    70% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    100% {
      opacity: 0;
      transform: translate(-50%, calc(-50% - 10px)) scale(0.4);
    }
  }

  .works-title-fx-svg {
    width: min(85%, 640px);
    height: auto;
    overflow: visible;
  }

  .works-title-fx-fill {
    fill: var(--color-accent-light);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .works-title-fx-fill.is-visible {
    opacity: 1;
  }
}

.section-body {
  max-width: 760px;
  width: 100%;
  text-align: center;
}

.tools-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.tool-pill {
  background-color: var(--color-surface);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Profile / Philosophy / Edge text blocks */

.profile-list {
  margin-left: 5em;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-list li {
  padding-left: 1em;
  text-indent: -1em;
}

#philosophy p.philosophy-main,
#philosophy p.philosophy-note,
#philosophy p.lang-en {
  margin-left: 5em;
}

.philosophy-main,
.philosophy-note,
.lang-en {
  text-align: left;
  margin-bottom: 1.25rem;
}

.philosophy-main:last-child,
.philosophy-note:last-child,
.lang-en:last-child {
  margin-bottom: 0;
}

.lang-en {
  font-style: italic;
  color: var(--color-accent-light);
  font-size: 1.08em;
  font-weight: 600;
}

#edge .philosophy-main,
#edge .edge-list {
  margin-left: 10em;
}

.edge-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edge-list li {
  font-size: 1.05em;
  font-weight: 600;
}

.edge-list .lang-en {
  display: inline;
  margin-bottom: 0;
}

/* Certifications */

.certifications-list {
  margin-left: 2em;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.certifications-list li {
  background-color: var(--color-surface);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}

.cert-title {
  display: block;
  color: var(--color-accent-light);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.cert-desc {
  display: block;
  font-size: 0.95rem;
}

/* Decorative bookshelf (Scene 4 backdrop) */

.decorative-bookshelf {
  min-height: 50vh;
}

/* Works見出しとその下の6作品を、間隔はそのまま上へ平行移動する
   （直前の5mmに続けて、さらに5mm＝合計10mm） */
#works .section-title,
#works .section-body {
  transform: translateY(-10mm);
}

/* Works bookshelf */

.bookshelf {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .bookshelf {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .bookshelf {
    grid-template-columns: 1fr;
  }
}

/* スマートフォン幅では、PC/iPad向けの左マージン（バランス調整用の余白）が
   相対的に大きすぎて、段落ブロック全体が右へ寄って見えるため解除する。
   各行自体の左揃え（text-align: left）はそのまま維持する */
@media (max-width: 640px) {
  .profile-list,
  #philosophy p.philosophy-main,
  #philosophy p.philosophy-note,
  #philosophy p.lang-en,
  #edge .philosophy-main,
  #edge .edge-list,
  .certifications-list {
    margin-left: 0;
  }
}

.book {
  position: relative;
  /* Website 1のリンク画像(1440x903)と同じ比率にする。画像の上端を
     枠の上端に揃えたうえで、上下の余白そのものを無くすため、
     縦に長い3:4ではなく、画像と同じ横長比率に変更している */
  aspect-ratio: 1440 / 903;
  background-color: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 12px 3px rgba(232, 168, 79, 0.6),
    0 0 30px 11px rgba(232, 168, 79, 0.5),
    inset 0 0 6px rgba(232, 168, 79, 0.4);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.book-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-align: center;
  padding: 1rem;
}

.book-label {
  font-size: 1.05rem;
  font-weight: 600;
}

/* リンク画像を持つ本：画像を敷き、ラベルは読みやすいよう下部に帯を敷いて重ねる
   （横長の画像のため、幅はカードにぴったり合わせ、高さは比率のまま自動調整する。
   　containだと左右にも余白ができてしまうため、幅100%・高さautoにすることで
   　左右の余白は無くし、上下の余白だけをサイトの基調色である濃紺で埋める） */
.book-link-has-image {
  align-items: flex-end;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--color-base);
  padding: 0;
}

/* Logo 1：正方形に近い画像のため、幅100%のままだと枠の高さを
   超えて表示されてしまう。枠自体がWebsite 1の画像と同じ比率に
   なったので、高さ100%に合わせ、幅は比率を保ったまま自動調整する
   （左右の余白は許容する） */
.book-link-fit-height {
  background-size: auto 100%;
}

.book-link-has-image .book-label {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(to top, rgba(13, 27, 46, 0.88) 0%, rgba(13, 27, 46, 0) 100%);
}

.book:hover,
.book:focus-within {
  box-shadow: 0 0 18px 5px var(--color-accent-light),
    0 0 46px 16px rgba(240, 217, 160, 0.85);
  transform: scale(1.05);
}

/* Works: 作品解説を開く紙のアイコン（本のクリック・光る演出とは独立した操作） */

.work-note {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 2;
  width: 26px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: linear-gradient(155deg, #fbf6ea 0%, #efe4c8 100%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
  transform: rotate(-9deg);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-note:hover,
.work-note:focus-visible {
  transform: rotate(-4deg) translateY(-3px) scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), 0 0 10px 2px var(--color-accent-light);
}

/* 2枚目の紙。サイズ・角度・質感は1枚目(.work-note)と共通のまま、右横に並べて配置する */
.work-note-secondary {
  left: 38px;
}

/* スマートフォンでは指でのタップになるため、紙を少し大きく・間隔を広めにして誤タップを防ぐ */
@media (max-width: 640px) {
  .work-note {
    width: 34px;
    height: 34px;
  }

  .work-note-secondary {
    left: 48px;
  }
}

/* Works: 解説モーダル */

.work-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.work-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.work-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 27, 46, 0.78);
  backdrop-filter: blur(3px);
}

.work-modal-paper {
  position: relative;
  max-width: 840px; /* 以前(560px)の1.5倍 */
  width: 100%;
  max-height: 80vh;
  padding: 2.5rem 3rem 2rem;
  background: linear-gradient(165deg, #fbf6ea 0%, #f0e4c6 100%);
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: #4a3826;
  text-align: left;
  transform: translateY(32px) scale(0.92);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
}

.work-modal.is-open .work-modal-paper {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* スマートフォンでは紙の幅自体が狭くなるため、左右の余白を詰めて本文に幅を持たせる */
@media (max-width: 640px) {
  .work-modal-paper {
    padding: 2rem 1.25rem 1.5rem;
  }
}

.work-modal-scroll {
  max-height: calc(80vh - 4.5rem);
  overflow-y: auto;
}

.work-modal-title {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #000000;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #000000;
}

.work-modal-body {
  font-size: 0.95rem;
  line-height: 1.9;
}

/* 「・」から始まる箇条書き段落：折り返し・<br>による2行目以降が、
   「・」の位置ではなく1行目の文字の開始位置に揃うよう、ぶら下げインデントにする */
.work-modal-body p.bullet-para {
  padding-left: 1em;
  text-indent: -1em;
}

.work-modal-body p {
  margin-bottom: 1rem;
}

.work-modal-body p:last-child {
  margin-bottom: 0;
}

.work-modal-body h3 {
  font-size: 1.65rem;
  margin: 1.75rem 0 0.85rem;
  font-weight: 700;
  color: #000000;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #000000;
}

.work-modal-body h3:first-child {
  margin-top: 0;
}

.work-modal-body h4 {
  font-size: 1.35rem;
  margin: 1.4rem 0 0.6rem;
  font-weight: 700;
  color: #000000;
  padding-left: 0.6rem;
  border-left: 4px solid #000000;
}

.work-modal-body ul {
  list-style: disc;
  margin: 0 0 1rem 1.5rem;
}

.work-modal-body li {
  margin-bottom: 0.5rem;
}

.work-modal-body li:last-child {
  margin-bottom: 0;
}

.work-modal-body strong {
  font-weight: 700;
}

.work-modal-body a {
  text-decoration: none;
}

.work-modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.close-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fdf9ef;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

.work-modal-close:hover,
.work-modal-close:focus-visible {
  filter: brightness(1.15);
}

/* Links */

/* タイトル+ボタンのセットを、間隔はそのままに見出し1行分だけ下へ平行移動する
   （Edge/Toolsで使っている考え方と同じで、向きだけ逆） */
#links {
  transform: translateY(var(--title-line-height, 0px));
}

.link-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-left: 1em;
}

.link-button {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.link-button::before {
  content: "";
  position: absolute;
  top: 45%;
  left: -15%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent-light);
  box-shadow: -10px 3px 6px 1px rgba(240, 217, 160, 0.8),
    -20px 6px 10px rgba(240, 217, 160, 0.35);
  opacity: 0;
  pointer-events: none;
}

.link-button:hover,
.link-button:focus-visible {
  background-color: var(--color-accent);
  color: var(--color-base);
  box-shadow: 0 0 14px 1px var(--color-accent-light);
}

.link-button:hover::before,
.link-button:focus-visible::before {
  animation: shooting-star 0.8s ease-out forwards;
}

@keyframes shooting-star {
  0% {
    left: -15%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 115%;
    opacity: 0;
  }
}

/* Footer */

#site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  background-color: var(--color-surface);
  text-align: center;
}

.footer-thanks {
  color: var(--color-accent-light);
  font-size: 1.14rem; /* 従来の0.95remの1.2倍 */
}

.footer-text {
  font-size: 1.05rem;
  font-weight: 700;
  opacity: 0.9;
}
