/* ==========================================================================
   とろふぃ～ゆ 公式サイト — style.css
   モバイルファースト / CSS変数で色・余白・角丸を一元管理
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* color */
  --color-main: #00FFFF;
  --color-accent: #00BFCA;
  --color-accent-deep: #00707A;      /* 白背景上の文字用（コントラスト確保） */
  --color-lavender: #E7DDF5;
  --color-lavender-deep: #9C86C4;
  --color-pink-soft: #D9FDFE;
  --color-sky-soft: #E3F1FB;          /* ロゴ・立ち絵の水色と調和させる補助色 */
  --color-bg: #F4FFFF;
  --color-card: #FFFFFF;
  --color-text: #3D6168;
  --color-text-strong: #1E4A52;
  --color-text-sub: #476B72;
  --color-border: #C9EEF1;
  --color-on-main: #00383F;           /* シアン地の上の文字色 */

  /* shadow */
  --shadow-soft: 0 6px 18px rgba(0, 191, 202, .14);
  --shadow-lift: 0 10px 26px rgba(0, 191, 202, .22);
  --shadow-inset: inset 0 0 0 1px var(--color-border);

  /* radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;

  /* layout */
  --header-height: 52px;
  --nav-height: 62px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --content-max: 1120px;
  --tap-min: 44px;

  /* motion */
  --ease-soft: cubic-bezier(.2, .7, .3, 1);
  --duration-fast: 150ms;
  --duration-base: 220ms;

  /* type */
  --font-base: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--safe-top) + 8px);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-base);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(60vmax 50vmax at 100% -10%, rgba(231, 221, 245, .75), transparent 60%),
    radial-gradient(55vmax 45vmax at -10% 105%, rgba(217, 253, 254, .9), transparent 60%),
    radial-gradient(40vmax 30vmax at 0% 30%, rgba(227, 241, 251, .55), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--nav-height) + var(--safe-bottom));
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -60px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: var(--color-text-strong);
  color: #fff;
  font-weight: 700;
  transition: top var(--duration-fast);
}
.skip-link:focus { top: calc(var(--safe-top) + 8px); }

.icon-svg {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

/* ---------- 3. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: calc(var(--header-height) + var(--safe-top));
  padding-top: var(--safe-top);
  background: rgba(255, 249, 252, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(241, 220, 233, .7);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--header-height);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.header-back {
  display: none;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-left: calc(var(--space-2) * -1);
  border: 0;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--color-accent-deep);
  cursor: pointer;
}
.header-back .icon-svg { width: 24px; height: 24px; }
body:not([data-page="home"]) .header-back { display: grid; }

.header-logo {
  display: flex;
  align-items: center;
  height: var(--tap-min);
}
.header-logo img { height: 38px; width: auto; }

.header-title {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--color-accent-deep);
}

.top-nav { display: none; }

/* ---------- 4. Bottom navigation (mobile / tablet) ---------- */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 18px rgba(0, 191, 202, .08);
}

.bottom-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: var(--nav-height);
  max-width: 560px;
  margin: 0 auto;
}

.bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 100%;
  min-height: var(--tap-min);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-text-sub);
  transition: color var(--duration-fast);
}

.bottom-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  border-radius: var(--radius-full);
  transition: background-color var(--duration-base) var(--ease-soft), transform var(--duration-fast);
}
.bottom-icon .icon-svg { width: 21px; height: 21px; }

.bottom-link[aria-current="page"] { color: var(--color-accent-deep); }
.bottom-link[aria-current="page"] .bottom-icon { background: var(--color-pink-soft); }
.bottom-link:active .bottom-icon { transform: scale(.9); }

/* ---------- 5. Main / page transition ---------- */
.page-main {
  display: block;
  transition: opacity var(--duration-base) var(--ease-soft), transform var(--duration-base) var(--ease-soft);
}
.page-main.is-leaving { opacity: 0; transform: translateY(6px); }
.page-main.is-entering { opacity: 0; transform: translateY(-4px); transition: none; }

/* ---------- 6. Shared components ---------- */
.page-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-10);
}

.page-head {
  margin-bottom: var(--space-6);
  text-align: center;
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--color-accent-deep);
}
.page-eyebrow .icon-svg { width: 14px; height: 14px; }
.page-title {
  margin-top: 2px;
  font-size: clamp(22px, 5.6vw, 30px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-strong);
}
.page-title:focus { outline: none; }
.page-lead {
  margin-top: var(--space-2);
  font-size: 14px;
  color: var(--color-text-sub);
}

.section-block + .section-block { margin-top: var(--space-8); }
.section-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-strong);
}
.section-title::before {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main), var(--color-lavender-deep));
  box-shadow: 0 0 0 4px var(--color-pink-soft);
}
.section-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-sub);
}

