/* ==========================================================================
   LOGWORK — Teaser LP (Framer-inspired)
   Mobile-first (375px) → 768 / 1024+ · Light, orange accent
   ========================================================================== */

/* ---- Tokens ---- */
:root {
  --bg:         #F6F7F8;
  --bg-warm:    #FBF6F2;
  --card:       #FFFFFF;
  --text:       #1D1D1F;
  --muted:      #5F6368;
  --muted-2:    #86898F;

  --accent:     #d1490f;            /* CTA / 強調（ブランド統一オレンジ）*/
  --accent-2:   #ef7a2e;            /* グラデ明 */
  --accent-3:   #d1490f;            /* グラデ暗 */
  --accent-ink: #FFFFFF;
  --grad-warm:  linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);

  --hairline:   #E7E9EC;
  --hairline-2: #EEF0F2;

  --r-sm: 14px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16,24,40,.05);
  --shadow-sm: 0 2px 6px rgba(16,24,40,.05), 0 1px 2px rgba(16,24,40,.04);
  --shadow:    0 10px 30px rgba(16,24,40,.07), 0 4px 10px rgba(16,24,40,.04);
  --shadow-lg: 0 30px 70px rgba(16,24,40,.13), 0 12px 28px rgba(16,24,40,.08);
  --shadow-glow: 0 24px 60px rgba(209,73,15,.30);

  --maxw: 1160px;
  --gutter: 22px;
  --header-h: 64px;
  /* 数字・ラテンは Inter、日本語は Noto Sans JP にフォールバック */
  --font: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN",
          "Yu Gothic", Meiryo, system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  padding-top: var(--header-h);
  font-size: 16px; line-height: 1.75; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 50%, white); outline-offset: 3px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, white); }

/* ---- Layout ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 72px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, white);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.section-head { max-width: 660px; }
.section-head.center { margin-inline: auto; text-align: center; }
.display {
  font-weight: 900; letter-spacing: -.01em; line-height: 1.12; text-wrap: balance;
  font-size: clamp(30px, 8vw, 56px);
}
.section-title { font-weight: 900; letter-spacing: -.005em; line-height: 1.2; font-size: clamp(27px, 6.4vw, 42px); margin-top: 16px; }
.lead { color: var(--muted); font-size: clamp(15px, 4vw, 18px); margin-top: 16px; text-wrap: pretty; }
.center .lead { margin-inline: auto; max-width: 40em; }
.grad-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding-inline: 26px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 16px; border: 1.5px solid transparent;
  transition: transform .14s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--grad-warm); color: var(--accent-ink); box-shadow: var(--shadow-glow); }
.btn-primary:hover { box-shadow: 0 30px 70px rgba(209,73,15,.40); transform: translateY(-2px); }
.btn-secondary { background: var(--card); color: var(--text); border-color: var(--hairline); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--hairline)); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); background: color-mix(in srgb, var(--bg) 86%, transparent); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { color: var(--text); display: inline-flex; align-items: center; position: relative; }
.brand .logo-wordmark { height: 22px; width: auto; transition: opacity .45s var(--ease); }
.brand .logo-symbol { position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 36px; width: auto; opacity: 0; transition: opacity .45s var(--ease); }
.site-header.is-scrolled .brand .logo-wordmark { opacity: 0; }
.site-header.is-scrolled .brand .logo-symbol { opacity: 1; }
.header-cta {
  display: inline-flex; align-items: center; height: 42px; padding-inline: 18px;
  background: var(--grad-warm); color: var(--accent-ink); border: 0; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; box-shadow: 0 8px 20px rgba(209,73,15,.26);
  transition: transform .14s var(--ease), box-shadow .25s var(--ease);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(209,73,15,.34); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: 40px; padding-bottom: 24px; overflow: clip; }
.hero::before { /* warm glow */
  content: ""; position: absolute; z-index: -1; top: -160px; right: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 68%);
  filter: blur(20px); pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--hairline); color: var(--muted);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.hero-title { font-weight: 900; letter-spacing: -.015em; line-height: 1.18; font-size: clamp(24px, 6.6vw, 52px); margin-top: 22px; word-break: keep-all; overflow-wrap: anywhere; }
