/* ============================================================
   ちわわのこむぎ / スタイル
   色や余白を変えたいときは、まず下の :root を書き換えてください
   ============================================================ */

:root {
  /* 明るい配色で固定する。端末がダークモードでも暗くならないよう、
     色の前提をブラウザに伝えて自動暗転（Auto Dark Theme）も抑止する */
  color-scheme: light;

  /* 背景 */
  --bg: #fff6fa;          /* ページ全体のうすいピンク */
  --bg-deep: #ffe9f2;     /* ヒーローなど少し濃いピンク */
  --card: #ffffff;

  /* 文字 */
  --text: #6b4a52;        /* やわらかい茶系 */
  /* 小さい文字にも使うので、うすい背景の上でも読める濃さにしてある
     （これより薄くすると、説明文やフッターの字が読みにくくなる） */
  --text-sub: #8a6873;
  --text-deep: #7d3f56;   /* 見出し用の濃いピンク茶 */
  --brown: #5c4238;       /* ヒーローの見出し用の茶色 */

  /* アクセント */
  --pink: #f79ebd;
  --pink-strong: #f4779f;
  --pink-deep: #e8608e;
  --pink-line: #ffd9e7;
  --purple: #c3b3ec;
  --purple-strong: #a690e0;
  --blue: #9ad4f0;
  --blue-strong: #6fbfe4;
  --gold: #f0cf82;
  --gold-strong: #dfb254;
  --gold-text: #c49a4e;
  --yt: #ff0033;

  /* 書体
     --font-display … 見出し・ロゴ・ボタン用の「にくまるフォント」
                       （assets/fonts/nikumaru.css で読み込み。未取得でも下の
                         M PLUS Rounded 1c に自動で切り替わります）
     --font-body    … 本文用 */
  --font-display: "07NikumaruFont", "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;

  --radius: 22px;
  --shadow: 0 8px 24px rgba(226, 150, 178, .18);
  --shadow-soft: 0 4px 14px rgba(226, 150, 178, .14);
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* 見出し・ロゴ・ナビ・ボタンなど「読ませる」より「見せる」文字は
   にくまるフォントで表示する */
.brand-ja,
.brand-en,
.nav-item,
.lang-opt,
.hero-catch,
.hero-title,
.hero-en,
.hero-lead,
.card-head,
.pill,
.profile-title,
.profile-list dt,
.balloon,
.contact-title,
.footer-brand,
.footer-nav a,
.notfound-code,
.notfound h1 {
  font-family: var(--font-display);
  /* にくまるフォントは1ウェイトしかないので、ブラウザによる擬似ボールドを止める
     （代替の M PLUS Rounded 1c には本物の太字があるのでそちらは太くなる） */
  font-synthesis: none;
}

a { color: inherit; }

/* キーボードの Tab キーで移動したとき、いまどこを選んでいるかを分かるようにする。
   :focus ではなく :focus-visible を使っているので、
   マウスでクリックしたときには表示されない（見た目はこれまでどおり）。 */
:focus-visible {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

img { max-width: 100%; }

/* アイコンのスプライト本体は画面に出さない */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* インラインSVGは既定サイズが大きいので、必ず寸法を指定する */
svg { width: 1em; height: 1em; }

.inline-heart {
  width: .95em;
  height: .95em;
  color: var(--pink-strong);
  vertical-align: -.12em;
  margin-left: .1em;
}

/* ============================================================
   ヘッダー
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(14px, 3vw, 32px);
  background: rgba(255, 252, 253, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pink-line);
  /* iPhoneの横向き表示では、ノッチ（またはDynamic Island）側の
     セーフエリアにナビが隠れてしまうことがある。env(safe-area-inset-*) は
     viewport-fit=cover を指定したときだけ実際の値を返す（それ以外は常に0）。
     max() を使うことで、ノッチが無い端末・PCでは env() が 0 になり
     元の clamp() の値がそのまま下限として残る＝見た目は変わらない。 */
  padding-left: max(clamp(14px, 3vw, 32px), env(safe-area-inset-left));
  padding-right: max(clamp(14px, 3vw, 32px), env(safe-area-inset-right));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-paws { display: inline-flex; gap: 3px; align-items: flex-end; }
.brand-paws-right { transform: scaleX(-1); }
.brand-paw { width: 16px; height: 16px; }
.brand-paw-a { color: var(--pink); transform: rotate(-18deg); }
.brand-paw-b { color: var(--purple); width: 12px; height: 12px; transform: rotate(12deg); }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }

.brand-ja {
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .06em;
}

.brand-en {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-sub);
}

/* ---- グローバルナビ ---- */
.site-nav {
  display: flex;
  align-items: flex-end;
  gap: clamp(10px, 1.8vw, 26px);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.site-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-sub);
  padding: 4px 2px 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, transform .15s ease;
}

.nav-item:hover { color: var(--pink-deep); transform: translateY(-2px); }
.nav-item.is-current { color: var(--text-deep); border-bottom-color: var(--pink); }

.nav-icon { width: 22px; height: 22px; }
.nav-icon-home { color: var(--pink); }
.nav-icon-profile { color: var(--purple); }
.nav-icon-yt { color: var(--yt); }
.nav-icon-ig { color: #d6249f; }
.nav-icon-star { color: var(--blue-strong); }
.nav-icon-goods { color: #b9c7ef; }
.nav-icon-mail { color: var(--gold); }

/* ---- スマホ用のメニューボタン（ハンバーガー） ----
   901px以上では出さない。下の @media の中だけで表示に切り替えている。 */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-deep);
  cursor: pointer;
  flex: 0 0 auto;
}