.text-card { padding: var(--space-5); }
.soft-card {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-main), var(--color-accent));
  color: var(--color-on-main);
  font-weight: 700;
  letter-spacing: .04em;
  box-shadow: 0 8px 18px rgba(0, 191, 202, .35);
  cursor: pointer;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.pill-button:active { transform: scale(.97); }
.pill-button .icon-svg { width: 18px; height: 18px; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap-min);
  padding: 0 var(--space-5);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  color: var(--color-accent-deep);
  font-weight: 700;
  cursor: pointer;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 12px;
  border-radius: var(--radius-full);
  background: var(--color-pink-soft);
  color: var(--color-accent-deep);
  font-size: 12.5px;
  font-weight: 700;
}
.tag-chip:nth-child(even) { background: var(--color-lavender); color: #5B4787; }

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-5);
  text-align: center;
  background:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.8) 0 6px, transparent 7px),
    radial-gradient(circle at 88% 78%, rgba(255,255,255,.7) 0 9px, transparent 10px),
    linear-gradient(135deg, var(--color-pink-soft), var(--color-lavender));
  border-radius: var(--radius-lg);
}
.cta-text { font-size: 14px; color: var(--color-text-strong); }

.empty-note {
  padding: var(--space-5);
  text-align: center;
  font-size: 13.5px;
  color: var(--color-text-sub);
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
}

/* SNS icon row */
.sns-row {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
}
.sns-icon {
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  border-radius: 50%;
  background: var(--color-card);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  transition: transform var(--duration-fast), background-color var(--duration-fast);
}
.sns-icon .icon-svg { width: 19px; height: 19px; }
.sns-icon:active { transform: scale(.92); }

/* ---------- 7. Footer ---------- */
.site-footer {
  padding: var(--space-6) var(--space-4) var(--space-8);
  text-align: center;
  font-size: 12px;
  color: var(--color-text-sub);
}
body[data-page="home"] .site-footer { display: none; }

/* ==========================================================================
   8. HOME — 1画面完結レイアウト
   ========================================================================== */
body[data-page="home"] { overflow-x: hidden; }

.home-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.6dvh, 14px);
  max-width: 560px;
  height: calc(100dvh - var(--header-height) - var(--safe-top) - var(--nav-height) - var(--safe-bottom));
  min-height: 410px;              /* これより低い画面ではスクロールを許容 */
  margin: 0 auto;
  padding: clamp(8px, 1.6dvh, 16px) var(--space-4) clamp(10px, 1.8dvh, 16px);
}

/* --- hero --- */
.home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(4px, 1dvh, 10px);
  text-align: center;
}

.hero-visual {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: 92px;
  container-type: size;
  display: grid;
  place-items: center;
}

.hero-frame {
  position: relative;
  width: min(66cqw, 100cqh, 300px);
  aspect-ratio: 1;
}
.hero-frame::before {           /* やわらかいリング */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--color-main), var(--color-lavender), #CFE6F7, var(--color-main));
  opacity: .9;
}
.hero-frame::after {            /* 泡モチーフ */
  content: "";
  position: absolute;
  inset: -14%;
  background:
    radial-gradient(circle at 8% 22%, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 6% 22%, var(--color-lavender) 0 7px, transparent 8px),
    radial-gradient(circle at 94% 70%, var(--color-pink-soft) 0 9px, transparent 10px),
    radial-gradient(circle at 88% 12%, var(--color-sky-soft) 0 6px, transparent 7px),
    radial-gradient(circle at 16% 88%, var(--color-pink-soft) 0 5px, transparent 6px);
  pointer-events: none;
}
.hero-frame picture { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.hero-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: var(--shadow-lift);
}

.hero-text { flex: none; }
.hero-name {
  font-size: clamp(22px, 3.3dvh, 28px);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-strong);
  letter-spacing: .04em;
}
.hero-role {
  margin-top: 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--color-accent-deep);
}
.hero-catch {
  margin-top: 2px;
  font-size: 13px;
  color: var(--color-text-sub);
}
.home-hero .sns-row { flex: none; }

/* 自己紹介（吹き出し） */
.hero-intro {
  position: relative;
  margin: 10px auto 0;
  padding: 7px 14px;
  max-width: 34em;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .85);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-strong);
}
.hero-intro::before {            /* 吹き出しのしっぽ */
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--color-border);
  border-top: 1px solid var(--color-border);
  transform: translateX(-50%) rotate(45deg);
}
.intro-line { display: block; }
.hero-intro .phrase { display: inline-block; }
.intro-more { display: none; }
.intro-dream { margin-top: 4px; color: var(--color-accent-deep); }
/* スマホでは自己紹介を優先し、キャッチコピーは PC・ABOUT で表示 */
.hero-catch { display: none; }

/* --- main menu (2x2) --- */
.home-menu {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.menu-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: clamp(58px, 9dvh, 76px);
  padding: 8px 12px;
  overflow: hidden;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  transition: transform var(--duration-fast) var(--ease-soft), box-shadow var(--duration-base);
}
.menu-card::after {               /* 角のきらめき */
  content: "";
  position: absolute;
  right: -18px; top: -18px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--card-tint, var(--color-pink-soft));
  opacity: .7;
}
.menu-card:active { transform: scale(.96); box-shadow: var(--shadow-inset); }

