/* =========================================================
   NMDY — AI Development Team
   Mono palette. Editorial typography. Sharp & confident.
========================================================= */

:root {
  /* Pure black / white / cyan-blue accent — matches the NMDY icon
     which is a black tile with bright cyan circuit lines. Maximum
     contrast, minimal hue noise. */
  --bg: #000000;
  --fg: #ffffff;
  --fg-soft: #b4b8c4;
  --fg-mute: #767e92;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .25);
  --card: #0a0a0a;
  --surface: #111111;
  --invert-bg: #000000;
  --invert-fg: #ffffff;
  --invert-mute: #767e92;
  --accent: #4cc9f0;
  --accent-strong: #00d9ff;
  --accent-glow: rgba(76, 201, 240, .38);

  /* Global typography rhythm — admin can tune these from テーマ・カラー. */
  --text-line-height: 1.7;
  --text-letter-spacing: 0.01em;

  /* Section accents — all in the same cyan/blue family now that
     the page itself is monochrome black-and-white. */
  --acc-concept: #4cc9f0;
  --acc-work:    #3b82f6;
  --acc-faq:     #a78bfa;
  --acc-price:   #5eead4;
  --acc-member:  #818cf8;
  --acc-contact: #06b6d4;

  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

  --pad-x: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--fg); color: var(--bg); }

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(76,201,240,.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(0,217,255,.06), transparent 70%);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt";
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  overflow-x: hidden;
}
/* Circuit-board pattern in its own layer so it can be dimmed via the
   theme controls without touching the page glow. Fixed-position so it
   stays put on scroll; z-index 0 + content auto/positive keeps it
   behind text without losing the radial glow above it. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><g fill='none' stroke='%234cc9f0' stroke-width='1'><path d='M0 30 L60 30 L60 70 L140 70 L140 30 L200 30'/><path d='M0 110 L40 110 L40 150 L120 150 L120 110 L200 110'/><path d='M30 0 L30 50 L80 50 L80 130 L30 130 L30 200'/><path d='M170 0 L170 90 L110 90 L110 200'/><path d='M0 180 L20 180 L20 160 L70 160 L70 180 L100 180 L100 200'/><path d='M150 200 L150 180 L185 180 L185 130 L200 130'/></g><g fill='%234cc9f0'><circle cx='60' cy='30' r='2.3'/><circle cx='60' cy='70' r='2.3'/><circle cx='140' cy='30' r='2.3'/><circle cx='140' cy='70' r='2.3'/><circle cx='40' cy='110' r='2.3'/><circle cx='40' cy='150' r='2.3'/><circle cx='120' cy='110' r='2.3'/><circle cx='120' cy='150' r='2.3'/><circle cx='30' cy='50' r='2.3'/><circle cx='80' cy='50' r='2.3'/><circle cx='80' cy='130' r='2.3'/><circle cx='30' cy='130' r='2.3'/><circle cx='170' cy='90' r='2.3'/><circle cx='110' cy='90' r='2.3'/><circle cx='20' cy='180' r='2.3'/><circle cx='20' cy='160' r='2.3'/><circle cx='70' cy='160' r='2.3'/><circle cx='70' cy='180' r='2.3'/><circle cx='100' cy='180' r='2.3'/><circle cx='150' cy='180' r='2.3'/><circle cx='185' cy='180' r='2.3'/><circle cx='185' cy='130' r='2.3'/></g></svg>");
  background-size: 200px 200px;
  background-repeat: repeat;
  opacity: var(--pattern-opacity, .18);
  pointer-events: none;
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
input, textarea, select { font: inherit; color: inherit; }

/* ========== LOADER ========== */
/* 既定は modern / kinetic 用のダークローダー。テンプレ別の色は
   <html> のクラス (プリロード script が localStorage から即時付与) で
   切り替える。localStorage は admin 保存時にも更新するため、テンプレ
   切替直後でも正しい色になり FOUC が出ない。 */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0a0a;
  color: #fff;
  display: grid; place-items: center;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
/* iLand 用ローダー: ピンク背景 */
html.theme--ilandstyle .loader {
  background: #ffe4f0;
  color: #ff0080;
  font-family: "MS PGothic", "Osaka", "Comic Sans MS", sans-serif;
}
html.theme--ilandstyle .loader__text {
  color: #ff0080;
  text-shadow: 2px 2px 0 #ffff00, 3px 3px 0 #000;
  font-family: inherit;
}
html.theme--ilandstyle .loader__bar { background: rgba(255, 20, 147, .2); }
html.theme--ilandstyle .loader__bar span { background: #ff1493; }
/* kinetic 用ローダー: より深い黒 + シアンのバー */
html.theme--kinetic .loader { background: #050505; }
html.theme--kinetic .loader__bar span { background: #4cc9f0; }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.loader__text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .5em;
  font-size: clamp(20px, 4vw, 32px);
}
.loader__bar {
  width: 200px; height: 1px; background: rgba(255,255,255,.18); position: relative; overflow: hidden;
}
.loader__bar span {
  position: absolute; inset: 0; background: #fff; transform-origin: left;
  animation: loadBar 1.4s var(--ease-out) forwards;
}
@keyframes loadBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ========== NOISE OVERLAY ========== */
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* screen on dark bg adds subtle grain instead of darkening it */
  mix-blend-mode: screen;
}

/* ========== HEADER ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px var(--pad-x);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1600px; margin: 0 auto;
}
.header__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: .2em;
}
.header__logo-mark { display: inline-block; font-size: 10px; transform: translateY(-2px); animation: blink 2.4s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 16px; font-size: 13px; font-weight: 500; letter-spacing: .14em;
  border-radius: 999px; transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link--cta {
  background: var(--accent);
  color: #001624;
  transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover {
  background: var(--accent-strong);
  color: #001624;
  box-shadow: 0 0 16px var(--accent-glow);
}

.hamburger {
  display: none; width: 44px; height: 44px; position: relative; border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(76, 201, 240, .06);
  z-index: 200;
}
.hamburger span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--accent);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 16px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 26px; }
.hamburger.is-open {
  background: var(--accent);
  border-color: var(--accent);
}
.hamburger.is-open span { background: #001624; height: 2px; }
.hamburger.is-open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  position: relative;
  /* min-height + justify-content: center だと padding-top を変えても
     content が中央寄せのままで visual 変化が出にくいので、両方を
     撤去して「padding がそのまま見た目の余白」になる素直な構造に */
  padding: var(--hero-pad-top, clamp(72px, 8vh, 116px)) 0 var(--hero-pad-bottom, 80px);
  display: flex; flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(76,201,240,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(76,201,240,.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.hero__inner {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  padding: 0 var(--pad-x);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero__tag { align-self: center; }
.hero__title-line { justify-content: center; }
.hero__title-sub { width: 100%; text-align: center; }
.hero__lead { text-align: left; }
.hero__cta { justify-content: center; }

.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: .28em;
  text-transform: uppercase; margin-bottom: 28px; color: var(--fg-soft);
}

/* ECG / 雷 ライクなパルス。hero の padding-x は hero__inner に
   移したので、ここは単純な width:100% で hero (= viewport) いっぱい */
.hero__pulse {
  display: block;
  width: 100%;
  height: 32px;
  margin-bottom: var(--hero-pulse-mb, 28px);
  overflow: visible;
}
.hero__pulse-track {
  fill: none;
  stroke: rgba(76, 201, 240, .14);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.hero__pulse-beam {
  fill: none;
  stroke: var(--accent-strong, #00d9ff);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  /* stroke-dasharray と animation は JS が SVG 幅に応じて動的設定する。
     JS が走るまでも見える fallback を用意 (vw ベースで画面端から端
     まで走る) */
  stroke-dasharray: 80 9999;
  animation: heroPulseSweepFallback 3.2s linear infinite;
}
@keyframes heroPulseSweepFallback {
  from { stroke-dashoffset: 80px; }
  to { stroke-dashoffset: calc(-100vw - 80px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__pulse-beam { animation: none; opacity: .6; }
}
.dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 12px rgba(76,201,240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(10,10,10, 0); }
}

.hero__title {
  font-family: var(--font-display);
  line-height: .9;
  letter-spacing: -.02em;
}
.hero__title-line {
  display: flex; gap: clamp(8px, 2vw, 32px);
  font-size: clamp(80px, 22vw, 320px);
  font-weight: 700;
}
.hero__title-line span {
  display: inline-block;
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  color: var(--fg);
}
.hero__title-sub {
  display: block;
  font-size: clamp(18px, 2.4vw, 32px);
  font-weight: 500; letter-spacing: -.01em;
  margin-top: clamp(12px, 2vw, 24px);
  color: var(--fg-soft);
}

.hero__lead {
  margin-top: clamp(28px, 4vw, 48px);
  font-family: var(--font-jp);
  font-size: clamp(14px, 1.05vw, 17px);
  line-height: 2;
  max-width: 920px;
  color: var(--fg-soft);
}

.hero__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: clamp(32px, 4vw, 48px);
}
.hero__cta .btn {
  padding: 14px 28px;
  font-size: 14px;
}

/* ========== BUTTONS ========== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 28px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: .04em;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
/* 矢印マイクロインタラクション (CSS 生成、HTML 変更不要) */
.btn::after {
  content: "→";
  font-weight: 400;
  font-size: 1.05em; line-height: 1;
  transition: transform .35s var(--ease-out);
}
.btn:hover::after { transform: translateX(5px); }

/* Primary: モノクロ (白地・黒文字) → hover で反転。テック感の強い
   シアンベタ塗りをやめて editorial / premium 路線に */
.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn--primary:hover {
  background: transparent;
  color: var(--fg);
}

/* Ghost: 細いライン → hover で輪郭が締まる。極太シアン枠線をやめる */
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: color-mix(in srgb, var(--fg) 28%, transparent);
}
.btn--ghost:hover {
  border-color: var(--fg);
  background: color-mix(in srgb, var(--fg) 6%, transparent);
}

.btn--large { padding: 19px 38px; font-size: 14px; }

/* ========== MARQUEE ========== */
.marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.marquee__row {
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}
.marquee__row--primary {
  padding: 28px 0 10px;
}
.marquee__row--secondary {
  padding: 0 0 18px;
  border-top: 1px dashed rgba(255,255,255,.06);
  margin-top: 12px;
  padding-top: 14px;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee-slide 38s linear infinite;
  will-change: transform;
}
.marquee__track--reverse {
  animation-direction: reverse;
  animation-duration: 52s;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }

/* Primary row: editorial display style */
.marquee__hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--fg);
}
.marquee__hero--outline {
  color: transparent;
  -webkit-text-stroke: 1.2px var(--fg);
  text-stroke: 1.2px var(--fg);
  font-weight: 600;
}
.marquee__hero--ja {
  font-family: var(--font-jp, var(--font-display));
  font-weight: 600;
  font-size: clamp(22px, 3.4vw, 48px);
  letter-spacing: 0.04em;
}
.marquee__arrow {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 44px);
  color: var(--accent, #4cc9f0);
  opacity: .9;
}
.marquee__slash {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3vw, 44px);
  color: var(--fg-mute, rgba(255,255,255,.4));
  transform: skewX(-12deg);
}
.marquee__dot {
  font-size: clamp(16px, 2vw, 28px);
  color: var(--fg-mute, rgba(255,255,255,.35));
  margin: 0 6px;
}

/* Secondary row: monospace tech tag style */
.marquee__mono {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: clamp(10px, 1.05vw, 13px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute, rgba(255,255,255,.42));
  font-weight: 400;
}
.marquee__pipe {
  font-family: ui-monospace, monospace;
  font-size: clamp(10px, 1.05vw, 13px);
  color: rgba(255,255,255,.15);
  margin: 0 4px;
}

/* Soft edge fade for both rows (cinematic feel) */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(40px, 8vw, 120px);
  pointer-events: none;
  z-index: 2;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

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

/* ========== SECTIONS ========== */
.section {
  position: relative;
  padding: var(--section-py, clamp(100px, 14vw, 200px)) var(--pad-x);
  max-width: 1600px; margin: 0 auto;
}
.section__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(20px, 4vw, 60px);
  margin-bottom: var(--section-head-mb, clamp(48px, 8vw, 120px));
  margin-inline: calc(50% - 50vw);
  align-items: end;
  position: relative;
  padding-block: var(--section-head-py, clamp(48px, 6vw, 80px));
  padding-inline: calc(50vw - 50%);
  background: linear-gradient(180deg, var(--surface), var(--card));
  color: var(--fg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section__head::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 4px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
  animation: section-bar-pulse 2.4s var(--ease) infinite;
  /* 大胆ダイナミック: スクロールで見出しが入ったらバーが左から伸びる */
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .85s cubic-bezier(.16,1,.3,1) .1s;
}
.section__head:has(.section__title span.is-visible)::before {
  transform: scaleX(1);
}
@keyframes section-bar-pulse {
  0%, 100% { opacity: .8; box-shadow: 0 0 12px var(--accent-glow); }
  50%      { opacity: 1;  box-shadow: 0 0 24px var(--accent-glow); }
}
.section--concept .section__head::before { background: var(--acc-concept); box-shadow: 0 0 16px var(--acc-concept); }
.section--work .section__head::before    { background: var(--acc-work);    box-shadow: 0 0 16px var(--acc-work); }
.section--faq .section__head::before     { background: var(--acc-faq);     box-shadow: 0 0 16px var(--acc-faq); }
.section--price .section__head::before   { background: var(--acc-price);   box-shadow: 0 0 16px var(--acc-price); }
.section--member .section__head::before  { background: var(--acc-member);  box-shadow: 0 0 16px var(--acc-member); }
.section--contact .section__head::before { background: var(--acc-contact); box-shadow: 0 0 16px var(--acc-contact); }
.section__num {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 500;
  letter-spacing: .25em;
  color: var(--accent);
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--section-title-fz, clamp(40px, 7vw, 120px));
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--fg);
}
.section__title span { display: block; color: inherit; }
.section__title span + span { margin-top: 0.06em; }
/* 空の見出し span は丸ごと非表示 (装飾 pseudo も連れて消える) */
.section__title span:empty { display: none; }
/* 大胆ダイナミック: 見出しは下から skew しながら勢いよく出現。
   clip-path は Safari で content が消えるバグがあるので使わず、
   opacity + transform で実装 (確実に動く) */
