/* サービス紹介（ホーム・index.html）だけで使うスタイル */
:root {
  --ink: #14151f;
  --sub: #5d6173;
  --line: #e5e6ef;
  --bg: #ffffff;
  --soft: #f5f5fa;
  --accent: #4f46e5;
  --accent-soft: #eef0ff;
  --code: #0f766e;
  --code-soft: #e6f6f2;
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.lead, .sec-head p, .answer { word-break: auto-phrase; }
@media (max-width: 720px) { .br-pc { display: none; } }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ヘッダー */
.hd { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.hd.scrolled { border-bottom-color: var(--line); }
.hd .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: .01em; }
.logo img { width: 26px; height: 26px; }
.logo small { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 7px; border-radius: 5px; letter-spacing: 0; }
.hd nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.hd nav a { text-decoration: none; color: var(--sub); }
.hd nav a:hover { color: var(--ink); }
.hd-cta { display: flex; gap: 8px; align-items: center; }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 16px; border-radius: 12px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -6px rgba(79, 70, 229, .55); }
.btn.primary:hover { background: #4338ca; transform: translateY(-1px); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #c4c7dc; }
.btn.plain { color: var(--sub); padding: 0 10px; }
.btn.plain:hover { color: var(--ink); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { transform: translateY(-1px); }
.btn.outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.outline-light:hover { border-color: #fff; }

/* メインビジュアル */
.hero { position: relative; padding: 76px 0 24px; overflow: hidden; background: radial-gradient(900px 420px at 78% -8%, #e9e6ff 0, rgba(233, 230, 255, 0) 65%), radial-gradient(700px 360px at 8% 8%, #e3f5f0 0, rgba(227, 245, 240, 0) 60%), #fff; }
.hero-txt { text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 6px 14px 6px 6px; border-radius: 999px; }
.eyebrow b { background: var(--ink); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.28; letter-spacing: -.01em; margin: 22px 0 20px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--code) 0%, var(--accent) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(15px, 1.7vw, 18px); color: var(--sub); max-width: 660px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { font-size: 13px; color: var(--sub); margin: 14px 0 0; }
.hero-visual { position: relative; max-width: 1080px; margin: 60px auto 0; }
.shot { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(20, 21, 60, .45), 0 0 0 1px rgba(20, 21, 60, .08); }
.shot .bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f2f6; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d7d9e2; }
.shot img { width: 100%; height: auto; }
.float-code { position: absolute; left: -44px; bottom: 52px; width: 320px; background: #16172a; color: #d6d8f0; border-radius: 12px; padding: 14px 16px 16px; font: 12.5px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .5); }
.float-code .t { font: 700 11px/1 var(--font); color: #8f93b8; margin-bottom: 8px; letter-spacing: .04em; }
.float-code .tag { color: #7dd3c0; }
.float-code .at { color: #c4b5fd; }
.float-code .st { color: #fcd34d; }
.float-code mark { background: rgba(79, 70, 229, .45); color: #fff; border-radius: 3px; padding: 0 2px; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 13.5px; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(20, 21, 60, .35), 0 0 0 1px rgba(20, 21, 60, .06); }
.chip i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-style: normal; font-size: 12px; }
.chip.c1 { top: 70px; right: -36px; }
.chip.c2 { top: 190px; right: -56px; }
.chip.c2 i { background: var(--code); }

/* セクション共通 */
.sec { padding: 104px 0; }
.sec.soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 740px; margin: 0 auto 56px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--accent); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.42; margin: 10px 0 14px; letter-spacing: -.005em; }
.sec-head p { color: var(--sub); margin: 0; }

/* こんなとき */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.pain .who { font-size: 12px; font-weight: 700; color: var(--sub); }
.pain .q { font-weight: 800; font-size: 18px; line-height: 1.6; margin: 8px 0 0; color: var(--ink); }
.pain p { color: var(--sub); font-size: 14.5px; margin: 12px 0 0; }
.answer { margin: 48px auto 0; text-align: center; font-size: clamp(19px, 2.4vw, 26px); font-weight: 800; line-height: 1.6; }
.answer span { box-shadow: inset 0 -.42em 0 #e4e1ff; }

/* 特徴 */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.feat + .feat { margin-top: 120px; }
.feat.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.feat.rev .feat-txt { order: 2; }
.num { font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); letter-spacing: .12em; }
.feat h3 { font-size: clamp(23px, 2.8vw, 33px); line-height: 1.45; margin: 14px 0 16px; }
.feat p { color: var(--sub); margin: 0 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 32px; font-size: 15px; line-height: 1.7; }
.checks li::before { content: ""; position: absolute; left: 0; top: .12em; width: 21px; height: 21px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.feat-img { position: relative; }
.feat-img .shot { border-radius: 12px; }
.phone { width: min(300px, 80%); margin: 0 auto; border-radius: 40px; padding: 11px; background: #14151f; box-shadow: 0 40px 80px -30px rgba(20, 21, 60, .55); }
.phone img { border-radius: 30px; width: 100%; height: auto; }
.feat-img .blob { position: absolute; inset: 8% -4% -6% 10%; z-index: -1; border-radius: 40px; background: linear-gradient(135deg, #ecebff, #e3f5f0); }

/* 使い方 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px; }
.step .n { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; }
.step h3 { margin: 20px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--sub); font-size: 14.5px; }
.step + .step::before { content: ""; position: absolute; left: -20px; top: 52px; width: 20px; border-top: 2px dashed #c9cbe0; }

/* 使う人 */
.whos { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.who-card { border-radius: 22px; padding: 40px; background: #fff; border: 1px solid var(--line); }
.who-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.who-card .tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 11px; border-radius: 999px; background: var(--code-soft); color: var(--code); }
.who-card.dark .tag { background: rgba(255, 255, 255, .12); color: #c7c4ff; }
.who-card h3 { font-size: 22px; line-height: 1.5; margin: 16px 0 14px; }
.who-card p { color: var(--sub); margin: 0 0 20px; font-size: 15px; }
.who-card.dark p { color: #b9bbd3; }
.who-card.dark .checks li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7c4ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* できること */
.funcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.func { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; }
.func svg { width: 26px; height: 26px; color: var(--accent); }
.func b { display: block; margin: 14px 0 6px; font-size: 16px; }
.func span { font-size: 13.5px; color: var(--sub); line-height: 1.75; display: block; }
.soon-note { text-align: center; color: var(--sub); font-size: 14px; margin: 28px 0 0; }
.soon { display: inline-block; font-size: 11px; font-weight: 800; color: #92400e; background: #fef3c7; padding: 1px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }

/* よくある質問 */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 4px; position: relative; font-weight: 700; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 4px 22px; color: var(--sub); font-size: 15px; }

/* 最後の案内 */
.final { padding: 96px 0; }
.final-box { position: relative; overflow: hidden; border-radius: 28px; padding: 72px 40px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 85% 0%, rgba(124, 112, 255, .55), rgba(124, 112, 255, 0) 70%), radial-gradient(500px 280px at 0% 100%, rgba(45, 170, 150, .45), rgba(45, 170, 150, 0) 70%), #14151f; }
.final-box h2 { font-size: clamp(25px, 3.4vw, 38px); line-height: 1.45; margin: 0 0 14px; }
.final-box p { color: #c3c5dc; margin: 0 auto; max-width: 560px; }
.final-box .hero-cta { margin-top: 32px; }

/* フッター */
.ft { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 13.5px; color: var(--sub); }
.ft .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.ft nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ft nav a { text-decoration: none; }
.ft nav a:hover { color: var(--ink); }
.ft .logo { font-size: 15px; color: var(--ink); }

/* 料金プラン */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.plan-name { font-weight: 800; font-size: 18px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.plan-price b { font-size: 40px; line-height: 1.1; letter-spacing: -.02em; }
.plan-price span { color: var(--sub); font-size: 14px; }
.plan-lead { color: var(--sub); font-size: 14px; margin: 0 0 20px; }
.plan .checks { flex: 1; margin-bottom: 26px; }
.plan .checks li { font-size: 14.5px; }
.plan .btn { width: 100%; }
.plan-note { text-align: center; color: var(--sub); font-size: 13px; margin: 26px 0 0; }

/* 動き：最初の表示とスクロールで表示（動きを減らす設定のときは付けない：index.html の head で js-anim を付ける） */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
body { overflow-x: clip; }
.js-anim .hero-txt > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js-anim .hero-txt > :nth-child(2) { animation-delay: .08s; }
.js-anim .hero-txt > :nth-child(3) { animation-delay: .16s; }
.js-anim .hero-txt > :nth-child(4) { animation-delay: .24s; }
.js-anim .hero-txt > :nth-child(5) { animation-delay: .32s; }
.js-anim .hero-visual { animation: rise 1s .35s cubic-bezier(.2, .7, .2, 1) both; }
.js-anim .chip { animation: bob 5s ease-in-out infinite; }
.js-anim .chip.c2 { animation-delay: -2.5s; }
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js-anim .reveal.pop { transform: translateY(20px) scale(.97); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.js-anim .stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-anim .stagger.in > * { opacity: 1; transform: none; }
.js-anim .stagger.in > :nth-child(2) { transition-delay: .1s; }
.js-anim .stagger.in > :nth-child(3) { transition-delay: .2s; }
.js-anim .stagger.in > :nth-child(4) { transition-delay: .3s; }
.js-anim .stagger.in > :nth-child(5) { transition-delay: .4s; }
.js-anim .stagger.in > :nth-child(6) { transition-delay: .5s; }
.js-anim .stagger.in > :nth-child(7) { transition-delay: .6s; }
.js-anim .stagger.in > :nth-child(8) { transition-delay: .7s; }

@media (max-width: 1180px) {
  .float-code { left: 12px; }
  .chip.c1, .chip.c2 { right: 12px; }
}
@media (max-width: 960px) {
  .hd nav { display: none; }
  .hd-cta { margin-left: auto; }
  .feat, .feat.rev { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feat.rev .feat-txt { order: 0; }
  .feat + .feat { margin-top: 88px; }
  .pains, .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step::before { display: none; }
  .whos { grid-template-columns: minmax(0, 1fr); }
  .funcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin: 0 auto; }
  .float-code, .chip { display: none; }
  .sec { padding: 80px 0; }
}
@media (max-width: 560px) {
  .hd-cta .btn.plain { display: none; }
  .hero { padding-top: 52px; }
  .eyebrow { font-size: 11.5px; gap: 8px; }
  .hero-cta .btn { width: 100%; }
  .funcs { grid-template-columns: minmax(0, 1fr); }
  .who-card { padding: 30px 24px; }
  .final-box { padding: 56px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
/* ヘルプへの入口（どの幅でも見えるように） */
.hd-cta .hd-help, .hd-cta .hd-contact { color: var(--sub); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 8px; border-radius: 8px; }
.hd-cta .hd-help:hover, .hd-cta .hd-contact:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.faq-more { margin: 22px 0 0; text-align: center; color: var(--sub); }
.faq-more a { font-weight: 700; }
/* ログイン中に右上へ出すアカウント（ダッシュボードと同じ見た目） */
.hd-user { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 10px; border-radius: 10px; text-decoration: none; color: inherit; }
.hd-user:hover { background: rgba(0, 0, 0, .04); }
.hd-user span { color: var(--sub); font-size: 13px; font-weight: 600; }
.hd-user .avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--accent, #4f46e5); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; font-style: normal; }
.hd-user[hidden] { display: none; }
@media (max-width: 720px) { .hd-user span { display: none; } }

/* 取り込めなかったコードの案内（お問い合わせページへ。IMP-V57） */
.improve-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .improve-cta { flex-direction: column; } .improve-cta .btn { width: 100%; } }
/* スマホ幅：上のメニューの文字が1文字ずつ折り返さないように（ヘルプ・お問い合わせはスマホでも上に出す。IMP-V57） */
.hd-cta .hd-help, .hd-cta .hd-contact { white-space: nowrap; }
@media (max-width: 560px) { .hd-cta { gap: 2px; } .hd-cta .hd-help, .hd-cta .hd-contact { font-size: 13px; padding: 6px 5px; } .hd .logo { white-space: nowrap; } }
@media (max-width: 430px) { .hd .wrap { padding-left: 12px; padding-right: 12px; } .hd .logo { font-size: 16px; gap: 6px; } .hd-cta .hd-help, .hd-cta .hd-contact { font-size: 12px; padding: 6px 4px; } .hd-cta .btn.sm { padding-left: 12px; padding-right: 12px; font-size: 13px; } }
@media (max-width: 370px) { .hd .logo { font-size: 0; gap: 0; } } /* とても狭い画面ではロゴのマークだけ（名前は aria-label） */
@media (max-width: 370px) { .eyebrow { white-space: normal; text-align: left; max-width: 100%; border-radius: 16px; } .eyebrow b { flex: none; } } /* とても狭い画面では札の文字を折り返す */