.menu-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 14px;
  background: var(--card-tint, var(--color-pink-soft));
  color: var(--card-ink, var(--color-accent-deep));
}
.menu-icon .icon-svg { width: 21px; height: 21px; }

.menu-text { position: relative; z-index: 1; min-width: 0; line-height: 1.3; }
.menu-en {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-text-strong);
}
.menu-ja {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-sub);
}

[data-tone="lavender"] { --card-tint: var(--color-lavender); --card-ink: #5B4787; }
[data-tone="sky"]      { --card-tint: var(--color-sky-soft); --card-ink: #36658A; }
[data-tone="peach"]    { --card-tint: #FDE8E1; --card-ink: #8A4848; }

/* --- latest --- */
.latest-card {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px 8px 8px;
  background: var(--color-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft), var(--shadow-inset);
  transition: transform var(--duration-fast);
}
.latest-card:active { transform: scale(.98); }
.latest-thumb {
  position: relative;
  flex: none;
  width: 72px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-lavender);
}
.latest-thumb img { width: 100%; height: 100%; object-fit: cover; }
.latest-thumb .icon-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px; height: 18px;
  color: #fff;
  fill: #fff;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.latest-body { flex: 1; min-width: 0; line-height: 1.35; }
.latest-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--color-accent-deep);
}
.latest-label::before {
  content: "PICK";
  padding: 0 6px;
  border-radius: var(--radius-full);
  background: var(--color-main);
  color: var(--color-on-main);
  font-size: 9.5px;
  letter-spacing: .08em;
}
.latest-title {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-strong);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.latest-arrow { flex: none; color: var(--color-accent); }
.latest-arrow .icon-svg { width: 18px; height: 18px; }

/* --- HOME: 画面の低いスマホ（iPhone SE 等）→ 横並びヒーロー --- */
@media (max-height: 620px) and (max-width: 959px) {
  .home-hero {
    display: grid;
    align-content: center;
    justify-content: center;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: var(--space-4);
    row-gap: 6px;
    align-items: center;
    text-align: left;
  }
  .hero-visual {
    grid-row: 1 / 3;
    width: auto;
    height: auto;
    min-height: 0;
    container-type: normal;
  }
  .hero-frame { width: clamp(96px, min(32vw, 22dvh), 150px); }
  .hero-text { align-self: end; }
  .home-hero .sns-row { justify-content: flex-start; align-self: start; gap: 6px; }
  .home-hero .sns-icon { width: 40px; height: 40px; }
  .hero-name { font-size: 22px; }
  .hero-intro { margin: 6px 0 0; padding: 6px 10px; font-size: 11.5px; text-align: left; }
  .hero-intro::before { left: 22px; }
}

@media (max-height: 560px) and (max-width: 959px) {
  .hero-catch { display: none; }
  .menu-card { min-height: 52px; }
  .menu-icon { width: 34px; height: 34px; border-radius: 12px; }
}

/* 縦に余裕のあるスマホでは自己紹介を1行多く表示 */
@media (min-height: 800px) and (max-width: 959px) {
  .intro-more:not(.intro-dream) { display: block; }
}

/* --- HOME: 幅の狭いスマホ（320〜359px） --- */
@media (max-width: 359px) {
  .home-layout { padding-left: 12px; padding-right: 12px; }
  .home-menu { gap: 8px; }
  .menu-card { gap: 8px; padding: 8px 10px; }
  .menu-icon { width: 32px; height: 32px; border-radius: 11px; }
  .menu-icon .icon-svg { width: 18px; height: 18px; }
  .menu-en { font-size: 13.5px; letter-spacing: .06em; }
  .menu-ja { font-size: 10px; letter-spacing: -.02em; }
  .hero-catch { font-size: 12px; }
  .hero-intro { font-size: 11px; padding: 6px 10px; }
}

/* ==========================================================================
   9. Sub pages
   ========================================================================== */

.about-layout, .contact-layout { display: grid; gap: var(--space-6); }

/* --- CONTENT hub --- */
.hub-list { display: grid; gap: var(--space-3); }
.hub-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  transition: transform var(--duration-fast);
}
.hub-card:active { transform: scale(.98); }
.hub-card .menu-icon { width: 52px; height: 52px; border-radius: 18px; }
.hub-card .menu-icon .icon-svg { width: 26px; height: 26px; }
.hub-body { flex: 1; min-width: 0; }
.hub-title, .hub-desc { display: block; }
.hub-title { font-size: 17px; font-weight: 700; letter-spacing: .08em; color: var(--color-text-strong); }
.hub-desc { font-size: 13px; color: var(--color-text-sub); }
.hub-card > .icon-svg { color: var(--color-accent); }