.nav-toggle-icon { width: 24px; height: 24px; }

/* ---- 右側まとめ（言語切替＋ハンバーガー＋ナビ） ----
   .site-header はもともと sticky（＝位置指定あり）なので、.site-nav の
   position: absolute はこの div を挟んでもそのまま .site-header 基準になる。
   そのため .header-actions 自体には position を付けていない。 */
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 18px);
}

/* PC幅では「ナビ→EN」の見た目にしたいので order で入れ替える。
   HTML内の並び（EN→ハンバーガー→ナビ）はスマホ時の見た目を優先している。 */
.lang-toggle { order: 1; }

/* ---- 言語切替（JA / EN） ----
   ピル型の入れ物（.lang-toggle）の中に、いま見ている言語（span、
   リンクにしない）と切り替え先の言語（a.lang-switch）を並べる。
   並びはどのページでも JA → EN で固定。 */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  background: #fff;
  border: 1.5px solid var(--pink-line);
  border-radius: 999px;
}

.lang-toggle-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: var(--text-sub);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-sub);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, opacity .15s ease,
              scale .35s cubic-bezier(.34, 1.56, .64, 1);
}

/* いま見ている言語（span）。塗りはうすいピンクのグラデーション、
   文字は白ではなく --text-deep にしてコントラストを確保する */
.lang-opt.is-current {
  background: linear-gradient(135deg, #fff0f6, var(--pink-line));
  color: var(--text-deep);
}

/* 文字色は --text-deep のまま濃く保つ（--pink-deep だとうすいピンクの上で
   コントラストが 3:1 を切ってしまい、変更前より読みにくくなる） */
a.lang-opt:hover {
  background: #ffeaf3;
  color: var(--text-deep);
}

/* 切替リンクにマウスが乗っている間、いま見ている言語のピルを少し薄くして
   「押せるのはこっち」という手がかりを添える */
.lang-toggle:has(a.lang-opt:hover) .is-current {
  opacity: .55;
}

@media (max-width: 900px) {
  /* ブランドとメニューボタンは常に1段のまま（ナビをここでは折り返させない）。
     ナビはヘッダーの外に浮かせるので、開いてもヘッダーの高さは変わらない。 */
  .site-header { flex-wrap: nowrap; gap: 6px; }

  .nav-toggle { display: inline-flex; }

  /* スマホでは言語切替をハンバーガーの左に戻す（PC用の order をリセット） */
  .lang-toggle { order: 0; }

  /* 全幅で下に伸ばすと、ヘッダーが高くなった分だけヒーロー写真（こむぎの顔）が
     下に押し出されて見えなくなってしまう。position: absolute でヘッダーの外に
     浮かせるカード状のドロップダウンにして、ページ本体の高さに影響させない。
     閉じているあいだは高さ0につぶして隠す（display:none にしないのは
     開閉にアニメーションをつけるため。display の変化はトランジションが
     効かないので、max-height / opacity で出し入れする）。
     901px以上ではこの @media 自体が効かないので、必ず元の横並びに戻る。 */
  .site-nav {
    position: absolute;
    top: 100%;
    right: clamp(14px, 3vw, 32px);
    margin-top: 6px;
    width: min(220px, calc(100vw - 28px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding: 0;
    border-radius: 16px;
    background: rgba(255, 252, 253, .98);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
    visibility: hidden;
    transition: max-height .28s ease, opacity .2s ease, visibility 0s linear .28s;
  }

  /* 閉じている間はリンクをキーボードフォーカス不可にする（見えないメニューに
     Tab移動できてしまうのを防ぐ）。visibility を閉じアニメーションの終わりまで
     遅らせているのは、開閉の見た目を変えないため。 */
  .nav-toggle[aria-expanded="true"] + .site-nav {
    /* 実際の項目5個分の高さ（約230px）に対して大きすぎる値にすると、
       閉じるときに「見た目が変わらない区間」が長くなり、最後に一瞬で
       つぶれたように見えてしまう。実寸に近い値にしてアニメーションが
       最初から最後まで見えるようにする。 */
    max-height: 280px;
    opacity: 1;
    padding: 6px 8px;
    visibility: visible;
    transition: max-height .28s ease, opacity .2s ease, visibility 0s linear;
  }

  .nav-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    font-size: .72rem;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
  }

  .nav-item:last-child { border-bottom-color: transparent; }
  .nav-icon { width: 20px; height: 20px; }
}

@media (max-width: 420px) {
  /* 360px幅でもブランド＋言語切替＋ハンバーガーが1段に収まるよう、
     地球儀アイコンを隠して余白を詰める */
  .lang-toggle-icon { display: none; }
  .lang-opt { min-width: 34px; min-height: 34px; padding: 0 7px; font-size: .68rem; }

  /* JA/EN を並べたぶん切替が横に広がったので、飾りの肉球は隠して幅を空ける。
     これが無いと360px幅でヘッダーが横にはみ出す（ハンバーガーが画面の外に出る）。 */
  .brand-paws { display: none; }
}

/* ============================================================
   ヒーロー（一番上）
   ============================================================ */
/* 文字入りの画像（Canva製）をそのまま帯として表示する。
   トリミングせず全体を出したいので、幅100%・高さは自動。 */
.hero {
  position: relative;
  background: linear-gradient(120deg, #fbd9e4 0%, #fde4ec 45%, #ffeef5 100%);
  overflow: hidden;
}

.hero-photo { position: relative; }

.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- ヒーロー写真のふわっと登場（js-motionのときだけ） ---- */
.js-motion .hero-photo img {
  opacity: 0;
  scale: 1.04;
  transition: opacity .9s ease-out, scale .9s ease-out;
}

.js-motion .hero-photo img.is-loaded {
  opacity: 1;
  scale: 1;
}

/* 画像がまだ無いときは、案内を出すための高さを確保する */
.hero-photo.is-empty { min-height: clamp(220px, 26vw, 380px); }

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(18px, 3vw, 30px) clamp(18px, 4vw, 56px) clamp(26px, 4vw, 40px);
}

/* hero.jpg は画面幅にかかわらずそのまま全体を表示する（文字入りの画像なので
   トリミングしない）。同じ文言のHTMLは読み上げソフトと検索エンジン向けに
   残しつつ、画面には出さない。 */
.hero-photo:not(.is-empty) + .hero-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-catch {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 6px;
  font-size: clamp(.74rem, 1.5vw, .95rem);
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--brown);
}

/* キャッチコピーの両端の「＼ ／」 */
.hero-catch::before,
.hero-catch::after {
  content: "";
  width: 2px;
  height: 1.5em;
  border-radius: 2px;
  background: var(--brown);
  opacity: .8;
}

.hero-catch::before { transform: rotate(-22deg); }
.hero-catch::after { transform: rotate(22deg); }

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.25;
  color: var(--brown);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .6);
}