.section__title span[data-reveal] {
  opacity: 0;
  transform: translateY(0.5em) skewY(3deg);
  transform-origin: left center;
  transition: opacity .85s cubic-bezier(.16,1,.3,1),
              transform .9s cubic-bezier(.16,1,.3,1);
}
.section__title span[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) skewY(0);
}
.section__title span[data-reveal]:nth-child(2) { transition-delay: .1s; }
.section__title span[data-reveal]:nth-child(3) { transition-delay: .2s; }
.section__title span[data-reveal]:nth-child(4) { transition-delay: .3s; }
/* Per-section accent on the number marker (01, 02, …) so each section
   still carries a hint of its own colour next to the white title. */
.section--concept .section__num { color: var(--acc-concept); }
.section--work .section__num    { color: var(--acc-work); }
.section--faq .section__num     { color: var(--acc-faq); }
.section--price .section__num   { color: var(--acc-price); }
.section--member .section__num  { color: var(--acc-member); }
.section--contact .section__num { color: var(--acc-contact); }

/* ========== CONCEPT ========== */
.concept {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.concept__lead {
  font-family: var(--font-jp);
  font-size: clamp(16px, 1.4vw, 22px);
  line-height: 2;
  font-weight: 500;
  margin-bottom: clamp(56px, 8vw, 100px);
  max-width: 1180px;
  /* text-wrap:pretty stops the last word ("ます。") from falling alone
     onto its own line on wide displays. Falls back gracefully on older
     browsers — they just get the old wrap behaviour. */
  text-wrap: pretty;
  /* Block centred via .concept's align-items, but the copy itself stays
     left-aligned so long Japanese lines read naturally. */
  text-align: left;
}
.concept__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 36px);
  width: 100%;
  max-width: 1400px;
}
.concept__card {
  position: relative;
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 44px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 18px;
  text-align: left;
  overflow: hidden;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
/* Diagonal cyan sweep that crosses the card on hover */
.concept__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    rgba(76, 201, 240, .14) 45%,
    rgba(76, 201, 240, .04) 55%,
    transparent 100%);
  background-size: 220% 220%;
  background-position: -120% -120%;
  transition: background-position .9s var(--ease-out);
  pointer-events: none;
}
.concept__card:hover::before { background-position: 220% 220%; }
.concept__card > * { position: relative; z-index: 1; }
.concept__card:hover {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 32px rgba(76, 201, 240, .18);
  transform: translateY(-4px);
}
.concept__card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 600;
  letter-spacing: -.01em;
}
.concept__card p {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: inherit;
  opacity: .85;
}

/* ========== WORK ========== */
.work { border-top: 1px solid var(--line-strong); }
.work__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 60px;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
  padding: clamp(32px, 5vw, 60px) clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
/* Cyan sweep — a soft horizontal gradient that travels left → right
   across the row on hover, giving a "circuit lights up" feel without
   the full-white panel flash that fought the dark theme. */
.work__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(76, 201, 240, .12) 45%,
    rgba(76, 201, 240, .04) 55%,
    transparent 100%);
  background-size: 220% 100%;
  background-position: -120% 0;
  transition: background-position .9s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.work__item:hover::before { background-position: 220% 0; }
/* Cyan accent bar at the left edge that grows in on hover */
.work__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 60%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.work__item:hover::after { transform: translateY(-50%) scaleY(1); }
.work__item:hover {
  background: rgba(76, 201, 240, .03);
  border-bottom-color: var(--accent);
  padding-left: clamp(28px, 3vw, 40px);
}
.work__item:hover .work__title { color: var(--fg); }
.work__item:hover .work__title span { color: var(--accent); }
.work__item:hover .work__tags li {
  border-color: var(--accent);
  color: var(--accent);
}
.work__item:hover .work__arrow {
  transform: rotate(-45deg);
  color: var(--accent);
}

.work__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 18px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.work__title span {
  font-family: var(--font-jp);
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--fg-mute);
}
.work__desc {
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.95;
  margin-top: 16px;
  max-width: 720px;
  color: inherit;
  opacity: .85;
}
.work__tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 18px;
}
.work__tags li {
  padding: 5px 12px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: .15em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-soft);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.work__arrow { transition: transform .4s var(--ease-out); }

/* ========== PORTFOLIO (実績) ========== */
.portfolio {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.portfolio__item {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  border-radius: 14px;
  transition: transform .5s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease);
}
.portfolio__item:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
}
.portfolio__link { display: block; color: inherit; text-decoration: none; }
.portfolio__link::after { display: none !important; }
.portfolio__shot {
  position: relative;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  background: #0e0e12;
  border-bottom: 1px solid var(--line);
}
.portfolio__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .8s var(--ease-out);
}
.portfolio__item:hover .portfolio__img { transform: scale(1.04); }
.portfolio__body { padding: clamp(20px, 2.4vw, 28px); }
.portfolio__title {
  font-family: var(--font-jp);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0 0 10px;
  color: var(--fg);
}
.portfolio__desc {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-soft);
  margin: 0;
}
.portfolio__cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.portfolio__item:hover .portfolio__cta { transform: translateX(4px); }
/* 制作中 (WIP) プレースホルダー: 画像の代わりに表示 */
.portfolio__shot--wip {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(76, 201, 240, .18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, .15), transparent 55%),
    linear-gradient(135deg, #0e0e15, #16161f);
  color: var(--fg);
  text-align: center;
  padding: 24px;
  position: relative;
}
.portfolio__shot--wip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 18px,
      rgba(255, 255, 255, .025) 18px 19px);
  pointer-events: none;
}
.portfolio__wip-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.portfolio__wip-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: .04em;
  color: var(--fg);
}
.portfolio__wip-sub {
  font-family: var(--font-jp);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--fg-mute);
}
.portfolio__badge {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .2em;
  vertical-align: middle;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
}
/* カテゴリラベル: タイトル横、Webサイト / Webアプリ / スマホアプリ / その他 */
.portfolio__category {
  display: inline-block;
  margin-left: 10px;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  vertical-align: middle;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line);
  color: var(--fg-soft);
}
.portfolio__category[data-category="website"]   { background: rgba(76, 201, 240, .12); border-color: rgba(76, 201, 240, .35); color: #67d8f5; }
.portfolio__category[data-category="web-app"]   { background: rgba(168, 85, 247, .12); border-color: rgba(168, 85, 247, .35); color: #c084fc; }
.portfolio__category[data-category="mobile-app"]{ background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .35); color: #6ee7b7; }
.portfolio__category[data-category="design"]    { background: rgba(244, 114, 182, .12); border-color: rgba(244, 114, 182, .35); color: #f472b6; }
.portfolio__category[data-category="other"]     { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); color: #fbbf24; }
@media (max-width: 720px) {
  .portfolio { grid-template-columns: 1fr; }
}

/* ========== FAQ ========== */
.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.faq__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 60%;
  background: var(--acc-faq);
  box-shadow: 0 0 14px rgba(167, 139, 250, .5);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.faq__item.is-open::after,
.faq__item:hover::after { transform: translateY(-50%) scaleY(1); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 2.5vw, 28px) clamp(16px, 2vw, 24px);
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 600;
  letter-spacing: .02em;
  transition: padding .4s var(--ease), background .4s var(--ease), color .3s var(--ease);
}
.faq__item:hover .faq__q { background: rgba(167, 139, 250, .04); color: var(--acc-faq); }
.faq__item.is-open .faq__q { background: rgba(167, 139, 250, .04); color: var(--acc-faq); padding-left: clamp(24px, 3vw, 36px); }
.faq__toggle {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
}
.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform .3s var(--ease);
}
.faq__toggle::before { width: 14px; height: 2px; }
.faq__toggle::after  { width: 2px; height: 14px; }
.faq__item.is-open .faq__toggle::after { transform: scaleY(0); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .3s var(--ease);
  font-family: var(--font-jp);
  font-size: 14px; line-height: 1.95;
  color: var(--fg-soft);
  padding: 0 clamp(16px, 2vw, 24px);
}
.faq__item.is-open .faq__a {
  max-height: 600px;
  padding: 0 clamp(16px, 2vw, 24px) clamp(20px, 2.5vw, 28px);
}
.faq__a p { margin: 0; white-space: pre-wrap; }

/* ========== PRICE ========== */
.section--price .price__lead {
  font-family: var(--font-jp);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.9;
  color: var(--fg-soft);
  max-width: 1180px;
  text-wrap: pretty;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section--price .price__lead[hidden] { display: none; }
.section--price .price__disclaimer {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: clamp(20px, 3vw, 32px);
  letter-spacing: .04em;
}
.price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.price__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(16px, 2.5vw, 32px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  overflow: hidden;
}
.price__item:nth-child(2n) { border-right: 0; }
.price__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(94, 234, 212, .12) 45%,
    rgba(94, 234, 212, .04) 55%,
    transparent 100%);
  background-size: 220% 100%;
  background-position: -120% 0;
  transition: background-position .9s var(--ease-out);
  pointer-events: none;
  z-index: -1;
}
.price__item:hover::before { background-position: 220% 0; }
.price__item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 60%;
  background: var(--acc-price);
  box-shadow: 0 0 14px rgba(94, 234, 212, .5);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  transition: transform .4s var(--ease);
}
.price__item:hover::after { transform: translateY(-50%) scaleY(1); }
.price__item:hover {
  background: rgba(94, 234, 212, .03);
  border-bottom-color: var(--acc-price);
  padding-left: clamp(28px, 3vw, 40px);
}
.price__item:hover .price__amount { color: var(--acc-price); }
.price__title {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
}
.price__title span {
  font-family: var(--font-jp);
  font-size: clamp(11px, .9vw, 13px);
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--fg-mute);
}
.price__note {
  font-family: var(--font-jp);
  font-size: 13px; line-height: 1.85;
  margin-top: 10px;
  max-width: 640px;
  color: var(--fg-soft);
}
.price__amount {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fg);
  white-space: nowrap;
  transition: color .3s var(--ease);
}