/* --- ABOUT --- */
.profile-card {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-5);
  text-align: center;
}
.profile-avatar {
  width: min(56vw, 220px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0 0 0 5px var(--color-pink-soft), var(--shadow-lift);
  object-fit: cover;
}
.profile-name { font-size: 26px; font-weight: 700; color: var(--color-text-strong); line-height: 1.3; }
.profile-reading { font-size: 12px; letter-spacing: .14em; color: var(--color-text-sub); }
.profile-role { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--color-accent-deep); }
.profile-text { font-size: 15px; line-height: 2; color: var(--color-text-strong); }
.profile-quote {
  position: relative;
  margin-top: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-pink-soft);
}
.profile-card .tag-list { justify-content: center; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: var(--space-3);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-4) var(--space-2);
  text-align: center;
  transition: transform var(--duration-fast);
}
.stat-card:active { transform: scale(.97); }
.stat-num { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--color-accent-deep); }
.stat-label { font-size: 12.5px; color: var(--color-text-sub); }

/* --- SNS cards (ABOUT / FAN) --- */
.sns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.sns-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  min-height: 68px;
  transition: transform var(--duration-fast);
}
.sns-card:active { transform: scale(.98); }
.sns-card .menu-icon { width: 44px; height: 44px; }
.sns-name { display: block; font-weight: 700; color: var(--color-text-strong); line-height: 1.4; }
.sns-note { display: block; font-size: 12.5px; color: var(--color-text-sub); line-height: 1.4; }
.sns-card > .icon-svg { margin-left: auto; color: var(--color-accent); width: 16px; height: 16px; }

/* --- Video cards (VOICE / MUSIC) --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-4);
}
.video-card { overflow: hidden; display: flex; flex-direction: column; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--color-lavender);
}
.video-frame img,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(to top, rgba(20, 70, 78, .28), transparent 55%);
  cursor: pointer;
}
.video-play-badge {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-lift);
  transition: transform var(--duration-fast);
}
.video-play-badge .icon-svg { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.video-play:hover .video-play-badge { transform: scale(1.06); }
.video-play:active .video-play-badge { transform: scale(.94); }
.video-body { display: flex; flex-direction: column; gap: 4px; padding: var(--space-3) var(--space-4) var(--space-4); flex: 1; }
.video-title { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--color-text-strong); }
.video-meta { display: flex; align-items: center; gap: var(--space-2); margin-top: auto; font-size: 12px; color: var(--color-text-sub); }
.video-meta a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; color: var(--color-accent-deep); font-weight: 700; }
.video-meta .icon-svg { width: 14px; height: 14px; }

.link-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-accent-deep);
  font-size: 12.5px;
  font-weight: 700;
  background:
    radial-gradient(circle at 18% 28%, rgba(255,255,255,.9) 0 8px, transparent 9px),
    radial-gradient(circle at 84% 72%, rgba(255,255,255,.7) 0 12px, transparent 13px),
    linear-gradient(135deg, var(--color-pink-soft), var(--color-lavender));
}
.link-media .icon-svg { width: 30px; height: 30px; }

/* 作品画像（data.js の image）。縦長・正方形は .is-contain で全体表示＋ぼかし背景 */
.video-frame .media-bg,
.work-thumb .media-bg,
.vm-image .media-bg { display: none; }
.is-contain > .media-bg,
.vm-image > .media-bg {
  display: block;
  filter: blur(14px) saturate(1.15);
  transform: scale(1.18);
  opacity: .7;
}
.is-contain > .media-img,
.vm-image > .media-img { object-fit: contain; }
.video-frame { overflow: hidden; isolation: isolate; }
.video-frame.has-image .media-img { transition: transform var(--duration-base) var(--ease-soft); }
.media-tag {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .92);
  color: var(--color-accent-deep);
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}
.media-tag .icon-svg { width: 13px; height: 13px; }
.vm-image { position: absolute; inset: 0; overflow: hidden; background: var(--color-lavender); }
.vm-image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vm-image-link { right: 12px; bottom: 12px; padding: 8px 14px; font-size: 13px; min-height: 36px; }

