/* スマホファン — 共通スタイル（ライト／ダーク対応） */
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --violet: #6d5efc;
  --cyan: #12c8e8;
  --pink: #ff4fa3;
  --blue: #4f46e5;
  --blue-dark: #3730a3;
  --aqua: #0aa5c4;
  --accent: #f59e0b;
  --grad: linear-gradient(110deg, #6d5efc 0%, #12c8e8 55%, #ff4fa3 110%);
  --bg: #f4f5fb;
  --bg-soft: #eceefb;
  --surface: #ffffff;
  --surface-2: #f7f8fe;
  --ink: #171a2b;
  --sub: #5a6079;
  --line: #dfe2f3;
  --mark: #dfe4ff;
  --note-bg: #fff8ec;
  --note-line: #f3d9ad;
  --header-bg: rgba(255, 255, 255, .78);
  --shadow: 0 10px 30px rgba(49, 46, 129, .10);
  --shadow-lg: 0 24px 60px rgba(49, 46, 129, .20);
  --radius: 18px;
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --num: "SF Pro Display", "Helvetica Neue", "Segoe UI", Arial, var(--font);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --blue: #8b83ff;
  --blue-dark: #b3adff;
  --aqua: #38d6f0;
  --bg: #080914;
  --bg-soft: #10122a;
  --surface: #12142b;
  --surface-2: #181b38;
  --ink: #eceefa;
  --sub: #a4abc8;
  --line: #2a2e55;
  --mark: rgba(109, 94, 252, .38);
  --note-bg: #2a2313;
  --note-line: #5f4b1c;
  --header-bg: rgba(10, 11, 24, .72);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  transition: background .4s, color .4s;
}

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

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.shell { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(840px, 100% - 32px); margin-inline: auto; }

/* ---------- ページ遷移（対応ブラウザのみ） ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s ease both; }
::view-transition-new(root) { animation: vtIn .42s ease both; }
@keyframes vtOut { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(4px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(14px) scale(.99); filter: blur(6px); } }
.site-header { view-transition-name: site-header; }
::view-transition-group(article-hero) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }

/* ---------- 読み進みバー ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 70;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  pointer-events: none;
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .4s, box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; line-height: 1.3; margin-right: auto; }
.brand img { border-radius: 11px; box-shadow: 0 4px 14px rgba(109, 94, 252, .35); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand small { display: block; font-size: 11px; font-weight: 400; color: var(--sub); letter-spacing: .04em; }
.menu { display: flex; gap: 2px; }
.menu a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--blue); }

.icon-button {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .4s;
}
.icon-button:hover { transform: translateY(-2px); border-color: var(--violet); }
.icon-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.no-js .theme-toggle, .no-js .search-open { display: none; }

.menu-toggle { display: none; }

@media (max-width: 1040px) {
  .menu-toggle {
    display: block;
    position: relative;
    flex: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 13px;
    background: var(--grad);
    cursor: pointer;
    order: 9;
  }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    position: absolute;
    left: 12px;
    width: 22px;
    height: 2.5px;
    border-radius: 2px;
    background: #fff;
    content: "";
    transition: transform .35s cubic-bezier(.2, .8, .2, 1), opacity .3s, top .3s;
  }
  .menu-toggle span { top: 22px; }
  .menu-toggle span::before { left: 0; top: -7px; }
  .menu-toggle span::after { left: 0; top: 7px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .menu.open { opacity: 1; visibility: visible; transform: none; }
  .menu a { padding: 13px 8px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; opacity: 0; transform: translateX(-12px); transition: opacity .35s, transform .35s, color .2s; }
  .menu.open a { opacity: 1; transform: none; }
  .menu.open a:nth-child(2) { transition-delay: .04s; }
  .menu.open a:nth-child(3) { transition-delay: .08s; }
  .menu.open a:nth-child(4) { transition-delay: .12s; }
  .menu.open a:nth-child(5) { transition-delay: .16s; }
  .menu.open a:nth-child(6) { transition-delay: .2s; }
  .menu.open a:nth-child(7) { transition-delay: .24s; }
  .menu a::after { display: none; }
  .no-js .menu { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; box-shadow: none; }
  .no-js .menu a { opacity: 1; transform: none; }
  .no-js .menu-toggle { display: none; }
  .brand { font-size: 17px; }
  .brand small { display: none; }
}

/* ---------- パンくず ---------- */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; padding: 0; font-size: 13px; color: var(--sub); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; opacity: .6; }
.breadcrumb a { color: var(--sub); }