.hero-title .ja-no {
  color: var(--gold-text);
  font-size: .78em;
  margin: 0 .06em;
}

.hero-en {
  margin: 2px 0 0;
  font-size: clamp(.85rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--brown);
}

/* リボン付きの区切り線 */
.ribbon-rule {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(340px, 86%);
  margin: 14px 0 16px;
}

.ribbon-rule::before,
.ribbon-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--pink-strong);
  opacity: .55;
}

.ribbon { width: 46px; height: 20px; color: var(--pink); }

/* ---- ゆらゆら揺れる演出（js-motionのときだけ） ----
   rotate プロパティだけを使うので、position: absolute の transform で
   位置決めしている要素（.profile-ribbon など）にも安全にかけられる */
@keyframes sway {
  0%, 100% { rotate: -4deg; }
  50%      { rotate: 4deg; }
}

.js-motion .ribbon,
.js-motion .profile-ribbon svg,
.js-motion .inline-heart,
.js-motion .thanks-heart {
  display: inline-block;
  animation: sway 4s ease-in-out infinite;
}

.hero-lead {
  margin: 0;
  font-size: clamp(.84rem, 1.7vw, 1.02rem);
  font-weight: 700;
  color: var(--brown);
  letter-spacing: .04em;
}

/* ---- ヒーロー下のスカラップ（波） ---- */
.scallop {
  position: relative;
  height: 18px;
  margin-top: -1px;
  background:
    radial-gradient(circle at 14px 0, var(--bg) 13px, transparent 13.5px) repeat-x;
  background-size: 28px 18px;
}

/* ---- 肉球の足あと演出（js-motionのときだけ、スカラップの上をぽすぽす歩く） ----
   あくまで飾りなので、演出なしの環境では最初から見せない */
/* 波形の「下」に置く。上（ヒーロー写真の上）だと、写真の花や背景に同化して
   まったく見えなくなってしまうため。下は無地のうすいピンクなのでよく映える。 */
.scallop-paws {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 6px;
  translate: -50% 0;
  display: flex;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
}

.js-motion .scallop-paws { opacity: 1; }

.scallop-paw { width: 18px; height: 18px; }
.scallop-paw:nth-child(odd)  { color: var(--pink-deep); }
.scallop-paw:nth-child(even) { color: var(--purple-strong); }

@keyframes paw-step {
  0%   { opacity: 0; scale: .4; }
  20%  { opacity: 1; scale: 1.1; }
  30%  { scale: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

.js-motion .scallop-paw {
  opacity: 0;
  animation: paw-step 1.6s both;
}

/* 1本ずつ「足あと」に見えるよう、遅延・角度・上下位置をずらす */
.js-motion .scallop-paw:nth-child(1) { animation-delay: .9s;  rotate: -8deg; translate: 0 2px; }
.js-motion .scallop-paw:nth-child(2) { animation-delay: 1.2s; rotate: 6deg;  translate: 0 -2px; }
.js-motion .scallop-paw:nth-child(3) { animation-delay: 1.5s; rotate: -6deg; translate: 0 2px; }
.js-motion .scallop-paw:nth-child(4) { animation-delay: 1.8s; rotate: 8deg;  translate: 0 -2px; }

/* ============================================================
   セクション共通
   ============================================================ */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(30px, 5vw, 52px) clamp(16px, 3vw, 24px);
  /* ページ本文の共通コンテナ。--maxw（1060px）より画面が狭い横向き表示では
     .site-header / .site-footer と同じく端まで広がるため、ここでも左右に
     セーフエリアを確保する。body 自体には付けない
     （body に付けると sticky なヘッダー・フッターの背景まで内側に
     寄ってしまい、ノッチの左右で背景が途切れて見える）。
     max() なのでノッチが無い端末・PCでは env() が 0 になり、
     元の clamp() の値のまま変わらない。 */
  padding-left: max(clamp(16px, 3vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 3vw, 24px), env(safe-area-inset-right));
}

/* ============================================================
   演出：スクロールでふわっと表示する（data-reveal）
   script.js が IntersectionObserver で is-revealed を付ける。
   js-motion が無い環境（JS無効・reduced motion）では最初から見える。
   ============================================================ */
.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
              transform .6s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}

