/* ==========================================================================
   TYPOETRY - Mobile Landing Page Stylesheet
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  --color-blue: #3A6493;
  --color-bg: #F2F2ED;
  --color-yellow-light: #DEE24C;
  --color-yellow-dark: #929A22;
  --color-gray-placeholder: #D9D9D9;
  --color-btn-border: #95AFCB;

  --font-family-base: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --- Global Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  background-color: #2b4b70; /* PC閲覧時の外側背景色 */
  color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

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

/* 2026-09-16: 連打(素早い連続タップ)がスマホブラウザに「ダブルタップ」と誤認識され、
   意図せずページが拡大されてしまう問題への対策。touch-action: manipulationは
   ダブルタップズームのジェスチャーだけを無効化し、ピンチズーム(アクセシビリティ上
   必要な操作)は無効化しない安全な指定のため、ボタン・リンク全体に一律で適用する。
   (slider-demo__rangeには元々個別に同じ指定があったが、他のボタン類には無かった) */
button,
a {
  touch-action: manipulation;
}

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

/* --- Container (Mobile Width Restriction) --- */
.page-container {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--color-blue);
  background-image: url('../images/bg_pattern.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  background-blend-mode: soft-light;
  overflow-x: clip; /* sticky追従を維持しつつ横はみ出しを防ぐ */
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

/* ポリシーページ等、可読性を優先したい画面では模様パターンを敷かない */
.page-container--plain {
  background-image: none;
}

/* --- Header --- */
.header {
  height: 44px;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  margin-bottom: -44px; /* コンテンツの上に重ねて裏側を透かす */
  background-color: transparent; /* 背景色は敷かない */
  -webkit-backdrop-filter: blur(12px); /* ヘッダー裏側のすりガラス（ぼかし）効果 */
  backdrop-filter: blur(12px);
  z-index: 100;
}

.header__logo {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 2.80px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.header__menu-btn {
  background: none;
  border: none;
  padding: 8px 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: opacity 0.2s ease;
}

.header__menu-btn:hover {
  opacity: 0.8;
}

.header__menu-icon {
  width: 26px;
  height: 14px;
  display: block;
}

/* --- Hamburger Menu Overlay --- */
.menu-overlay {
  position: fixed;
  top: 0;
  /* left/right:0 + margin-left/right:auto で中央寄せする(transform: translateX(-50%)は
     使わない)。2026-09-21以前は中に背景演出の円(mix-blend-mode使用)があり、transform
     だと新しいスタッキングコンテキストができて円の見え方が実機で崩れる問題があった
     ため、これを避けて中央寄せしていた。円自体は削除済みだが、この中央寄せ方法自体は
     変更する理由が無いためそのまま維持している。 */
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 430px;
  height: 100%;
  background-color: var(--color-blue);
  background-image: url('../images/bg_pattern.png');
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
  background-blend-mode: soft-light;
  background-attachment: local;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay__header {
  width: 100%;
  height: 44px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  flex-shrink: 0;
  background-color: transparent; /* 背景色は敷かない */
  -webkit-backdrop-filter: blur(12px); /* ヘッダー裏側のすりガラス（ぼかし）効果 */
  backdrop-filter: blur(12px);
  z-index: 10;
}

.menu-overlay__logo {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 2.80px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.menu-overlay__close {
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-overlay__download-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 40px;
}

.menu-overlay__download {
  position: relative;
  width: 100%;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu-overlay__download-heading {
  width: 100%;
  padding: 0 60px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 3.20px;
  text-align: center;
}

.menu-overlay__btn-wrap {
  width: 100%;
  padding: 24px 0;
  display: flex;
  justify-content: center;
}

.menu-overlay__btn-group {
  width: 100%;
  padding: 20px 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-overlay__btn-group:last-child {
  padding-bottom: 60px;
}

.menu-overlay__btn-label {
  width: 100%;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.56px;
}

.menu-overlay__nav {
  width: 100%;
  padding: 20px 0 40px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.menu-overlay__nav-item {
  width: 100%;
  /* 2026-09-16: 見た目上の余白(padding)はリンク側(.menu-overlay__nav .menu-overlay__nav-link)に
     移した。ボタンの枠が無くなった分、行全体がタップ範囲になるようにするため。 */
  padding: 0;
}

/* メニュー内のナビゲーションだけ(ダウンロード欄の「お試し版はこちら」は対象外)は
   14pxに。ダウンロードのボタンだけ目立たせるため、そちらは.btn--primary既定の16pxのまま。

   2026-09-16: デザイン変更により、.btn/.btn--primaryが与える「ボタンの見た目」
   (背景色・枠線・box-shadow・中央揃え)を打ち消し、左揃え・下線ありのテキストリンクに
   変更した。文字のフォント・サイズ・字間などタイポグラフィ自体は現状維持。
   ボタンの枠が無くなる分、タップ範囲が分かりにくくならないよう、paddingを
   .menu-overlay__nav-itemから移してリンク自体に持たせ、行全体(左右8%の余白まで)を
   タップ可能にしている。 */
.menu-overlay__nav .menu-overlay__nav-link {
  width: 100%;
  min-height: auto;
  padding: 18px 8%;
  justify-content: flex-start;
  text-align: left;
  background-color: transparent;
  outline: none;
  box-shadow: none;
  border-radius: 0;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.menu-overlay__nav .menu-overlay__nav-link:hover,
.menu-overlay__nav .menu-overlay__nav-link:active {
  background-color: transparent;
  box-shadow: none;
  transform: none;
}

/* ---- Home画面全体のスクロール演出 ----
   見出しや短い決め台詞は1文字ずつのタイプライター、それ以外(写真・ボタン・フォームなど)は
   ふわっとしたフェードイン。各セクションがビューポートに入ったタイミングで1回だけ再生する。
   タイプライター対象は実テキストを.reveal-type-textで包み、JSがそこだけを空にして打ち直す
   (前後のh2-dotなどの装飾要素はそのまま静止表示)。 */
.reveal-cursor {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.05em;
  animation: revealCursorBlink 0.9s steps(1) infinite;
}

@keyframes revealCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="fade"].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* タイプライター対象は、素のテキストが一度見えてから消えて打ち直される
   チラつきを防ぐため、中の.reveal-type-textをCSS側で最初から非表示にしておく。
   JSはタイプインを始める瞬間に親要素へ.is-revealedを付ける(=打ち終わりではなく
   打ち始めのタイミングで表示に切り替える)。 */
[data-reveal="type"] .reveal-type-text {
  opacity: 0;
}

[data-reveal="type"].is-revealed .reveal-type-text {
  opacity: 1;
}

/* 見出し左の黄色い丸(.h2-dot)は.reveal-type-textの外側にある装飾要素なので、
   上のルールでは隠れない。テキストと一緒にふわっと出るよう、こちらも
   タイプ開始(=is-revealed付与)と同時にフェードインさせる。 */
[data-reveal="type"] .h2-dot {
  opacity: 0;
  transition: opacity 0.4s ease;
}

[data-reveal="type"].is-revealed .h2-dot {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal="fade"] {
    transition: none;
  }
  [data-reveal="type"] .h2-dot {
    transition: none;
  }
}

/* --- Hero Section --- */
.hero {
  display: flex;
  flex-direction: column;
  position: relative;
}

.hero__text-box {
  padding: 80px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__catch {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.hero__brand {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.hero__brand-name {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.hero__brand-kana {
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 2.40px;
}

.hero__graphic-area {
  height: 400px;
  position: relative;
  overflow: hidden;
}

.hero__circle {
  width: 400px;
  height: 400px;
  position: absolute;
  left: 113.59px;
  top: 0;
  background: linear-gradient(180deg, var(--color-yellow-light) 0%, var(--color-yellow-dark) 100%);
  border-radius: 9999px;
}

/* アプリのhome画面（.home-scatter／HOME_SCATTER_ITEMS）と同じイメージ:
   黄色い円＝月の上に、月のカケラのような文字断片・記号を散りばめ、読み込み時に
   1文字ずつタイプインさせたのち、時々1つだけ小さくグリッドジャンプする。
   円は左に113.59px寄っている（＝画面右寄り）ため、散りばめる要素は円の内側を
   基本としつつ、一部だけ円の輪郭から少しはみ出す（＝月から欠片が零れているイメージ）。
   色は全要素で白（--color-bgの半透明）に統一し、GLYPH/POEMの2語だけ不透明度を
   上げて意図的なことばであることを示す。 */
.hero__scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__scatter-item {
  position: absolute;
  margin: 0;
  color: rgba(242, 242, 237, 0.6);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  transition: left 0.05s steps(1), top 0.05s steps(1);
}

.hero__scatter-item--word {
  color: rgba(242, 242, 237, 0.92);
  font-size: 12px;
}

.hero__scatter-item.is-symbol {
  display: flex;
  opacity: 0;
  transform: scale(0.5);
  transition: left 0.05s steps(1), top 0.05s steps(1), opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__scatter-item.is-symbol.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero__scatter-item .hero__scatter-cursor {
  display: inline-block;
  width: 1px;
  height: 0.9em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.05em;
  animation: heroScatterCursorBlink 0.9s steps(1) infinite;
}

@keyframes heroScatterCursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scatter-item,
  .hero__scatter-item.is-symbol {
    transition: none;
  }
}

/* --- News Section --- */
.news {
  padding: 80px 20px 0 0; /* 左端は0（画面端まで）、右は20pxの余白。2026-09-21: 上の余白を40px→80pxに拡大 */
}

.news__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news__title {
  padding-left: 20px; /* タイトル文字は左余白20px */
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* すべてのH2見出しの左に付ける、正円・黄色・直径8pxのアイコン。
   flexのalign-items:centerは見出しテキストの行box(実際のグリフより上下に
   余白を含む)を基準に中央揃えするため、そのままだと見た目のテキストに対して
   丸がわずかに上にずれて見える。position:relativeで1px下げて補正している。 */
.h2-dot {
  display: inline-block;
  position: relative;
  top: 1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-yellow-light);
  flex-shrink: 0;
}

.news__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news__item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-left: 20px; /* テキスト文字は左余白20px */
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-bg); /* 画面左端から右余白20pxまで伸びる水平線 */
}

.news__date {
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: 0.56px;
  flex-shrink: 0;
}

.news__text {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.56px;
}

/* 2026-09-21新設: noteマガジンの記事タイトルへのリンク版。.contact__privacyと同じく
   下線で「クリックできる」ことを示す(色はaタグのグローバル指定でcolor: inheritのまま)。 */
.news__text--link {
  text-decoration: underline;
}

/* --- Concept / Gallery Section --- */
.concept {
  display: flex;
  flex-direction: column;
}

.concept__catchphrase {
  padding: 80px 20px 80px 20px; /* 上下の豊かな余白 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.concept__heading {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.concept__text-box {
  padding: 0 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.concept__subtext {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.concept__title {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

/* 「偶然性を楽しむ」直下の再配置デモ写真 */
.concept__photo-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 20px 72px;
}

/* 写真そのものの実寸(=回転前のレイアウト上の箱)にぴったり合わせた入れ物。
   再配置ボタンはこの箱を基準に絶対配置するため、画面幅が変わっても
   .concept__photo-wrapperの余白に左右されず、常に写真の実際の角の近くに
   収まる(=狭い画面で写真とボタンが重なってしまう問題を避ける)。 */
.concept__photo-stack {
  position: relative;
}

.concept__photo-frame {
  padding: 2px;
  transform: rotate(5deg);
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
  border-radius: 4px;
}

.concept__photo {
  display: block;
  width: 268px;
  height: 340px;
  object-fit: cover;
  border-radius: 2px;
}

/* 写真の下、右角に少し寄せた位置に配置する（回転した写真の縁と重ならないよう
   下方向・右方向にしっかり余白を取りつつ、角の近くに感じられる距離に収める）。
   「Tap!」ヒント文字とボタンを横並びにするためのグループ。 */
.concept__rearrange-group {
  position: absolute;
  top: 100%;
  right: 2px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.concept__rearrange-hint {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-bg); /* 他の文字と同じ白系にする */
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.concept__rearrange-group.is-touched .concept__rearrange-hint {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .concept__rearrange-hint {
    transition: none;
  }
}

/* 2026-09-16: 押しやすさ向上のため37px→44pxに拡大(タップしやすい目安サイズに近づけた)。 */
.concept__rearrange-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.concept__rearrange-btn:active {
  transform: scale(0.92);
}

/* アプリ本体の再配置ボタン（.shuffle-btn／shakeBtn.svg）と同じアニメーション仕様：
   タップのたびにアイコンだけが0.5sでくるっと1回転する（バウンド感のあるcubic-bezier）。
   配置（写真）自体はアニメーションなしで即座に切り替える。 */
.rearrange-icon {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
}

.rearrange-icon svg {
  display: block;
  /* svg要素自体はHTML側にwidth/height=37の指定が残っているため、ボタン拡大に
     合わせてCSS側で100%にし、大きくなった枠いっぱいに表示されるようにする。 */
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
}

.concept__rearrange-btn.is-spinning .rearrange-icon svg {
  animation: shuffleSpin 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes shuffleSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .concept__rearrange-btn.is-spinning .rearrange-icon svg {
    animation: none;
  }
}

/* 「触れる要素」であることを伝えるヒント演出：初めて操作されるまでの間だけ、
   アイコンにもともとある黄色の星と馴染む黄色いグローをふわっと明滅させる。
   一度操作されるとJSが.is-touchedを付け、以降はそのページ滞在中ずっと止まる。
   (よりはっきり伝わるよう、2重のdrop-shadowで光を強めている) */
@keyframes hintGlowYellow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(222, 226, 76, 0)) drop-shadow(0 0 0 rgba(222, 226, 76, 0));
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(222, 226, 76, 1)) drop-shadow(0 0 12px rgba(222, 226, 76, 0.85));
  }
}

.concept__rearrange-btn:not(.is-touched) .rearrange-icon {
  animation: hintGlowYellow 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .concept__rearrange-btn .rearrange-icon {
    animation: none !important;
  }
}

/* --- Gallery Section（ページ最下部） --- */
.gallery {
  display: flex;
  flex-direction: column;
}

.gallery__catchphrase {
  padding: 80px 20px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery__heading {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.concept__gallery-wrapper {
  padding-top: 24px;
  margin-bottom: 40px;
}

.concept__gallery {
  overflow: hidden;
}

.concept__gallery-track {
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  animation: gallery-scroll 24s linear infinite;
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .concept__gallery-track {
    animation: none;
  }
}

/* feature__card-wrapper の白枠(.card--rotate-left/right)と同じ見せ方を、回転なしで1枚ずつに適用 */
.gallery-frame {
  flex-shrink: 0;
  padding: 2px;
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
  border-radius: 4px;
}

.concept__gallery-item {
  display: block;
  object-fit: cover;
  border-radius: 2px;
}

.gallery-img-1 { width: 241.34px; height: 320.30px; }
.gallery-img-2 { width: 241.57px; height: 322.09px; }
.gallery-img-3 { width: 241.57px; height: 322.09px; }
.gallery-img-4 { width: 241.57px; height: 241.57px; }
.gallery-img-5 { width: 486.59px; height: 322.09px; }

/* --- Feature Sections --- */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.feature--atmosphere .feature__text-box {
  padding: 80px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.feature__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.feature__card-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px 40px;
}

.card--rotate-left {
  padding: 2px;
  transform: rotate(-5deg);
  transform-origin: top left;
  border-radius: 4px;
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
}

.card--rotate-left img {
  width: 201.51px;
  height: 219.97px;
  border-radius: 2px;
  object-fit: cover;
}

/* Feature 1: 「ゆらぎ」ライブプレビュー・スライダー */
.slider-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* 2026-09-16: 押しやすさ向上のため、写真とスライダーのセット全体を約15%拡大
   (226x300→260x345。アスペクト比は維持)。 */
.slider-demo__frame {
  position: relative;
  width: 260px;
  height: 345px;
  padding: 2px;
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
  border-radius: 4px;
  overflow: hidden;
}

.slider-demo__photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.slider-demo__item {
  position: absolute;
  margin: 0;
  font-weight: 400;
  line-height: 1;
  color: #FFFFFF;
  transform-origin: center;
  transition: font-size 0.05s linear, width 0.05s linear, height 0.05s linear, transform 0.05s linear;
}

.slider-demo__item--word {
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 2.80px;
  white-space: nowrap;
}

.slider-demo__item--star,
.slider-demo__item--face {
  font-size: 12px;
}

.slider-demo__item--asterisk {
  font-size: 14px;
}

.slider-demo__item--circle {
  display: block;
  width: 9px;
  height: 9px;
  border: 0.7px solid #FFFFFF;
  border-radius: 50%;
  background: transparent;
}

.slider-demo__controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 260px;
}

.slider-demo__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.slider-demo__hint {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.56px;
}

.slider-demo__value-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-demo__value {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.56px;
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
  text-align: right;
}

.slider-demo__reset-btn {
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  color: inherit;
  cursor: pointer;
  line-height: 1;
}

.slider-demo__reset-icon {
  display: inline-block;
  font-size: 13px;
  line-height: 13px;
  transform: rotate(0deg);
}

.slider-demo__reset-btn.is-spinning .slider-demo__reset-icon {
  animation: sliderDemoSpin 0.3s ease-out;
}

@keyframes sliderDemoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .slider-demo__reset-btn.is-spinning .slider-demo__reset-icon {
    animation: none;
  }
}

/* つまみが実際に止まるmin/max位置に合わせたドット描画は、app/index-dev.htmlの
   renderSliderDots()と同じ仕組みをJS側で再現している。SLIDER_THUMB_PXの12pxは
   下の::-webkit-slider-thumb / ::-moz-range-thumbの幅と一致させること。 */
.slider-demo__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: center center;
  outline: none;
  display: block;
  cursor: pointer;
  /* ダブルタップでのリセット操作が、モバイルブラウザの「ダブルタップでズーム」
     ジェスチャーと衝突しないようにする */
  touch-action: manipulation;
  /* iOS Safariのデフォルトのタップハイライト(操作中につまみの下に出る青い矩形)を消す。
     見た目はネイティブのつまみではなく#sliderThumbHint(重ね要素)のみで担当しているため、
     この既定ハイライトは不要かつ見た目を壊すノイズになる。inputだけでなく、
     ::-webkit-slider-thumb疑似要素側にも同じ指定が必要だったため、下でも重ねて指定している。
     また、-webkit-appearance: noneだけでは消えないaccent-color由来の既定の青も
     transparentで明示的に打ち消す。 */
  -webkit-tap-highlight-color: transparent;
  accent-color: transparent;
}

.slider-demo__range::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  background: transparent;
}

/* ネイティブのつまみ自体はドラッグの当たり判定だけを持たせ、見た目は透明にする。
   実際に見える黄色い正方形は#sliderThumbHint(下で定義する重ね要素)のみが担当する。
   ブラウザによってネイティブのつまみの実寸・表示がこちらの指定通りにならない
   ことがあり、両方を重ねて表示すると縦長に見えてしまう不具合があった(検証済み)
   ため、見た目は常に重ね要素1つだけに一本化している。 */
/* 2026-09-16: 押しやすさ向上のため12px→14pxに拡大(JS側のSLIDER_THUMB_PXも
   合わせて変更すること)。 */
.slider-demo__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: 0; /* トラック(input全体の縦中央)に自然に揃える。以前-5pxにしていたため
                    見た目の四角が少し上にずれていた */
  background: transparent;
  box-shadow: none;
  outline: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.slider-demo__range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.slider-demo__range::-moz-range-track {
  height: 2px;
  background: transparent;
}

/* つまみの位置に追従する重ね要素。見た目上の「つまみ」はこの正方形1つだけが
   担当し(ネイティブのつまみ自体は上で透明にしている)、box-shadow/filterが
   ::-webkit-slider-thumb / ::-moz-range-thumb疑似要素の上では描画されない
   ブラウザ環境があった(検証済み)ことへの対策も兼ねる。再配置ボタンと全く同じ
   hintGlowYellowで光らせる。位置(left)はJS側のupdateThumbHint()が
   transform: translateX()で更新する。 */
.slider-demo__range-wrap {
  position: relative;
}

.slider-demo__thumb-hint {
  position: absolute;
  top: 9px; /* input(高さ32px)の縦中央に正方形(14px)の中心を合わせる: (32-14)/2 */
  left: 0;
  width: 14px;
  height: 14px;
  background: var(--color-yellow-light);
  border-radius: 0;
  pointer-events: none;
  animation: hintGlowYellow 1.8s ease-in-out infinite;
}

.slider-demo__thumb-hint.is-touched {
  animation: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .slider-demo__thumb-hint {
    animation: none !important;
  }
}

.feature--elements .feature__text-box {
  padding: 80px 80px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* Feature 2の締めの言葉(「夜空のような一枚を」)。以前はCTAセクションに
   入っていたが、内容としては「記号や画像の配置」セクションの結びなので
   こちらに移設した。「記号や画像」(左80px)よりもさらに内側(左30px)に
   入れて、見出しよりやや左に来るようにしている。上の余白は詰め、
   下の余白を広めに取っている。 */
.feature__closing-text {
  padding: 8px 20px 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.text--right {
  text-align: right;
}

.card--rotate-right {
  padding: 2px;
  transform: rotate(4deg);
  transform-origin: top left;
  border-radius: 4px;
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
}

.card--rotate-right img {
  width: 199.50px;
  height: 333.38px;
  border-radius: 2px;
  object-fit: cover;
}

/* スクリーンリーダーのみに読ませ、画面上には表示しない(要素数の現在値など)。 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Feature 2: 「記号や写真」体験デモ -- ボタンで、ベース写真の上に散りばめる写真・記号の
   数を増減できる。フレームのサイズはslider-demoと揃え、2つの体験デモが同じ見た目の器を
   共有するようにしている。散りばめた写真は個々にバラバラの角度を付けず、土台の写真も
   含めてフレームごと一律1.98°傾ける(card--rotate-right等、他のカードと同じ「1枚の
   台紙ごと傾ける」考え方)。 */
.elements-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.elements-demo__frame {
  position: relative;
  width: 226px;
  height: 300px;
  padding: 2px;
  outline: 1px solid var(--color-bg);
  outline-offset: -1px;
  border-radius: 4px;
  overflow: hidden;
  transform: rotate(1.98deg);
}

.elements-demo__photo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

/* 散りばめた写真・記号: 枠(border)を付けず、個々に回転もさせない。フレーム自体の
   回転(上のtransform:rotate)にそのまま従うので、土台の写真と全く同じ傾きになる。
   初期状態はopacity:0・縮小しており、.is-visibleが付くとポップインする。 */
.elements-demo__item {
  position: absolute;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.4);
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.elements-demo__item--photo {
  display: block;
  object-fit: cover;
}

/* 記号(アスタリスク／星／丸／四角)は共通で8px・細め。丸と四角は塗りつぶさず
   0.6px線のみの「線タイプ」にして、Feature 1のslider-demo__item--circleと
   同じ考え方で統一している。 */
.elements-demo__item--asterisk,
.elements-demo__item--star {
  font-size: 8px;
  line-height: 1;
  font-weight: 300;
  color: var(--color-bg);
}

.elements-demo__item--circle,
.elements-demo__item--square {
  display: block;
  width: 8px;
  height: 8px;
  border: 0.6px solid var(--color-bg);
  background: transparent;
}

.elements-demo__item--circle {
  border-radius: 50%;
}

.elements-demo__item.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .elements-demo__item {
    transition: none;
  }
}

.elements-demo__controls {
  display: flex;
  justify-content: center;
}

.elements-demo__stepper {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ボタンの押下アニメーションはapp/index-dev.htmlの「打鍵ミニ版」(.stamp-stepper-btn /
   bindStrikePress()、ANIMATION_HANDOFF.md 2026-08-21)と同じ動き・タイミングを再現。
   構成もアプリの「«（-10）－（-1）＋（+1）»（+10）」の4つ組をそのまま採用し、
   ボタンをアプリと統一している。主ボタン(－/＋)はpointerdownで即座に沈み込み+
   濃い色に(0.03s linear)、離すと軽くオーバーシュートして戻る(0.13s cubic-bezier)。
   副ボタン(«/»)は一回り小さく、薄い色でより控えめな沈み込みにしてある。
   色だけアプリの--ink-pressedではなく、LP側のアクセント色
   （スライダーのつまみと同じvar(--color-yellow-light)）に置き換えている。 */
/* 2026-09-16: 押しやすさ向上のため主ボタン28px→34px、副(«/»)ボタン24px→30pxに拡大。 */
.elements-demo__stepper-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--color-btn-border);
  color: var(--color-bg);
  font-size: 17px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.elements-demo__stepper-btn--bulk-minus,
.elements-demo__stepper-btn--bulk-plus {
  width: 30px;
  height: 30px;
  border-color: rgba(149, 175, 203, 0.5); /* --color-btn-border(#95AFCB)の50% */
  color: rgba(242, 242, 237, 0.7);
  font-size: 13px;
}

/* 「«」「»」のグリフはフォントの見た目の重心の関係で、枠の中央に対して
   気持ち下に見えるため、枠(ボタン本体)は動かさずグリフだけ1px上げる。 */
.elements-demo__stepper-glyph {
  position: relative;
  top: -1px;
}

.elements-demo__stepper-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@keyframes elementsStepperStrikeDown {
  from { transform: translateY(0); border-color: var(--color-btn-border); color: var(--color-bg); }
  to { transform: translateY(1.5px); border-color: var(--color-yellow-light); color: var(--color-yellow-light); }
}

@keyframes elementsStepperStrikeUp {
  0% { transform: translateY(1.5px); border-color: var(--color-yellow-light); color: var(--color-yellow-light); }
  55% { transform: translateY(-0.8px); border-color: var(--color-btn-border); color: var(--color-bg); }
  100% { transform: translateY(0); border-color: var(--color-btn-border); color: var(--color-bg); }
}

.elements-demo__stepper-btn.anim-down { animation: elementsStepperStrikeDown 0.03s linear forwards; }
.elements-demo__stepper-btn.anim-up { animation: elementsStepperStrikeUp 0.13s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
.elements-demo__stepper-btn.rm-pressed { border-color: var(--color-yellow-light); color: var(--color-yellow-light); }

@keyframes elementsStepperBulkStrikeDown {
  from { transform: translateY(0); border-color: rgba(149, 175, 203, 0.5); color: rgba(242, 242, 237, 0.7); }
  to { transform: translateY(1px); border-color: var(--color-yellow-light); color: var(--color-yellow-light); }
}

@keyframes elementsStepperBulkStrikeUp {
  0% { transform: translateY(1px); border-color: var(--color-yellow-light); color: var(--color-yellow-light); }
  55% { transform: translateY(-0.5px); border-color: rgba(149, 175, 203, 0.5); color: rgba(242, 242, 237, 0.7); }
  100% { transform: translateY(0); border-color: rgba(149, 175, 203, 0.5); color: rgba(242, 242, 237, 0.7); }
}

.elements-demo__stepper-btn--bulk-minus.anim-down,
.elements-demo__stepper-btn--bulk-plus.anim-down { animation: elementsStepperBulkStrikeDown 0.03s linear forwards; }
.elements-demo__stepper-btn--bulk-minus.anim-up,
.elements-demo__stepper-btn--bulk-plus.anim-up { animation: elementsStepperBulkStrikeUp 0.13s cubic-bezier(0.3, 0.7, 0.4, 1) forwards; }
.elements-demo__stepper-btn--bulk-minus.rm-pressed,
.elements-demo__stepper-btn--bulk-plus.rm-pressed { border-color: var(--color-yellow-light); color: var(--color-yellow-light); }

/* 「触れる要素」であることを伝えるヒント演出。このボタンは白/クリームの縁取り
   なので、押した時の黄色とは別に、自分の色(白系)でふわっと光らせて馴染ませる。
   再配置ボタン(hintGlowYellow)と全く同じ仕組み・強さのdrop-shadowにして、
   光り方そのものを統一している(色だけ白系)。押下アニメーション
   (transform/border-color/colorを使う)とはfilterで分離しているので競合しない。
   4つのボタンのうちどれか1つでも操作されると、JSが4つまとめて.is-touchedを付けて止める。 */
@keyframes hintGlowWhite {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(242, 242, 237, 0)) drop-shadow(0 0 0 rgba(242, 242, 237, 0));
  }
  50% {
    filter: drop-shadow(0 0 5px rgba(242, 242, 237, 1)) drop-shadow(0 0 12px rgba(242, 242, 237, 0.85));
  }
}

.elements-demo__stepper-btn:not(.is-touched):not(:disabled) {
  animation: hintGlowWhite 1.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .elements-demo__stepper-btn {
    animation: none !important;
  }
}

/* --- CTA Section --- */
.cta {
  display: flex;
  flex-direction: column;
}

.cta__text-box {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cta__heading {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.cta__circle-wrapper {
  position: relative;
  /* 2026-09-21: 背景の装飾円(.cta__circle)はひなさん指示により削除。以前はこの円の
     下端(600px、top:-15.5px→自然な下端584.5px)が次のセクションに被らないよう
     paddingで縦幅を広げていたが、円自体が無くなったため、他のセクションと同程度の
     余白に戻した。 */
  padding-bottom: 40px;
}

.cta__catchphrase {
  position: relative;
  padding: 60px 20px 30px 20px; /* 「What’s TYPOETRY?」と同じゆったりとした余白感 */
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta__subtitle {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta__button-group {
  position: relative; /* 背景の.cta__circleより手前に描画されるようにするため */
  padding: 20px 8%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.56px;
}

/* 2026-09-21: App Store配信開始に伴い、トップページ上のCTA(ダウンロード導線)を
   「App Storeのみ」の黒いボタンへ変更。位置②(既存のこのセクション、円形)用の
   ラッパー。位置①③(メインビジュアル下・Gallery下)は.download-cta参照。 */
.cta__button-wrap {
  position: relative; /* 背景の.cta__circleより手前に描画されるため */
  display: flex;
  justify-content: center;
  padding-top: 0; /* 2026-09-21: 「Download Now :)」とボタンの間を詰めるため24px→0に変更 */
}

/* --- Download CTA(位置①③: メインビジュアル下・Gallery下、長方形ボタン) --- */
.download-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 16px;
}

/* 2026-09-21: 位置③(CONTACTの下)のみ、「Download Now :)」の上の余白をもう少し
   広げたい、というひなさん指示への対応。位置①(メインビジュアル下)は変更しない
   ため、共通の.download-ctaとは別にこのモディファイアで上余白だけ上書きする。 */
.download-cta--bottom {
  padding-top: 100px;
}

.download-cta__catchphrase {
  display: flex;
  justify-content: center;
}

.download-cta__button-wrap {
  display: flex;
  justify-content: center;
}

/* --- Store Button(App Storeへのリンクボタン。黒背景、長方形/円形の2種) --- */
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #010102;
  box-shadow: 0px 4px 4px var(--color-blue);
  outline: 1px solid var(--color-btn-border);
  outline-offset: -1px;
  color: var(--color-bg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.store-btn:hover {
  background-color: #1a1a1c;
}

.store-btn:active {
  transform: translateY(1px);
  box-shadow: 0px 2px 2px var(--color-blue);
}

.store-btn__name {
  font-size: 22px;
  font-weight: 500;
  line-height: 33px;
}

.store-btn__sub {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  letter-spacing: 0.56px;
}

.store-btn--rect {
  width: 280px;
  max-width: 100%;
  height: 56px;
  padding: 14px 16px;
  gap: 4px;
}

/* 2026-09-21: 「からダウンロード」に対して「App Store」が下にずれて見える、
   というひなさん指摘への対応。フォントサイズが違う2つのテキストをalign-items:
   centerで並べると、字形の重心の違いにより「App Store」側が視覚的に少し
   下がって見えるため、上に少しだけ持ち上げて補正する。 */
.store-btn--rect .store-btn__name {
  position: relative;
  top: -2px;
}

/* 2026-09-21: 「〜からダウンロード」の右に、外部(ストア)へ遷移することを示す
   矢印アイコン(link_arrow.svg)を追加。長方形・円形どちらのボタンにも付ける。 */
.store-btn__icon {
  flex-shrink: 0;
  margin-left: 2px;
  position: relative;
  top: 2px; /* 2026-09-21: テキストに対して少し上に見えたため、わずかに下げて補正 */
}

/* 円形ボタンは縦積み(flex-direction: column)のため、「からダウンロード」と
   アイコンだけを横並びにする内側のラッパー。 */
.store-btn__sub-row {
  display: inline-flex;
  align-items: center;
}

.store-btn--circle {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  flex-direction: column;
  gap: 2px;
}

.store-btn--circle .store-btn__name {
  font-size: 28px;
  line-height: 42px;
  /* 2026-09-21: 円の上側の余白が広く見える、というひなさん指摘への対応。
     縦積みの先頭要素にmargin-topを付けることで、中央揃えされる
     テキストブロック全体を少し上にずらしている。 */
  margin-top: -6px;
  /* 2026-09-21: 「App」と「Store」の間の空きが広く見える、というひなさん指摘への
     対応。word-spacingは文中の空白文字だけを狭める指定のため、他の字間
     (letter-spacing)には影響を与えず、この1箇所の空白だけを詰められる。 */
  word-spacing: -3px;
}

.store-btn--circle .store-btn__sub {
  font-weight: 400;
}

.btn {
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: 1px solid var(--color-btn-border);
  outline-offset: -1px;
  text-align: center;
  overflow-wrap: break-word; /* 幅の狭い画面でも長いラベル(SNSのユーザー名等)がはみ出さないよう保険 */
}

.btn--disabled {
  opacity: 0.50;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  cursor: not-allowed;
}

.btn--primary {
  background-color: var(--color-blue);
  box-shadow: 0px 4px 4px rgba(58, 100, 147, 0.9);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  cursor: pointer;
}

.btn--primary:hover {
  background-color: #4371a5;
  box-shadow: 0px 6px 8px rgba(58, 100, 147, 1);
}

.btn--primary:active {
  transform: translateY(1px);
  box-shadow: 0px 2px 2px rgba(58, 100, 147, 0.8);
}

/* 「お試し版はこちら」だけに付ける、枠線をなぞるように黄色い光が一周する
   「きらり」演出。conic-gradientをmask(content-box / border-boxの2枚をexclude
   合成)で縁だけの細いリング状に切り抜いている。
   注1: 「ボタンと同じ色の板をcontent-boxに重ねる」方式(background-clip)を
   最初に試したが、この重ねる板がボタン本体の文字より前面に描画され、
   文字が消えてしまう不具合があった(検証済み)。maskは重なった部分を
   完全に透明にするだけで「不透明な板を上に描く」わけではないため、
   文字を隠すおそれがなく、より安全なこちらの方式にしている。
   注2: 当初はtransform: rotate()でこの疑似要素ごと回転させていたが、ボタンが
   正方形ではない(横長の)長方形のため、要素ごと回転すると縁のリングの形も
   一緒に傾いてしまい、ボタン本体の輪郭とずれてしまう不具合があった(検証済み)。
   そのため要素自体は回転させず、@propertyで定義した角度カスタムプロパティ
   (--trace-angle)だけをアニメーションさせてconic-gradientのfrom角度を
   直接動かし、リングの形はボタンの輪郭に常にぴったり合わせたまま、光の粒だけが
   輪郭に沿って流れるようにしている。
   タイミングは「シュン、、、シュン、、、」という一定間隔のリズムになるよう、
   全体の周期のうち最初の約20%だけで素早く一周させたあとすぐにフェードアウトし、
   残りの間は完全に消えて静止(=間)している(角度を止めるだけでは、その位置に
   光が留まったまま消えないため、opacityも合わせてアニメーションさせている)。 */
@property --trace-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.btn--border-trace {
  position: relative;
}

.btn--border-trace::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: conic-gradient(
    from var(--trace-angle),
    transparent 0deg,
    transparent 250deg,
    rgba(222, 226, 76, 0.9) 295deg,
    rgba(251, 246, 201, 1) 315deg,
    rgba(222, 226, 76, 0.9) 335deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: btnBorderTraceSpin 2.4s linear infinite;
}

@keyframes btnBorderTraceSpin {
  0%   { --trace-angle: 0deg;   opacity: 1; animation-timing-function: ease-out; }
  20%  { --trace-angle: 360deg; opacity: 1; animation-timing-function: linear; }
  26%  { --trace-angle: 360deg; opacity: 0; }
  100% { --trace-angle: 360deg; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .btn--border-trace::before {
    animation: none;
    display: none;
  }
}

/* --- Contact Section --- */
.contact {
  padding: 80px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.contact__form-wrapper {
  width: 100%;
  height: 600px; /* コンパクトスクロールスタイル */
  background-color: #95AFCB;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact__form {
  width: 100%;
  height: 100%; /* 枠内で自然にスクロールできるようにする */
  border: none;
  display: block;
}

.contact__privacy {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 2.80px;
  text-decoration: underline;
  display: block;
}

/* 2026-09-15: 「Privacy Policy」は英字見出し的に広めの字間のまま維持し、
   「利用規約」「よくあるご質問」の日本語2つだけ字間を通常(0)に戻す
   (ひなさん指定: 印象的に見せたい英語・見出しは広め、それ以外は通常)。 */
.contact__privacy--jp {
  letter-spacing: normal;
}

/* Privacy Policy／利用規約／サポートの3つを横並びで表示（2026-09-15新設） */
.contact__legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 4px;
}

/* 2026-09-15: 「Privacy Policy」を1行目、「利用規約」「よくあるご質問」を2行目に
   固定するための強制改行(ひなさん指定)。幅に依存せず常にこの2行構成になるよう、
   flex-basis:100%の空要素でラップさせる手法。 */
.contact__legal-break {
  flex-basis: 100%;
  height: 0;
}

/* --- Creator Section --- */
.creator {
  display: flex;
  flex-direction: column;
}

.creator__header {
  padding: 80px 20px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.creator__title {
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 3.20px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.creator__profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 4px; /* アイコンとSNSの間隔を近づける */
}

.creator__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #e0e0e0;
}

.creator__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.creator__roles {
  display: flex;
  align-items: center;
  gap: 4px;
}

.creator__role {
  font-size: 12px;
  font-weight: 300;
  line-height: 18px;
  letter-spacing: 0.48px;
}

.creator__slash {
  font-size: 10px;
  font-weight: 300;
  line-height: 15px;
  letter-spacing: 0.40px;
}

.creator__name {
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: 0.64px;
}

.creator__sns-group {
  padding: 10px 8% 14px 8%; /* 上下の余白をコンパクトに調整、左右は他のボタン群と揃えてビューポート幅に応じて可変 */
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.creator__sns-label {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.56px;
}

.btn--sns {
  background-color: var(--color-blue);
  box-shadow: 0px 4px 4px rgba(58, 100, 147, 0.9);
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 1.00px; /* @__colorfuldecoration__ のような長いユーザー名でも幅320pxではみ出さないよう字間を詰める */
  cursor: pointer;
}

.btn--sns:hover {
  background-color: #4371a5;
  box-shadow: 0px 6px 8px rgba(58, 100, 147, 1);
}

/* --- Footer --- */
.footer {
  padding: 80px 20px 30px 20px;
  display: flex;
  flex-direction: column;
}

.footer__copy {
  text-align: center;
  font-size: 14px;
  font-weight: 300;
  line-height: 21px;
  letter-spacing: 0.56px;
}

/* --- Privacy Policy Page --- */
.policy__hero {
  width: 100%;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
}

.policy__title {
  width: 100%;
  padding: 0 60px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 3.20px;
  text-align: center;
}

.policy__body {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.policy__intro,
.policy__text {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

.policy__section-title {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.policy__section-title--tight {
  padding-top: 24px;
}

/* 2026-09-15: よくあるご質問ページのカテゴリ見出し(使い方について/プライバシー・
   データについて)を1段階太く。DESIGN_RULES.mdの通常ウェイト(400)から
   1段上のmedium(500)へ。 */
.policy__section-title--strong {
  font-weight: 500;
}

.policy__date {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 24px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
}

.policy__list {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

/* 2026-09-15: OSブラウザ標準の「・」マーカー(list-style:disc)は、outside配置時の
   インデント幅がブラウザ実装依存(特にSafari)で、1行目(ラベル)と<br>移行の折り返し本文の
   開始位置がズレて見える不具合があったため、疑似要素での絶対配置マーカーに変更。
   li自体のpadding-leftで全行(1行目・折り返し行とも)の開始位置を統一し、
   マーカーはposition:absoluteで文章のボックスの外に置くことで、行の折り返し方に
   一切影響を与えない構成にした。 */
.policy__list li {
  position: relative;
  list-style: none;
  padding-left: 14px;
}

.policy__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.policy__list-label {
  font-weight: 400;
}

/* --- Support / FAQ Page（2026-09-15新設。Privacy Policyページの.policy__*一式を
   そのまま踏襲し、質問・回答の対だけ.faq__*として追加）--- */
.faq__item {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding-top: 16px;
}

/* 2026-09-15: カテゴリ見出し直後の最初の質問だけ、見出しとの間隔が
   (.policy__bodyのflex gap 16px + このpadding-top 16px =)32pxと広すぎたため、
   見出し直後のfaq__itemに限り0にし、他のセクションの「見出し→本文」と
   同じ16px(flex gapのみ)に揃えた。質問同士の間隔(32px)は変更なし。 */
.policy__section-title + .faq__item {
  padding-top: 0;
}

.faq__q {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}

.faq__a {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  padding-top: 4px;
}

/* 2026-10-06: FAQ内のリンク(プライバシーポリシー/お問い合わせフォーム)は、グローバルの`a`が
   下線なし・本文と同色のため、リンクだと気づけなかった。下線だけで示す(色は変えない)。
   .faq__item内に限定しているので、他ページ(privacy/terms等)のリンクの見た目は変わらない。 */
.faq__item a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
