/* ==========================================================
   CapLog 公式サイト — 骨組み
   ========================================================== */

:root {
  --blue: #1c28b4;
  --lime: #bffc3d;
  --paper: #f7f6f3;
  --screen: #f7f6f4;                /* スマホ画面（コンテンツ部分）の背景 */
  --orange: #fe5720;                /* How_背景or.png と同じオレンジ */
  --ink: #2b2b2b;
  --white: #fff;

  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;

  --ticker-h: 40px;
  --phone-w: 400px;
  --phone-top: clamp(56px, 9vh, 96px);
  --gutter: clamp(24px, 5vw, 96px);
  --phone-radius: 34px;
  --shift-left: 50px;               /* 左ステージ・スマホ枠を左に寄せる量 */

  /* 方眼：6px の正方形マス、線は 1px・青 7% */
  --grid-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h6v1H0zM0 0h1v6H0z' fill='rgba(28,40,180,0.07)'/%3E%3C/svg%3E");
}

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  /* 方眼：6px の正方形マス1種類だけ。線は全て 1px・同じ濃さ（青 7%）。
     SVG の crispEdges でピクセル境界に揃え、線の太さがばらつかないようにする */
  background-image: var(--grid-image);
  background-size: 6px 6px;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 全体骨組み ---------- */

.site {
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--ticker-h) 1fr;
}

.main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr calc(var(--phone-w) + var(--gutter));
  min-height: 0;
}

/* ---------- テロップ ---------- */

.ticker {
  background: var(--blue);
  color: var(--lime);
  height: var(--ticker-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 70s linear infinite;
  will-change: transform;
}

.ticker__group {
  display: inline-block;
  padding-right: 0.6em;
}

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

/* ---------- 左ステージ ---------- */

.stage {
  container-type: size;
  position: relative;
  display: grid;
  place-items: center;
  padding: 2vh 2vw 3vh;
  min-height: 0;
}

/* デザイン上の基準キャンバス（754 × 828）。中身は%で配置し、全体を相似で拡縮する */
.comp {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 754 / 828;
  width: min(96cqw, calc(96cqh * 754 / 828));
  left: calc(var(--shift-left) * -1);
}

.comp > * { position: absolute; }

.logo      { left: 24.6%; top: 14.9%; width: 47.5%; }   /* 基準キャンバス上で35px右へ */
.daisy     { left: 66.5%; top: 8.4%;  width: 11.6%; }   /* 20%縮小（中心位置は維持） */
.character { left: 9.8%;  top: 26.7%; width: 14.9%; }   /* 15%縮小（中心位置は維持） */
.collage   { left: 19.9%; top: 30.8%; width: 47.4%; }
.keycap-btn{ left: 67.6%; top: 45.9%; width: 7.2%;  }
.cursor    { left: 76.9%; top: 49.8%; width: 2.5%; }   /* 25%拡大（中心位置は維持） */
.hand      { left: 63.7%; top: 67.6%; width: 22.8%; }   /* 基準キャンバス上で30px下げ */

/* 揺れ・動き */
.daisy {
  transform-origin: 50% 60%;
  animation: sway 4.6s ease-in-out infinite alternate;
}
.character {
  animation: bob 3.8s ease-in-out infinite alternate;
  animation-delay: -1.2s;
}
.hand {
  transform-origin: 100% 100%;
  animation: point 4.4s ease-in-out infinite;
}
/* カーソルは 20° 左に傾ける。動きのキーフレーム側にも同じ回転を入れておく */
.cursor {
  transform: rotate(-20deg);
  animation: click 5s ease-in-out infinite;
}
/* 手袋の手はモバイルのヒーロー専用。PC では出さない */
.glove { display: none; }

@keyframes sway {
  from { transform: rotate(-5deg) translateY(0); }
  to   { transform: rotate(5deg)  translateY(-6px); }
}
@keyframes bob {
  from { transform: translateY(0)    rotate(-2deg); }
  to   { transform: translateY(-10px) rotate(3deg); }
}
@keyframes point {
  0%, 100% { transform: rotate(0deg)  translate(0, 0); }
  50%      { transform: rotate(-3deg) translate(-6px, -8px); }
}
@keyframes click {
  0%, 60%  { transform: translate(0, 0) rotate(-20deg); }
  74%, 84% { transform: translate(-30%, -18%) rotate(-20deg); }
  100%     { transform: translate(0, 0) rotate(-20deg); }
}

/* キーキャップ：クリックで沈み、絵文字が飛び出す */
.keycap-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(8deg);           /* 8° 右に傾ける */
}
.keycap-btn .keycap {
  width: 100%;
  transition: transform 0.1s ease-out;
}
.keycap-btn.is-pressed .keycap { transform: translateY(7%) scale(0.95); }
.keycap-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 12px; }

.pop {
  position: absolute;
  left: 50%;
  top: 30%;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
  animation: pop 0.95s cubic-bezier(0.15, 0.7, 0.3, 1) var(--delay, 0ms) both;
}
@keyframes pop {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  12%  { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  70%  { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--rot)) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 28px)) rotate(var(--rot)) scale(0.9); opacity: 0; }
}