.hero-break { display: inline; }
.hero-title .accent { color: transparent; background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; }
.hero-sub { color: var(--muted); font-size: clamp(15px, 4.4vw, 19px); margin-top: 20px; max-width: 30em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; align-items: center; gap: 16px; margin-top: 22px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.hero-meta .item { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Hero layout — mobile: スクショをコピーの上に・カードは中央揃え */
.hero .container { display: flex; flex-direction: column; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-copy .hero-sub { margin-inline: auto; }
.hero-copy .hero-meta { justify-content: center; }

/* Hero load-in fade（ファーストビュー。CSS駆動でちらつき無し） */
.hero-copy > * { animation: heroIn .8s var(--ease) both; }
.hero-copy .hero-badge   { animation-delay: .05s; }
.hero-copy .hero-title   { animation-delay: .14s; }
.hero-copy .hero-sub     { animation-delay: .24s; }
.hero-copy .hero-actions { animation-delay: .34s; }
.hero-copy .hero-meta    { animation-delay: .42s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Hero visual — floating phones */
.hero-visual { order: -1; margin-top: 0; margin-bottom: 36px; display: flex; justify-content: center; position: relative; animation: heroIn .9s var(--ease) .22s both; }
.hero-phones { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.hero-phones .phone::after { filter: drop-shadow(0 26px 50px rgba(16,24,40,.24)); }
/* 読み込み完了までhero端末を非表示（チラつき防止） */
.hero-phones { opacity: 0; transition: opacity .45s var(--ease); }
.hero-phones.is-ready { opacity: 1; }
.hero-phones .phone-back {
  width: 188px; transform: rotate(-7deg) translateY(14px); margin-right: -54px; z-index: 1; opacity: .96;
}
.hero-phones .phone-front { width: 232px; transform: rotate(3deg); z-index: 2; }

/* ==========================================================================
   iPhone mock (shared)
   ========================================================================== */
/* 端末枠：高解像度フレーム画像(1428x2940)を縮小表示し、回転時のジャギーを抑える */
.phone {
  position: relative; width: 232px; aspect-ratio: 476 / 980; flex: none;
  transform: translateZ(0); /* レイヤー化して回転を高品質合成 */
}
.phone::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: url(/logwork/screens/phone-frame.png) center / 100% 100% no-repeat;
  image-rendering: auto;
  filter: drop-shadow(0 18px 36px rgba(16,24,40,.18));
}
/* 画面の切り抜き位置（フレーム画像 screen-frame_v1 基準・実測値） */
.phone-screen {
  position: absolute; left: 4.21%; top: 1.74%; width: 91.57%; height: 96.55%;
  z-index: 1; border-radius: 10% / 4.8%; overflow: hidden; background: var(--bg);
}
.phone-screen .shot { width: 100%; height: 100%; object-fit: cover; background: linear-gradient(150deg, #EEF0F3 0%, #E3E6EB 100%); }
.shot-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--muted-2); text-align: center; padding: 18px; pointer-events: none; background: linear-gradient(150deg, #EEF0F3 0%, #E3E6EB 100%); }
.shot-ph svg { width: 34px; height: 34px; opacity: .5; }
.shot-ph span { font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* ==========================================================================
   Marquee strip (logos / trust line)
   ========================================================================== */
.strip { padding-block: 28px; border-block: 1px solid var(--hairline-2); background: var(--card); }
.strip-inner { display: flex; align-items: center; justify-content: center; gap: 14px 40px; flex-wrap: wrap; color: var(--muted-2); font-size: 13px; font-weight: 600; text-align: center; }
.strip-inner b { color: var(--text); font-weight: 800; }

/* ==========================================================================
   Features
   ========================================================================== */
.features { padding-top: 84px; }
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 36px 32px; margin-top: 48px; }
.feature-card { position: relative; }
.feature-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--grad-warm); color: #fff; box-shadow: 0 8px 18px rgba(209,73,15,.28); }
.feature-icon svg { width: 27px; height: 27px; }
.feature-no { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--accent) 70%, var(--muted)); letter-spacing: .12em; margin-top: 20px; }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-top: 6px; }
.feature-card p { color: var(--muted); font-size: 14.5px; margin-top: 9px; }

/* ==========================================================================
   Empathy — こんな人に
   ========================================================================== */
.empathy { background: var(--bg-warm); }
.empathy-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
.empathy-grid { gap: 36px 32px; }
.empathy-item {
  display: flex; flex-direction: column; gap: 16px;
}
.empathy-item .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, white); color: var(--accent); }
.empathy-item .ico svg { width: 26px; height: 26px; }
.empathy-item h3 { font-size: 17px; font-weight: 800; }
.empathy-item p { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ==========================================================================
   Screenshot strip
   ========================================================================== */
.gallery { overflow: clip; }
.gallery-viewport { position: relative; margin-top: 44px; }
.gallery-scroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: 20px; padding-bottom: 4px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;   /* スクロールバー非表示 */
}
.gallery-scroll::-webkit-scrollbar { display: none; }