/* --- Works list --- */
.filter-bar {
  display: flex;
  gap: var(--space-2);
  margin: 0 calc(var(--space-4) * -1) var(--space-4);
  padding: 2px var(--space-4) 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: none;
  min-height: 40px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  color: var(--color-text);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.filter-chip[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(135deg, var(--color-main), var(--color-accent));
  color: var(--color-on-main);
  box-shadow: 0 4px 12px rgba(0, 191, 202, .3);
}
.filter-chip .chip-count { margin-left: 4px; font-size: 11px; }

.work-list { display: grid; gap: var(--space-2); }
.work-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: transform var(--duration-fast);
}
.work-row:active { transform: scale(.985); }
.work-body { flex: 1; min-width: 0; }
.work-title { font-size: 14px; font-weight: 700; line-height: 1.55; color: var(--color-text-strong); }
.work-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 12px; color: var(--color-text-sub); }
.work-badge {
  padding: 0 8px;
  border-radius: var(--radius-full);
  background: var(--color-pink-soft);
  color: var(--color-accent-deep);
  font-size: 11px;
  font-weight: 700;
}
.work-badge[data-cat="voice"]    { background: var(--color-lavender); color: #5B4787; }
.work-badge[data-cat="singing"]  { background: var(--color-sky-soft); color: #36658A; }
.work-badge[data-cat="live"]     { background: #FDE8E1; color: #8A4848; }
.work-badge[data-cat="pr"]       { background: #F3F0DA; color: #625828; }
.work-badge.is-tag { background: var(--color-pink-soft); color: var(--color-accent-deep); }
.work-type { display: inline-flex; align-items: center; gap: 4px; }
.work-row > .icon-svg { color: var(--color-accent); width: 16px; height: 16px; }
.work-row.is-static { cursor: default; }
.work-row.is-static:active { transform: none; }
.work-thumb {
  position: relative;
  isolation: isolate;
  flex: none;
  width: 96px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-lavender);
}
.work-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.work-thumb.is-empty {
  display: grid;
  place-items: center;
  color: var(--color-accent-deep);
  background: linear-gradient(135deg, var(--color-pink-soft), var(--color-lavender));
}
.work-thumb.is-empty .icon-svg { width: 20px; height: 20px; }

/* --- Contact --- */
.contact-banner {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
  background: var(--color-sky-soft);
}
.contact-banner img { width: 100%; height: 100%; object-fit: cover; }
.contact-body { display: grid; gap: var(--space-4); padding: var(--space-5); }
.contact-text { font-size: 15px; line-height: 1.9; color: var(--color-text-strong); }
.contact-mail a { color: var(--color-accent-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* --- Fan art gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-lavender);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-base) var(--ease-soft); }
.gallery-item:hover img { transform: scale(1.04); }

/* --- Fan art viewer（ウインドウ風ポップアップ） --- */
.lightbox {
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: calc(var(--safe-top) + 12px) 12px calc(var(--safe-bottom) + 12px);
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox::backdrop {
  background:
    radial-gradient(circle at 20% 15%, rgba(0, 255, 255, .35), transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(156, 134, 196, .35), transparent 45%),
    rgba(14, 52, 60, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox[open] .lb-window { animation: lb-pop var(--duration-base) var(--ease-soft); }
@keyframes lb-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }

.lb-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(100%, 920px);
  height: min(100%, 860px);
  overflow: hidden;
  background: var(--color-card);
  border: 1.5px solid rgba(255, 255, 255, .9);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 24px 60px rgba(0, 50, 60, .35);
}

/* タイトルバー */
.lb-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: 50px;
  padding: 0 6px 0 var(--space-4);
  background: linear-gradient(100deg, var(--color-pink-soft), var(--color-lavender) 60%, var(--color-sky-soft));
  border-bottom: 1px solid var(--color-border);
}
.lb-dots { display: flex; gap: 6px; flex: none; }
.lb-dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--color-main);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08);
}
.lb-dots i:nth-child(2) { background: #C9B6EA; }
.lb-dots i:nth-child(3) { background: #A9D3F0; }
.lb-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--color-text-strong);
  white-space: nowrap;
  pointer-events: none;
}
.lb-title .icon-svg { width: 16px; height: 16px; color: var(--color-accent-deep); }
.lb-icon-btn {
  display: grid;
  place-items: center;
  width: var(--tap-min);
  height: var(--tap-min);
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-strong);
  cursor: pointer;
  transition: background-color var(--duration-fast);
}
.lb-icon-btn:hover { background: rgba(255, 255, 255, .7); }
.lb-icon-btn .icon-svg { width: 20px; height: 20px; }

/* 画像エリア */
.lb-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.9) 0 5px, transparent 6px),
    radial-gradient(circle at 90% 80%, rgba(255,255,255,.8) 0 8px, transparent 9px),
    linear-gradient(160deg, #F0FFFF, #F5F0FC);
  touch-action: pan-y;
}
.lb-image {
  position: absolute;
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(30, 74, 82, .22));
  transition: opacity var(--duration-base) var(--ease-soft), transform var(--duration-base) var(--ease-soft);
}
.lb-image.is-changing { opacity: 0; transform: scale(.985); }

