/* AISYS パワーツール 絆のチカラ 紹介サイト（外部フォント・外部CSS不使用） */
:root {
  --ink: #1C2430;
  --sub: #4A5260;
  --line: #D6D3CB;
  --bg: #F7F6F2;
  --card: #FFFFFF;
  --blue: #0F5E8C;
  --blue-dark: #0A4566;
  --blue-soft: #E3F1F9;
  --orange: #D9822B;
  --orange-bg: #FFF4E8;
  --orange-ink: #9A4D0C;
  --green: #06C755;
  --green-dark: #05A648;
  --cta: #B45309;
  --cta-dark: #92400E;
  --error: #B42318;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif; line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* SVG共通 */
.s { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.f1 { fill: var(--blue-soft); }
.fo { fill: var(--orange-bg); stroke: var(--orange); }
.fw { fill: #fff; }
.so { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fg { fill: var(--green); stroke: none; }
.ft { fill: var(--sub); stroke: none; font-size: 13px; }
.ftw { fill: #fff; stroke: none; font-size: 13px; font-weight: 700; }

/* ヘッダー */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; line-height: 1.2; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--sub); }
.nav { display: none; gap: 18px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink); padding: 8px 0; }
@media (min-width: 880px) { .nav { display: flex; } }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; min-height: 52px; }
.btn-line { background: var(--cta); color: #fff; box-shadow: 0 4px 0 var(--cta-dark); }
.btn-line:hover { background: var(--cta-dark); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 14px; min-height: 40px; box-shadow: 0 3px 0 var(--cta-dark); }
.btn svg { width: 24px; height: 24px; }
.btn-sub { background: #fff; color: var(--blue); border: 2px solid var(--blue); }

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--blue-soft), var(--bg)); padding: 36px 0 28px; }
.hero .wrap { display: grid; gap: 24px; align-items: center; }
@media (min-width: 880px) { .hero .wrap { grid-template-columns: 1.05fr 1fr; } }
.tag { display: inline-block; background: var(--orange-bg); color: var(--orange-ink); font-weight: 700; font-size: 14px; padding: 4px 14px; border-radius: 999px; border: 1px solid var(--orange); }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.25; margin: 14px 0 6px; color: var(--blue-dark); }
.hero h1 small { display: block; font-size: 0.45em; color: var(--sub); font-weight: 600; margin-bottom: 4px; }
.catch { font-size: clamp(18px, 3vw, 24px); font-weight: 700; color: var(--orange-ink); text-wrap: balance; }
.hero p.lead { margin: 14px 0 22px; color: var(--sub); font-size: 16px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta .note { font-size: 13px; color: var(--sub); }
.hero-art { max-width: 520px; margin: 0 auto; width: 100%; }

/* セクション */
section { padding: 56px 0 8px; }
.eyebrow { text-align: center; color: var(--orange-ink); font-weight: 700; letter-spacing: .08em; font-size: 14px; }
.sec-title { text-align: center; font-size: clamp(24px, 4.4vw, 32px); margin: 4px 0 8px; color: var(--blue-dark); line-height: 1.35; }
.sec-lead { text-align: center; color: var(--sub); max-width: 680px; margin: 0 auto 28px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 18px; text-align: center; }
.card svg.ic { width: 84px; height: 84px; margin: 0 auto 8px; display: block; }
.card h3 { font-size: 18px; margin-bottom: 6px; color: var(--blue-dark); }
.card p { font-size: 14.5px; color: var(--sub); text-align: left; }
.card.worry { border-color: #F0C79A; background: var(--orange-bg); }
.card.worry h3 { color: var(--orange-ink); }

/* 解決の矢印 */
.arrow-down { display: flex; justify-content: center; margin: 18px 0; }
.arrow-down svg { width: 56px; height: 40px; }
.solve { background: var(--blue); color: #fff; border-radius: 20px; padding: 18px 22px; text-align: center; font-size: clamp(18px, 3.4vw, 24px); font-weight: 700; }

/* 流れ */
.steps { counter-reset: st; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { background: var(--card); border: 2px solid var(--blue-soft); border-radius: 18px; padding: 20px 16px 16px; text-align: center; position: relative; }
.step::before { counter-increment: st; content: counter(st); position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-weight: 700; line-height: 32px; }
.step svg { width: 72px; height: 72px; margin: 6px auto; display: block; }
.step h3 { font-size: 17px; color: var(--blue-dark); }
.step p { font-size: 14px; color: var(--sub); text-align: left; }

/* 画面イメージ */
.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.shots figure { width: 200px; text-align: center; font-size: 13.5px; color: var(--sub); }
.shots svg { width: 100%; height: auto; display: block; margin-bottom: 6px; }

/* 比較表 */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: center; }
th:first-child, td:first-child { text-align: left; }
thead th { background: var(--blue-soft); color: var(--blue-dark); }
tbody tr:last-child td { border-bottom: 0; }
.ok { color: var(--green-dark); font-weight: 700; }
.no { color: #999; }
.price { font-weight: 700; color: var(--orange-ink); }
.fine { font-size: 13px; color: var(--sub); margin-top: 10px; }
.center { text-align: center; }
.nw { display: inline-block; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--blue-dark); }
details p { padding: 0 0 14px; color: var(--sub); font-size: 15px; }

/* 申込 */
.apply { background: var(--blue); color: #fff; border-radius: 26px; padding: 34px 20px; text-align: center; margin-top: 12px; }
.apply h2 { font-size: clamp(22px, 4.4vw, 30px); }
.apply p { margin: 10px auto 20px; max-width: 640px; }
.apply .flow { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; font-size: 14px; margin-bottom: 22px; }
.apply .flow span { background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; }
.apply .btn-line { font-size: 19px; padding: 16px 34px; }
.apply .small { font-size: 13px; opacity: .9; margin: 14px 0 0; }
.apply a { color: #fff; }

/* フッター */
footer { padding: 36px 0 90px; text-align: center; color: var(--sub); font-size: 14px; }
footer a { color: var(--sub); }

/* スマホ固定の申込ボタン */
.fixed-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); display: flex; justify-content: center; z-index: 20; }
.fixed-cta .btn { width: 100%; max-width: 420px; }
@media (min-width: 880px) { .fixed-cta { display: none; } footer { padding-bottom: 36px; } }

/* 申込フォーム（apply.html） */
.form-page { max-width: 620px; margin: 0 auto; padding: 20px 16px 60px; }
.center-logo { display: block; margin: 0 auto; }
.form-page h1 { font-size: 22px; color: var(--blue-dark); text-align: center; margin: 8px 0 4px; }
.form-page .lead { text-align: center; color: var(--sub); font-size: 14.5px; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label, .field .lab { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.req { color: var(--error); font-size: 12px; margin-left: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.field textarea { min-height: 110px; resize: vertical; }
.checks { display: grid; gap: 8px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 500; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.checks input { width: 20px; height: 20px; flex: none; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.msg { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 14.5px; display: none; }
.msg.err { display: block; background: #FDECEA; color: var(--error); border: 1px solid var(--error); }
.msg.info { display: block; background: var(--blue-soft); color: var(--blue-dark); }
.done { text-align: center; padding: 30px 10px; }
.done svg { width: 110px; height: 110px; }
.ts-box { margin: 4px 0 14px; min-height: 0; }
.done h2 { color: var(--blue-dark); margin: 10px 0; }
.form-page .btn { width: 100%; }
.form-page .btn[disabled] { opacity: .55; cursor: not-allowed; }
.legal { font-size: 13px; color: var(--sub); }
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 18px 60px; }
.legal-page h1 { font-size: 24px; color: var(--blue-dark); margin-bottom: 8px; }
.legal-page h2 { font-size: 18px; margin: 24px 0 6px; color: var(--blue-dark); }
.legal-page p, .legal-page li { font-size: 15px; color: var(--ink); }
.legal-page ul { list-style: disc; padding-left: 1.4em; }
.draft { background: var(--orange-bg); border: 1px solid var(--orange); border-radius: 10px; padding: 10px 14px; color: var(--orange-ink); font-size: 14px; margin: 10px 0 16px; }

@media (prefers-reduced-motion: no-preference) {
  .card, .step { transition: transform .15s; }
  .card:hover, .step:hover { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  table { min-width: 0; font-size: 12px; }
  th, td { padding: 8px 3px; }
  th:first-child, td:first-child { width: 38%; padding-left: 8px; }
  thead th { font-size: 11px; }
}