/* ナビ */
.nav {
  left: 21.1%;
  top: 79%;
  width: 46%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.nav__item {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 0.35em;
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-size: 2.9cqw;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
  letter-spacing: 0.005em;
}

.nav__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.1em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav__item[aria-current="page"]::after { transform: scaleX(1); }

.nav__item:hover { color: #101a8a; }

.nav__item:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 6px;
  border-radius: 2px;
}

/* App Store バッジ */
.badge {
  left: 35.4%;
  top: 87.3%;
  width: 19.1%;
  border-radius: 12%/30%;
  transition: transform 0.2s ease;
}
.badge:hover { transform: translateY(-2px); }
.badge:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ---------- 右上バーコード ---------- */

.barcode {
  position: absolute;
  top: 0;
  right: calc(var(--gutter) * 0.45);
  width: min(16vw, 240px);
  pointer-events: none;
}

/* ---------- スマホ枠 ---------- */

.phone {
  position: absolute;
  top: var(--phone-top);
  bottom: -2rem;                     /* 下端は画面外に流す（本体が下から立ち上がっている見え方） */
  right: calc(var(--gutter) + var(--shift-left) + 35px);   /* 2026-09-08：中央に 35px 寄せた */
  width: var(--phone-w);
  background: var(--screen);
  border: 2px solid var(--blue);
  border-bottom: 0;
  border-radius: var(--phone-radius) var(--phone-radius) 0 0;
  box-shadow: 0 18px 60px rgba(28, 40, 180, 0.12);
  overflow: hidden;
}

.screen {
  height: 100%;
  overflow: hidden auto;             /* 横はみ出しは切り、縦だけスクロール */
  overscroll-behavior: none;         /* 端で跳ね返らない */
  overflow-anchor: none;             /* ブラウザによるスクロール位置の自動補正を切る */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.screen::-webkit-scrollbar { display: none; }

.page {
  display: none;
  padding: 40px 25px 96px;           /* 左右 25px にすると、PC のスマホ枠の中身が iPhone（幅 390）と同じ 346px 幅になる */
}
.page.is-active { display: block; }

.page__logo { width: 190px; margin-bottom: 28px; }

/* 仮置きブロック（後でセクションごとの実コンテンツに差し替える） */
.placeholder {
  border: 1.5px dashed rgba(28, 40, 180, 0.4);
  border-radius: 16px;
  background: rgba(28, 40, 180, 0.03);
  color: var(--blue);
  padding: 20px 18px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.placeholder p { margin: 0; }
.placeholder__title { font-weight: 700; font-size: 18px; margin-bottom: 6px !important; }
.placeholder--tall {
  min-height: 220px;
  display: grid;
  place-items: center;
  opacity: 0.7;
}

/* ---------- フッター ---------- */

.footer {
  position: absolute;
  left: 1.6vw;
  bottom: 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #3a3a3a;
  letter-spacing: 0.01em;
}

/* ---------- モバイル用の帯：最上部の固定帯 / ヒーロー直下のティッカー ---------- */

.m-hero { display: contents; }      /* PC では箱として存在しない */
.m-header {
  display: none;                     /* モバイルでだけ表示 */
  position: relative;
  height: 57px;
  background: var(--blue);
  color: var(--lime);
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 700;
  font-size: 13px;                   /* ヒーロー直下のティッカーと同じ */
  letter-spacing: 0.01em;
}
.ticker--mobile { display: none; }   /* モバイルでだけ表示 */

.ticker__track--rtl { animation: ticker 32s linear infinite; }        /* 右 → 左 */
.ticker__track--ltr { animation: ticker-ltr 32s linear infinite; }    /* 左 → 右 */
@keyframes ticker-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ---------- About：What's? フレーム ---------- */

.whats {
  position: relative;
  margin: 6px 0 0;
  padding: 0 0 8px;
  border: 1px solid var(--blue);
  border-radius: 22px;
  background: var(--white);          /* 前のカードからはみ出す青い背景より手前に見せる */
}
.whats__head {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid var(--blue);   /* 横線はフレームの端まで */
}
.whats__tab {
  display: inline-block;
  padding: 13px 18px 11px;
  border-right: 1px solid var(--blue);
  border-radius: 20px 0 0 0;
  font-weight: 400;
  font-size: 17px;
  line-height: 1;
  color: var(--blue);
}
.whats__mark {                       /* 右上の「Cap it, Stick it.」。フレームから少しはみ出す */
  position: absolute;
  right: 29.13px;
  top: 2.39px;
  width: 198.14px;                  /* もとの 60%（206.4px）の 120% */
  height: auto;
  transform: rotate(-4deg);          /* 右に 12° */
}

/* 青い波形パネル。上下の縁は SVG のマスクで波にする */
.wave-wrap {
  position: relative;
  height: 222px;
  margin: 20px 0 0;
}
.wave {
  position: absolute;
  top: 0;
  left: 50%;
  width: 548px;                      /* 222px × 2.47（Whats_背景.png の縦横比）。画面より広く、左右がはみ出す */
  height: 222px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 26px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  /* 輪郭はいただいた Whats_背景.png を透明化した画像（assets/whats-blob.png）でマスク */
  -webkit-mask-image: url("../assets/whats-blob.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/whats-blob.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.wave__title {
  margin: 0;
  position: relative;
  left: 2px;
  top: -12px;
  font-family: "Dela Gothic One", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 25.2px;
  line-height: 1.25;
  letter-spacing: 0.02em;
}
.wave__line { display: block; }        /* 各行とも中央揃え（2026-09-08） */
.wave__sub {
  margin: 4px 0 0;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 13.5px;                   /* How の「Your folders. Your themes.」と同じ */
  letter-spacing: 0.02em;
  transform: translateX(-1px);
  position: relative;
  top: -1.8px;
}
.wave__sticker {                     /* パネルの縁からはみ出す料理シール */
  position: absolute;
  width: 96px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.wave__sticker--1 { left: 10.26px; top: 29.12px; width: 77.49px; transform: rotate(-13deg); } /* 左上：ラクサ（左に 13°） */
.wave__sticker--2 { left: -17.74px; top: 109.27px; width: 77.49px; }                           /* 左中：いくら */
.wave__sticker--3 { left: 52.37px; top: 169.75px; width: 63.27px; transform: rotate(-22deg); } /* 左下：さんまの寿司 */
.wave__sticker--4 { right: 17.12px; top: 142.66px; width: 74.76px; transform: rotate(17deg); } /* 右下：かき氷（右に 17°） */
.wave__sticker--5 { right: -1.82px; top: 38.6px; width: 84.64px; }                           /* 右上：石 */

/* 説明部分：はみ出すラベルと、スマホ画面2つ */
.intro {
  position: relative;
  height: 328px;                     /* 高さを固定して、端末の文字の違いでカードの高さが変わらないように */
  padding-top: 15px;
}
.labels {
  position: relative;
  z-index: 4;                        /* スマホ画面より手前 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 0 -13px;
  top: 4px;               /* フレームの左に少しはみ出す */
  transform: translate(7px, 3px) scale(1.05);
}
.label {
  position: relative;
  margin: 0;
  padding: 4px 8px 3px;
  border: 1.5px solid var(--blue);
  background: var(--white);
  color: var(--blue);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 17px;                 /* px で固定 */
  white-space: nowrap;
}
.label::before,
.label::after {                      /* 後ろに重なる四角2枚（右下へ 4px ずつ等間隔にずらす） */
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--blue);
  background: var(--white);
  z-index: -1;
}
.label::before { transform: translate(4px, 4px); }
.label::after  { transform: translate(8px, 8px); z-index: -2; }
.label + .label { margin-top: -1.5px; }   /* 枠線を重ねて1本に見せる */
.label span {                        /* 文字だけ縦方向を 80% に圧縮して平べったく。block にして行の高さを端末のフォントに左右されないようにする */
  display: block;
  transform: scaleY(0.8);
  transform-origin: center;
}
.label--fill { background: var(--blue); color: var(--white); }
.label--gap { margin-top: -1.5px; }   /* 段落の区切りも接着 */
.label:nth-child(2) { margin-left: 4px; }
.label:nth-child(3) { margin-left: 0; }
.label:nth-child(4) { margin-left: 4px; }
.label:nth-child(5) { margin-left: 2px; }

.intro__phone1 {                     /* かき氷のスマホ画面＋指さす手。最前面で、日本語に重なる */
  position: absolute;
  z-index: 5;
  right: -17.65px;
  top: 17.92px;
  width: 149.31px;
  height: auto;
  transform: rotate(-7deg);          /* 左に 7° */
}
.intro__en {
  position: relative;
  z-index: 2;
  margin: 29.1px 40% 0 15.74px;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 15.68px;              /* 16.5px の 95%。エディター（PC）と実機で同じ大きさにする */
  line-height: 20.9px;               /* px で固定（22px の 95%） */
  white-space: nowrap;               /* 1文は折り返さない */
  color: var(--blue);
}
.intro__en p { margin: 0 0 7.3px; }
.intro__en p + p { margin-left: 0.95px; }
.intro__phone2 {                     /* 矢印＋かき氷シール＋カレンダーのスマホ画面（右にはみ出す）。最前面 */
  position: absolute;
  z-index: 6;
  right: -37.84px;
  top: 132.48px;
  width: 179.68px;
  height: auto;
  transform: rotate(-1deg);
}


/* カードの列：カードの上端が画面（PC ではスマホ枠）の上端に着いたら固定され、
   縦スクロール量に応じて .deck__track が横にスライドする。高さは JS が計算する */
.deck { position: relative; margin: 0 -25px; }            /* スマホ枠の内側いっぱいに広げる */
.page:has(.deck) { padding-top: 0; padding-bottom: 200px; }   /* 下の余白：最後（Why）のカードの後は縦にスクロールして、はみ出した部品まで見える */    /* カードは最初から画面上端に固定。上下の余白があると、固定される前に縦に動く「段差」ができる */
.deck__sticky { position: sticky; top: 0; padding-top: 14px; }
.deck__track { display: flex; }
.deck__slot {
  --slot-pad: 25px;
  position: relative;
  z-index: 1;
  flex: 0 0 100%;
  min-width: 0;
  padding: 0 var(--slot-pad);
  overflow: visible;                 /* 青い背景などのはみ出しは切らず、スライド中に隣へ流れて見える */
}
.deck__slot:nth-child(2) { z-index: 2; }   /* あとのカードほど手前に重なる */
.deck__slot:nth-child(3) { z-index: 3; }
.deck__slot:nth-child(4) { z-index: 4; }
/* ---------- How カード ---------- */

.whats--how { padding: 0 0 18px; }
.how__mark {                         /* 右上の COLLECTION */
  position: absolute;
  right: 48.37px;
  top: -3.89px;
  width: 211.9px;                  /* もとの 56%（192.64px）の 110% */
  height: auto;
  transform: rotate(-3deg);
}

/* 青いパネル：形は How_背景.png のマスク。左右はカードの外（画面端）まで広がる */
.how__panel-wrap {
  position: relative;
  z-index: 1;
  height: 200px;
  margin: 30px 0 0;                  /* 赤線の位置（見出し行の 30px 下）から始め、カードの中に収める */
}
.how__panel {                        /* 形は上下2本の帯（上：右端が丸い / 下：左端が丸い）。マスク画像はオレンジ時代の名前のまま */
  position: absolute;
  inset: 0 8px;                      /* カードの縁に触れないよう、左右 8px 内側 */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 30.98px 24px 0;           /* 見出し（110%・上に 4px）の分だけ上へ。2026-09-08 の調整 */
  background: var(--blue);            /* 2026-09-08：オレンジから What's と同じ青に */
  color: var(--white);
  -webkit-mask-image: url("../assets/how-panel-or.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/how-panel-or.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.how__title {
  margin: 0;
  position: relative;
  left: 0;
  text-align: center;
  font-family: "Dela Gothic One", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 23.76px;                 /* 24px の 110% */
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.how__line { display: block; }        /* 各行とも中央揃え */
.how__sub {
  margin: 9.08px 0 0;                /* 上に 1px（見出しの変更分を含めて計算） */
  position: relative;
  left: 1px;
  text-align: center;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.how__tray {                         /* フォルダのトレイ写真 */
  position: absolute;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}
.how__tray--sauna { left: 179.55px; top: 182.95px; width: 96.9px; z-index: 2; transform: rotate(8deg); }   /* 右に 15px・下に 13px（2026-09-08） */   /* 右上（ごはんの下） */
.how__tray--tabi  { right: 258.25px; top: 146.78px; width: 97.5px; z-index: 2; transform: rotate(-7deg); }   /* 英文の右どなり */
.how__tray--gohan { right: 21.3px; top: 151.6px;   width: 105.4px; z-index: 3; transform: rotate(-3deg); }  /* 右に 12px・下に 13px（2026-09-08） */

/* オレンジの枠 */
.how__body {
  position: relative;
  margin: -44px 10px 0;
  padding: 108.88px 14px 26px 9px;
  height: 374px;                     /* What's カードと同じ高さ（628px）になる値。端末の文字の違いで変わらないように固定 */
  box-sizing: border-box;
}
.how__tray--sweets { left: 219.3px; top: -198.4px; width: 105.4px; z-index: 2; transform: rotate(-10deg); }  /* パネルの左下。カードの縁から少し外へ */
.how__tray--ramen  { left: -12.7px;  top: 32.6px;  width: 105.4px; z-index: 3; transform: rotate(-8deg); }   /* スイーツに重ねる */
.how__tray--neko  { right: -36.42px; top: -172.43px; width: 103.84px; z-index: 2; transform: rotate(10deg); }   /* 英文の右下 */
.how__screens {                      /* フォルダ画面 3 つ。パネルに重なりつつ、右の枠の外へはみ出す */
  position: absolute;
  z-index: 2;
  right: -29px;
  top: -2.46px;
  width: 177px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.how__screens img { flex: 1 1 0; min-width: 0; height: auto; }
.how__screens img:nth-child(1) { transform: translate(16px, 1px) scale(0.95); }               /* 2026-09-08 夜の調整 */
.how__screens img:nth-child(2) { transform: translate(11px, 2px) scale(0.95); }
.how__screens img:nth-child(3) { margin-left: 1px; margin-top: -1px; transform: translate(6px, 2px) scale(0.95); }
.how__jp {
  margin: -14px 0 0 0.5px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 11.03px;              /* 10.5px の 105% */
  line-height: 15.75px;              /* px で固定（15px の 105%） */
  white-space: nowrap;
  color: var(--blue);
}
.how__jp span {                      /* サイト内の日本語本文は What's のラベルと同じく、文字だけ縦 80% に圧縮 */
  display: block;
  transform: scale(1, 0.8);
  transform-origin: center;
}
.how__jp + .how__jp { margin-top: 7.75px; margin-left: -0.52px; }
.how__en {
  margin: 18.97px 0 0 -1.5px;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 15.12px;
  line-height: 19.95px;                 /* px で固定 */
  white-space: nowrap;
  color: var(--blue);
}
.how__en + .how__en { margin-top: 2.7px; margin-left: -2.5px; }
.how__phone {                        /* ねこのステッカー画面 */
  position: absolute;
  right: -39.49px;
  top: 206.37px;
  width: 122.98px;
  height: auto;
  z-index: 2;
}
.how__magnet {                       /* マグネットの写真シール。置き場所は仮：英文の下、枠の左下の角にまたがる */
  position: absolute;
  left: 62.88px;
  top: -2.12px;
  width: 86.25px;
  height: auto;
  z-index: 2;
  transform: rotate(-15deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  pointer-events: none;
}
.how__cat {                          /* 大きな猫。枠の右下から下にはみ出す */
  position: absolute;
  right: 54px;
  bottom: 23px;
  width: 136px;
  height: auto;
  z-index: 3;
  pointer-events: none;
}

/* ---------- When カード（日めくりカレンダーの紹介。枠だけ。中身はモックアップが届いてから） ---------- */

.whats--when { padding: 0; }
.when__body {
  position: relative;
  height: 578px;                     /* 見出し行 48px と上下の枠線 2px を足して 628px */
}

/* ---------- Where カード（配置は 2026-09-08 のモックアップから実測。横 1.185 倍・縦 1.146 倍で換算） ---------- */

.whats--where { padding: 0; }
.where__mark {                       /* 右上の GLOBE & MY MAP */
  position: absolute;
  left: 113.5px;
  top: -21.04px;
  width: 161.6px;
  height: auto;
  transform: rotate(6deg);
}
/* 青いパネル：マスク画像の余白（上 6.7% / 下 8.9% / 左右 2.1%）を見込んで、箱を波の山の高さ 226px に合わせる */
.where__wave-wrap {
  position: relative;
  height: 226px;
  margin: 28.7px 0 0;
}
.where__wave {
  position: absolute;
  left: -23.7px;
  top: -29.9px;                      /* 12px 上へ（見出し画像に重ならない範囲） */
  width: 476px;
  height: 267.8px;
  clip-path: inset(0 114.3px 0 29.7px);   /* カードの縁の 6px 内側で左右を切る */
  background: var(--blue);            /* 2026-09-08：4 つのパネルとも What's と同じ青に */
  -webkit-mask-image: url("../assets/where-blob.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/where-blob.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.where__title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 38.04px;
  margin: 0;
  padding-left: 15.2px;              /* 中心をカードの中心より 9.6px 右に */
  text-align: center;
  color: var(--white);
  font-family: "Dela Gothic One", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 23.8px;
  line-height: 31.875px;
  letter-spacing: 0.02em;
}
.where__line { display: block; }
.where__sub {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 143.1px;
  margin: 0;
  padding-left: 24px;                /* 中心を 21px 右に */
  text-align: center;
  color: var(--white);
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 19.5px;
  letter-spacing: 0.02em;
}
.where__sticker {
  position: absolute;
  z-index: 3;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.where__sticker--ice     { left: -6px;     top: -16.1px; width: 79.9px; transform: rotate(0.8deg); }
.where__sticker--thought { left: 306.63px; top: -33.37px;  width: 110.63px; }
.where__sticker--ramen   { left: -31.1px; top: 68.8px;  width: 89.6px; transform: rotate(4.4deg); }
.where__sticker--coffee  { left: 262.5px; top: 143px; width: 79.2px;   transform: rotate(5deg); }
.where__sticker--onsen   { left: 21.8px;  top: 135.4px; width: 75.4px; transform: rotate(-6.3deg); }

.where__body {
  position: relative;
  height: 323.3px;                   /* 見出し行・パネルと合わせてカードを 628px にする値 */
}
.where__globe-line {                 /* 英文の後ろの、線画の地球 */
  position: absolute;
  z-index: 1;
  left: 208.8px;
  top: 77.5px;
  width: 173.8px;
  height: auto;
  pointer-events: none;
}
.where__screen {                     /* Globe の画面 */
  position: absolute;
  z-index: 4;
  left: 13.57px;
  top: 34.05px;
  width: 139.65px;
  height: auto;
}
.where__jp {
  position: absolute;
  z-index: 2;
  right: -1px;
  margin: 0;
  text-align: right;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 10.3px;                 /* モックアップの行の幅（17 文字で 165px）に合わせた */
  line-height: 14.85px;
  white-space: nowrap;
  color: var(--blue);
}
.where__jp span { display: block; transform: scale(1, 0.8); transform-origin: center; }   /* 日本語本文のルール：縦だけ 80% に圧縮 */
.where__jp:nth-of-type(1) { top: 3.9px;   right: 11px; }
.where__jp:nth-of-type(2) { top: 50.4px;   right: 10px; }
.where__en {
  position: absolute;
  z-index: 2;
  right: -1px;
  margin: 0;
  text-align: right;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 13.32px;
  line-height: 14.4px;
  white-space: nowrap;
  color: var(--blue);
}
.where__en:nth-of-type(3) { top: 97.1px;   right: 11.9px; }
.where__en:nth-of-type(4) { top: 149.2px;   right: 12.45px; }
.where__earth {                      /* 地球儀の画面。カードの下端から大きく下にはみ出す */
  position: absolute;
  z-index: 2;
  left: 255.94px;
  top: 216.81px;
  width: 83.51px;
  height: auto;
  transform: rotate(0deg);
}
.where__exif {                       /* MY EXIF MAP のカード */
  position: absolute;
  z-index: 4;
  left: 163.87px;
  top: 204.28px;
  width: 85.05px;
  height: auto;
  transform: rotate(0deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}
.where__arrow {                      /* ピクセルの矢印（cursor.png を左右反転して右上向きに） */
  position: absolute;
  z-index: 4;
  left: 150.6px;
  top: 372.7px;
  width: 20px;
  height: auto;
  transform: scaleX(-1) rotate(-25deg);
  pointer-events: none;
}

/* ---------- Why カード（同じモックアップから実測） ---------- */

.whats--why { padding: 0; }
.why__mark {                         /* 右上の ARTBOARD */
  position: absolute;
  left: 104.1px;
  top: 10.07px;
  width: 196.2px;
  height: auto;
  transform: rotate(-1.5deg);
}
.why__panel-wrap {
  position: relative;
  height: 275.4px;                   /* パネル（下のタブ込み）の下端まで */
}
.why__panel {                        /* 緑のパネル。形は why-panel.png（透明背景）をマスクに使う */
  position: absolute;
  z-index: 1;
  left: 7.4px;
  top: 22.6px;
  width: 358.9px;                    /* 高さ 252.4px × 画像の縦横比（1500:1055） */
  height: 252.4px;
  background: var(--blue);            /* 2026-09-08：緑から What's と同じ青に */
  -webkit-mask-image: url("../assets/why-panel.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("../assets/why-panel.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}
.why__title {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 72.8px;
  margin: 0;
  padding-left: 29.6px;              /* 中心を 6.8px 右に */
  text-align: center;
  color: var(--white);
  font-family: "Dela Gothic One", "Hiragino Sans", sans-serif;
  font-weight: 400;
  font-size: 23.8px;
  line-height: 30.6px;
  letter-spacing: 0.02em;
}
.why__line { display: block; }
.why__sub {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 173.7px;
  margin: 0;
  padding-left: 28.2px;              /* 中心を 13.1px 右に */
  text-align: center;
  color: var(--white);
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 19.5px;
  letter-spacing: 0.02em;
}
.why__today {                        /* Today のラベル（白い丸枠） */
  position: absolute;
  z-index: 3;
  left: 23.5px;
  top: 27.9px;
  padding: 8px 7px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  transform: rotate(-5deg);
}
.why__daisy {                        /* スマイルのデイジー。右上の枠にかかる */
  position: absolute;
  z-index: 4;
  left: 279.59px;
  top: 9.25px;
  width: 84.63px;
  height: auto;
  pointer-events: none;
  transform: rotate(26deg);
}
.why__bear {                         /* くまのぬいぐるみのステッカー。右の画面端で切れる */
  position: absolute;
  z-index: 6;
  left: 256.1px;
  top: 155.4px;
  width: 124.2px;
  height: auto;
  transform: rotate(28.8deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.why__hand {                         /* 指さす手。右の画面外から入ってくる。最前面 */
  position: absolute;
  z-index: 7;
  left: -41.29px;
  top: 147.47px;
  width: 487.98px;
  max-width: none;
  height: auto;
  transform: rotate(-2deg);
  pointer-events: none;
}
.why__paw {                          /* 肉球のホロステッカー。左の画面端にかかる */
  position: absolute;
  z-index: 8;
  left: -96.9px;
  top: 112.6px;
  width: 72.1px;
  height: auto;
  transform: rotate(-15deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
  pointer-events: none;
}
.why__body {
  position: relative;
  height: 302.6px;                   /* カードを 628px にする値 */
}
.why__jp {
  position: absolute;
  z-index: 2;
  left: 16px;
  top: 93.6px;
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 10px;                   /* モックアップの行の幅（13 文字で 127px）に合わせた */
  line-height: 14.9px;
  white-space: nowrap;
  color: var(--blue);
}
.why__jp span { display: block; transform: scale(1, 0.8); transform-origin: center; }     /* 同上 */
.why__en {
  position: absolute;
  z-index: 2;
  left: 18px;
  top: 165.4px;
  margin: 0;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 13.2px;                 /* Where の英文より少し小さい（モックアップの実測） */
  line-height: 17px;
  white-space: nowrap;
  color: var(--blue);
}
.why__flower {                       /* 線画の花（flower-line.png） */
  position: absolute;
  z-index: 1;
  left: 94.2px;
  top: 197.4px;
  width: 71.9px;
  height: auto;
}
.why__suitcase {                     /* スーツケース（art-2.png）。左の枠にかかり、下端からはみ出す */
  position: absolute;
  z-index: 2;
  left: -34.4px;
  top: 258.1px;
  width: 184.7px;
  height: auto;
}
.why__mc-purple {                    /* 紫のメモリーカード（赤の後ろ） */
  position: absolute;
  z-index: 2;
  left: 249.5px;
  top: 143.36px;
  width: 92.29px;
  height: auto;
  transform: rotate(-22.7deg);
}
.why__mc-red {                       /* 赤いメモリーカード。カードの下端からはみ出す */
  position: absolute;
  z-index: 3;
  left: 253.93px;
  top: 275.06px;
  width: 82.95px;
  height: auto;
  transform: rotate(28deg);
}
.why__art1 {                         /* もう 1 枚のメモリーカード（art-1.png）。赤いカードより手前 */
  position: absolute;
  z-index: 5;
  left: 184px;
  top: 207px;
  width: 116px;
  height: auto;
  transform: rotate(-10deg);
}

/* ---------- カード列の下のナビ：進捗バー＋キャラクター＋吹き出し ---------- */
/* 横スライドの間だけ下から出てくる。PC ではスマホ枠の下端、スマホでは画面の下端に固定 */

.deck-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;                      /* スマホ枠の下 2rem は画面の外なので、その上に */
  z-index: 5;
  padding: 36px 30px 14px;
  background: rgba(247, 246, 244, 0.94);
  border-top: 1px solid var(--blue);
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.deck-nav.is-shown { transform: none; }
.deck-nav { --face: 1; }             /* キャラクターの向き：1 = 右向き（進む）、-1 = 左向き（戻る） */
.deck-nav.is-back { --face: -1; }
.deck-nav__track {                   /* トラック（白い溝） */
  position: relative;
  height: 8px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: var(--white);
}
.deck-nav__fill {                    /* 進んだ分の青 */
  position: absolute;
  left: -1.5px;
  top: -1.5px;
  bottom: -1.5px;
  width: 0;
  min-width: 8px;
  border-radius: 999px;
  background: var(--blue);
}
.deck-nav__point {                   /* カードごとの目印。押すとそのカードへ */
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  padding: 0;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.deck-nav__point.is-active { background: var(--lime); }
.deck-nav__point:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.deck-nav__char {                    /* トラックの上を進むキャラクター（進んだ分の右端に立つ）。中に 2 枚の絵を重ねて切り替える */
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 46px;
  height: 40.6px;                    /* 画像の縦横比（1306:1152） */
  margin-left: -23px;
  pointer-events: none;
  opacity: 0;                        /* 横スライドが始まると、その場でふわっと現れる */
  transform: translateY(6px) scaleX(var(--face));
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.deck-nav__char img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}
.deck-nav__char-run { opacity: 0; }
.deck-nav.is-moving .deck-nav__char-run  { opacity: 1; }     /* スクロール中は走る */
.deck-nav.is-moving .deck-nav__char-idle { opacity: 0; }
.deck-nav.is-shown .deck-nav__char {
  opacity: 1;
  transform: scaleX(var(--face));
  transition-delay: 0.25s;           /* バーが出てから */
}
.deck-nav.is-shown.is-away .deck-nav__char {   /* 最後のカードを過ぎたら、進行方向の斜め上へ飛び立って消える */
  opacity: 0;
  transform: translate(calc(44px * var(--face)), -70px) rotate(calc(-14deg * var(--face))) scaleX(var(--face));
  transition-duration: 0.7s, 0.8s;
  transition-delay: 0s;
}
.deck-nav__bubble {                  /* キャラクターの上の吹き出し。位置としっぽ（--tail）は JS が決める */
  position: absolute;
  left: 0;
  bottom: 46px;
  padding: 5px 9px 4px;
  border: 1.5px solid var(--blue);
  border-radius: 10px;
  background: var(--white);
  color: var(--blue);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;                        /* キャラクターの少し後に現れ、飛び立つときはすぐ消える */
  transition: opacity 0.3s ease;
}
.deck-nav.is-shown .deck-nav__bubble { opacity: 1; transition-delay: 0.4s; }
.deck-nav.is-shown.is-away .deck-nav__bubble { opacity: 0; transition-delay: 0s; }
.deck-nav__bubble span {             /* 日本語本文のルール：縦だけ 80% */
  display: block;
  transform: scale(1, 0.8);
  transform-origin: center;
}
.deck-nav__bubble.is-pop span { animation: bubble-pop 0.35s ease-out; }
@keyframes bubble-pop {
  from { opacity: 0; transform: scale(1, 0.8) translateY(6px); }
  to   { opacity: 1; transform: scale(1, 0.8); }
}
.deck-nav__bubble::before,            /* 吹き出しのしっぽ（青い縁と白い中身）。--tail の位置に */
.deck-nav__bubble::after {
  content: "";
  position: absolute;
  left: calc(var(--tail, 20px) - 5px);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.deck-nav__bubble::before { bottom: -7px; border-top: 7px solid var(--blue); }
.deck-nav__bubble::after  { bottom: -5px; border-top: 7px solid var(--white); }

/* ---------- 確認用：URL の末尾に ?labels を付けると各パーツに名前を出す ---------- */

.debug-tag {
  position: absolute;
  z-index: 99;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(255, 0, 128, 0.85);
  color: #fff;
  font: 700 9px/1.3 "Plus Jakarta Sans", sans-serif;
  white-space: nowrap;
  pointer-events: none;
}
.debug-outline { outline: 1px dashed rgba(255, 0, 128, 0.9); outline-offset: -1px; }
.edit-target { cursor: move; touch-action: none; }   /* 指でもドラッグできるように */
.edit-selected { outline: 2px solid #ff0080 !important; outline-offset: 2px; }
.edit-panel {                        /* ?edit の操作パネル */
  position: fixed;
  left: 10px;
  bottom: 10px;
  z-index: 1001;
  width: 300px;
  padding: 12px 14px;
  border: 2px solid #ff0080;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #222;
  font: 12px/1.6 -apple-system, "Hiragino Sans", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.edit-panel__title { font-weight: 700; font-size: 13px; color: #ff0080; }
.edit-panel__hint { font-size: 11px; color: #666; margin-bottom: 6px; }
.edit-panel__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.edit-panel button {
  font: inherit;
  padding: 2px 8px;
  border: 1px solid #ff0080;
  border-radius: 6px;
  background: #fff;
  color: #ff0080;
  cursor: pointer;
}
.edit-panel__out {
  width: 100%;
  margin-top: 6px;
  font: 11px/1.5 Menlo, monospace;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px;
  box-sizing: border-box;
}
.debug-box {                         /* ?debug のときの計測表示 */
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1000;
  max-width: 100%;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #7fff00;
  font: 11px/1.4 Menlo, monospace;
  white-space: pre-wrap;
  pointer-events: none;
}

/* ---------- モバイル用メニュー（右上に固定） ---------- */

.menu-btn {
  display: none;                     /* モバイルでだけ表示（下のメディアクエリで flex にする） */
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 64px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: var(--blue);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: 0 6px 18px rgba(28, 40, 180, 0.25);
  -webkit-tap-highlight-color: transparent;
  opacity: 0;                        /* ヒーロー表示中は隠す。コンテンツがせり上がったら右からフェードイン */
  transform: translateX(28px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.menu-btn.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.menu-btn__bar {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s ease;
}
.menu-btn.is-open .menu-btn__bar:first-child { transform: translateY(5px) rotate(45deg); }
.menu-btn.is-open .menu-btn__bar:last-child  { transform: translateY(-5px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.menu {
  display: none;                     /* 開いたときだけ表示（モバイルのみ） */
  position: fixed;
  top: 62px;
  right: 14px;
  z-index: 59;
  min-width: 210px;
  padding: 18px 22px 20px;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(28, 40, 180, 0.18);
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  animation: menu-in 0.2s ease both;
}
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.menu__item {
  position: relative;
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 0.25em;
  margin: 0;
  font: inherit;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
}
.menu__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0.1em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.menu__item[aria-current="page"]::after { transform: scaleX(1); }
.menu__item:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
.menu__badge { margin-top: 4px; }
.menu__badge img { width: 120px; }

/* ---------- Support / Privacy：文章のカード ---------- */
/* What's / How と同じ「白いカード＋青い枠＋左上のタブ」。文字はすべて青、本文は Noto Sans JP、英文は Imbue */

.doc {
  position: relative;
  margin: 0 0 14px;
  border: 1px solid var(--blue);
  border-radius: 22px;
  background: var(--white);
  color: var(--blue);
  overflow: hidden;
}
.doc__head {
  display: flex;
  align-items: stretch;
  min-height: 48px;
  border-bottom: 1px solid var(--blue);
}
.doc__tab {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px 11px;
  border-right: 1px solid var(--blue);
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}
.doc__title {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 16px;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.doc__title[lang="ja"] {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
}
.doc__body { padding: 18px 18px 20px; }
.doc__body--flush { padding: 2px 18px; }
.doc a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.doc__hero {                         /* Privacy の「Your moments stay yours.」 */
  margin: 2px 0 12px;
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.02;
  letter-spacing: 0.01em;
}
.doc__lead {
  margin: 0 0 14px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.8;
}
.doc__h {
  margin: 0 0 6px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
}
.doc__h--en {
  font-family: "Imbue", "Times New Roman", serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
}
.doc__text {
  margin: 0 0 8px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.8;
}
.doc__text--en {
  font-family: "Imbue", "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}
.doc__mail { margin: 16px 0 4px; font-weight: 700; font-size: 14px; }

/* ---------- 公開用の「準備中」カード（About）。build.py が public/ に入れるもので、ローカルの確認画面には出ない ---------- */
.doc--wip { margin-bottom: 0; }
.doc__body--foot {                   /* スクリーンショットの下：ヒントの文と App Store バッジを中央に */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 6px;
}
.doc__text--hint { margin: 0; font-size: 11px; letter-spacing: 0.02em; opacity: 0.8; }
.shots {                             /* スクリーンショットの横並び。横にスワイプ／スクロールで次の画面へ */
  display: flex;
  gap: 10px;
  padding: 2px 18px 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;         /* body は縦スワイプだけなので、この帯の中では横スワイプも許可する */
}
.shots::-webkit-scrollbar { display: none; }
.shots img {
  flex: 0 0 auto;
  width: 214px;
  height: auto;
  border: 1px solid var(--blue);
  border-radius: 16px;
  background: var(--paper);
  scroll-snap-align: start;
}
.shots__badge { display: inline-block; line-height: 0; border-radius: 12%/30%; }
.shots__badge img { width: 140px; height: auto; }

/* 青い丸ボタン（ティッカーと同じ青地にライム色の文字） */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--lime);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: transform 0.2s ease;
}
.doc .btn { color: var(--lime); text-decoration: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn__arrow { font-size: 16px; }

/* 番号つきの箇条書き（01 02 …） */
.list { list-style: none; margin: 4px 0 0; padding: 0; }
.list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(28, 40, 180, 0.25);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.7;
}
.list li:first-child { border-top: 0; }
.list__num {
  flex: none;
  min-width: 16px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--orange);
}

/* よくある質問：タップで開閉。右端の「＋」が開くと「−」になる */
.faq { border-top: 1px solid rgba(28, 40, 180, 0.25); }
.faq:first-child { border-top: 0; }
.faq__q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.7;
  -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__text { flex: 1 1 auto; }
.faq__mark {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  align-self: center;
}
.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.25s ease;
}
.faq__mark::after { transform: rotate(90deg); }
.faq[open] .faq__mark::after,
.doc--details[open] .faq__mark::after { transform: rotate(0deg); }
.faq__a {
  margin: -2px 0 14px 26px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.8;
}

/* Privacy 要約：制定日・運営、3 つの約束 */
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid rgba(28, 40, 180, 0.25);
  border-bottom: 1px solid rgba(28, 40, 180, 0.25);
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 11.5px;
  line-height: 1.6;
}
.meta__row { display: flex; gap: 8px; }
.meta dt { font-weight: 700; }
.meta dd { margin: 0; }
.points { list-style: none; margin: 0; padding: 0; }
.points__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0 0;
  margin-top: 10px;
  border-top: 1px solid rgba(28, 40, 180, 0.25);
}
.points__item:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.points__title {
  display: block;
  margin-bottom: 2px;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.6;
}
.points p {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.75;
}

/* ポリシー本文 */
.policy {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.85;
}
.policy p { margin: 0 0 10px; }
.policy strong { font-weight: 700; }
.policy__intro {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  background: rgba(28, 40, 180, 0.04);
}
.policy__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 8px;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.5;
}
.policy__h .list__num {                /* 見出しの番号は、ラベルと同じ青い小さな枠に入れる */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border: 1.5px solid var(--blue);
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--blue);
}
.policy__meta {
  margin: 0 0 14px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.6;
}
.data { list-style: none; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.data__item { padding: 10px 12px; border: 1px solid var(--blue); border-radius: 12px; }
.data__name { display: block; margin-bottom: 4px; font-weight: 700; font-size: 12.5px; }
.data__row { display: block; font-size: 11.5px; line-height: 1.7; }
.data__k {
  display: inline-block;
  margin-right: 8px;
  padding: 0 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  vertical-align: 1px;
}
.bullets { margin: 0 0 10px; padding-left: 1.2em; }
.bullets li { margin: 2px 0; }

/* 英語版のポリシー本文 */
.policy--en { font-family: "Imbue", "Times New Roman", serif; font-size: 15px; line-height: 1.55; }
.policy--en .policy__h { font-family: var(--font); font-size: 13.5px; }
.policy--en .data__name { font-family: var(--font); font-size: 12.5px; }
.policy--en .data__row { font-size: 14px; }
.policy--en .data__k { font-family: var(--font); vertical-align: 2px; }

/* 折りたたみ式のカード（英語版ポリシー） */
.doc--details > summary { cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.doc--details > summary::-webkit-details-marker { display: none; }
.doc--details:not([open]) > summary { border-bottom: 0; }
.doc__head--summary .faq__mark { margin-right: 18px; }

/* ---------- 中間サイズ：スマホ枠を少し細く ---------- */

@media (max-width: 1180px) {
  :root { --phone-w: 360px; }
}

/* ---------- タブレット幅（601〜1180px）：PC 版のレイアウトを 1280×840 で組み、画面幅に合わせて縮小して上に表示 ---------- */

@media (min-width: 601px) and (max-width: 1180px) {
  :root { --phone-w: 400px; }
  body { overflow: hidden; }
  .site {
    width: 1280px;
    height: 840px;
    zoom: var(--fit, 0.5);           /* --fit は JS が 画面幅 ÷ 1280 で入れる */
    overflow: hidden;                /* 下端で切る（その下は何も表示しない） */
  }
}

/* ---------- スマホ実機：[帯＋ヒーロー＋ティッカー] を固定し、その上にコンテンツがせり上がる ---------- */

@media (max-width: 600px) {
  /* ページ全体の背景は青（時計や電池の帯、引っ張ったときの余白も青になる）。
     方眼は固定されるヒーローのかたまりにだけ敷くので、せり上がるときに動かない */
  html { background: var(--blue); }
  body {
    background: var(--blue);
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: pan-y pinch-zoom;  /* 横方向のジェスチャーで画面が動かないように */
  }

  /* 並び順：.main の箱を無くして、ヒーローのかたまり / スマホ画面を縦に並べる */
  .site {
    height: auto;
    display: flex;
    flex-direction: column;
    overflow-x: clip;                /* はみ出した要素のぶん横にスクロールしないように（clip なら固定表示も効く） */
  }
  .main { display: contents; }
  .m-hero { order: 1; }
  .phone  { order: 3; }
  .barcode, .footer, .hand, .nav, .badge, .page__logo { display: none; }
  .ticker { display: none; }         /* PC 用の長文ティッカーは使わない */

  /* 帯＋ヒーロー＋ティッカーをひとかたまりで画面上部に固定 */
  .m-hero {
    display: block;
    position: sticky;
    top: 0;
    z-index: 0;
    background-color: var(--paper);
    background-image: var(--grid-image);
    background-size: 6px 6px;
  }
  .m-header { display: flex; }
  .ticker--mobile { display: flex; height: 36px; font-size: 13px; }

  /* ヒーロー（モバイル専用）。基準キャンバスは 390 × 530（手袋の下に 60px の余白を含む） */
  .stage {
    display: block;
    padding: 0;
    overflow: hidden;                /* 右に突き抜ける腕を切る */
    container-type: normal;
  }
  .comp {
    width: 100%;
    aspect-ratio: 390 / 530;
    left: 0;
  }
  .glove     { display: block; left: 7%; top: 46.1%; width: 100%; }
  .logo      { left: 7%;   top: 10.4%; width: 42%; }
  .daisy     { left: 42%;  top: 6%;    width: 10%; }
  .character { left: 6%;   top: 32.4%; width: 20%; }
  .collage   { left: 23%;  top: 12.2%; width: 67%; }
  .keycap-btn{ left: 66%;  top: 53.8%; width: 12%; }
  .cursor    { left: 82%;  top: 58.8%; width: 5.5%; }

  /* スマホ画面の中身：枠なし全幅。固定されたヒーローより手前に置き、上にせり上がって覆う */
  .phone {
    position: relative;
    z-index: 1;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .screen { height: auto; overflow: visible; }
  .page { padding: 24px 22px 60px; }

  /* カードの列：画面幅いっぱいに広げる（余白はページの左右余白と同じ 22px） */
  .deck { margin: 0 -22px; }
  .deck__slot { --slot-pad: 22px; }

  /* 下のナビは画面の下端に固定（メニューより後ろ） */
  .deck-nav {
    position: fixed;
    bottom: 0;
    z-index: 58;
    padding: 36px 22px calc(12px + env(safe-area-inset-bottom));
  }

  /* 右上のメニュー（常に手前） */
  .menu-btn { display: flex; top: 10px; }
  .menu { top: 66px; }
  .menu:not([hidden]) { display: flex; }
}

/* ---------- 動きを減らす設定 ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker__track,
  .daisy, .character, .hand, .cursor,
  .pop { animation-duration: 0.4s; }
  .menu { animation: none; }
  .nav__item::after, .badge, .keycap { transition: none; }
}