/* ========== MEMBER ========== */
.member {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.member__item {
  position: relative;
  background: var(--card);
  padding: clamp(24px, 2.5vw, 40px);
  display: flex; flex-direction: column; gap: 24px;
  overflow: hidden;
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), transform .2s var(--ease-out);
}
.member__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    transparent 0%,
    rgba(129, 140, 248, .14) 45%,
    rgba(76, 201, 240, .04) 55%,
    transparent 100%);
  background-size: 220% 220%;
  background-position: -120% -120%;
  transition: background-position 1s var(--ease-out);
  pointer-events: none;
}
.member__item:hover::before { background-position: 220% 220%; }
.member__item > * { position: relative; z-index: 1; }
.member__item:hover {
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--acc-member), 0 0 32px rgba(129, 140, 248, .18);
  transform: translateY(-3px);
}
.member__item:hover .member__avatar { background: rgba(129, 140, 248, .1); }
.member__item:hover .member__avatar::before { background: rgba(129, 140, 248, .14); }
.member__item:hover .member__role { color: var(--acc-member); }

/* ===== 3D チルト (JS がマウス位置から transform をインライン制御) ===== */
.member__item {
  will-change: transform;
}
.member__item:hover { z-index: 5; }
/* カーソル追従のグレア (ハイライト) */
.member__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 255, 255, .18), transparent 42%);
  transition: opacity .35s var(--ease);
}
.member__item:hover::after { opacity: 1; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  /* タッチ端末・モーション削減ではチルトを無効化 */
  .member__item { transform: none !important; }
}

.member__avatar {
  position: relative;
  aspect-ratio: 1;
  background: #11193a;
  display: grid; place-items: center;
  overflow: hidden;
  transition: background .4s var(--ease);
}
.member__avatar::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(10,10,10,.08), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(10,10,10,.12), transparent 50%);
  transition: background .4s var(--ease);
  pointer-events: none;
}
.member__avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  /* z-index keeps the photo above the ::before radial-gradient overlay
     even on Safari versions where :has() falls through. */
  z-index: 1;
}
/* When a real photo is present, drop the gray bg + dark overlay so
   the actual image colour shows through. The overlay was designed
   for the initials-only square to give it some depth. */
.member__avatar:has(img) {
  background: transparent;
}
.member__avatar:has(img)::before {
  display: none;
}
.member__initials {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -.02em;
}
.member__info { display: flex; flex-direction: column; gap: 6px; }
.member__name {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 600;
  letter-spacing: .02em;
}
.member__role {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--fg-soft);
  transition: color .3s var(--ease);
}

/* ========== CONTACT ========== */
.contact {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1040px;
  margin: 0 auto;
}
.contact__lead p {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 2;
  color: var(--fg-soft);
  margin-bottom: 28px;
}
.contact__meta {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: 24px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact__meta-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--fg-mute);
  margin-bottom: 4px;
}
.contact__meta-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
a.contact__meta-value { text-decoration: underline; text-underline-offset: 4px; }

/* ========== FORM ========== */
.form {
  display: flex; flex-direction: column; gap: 28px;
  background: var(--card);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 12px 36px rgba(0, 217, 255, .06);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form__field { display: flex; flex-direction: column; gap: 10px; }
.form__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--fg-soft);
  text-transform: uppercase;
}
.form__label em { color: #f87171; font-style: normal; }
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
  border-radius: 6px;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--accent);
  background-color: rgba(76, 201, 240, .04);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%234cc9f0' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
/* Native dropdown popup styling. Chrome / Firefox / Edge respect this;
   Safari still falls back to OS defaults. */
.form__field select option {
  color: var(--fg);
  background: #0f1117;
}
.form__field select option:checked,
.form__field select option:hover {
  background: #1a2030;
}

.form__chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--fg-soft);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip input:checked + span {
  background: var(--accent);
  color: #001624;
  border-color: var(--accent);
}
.chip:hover span { background: rgba(76, 201, 240, .1); color: var(--fg); border-color: var(--accent); }
.chip input:checked + span:hover { background: var(--accent-strong); }

.form__submit {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.form__note {
  font-size: 12px;
  color: var(--fg-mute);
  letter-spacing: .05em;
}
.form__success {
  display: none;
  padding: 16px 20px;
  background: rgba(76, 201, 240, .12);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 14px;
  letter-spacing: .04em;
  border-radius: 8px;
  box-shadow: 0 0 24px var(--accent-glow);
}
.form__success.is-visible { display: block; }

/* ========== FOOTER ========== */
.footer {
  position: relative;
  background: var(--invert-bg);
  color: var(--invert-fg);
  padding: clamp(80px, 10vw, 140px) var(--pad-x) 0;
  overflow: hidden;
  margin-top: clamp(60px, 10vw, 120px);
}
.footer::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 100%;
  pointer-events: none;
}
.footer__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
  max-width: 1600px;
  margin: 0 auto;
}
.footer__top {
  display: grid;
  /* Match the 2×2 sitemap grid below: 50/50 split. Social column then
     starts exactly under where the WORK card starts, lining the two
     up vertically. */
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}
.footer__social-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.footer__social-block .footer__nav-title {
  margin-bottom: 0;
}
.footer__sitemap-block {
  width: 100%;
}
.footer__brand { display: flex; flex-direction: column; gap: 24px; }
.footer__logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .2em;
}
.footer__logo span { font-size: 12px; transform: translateY(-2px); }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  letter-spacing: .02em;
}
.footer__nav-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .26em;
  color: rgba(255,255,255,.55);
  margin-bottom: 14px;
}
.footer__social-block ul { display: flex; flex-direction: row; gap: 10px; }

/* SITEMAP — flat 2×2 quadrants, no rounded corners, no accent bars.
   1 px gap reveals the dark line behind to act as the divider so
   the four cells form one continuous block. */
.footer__sitemap {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  background: var(--line);
  border: 1px solid var(--line);
}
.footer__sitemap a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 38px 32px;
  background: var(--bg);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--fg);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.footer__sitemap-label { flex: 1; min-width: 0; }
.footer__sitemap-arrow {
  font-size: 24px;
  font-weight: 400;
  opacity: .35;
  flex-shrink: 0;
  transition: transform .25s var(--ease), opacity .25s var(--ease), color .25s var(--ease);
}
@media (hover: hover) {
  .footer__sitemap a:hover {
    background: rgba(76, 201, 240, .08);
    color: var(--accent);
  }
  .footer__sitemap a:hover .footer__sitemap-arrow {
    opacity: 1;
    color: var(--accent);
    transform: translateX(6px);
  }
}
/* Kill the inherited .footer__nav a::after underline */
.footer__sitemap a::after { display: none !important; }

.footer__social {
  flex-direction: row !important;
  flex-wrap: nowrap;
  gap: 10px !important;
  align-items: center;
}
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  color: var(--invert-fg);
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
  flex-shrink: 0;
}
.footer__social a:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.55);
  transform: translateY(-2px);
}
.footer__social a::after { display: none !important; }
.footer__social a svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}
.footer__social-text { font-size: 11px; padding: 0 6px; }
/* Legacy .footer__nav rules removed — sitemap is now a top-level
   block inside .footer__inner and social lives inside
   .footer__social-block. */

.footer__big {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 28vw, 380px);
  line-height: .8;
  letter-spacing: -.05em;
  margin-top: clamp(60px, 8vw, 120px);
  text-align: center;
  color: #ffffff;
  user-select: none;
}
.footer__bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  max-width: 1600px; margin: 0 auto;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .12em;
  color: rgba(255,255,255,.5);
}

/* ========== REVEAL ANIMATION ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* メンバーカードはスクロールで順番にスタッガー出現 (大胆ダイナミック) */
.member__item[data-reveal] {
  transform: translateY(40px) scale(.97);
  /* 出現は .9s でゆったり */
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.member__item[data-reveal].is-visible {
  transform: translateY(0) scale(1);
  /* 出現後はチルト用に transform を素早く (.2s)、他は通常速度 */
  transition: transform .2s var(--ease-out),
              background .4s var(--ease),
              box-shadow .4s var(--ease),
              color .4s var(--ease);
}
.member__item[data-reveal]:nth-child(1) { transition-delay: 0s; }
.member__item[data-reveal]:nth-child(2) { transition-delay: .07s; }
.member__item[data-reveal]:nth-child(3) { transition-delay: .14s; }
.member__item[data-reveal]:nth-child(4) { transition-delay: .21s; }
.member__item[data-reveal]:nth-child(5) { transition-delay: .28s; }
.member__item[data-reveal]:nth-child(6) { transition-delay: .07s; }
.member__item[data-reveal]:nth-child(7) { transition-delay: .14s; }
.member__item[data-reveal]:nth-child(8) { transition-delay: .21s; }
.member__item[data-reveal]:nth-child(9) { transition-delay: .28s; }
.member__item[data-reveal]:nth-child(10) { transition-delay: .35s; }
.hero__title-line[data-reveal] span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 1s var(--ease-out), opacity 1s var(--ease-out);
}
.hero__title-line[data-reveal] span:nth-child(1) { transition-delay: .05s; }
.hero__title-line[data-reveal] span:nth-child(2) { transition-delay: .12s; }
.hero__title-line[data-reveal] span:nth-child(3) { transition-delay: .19s; }
.hero__title-line[data-reveal] span:nth-child(4) { transition-delay: .26s; }
.hero__title-line.is-visible { opacity: 1; transform: none; }
.hero__title-line.is-visible span { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .hamburger { display: block; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--bg);
    padding: 120px var(--pad-x) 40px;
    z-index: 150;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overscroll-behavior: contain;
    isolation: isolate;
  }
  body.is-nav-open { overflow: hidden; touch-action: none; }
  html.is-nav-open { overflow: hidden; }
  /* nav オープン中はヘッダの backdrop-filter を無効化する。これが
     付いていると position:fixed の「含有ブロック」になり、フルスクリーン
     のナビ背景 (.nav.is-open) がヘッダの箱の中に閉じ込められて本文が
     透ける (まるかぶり) ため。kinetic は常時、modern はスクロール時に
     ヘッダへ backdrop-filter が付くので両方を救う。
     ※ kinetic 等のテーマ別ヘッダ規則と同詳細度で後勝ちされないよう、
        テーマクラスを足して詳細度を上げている。 */
  body.is-nav-open .header,
  html.is-nav-open .header,
  body.theme--kinetic.is-nav-open .header,
  body.theme--ilandstyle.is-nav-open .header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
    /* kinetic はコンテンツ前面化で .header に z-index:1 を当てており、
       同値の HERO (z-index:1) とナビが同レベルに沈んで本文が透けるため、
       ナビオープン中はヘッダ (= ナビの親) を最前面に持ち上げる。 */
    position: fixed !important;
    z-index: 9999 !important;
  }
  /* ナビ背景は不透明を担保 (テーマの --bg に依存) */
  body.theme--kinetic .nav.is-open { background: #07070e; }
  body.theme--ilandstyle .nav.is-open { background: #ffe4f0; }
  .nav.is-open .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav.is-open .nav__link {
    position: relative;
    font-size: 28px;
    padding: 18px 0;
    letter-spacing: .04em;
    align-items: center;
    transition: padding-left .35s var(--ease, ease), color .25s ease, opacity .25s ease;
  }
  .nav.is-open .nav__link::after { display: none; }
  /* インデント演出はマウス環境のみ。タッチでこれをやると
     タップの瞬間に指の下でリンクが横へズレて押し損ねる。 */
  @media (hover: hover) and (pointer: fine) {
    .nav.is-open .nav__link:not(.nav__link--cta):hover {
      padding-left: 16px;
      color: var(--accent);
    }
  }
  /* タッチには hover が存在しないので、押した瞬間に色がフラッシュ
     する :active で代替する。transition を切って即時に発色させ、
     ナビゲーション前の一瞬でも視認できるようにする。 */
  .nav.is-open .nav__link:not(.nav__link--cta):active {
    color: var(--accent);
    transition: none;
  }
  /* CONTACT は HERO の .btn--primary と同じ見た目のボタンにする。
     幅は文字に合わせて自動 (画面いっぱいの板にはしない)。 */
  .nav.is-open .nav__item:has(.nav__link--cta) { margin-top: 36px; }
  .nav.is-open .nav__link--cta,
  body.theme--kinetic .nav.is-open .nav__link--cta,
  body.theme--ilandstyle .nav.is-open .nav__link--cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: auto !important;
    align-self: flex-start;
    padding: 16px 32px !important;
    margin-top: 0 !important;
    font-family: var(--font-display) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: .04em !important;
    border-radius: 10px !important;
    background: var(--fg) !important;
    color: var(--bg) !important;
    border: 1px solid var(--fg) !important;
    box-shadow: none !important;
    -webkit-text-fill-color: currentColor !important;
    text-shadow: none !important;
    filter: none !important;
    transition: transform .25s var(--ease, ease), box-shadow .25s var(--ease, ease) !important;
  }
  .nav.is-open .nav__link--cta:hover,
  .nav.is-open .nav__link--cta:focus,
  .nav.is-open .nav__link--cta:focus-visible {
    transform: translateY(-1px);
    padding-left: 32px !important;  /* 他リンクの hover インデントを打ち消す */
    outline: none !important;
  }
  .nav.is-open .nav__link--cta::after {
    content: "→" !important;
    display: inline-block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    color: inherit !important;
    font-size: inherit !important;
    transform: none !important;
    transition: transform .25s var(--ease, ease) !important;
  }
  .nav.is-open .nav__link--cta:hover::after { transform: translateX(4px) !important; }
  /* kinetic: HERO の Start a project と同一の縦グラデ + ベベル */
  body.theme--kinetic .nav.is-open .nav__link--cta {
    background: linear-gradient(180deg, #62d6f7 0%, #38b6e3 55%, #2596c4 100%) !important;
    color: #00222e !important;
    border: 0 !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .5),
      inset 0 -1px 0 rgba(0, 0, 0, .18),
      0 1px 2px rgba(0, 0, 0, .45),
      0 8px 24px -10px rgba(76, 201, 240, .4) !important;
  }
  /* iLand: HERO と同じピンク + outset ベベル */
  body.theme--ilandstyle .nav.is-open .nav__link--cta {
    background: #ff1493 !important;
    color: #ffff00 !important;
    border: 4px outset #ff69b4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: 1px 1px 0 #000 !important;
  }
  /* 他リンクは hover で box-shadow 等を出さない (CTA 以外) */
  .nav.is-open .nav__link:not(.nav__link--cta):hover,
  .nav.is-open .nav__link:not(.nav__link--cta):focus,
  body.theme--kinetic .nav.is-open .nav__link:not(.nav__link--cta):hover {
    box-shadow: none !important;
    background: transparent !important;
    outline: none !important;
  }
  /* タップ時の半透明ハイライトボックスを除去 */
  .nav.is-open .nav__link { -webkit-tap-highlight-color: transparent; }

  .section__head {
    grid-template-columns: 1fr; align-items: start;
    /* admin で sp 版を設定してれば優先、なければ pc 値、それも無ければ
       css のフォールバック */
    padding-block: var(--section-head-py-sp, var(--section-head-py, clamp(32px, 5vw, 56px)));
    margin-bottom: var(--section-head-mb-sp, var(--section-head-mb, clamp(36px, 6vw, 60px)));
  }
  .section { padding-top: var(--section-py-sp, var(--section-py, 80px)); padding-bottom: var(--section-py-sp, var(--section-py, 80px)); }
  .section__num { display: inline-block; padding-right: 20px; }

  .concept__body { grid-template-columns: 1fr; gap: 16px; }

  .member { grid-template-columns: repeat(2, 1fr); }

  .form__row { grid-template-columns: 1fr; }

  /* Footer: brand and social stack on top, sitemap takes the full
     width edge-to-edge below them. */
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__social-block { align-items: flex-start; }
  .footer__sitemap {
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
    width: calc(100% + 2 * var(--pad-x));
    border-left: 0;
    border-right: 0;
  }
  .footer__sitemap a {
    padding: 32px 24px;
    font-size: 20px;
  }
  .footer__sitemap-arrow { font-size: 20px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 20px; }

  .hero {
    /* mobile 用デフォルトは CSS 変数の sp 版で上書き。admin から
       調整可能 */
    padding-top: var(--hero-pad-top-sp, 72px);
    padding-bottom: var(--hero-pad-bottom-sp, 48px);
    min-height: auto;
  }
  .hero__title-line { gap: 4px; }
  .hero__pulse { height: 24px; margin-bottom: var(--hero-pulse-mb-sp, 20px); }

  .work__item { grid-template-columns: 1fr; }
  .work__arrow { display: none; }
  .work__item:hover { padding-left: 16px; padding-right: 16px; }

  .price { grid-template-columns: 1fr; }
  .price__item { grid-template-columns: 1fr; gap: 12px; border-right: 0; }
  .price__amount { font-size: 22px; }
  .price__item:hover { padding-left: 16px; padding-right: 16px; }

  .member { grid-template-columns: 1fr 1fr; }

  .footer__social {
    flex-wrap: nowrap !important;
    justify-content: center;
  }
  .footer__bottom { justify-content: center; text-align: center; }
}