/* ---------- トップのヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(120% 90% at 80% 0%, #1b1650 0%, #0a0b1e 55%, #06060f 100%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20%; z-index: -2; filter: blur(70px); opacity: .75; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 2%; top: 8%; background: #6d5efc; animation: drift 16s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; right: 4%; top: 0; background: #12c8e8; animation: drift 20s ease-in-out -6s infinite alternate-reverse; }
.aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 38%; bottom: 0; background: #ff4fa3; opacity: .7; animation: drift 24s ease-in-out -11s infinite alternate; }
@keyframes drift {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to { transform: translate3d(8%, 10%, 0) scale(1.25); }
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 32px; padding: 72px 0 64px; }
.hero-copy .eyebrow { color: #a5f3fc; }
.hero-copy h1 {
  font-size: clamp(40px, 9vw, 92px);
  line-height: 1.1;
  margin: 8px 0 18px;
  letter-spacing: .01em;
  font-weight: 900;
}
.hero-copy h1 .char { display: inline-block; background: linear-gradient(110deg, #c7c2ff, #6ee7ff 40%, #ff9ccb 70%, #c7c2ff); background-size: 700% 100%; background-position: calc(var(--i) * 16%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; transform: translateY(.6em) rotate(8deg); animation: charIn .9s cubic-bezier(.2, .9, .2, 1) forwards; animation-delay: calc(var(--i) * 70ms + .15s); }
@keyframes charIn { to { opacity: 1; transform: none; } }
.grad-text {
  background: linear-gradient(110deg, #c7c2ff, #6ee7ff 40%, #ff9ccb 70%, #c7c2ff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -250% 0; } }
.hero-sub { font-size: clamp(17px, 2.4vw, 22px); font-weight: 700; margin: 0 0 12px; color: #e6e8ff; animation: fadeUp 1s .7s ease both; }
.hero-copy > p.hero-lead { max-width: 560px; margin: 0 0 24px; font-size: 16px; color: #c8cdea; animation: fadeUp 1s .85s ease both; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp 1s 1s ease both; }
.hero-device { perspective: 1200px; display: grid; place-items: center; animation: fadeUp 1.2s .5s ease both; }
.phone {
  position: relative;
  width: min(300px, 62vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(145deg, #3b3f66, #0d0e1c 40%, #2b2f55);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 0 80px rgba(109, 94, 252, .45);
  transform: rotateY(calc(var(--ry, -14) * 1deg)) rotateX(calc(var(--rx, 6) * 1deg));
  transform-style: preserve-3d;
  transition: transform .25s ease-out;
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { translate: 0 -14px; } }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 82px; height: 24px; margin-left: -41px; border-radius: 14px; background: #05050c; z-index: 2; }
.phone::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 35px;
  background: linear-gradient(120deg, rgba(255, 255, 255, .28), transparent 34%, transparent 70%, rgba(255, 255, 255, .1));
  pointer-events: none;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.marquee { overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 40px; width: max-content; padding: 13px 0; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--num); font-size: 13.5px; font-weight: 700; letter-spacing: .14em; color: #b9c0ea; white-space: nowrap; }
.marquee span::before { content: "✦"; margin-right: 40px; color: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- 見出し・リード ---------- */
.eyebrow { margin: 0; font-family: var(--num); font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--aqua); }
.page-lead { padding: 28px 0 8px; animation: fadeUp .9s ease both; }
.page-lead h1 { font-size: clamp(25px, 4vw, 36px); line-height: 1.45; margin: 6px 0 12px; font-weight: 800; }
.lead { font-size: 17.5px; color: var(--sub); margin: 0 0 10px; }
.dates { font-size: 13.5px; color: var(--sub); margin: 0; }
.section-head { text-align: center; margin: 0 auto 28px; max-width: 760px; }
.section-head h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 4px 0 6px; line-height: 1.45; font-weight: 800; }
.section-head h2::after { content: ""; display: block; width: 64px; height: 4px; margin: 12px auto 0; border-radius: 4px; background: var(--grad); }
.section-head p { color: var(--sub); margin: 10px 0 0; }
.section { padding: 56px 0 16px; }
.intro {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 40px);
  margin-top: 40px;
}
.intro h2 { margin-top: 0; font-size: 24px; }