.js-motion [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ============================================================
   丸ボタン（ピル）
   ============================================================ */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  /* 指で押しやすい高さ（44px）になるよう、上下の余白をとってある */
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, filter .15s ease,
              scale .35s cubic-bezier(.34, 1.56, .64, 1);
}

.pill:hover { transform: translateY(-2px); filter: brightness(1.04); }
.pill-play { width: 11px; height: 11px; opacity: .9; }

/* ---- ぷにっと押し込む演出（ボタン全般） ---- */
.pill:active,
.lang-opt:active,
.fanicon-item a[download]:active {
  scale: .94;
  transition: scale .08s ease;
}

.pill-pink   { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.pill-purple { background: linear-gradient(135deg, #cbb9f2, var(--purple-strong)); }
.pill-blue   { background: linear-gradient(135deg, #a6dbf3, var(--blue-strong)); }
.pill-gold   { background: linear-gradient(135deg, #f6dda0, var(--gold-strong)); }

/* ============================================================
   写真の枠（画像がまだ無いときは案内を出す）
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffe3ee, #fdeef6 60%, #f3e6fb);
}

.ph img { display: block; width: 100%; height: 100%; object-fit: cover; }

.ph.is-empty::before {
  content: "🐾";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-size: 1.8rem;
  opacity: .5;
  transform: translateY(-14px);
}

.ph.is-empty::after {
  content: attr(data-empty);
  position: absolute;
  inset: auto 0 0 0;
  padding: 8px 10px 14px;
  text-align: center;
  font-size: .68rem;
  line-height: 1.5;
  color: var(--text-sub);
}

/* ============================================================
   リンクカード（4つ）
   ============================================================ */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

@media (max-width: 780px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 20px;
  background: var(--card);
  border: 2px solid var(--pink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* ホバーの浮き上がりは translate プロパティで動かす。
     スクロール演出（[data-reveal]）が transform を使っているので、
     ここを transform にすると同時に動いたときに取り合いになってしまう */
  transition: translate .18s ease;
}

.card:hover { translate: 0 -4px; }

/* ---- ホバーで押される肉球のスタンプ（カード右上） ---- */
.card::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='6.6' cy='9.4' rx='2.5' ry='3.1' fill='%23f79ebd'/%3E%3Cellipse cx='17.4' cy='9.4' rx='2.5' ry='3.1' fill='%23f79ebd'/%3E%3Cellipse cx='10.1' cy='5.3' rx='2.2' ry='2.9' fill='%23f79ebd'/%3E%3Cellipse cx='13.9' cy='5.3' rx='2.2' ry='2.9' fill='%23f79ebd'/%3E%3Cpath d='M12 11.4c3.4 0 6 2.4 6 5.1 0 2.2-1.9 3.4-3.9 3.4-1 0-1.5-.4-2.1-.4s-1.1.4-2.1.4c-2 0-3.9-1.2-3.9-3.4 0-2.7 2.6-5.1 6-5.1Z' fill='%23f79ebd'/%3E%3C/svg%3E") no-repeat center / contain;
  scale: 0;
  rotate: -20deg;
  opacity: 0;
  pointer-events: none;
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1), rotate .35s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease;
}

/* タッチ端末では :hover が押しっぱなしのように残ることがあるので、
   本物のマウスがある端末だけに絞る */
@media (hover: hover) {
  .card .card-photo img { transition: scale .4s ease; }
  .card:hover .card-photo img { scale: 1.05; }
  .card:hover::after { scale: 1; rotate: 12deg; opacity: .9; }
}

.card-yt      { border-color: #ffd4de; }
.card-ig      { border-color: #e2d6f7; }
.card-fanicon { border-color: #c8e6f5; }
.card-goods   { border-color: #f6e4bd; }

.card-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .02em;
}

.card-icon { width: 26px; height: 26px; flex: 0 0 auto; }
.card-yt      .card-icon { color: var(--yt); }
.card-ig      .card-icon { color: #d6249f; }
.card-fanicon .card-icon { color: var(--blue-strong); }
.card-goods   .card-icon { color: var(--gold); }

.card-text {
  margin: 0;
  font-size: .82rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.card-photo {
  border-radius: 14px;
  /* 4枚とも元画像が正方形（YouTube/Instagramも高画質の正方形版に差し替え済み）
     なので、枠も正方形にする。横長にすると円形のファンアイコンが欠けたり、
     Tシャツの全体が見えなくなったりするため、無理に長方形へ合わせない */
  aspect-ratio: 1 / 1;
  margin-top: auto;
}

.card-goods .card-photo { background: linear-gradient(135deg, #fdf4e2, #fffaf1); }

.card .pill { margin-top: 4px; }

@media (max-width: 520px) {
  /* スマホ幅では縦積みの大きな写真カードだと1枚1枚が大きすぎるので、
     サムネイル＋テキストの横並びリストに切り替える。
     DOMの並び（見出し→説明→写真→ボタン）は変えず、グリッドで
     写真だけ左列にまとめて配置する。 */
  .card {
    display: grid;
    grid-template-columns: 76px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 12px;
  }

  .card-head { grid-column: 2; grid-row: 1; font-size: 1rem; }
  .card-text { grid-column: 2; grid-row: 2; font-size: .78rem; line-height: 1.5; }

  .card-photo {
    grid-column: 1;
    grid-row: 1 / span 3;
    aspect-ratio: 1 / 1;
    margin-top: 0;
    align-self: center;
  }

  .card .pill {
    grid-column: 2;
    grid-row: 3;
    width: auto;
    margin-top: 6px;
    padding: 8px 16px;
    font-size: .78rem;
  }
}

/* リンク準備中のときの見た目（script.js が付けます） */
.pill.is-pending {
  filter: grayscale(.25);
  opacity: .7;
  pointer-events: none;
}

/* ============================================================
   ファンアイコン配布
   ============================================================ */
.fanicon-section { text-align: center; }

.fanicon-title,
.goods-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .08em;
}

.fanicon-title-star { width: 24px; height: 24px; color: var(--blue-strong); }

.fanicon-title-en {
  font-family: "Parisienne", cursive;
  font-size: .78em;
  font-weight: 400;
  color: var(--blue-strong);
  letter-spacing: 0;
  margin-left: 6px;
}

.fanicon-lead,
.goods-lead {
  margin: 0 0 26px;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--text-sub);
}

/* 管理画面の複数行入力欄(type: "textarea")の文言を、入力した改行のまま表示する。
   render.mjs は改行を <br> に変換しない(data-cms の要素は子要素を持てない)ので、
   改行文字を CSS で改行として扱う。pre-line は行頭のインデントを詰めるため、
   テンプレートの既定文言を字下げして書いても表示には影響しない。 */
.cms-multiline {
  white-space: pre-line;
}

.fanicon-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

@media (max-width: 900px) { .fanicon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .fanicon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fanicon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 18px;
  background: var(--card);
  border: 2px solid var(--pink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* .card と同じ理由で translate を使う（スクロール演出の transform と競合させない） */
  transition: translate .18s ease;
}

.fanicon-item:hover { translate: 0 -4px; }

.fanicon-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #d8eefb, #eef8fd);
}

.fanicon-name {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-deep);
}

.fanicon-item .pill { margin-top: 2px; font-size: .8rem; padding: 10px 14px; }

/* ---- 保存できたときの演出（script.js の celebrateSave） ---- */
@keyframes save-pop {
  0%   { scale: 1; }
  40%  { scale: 1.08; }
  100% { scale: 1; }
}

.fanicon-item a[download].is-saved {
  animation: save-pop .35s cubic-bezier(.34, 1.56, .64, 1);
}

/* ハートと肉球が弾けて飛ぶ演出。fixed 配置なのでページの横スクロールには影響しない */
.burst {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  /* うすいピンクの背景に埋もれないよう、少し大きめ＋白いフチを付ける */
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .95), 0 0 6px rgba(255, 255, 255, .7);
  pointer-events: none;
  user-select: none;
  animation: burst var(--burst-duration, .9s) ease-out var(--burst-delay, 0s) forwards;
}

@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1.1); opacity: 0; }
}

/* ============================================================
   ファンアイコンの並び順（新着順／人気順）
   assets/script.js の setupFaniconSort が、人気順のデータ（/data/popularity/fanicon.json）が
   あるときだけ、一覧の上に .fanicon-sort（プルダウン）を、人気順のときだけ上位3つの
   .fanicon-rank（順位の印）を作る。この枠はほかの CSS に依存しない（案件へはこの枠ごとコピーする）。
   ============================================================ */
.fanicon-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 0 0 12px;
  font-size: .82rem;
  color: var(--text-sub);
}

.fanicon-sort-label { font-weight: 700; }

.fanicon-sort-select {
  font: inherit;
  font-weight: 700;
  color: var(--text-deep);
  background: var(--card);
  border: 2px solid var(--pink-line);
  border-radius: 999px;
  /* 指で押しやすい高さ（44px）にする */
  min-height: 44px;
  padding: 6px 14px;
  cursor: pointer;
}

.fanicon-sort-select:focus-visible { outline: 3px solid var(--pink-deep); outline-offset: 2px; }

.fanicon-item { position: relative; }

/* 人気順のときの順位の印（1〜3位）。写真の左上に小さく重ねる */
.fanicon-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
  box-shadow: var(--shadow-soft);
  color: var(--brown);
  font-size: .8rem;
  font-weight: 800;
  line-height: 1;
}

.fanicon-rank[data-rank="2"] { background: #dfe3ea; }
.fanicon-rank[data-rank="3"] { background: #efc4a1; }

/* 画面には出さず、読み上げだけに「人気1位」と伝える */
.fanicon-rank-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* グリッドの下に置くボタン（トップの「全部見る」、配布ページの「トップにもどる」）。
   .pill は width:100% なので、そのままだと横いっぱいに伸びてしまう */
.fanicon-action { margin: 30px 0 0; }
.fanicon-action .pill { max-width: 260px; }

/* ============================================================
   グッズ
   ============================================================ */
.goods-section { text-align: center; }

.goods-title-icon { width: 24px; height: 24px; color: var(--gold-strong); }

.goods-title-en {
  font-family: "Parisienne", cursive;
  font-size: .78em;
  font-weight: 400;
  color: var(--gold-strong);
  letter-spacing: 0;
  margin-left: 6px;
}

.goods-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 620px) {
  .goods-grid { grid-template-columns: 1fr; max-width: 360px; }
}

.goods-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 18px;
  background: var(--card);
  border: 2px solid var(--pink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  /* .card と同じ理由で translate を使う（スクロール演出の transform と競合させない） */
  transition: translate .18s ease;
}

.goods-item:hover { translate: 0 -4px; }

.goods-photo-link { display: block; width: 100%; }

.goods-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.goods-photo img { object-fit: contain; }

.goods-name {
  margin: 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-deep);
}

.goods-item .pill { margin-top: 2px; font-size: .82rem; padding: 10px 14px; }

.goods-action {
  margin: 30px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.goods-action .pill { max-width: 260px; }

/* ============================================================
   おしらせ

   中身は collections/news.json から <li class="news-item"> として並ぶ。
   出る場所は2か所で、見た目は共通、違いは件数と0件のときの扱いだけ。
     - トップページ（ヒーローの下）… data-cms-list-limit="3" で最新3件。
       0件なら枠ごと消す（開設直後は0件なので、この状態が既定）
     - /news.html … 全件。0件なら「まだおしらせはありません」を出す

   ★ 0件の判定は :empty に頼っている ★
   templates/(en/)index.html と (en/)news.html の <ul class="news-list"> を
   中身も改行も入れずに1行で書いているのはこのため。改行を1つ入れるだけで
   :empty にマッチしなくなり、空の枠が出てしまう。
   ============================================================ */

.news-section:has(.news-list:empty) { display: none; }

/* 一覧ページのほうは、0件でも「まだありません」を見せたいので枠は残す。
   :has() が使えないブラウザでは両方出るが、文言が1つ増えるだけで壊れない。 */
.news-page:has(.news-list:empty) { display: block; }
.news-page:has(.news-list:empty) .news-list { display: none; }
.news-empty { display: none; }
.news-page:has(.news-list:empty) .news-empty {
  display: block;
  margin: 0 0 30px;
  font-size: .86rem;
  color: var(--text-sub);
}

.news-section { text-align: center; }

.news-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .08em;
}

.news-page-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .08em;
}

.news-page-lead {
  margin: 0 0 26px;
  font-size: .86rem;
  line-height: 1.8;
  color: var(--text-sub);
}

.news-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 680px;
  text-align: left;
}

/* 日付と本文は、広い画面では横並び、狭い画面では2段に折り返す。
   日付の幅を固定しないのは、英語版（September 23, 2026）のほうが
   日本語版（2026年9月23日）より長くなるため。 */
.news-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 14px 18px;
  background: var(--card);
  border: 2px solid var(--pink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.news-item + .news-item { margin-top: 10px; }

.news-date {
  flex: none;
  font-size: .78rem;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: .04em;
}

.news-text {
  flex: 1 1 260px;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--text);
}

.news-action { margin: 22px 0 0; }
.news-action .pill { max-width: 260px; }

/* ============================================================
   紙芝居（グッズページの画像スライドショー）

   画像は collections/slides.json から <li class="slide"> として並ぶ。
   横一列に並べるのではなく、全部を枠に重ねて置き、表示中でない画像は
   枠の外（左右）へ寄せておく。めくるときに動かすのは「出ていく1枚」と
   「入ってくる1枚」だけで、残りは外に置いたまま動かさない。
   こうしておくと、10枚目から1枚目へ戻るようなときでも、間の画像が
   一気に流れていくような見え方にならない（位置は script.js の
   setupSlideshow が translate に直接書き込む）。

   JSが動かないときは1枚目だけが見える（.slide:first-child）。
   ============================================================ */

/* 画像が1枚も無いときは枠ごと出さない。
   templates/(en/)goods.html の <ul class="slideshow-track"> を
   中身も改行も入れずに1行で書いているのは、この :empty に当てるため。 */
.slideshow-block:has(.slideshow-track:empty) { display: none; }

.slideshow-block { margin: 0 0 clamp(28px, 4vw, 44px); }

.slideshow-heading {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--text-deep);
}

.slideshow-lead {
  margin: 0 0 18px;
  font-size: .86rem;
  line-height: 1.9;
  color: var(--text-sub);
}

.slideshow {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.slideshow-viewport {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px solid var(--pink-line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  /* 縦スクロールと指2本の拡大はブラウザに任せ、横になぞる操作だけを
     script.js が受け取る（なぞってめくる操作のため） */
  touch-action: pan-y pinch-zoom;
}

.slideshow-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

/* transform ではなく translate プロパティを使うのは、スクロール演出
   （[data-reveal]）が transform を使っていて、同時に動いたときに
   取り合いになるのを避けるため（.goods-item・.card と同じ理由）。
   動きの曲がり方は「勢いよく出て、最後はすっと止まる」形にしてある
   （指ではじいた紙が滑って止まるような見え方にしたいため）。 */
.slide {
  position: absolute;
  inset: 0;
  translate: 100% 0;
  transition: translate .42s cubic-bezier(.22, .61, .36, 1);
}

/* JSが動く前／動かない環境では1枚目だけを見せる */
.slide:first-child { translate: 0 0; }

/* 次にめくる1枚を進行方向の外側へ置き直すときだけ、動かさずに瞬間移動させる。
   これが無いと、置き直す動きそのものが見えてしまう（script.js の park()）。 */
.slide.is-instant { transition: none; }

/* 指でなぞっている間は、指と同じだけ動かす。ここで動きを付けてしまうと、
   画像が指に遅れてついてくることになり、つままれている感じがしなくなる。
   指を離すと外れ、そこから先は上の transition で滑って収まる。 */
.slideshow.is-dragging .slide { transition: none; }

/* 画像全体を見せる（object-fit: contain）ので、縦横比が枠と違うと余白ができる。
   そこを .ph のピンクのグラデーションのままにすると帯のように目立つため、
   グッズカードの写真枠（.goods-photo）と同じく白で塗る。 */
.slide-photo {
  width: 100%;
  height: 100%;
  background: #fff;
}

.slide-photo img { object-fit: contain; }

/* ---- 前へ／次へ ---- */
.slideshow-arrow {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 2px solid var(--pink-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--pink-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.slideshow-arrow:hover { background: var(--pink); color: #fff; }

.slideshow-arrow-icon { width: 14px; height: 14px; }

/* 左向きの矢印は、同じ三角（#i-play）を左右反転して使う */
.slideshow-arrow-prev { left: -6px; }
.slideshow-arrow-prev .slideshow-arrow-icon { scale: -1 1; }
.slideshow-arrow-next { right: -6px; }

@media (max-width: 620px) {
  .slideshow-arrow { width: 34px; height: 34px; }
  .slideshow-arrow-prev { left: 2px; }
  .slideshow-arrow-next { right: 2px; }
}

/* ---- 点（何枚目か）と「自動でめくる」の切り替え ---- */
.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.slideshow-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slideshow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid var(--pink-line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.slideshow-dot.is-active {
  background: var(--pink-strong);
  border-color: var(--pink-strong);
}

.slideshow-play {
  display: grid;
  place-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2px solid var(--pink-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pink-deep);
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.slideshow-play:hover { background: var(--pink); color: #fff; }
.slideshow-play-icon { width: 10px; height: 10px; }

/* 「動きを減らす」設定のときは、横に大きく動かすのをやめる。
   ただし何の動きも無しでパッと入れ替えると、それはそれで唐突に見えるので、
   その場に重ねたまま静かに入れ替える（大きな動きが苦手な人向けの
   置き換え方として薦められている見せ方）。
   script.js が書き込む横位置を打ち消して、全部の画像を枠にぴったり重ね、
   表示中の1枚だけを見せる。自動めくり自体も script.js 側で止めている。

   .is-ready が付いているとき（＝script.jsが表示を引き継いだとき）だけに
   限っているのは、JSが動かない環境まで巻き込まないため。JSが無いと
   .is-active を付ける人がおらず、この指定だと画像が1枚も見えなくなる
   （JSが無いときは上の .slide:first-child がそのまま効く）。 */
html:not(.js-motion) .slideshow.is-ready .slide {
  translate: none !important;
  opacity: 0;
  transition: opacity .3s ease;
}

html:not(.js-motion) .slideshow.is-ready .slide.is-active { opacity: 1; }

/* ============================================================
   プロフィール
   ============================================================ */
.profile-section { position: relative; }

.profile-ribbon {
  position: absolute;
  top: clamp(16px, 3.4vw, 34px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.profile-ribbon svg { width: 58px; height: 24px; color: var(--pink); }

.profile-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 4vw, 40px) clamp(20px, 4vw, 44px);
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* 上下のスカラップ（レースのような波） */
.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  height: 12px;
  background: radial-gradient(circle at 9px 50%, #fff 6.5px, transparent 7px) repeat-x;
  background-size: 18px 12px;
}

.profile-card::before { top: -6px; }
.profile-card::after { bottom: -6px; }

/* ---- ポラロイド風の写真 ---- */
.polaroid {
  background: #fff;
  padding: 12px 12px 30px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(198, 140, 165, .22);
  transform: rotate(-2deg);
}

.polaroid-photo { aspect-ratio: 4 / 3.4; border-radius: 3px; }

.polaroid-caption {
  margin: 8px 0 -14px;
  text-align: center;
  font-family: "Parisienne", "M PLUS Rounded 1c", cursive;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--pink-strong);
}

.polaroid-caption .inline-heart { width: .7em; height: .7em; }

/* ---- 見出し・項目 ---- */
.profile-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .08em;
}

.profile-title-paw { width: 26px; height: 26px; color: var(--pink); }

.profile-title-en {
  font-family: "Parisienne", cursive;
  font-size: .78em;
  font-weight: 400;
  color: var(--pink-strong);
  letter-spacing: 0;
  margin-left: 6px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 200px);
  gap: clamp(14px, 2.5vw, 28px);
  align-items: center;
}

.profile-list { margin: 0; display: grid; gap: 8px; }

.profile-list > div {
  display: grid;
  grid-template-columns: 5.6em 1fr;
  gap: 12px;
  align-items: center;
}

.profile-list dt {
  display: grid;
  place-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffe3ee;
  color: var(--pink-deep);
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.9;
}

.profile-list dd {
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
}

.profile-detail {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px dashed transparent;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .3s ease, opacity .25s ease, margin-top .3s ease, padding-top .3s ease, border-color .3s ease;
}

.profile-detail.is-open {
  margin-top: 16px;
  padding-top: 16px;
  border-top-color: var(--pink-line);
  max-height: 220px;
  opacity: 1;
}

/* ---- ふきだし ---- */
.profile-more { display: grid; gap: 14px; justify-items: center; }

.balloon {
  position: relative;
  margin: 0;
  padding: 14px 16px;
  background: #fff7fa;
  border: 2px dashed var(--pink-line);
  border-radius: 24px;
  text-align: center;
  font-size: .8rem;
  line-height: 1.7;
  color: var(--text-sub);
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  background: #fff7fa;
  border-right: 2px dashed var(--pink-line);
  border-bottom: 2px dashed var(--pink-line);
  border-radius: 0 0 6px 0;
  transform: translateX(-50%) rotate(45deg);
}

.profile-toggle { max-width: 220px; }

@media (max-width: 860px) {
  .profile-card { grid-template-columns: 1fr; justify-items: center; }
  /* 固定300pxだとスマホ幅では画面に対して大きすぎるので、画面幅に応じて縮める */
  .polaroid { max-width: clamp(190px, 55vw, 300px); }
  .profile-body { width: 100%; }
  .profile-title { justify-content: center; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .profile-list > div { grid-template-columns: 5.4em 1fr; gap: 8px; }
  .profile-list dt { font-size: .72rem; padding: 2px 6px; }
  .profile-list dd { font-size: .86rem; }
}

/* ============================================================
   お問い合わせ
   ============================================================ */
.contact-card {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 34px) clamp(20px, 4vw, 32px);
  text-align: center;
  background: var(--card);
  border: 2px dashed var(--pink-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-deep);
  letter-spacing: .06em;
}

.contact-icon { width: 24px; height: 24px; color: var(--gold); }

.contact-title-en {
  font-family: "Parisienne", cursive;
  font-size: .8em;
  font-weight: 400;
  color: var(--pink-strong);
  letter-spacing: 0;
}

.contact-text {
  margin: 0 0 18px;
  font-size: .88rem;
  color: var(--text-sub);
}

.contact-card .pill { max-width: 260px; }

/* ============================================================
   アンダーバナー

   トップページ最下部の「Thank you for visiting!」バナー。
   画像に文字が入っているので alt に同じ文言を書いている。
   width/height属性は付けない方針（docs/TODO.md 4-3）なので、
   aspect-ratio で高さを確保している。
   ============================================================ */
.under-banner {
  max-width: var(--maxw);
  margin: 40px auto 0;
  padding: 0 clamp(16px, 3vw, 24px);
}

.under-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1983 / 793;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ============================================================
   フッター
   ============================================================ */
.site-footer {
  margin-top: 20px;
  padding: 34px clamp(16px, 3vw, 24px) 28px;
  background: linear-gradient(180deg, #fff6fa, #ffeaf3);
  border-top: 1px solid var(--pink-line);
  text-align: center;
  /* .site-header と同じ理由で、横向き表示でノッチ側に文字が寄りすぎないよう
     左右をセーフエリア分だけ広げる（ノッチが無い端末では env() が 0 なので
     max() の下限＝元の clamp() の値のまま変わらない）。 */
  padding-left: max(clamp(16px, 3vw, 24px), env(safe-area-inset-left));
  padding-right: max(clamp(16px, 3vw, 24px), env(safe-area-inset-right));
  /* ホームインジケータ（画面下端のバー）にフッター最下部が被らないよう、
     既存の下余白（28px）にセーフエリア分を足す。加算なのでノッチが無い
     端末では env() が 0 になり、元の28pxのまま変わらない。 */
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text-deep);
  letter-spacing: .06em;
}

.footer-brand::before,
.footer-brand::after {
  content: "";
  width: clamp(18px, 6vw, 54px);
  height: 1px;
  background: var(--pink-strong);
  opacity: .5;
}

.footer-paw { width: 15px; height: 15px; color: var(--pink); }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* 縦のすき間は下の padding で足りるので、横方向だけ空ける */
  gap: 0 clamp(12px, 2.4vw, 30px);
  margin-bottom: 20px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  /* 文字が小さく、指で押すには細すぎるので、
     見た目を変えずに余白で高さ44pxを確保する */
  padding: 12px 4px;
  text-decoration: none;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-sub);
  transition: color .15s ease;
}

.footer-nav a:hover { color: var(--pink-deep); }

.footer-thanks {
  margin: 0 0 6px;
  font-family: "Parisienne", cursive;
  font-size: 1.2rem;
  color: var(--pink-strong);
}

.thanks-heart { color: var(--pink); }

.copyright {
  margin: 0;
  font-size: .72rem;
  color: var(--text-sub);
}

.footer-legal {
  margin: 10px 0 0;
  font-size: .72rem;
}

.footer-legal a {
  color: var(--text-sub);
  text-decoration: underline;
}

.footer-legal a:hover { color: var(--pink-deep); }

/* ---- フッターの言語切替 ---- */
.footer-lang {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: .72rem;
  color: var(--text-sub);
}

.footer-lang-icon { width: 14px; height: 14px; color: var(--text-sub); }

.footer-lang span[aria-current] { font-weight: 700; }

.footer-lang-link {
  color: var(--text-sub);
  text-decoration: underline;
  transition: color .15s ease;
}

.footer-lang-link:hover { color: var(--pink-deep); }

/* ============================================================
   動きを減らす設定の端末への配慮
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .pill:hover, .nav-item:hover, .lang-opt:hover { transform: none; translate: none; }
  .site-nav,
  .nav-toggle[aria-expanded="true"] + .site-nav,
  .profile-detail,
  .profile-detail.is-open {
    transition: none;
    animation: none;
  }

  /* ここから追加分。paw-step・sway・burst・reveal・ヒーロー写真のフェードインは
     すべて .js-motion 前提で書いてあり、motion-init.js がこの設定のときに
     js-motion クラス自体を付けないため、上記のCSSだけで自動的に動かなくなる。
     ここで明示的に止める必要があるのは、js-motion に関係なく
     hover / active だけで動く演出（ボタンの押し込み・カード写真ズーム・肉球スタンプ）。 */
  .pill,
  .lang-opt,
  .fanicon-item a[download],
  .card-photo img,
  .card::after {
    transition: none !important;
    animation: none !important;
  }

  .pill:active,
  .lang-opt:active,
  .fanicon-item a[download]:active {
    scale: 1;
  }

  .card:hover .card-photo img { scale: 1; }
  .card:hover::after,
  .card::after {
    scale: 0;
    rotate: 0deg;
    opacity: 0;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-photo img {
    opacity: 1 !important;
    scale: 1 !important;
  }

  .scallop-paws,
  .burst {
    display: none !important;
  }
}
