/* watergreen digital — コーポレートサイト共通スタイル（トップ・料金） */
:root {
  --paper: #f5f7f9;
  --card: #ffffff;
  --ink: #11171d;
  --soft: #3e4852;
  --dim: #6a7580;
  --faint: #8b949c;
  --line: #dde3e8;
  --accent: #2b5fd9;
  --accent-tint: #e8eefc;
  --wide: 1160px;
  --col: 760px;
  --head: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16.5px; line-height: 1.9; letter-spacing: .02em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; margin: 0; line-height: 1.4; letter-spacing: .03em; word-break: auto-phrase; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
small { font-size: .85em; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.nw { white-space: nowrap; }

/* ── ヘッダー ── */
.top { position: sticky; top: 0; z-index: 40; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 max(24px, calc((100% - var(--wide)) / 2)); background: rgba(245, 247, 249, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--head); font-weight: 900; font-size: 18px; text-decoration: none; letter-spacing: .01em; }
.logo span { color: var(--accent); font-weight: 700; margin-left: .25em; }
.top-nav { display: flex; gap: 22px; font-family: var(--head); font-size: 14px; font-weight: 500; margin-left: 8px; }
.top-nav a { color: var(--soft); text-decoration: none; }
@media (min-width: 761px) { .top-nav a { border-bottom: 2px solid transparent; } }
.top-nav a:hover, .top-nav a[aria-current] { color: var(--ink); }
.top-nav a[aria-current] { border-bottom: 2px solid var(--accent); }
.top-cta { margin-left: auto; flex: none; padding: 8px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--head); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.top-cta:hover { background: var(--accent); }
@media (max-width: 760px) {
  .top { height: 60px; gap: 12px; }
  .top-cta { margin-left: 0; padding: 7px 14px; font-size: 13px; }
}

/* ── 共通の枠 ── */
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--col); margin: 0 auto; padding: 0 24px; }
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
section.block.plain { border-top: none; }
.eyebrow { font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.eyebrow + h2 { margin-top: 10px; }
h2 { font-size: clamp(26px, 3.2vw, 36px); }
h3 { font-size: 20px; }
.lead { margin-top: 18px; color: var(--soft); max-width: 36em; }
.block-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
@media (max-width: 760px) { .block-head { grid-template-columns: 1fr; gap: 16px; } section.block { padding: 64px 0; } }

/* ── ボタン ── */
.btn { display: inline-block; padding: 13px 28px; border-radius: 4px; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 15px; background: var(--ink); color: #fff; border: 1.5px solid var(--ink); transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.more { font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--accent); text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

/* ── カード ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px 26px; display: flex; flex-direction: column; }
.card .num { font-family: var(--head); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.card h3 { margin-top: 10px; font-size: 21px; }
.card p { margin-top: 12px; color: var(--soft); font-size: 15.5px; }
.card .tag { margin-top: auto; padding-top: 18px; font-family: var(--head); font-size: 13px; color: var(--faint); }
.card.hi { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.card.hi .num::after { content: "　おすすめ"; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ── 表 ── */
table { border-collapse: collapse; width: 100%; margin: 24px 0 0; font-size: 15px; background: var(--card); }
th, td { border: 1px solid var(--line); padding: 11px 13px; vertical-align: top; text-align: left; line-height: 1.6; }
th { background: var(--accent-tint); font-family: var(--head); font-weight: 700; font-size: 14px; }
th.group { background: #eef1f4; color: var(--soft); }
td.num { white-space: nowrap; font-family: var(--head); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
td.num small { display: block; font-weight: 400; color: var(--dim); }
td small, th small { color: var(--dim); display: block; }
.note { margin-top: 12px; font-size: 14px; color: var(--dim); border-left: 3px solid var(--line); padding-left: .8em; }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-hint { display: none; font-size: 13px; color: var(--faint); margin-top: 8px; }
@media (max-width: 600px) {
  table { font-size: 13.5px; }
  th, td { padding: 8px 8px; }
  td.num { white-space: normal; }
  .scroll-hint { display: block; }
}

/* ── 手順 ── */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px; font-size: 15px; color: var(--soft); }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.steps li b { display: block; font-family: var(--head); font-size: 17px; color: var(--ink); margin: 6px 0 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ── 条件・箇条書き ── */
.terms { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.terms li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15.5px; color: var(--soft); }
.terms li b { color: var(--ink); font-family: var(--head); }
@media (max-width: 760px) { .terms { grid-template-columns: 1fr; gap: 0; } }
.points { list-style: none; margin: 28px 0 0; padding: 0; }
.points li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--soft); }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li b { display: block; color: var(--ink); font-family: var(--head); }

/* ── 図 ── */
.fig { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.fig svg { display: block; width: 100%; height: auto; max-width: 820px; margin: 0 auto; }
.fig text { font-family: var(--head); font-size: 13px; fill: var(--ink); font-weight: 700; }
.fig text.lab { font-size: 11px; fill: var(--dim); font-weight: 500; }
.fig text.cap { font-size: 12px; fill: var(--faint); font-weight: 700; letter-spacing: .1em; }
.fig .box { fill: #fff; stroke: var(--soft); stroke-width: 1.2; }
.fig .ai { fill: var(--accent); stroke: var(--accent); }
.fig .ai + text { fill: #fff; }
.fig .faint { stroke: var(--line); fill: #fbfcfd; }
.fig .ln { stroke: var(--soft); stroke-width: 1.2; fill: none; }
.fig .ln.acc { stroke: var(--accent); stroke-width: 1.6; }
.fig .flow .box { stroke: var(--dim); }
.fig .flow .app { fill: var(--accent-tint); stroke: var(--accent); }
.fig .flow .db { fill: #f1f7ec; stroke: #6a9a3a; }
.fig .flow .aiBox { fill: #fff; stroke: var(--accent); stroke-dasharray: 4 3; }
.fig .flow text { font-size: 12px; font-weight: 500; }
.fig .flow text.head { fill: var(--dim); font-size: 11px; font-weight: 700; }
.fig .flow text.lab { font-size: 10.5px; }
.fig .flow .arrow { stroke: var(--dim); stroke-width: 1.3; fill: none; marker-start: url(#ahs); marker-end: url(#ah); }

/* ── 担当者・会社情報 ── */
.person { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.person img { width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.person .role { font-family: var(--head); font-size: 13px; color: var(--faint); }
.person h3 { margin-top: 4px; font-size: 24px; }
.person p { margin-top: 12px; color: var(--soft); font-size: 15.5px; }
.person .q { margin-top: 14px; font-family: var(--head); color: var(--accent); font-weight: 700; }
@media (max-width: 640px) { .person { grid-template-columns: 1fr; gap: 20px; } .person img { width: 120px; } }
.company { margin-top: 36px; }
.company th { width: 28%; background: var(--paper); }
@media (max-width: 600px) { .company th { width: 34%; } }

/* ── 問い合わせ ── */
.contact { background: var(--ink); color: #fff; }
.contact h2 { color: #fff; }
.contact .block-head { align-items: start; }
.contact .eyebrow { color: #6f93f0; }
.contact .lead { color: #c9d2db; }
.contact .btn { background: #fff; color: var(--ink); border-color: #fff; }
.contact .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.contact .mail { margin-top: 20px; font-size: 14px; color: #c9d2db; }
.contact .mail a { color: #fff; }

/* ── フッター ── */
footer.foot { padding: 32px 0; font-size: 13px; color: var(--faint); }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.foot a { color: var(--soft); text-decoration: none; margin-right: 18px; }
footer.foot a:hover { color: var(--accent); }

/* ── 実績の図・カード（追加 2026-11-03） ── */
.wk { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wk li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; }
.wk .k { font-family: var(--head); font-size: 12px; color: var(--accent); letter-spacing: .08em; }
.wk h3 { margin-top: 6px; font-size: 20px; }
.wk .who { margin-top: 4px; font-family: var(--head); font-size: 13px; color: var(--faint); }
.wk .d { margin: 16px 0; border: 1px solid var(--line); border-radius: 8px; padding: 14px 12px; background: var(--paper); }
.wk .d svg { display: block; width: 100%; height: auto; }
.wk p { color: var(--soft); font-size: 15px; }
.wk .tech { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--faint); }
@media (max-width: 760px) { .wk { grid-template-columns: 1fr; } }
.dg text { font-family: var(--head); font-size: 12.5px; fill: var(--ink); font-weight: 700; }
.dg text.lab { font-size: 10.5px; fill: var(--dim); font-weight: 500; }
.dg .box { fill: #fff; stroke: var(--soft); stroke-width: 1.1; }
.dg .ai { fill: var(--accent); stroke: var(--accent); }
.dg .ai + text { fill: #fff; }
.dg .faint { stroke: var(--line); fill: #fbfcfd; }
.dg .ln { stroke: var(--soft); stroke-width: 1.1; fill: none; }
.dg .ln.acc { stroke: var(--accent); stroke-width: 1.4; }
.dg .dash { stroke-dasharray: 4 3; }
/* トップ：扉の図 */
.hero-fig { border: 1px solid var(--line); border-radius: 10px; background: var(--card); padding: 20px; }
.hero-fig svg { display: block; width: 100%; height: auto; }
/* トップ：できること（1行ずつ） */
.svc { list-style: none; margin: 36px 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: 2.4em 1fr; gap: 0 12px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.svc .n { font-family: var(--head); font-weight: 700; color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.svc h3 { font-size: 20px; }
.svc p { grid-column: 2; margin-top: 4px; color: var(--soft); font-size: 15.5px; }
/* ページ見出し */
.ph { padding: 56px 0 8px; }
.ph h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; }
.ph .lead { margin-top: 14px; }

/* ロゴ：文字＋青い句点（2026-11-03 検証済み：句点は小さく離して下げ、「o」に見えないように） */
.logo { display: inline-flex; align-items: baseline; font-family: var(--head); font-size: 20px; font-weight: 500; letter-spacing: -.015em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo b { font-weight: 700; margin-right: .24em; }
.logo .dot { flex: none; overflow: visible; width: .34em; height: .34em; margin-left: .18em; fill: var(--accent); transform: translateY(.13em); }
.top { padding-inline: max(24px, calc((100% - var(--wide)) / 2 + 24px)); }
@media (max-width: 760px) { .logo { font-size: 18px; } }

/* スマホのメニュー：3本線が×に変わり、黒い面が開いて、項目が順にせり上がる */
.menu-btn { display: none; }
@media (max-width: 760px) {
  .menu-btn { display: block; position: relative; flex: none; margin-left: auto; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background .35s ease, border-color .35s ease, transform .15s ease; }
  .menu-btn:active { transform: scale(.92); }
  .menu-btn span, .menu-btn::before, .menu-btn::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 1.5px; margin-top: -.75px; border-radius: 1px; background: var(--ink); transition: transform .45s cubic-bezier(.65,0,.2,1), opacity .2s ease, background .35s ease; }
  .menu-btn::before { transform: translateY(-5px); }
  .menu-btn::after { transform: translateY(5px); }
  .menu-btn[aria-expanded="true"] { background: transparent; border-color: rgba(255,255,255,.35); }
  .menu-btn[aria-expanded="true"] span { opacity: 0; }
  .menu-btn[aria-expanded="true"]::before { background: #fff; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"]::after { background: #fff; transform: rotate(-45deg); }

  .top { transition: background .35s ease, border-color .35s ease; }
  .top:has(.top-nav.open) { background: var(--ink); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .logo, .logo * { transition: color .35s ease; }
  .top:has(.top-nav.open) .logo { color: #fff; }
  .top:has(.top-nav.open) .logo .dot { fill: #6f93f0; }
  .top:has(.top-nav.open) .top-cta { background: #fff; color: var(--ink); }
  .top-cta { transition: background .35s ease, color .35s ease; }
  body:has(.top-nav.open) { overflow: hidden; }
  body:has(.top-nav.open) .read { opacity: 0; }

  .top-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 60px); margin: 0; padding: 24px 24px 40px; display: flex; flex-direction: column; justify-content: center; gap: 0; counter-reset: m; background: var(--ink); overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .5s cubic-bezier(.65,0,.2,1), visibility 0s linear .5s; }
  .top-nav.open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .55s cubic-bezier(.65,0,.2,1), visibility 0s; }
  .top-nav a { counter-increment: m; display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; font-size: clamp(30px, 9vw, 40px); font-weight: 900; line-height: 1.3; letter-spacing: .03em; opacity: 0; transform: translateY(18px); transition: opacity .2s ease, transform .2s ease; }
  .top-nav a:first-child { border-top: 1px solid rgba(255,255,255,.14); }
  .top-nav a::before { content: "0" counter(m); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #6f93f0; }
  .top-nav a[aria-current] { border-bottom: 1px solid rgba(255,255,255,.14); color: #6f93f0; }
  .top-nav.open a { opacity: 1; transform: none; transition: opacity .5s ease, transform .65s cubic-bezier(.19,1,.22,1); }
  .top-nav.open a:nth-child(1) { transition-delay: .14s; }
  .top-nav.open a:nth-child(2) { transition-delay: .19s; }
  .top-nav.open a:nth-child(3) { transition-delay: .24s; }
  .top-nav.open a:nth-child(4) { transition-delay: .29s; }
  .top-nav.open a:nth-child(5) { transition-delay: .34s; }
  .top-nav a:active { color: #6f93f0; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .top-nav, .top-nav.open, .top-nav a, .top-nav.open a, .menu-btn span, .menu-btn::before, .menu-btn::after { transition: none !important; }
}