/* ---------- ボタン ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  padding: 10px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  background-size: 180% 100%;
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(109, 94, 252, .35);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background-position .5s;
}
.button:hover { color: #fff; transform: translateY(-3px); background-position: 100% 0; box-shadow: 0 14px 32px rgba(109, 94, 252, .5); }
.button:active { transform: translateY(0) scale(.97); }
.button.ghost { background: var(--surface); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.button.ghost:hover { color: var(--blue); background: var(--bg-soft); }
.button.ghost.light { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.button.ghost.light:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.more-link { text-align: center; margin: 28px 0 0; }

/* ---------- カード ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1400px; }
.grid-ad { grid-column: 1 / -1; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transform: rotateX(calc(var(--tx, 0) * 1deg)) rotateY(calc(var(--ty, 0) * 1deg)) translateZ(0);
  transition: transform .3s ease-out, box-shadow .3s, opacity .9s ease, filter .9s ease;
  will-change: transform;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  border-radius: calc(var(--radius) + 1.5px);
  background: conic-gradient(from var(--spin), #6d5efc, #12c8e8, #ff4fa3, #6d5efc);
  opacity: 0;
  transition: opacity .4s;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .28), transparent 45%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover { color: var(--ink); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; animation: spin 3.5s linear infinite; }
.card:hover::after { opacity: 1; }
@keyframes spin { to { --spin: 360deg; } }
.card-media { overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-soft); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.card:hover img { transform: scale(1.06); }
.card-body { padding: 16px 18px 20px; background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); flex: 1; transition: background .4s; }
.card h3 { font-size: 17px; line-height: 1.55; margin: 8px 0 6px; }
.card p { font-size: 14.5px; color: var(--sub); margin: 0; line-height: 1.75; }
.label { display: inline-block; font-family: var(--num); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--grad); padding: 2px 11px; border-radius: 999px; }

/* ---------- カテゴリの入口 ---------- */
.gateway { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 28px; }
.gateway a {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .3s, box-shadow .3s, background .4s, opacity .9s, filter .9s;
}
.gateway a:hover { transform: translateY(-6px); border-color: var(--violet); box-shadow: var(--shadow-lg); }
.gateway svg { width: 34px; height: 34px; fill: none; stroke: url(#grad-stroke); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gateway small { font-family: var(--num); font-size: 10.5px; letter-spacing: .16em; color: var(--sub); font-weight: 700; }

/* ---------- iPhone Duo 特集・開閉デモ ---------- */
.duo-feature {
  position: relative;
  overflow: hidden;
  margin: 64px 0 8px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(90% 120% at 0% 0%, #2a1f7a 0%, #0c0d22 55%, #07070f 100%);
  box-shadow: var(--shadow-lg);
}
.duo-feature::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; right: -18%; top: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(18, 200, 232, .35), transparent 65%); pointer-events: none; }
.duo-feature .eyebrow { color: #a5f3fc; }
.duo-feature .duo-title { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.3; margin: 6px 0 12px; padding: 0; background: none; font-weight: 900; color: #fff; }
.duo-feature .duo-title::before { display: none; }
.duo-feature > .duo-grid > div > p:not(.duo-title):not(.eyebrow) { color: #cdd2f0; margin: 0 0 18px; }
.duo-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.duo-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 22px; padding: 0; list-style: none; }
.duo-specs li { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; background: rgba(255, 255, 255, .05); line-height: 1.4; }
.duo-specs b { display: block; font-family: var(--num); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; background: linear-gradient(110deg, #c7c2ff, #6ee7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.duo-specs li > span { display: block; font-size: 12.5px; color: #b7bde0; }

.duo { --fold: 1; text-align: center; }
.duo-stage { perspective: 1500px; padding: 26px 0 10px; }
.duo-device {
  position: relative;
  width: min(440px, 86%);
  aspect-ratio: 1.42;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: rotateX(16deg) rotateY(calc(-10deg + (1 - var(--fold)) * -18deg)) translateX(calc((1 - var(--fold)) * 25%));
  transition: transform .15s linear;
}
.duo-half { position: absolute; top: 0; width: 50%; height: 100%; transform-style: preserve-3d; }
.duo-left { left: 0; }
.duo-right { left: 50%; transform-origin: 0 50%; transform: rotateY(calc((1 - var(--fold)) * -180deg)); transition: transform .15s linear; }
.duo-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; padding: 7px; background: linear-gradient(145deg, #454a78, #101226); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset; }
.duo-left .duo-face { border-radius: 22px 3px 3px 22px; padding-right: 0; }
.duo-right .duo-inner { border-radius: 3px 22px 22px 3px; padding-left: 0; }
.duo-right .duo-outer { border-radius: 22px 3px 3px 22px; transform: rotateY(180deg); padding: 9px; }
.duo-back { position: absolute; inset: 0; border-radius: 22px 3px 3px 22px; background: linear-gradient(145deg, #2c3056, #0e1022); transform: rotateY(180deg) translateZ(1px); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.duo-screen {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(255, 255, 255, .35), transparent 60%),
    linear-gradient(120deg, #6d5efc 0%, #12c8e8 50%, #ff4fa3 100%);
  background-size: 200% 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: min-content;
  align-content: end;
  gap: 8%;
  padding: 12% 12% 10%;
}
.duo-left .duo-screen { border-radius: 16px 0 0 16px; background-position: 0 0; }
.duo-inner .duo-screen { border-radius: 0 16px 16px 0; background-position: 100% 0; }
.duo-screen i { aspect-ratio: 1; border-radius: 26%; background: rgba(255, 255, 255, .28); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.duo-screen i:nth-child(3n+1) { background: rgba(10, 12, 40, .35); }
.duo-outer .duo-cover { width: 100%; height: 100%; border-radius: 14px; background: radial-gradient(80% 60% at 70% 20%, rgba(18, 200, 232, .5), transparent 60%), linear-gradient(160deg, #1a1c40, #05050d); display: grid; place-items: center; color: #fff; font-family: var(--num); font-weight: 800; font-size: clamp(22px, 5vw, 40px); letter-spacing: .02em; }
.duo-cover small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .2em; color: #a5f3fc; text-align: center; }
.duo-hinge { position: absolute; left: calc(50% - 2px); top: 2%; width: 4px; height: 96%; background: linear-gradient(#70759f, #23264a); border-radius: 2px; transform: translateZ(1px); }
.duo-shadow { width: min(380px, 70%); height: 26px; margin: 18px auto 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px); transform: scaleX(calc(.55 + var(--fold) * .45)); }
.duo-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 12px; margin-top: 10px; font-size: 13px; color: #b7bde0; white-space: nowrap; }
.duo-controls .button { min-height: 40px; padding: 6px 20px; font-size: 14px; }
.duo-controls input { width: min(200px, 42%); accent-color: var(--cyan); }
.duo-state { font-family: var(--num); font-weight: 800; color: #fff; min-width: 5.5em; }
.prose .duo-feature { margin: 2em 0; padding: clamp(20px, 4vw, 36px); }
.prose .duo-feature .duo-grid { grid-template-columns: 1fr; }

/* ---------- 記事 ---------- */
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px clamp(18px, 5vw, 52px) 36px; margin-top: 16px; transition: background .4s; }
.hero-image { margin: 18px 0 8px; }
.hero-image img { width: 100%; border-radius: 14px; view-transition-name: article-hero; }
.prose h2 {
  position: relative;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.5;
  margin: 2.6em 0 1em;
  padding: 12px 16px 12px 22px;
  background: linear-gradient(90deg, var(--bg-soft), transparent);
  border-radius: 6px;
  font-weight: 800;
}
.prose h2::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; border-radius: 6px; background: var(--grad); background-size: 100% 200%; }
.prose h3 { font-size: 19px; line-height: 1.6; margin: 1.9em 0 .6em; padding-bottom: 6px; border-bottom: 2px dotted var(--line); }
.prose p { margin: 0 0 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin: .3em 0; }
.prose strong { background: linear-gradient(transparent 62%, var(--mark) 62%); }
.prose figure { margin: 1.6em auto; }
figcaption { font-size: 13.5px; color: var(--sub); text-align: center; margin-top: 8px; line-height: 1.6; }
.index-prose { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px clamp(18px, 5vw, 48px) 28px; margin-top: 36px; }

.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin: 1.6em 0; }
.toc p { margin: 0 0 4px; font-weight: 800; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 15.5px; }
.toc a { text-decoration: none; }
.toc a.active { font-weight: 700; text-decoration: underline; }

.point, .note, .summary { border-radius: 14px; padding: 18px 22px; margin: 1.6em 0; }
.point { background: var(--bg-soft); border: 2px solid var(--line); }
.point::before { content: "POINT"; display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; color: var(--aqua); margin-bottom: 4px; }
.note { background: var(--note-bg); border: 1px solid var(--note-line); font-size: 15.5px; }
.summary { position: relative; overflow: hidden; background: linear-gradient(135deg, #4338ca, #6d5efc 45%, #0aa5c4); color: #fff; box-shadow: 0 12px 30px rgba(67, 56, 202, .3); }
.summary::before { content: "SUMMARY"; display: block; font-family: var(--num); font-size: 12px; font-weight: 800; letter-spacing: .2em; opacity: .8; margin-bottom: 4px; }
.summary p { color: #fff; }
.summary a { color: #fff; font-weight: 700; }
.point > :last-child, .note > :last-child, .summary > :last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0 !important; }
.check-list li { position: relative; padding-left: 1.9em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #fff; background: var(--grad); width: 1.35em; height: 1.35em; line-height: 1.35em; text-align: center; border-radius: 50%; font-size: .85em; margin-top: .3em; }

.table-scroll { overflow-x: auto; margin: 1.5em 0; -webkit-overflow-scrolling: touch; border-radius: 12px; border: 1px solid var(--line); }
.table-scroll table { border-collapse: collapse; min-width: 560px; width: 100%; font-size: 15px; line-height: 1.65; }
.table-scroll th, .table-scroll td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 11px 13px; vertical-align: top; text-align: left; }
.table-scroll tr > :last-child { border-right: 0; }
.table-scroll tbody tr:last-child > * { border-bottom: 0; }
.table-scroll thead th { background: linear-gradient(135deg, #4338ca, #5b50e6); color: #fff; white-space: nowrap; }
.table-scroll tbody th { background: var(--bg-soft); white-space: nowrap; }
.table-scroll tbody tr { transition: background .2s; }
.table-scroll tbody tr:hover { background: var(--surface-2); }

.related { margin: 44px 0 0; }
.related h2 { font-size: 23px; text-align: center; margin: 0 0 20px; font-weight: 800; }

/* ---------- 診断・シミュレーター ---------- */
.tool {
  margin: 2em 0;
  padding: clamp(18px, 4vw, 30px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-soft));
  box-shadow: var(--shadow);
}
.tool-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 20px; font-weight: 800; line-height: 1.4; }
.tool-title::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(109, 94, 252, .18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(109, 94, 252, 0); } }
.tool-desc { margin: 0 0 16px; font-size: 14.5px; color: var(--sub); }
.tool noscript p { margin: 0; font-size: 14.5px; }
.quiz-progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.quiz-progress i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.quiz-q { font-weight: 800; font-size: 18px; margin: 0 0 12px; animation: fadeUp .5s ease both; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button {
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15.5px;
  line-height: 1.6;
  text-align: left;
  cursor: pointer;
  animation: fadeUp .5s ease both;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.quiz-options button:nth-child(2) { animation-delay: .06s; }
.quiz-options button:nth-child(3) { animation-delay: .12s; }
.quiz-options button:hover { transform: translateX(6px); border-color: var(--violet); box-shadow: var(--shadow); }
.quiz-result { animation: fadeUp .6s ease both; }
.quiz-result .result-name { font-size: clamp(26px, 5vw, 38px); font-weight: 900; margin: 0 0 6px; line-height: 1.3; }
.meter { display: flex; height: 14px; border-radius: 14px; overflow: hidden; background: var(--line); margin: 10px 0 6px; }
.meter i { display: block; height: 100%; transition: width 1s cubic-bezier(.2, .8, .2, 1); }
.meter .m-a { background: linear-gradient(90deg, #6d5efc, #9a8fff); }
.meter .m-b { background: linear-gradient(90deg, #12c8e8, #19e3b1); }
.meter-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--sub); font-weight: 700; margin-bottom: 14px; }
.tool-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tool-links .button { min-height: 44px; padding: 8px 20px; font-size: 14.5px; }
.sim-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; margin-bottom: 14px; }
.sim-row label { font-weight: 700; font-size: 15px; }
.sim-row output { font-family: var(--num); font-weight: 800; color: var(--blue); min-width: 5.5em; text-align: right; }
.sim-row input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--violet); height: 28px; }
.sim-row input[type="number"] { grid-column: 1 / -1; width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-family: var(--num); font-size: 17px; }
.sim-result { margin-top: 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.sim-result .big { display: block; font-family: var(--num); font-size: clamp(34px, 8vw, 54px); font-weight: 900; line-height: 1.15; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sim-result p { margin: 4px 0 0; font-size: 15px; }
.sim-note { font-size: 12.5px; color: var(--sub); margin: 10px 0 0; }

/* ---------- サイト内検索 ---------- */
.search-dialog { width: min(680px, 100% - 24px); max-height: min(78vh, 720px); margin-top: 9vh; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-dialog::backdrop { background: rgba(6, 6, 18, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search-dialog[open] { display: flex; flex-direction: column; animation: dialogIn .35s cubic-bezier(.2, .9, .2, 1); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(-18px) scale(.97); } }
.search-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search-head svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--sub); stroke-width: 2; stroke-linecap: round; }
.search-head input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; }
.search-close { flex: none; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--sub); font: inherit; font-size: 12px; padding: 3px 9px; cursor: pointer; }
.search-results { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-results li a { display: block; padding: 11px 14px; border-radius: 13px; color: var(--ink); text-decoration: none; line-height: 1.55; }
.search-results li a:hover, .search-results li a:focus-visible, .search-results li.sel a { background: var(--bg-soft); }
.search-results b { display: block; font-size: 15.5px; }
.search-results small { display: block; font-size: 13px; color: var(--sub); }
.search-results mark { background: var(--mark); color: inherit; border-radius: 3px; }
.search-empty { padding: 22px; text-align: center; color: var(--sub); font-size: 14.5px; }

/* ---------- 広告 ---------- */
.ad { margin: 34px auto; text-align: center; min-height: 100px; }
.ad-label { font-size: 11.5px; color: var(--sub); margin: 0 0 4px; letter-spacing: .1em; opacity: .8; }

/* ---------- フッター ---------- */
.site-footer { position: relative; margin-top: 72px; background: #07070f; color: #c5cae6; font-size: 14.5px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
.site-footer::after { content: ""; position: absolute; width: 50%; aspect-ratio: 1; left: -15%; bottom: -70%; border-radius: 50%; background: radial-gradient(circle, rgba(109, 94, 252, .28), transparent 65%); pointer-events: none; }
.footer-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding: 48px 0 22px; }
.site-footer h2 { font-size: 16px; color: #fff; margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: #c5cae6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.copyright { position: relative; z-index: 1; text-align: center; margin: 0; padding: 16px; border-top: 1px solid rgba(255, 255, 255, .1); }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 18px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  box-shadow: 0 10px 26px rgba(109, 94, 252, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.8);
  transition: opacity .3s, transform .35s cubic-bezier(.2, .9, .2, 1), visibility .3s;
  z-index: 40;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: #fff; transform: translateY(-4px); }

.not-found { text-align: center; padding: 64px 0; }

/* ---------- フワッと表示 ---------- */
.js .reveal { opacity: 0; transform: translateY(30px) scale(.985); filter: blur(8px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }
.js .card.reveal.is-visible { transform: rotateX(calc(var(--tx, 0) * 1deg)) rotateY(calc(var(--ty, 0) * 1deg)); }
.js .card.reveal.is-visible.tilting { transition: transform .08s linear, box-shadow .3s; }
.js .grid > .reveal:nth-child(3n+2), .js .gateway > .reveal:nth-child(2) { transition-delay: .1s; }
.js .grid > .reveal:nth-child(3n), .js .gateway > .reveal:nth-child(3) { transition-delay: .2s; }
.js .gateway > .reveal:nth-child(4) { transition-delay: .3s; }
.js .gateway > .reveal:nth-child(5) { transition-delay: .4s; }
.js .gateway > .reveal:nth-child(6) { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .hero-copy h1 .char { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  @view-transition { navigation: none; }
}

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .gateway { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; padding: 48px 0 44px; text-align: center; }
  .hero-copy > p.hero-lead { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .phone { width: min(230px, 54vw); }
  .duo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; line-height: 1.85; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .article { border-radius: 0; margin-inline: -16px; box-shadow: none; border-inline: 0; }
  .index-prose { border-radius: 0; margin-inline: -16px; }
  .grid { gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .card h3 { font-size: 14.5px; line-height: 1.5; margin-top: 6px; }
  .card p { display: none; }
  .label { font-size: 10.5px; padding: 1px 8px; }
  .lead { font-size: 16.5px; }
  .section { padding: 44px 0 8px; }
  .duo-feature { border-radius: 22px; margin-top: 44px; }
  .icon-button { width: 42px; height: 42px; }
  .bar { gap: 8px; }
}

/* ---------- あわせて読みたい（6件） ---------- */
.related .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related .card h3 { font-size: 15.5px; }
.related .card p { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 720px) {
  .related .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .related .card h3 { font-size: 14px; line-height: 1.5; }
  .related .card p { display: none; }
}