/* 画像の左右クリック領域 */
.lb-zone {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 38%;
  padding: 0 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lb-zone-prev { left: 0; justify-content: flex-start; cursor: w-resize; }
.lb-zone-next { right: 0; justify-content: flex-end; cursor: e-resize; }
.lb-arrow {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-soft);
  opacity: .75;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.lb-arrow .icon-svg { width: 22px; height: 22px; }
.lb-zone-prev::before, .lb-zone-next::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
}
.lb-zone-prev::before { background: linear-gradient(to right, rgba(0, 255, 255, .22), transparent); }
.lb-zone-next::before { background: linear-gradient(to left, rgba(156, 134, 196, .22), transparent); }
.lb-zone:active .lb-arrow { transform: scale(.9); }
@media (hover: hover) {
  .lb-arrow { opacity: 0; }
  .lb-stage:hover .lb-arrow { opacity: .55; }
  .lb-zone:hover .lb-arrow { opacity: 1; }
  .lb-zone:hover::before { opacity: 1; }
  .lb-zone-prev:hover .lb-arrow { transform: translateX(-2px); }
  .lb-zone-next:hover .lb-arrow { transform: translateX(2px); }
}
.lb-zone:focus-visible { outline-offset: -4px; }
.lb-zone:focus-visible .lb-arrow { opacity: 1; }

/* 自動送りのプログレスバー */
.lb-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  height: 4px;
  background: rgba(0, 255, 255, .18);
  opacity: 0;
  transition: opacity var(--duration-base);
}
.lightbox.is-playing .lb-progress { opacity: 1; }
.lb-progress-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-main), var(--color-lavender-deep));
  transform: scaleX(0);
  transform-origin: left;
}

/* ツールバー */
.lb-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 8px var(--space-3) 4px;
}
.lb-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap-min);
  padding: 0 18px 0 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-card);
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.lb-play-icon {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main), var(--color-accent));
  color: var(--color-on-main);
}
.lb-play-icon .icon-svg { width: 15px; height: 15px; fill: currentColor; }
.lb-when-playing { display: none; }
.lightbox.is-playing .lb-when-playing { display: grid; }
.lightbox.is-playing .lb-when-paused { display: none; }
.lightbox.is-playing .lb-play { border-color: transparent; background: var(--color-pink-soft); color: var(--color-accent-deep); }
.lb-counter {
  margin-left: auto;
  padding-right: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}
.lb-counter-sep { margin: 0 4px; color: var(--color-text-sub); font-weight: 500; }

/* サムネイル列 */
.lb-thumbs {
  display: flex;
  gap: 8px;
  padding: 6px var(--space-3) var(--space-3);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}
.lb-thumb {
  position: relative;
  flex: none;
  display: block;
  width: 56px; height: 56px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--color-lavender);
  cursor: pointer;
  opacity: .55;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb[aria-current="true"] {
  opacity: 1;
  box-shadow: 0 0 0 2.5px #fff, 0 0 0 5px var(--color-main);
  margin: 0 3px;
}

@media (min-width: 600px) {
  .lightbox { padding: 4vh 4vw; }
  .lb-thumb { width: 64px; height: 64px; }
  .lb-image { inset: 20px; width: calc(100% - 40px); height: calc(100% - 40px); }
  .lb-zone { padding: 0 16px; }
}

/* --- Voice samples (audio) --- */
.audio-list { display: grid; gap: var(--space-3); }
.audio-item { display: grid; gap: var(--space-2); padding: var(--space-4); }
.audio-title { font-weight: 700; color: var(--color-text-strong); }
.audio-item audio { width: 100%; }

/* --- 404 --- */
.notfound { padding: var(--space-10) var(--space-4); text-align: center; display: grid; gap: var(--space-4); justify-items: center; }

/* ==========================================================================
   10. Tablet (600px〜)
   ========================================================================== */
@media (min-width: 600px) {
  .page-wrap { padding-top: var(--space-8); }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .profile-card { padding: var(--space-8); }
}