@media (max-width: 720px) {
  /* The default aspect-ratio 1 avatar gets visually huge once the
     MEMBER grid drops to fewer columns — cap it on mobile so the
     name/role beneath sit in proportion. Centered + tighter card
     padding rebalances each tile. */
  .member__item { align-items: center; gap: 16px; }
  .member__avatar {
    width: min(60%, 200px);
  }
  .member__info { text-align: center; align-items: center; }
}
@media (max-width: 420px) {
  .member { grid-template-columns: 1fr; }
  .marquee__track { gap: 28px; }
  .member__avatar { width: min(50%, 180px); }
}

/* ========== MEMBER TILE INTERACTION ========== */
.member__item {
  cursor: pointer;
  outline: none;
}
.member__item:focus-visible {
  box-shadow: inset 0 0 0 3px var(--fg);
}

/* ========== MEMBER MODAL ========== */
.member-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.member-modal.is-open {
  display: block;
  opacity: 1;
}
.member-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.member-modal__panel {
  position: relative;
  margin: 8vh auto;
  width: calc(100% - 32px);
  max-width: 520px;
  max-height: 84vh;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 48px 36px 40px;
  overflow-y: auto;
  text-align: center;
  transform: translateY(20px);
  transition: transform .35s var(--ease-out, ease);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 32px rgba(76, 201, 240, .08);
}
.member-modal.is-open .member-modal__panel {
  transform: translateY(0);
}
.member-modal__close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 22px; line-height: 1;
  color: var(--fg-mute);
  transition: background .15s ease, color .15s ease;
}
.member-modal__close:hover {
  background: var(--line); color: var(--fg);
}
.member-modal__photo {
  width: 140px; height: 140px;
  margin: 0 auto 24px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  display: grid; place-items: center;
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px var(--accent-glow);
}
.member-modal__photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.member-modal__initials {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 600;
  color: var(--fg);
}
.member-modal__name {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 6px;
}
.member-modal__role {
  font-size: 13px;
  color: var(--fg-mute);
  letter-spacing: .04em;
  margin-bottom: 24px;
}
.member-modal__bio {
  font-family: var(--font-jp);
  font-size: 14px;
  line-height: 1.9;
  color: var(--fg-soft);
  text-align: left;
  white-space: pre-wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.member-modal__bio.is-empty {
  color: var(--fg-mute);
  text-align: center;
  font-style: italic;
}

.member-modal__achievements {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.member-modal__achievements:empty { display: none; }
.member-modal__ach-title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-soft, rgba(255,255,255,.55));
}
.member-modal__ach-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.member-modal__ach-icons {
  display: inline-flex;
  gap: 4px;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.member-modal__ach-icon {
  display: inline-block;
  width: 24px;
  text-align: center;
}
.member-modal__ach-text {
  flex: 1;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.5;
  text-align: left;
}
a.member-modal__ach-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: none;
  transition: color .15s;
}
a.member-modal__ach-text:hover {
  color: var(--accent, #ec4899);
}
.member-modal__ach-arrow {
  flex-shrink: 0;
  opacity: .55;
  transition: opacity .15s, transform .15s;
}
a.member-modal__ach-text:hover .member-modal__ach-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.member-modal__links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.member-modal__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.member-modal__link:hover {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
  transform: translateY(-2px);
}
.member-modal__link svg { display: block; }

@media (max-width: 640px) {
  .member-modal__panel { padding: 40px 24px 28px; margin: 5vh auto; }
  .member-modal__photo { width: 110px; height: 110px; }
  .member-modal__name { font-size: 20px; }
}

/* ========== MOBILE POLISH ========== */
@media (max-width: 640px) {
  /* prevent iOS auto-zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="password"],
  textarea,
  select { font-size: 16px !important; }

  /* HERO mobile tweaks (centering inherited from base) */
  .hero__lead {
    font-size: clamp(13px, 3.4vw, 15px);
    line-height: 1.8;
    max-width: 360px;
  }
  .hero__cta {
    flex-wrap: nowrap;
    max-width: 500px;
    width: 100%;
    gap: 12px;
  }
  .hero__cta .btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 16px 26px;
    font-size: 14px;
    white-space: nowrap;
    letter-spacing: .06em;
  }

  /* contact spacing */
  .contact__lead p { font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
  .contact__meta { padding: 20px; gap: 16px; }

  /* form submit centered */
  .form__submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
  }
  .form__note { text-align: center; }

  /* footer compact */
  .footer__inner { padding-top: 60px; }
  .footer__social { justify-content: center; }

  /* SECTION HEADERS — keep the dark surface card style on mobile too;
     full-bleed across the viewport but using the desktop palette so
     it doesn't suddenly invert into a white band. spacing は admin
     から var() で上書き可能 */
  .section {
    padding-top: var(--section-py-sp, var(--section-py, 80px));
    padding-bottom: var(--section-py-sp, var(--section-py, 80px));
  }
  .section__head {
    margin: 0 calc(-1 * var(--pad-x)) var(--section-head-mb-sp, var(--section-head-mb, clamp(40px, 8vw, 80px)));
    padding-top: var(--section-head-py-sp, var(--section-head-py, 80px));
    padding-bottom: var(--section-head-py-sp, var(--section-head-py, 56px));
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
    grid-template-columns: 1fr;
    align-items: start;
  }
  /* The accent-bar / accent-num colour rules from the desktop block
     already cascade in; nothing extra to declare here. */
  .section__head .section__num {
    display: inline-block;
    padding-right: 0;
  }
  .section__title {
    font-size: var(--section-title-fz-sp, var(--section-title-fz, clamp(40px, 7vw, 120px)));
  }

  /* better tap targets */
  .btn { min-height: 44px; }
  .nav__link, .footer__nav a { padding: 10px 0; min-height: 32px; display: inline-flex; align-items: center; }
}

/* iOS safe area */
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}

/* ==========================================================
   ★彡 魔法のiらんど風テンプレ (body.theme--ilandstyle 時のみ)
   2000 年代ホムペの本気仕様: MS Pゴシック / タイル背景 /
   ベベル枠 / アクセスカウンター / キリ番 / BBS / 拍手 / 相互リンク
   ========================================================== */