/* 左右ナビ矢印 */
.gallery-nav {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 4;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); color: var(--text);
  border: 1px solid var(--hairline); box-shadow: var(--shadow);
  transition: transform .14s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease), opacity .2s var(--ease);
}
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-nav.prev { left: 4px; }
.gallery-nav.next { right: 4px; }
.gallery-nav:hover { transform: translateY(-50%) scale(1.06); border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); color: var(--accent); }
.gallery-nav:active { transform: translateY(-50%) scale(.96); }
.gallery-nav[disabled] { opacity: .35; pointer-events: none; }
.gallery-item { scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery-item .phone { width: 210px; }
.gallery-cap { font-size: 14px; font-weight: 700; color: var(--text); }
.gallery-hint { text-align: center; color: var(--muted-2); font-size: 12.5px; margin-top: 10px; }

/* ==========================================================================
   Waitlist
   ========================================================================== */
.waitlist { position: relative; }
.waitlist-shell {
  position: relative; overflow: hidden; max-width: 640px; margin: 48px auto 0;
  background: linear-gradient(160deg, #1D1D1F 0%, #2a2522 100%); color: #fff;
  border-radius: var(--r-xl); padding: 40px 26px;
  box-shadow: var(--shadow-lg);
}
.waitlist-shell::before { content: ""; position: absolute; top: -120px; right: -80px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%); pointer-events: none; }
.waitlist-shell .eyebrow { background: color-mix(in srgb, var(--accent) 24%, transparent); color: #fff; }
.waitlist-shell h2 { font-size: clamp(26px, 6vw, 36px); font-weight: 900; letter-spacing: -.01em; line-height: 1.2; margin-top: 16px; }
.waitlist-shell .lead { color: rgba(255,255,255,.72); }
.waitlist-form { position: relative; margin-top: 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: rgba(255,255,255,.9); }
.field input[type="email"] {
  width: 100%; height: 56px; border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); padding-inline: 18px; font-size: 16px; color: #fff;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.field input[type="email"]::placeholder { color: rgba(255,255,255,.45); }
.field input[type="email"]:focus { outline: none; border-color: var(--accent); background: rgba(255,255,255,.1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent); }
.checkbox { display: flex; align-items: flex-start; gap: 12px; padding: 15px 16px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.12); border-radius: var(--r-sm); cursor: pointer; margin-bottom: 16px; }
.checkbox input { width: 22px; height: 22px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.checkbox span { font-size: 14px; font-weight: 600; }
.checkbox span small { display: block; font-weight: 500; color: rgba(255,255,255,.6); font-size: 12.5px; margin-top: 3px; }
.consent { font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 16px; text-align: center; line-height: 1.7; }
.consent a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.waitlist-thanks { display: none; text-align: center; }
.waitlist-thanks.is-visible { display: block; animation: pop .45s var(--ease) both; }
.waitlist-form.is-hidden { display: none; }
.thanks-badge { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--grad-warm); color: #fff; box-shadow: var(--shadow-glow); }
.thanks-badge svg { width: 36px; height: 36px; }
.waitlist-thanks h3 { font-size: 23px; font-weight: 900; }
.waitlist-thanks p { color: rgba(255,255,255,.72); font-size: 14.5px; margin-top: 12px; }
.thanks-actions { margin-top: 24px; }
.thanks-social { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.thanks-social a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background .15s var(--ease); }
.thanks-social a:hover { background: rgba(255,255,255,.2); }
.thanks-social svg { width: 20px; height: 20px; }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 24px; height: 24px; color: var(--accent); transition: transform .25s var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.faq-item .faq-a a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #161618; color: #fff; padding-block: 56px 32px; }
.footer-top { display: flex; flex-direction: column; gap: 32px; }
.footer-brand .logo-wordmark { height: 24px; color: #fff; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 16px; max-width: 30em; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.footer-links a { color: rgba(255,255,255,.8); font-size: 14px; padding-block: 7px; display: inline-block; transition: color .15s var(--ease); }
.footer-links a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .15s var(--ease), transform .15s var(--ease); }
.footer-social a:hover { background: var(--grad-warm); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 10px; color: rgba(255,255,255,.5); font-size: 12.5px; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
[data-reveal].pre { opacity: 0; transform: translateY(26px); }
[data-reveal].pre.is-in { opacity: 1; transform: none; }
[data-reveal].pre[data-reveal-delay="1"].is-in { transition-delay: .08s; }
[data-reveal].pre[data-reveal-delay="2"].is-in { transition-delay: .16s; }
[data-reveal].pre[data-reveal-delay="3"].is-in { transition-delay: .24s; }

/* ==========================================================================
   Legal pages (利用規約 / プライバシーポリシー)
   ========================================================================== */
.legal-hero { padding-top: 56px; padding-bottom: 8px; position: relative; overflow: clip; }
.legal-hero::before { content: ""; position: absolute; z-index: -1; top: -180px; right: -120px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%); filter: blur(20px); pointer-events: none; }
.legal-hero .crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 13px; font-weight: 600; }
.legal-hero .crumbs a { color: var(--muted); }
.legal-hero .crumbs a:hover { color: var(--accent); }
.legal-hero h1 { font-weight: 900; letter-spacing: -.01em; line-height: 1.18; font-size: clamp(28px, 7vw, 46px); margin-top: 16px; }
.legal-hero .updated { color: var(--muted); font-size: 13.5px; margin-top: 14px; }
.legal-hero .updated b { color: var(--text); font-weight: 700; }

.legal-body { padding-top: 40px; padding-bottom: 72px; }
.legal-wrap { max-width: 820px; margin-inline: auto; }
.legal-note { padding: 0 0 22px; color: var(--text); font-size: 13.5px; line-height: 1.8; display: flex; gap: 12px; margin-bottom: 36px; border-bottom: 1px solid var(--hairline); }
.legal-note svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* 目次 */
.legal-toc { padding: 22px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); margin-bottom: 40px; }
.legal-toc h2 { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; font-weight: 600; color: var(--text); padding: 4px 0; transition: color .15s var(--ease); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 800; font-size: 12.5px; min-width: 22px; }
.legal-toc a:hover { color: var(--accent); }