/* ==========================================================================
   11. PC (960px〜) — 上部ナビゲーション / 2カラムHOME
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-height: 68px; --nav-height: 0px; }

  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .header-back { display: none !important; }
  .header-title { display: none; }

  .header-inner { padding: 0 var(--space-8); }
  .header-logo img { height: 44px; }

  .top-nav { display: block; margin-left: auto; }
  .top-list { display: flex; gap: 2px; }
  .top-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: var(--tap-min);
    padding: 0 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--color-text);
    transition: background-color var(--duration-fast), color var(--duration-fast);
  }
  .top-link .icon-svg { width: 16px; height: 16px; opacity: .8; }
  .top-link:hover { background: rgba(217, 253, 254, .7); color: var(--color-accent-deep); }
  .top-link[aria-current="page"] { background: var(--color-pink-soft); color: var(--color-accent-deep); }

  /* HOME (PC) */
  .home-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: 1fr auto auto 1fr;
    grid-template-areas:
      "hero ."
      "hero menu"
      "hero foot"
      "hero .";
    column-gap: clamp(32px, 4vw, 64px);
    row-gap: var(--space-5);
    max-width: var(--content-max);
    height: calc(100dvh - var(--header-height) - var(--safe-top));
    min-height: 600px;
    padding: clamp(20px, 4dvh, 48px) var(--space-8);
  }

  .home-hero {
    grid-area: hero;
    justify-content: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: rgba(255, 255, 255, .55);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-inset);
  }
  .hero-visual { flex: 0 1 auto; height: min(52dvh, 400px); min-height: 200px; }
  .hero-frame { width: min(90cqw, 100cqh, 380px); }
  .hero-name { font-size: 34px; }
  .hero-role { font-size: 13px; }
  .hero-catch { display: block; font-size: 15px; margin-top: 6px; }
  .hero-intro { margin-top: 14px; padding: 12px 20px; font-size: 13.5px; line-height: 1.8; }
  .intro-more { display: block; }

  .home-menu {
    grid-area: menu;
    gap: var(--space-4);
  }
  .menu-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: var(--space-3);
    min-height: clamp(128px, 20dvh, 180px);
    padding: var(--space-5);
    border-radius: var(--radius-xl);
  }
  .menu-card::after { width: 120px; height: 120px; right: -36px; top: -36px; }
  .menu-icon { width: 52px; height: 52px; border-radius: 18px; }
  .menu-icon .icon-svg { width: 26px; height: 26px; }
  .menu-en { font-size: 21px; }
  .menu-ja { font-size: 13px; }
  .menu-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift), var(--shadow-inset); }

  .home-foot {
    grid-area: foot;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    display: grid;
    gap: var(--space-3);
  }
  .latest-card { padding: 10px 14px 10px 10px; }
  .latest-card:hover { box-shadow: var(--shadow-lift), var(--shadow-inset); }
  .latest-thumb { width: 112px; }
  .latest-title { font-size: 14px; }
  .home-copy { font-size: 11.5px; color: var(--color-text-sub); text-align: right; }

  .sns-icon:hover { background: var(--color-pink-soft); transform: translateY(-2px); }

  /* sub pages */
  .page-wrap { max-width: 1040px; padding: var(--space-10) var(--space-8) 64px; }
  .page-head { margin-bottom: var(--space-8); }
  .about-layout { display: grid; grid-template-columns: 360px 1fr; gap: var(--space-8); align-items: start; }
  .about-layout .profile-card { position: sticky; top: calc(var(--header-height) + 24px); }
  .contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-6); align-items: center; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .work-list { grid-template-columns: 1fr 1fr; gap: var(--space-3); }
  .filter-bar { margin: 0 0 var(--space-5); padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }
  .gallery-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .hub-list { grid-template-columns: 1fr 1fr; }
  .hub-card:hover, .sns-card:hover, .work-row:hover, .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift), var(--shadow-inset); }
  .work-row.is-static:hover { transform: none; box-shadow: var(--shadow-soft), var(--shadow-inset); }
  .work-thumb { width: 128px; }
}

/* PC で画面が低いとき（ノートPC 等） */
@media (min-width: 960px) and (max-height: 760px) {
  .hero-visual { height: min(44dvh, 320px); }
  .hero-name { font-size: 28px; }
  .menu-card { min-height: 112px; padding: var(--space-4); }
}

/* HOME 以外ではモバイル時のホーム専用要素を出さない */
.home-copy { display: none; }
@media (min-width: 960px) { .home-copy { display: block; } }

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   13. Opening（訪問時の初回のみ表示するローディング画面）
   ========================================================================== */
.opening { display: none; }
html.is-loading body { overflow: hidden; }
html.is-loading .opening {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: var(--space-6);
  background:
    radial-gradient(70vmax 60vmax at 100% 0%, rgba(231, 221, 245, .95), transparent 60%),
    radial-gradient(60vmax 50vmax at 0% 100%, rgba(217, 253, 254, 1), transparent 60%),
    radial-gradient(40vmax 30vmax at 0% 20%, rgba(227, 241, 251, .8), transparent 60%),
    var(--color-bg);
  transition: opacity 450ms var(--ease-soft), visibility 450ms;
  /* JS が動かない場合でも 6 秒で自動的に消える保険 */
  animation: opening-failsafe 1ms 6s forwards;
}
html.is-loading .opening.is-done { opacity: 0; visibility: hidden; }
@keyframes opening-failsafe { to { opacity: 0; visibility: hidden; } }

.opening-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  width: min(78vw, 360px);
}
.opening-logo {
  width: 100%;
  height: auto;
  animation: opening-float 2.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 191, 202, .25));
}
@keyframes opening-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-8px) rotate(1deg); }
}
.opening-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--color-accent-deep);
}
.opening-dots i { font-style: normal; display: inline-block; animation: opening-dot 1.2s infinite; }
.opening-dots i:nth-child(2) { animation-delay: .15s; }
.opening-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes opening-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.opening-bar {
  display: block;
  width: 64%;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-inset);
}
.opening-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-main), var(--color-lavender-deep), #A9D3F0);
  transform: scaleX(.05);
  transform-origin: left;
  animation: opening-progress 1.6s cubic-bezier(.3, .7, .3, 1) forwards;
}
.opening.is-done .opening-bar > span { transform: scaleX(1); animation: none; transition: transform 200ms; }
@keyframes opening-progress { to { transform: scaleX(.88); } }