body.theme--ilandstyle {
  --bg: #ffe4f0;
  --fg: #000000;
  --fg-soft: #000080;
  --fg-mute: #808080;
  --line: #ff69b4;
  --surface: #ffffff;
  --card: #ffffff;
  --accent: #ff1493;
  --accent-strong: #ff0080;
  --accent-glow: rgba(255, 20, 147, .5);
  --acc-concept: #ff1493;
  --acc-work: #800080;
  --acc-faq: #ff8c00;
  --acc-price: #00bfff;
  --acc-member: #ff1493;
  --acc-contact: #32cd32;
  background-color: #ffe4f0 !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text x='2' y='13' font-size='11' fill='%23ff69b4'>%E2%99%A5</text><text x='18' y='29' font-size='11' fill='%23ffb6c1'>%E2%98%86</text></svg>") !important;
  background-attachment: fixed !important;
  background-repeat: repeat !important;
  color: #000 !important;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic Pro", "Comic Sans MS", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

/* 現代テーマ用の回路基板 body::before パターンを iLand では無効化
   (ピンクハート背景に薄く透けて回路っぽい線が見えてしまう問題) */
body.theme--ilandstyle::before { display: none !important; }

/* ヘッダ: でかピンクのバナー風 */
body.theme--ilandstyle .header {
  background: #ffffff !important;
  border-bottom: 4px ridge #ff1493 !important;
  box-shadow: 0 2px 0 #ff69b4;
}
body.theme--ilandstyle .header__logo-text {
  color: #ff1493 !important;
  text-shadow: 2px 2px 0 #ffff00, 3px 3px 0 #000 !important;
  font-family: inherit !important;
  font-weight: bold;
  letter-spacing: 2px;
}
body.theme--ilandstyle .header__logo-text::before { content: "☆"; color: #ffff00; margin-right: 4px; text-shadow: 1px 1px 0 #000; }
body.theme--ilandstyle .header__logo-text::after { content: "☆"; color: #ffff00; margin-left: 4px; text-shadow: 1px 1px 0 #000; }
body.theme--ilandstyle .nav__link { color: #0000ff !important; text-decoration: underline !important; }
body.theme--ilandstyle .nav__link--cta { color: #ffffff !important; text-decoration: none !important; background: #ff1493 !important; text-shadow: none !important; }
body.theme--ilandstyle .nav__link--cta::before { content: "" !important; }
body.theme--ilandstyle .nav__link::before { content: "・"; color: #ff1493; }
body.theme--ilandstyle .nav__link:visited { color: #800080 !important; }

/* HERO: 黄色ピカピカ */
body.theme--ilandstyle .hero {
  background:
    repeating-linear-gradient(90deg, #ffff00 0 6px, #ffaa00 6px 12px),
    #ffe4f0 !important;
  background-blend-mode: multiply;
  border-bottom: 4px ridge #ff1493;
  padding-block: 30px !important;
}
body.theme--ilandstyle .hero__title-line {
  background: none !important;
  -webkit-text-fill-color: #ff0080 !important;
  color: #ff0080 !important;
  text-shadow:
    2px 2px 0 #ffff00,
    3px 3px 0 #000,
    -1px -1px 0 #fff !important;
  filter: none !important;
  font-family: inherit !important;
  font-weight: 900;
  letter-spacing: 3px;
}
body.theme--ilandstyle .hero__title-sub {
  color: #800080 !important;
  font-style: normal !important;
  background: #ffff00;
  display: inline-block;
  padding: 2px 8px;
  border: 2px solid #000;
}
body.theme--ilandstyle .hero__tag { color: #ff0080 !important; font-weight: bold; }
body.theme--ilandstyle .hero__tag::before { content: "(・∀・)b "; }
body.theme--ilandstyle .hero__lead {
  color: #000 !important;
  background: #fff;
  border: 2px ridge #ff1493;
  padding: 10px;
  display: inline-block;
}
body.theme--ilandstyle .hero__pulse { display: none !important; }

/* セクション head: テーブル枠 + 走光ライン */
body.theme--ilandstyle .section__head {
  background: #fff !important;
  border: 4px ridge #ff1493 !important;
  border-radius: 0 !important;
  margin-inline: 0 !important;
  padding: 12px 16px !important;
  position: relative;
  box-shadow: 4px 4px 0 #ff69b4;
}
body.theme--ilandstyle .section__head::before {
  content: "★・★・★・★・★・★・★" !important;
  position: absolute !important;
  left: 50% !important;
  top: 0 !important;
  transform: translate(-50%, -50%) !important;
  width: auto !important;
  height: auto !important;
  background: #ffff00 !important;
  color: #ff0080 !important;
  font-size: 11px !important;
  letter-spacing: 1px;
  padding: 2px 10px;
  border: 2px solid #ff1493;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 #000 !important;
  z-index: 1;
  animation: iland-blink 0.8s infinite alternate;
}
@keyframes iland-blink {
  from { opacity: 1; }
  to { opacity: .3; }
}
body.theme--ilandstyle .section__title {
  color: #ff0080 !important;
  font-family: inherit !important;
  font-weight: 900;
  text-shadow: 1px 1px 0 #ffff00, 2px 2px 0 #000;
  letter-spacing: 2px;
}
body.theme--ilandstyle .section__title span::before { content: "▼"; color: #ff1493; margin-right: 6px; }
body.theme--ilandstyle .section__title span::after { content: "▼"; color: #ff1493; margin-left: 6px; }
body.theme--ilandstyle .section__num {
  color: #fff !important;
  background: #ff1493;
  padding: 1px 6px;
  border: 1px solid #000;
  font-family: "Courier New", monospace !important;
}

/* マーキー: ベタピンク + 黄色文字 */
body.theme--ilandstyle .marquee {
  background: #ff1493 !important;
  border-top: 2px ridge #ffff00;
  border-bottom: 2px ridge #ffff00;
  animation: none !important;
}
body.theme--ilandstyle .marquee__hero,
body.theme--ilandstyle .marquee__mono {
  color: #ffff00 !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 1px 1px 0 #000 !important;
  font-family: inherit !important;
}
body.theme--ilandstyle .marquee__row--secondary { background: #800080; }
body.theme--ilandstyle .marquee__row--secondary .marquee__mono { color: #fff !important; }
body.theme--ilandstyle .marquee__arrow,
body.theme--ilandstyle .marquee__slash,
body.theme--ilandstyle .marquee__dot,
body.theme--ilandstyle .marquee__pipe { color: #ffff00 !important; }

/* ボタン: outset ベベル + 立体感 */
body.theme--ilandstyle .btn {
  border-radius: 0 !important;
  font-family: inherit !important;
  font-weight: bold !important;
  letter-spacing: 1px;
  padding: 8px 20px !important;
}
body.theme--ilandstyle .btn--primary {
  background: #ff1493 !important;
  color: #ffff00 !important;
  border: 4px outset #ff69b4 !important;
  box-shadow: none !important;
  text-shadow: 1px 1px 0 #000;
}
body.theme--ilandstyle .btn--primary:hover {
  transform: none !important;
  border-style: inset !important;
  background: #ff0080 !important;
}
body.theme--ilandstyle .btn--ghost {
  background: #ffff00 !important;
  color: #ff0080 !important;
  border: 4px outset #ffcc00 !important;
  box-shadow: none !important;
}
body.theme--ilandstyle .btn--ghost:hover { border-style: inset !important; }
body.theme--ilandstyle .btn::after { content: " →" !important; }

/* リンク全般: 青下線 / 訪問済み紫 */
body.theme--ilandstyle a:not(.btn):not(.nav__link):not(.member__item) {
  color: #0000ff !important;
  text-decoration: underline !important;
}
body.theme--ilandstyle a:visited:not(.btn):not(.nav__link):not(.member__item) {
  color: #800080 !important;
}

/* コンセプトカード: 4px ridge 枠 + 白地 */
body.theme--ilandstyle .concept__card {
  background: #fff !important;
  border: 4px ridge #ff1493 !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #000 !important;
  padding: 16px !important;
}
body.theme--ilandstyle .concept__card h3 {
  color: #ff0080 !important;
  font-family: inherit !important;
  border-bottom: 2px dotted #ff1493;
  padding-bottom: 4px;
  margin-bottom: 8px;
}
body.theme--ilandstyle .concept__card h3::before { content: "◆ "; color: #ffff00; text-shadow: 1px 1px 0 #000; }

/* WORK */
body.theme--ilandstyle .work__item {
  background: #fff !important;
  border: 4px ridge #800080 !important;
  border-radius: 0 !important;
  padding: 16px !important;
  margin-bottom: 12px;
  box-shadow: 4px 4px 0 #b497ff;
}
body.theme--ilandstyle .work__title {
  color: #800080 !important;
  font-family: inherit !important;
  font-weight: bold;
}
body.theme--ilandstyle .work__title::before { content: "◇ "; color: #ff1493; }

/* PORTFOLIO (実績) — ホムペ風 */
body.theme--ilandstyle .portfolio__item {
  background: #fff !important;
  border: 4px ridge #ff1493 !important;
  border-radius: 0 !important;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .portfolio__item:hover { transform: none; }
body.theme--ilandstyle .portfolio__shot { border-bottom: 3px dotted #ff1493; background: #ffeaf3; }
body.theme--ilandstyle .portfolio__img { transform: none !important; }
body.theme--ilandstyle .portfolio__title {
  color: #ff0080 !important;
  font-family: inherit !important;
  font-weight: bold;
}
body.theme--ilandstyle .portfolio__title::before { content: "★ "; color: #ffc107; }
body.theme--ilandstyle .portfolio__desc { color: #5a3a4a !important; }
body.theme--ilandstyle .portfolio__cta { color: #ff0080 !important; font-weight: bold; }
body.theme--ilandstyle .portfolio__shot--wip {
  background: repeating-linear-gradient(45deg, #ffe4f0 0 14px, #fff 14px 28px) !important;
  border-bottom: 3px dotted #ff1493 !important;
}
body.theme--ilandstyle .portfolio__shot--wip::before { display: none !important; }
body.theme--ilandstyle .portfolio__wip-tag { color: #ff0080 !important; border-color: #ff0080 !important; font-family: inherit !important; font-weight: bold; background: #ffff00; }
body.theme--ilandstyle .portfolio__wip-title { color: #ff0080 !important; font-family: inherit !important; text-shadow: 2px 2px 0 #ffff00, 3px 3px 0 #000; }
body.theme--ilandstyle .portfolio__wip-sub { color: #800080 !important; font-family: inherit !important; font-weight: bold; }
body.theme--ilandstyle .portfolio__badge { color: #ff0080 !important; border-color: #ff0080 !important; background: #ffff00; font-family: inherit !important; font-weight: bold; }
body.theme--ilandstyle .portfolio__category { font-family: inherit !important; font-weight: bold; border-width: 2px !important; }
body.theme--ilandstyle .portfolio__category[data-category="website"]   { background: #cce6ff !important; border-color: #0066cc !important; color: #0066cc !important; }
body.theme--ilandstyle .portfolio__category[data-category="web-app"]   { background: #f0d4ff !important; border-color: #800080 !important; color: #800080 !important; }
body.theme--ilandstyle .portfolio__category[data-category="mobile-app"]{ background: #d4ffd4 !important; border-color: #008800 !important; color: #008800 !important; }
body.theme--ilandstyle .portfolio__category[data-category="design"]    { background: #ffe0f0 !important; border-color: #cc0066 !important; color: #cc0066 !important; }
body.theme--ilandstyle .portfolio__category[data-category="other"]     { background: #ffe4b5 !important; border-color: #cc6600 !important; color: #cc6600 !important; }

/* MEMBER */
body.theme--ilandstyle .member {
  background: #fff !important;
  border: 4px ridge #ff1493 !important;
  border-radius: 0 !important;
  gap: 12px !important;
  padding: 16px;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .member__item {
  background: #fffdf0 !important;
  border: 3px outset #ff69b4 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 12px;
}
body.theme--ilandstyle .member__item::before { background: none !important; }
body.theme--ilandstyle .member__name {
  color: #ff0080 !important;
  font-family: inherit !important;
  font-weight: bold;
}
body.theme--ilandstyle .member__name::before { content: "♥"; color: #ff1493; margin-right: 4px; }
body.theme--ilandstyle .member__name::after { content: "♥"; color: #ff1493; margin-left: 4px; }
body.theme--ilandstyle .member__role {
  color: #800080 !important;
  font-size: 11px;
  background: #ffff00;
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid #000;
}

/* FAQ */
body.theme--ilandstyle .faq__item {
  background: #fff !important;
  border: 3px ridge #ff8c00 !important;
  border-radius: 0 !important;
  margin-bottom: 10px;
  padding: 10px;
  box-shadow: 3px 3px 0 #ffcc66;
}
body.theme--ilandstyle .faq__q {
  color: #ff8c00 !important;
  font-family: inherit !important;
  font-weight: bold;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 8px !important;
}
body.theme--ilandstyle .faq__q::before {
  content: "Q．";
  font-weight: bold;
  color: #ff0080;
  flex-shrink: 0;
}
body.theme--ilandstyle .faq__q .faq__toggle { margin-left: auto; }
body.theme--ilandstyle .faq__a { text-align: left !important; }
body.theme--ilandstyle .faq__a::before { content: "A．"; font-weight: bold; color: #0000ff; margin-right: 6px; }

/* PRICE */
body.theme--ilandstyle .price {
  gap: 14px;
  border-top: 0 !important;
}
body.theme--ilandstyle .price__item {
  background: #fff !important;
  border: 3px ridge #00bfff !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 #99dfff;
  padding: 18px 16px !important;
}
body.theme--ilandstyle .price__amount {
  color: #ff0080 !important;
  font-family: "Courier New", monospace !important;
  text-shadow: 1px 1px 0 #ffff00;
}

/* CONTACT セクション全体: 白の半透明カードを敷いてハート背景の
   うるささを和らげ、本文の可読性を確保 */
body.theme--ilandstyle .contact {
  background: rgba(255, 255, 255, .85);
  border: 3px ridge #ff1493;
  border-radius: 0;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .contact__lead p {
  color: #000 !important;
  font-family: inherit !important;
}

/* CONTACT フォーム */
body.theme--ilandstyle .form__label {
  color: #ff0080 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  text-transform: none !important;
  font-weight: bold;
}
body.theme--ilandstyle .form__label::before { content: "▼"; color: #ff8c00; margin-right: 4px; }
body.theme--ilandstyle .form__label em { color: #ff0080 !important; }
body.theme--ilandstyle .form__field input,
body.theme--ilandstyle .form__field textarea,
body.theme--ilandstyle .form__field select {
  background: #fff !important;
  border: 2px inset #ff69b4 !important;
  border-radius: 0 !important;
  color: #000 !important;
  font-family: inherit !important;
  font-size: 16px !important;
  padding: 8px 10px !important;
  box-shadow: none !important;
}
body.theme--ilandstyle .form__field input:focus,
body.theme--ilandstyle .form__field textarea:focus,
body.theme--ilandstyle .form__field select:focus {
  background: #ffff99 !important;
  border-color: #ff1493 !important;
  box-shadow: 0 0 0 2px #ffff00 !important;
  outline: 2px solid #ff1493 !important;
}
body.theme--ilandstyle .form__field select {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23ff1493' d='M6 8L0 0h12z'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  padding-right: 32px !important;
  line-height: 1.4 !important;
  height: auto !important;
  min-height: 40px;
}
/* ドロップダウンの中身も黄色×黒で見えるように */
body.theme--ilandstyle .form__field select option {
  background: #ffff99 !important;
  color: #000 !important;
  font-family: inherit !important;
}
body.theme--ilandstyle .form__field select option:checked {
  background: #ff1493 !important;
  color: #ffff00 !important;
}

/* iOS の OS picker を回避して 2000 年代風セレクトに偽装する自作 UI */
body.theme--ilandstyle .iland-select { position: relative; }
body.theme--ilandstyle .iland-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.theme--ilandstyle .iland-select__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 2px inset #ff69b4;
  color: #000;
  font-family: inherit;
  font-size: 16px;
  padding: 8px 12px;
  min-height: 40px;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
}
body.theme--ilandstyle .iland-select__button:hover,
body.theme--ilandstyle .iland-select__button[aria-expanded="true"] {
  background: #ffff99;
  border-color: #ff1493;
}
body.theme--ilandstyle .iland-select__arrow {
  color: #ff1493;
  font-size: 10px;
  flex-shrink: 0;
}
body.theme--ilandstyle .iland-select__panel {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  z-index: 50;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 2px solid #ff1493;
  box-shadow: 4px 4px 0 #000;
  max-height: 280px;
  overflow-y: auto;
}
body.theme--ilandstyle .iland-select__opt {
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  color: #000;
  cursor: pointer;
  border-bottom: 1px dotted #ffcce0;
}
body.theme--ilandstyle .iland-select__opt:last-child { border-bottom: 0; }
body.theme--ilandstyle .iland-select__opt:hover { background: #ffff99; color: #ff0080; }
body.theme--ilandstyle .iland-select__opt[aria-selected="true"] {
  background: #ff1493;
  color: #ffff00;
  text-shadow: 1px 1px 0 #000;
  font-weight: bold;
}
body.theme--ilandstyle .iland-select__opt[aria-selected="true"]::before { content: "▶ "; }

/* チップ (ご相談内容のチェックボックス) */
body.theme--ilandstyle .chip span {
  background: #fff !important;
  border: 2px outset #ff69b4 !important;
  border-radius: 0 !important;
  color: #ff0080 !important;
  font-family: inherit !important;
  font-size: 12px !important;
  letter-spacing: 1px !important;
  font-weight: bold;
  padding: 6px 14px !important;
}
body.theme--ilandstyle .chip:hover span {
  background: #ffff99 !important;
  color: #ff0080 !important;
  border-color: #ff1493 !important;
}
body.theme--ilandstyle .chip input:checked + span {
  background: #ff1493 !important;
  color: #ffff00 !important;
  border: 2px inset #ff69b4 !important;
  text-shadow: 1px 1px 0 #000;
}

/* フッター */
body.theme--ilandstyle .footer {
  background: #ff1493 !important;
  color: #ffff00 !important;
  border-top: 4px ridge #ffff00;
  text-shadow: 1px 1px 0 #000;
}
body.theme--ilandstyle .footer * { color: #ffff00 !important; }
body.theme--ilandstyle .footer a { color: #ffff00 !important; text-decoration: underline !important; }
body.theme--ilandstyle .footer__tagline { color: #ffff00 !important; }
body.theme--ilandstyle .footer__tagline::before { content: "★彡 "; color: #ffff00; }
body.theme--ilandstyle .footer__tagline::after { content: " 彡★"; color: #ffff00; }

/* サイトマップ: 白枠カードに切り替えて視認性を確保 */
body.theme--ilandstyle .footer__sitemap {
  background: transparent !important;
  border: 0 !important;
  gap: 6px !important;
}
body.theme--ilandstyle .footer__sitemap a {
  background: #fff !important;
  color: #ff0080 !important;
  border: 3px ridge #ffff00 !important;
  text-shadow: 1px 1px 0 #ffff00;
  text-decoration: none !important;
  font-weight: bold;
}
body.theme--ilandstyle .footer__sitemap a:hover {
  background: #ffff99 !important;
  color: #ff0080 !important;
}
body.theme--ilandstyle .footer__sitemap-label { color: #ff0080 !important; }
body.theme--ilandstyle .footer__sitemap-arrow { color: #ff1493 !important; opacity: 1 !important; }

/* ========== THEME SONG (MEMBER 下のボタン) ========== */
.theme-song { display: flex; justify-content: center; margin-top: clamp(32px, 5vw, 56px); }
.theme-song__btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .15em;
  cursor: pointer;
  transition: background .2s var(--ease, ease), color .2s var(--ease, ease), border-color .2s var(--ease, ease);
}
.theme-song__btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.theme-song__btn[aria-pressed="true"] {
  background: var(--accent);
  color: #001624;
  border-color: var(--accent);
}
.theme-song__icon { font-size: 11px; line-height: 1; }
.theme-song__btn[aria-pressed="true"] .theme-song__icon { animation: theme-song-pulse 1.2s ease-in-out infinite; }
@keyframes theme-song-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* iLand: 当時のサイトでよくあった「♪BGM ON/OFF♪」感 */
body.theme--ilandstyle .theme-song__btn {
  background: #ffff00;
  color: #ff0080;
  border: 4px outset #ffcc00;
  border-radius: 0;
  font-family: "MS PGothic", "Osaka", sans-serif;
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  box-shadow: 3px 3px 0 #000;
}
body.theme--ilandstyle .theme-song__btn:hover { background: #ffff99; color: #ff0080; border-color: #ffcc00; }
body.theme--ilandstyle .theme-song__btn:active { border-style: inset; }
body.theme--ilandstyle .theme-song__btn[aria-pressed="true"] {
  background: #ff1493;
  color: #ffff00;
  border: 4px inset #ff69b4;
}
body.theme--ilandstyle .theme-song__icon { font-size: 13px; }

.footer__legal { color: inherit; text-decoration: underline; text-underline-offset: 3px; opacity: .7; white-space: nowrap; }
.footer__legal:hover { opacity: 1; }
.footer__legal-sep { opacity: .4; margin: 0 6px; }

/* サブページ末尾の「トップに戻る」CTA (about/privacy/legal 共通) */
.legal__home {
  display: inline-block;
  margin: 36px auto 0;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .15em;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s var(--ease, ease), color .2s var(--ease, ease), border-color .2s var(--ease, ease);
}
.legal__home:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.legal__home::after { content: " →"; }
.legal__home-wrap { text-align: center; padding-bottom: clamp(40px, 6vw, 80px); }
body.theme--ilandstyle .legal__home {
  background: #ff1493;
  color: #ffff00;
  border: 4px outset #ff69b4;
  border-radius: 0;
  font-family: "MS PGothic", "Osaka", "Comic Sans MS", sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .legal__home:hover { background: #ff0080; color: #ffff00; }
body.theme--ilandstyle .legal__home:active { border-style: inset; }
body.theme--ilandstyle .footer .footer__bottom a.footer__legal,
body.theme--ilandstyle .footer .footer__bottom a.footer__legal:visited,
body.theme--ilandstyle .footer .footer__bottom a.footer__legal:hover { color: #ffffff !important; text-decoration: underline !important; text-shadow: none !important; }
body.theme--ilandstyle .footer .footer__bottom .footer__legal-sep { color: #ffffff !important; text-shadow: none !important; }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, .85);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s var(--ease, ease), transform .25s var(--ease, ease), background .2s ease;
  z-index: 9000;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: rgba(10, 10, 10, 1); }
body.theme--ilandstyle .back-to-top {
  background: #ff1493;
  color: #ffff00;
  border: 3px outset #ff69b4;
  border-radius: 0;
  text-shadow: 1px 1px 0 #000;
  box-shadow: 3px 3px 0 #000;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-weight: bold;
}
body.theme--ilandstyle .back-to-top:hover { background: #ff0080; }
body.theme--ilandstyle .back-to-top:active { border-style: inset; }

/* スマホで footer 上部の余白が広すぎる問題: padding を圧縮 */
@media (max-width: 768px) {
  body.theme--ilandstyle .footer { padding-top: 24px !important; margin-top: 20px !important; }
  body.theme--ilandstyle .footer__inner { padding-top: 0 !important; gap: 24px !important; }
}

/* ===== キラキラ降下演出 ===== */
body.theme--ilandstyle .iland-sparkles {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9000;
  overflow: hidden;
}
.iland-sparkle {
  position: absolute;
  top: -20px;
  animation: iland-fall linear forwards;
  user-select: none;
  text-shadow: 0 0 4px currentColor;
  font-family: "MS PGothic", sans-serif;
}
@keyframes iland-fall {
  to { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}

/* ===== 800x600 推奨 / IE6 対応 リボン ===== */
.iland-disclaimer { display: none; }
body.theme--ilandstyle .iland-disclaimer {
  display: block;
  background: #000;
  color: #ffff00;
  text-align: center;
  font-family: "MS PGothic", monospace;
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 1px;
  border-bottom: 2px ridge #ff1493;
}
body.theme--ilandstyle .iland-disclaimer span { color: #ff69b4; margin: 0 6px; }

/* ===== Welcome バナー（黄色マーキー風） ===== */
.iland-welcome { display: none; }
body.theme--ilandstyle .iland-welcome {
  display: block;
  background: #ffff00;
  color: #ff0080;
  text-align: center;
  font-family: "MS PGothic", sans-serif;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border: 2px ridge #ff1493;
  margin: 12px 16px;
  text-shadow: 1px 1px 0 #fff;
  animation: iland-blink 1.5s infinite alternate;
}
body.theme--ilandstyle .iland-welcome::before { content: "★彡 "; }
body.theme--ilandstyle .iland-welcome::after { content: " 彡★"; }

/* ===== ニュースマーキー (古典的 marquee) ===== */
.iland-news-strip { display: none; }
body.theme--ilandstyle .iland-news-strip {
  display: block;
  background: #000;
  border: 2px ridge #ffff00;
  margin: 12px 16px;
  overflow: hidden;
  padding: 4px 0;
}
body.theme--ilandstyle .iland-news-strip__inner {
  display: inline-block;
  white-space: nowrap;
  color: #00ff00;
  font-family: "MS PGothic", "Courier New", monospace;
  font-size: 13px;
  font-weight: bold;
  padding-left: 100%;
  animation: iland-news-scroll 22s linear infinite;
  text-shadow: 0 0 4px #00ff00;
}
@keyframes iland-news-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
body.theme--ilandstyle .iland-news-strip__inner span { margin-right: 50px; }

/* ===== アクセスカウンター: 3連 (本日/昨日/累計) ===== */
.iland-counter-host { display: none; }
body.theme--ilandstyle .iland-counter-host {
  display: block;
  text-align: center;
  padding: 30px 16px 0;
}
body.theme--ilandstyle .iland-counter-frame {
  display: inline-block;
  background: #fff;
  border: 4px ridge #ff1493;
  padding: 10px 14px;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .iland-counter-title {
  font-family: inherit;
  font-weight: bold;
  color: #ff0080;
  text-shadow: 1px 1px 0 #ffff00;
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 2px;
}
body.theme--ilandstyle .iland-counter-title::before { content: "▼ "; }
body.theme--ilandstyle .iland-counter-title::after { content: " ▼"; }
body.theme--ilandstyle .iland-counter-grid {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap;
}
body.theme--ilandstyle .iland-counter-cell {
  background: #ffff00;
  border: 2px solid #000;
  padding: 4px 8px;
  font-family: inherit;
  text-align: center;
  min-width: 90px;
}
body.theme--ilandstyle .iland-counter-cell__label {
  display: block;
  font-size: 10px;
  color: #800080;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
body.theme--ilandstyle .iland-counter-cell__digits {
  display: inline-block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", "MS Gothic", monospace;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 4px;
  padding: 2px 6px;
  border: 1px inset #888;
  text-shadow: 0 0 4px #00ff00;
  min-width: 70px;
}
body.theme--ilandstyle .iland-counter-foot {
  margin-top: 6px;
  font-size: 10px;
  color: #ff0080;
  letter-spacing: 1px;
}
body.theme--ilandstyle .iland-counter-foot::before { content: "★ "; }
body.theme--ilandstyle .iland-counter-foot::after { content: " ★"; }

/* レガシー単体カウンター（互換） */
body.theme--ilandstyle .iland-counter {
  display: inline-flex; align-items: center; gap: 8px;
  background: #000;
  border: 2px inset #888;
  padding: 4px 10px;
}
body.theme--ilandstyle .iland-counter__label {
  color: #ffff00;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}
body.theme--ilandstyle .iland-counter__digits {
  font-family: "Courier New", monospace;
  font-size: 24px;
  font-weight: bold;
  background: #000;
  color: #00ff00;
  padding: 0 8px;
  letter-spacing: 0.2em;
  text-shadow: 0 0 4px #00ff00;
}

/* ===== キリ番ゲット モーダル ===== */
.iland-kiriban {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .7);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: iland-kiriban-in .3s ease-out;
  font-family: "MS PGothic", sans-serif;
}
@keyframes iland-kiriban-in { from { opacity: 0; } }
.iland-kiriban__inner {
  background: #ffff00;
  border: 6px ridge #ff1493;
  border-radius: 0;
  padding: 24px 32px;
  max-width: 440px;
  text-align: center;
  box-shadow: 8px 8px 0 #000;
  position: relative;
  animation: iland-kiriban-pop .4s cubic-bezier(.16,1.6,.3,1);
}
@keyframes iland-kiriban-pop {
  from { transform: scale(.5) rotate(-10deg); }
  to { transform: scale(1) rotate(0); }
}
.iland-kiriban__star {
  font-size: 22px;
  color: #ff0080;
  letter-spacing: 4px;
  text-shadow: 1px 1px 0 #fff;
  animation: iland-blink 0.5s infinite alternate;
}
.iland-kiriban h2 {
  margin: 10px 0;
  color: #ff0080;
  font-size: 24px;
  font-family: inherit !important;
  text-shadow: 2px 2px 0 #fff, 3px 3px 0 #000;
  letter-spacing: 2px;
}
.iland-kiriban__num {
  font-family: "Courier New", "MS Gothic", monospace !important;
  font-size: 44px !important;
  font-weight: bold;
  color: #00ff00;
  background: #000;
  padding: 6px 20px;
  display: inline-block;
  margin: 10px 0;
  text-shadow: 0 0 6px #00ff00;
  letter-spacing: 0.1em;
  border: 2px inset #888;
}
.iland-kiriban p {
  color: #000;
  line-height: 1.6;
  background: #fff;
  border: 1px solid #000;
  padding: 6px 10px;
  margin-top: 8px;
  font-size: 12px;
}
.iland-kiriban__close {
  margin-top: 12px;
  background: #ff1493;
  color: #ffff00;
  border: 4px outset #ff69b4;
  border-radius: 0;
  padding: 6px 24px;
  font-weight: bold;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}
.iland-kiriban__close:active { border-style: inset; }

/* ===== 更新履歴 ===== */
.iland-history { display: none; }
body.theme--ilandstyle .iland-history {
  display: block;
  max-width: 760px;
  margin: 30px auto;
  background: #fff;
  border: 4px ridge #ff1493;
  padding: 14px 18px;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .iland-history h3 {
  margin: 0 0 8px;
  color: #ff0080;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #ffff00;
  border-bottom: 2px dotted #ff1493;
  padding-bottom: 4px;
}
body.theme--ilandstyle .iland-history h3::before { content: "■ "; color: #ff1493; }
body.theme--ilandstyle .iland-history ul { list-style: none; padding: 0; margin: 0; font-size: 12px; }
body.theme--ilandstyle .iland-history li {
  padding: 3px 0;
  border-bottom: 1px dotted #ffcce0;
  color: #000;
}
body.theme--ilandstyle .iland-history li::before { content: "・"; color: #ff1493; margin-right: 4px; }
body.theme--ilandstyle .iland-history li b { color: #0000ff; font-family: monospace; margin-right: 6px; }

/* ===== 拍手ボタン ===== */
.iland-clap { display: none; }
body.theme--ilandstyle .iland-clap {
  display: block;
  max-width: 760px;
  margin: 24px auto;
  text-align: center;
  background: #fffdf0;
  border: 3px ridge #ff8c00;
  padding: 12px;
  box-shadow: 3px 3px 0 #ffcc66;
}
body.theme--ilandstyle .iland-clap p {
  margin: 0 0 8px;
  color: #ff0080;
  font-weight: bold;
  font-size: 13px;
}
body.theme--ilandstyle .iland-clap p::before { content: "(*ﾟ▽ﾟ)ﾉ "; }
body.theme--ilandstyle .iland-clap button {
  background: #ff1493;
  color: #ffff00;
  border: 4px outset #ff69b4;
  border-radius: 0;
  padding: 6px 24px;
  font-family: inherit;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}
body.theme--ilandstyle .iland-clap button:active { border-style: inset; }
body.theme--ilandstyle .iland-clap__count {
  display: inline-block;
  background: #000;
  color: #00ff00;
  font-family: "Courier New", monospace;
  font-weight: bold;
  padding: 2px 10px;
  margin-left: 8px;
  border: 2px inset #888;
  letter-spacing: 2px;
}

/* ===== 相互リンク募集中バナー ===== */
.iland-linkban { display: none; }
body.theme--ilandstyle .iland-linkban {
  display: block;
  max-width: 760px;
  margin: 24px auto;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, #ff1493 0 8px, #ff69b4 8px 16px);
  color: #ffff00;
  padding: 12px;
  font-family: inherit;
  font-weight: bold;
  font-size: 14px;
  text-shadow: 1px 1px 0 #000, 2px 2px 0 #800080;
  letter-spacing: 2px;
  border: 4px ridge #ffff00;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .iland-linkban::before { content: "(/・ω・)/ "; }
body.theme--ilandstyle .iland-linkban::after { content: " \\(・ω・\\)"; }

/* ===== 管理人プロフ ===== */
.iland-kanrinin { display: none; }
body.theme--ilandstyle .iland-kanrinin {
  display: block;
  max-width: 760px;
  margin: 24px auto;
  background: #fffdf0;
  border: 4px ridge #800080;
  box-shadow: 4px 4px 0 #b497ff;
  padding: 14px 16px;
}
body.theme--ilandstyle .iland-kanrinin h3 {
  margin: 0 0 8px;
  color: #800080;
  font-family: inherit;
  font-size: 16px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #ffff00;
  border-bottom: 2px dotted #800080;
  padding-bottom: 4px;
}
body.theme--ilandstyle .iland-kanrinin h3::before { content: "◆ "; color: #ff1493; }
body.theme--ilandstyle .iland-kanrinin dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 4px 12px;
  margin: 0;
  font-size: 12px;
  color: #000;
}
body.theme--ilandstyle .iland-kanrinin dt {
  color: #800080;
  font-weight: bold;
}
body.theme--ilandstyle .iland-kanrinin dt::before { content: "▼"; margin-right: 4px; color: #ff1493; }
body.theme--ilandstyle .iland-kanrinin dd { margin: 0; }

/* ===== BBS (掲示板) ===== */
.iland-bbs { display: none; }
body.theme--ilandstyle .iland-bbs {
  display: block;
  max-width: 760px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 4px ridge #ff1493;
  box-shadow: 4px 4px 0 #000;
}
body.theme--ilandstyle .iland-bbs__head {
  text-align: center;
  margin-bottom: 16px;
  border-bottom: 2px dotted #ff1493;
  padding-bottom: 8px;
}
body.theme--ilandstyle .iland-bbs__head h2 {
  font-size: 22px;
  color: #ff0080;
  font-family: inherit !important;
  text-shadow: 2px 2px 0 #ffff00, 3px 3px 0 #000;
  margin-bottom: 6px;
  letter-spacing: 2px;
}
body.theme--ilandstyle .iland-bbs__head h2::before { content: "■"; color: #ff1493; margin-right: 6px; }
body.theme--ilandstyle .iland-bbs__head h2::after { content: "■"; color: #ff1493; margin-left: 6px; }
body.theme--ilandstyle .iland-bbs__head p { color: #800080; font-size: 11px; font-weight: bold; }
body.theme--ilandstyle .iland-bbs__form {
  background: #fffdf0;
  border: 3px ridge #ff8c00;
  border-radius: 0;
  padding: 12px;
  margin-bottom: 20px;
  box-shadow: 3px 3px 0 #ffcc66;
}
body.theme--ilandstyle .iland-bbs__form label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: #ff0080;
  font-weight: bold;
}
body.theme--ilandstyle .iland-bbs__form label::before { content: "▼"; color: #ff8c00; margin-right: 4px; }
body.theme--ilandstyle .iland-bbs__form input,
body.theme--ilandstyle .iland-bbs__form textarea {
  width: 100%;
  padding: 4px 6px;
  margin-top: 2px;
  border: 2px inset #ff8c00;
  border-radius: 0;
  background: #fff;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
body.theme--ilandstyle .iland-bbs__form textarea { resize: vertical; min-height: 70px; }
body.theme--ilandstyle .iland-bbs__submit {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
body.theme--ilandstyle .iland-bbs__submit button {
  background: #ff1493;
  color: #ffff00;
  border: 4px outset #ff69b4;
  border-radius: 0;
  padding: 6px 20px;
  font-weight: bold;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  text-shadow: 1px 1px 0 #000;
}
body.theme--ilandstyle .iland-bbs__submit button:active { border-style: inset; }
body.theme--ilandstyle .iland-bbs__submit small { color: #ff0080; font-size: 11px; font-weight: bold; }
body.theme--ilandstyle .iland-bbs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
body.theme--ilandstyle .iland-bbs__post {
  background: #fffdf0;
  border: 2px ridge #ff1493;
  border-left: 6px solid #ff1493;
  border-radius: 0;
  padding: 10px 12px;
  box-shadow: 2px 2px 0 #ffcce0;
}
body.theme--ilandstyle .iland-bbs__post-head {
  font-size: 11px;
  color: #800080;
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px dotted #ff1493;
  padding-bottom: 4px;
}
body.theme--ilandstyle .iland-bbs__post-num {
  background: #000;
  color: #00ff00;
  padding: 1px 6px;
  border-radius: 0;
  font-size: 11px;
  font-weight: bold;
  font-family: "Courier New", monospace;
  letter-spacing: 1px;
  border: 1px inset #888;
}
body.theme--ilandstyle .iland-bbs__post strong { color: #ff0080; font-size: 13px; }
body.theme--ilandstyle .iland-bbs__post strong::before { content: "▼"; color: #ff1493; margin-right: 2px; }
body.theme--ilandstyle .iland-bbs__post small { font-family: monospace; color: #808080; }
body.theme--ilandstyle .iland-bbs__post p { margin: 0; color: #000; line-height: 1.6; word-break: break-word; font-size: 13px; }
body.theme--ilandstyle .iland-bbs__empty {
  text-align: center;
  padding: 24px;
  color: #808080;
  background: #fffdf0;
  border: 2px dashed #ff1493;
  border-radius: 0;
  font-style: normal;
  font-size: 12px;
}
body.theme--ilandstyle .iland-bbs__empty::before { content: "(´・ω・`)"; display: block; margin-bottom: 6px; font-size: 18px; color: #800080; }


/* ==========================================================
   ✦ Kinetic テンプレ (body.theme--kinetic 時のみ)
   動きと奥行きで魅せる映像的デザイン
   ベースカラーは modern と同じダーク基調を維持しつつ、
   ガラスモーフィズム + カスタムカーソル + 磁石ボタン +
   浮遊グラデ玉 + シマーアニメ等で premium 感を加える
   ========================================================== */

/* 現代テーマの回路基板 body::before を Kinetic では非表示 */
body.theme--kinetic::before { display: none !important; }

body.theme--kinetic {
  background: #050505 !important;
  position: relative;
  overflow-x: clip;
}

/* === 浮遊グラデ玉 (JS で <div class="kinetic-decor"> として注入) === */
.kinetic-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.kinetic-orb {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  will-change: transform;
  /* 色の遷移は CSS transition では不可能 (グラデは画像扱いで補間されない)。
     JS 側 (mountKineticSectionTone) が --kinetic-tone を rAF で
     補間してじわっと混ぜる */
}
.kinetic-orb--blue {
  background: radial-gradient(circle, var(--kinetic-tone, #4cc9f0) 0%, transparent 70%);
  top: -25vmax;
  left: -20vmax;
  animation: kinetic-orbit-1 32s ease-in-out infinite;
}
.kinetic-orb--purple {
  background: radial-gradient(circle, var(--kinetic-tone, #4cc9f0) 0%, transparent 70%);
  bottom: -25vmax;
  right: -20vmax;
  animation: kinetic-orbit-2 38s ease-in-out infinite;
}
.kinetic-orb--cyan {
  background: radial-gradient(circle, var(--kinetic-tone, #4cc9f0) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  width: 40vmax;
  height: 40vmax;
  opacity: .22;
  animation: kinetic-orbit-3 26s ease-in-out infinite;
}
@keyframes kinetic-orbit-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18vw, 14vh) scale(1.15); }
}
@keyframes kinetic-orbit-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-15vw, -12vh) scale(.85); }
}
@keyframes kinetic-orbit-3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-20%, -65%) scale(1.3); }
}

/* === カスタムカーソル === */
.kinetic-cursor,
.kinetic-cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99999;
  border-radius: 50%;
  mix-blend-mode: difference;
  will-change: transform, width, height;
}
.kinetic-cursor {
  width: 40px;
  height: 40px;
  border: 1px solid #fff;
  transform: translate3d(-50%, -50%, 0);
  transition: width .25s var(--ease, ease), height .25s var(--ease, ease),
              background .25s ease, border-color .25s ease;
}
.kinetic-cursor.is-hover {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, .12);
}
.kinetic-cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transform: translate3d(-50%, -50%, 0);
}
@media (hover: none), (pointer: coarse) {
  .kinetic-cursor, .kinetic-cursor-dot { display: none !important; }
}
@media (hover: hover) and (pointer: fine) {
  body.theme--kinetic,
  body.theme--kinetic *:not(input):not(textarea):not(select) { cursor: none !important; }
}

/* === コンテンツを最前面に === */
body.theme--kinetic .header,
body.theme--kinetic .hero,
body.theme--kinetic .section,
body.theme--kinetic .marquee,
body.theme--kinetic .footer { position: relative; z-index: 1; }

/* === ヘッダ: ガラス === */
body.theme--kinetic .header {
  background: rgba(5, 5, 5, .55) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* === HERO: タイトルにシマーグラデ ===
   .hero__title-line span 側で background-clip がリセットされるため
   (style.css の modern 既定)、シマーは span 単位で適用する */
body.theme--kinetic .hero {
  background: transparent !important;
  overflow: hidden;
}
body.theme--kinetic .hero__title-line {
  filter: drop-shadow(0 0 30px rgba(76, 201, 240, .25));
}
body.theme--kinetic .hero__title-line span {
  background: linear-gradient(135deg, #fff 0%, #fff 30%, #4cc9f0 50%, #38bdf8 70%, #fff 90%) !important;
  background-size: 250% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  animation: kinetic-shimmer 8s linear infinite;
}
@keyframes kinetic-shimmer { to { background-position: 250% center; } }
body.theme--kinetic .hero__title-sub {
  color: rgba(255, 255, 255, .65) !important;
}
body.theme--kinetic .hero__tag {
  color: #4cc9f0 !important;
}

/* === HERO: AI ニューラルネットワーク背景 (canvas は JS で注入) === */
body.theme--kinetic .kinetic-neural {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.theme--kinetic .hero__inner,
body.theme--kinetic .hero__pulse { position: relative; z-index: 1; }
body.theme--kinetic .hero__grid { opacity: .35; }

/* === マーキー: グラデ枠 === */
body.theme--kinetic .marquee {
  background: rgba(255, 255, 255, .02) !important;
  border-top: 1px solid rgba(255, 255, 255, .06);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
body.theme--kinetic .marquee__hero,
body.theme--kinetic .marquee__mono {
  background: linear-gradient(135deg, #fff, #4cc9f0, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0 !important;
}

/* === セクション head === */
body.theme--kinetic .section__head {
  background: rgba(255, 255, 255, .02) !important;
  border-color: rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
body.theme--kinetic .section__title {
  letter-spacing: -.04em;
}

/* === カード共通: ガラス + アニメグラデ枠 === */
body.theme--kinetic .concept__card,
body.theme--kinetic .work__item,
body.theme--kinetic .member__item,
body.theme--kinetic .price__item,
body.theme--kinetic .faq__item {
  background: rgba(255, 255, 255, .035) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 0 !important;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1),
              background .35s ease, border-color .35s ease,
              box-shadow .4s ease;
}
body.theme--kinetic .concept__card:hover,
body.theme--kinetic .work__item:hover,
body.theme--kinetic .price__item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(76, 201, 240, .35) !important;
  box-shadow: 0 20px 50px -10px rgba(76, 201, 240, .25);
}
body.theme--kinetic .member__item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .055) !important;
  border-color: rgba(124, 58, 237, .35) !important;
  box-shadow: 0 20px 50px -10px rgba(124, 58, 237, .25);
}

/* === PORTFOLIO (実績): ガラスカード === */
body.theme--kinetic .portfolio__item {
  background: rgba(255, 255, 255, .035) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 0 !important;
}
body.theme--kinetic .portfolio__item:hover {
  transform: translateY(-8px);
  border-color: rgba(76, 201, 240, .4) !important;
  box-shadow: 0 24px 60px -16px rgba(76, 201, 240, .3);
}
body.theme--kinetic .portfolio__shot { background: #06070b; border-bottom-color: rgba(255, 255, 255, .08); }
body.theme--kinetic .portfolio__title { color: #fff; }
body.theme--kinetic .portfolio__desc { color: rgba(255, 255, 255, .65); }
body.theme--kinetic .portfolio__cta { color: #4cc9f0; }
body.theme--kinetic .portfolio__shot--wip {
  background:
    radial-gradient(circle at 30% 20%, rgba(76, 201, 240, .25), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(124, 58, 237, .2), transparent 55%),
    linear-gradient(135deg, #050810, #0a0d18);
}
body.theme--kinetic .portfolio__wip-tag { color: #4cc9f0; border-color: rgba(76, 201, 240, .6); }
body.theme--kinetic .portfolio__wip-title { color: #fff; }
body.theme--kinetic .portfolio__wip-sub { color: rgba(255, 255, 255, .6); }
body.theme--kinetic .portfolio__badge { color: #4cc9f0; border-color: rgba(76, 201, 240, .6); }
body.theme--kinetic .portfolio__category {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* === CONCEPT カード: グラデ枠の表現 (擬似要素) === */
body.theme--kinetic .concept__card { position: relative; isolation: isolate; overflow: hidden; }
body.theme--kinetic .concept__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--angle, 0deg), #4cc9f0, #7c3aed, #4cc9f0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s ease;
  animation: kinetic-rotate 8s linear infinite;
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes kinetic-rotate { to { --angle: 360deg; } }
body.theme--kinetic .concept__card:hover::after { opacity: 1; }

/* === ボタン: 磁石 + 物理的な質感 (inset ハイライト + シャイン) === */
body.theme--kinetic .btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease;
}
/* hover 時に光が左から右へ走り抜けるシャインスイープ */
body.theme--kinetic .btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
  z-index: 1;
}
body.theme--kinetic .btn:hover::before { left: 135%; }
body.theme--kinetic .btn--primary {
  /* 上が明るく下が深い縦グラデ = 光が上から当たっている物理感 */
  background: linear-gradient(180deg, #62d6f7 0%, #38b6e3 55%, #2596c4 100%) !important;
  color: #00222e !important;
  border: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 1px 2px rgba(0, 0, 0, .45),
    0 8px 24px -10px rgba(76, 201, 240, .4);
}
body.theme--kinetic .btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(0, 0, 0, .18),
    0 2px 4px rgba(0, 0, 0, .5),
    0 12px 32px -10px rgba(76, 201, 240, .55);
}
body.theme--kinetic .btn--ghost {
  background: rgba(255, 255, 255, .035) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 1px 2px rgba(0, 0, 0, .35);
}
body.theme--kinetic .btn--ghost:hover {
  background: rgba(255, 255, 255, .07) !important;
  border-color: rgba(255, 255, 255, .28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .12),
    0 2px 6px rgba(0, 0, 0, .4);
}

/* === フォーム === */
body.theme--kinetic .form__field input,
body.theme--kinetic .form__field textarea,
body.theme--kinetic .form__field select {
  background: rgba(255, 255, 255, .04) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .1) !important;
  color: #fff !important;
}
body.theme--kinetic .form__field input:focus,
body.theme--kinetic .form__field textarea:focus,
body.theme--kinetic .form__field select:focus {
  border-color: #4cc9f0 !important;
  box-shadow: 0 0 0 4px rgba(76, 201, 240, .15) !important;
  background: rgba(255, 255, 255, .06) !important;
}

/* === チップ === */
body.theme--kinetic .chip span {
  background: rgba(255, 255, 255, .04) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  color: rgba(255, 255, 255, .8) !important;
}
body.theme--kinetic .chip input:checked + span {
  background: linear-gradient(135deg, #4cc9f0, #38bdf8) !important;
  color: #001624 !important;
  border-color: transparent !important;
}

/* === フッター === */
body.theme--kinetic .footer__sitemap {
  background: transparent !important;
  border-color: rgba(255, 255, 255, .06) !important;
}
body.theme--kinetic .footer__sitemap a {
  background: rgba(255, 255, 255, .02) !important;
  border-right: 1px solid rgba(255, 255, 255, .06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .06) !important;
  transition: background .3s ease, color .3s ease, padding .3s ease;
}
body.theme--kinetic .footer__sitemap a:hover {
  background: rgba(76, 201, 240, .08) !important;
  color: #4cc9f0 !important;
}
/* footer__big: テーマに馴染むホログラフィック仕上げ。
   文字内にドットノイズ (フィルム感) + 上白→下シアンのグラデ。
   背景の縦線グリッド (.footer::before) は別途 kinetic で非表示にする。 */
body.theme--kinetic .footer__big {
  position: relative;
  background-color: transparent;
  background-image:
    radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px),
    linear-gradient(180deg,
      rgba(255, 255, 255, .92) 0%,
      rgba(180, 220, 240, .65) 35%,
      rgba(76, 201, 240, .35) 65%,
      rgba(76, 201, 240, .08) 100%
    );
  background-size: 3px 3px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  filter: drop-shadow(0 0 24px rgba(76, 201, 240, .22));
}
/* 背景の縦線グリッド (.footer::before) を kinetic では消す
   = ユーザが「背景の線」として気にしていたもの */
body.theme--kinetic .footer::before { display: none !important; }

/* === 数字カウンタ風スタイル (section__num) === */
body.theme--kinetic .section__num {
  background: linear-gradient(135deg, #4cc9f0, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* === Reduced motion 対応 === */
@media (prefers-reduced-motion: reduce) {
  body.theme--kinetic .kinetic-orb { animation: none !important; }
  body.theme--kinetic .hero__title-line { animation: none !important; }
  body.theme--kinetic .concept__card::after { animation: none !important; }
}