.legal-article { counter-reset: sec; }
.legal-article > section { padding-top: 28px; scroll-margin-top: 84px; }
.legal-article > section + section { margin-top: 8px; }
.legal-article h2 { counter-increment: sec; font-size: clamp(18px, 4.6vw, 23px); font-weight: 800; letter-spacing: -.005em; line-height: 1.4; display: flex; gap: 12px; align-items: baseline; }
.legal-article h2::before { content: counter(sec, decimal-leading-zero); color: var(--accent); font-weight: 900; font-size: 14px; min-width: 26px; }
.legal-article h3 { font-size: 16px; font-weight: 700; margin-top: 22px; }
.legal-article p { color: var(--muted); font-size: 15px; line-height: 1.9; margin-top: 14px; }
.legal-article ul, .legal-article ol.deep { margin-top: 14px; padding-left: 4px; display: grid; gap: 10px; }
.legal-article li { color: var(--muted); font-size: 15px; line-height: 1.8; display: flex; gap: 12px; }
.legal-article ul li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 11px; }
.legal-article ol.deep { counter-reset: di; }
.legal-article ol.deep li { counter-increment: di; }
.legal-article ol.deep li::before { content: counter(di) "."; flex: none; color: var(--accent); font-weight: 800; font-size: 14px; min-width: 18px; }
.legal-article a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal-article .ph { color: var(--muted-2); font-style: normal; background: var(--bg); border: 1px dashed var(--hairline); border-radius: 6px; padding: 1px 7px; font-size: .92em; }
.legal-divider { height: 1px; background: var(--hairline); border: 0; margin: 40px 0 0; }

.legal-contact { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.legal-contact h2 { font-size: 18px; font-weight: 800; }
.legal-contact h2::before { content: none; }
.legal-contact p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
.legal-contact a { color: var(--accent); font-weight: 700; }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; font-weight: 700; color: var(--accent); font-size: 15px; }
.legal-back svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .legal-hero { padding-top: 80px; }
  .legal-body { padding-bottom: 100px; }
}

/* ==========================================================================
   Accent Tweaks panel (開発用 — 公開前に削除可)
   ========================================================================== */
