/* =========================================================
   HAKU Labo — site.css
   トークン → 基本 → レイアウト → 部品 → ページ固有 の順
   ========================================================= */
:root {
  --night: #0b1020;
  --night-2: #121a33;
  --night-line: rgba(255, 255, 255, .1);
  --ink: #141823;
  --ink-2: #3c4354;
  --muted: #6b7286;
  --paper: #f5f3ee;
  --paper-2: #ece8df;
  --card: #ffffff;
  --line: #e2ddd2;
  --blue: #2f6bff;
  --blue-2: #5b8cff;
  --blue-ink: #1d4fd6;
  --cyan: #67c7ff;
  --music: #7a5cff;
  --sns: #f0782d;
  --web: #13a38f;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 1px 2px rgba(20, 24, 35, .06), 0 6px 20px rgba(20, 24, 35, .06);
  --shadow-2: 0 2px 6px rgba(20, 24, 35, .08), 0 24px 60px rgba(20, 24, 35, .14);
  --wrap: 1180px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
  --en: "Outfit", "Zen Kaku Gothic New", system-ui, sans-serif;
  --header-h: 72px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--jp); font-size: 16px; line-height: 1.9; letter-spacing: .03em;
  font-feature-settings: "palt" 1; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: .04em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.nw { display: inline-block; }
.sp { display: none; }
@media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }

/* ---------- レイアウト ---------- */
.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-white { background: var(--card); }
.section-sand { background: var(--paper-2); }
.section-dark { background: var(--night); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 900; }
.section-lead { color: var(--ink-2); margin: 18px 0 0; font-size: 1.02rem; }
.section-dark .section-lead { color: rgba(255, 255, 255, .72); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-family: var(--en); font-weight: 600; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.section-dark .eyebrow, .page-hero .eyebrow, .site-footer .eyebrow { color: var(--cyan); }
.num { font-family: var(--en); font-weight: 600; letter-spacing: .06em; }

/* ---------- ボタン ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 700; font-size: .96rem; text-decoration: none; letter-spacing: .06em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20, 24, 35, .18); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--blue); --bd: var(--blue); background-image: linear-gradient(135deg, var(--blue) 0%, #4f7dff 100%); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(47, 107, 255, .38); }
.btn-ghost { --bg: transparent; --fg: var(--ink); --bd: rgba(20, 24, 35, .25); }
.btn-ghost:hover { --bd: var(--ink); }
.btn-ghost-light { --bg: rgba(255, 255, 255, .06); --fg: #fff; --bd: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { --bd: #fff; background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn-lg { min-height: 58px; padding: 16px 34px; font-size: 1.05rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; color: var(--blue-ink); }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- ヘッダー ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); color: #fff; transition: background .3s, box-shadow .3s, color .3s; }
.site-header.is-solid, body:not(.has-dark-hero) .site-header { background: rgba(245, 243, 238, .86); color: var(--ink); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 rgba(20, 24, 35, .08); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.brand-name { font-family: var(--en); font-size: 1.28rem; font-weight: 500; letter-spacing: .08em; }
.brand-name b { font-weight: 700; color: var(--blue-2); }
.site-header.is-solid .brand-name b, body:not(.has-dark-hero) .brand-name b { color: var(--blue); }
.site-header.is-solid .brand img, body:not(.has-dark-hero) .site-header .brand img { filter: drop-shadow(0 1px 1.5px rgba(11, 16, 32, .55)) drop-shadow(0 0 6px rgba(11, 16, 32, .18)); }
.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: 4px; list-style: none; }
.gnav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 500; opacity: .86; transition: background .2s, opacity .2s; }
.gnav a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.gnav a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, .16); }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; border-radius: 12px; background: rgba(127, 127, 127, .14); cursor: pointer; position: relative; }
.menu-btn span:not(.sr) { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:nth-child(1) { top: 18px; }
.menu-btn span:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0; background: var(--night); color: #fff; padding: 24px var(--gutter) 40px; overflow-y: auto; }
.drawer ul { list-style: none; margin-bottom: 28px; }
.drawer li a { display: block; padding: 16px 4px; font-size: 1.15rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--night-line); }
.drawer .btn { width: 100%; }
body.menu-open { overflow: hidden; }
body.menu-open .site-header { background: var(--night); color: #fff; }
@media (max-width: 1020px) {
  .gnav { display: none; }
  .header-cta { margin-left: auto; }
  .menu-btn { display: block; margin-left: 0; }
}
@media (max-width: 480px) { .header-cta { display: none; } .menu-btn { margin-left: auto; } }

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--night);
  padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 110px);
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(47, 107, 255, .45), transparent 60%),
    radial-gradient(40% 50% at 10% 90%, rgba(122, 92, 255, .32), transparent 60%),
    radial-gradient(30% 40% at 60% 100%, rgba(19, 163, 143, .22), transparent 60%),
    var(--night);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-title { font-size: clamp(2.3rem, 6.2vw, 4.6rem); font-weight: 900; line-height: 1.22; letter-spacing: .05em; }
.hero-title .grad { background: linear-gradient(100deg, #9fc0ff 0%, var(--cyan) 45%, #b6a4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { margin: 28px 0 36px; font-size: clamp(1rem, 1.6vw, 1.12rem); color: rgba(255, 255, 255, .78); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .86rem; color: rgba(255, 255, 255, .62); list-style: none; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ヒーローの構図：3つのデバイス */
.stage { position: relative; aspect-ratio: 1 / .92; min-height: 360px; }
.stage .device { position: absolute; }
.stage .d-browser { width: 78%; left: 0; top: 10%; transform: rotate(-4deg); animation: float 9s ease-in-out infinite; }
.stage .d-phone-1 { width: 32%; right: 2%; top: 0; transform: rotate(6deg); animation: float 7s ease-in-out -2s infinite; }
.stage .d-phone-2 { width: 30%; right: 22%; bottom: 0; transform: rotate(-2deg); animation: float 8s ease-in-out -4s infinite; z-index: 2; }
.stage .badge { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.stage .badge i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-style: normal; }
.stage .badge-1 { left: -2%; bottom: 14%; animation: float 6s ease-in-out -1s infinite; }
.stage .badge-1 i { background: var(--music); }
.stage .badge-2 { right: -2%; top: 46%; animation: float 7s ease-in-out -3s infinite; }
.stage .badge-2 i { background: var(--sns); }
.wave-bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.wave-bars b { width: 3px; border-radius: 2px; background: #fff; animation: eq 1.2s ease-in-out infinite; }
.wave-bars b:nth-child(2) { animation-delay: -.2s; } .wave-bars b:nth-child(3) { animation-delay: -.5s; } .wave-bars b:nth-child(4) { animation-delay: -.8s; } .wave-bars b:nth-child(5) { animation-delay: -.35s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stage { max-width: 560px; width: 100%; margin: 12px auto 0; min-height: 0; }
}

/* デバイス枠 */
.device { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
.d-browser .frame { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .25); }
.d-browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9ebf0; }
.d-browser .bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9ced8; }
.d-browser .bar i:nth-child(1) { background: #ff6b5f; } .d-browser .bar i:nth-child(2) { background: #ffbd2e; } .d-browser .bar i:nth-child(3) { background: #28c840; }
.d-browser .bar span { margin-left: 10px; flex: 1; height: 18px; border-radius: 6px; background: #fff; font: 500 10px/18px var(--en); color: #8a90a0; padding-left: 10px; overflow: hidden; white-space: nowrap; }
.d-browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.d-phone .frame { border-radius: 26px; padding: 7px; background: linear-gradient(145deg, #2a2f3d, #0f121a); border: 1px solid rgba(255, 255, 255, .18); }
.d-phone img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; border-radius: 20px; }

/* マーキー */
.marquee { background: var(--blue); color: #fff; overflow: hidden; padding: 16px 0; font-family: var(--en); font-weight: 600; letter-spacing: .14em; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; font-size: 1.05rem; }
.marquee span::after { content: "✦"; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 事業（トップ） ---------- */
.biz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.biz + .biz { margin-top: clamp(80px, 10vw, 140px); }
.biz:nth-child(even) .biz-visual { order: 2; }
.biz-visual { position: relative; border-radius: 28px; padding: clamp(24px, 4vw, 48px); overflow: hidden; isolation: isolate; min-height: 340px; display: grid; place-items: center; }
.biz-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: .12; }
.biz-visual::after { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--c); filter: blur(80px); opacity: .35; z-index: -1; right: -20%; bottom: -30%; }
.biz-visual .pair { display: grid; grid-template-columns: 1fr .42fr; gap: 18px; align-items: end; width: 100%; }
.biz-visual .d-browser .frame { border-color: rgba(20, 24, 35, .08); }
.biz-visual .device { filter: drop-shadow(0 20px 30px rgba(20, 24, 35, .2)); }
.biz-num { font-family: var(--en); font-weight: 700; font-size: .9rem; color: var(--c); letter-spacing: .14em; display: flex; align-items: center; gap: 12px; }
.biz-num::after { content: ""; flex: 0 0 48px; height: 2px; background: currentColor; }
.biz-title { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 900; margin: 10px 0 4px; }
.biz-sub { font-weight: 700; color: var(--c); margin-bottom: 18px; }
.biz-text { color: var(--ink-2); }
.biz-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.biz-list li { padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 700; background: var(--card); border: 1px solid var(--line); }
.biz-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 16px 0; margin-bottom: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.biz-price small { color: var(--muted); font-size: .84rem; }
.biz-price strong { font-family: var(--en); font-size: 1.7rem; }
.biz-price .unit { font-size: .9rem; font-weight: 700; }
.biz .btn { --bg: var(--c); --bd: var(--c); }
.biz .btn:hover { box-shadow: 0 12px 26px color-mix(in srgb, var(--c) 40%, transparent); }
.c-music { --c: var(--music); } .c-sns { --c: var(--sns); } .c-web { --c: var(--web); } .c-blue { --c: var(--blue); }
@media (max-width: 900px) {
  .biz { grid-template-columns: 1fr; }
  .biz:nth-child(even) .biz-visual { order: 0; }
  .biz-visual { min-height: 0; }
}

/* 音楽用のビジュアル（画面写真＋波形） */
.wave-art { display: flex; align-items: center; justify-content: center; gap: 5px; height: 72px; margin-top: 18px; }
.wave-art b { width: 6px; border-radius: 4px; background: linear-gradient(var(--music), var(--blue)); animation: eq 1.6s ease-in-out infinite; }

/* ---------- 方針 ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; }
.principle { background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); border-radius: var(--radius); padding: 30px 26px; transition: background .3s, transform .3s var(--ease); }
.principle:hover { background: rgba(255, 255, 255, .07); transform: translateY(-4px); }
.principle .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--music)); margin-bottom: 22px; }
.principle .icon svg { width: 24px; height: 24px; }
.principle h3 { font-size: 1.12rem; margin-bottom: 10px; }
.principle p { color: rgba(255, 255, 255, .7); font-size: .93rem; margin: 0; }
@media (max-width: 1020px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* ---------- 流れ ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--music), var(--sns), var(--web)); opacity: .5; }
.flow li { counter-increment: s; text-align: center; padding: 0 12px; position: relative; }
.flow li::before { content: counter(s, decimal-leading-zero); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); font: 700 1rem var(--en); color: var(--blue-ink); position: relative; }
.flow strong { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.flow span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.75; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow::before { left: 27px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; background: linear-gradient(var(--blue), var(--music), var(--sns), var(--web)); }
  .flow li { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .flow li::before { grid-row: span 2; margin: 0; }
  .flow strong { align-self: end; margin: 0; }
}

/* ---------- カード（見本・お知らせ） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
a.card:hover .card-media img { transform: scale(1.04); }
.card-tag { position: absolute; left: 14px; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .74rem; font-weight: 700; box-shadow: var(--shadow-1); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-kicker { font-size: .78rem; font-weight: 700; color: var(--c, var(--blue-ink)); letter-spacing: .08em; }
.card-title { font-size: 1.14rem; font-weight: 700; }
.card-text { color: var(--ink-2); font-size: .92rem; margin: 0; }
.card .link-arrow { margin-top: auto; padding-top: 12px; color: var(--c, var(--blue-ink)); }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.note { font-size: .84rem; color: var(--muted); margin-top: 22px; }

/* フィルター（見本ページ） */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filters button { border: 1.5px solid var(--line); background: var(--card); padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; cursor: pointer; transition: all .2s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card[hidden] { display: none; }

/* お知らせ */
.news { list-style: none; border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news a, .news .row { display: grid; grid-template-columns: 120px 150px 1fr; gap: 16px; align-items: baseline; padding: 22px 4px; text-decoration: none; transition: background .2s; }
.news a:hover { background: rgba(255, 255, 255, .6); }
.news time { font-family: var(--en); font-weight: 600; color: var(--muted); }
.news .cat { justify-self: start; font-size: .76rem; font-weight: 700; padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c, var(--blue)) 12%, transparent); color: var(--c, var(--blue-ink)); }
.news .ttl { font-weight: 700; }
.news .desc { grid-column: 3; color: var(--ink-2); font-size: .92rem; margin: -8px 0 0; }
@media (max-width: 680px) {
  .news a, .news .row { grid-template-columns: auto 1fr; gap: 4px 12px; }
  .news .ttl, .news .desc { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 880px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h3 { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.faq-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--blue)); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: var(--shadow-1); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 60px 20px 58px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 22px; top: 18px; font: 700 1.1rem var(--en); color: var(--blue); }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .a { padding: 0 24px 22px 58px; color: var(--ink-2); position: relative; }
.faq .a::before { content: "A"; position: absolute; left: 22px; top: 0; font: 700 1.1rem var(--en); color: var(--sns); }
.faq .a p:last-child { margin: 0; }

/* ---------- 下層ページのヒーロー ---------- */
.page-hero { position: relative; overflow: hidden; color: #fff; background: var(--night); padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 80px); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 90% 0%, color-mix(in srgb, var(--c, var(--blue)) 55%, transparent), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(122, 92, 255, .25), transparent 70%); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; }
.page-hero .lead { margin: 20px 0 0; color: rgba(255, 255, 255, .78); max-width: 40em; font-size: 1.04rem; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .82rem; color: rgba(255, 255, 255, .6); margin-bottom: 28px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ホームページ制作ページ */
.web-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.web-hero-grid .pair { display: grid; grid-template-columns: 1fr .4fr; gap: 16px; align-items: end; }
@media (max-width: 900px) { .web-hero-grid { grid-template-columns: 1fr; } }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; }
.checks li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.checks .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: color-mix(in srgb, var(--web) 14%, #fff); color: var(--web); }
.checks .ic svg { width: 22px; height: 22px; }
.checks strong { display: block; font-size: 1.06rem; margin-bottom: 6px; }
.checks span { display: block; color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
@media (max-width: 960px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .checks { grid-template-columns: 1fr; } }
.for-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; list-style: none; }
.for-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border-radius: 16px; padding: 18px 20px; border: 1px solid var(--line); font-weight: 700; }
.for-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--web) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
@media (max-width: 700px) { .for-list { grid-template-columns: 1fr; } }
.plan-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: stretch; }
.plan { position: relative; background: var(--card); border-radius: 26px; padding: clamp(28px, 4vw, 44px); border: 2px solid var(--web); box-shadow: var(--shadow-2); }
.plan-label { position: absolute; top: -14px; left: 32px; background: var(--web); color: #fff; font-weight: 700; font-size: .82rem; padding: 4px 16px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.plan .price strong { font-family: var(--en); font-size: clamp(2.8rem, 6vw, 3.6rem); line-height: 1; color: var(--web); }
.plan .price span { font-weight: 700; }
.plan ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 30px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--web) 16%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313a38f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { --bg: var(--web); --bd: var(--web); width: 100%; }
.plan-side { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: clamp(24px, 3.5vw, 36px); }
.plan-side h3 { font-size: 1.1rem; margin-bottom: 14px; }
.plan-side dl { margin: 0; }
.plan-side dt { font-weight: 700; margin-top: 14px; }
.plan-side dd { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; }
@media (max-width: 900px) { .plan-wrap { grid-template-columns: 1fr; } }

/* About */
.statement { font-size: clamp(1.4rem, 3.2vw, 2.2rem); font-weight: 900; line-height: 1.6; }
.statement em { font-style: normal; color: var(--blue); }
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.logo-panel { border-radius: 28px; background: var(--night); padding: 48px; display: grid; place-items: center; position: relative; overflow: hidden; isolation: isolate; }
.logo-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 60% at 70% 30%, rgba(47, 107, 255, .5), transparent 70%); }
.logo-panel img { width: min(240px, 70%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.info { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.info th, .info td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 30%; background: #faf9f6; font-weight: 700; white-space: nowrap; }
@media (max-width: 620px) {
  .info th, .info td { display: block; width: 100%; }
  .info th { border-bottom: 0; padding-bottom: 4px; }
  .info td { padding-top: 0; }
}

/* ---------- フォーム ---------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .form-grid { grid-template-columns: 1fr; } }
.form { background: var(--card); border-radius: 26px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.field { margin-bottom: 24px; }
.field > label, .field > .label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.req, .opt { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.req { background: #ffe9e3; color: #c2401c; }
.opt { background: var(--paper-2); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid #d6d1c6; background: #fcfbf8;
  transition: border-color .2s, box-shadow .2s, background .2s; font-size: 16px;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .15); }
.textarea { min-height: 200px; resize: vertical; line-height: 1.8; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233c4354' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.hint { font-size: .84rem; color: var(--muted); margin-top: 6px; }
.field-error { font-size: .86rem; color: #c2401c; margin-top: 6px; font-weight: 700; }
.is-invalid { border-color: #e0623e !important; background: #fff7f4; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid #d6d1c6; border-radius: 12px; background: #fcfbf8; font-weight: 700; font-size: .94rem; transition: all .2s; }
.choice span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b8b2a5; transition: all .2s; }
.choice input:checked + span { border-color: var(--blue); background: #f2f6ff; }
.choice input:checked + span::before { border: 5px solid var(--blue); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47, 107, 255, .2); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: 12px; background: #fff1ec; color: #a2361a; font-weight: 700; margin-bottom: 22px; }
.form-alert:empty { display: none; }
.form .btn { width: 100%; }
.side-box { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.side-box + .side-box { margin-top: 18px; }
.side-box h3 { font-size: 1.04rem; margin-bottom: 10px; }
.side-box p, .side-box li { font-size: .92rem; color: var(--ink-2); }
.side-box ul { list-style: none; display: grid; gap: 10px; margin-top: 12px; }
.side-box .link-arrow { font-size: .92rem; }

/* ---------- 文章ページ（規約など） ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin: 48px 0 14px; padding-left: 16px; border-left: 4px solid var(--blue); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.4em; margin-bottom: 1em; }
.prose li { margin: 4px 0; }
.legal { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: .94rem; line-height: 1.85; }
.legal th { width: 28%; background: #faf9f6; }
@media (max-width: 680px) { .legal th, .legal td { display: block; width: 100%; } .legal th { border-bottom: 0; padding-bottom: 4px; } .legal td { padding-top: 0; } }
.updated { margin-top: 32px; font-size: .86rem; color: var(--muted); }

/* ---------- フッター ---------- */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 0%, rgba(47, 107, 255, .35), transparent 70%); }
.footer-cta { text-align: center; padding: clamp(72px, 10vw, 120px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--night-line); }
.footer-cta-title { color: #fff; font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 18px; }
.footer-cta p { max-width: 36em; margin: 0 auto 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 36px; padding: 56px 0 40px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; font-size: .9rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-h { font-family: var(--en); font-weight: 600; letter-spacing: .14em; font-size: .78rem; color: rgba(255, 255, 255, .5); text-transform: uppercase; margin-bottom: 14px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .9rem; margin: 0 0 6px; }
.footer-mail a { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0 34px; border-top: 1px solid var(--night-line); font-size: .82rem; color: rgba(255, 255, 255, .5); }
.to-top { text-decoration: none; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 出現アニメーション ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 404・完了 ---------- */
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--night); color: #fff; padding: calc(var(--header-h) + 40px) var(--gutter) 60px; }
.center-page .big { font: 700 clamp(5rem, 18vw, 9rem)/1 var(--en); background: linear-gradient(100deg, #9fc0ff, var(--cyan), #b6a4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.center-page h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); margin: 18px 0 14px; }
.center-page p { color: rgba(255, 255, 255, .72); }
.center-page .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.done-icon { width: 88px; height: 88px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--blue), var(--web)); box-shadow: 0 20px 50px rgba(47, 107, 255, .45); }
.done-icon svg { width: 44px; height: 44px; }