/* 泡モチーフ */
.opening-bubbles { position: absolute; inset: -40% -20%; pointer-events: none; }
.opening-bubbles i {
  position: absolute;
  bottom: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 30%, rgba(0, 255, 255, .55) 31% 100%);
  opacity: 0;
  animation: opening-bubble 2.6s ease-in infinite;
}
.opening-bubbles i:nth-child(1) { left: 8%;  animation-delay: 0s; }
.opening-bubbles i:nth-child(2) { left: 24%; width: 9px; height: 9px; animation-delay: .7s; background: radial-gradient(circle at 35% 30%, #fff 0 30%, rgba(156, 134, 196, .5) 31% 100%); }
.opening-bubbles i:nth-child(3) { left: 46%; width: 18px; height: 18px; animation-delay: 1.3s; }
.opening-bubbles i:nth-child(4) { left: 64%; width: 10px; height: 10px; animation-delay: .4s; background: radial-gradient(circle at 35% 30%, #fff 0 30%, rgba(169, 211, 240, .6) 31% 100%); }
.opening-bubbles i:nth-child(5) { left: 80%; animation-delay: 1s; }
.opening-bubbles i:nth-child(6) { left: 92%; width: 8px; height: 8px; animation-delay: 1.8s; background: radial-gradient(circle at 35% 30%, #fff 0 30%, rgba(156, 134, 196, .5) 31% 100%); }
@keyframes opening-bubble {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  20%  { opacity: .9; }
  100% { transform: translateY(-260px) scale(1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .opening-bubbles { display: none; }
  html.is-loading .opening { animation: opening-failsafe 1ms 6s forwards !important; }
}

/* ==========================================================================
   14. Video popup（VOICE / MUSIC の再生ボタンから開くウインドウ）
   ========================================================================== */
.video-modal .vm-window {
  grid-template-rows: auto auto auto auto auto;
  width: min(100%, 980px, max(320px, calc((100dvh - 380px) * 16 / 9)));
  height: auto;
  max-height: 100%;
  overflow-y: auto;
}
.vm-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #2A2030;
}
.vm-screen {
  position: absolute;
  inset: 0;
  transition: opacity var(--duration-base) var(--ease-soft);
}
.vm-screen.is-changing { opacity: 0; }
.vm-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-link { position: absolute; inset: 0; display: flex; }
.vm-link .icon-svg { width: 40px; height: 40px; }
.vm-link span:not(.visually-hidden) {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .9);
  font-size: 13px;
}

/* 左右の切り替えボタン（動画の操作部分を邪魔しない位置・大きさ） */
.vm-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--color-accent-deep);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}
.vm-arrow .icon-svg { width: 22px; height: 22px; }
.vm-prev { left: 8px; }
.vm-next { right: 8px; }
.vm-arrow:hover { transform: scale(1.06); }
.vm-arrow:active { transform: scale(.92); }
@media (hover: hover) {
  .vm-arrow { opacity: .35; }
  .vm-stage:hover .vm-arrow, .vm-arrow:focus-visible { opacity: 1; }
}

.vm-info { display: grid; gap: 4px; padding: var(--space-3) var(--space-4) 0; }
.vm-title { font-size: 15px; font-weight: 700; line-height: 1.55; color: var(--color-text-strong); }
.vm-info .video-meta { margin: 0; }

/* 連続再生スイッチ */
.video-modal .lb-play { padding-right: 12px; }
.vm-switch {
  position: relative;
  width: 36px;
  height: 20px;
  margin-left: 2px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  transition: background-color var(--duration-fast);
}
.vm-switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform var(--duration-fast);
}
.video-modal.is-continuous .vm-switch { background: var(--color-main); }
.video-modal.is-continuous .vm-switch::after { transform: translateX(16px); }
.video-modal.is-continuous .lb-play { border-color: transparent; background: var(--color-pink-soft); color: var(--color-accent-deep); }

.vm-thumb { width: 96px; height: 54px; border-radius: 10px; }
.vm-thumb-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-pink-soft), var(--color-lavender));
  color: var(--color-accent-deep);
}
.vm-thumb-link .icon-svg { width: 20px; height: 20px; }

.video-modal.is-single .vm-arrow,
.video-modal.is-single .vm-thumbs,
.video-modal.is-single .lb-play,
.video-modal.is-single .lb-counter { display: none; }

@media (min-width: 600px) {
  .vm-arrow { width: 52px; height: 52px; margin-top: -26px; }
  .vm-prev { left: 14px; }
  .vm-next { right: 14px; }
  .vm-info { padding: var(--space-4) var(--space-5) 0; }
  .vm-title { font-size: 16px; }
  .vm-thumb { width: 120px; height: 68px; }
}