.tweaks { position: fixed; right: 16px; bottom: 16px; z-index: 100; font-family: var(--font); }
.tweaks-toggle { position: relative; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--card); box-shadow: var(--shadow-lg); display: grid; place-items: center; color: var(--text); }
.tweaks-toggle svg { width: 24px; height: 24px; }
.tweaks-toggle .ring { position: absolute; inset: 6px; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; }
.tweaks-panel { position: absolute; right: 0; bottom: 64px; width: 232px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 16px; display: none; }
.tweaks.is-open .tweaks-panel { display: block; animation: pop .2s var(--ease) both; }
.tweaks-panel h4 { font-size: 13px; font-weight: 800; margin: 0 0 4px; }
.tweaks-panel .hint { font-size: 11.5px; color: var(--muted); margin: 0 0 14px; }
.swatches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 10px; border: 2px solid transparent; cursor: pointer; padding: 0; position: relative; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch[aria-pressed="true"] { border-color: var(--text); }
.swatch[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; background: #fff; border-radius: 50%; box-shadow: 0 0 0 2px rgba(0,0,0,.15); }
.tweaks-reset { margin-top: 14px; width: 100%; height: 36px; border-radius: 10px; border: 1px solid var(--hairline); background: var(--bg); color: var(--muted); font-size: 12.5px; font-weight: 700; }

/* ==========================================================================
   Responsive — 768px
   ========================================================================== */
@media (min-width: 768px) {
  .section { padding-block: 100px; }
  .hero-actions { flex-direction: row; }
  .hero-actions .btn { flex: 1; }
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .empathy-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-scroll { grid-auto-columns: 100%; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .waitlist-shell { padding: 52px 48px; }
}

/* ==========================================================================
   Responsive — 1024px+
   ========================================================================== */
@media (min-width: 1024px) {
  .hero { padding-top: 72px; padding-bottom: 56px; }
  .hero .container { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; }
  .hero-copy { padding-block: 8px; text-align: left; align-items: flex-start; }
  .hero-copy .hero-sub { margin-inline: 0; }
  .hero-copy .hero-meta { justify-content: flex-start; }
  .hero-actions { max-width: 480px; }
  .hero-visual { order: 0; margin-top: 0; margin-bottom: 0; justify-content: flex-end; }
  .hero-phones .phone-back { width: 220px; }
  .hero-phones .phone-front { width: 272px; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-scroll { grid-auto-columns: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-copy > *, .hero-visual { animation: none !important; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; --header-h: 60px; }
  .header-cta { height: 38px; padding-inline: 13px; font-size: 13px; }
}

/* ===== Header blog link ===== */
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-nav { color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; transition: color .15s ease; }
.header-nav:hover { color: var(--accent); }

/* ===== Blog section (LP) — ブログページと同じカード形式 ===== */
.blog-sub { color: var(--muted); font-size: clamp(15px, 4vw, 17px); margin-top: 14px; }
.blog-grid { max-width: 560px; margin: 36px auto 0; }
.blog .post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r, 16px); overflow: hidden; box-shadow: var(--shadow-xs, 0 1px 2px rgba(16,24,40,.05)); text-align: left; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.blog .post-card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--hairline)); box-shadow: var(--shadow); transform: translateY(-4px); }
.blog .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.blog .thumb-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center; color: #fff; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 92%, white) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 78%, black) 100%); }
.blog .thumb-ph .ph-logo { display: inline-flex; align-items: center; color: #fff; opacity: .96; }
.blog .thumb-ph .ph-logo .logo-symbol { height: 26px; width: auto; }
.blog .thumb-ph .ph-note { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.78); }
.blog .thumb .tag { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; height: 26px; padding-inline: 12px; border-radius: var(--r-pill, 999px); background: rgba(255,255,255,.92); color: var(--accent); font-size: 11.5px; font-weight: 700; backdrop-filter: blur(4px); }
.blog .post-card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.blog .post-card .label-en { font-family: var(--font-en, inherit); font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.blog .post-card h3 { font-size: clamp(17px, 4.4vw, 21px); font-weight: 800; line-height: 1.45; letter-spacing: -.005em; overflow-wrap: anywhere; }
.blog .post-card h3 a { color: inherit; transition: color .15s ease; }
.blog .post-card:hover h3 a { color: var(--accent); }
.blog .post-card .date { color: var(--muted-2, #9AA0A6); font-family: var(--font-en, inherit); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.blog .post-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 2px; overflow-wrap: anywhere; }
.blog-more { text-align: center; margin-top: 28px; }
@media (max-width: 600px) {
  .header-actions { gap: 12px; }
}
