:root {
  color-scheme: light;
  --ink: #101828;
  --muted: #566471;
  --paper: #f3f6f8;
  --surface: #ffffff;
  --line: #d7e0e5;
  --green: #08785d;
  --green-2: #055a46;
  --mint: #e5f5ef;
  --mint-strong: #c8ebdf;
  --amber: #f2b43c;
  --danger: #b44235;
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, .06);
  --shadow: 0 18px 50px rgba(16, 24, 40, .10);
  --shadow-lg: 0 28px 80px rgba(16, 24, 40, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea { color: var(--ink); background: var(--surface); }
button { cursor: pointer; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #006fb9; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(215,224,229,.86); background: rgba(243,246,248,.86); backdrop-filter: blur(20px) saturate(150%); }
.header-inner { max-width: 1160px; height: 70px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(145deg, #0a8769, #055a46); color: #fff; box-shadow: 0 8px 20px rgba(8,120,93,.22); font-size: 14px; }
.brand small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
.nav { display: flex; gap: 6px; }
.nav a { display: inline-flex; min-height: 44px; padding: 8px 12px; border-radius: 999px; align-items: center; color: #3f4943; text-decoration: none; font-size: 14px; font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.88); color: var(--green); box-shadow: var(--shadow-sm); }
.menu-button { display: none; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; font-weight: 700; }
main { min-height: 70vh; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: 86px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--green); font-size: 13px; font-weight: 800; letter-spacing: .1em; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--green); }
h1, h2, h3 { line-height: 1.28; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(38px, 6vw, 72px); }
h2 { margin: 0 0 14px; font-size: clamp(27px, 4vw, 42px); }
h3 { margin: 0 0 8px; font-size: 20px; }
.lead { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 1px solid var(--green); border-radius: 999px; background: linear-gradient(145deg, #098365, var(--green-2)); color: #fff; box-shadow: 0 10px 24px rgba(8,120,93,.20); text-decoration: none; font-weight: 800; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); background: linear-gradient(145deg, var(--green), #044c3b); box-shadow: 0 14px 30px rgba(8,120,93,.26); }
.button:active { transform: translateY(0); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.button.secondary:hover { background: #f9fbf9; }
.hero-panel { position: relative; min-height: 380px; border-radius: 32px; background: var(--ink); box-shadow: var(--shadow); overflow: hidden; }
.hero-panel::before, .hero-panel::after { content: ""; position: absolute; border-radius: 999px; }
.hero-panel::before { width: 280px; height: 280px; right: -80px; top: -70px; background: var(--mint); opacity: .92; }
.hero-panel::after { width: 180px; height: 180px; left: -50px; bottom: -70px; background: var(--amber); opacity: .9; }
.panel-card { position: absolute; inset: 58px 42px; z-index: 2; padding: 28px; border: 1px solid rgba(255,255,255,.2); border-radius: 24px; background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(16px); }
.panel-card small { color: #cfd8d2; font-weight: 700; }
.panel-value { margin: 18px 0 22px; font-size: 56px; font-weight: 850; line-height: 1; letter-spacing: -.06em; }
.panel-value span { font-size: 18px; letter-spacing: 0; }
.panel-bars { display: grid; gap: 12px; }
.panel-bar { height: 10px; border-radius: 10px; background: rgba(255,255,255,.17); overflow: hidden; }
.panel-bar i { display: block; height: 100%; border-radius: inherit; background: var(--mint); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 26px; color: var(--muted); font-size: 13px; font-weight: 700; }
.trust-row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); }
.section { padding: 70px 0; }
.section.alt { background: #edf1ec; }
.section-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 30px; }
.section-head p { max-width: 550px; margin: 0; color: var(--muted); }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featured-grid { grid-template-columns: repeat(4, 1fr); }
.featured-grid .tool-card { min-height: 290px; }
.tool-card { position: relative; display: block; min-height: 260px; padding: 28px; border: 1px solid rgba(215,224,229,.92); border-radius: var(--radius); background: rgba(255,255,255,.92); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-5px); border-color: #b4c9bc; box-shadow: var(--shadow); }
.tool-card.featured { grid-column: span 2; min-height: 280px; border-color: rgba(255,255,255,.10); background: linear-gradient(145deg,#10241f,#0d1826 68%,#173449); color: #f7fbf9; box-shadow: var(--shadow-lg); overflow: hidden; }
.tool-card.featured::after { content: ""; position: absolute; width: 300px; height: 300px; right: -90px; top: -110px; border-radius: 50%; background: rgba(57,202,157,.28); filter: blur(6px); }
.tool-card.featured > * { position: relative; z-index: 1; }
.tool-card.featured .tool-number { margin-bottom: 34px; background: rgba(255,255,255,.12); color: #a8f1da; }
.tool-card.featured h3 { max-width: 520px; font-size: clamp(24px,3vw,34px); }
.tool-card.featured p { max-width: 580px; color: #c1d0ca; font-size: 15px; }
.tool-card.featured .tool-link { position: static; display: inline-flex; margin-top: 24px; color: #8ce3c7; }
.tool-kicker { display: inline-flex; margin-bottom: 10px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.10); color: #a8f1da; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.tool-number { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 42px; border-radius: 14px; background: var(--mint); color: var(--green); font-size: 13px; font-weight: 850; }
.tool-card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.tool-link { position: absolute; left: 28px; bottom: 24px; color: var(--green); font-weight: 800; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle p { color: var(--muted); }
.tool-hero { padding: 58px 0 28px; text-align: center; }
.tool-hero h1 { max-width: 860px; margin-inline: auto; font-size: clamp(34px, 5vw, 58px); }
.tool-hero .lead { margin-inline: auto; }
.tool-shell { width: min(940px, calc(100% - 32px)); margin: 28px auto 70px; padding: clamp(20px, 4vw, 42px); border: 1px solid rgba(215,224,229,.92); border-radius: 30px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 800; }
.input, .select, .textarea { width: 100%; border: 1px solid #cdd7d0; border-radius: 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.input, .select { min-height: 54px; padding: 12px 15px; font-size: 16px; }
.textarea { min-height: 260px; padding: 18px; resize: vertical; line-height: 1.8; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(23,108,76,.12); }
.converter-grid { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 16px; align-items: end; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.comparison-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.comparison-card { min-width: 0; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fbfcfb; }
.comparison-card legend { padding: 0 8px; color: var(--green); font-weight: 850; }
.comparison-card .field-label:not(:first-of-type) { margin-top: 14px; }
.check-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0; }
.check-row label { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafb; font-size: 14px; font-weight: 700; }
.check-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.password-output { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 18px; border-radius: 16px; background: var(--mint); }
.password-output code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--green-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(18px, 4vw, 28px); font-weight: 800; }
.swap-button { width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 18px; font-weight: 900; }
.category-tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 6px; }
.category-tab { flex: 0 0 auto; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 800; }
.category-tab[aria-selected="true"] { border-color: var(--green); background: var(--green); color: #fff; }
.result-box { margin-top: 26px; padding: 22px; border-radius: 18px; background: var(--mint); }
.result-box small { color: var(--green-2); font-weight: 800; }
.result-main { margin-top: 4px; overflow-wrap: anywhere; font-size: clamp(26px, 5vw, 46px); font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.2; letter-spacing: -.04em; }
.result-note { margin: 8px 0 0; color: #52645b; font-size: 14px; line-height: 1.65; }
.pr-disclosure { width: fit-content; max-width: 720px; margin: 20px auto 0; padding: 10px 14px; border: 1px solid #ead9b7; border-radius: 12px; background: #fff9ed; color: #5f5238; font-size: 13px; text-align: left; }
.pr-disclosure strong { margin-right: 6px; color: #76591f; letter-spacing: .08em; }
.range-field { margin-top: 18px; }
.range-field input[type="range"] { width: 100%; accent-color: var(--green); }
.range-field .field-label { display: flex; justify-content: space-between; gap: 16px; }
.range-field .field-label strong { color: var(--green); font-size: 16px; }
.diagnosis-result { margin-top: 26px; padding: 24px; border: 1px solid #bad4c5; border-radius: 18px; background: var(--mint); }
.diagnosis-result h2 { margin: 0 0 8px; font-size: clamp(22px, 4vw, 30px); }
.diagnosis-result p { margin: 0; color: #355847; }
.diagnosis-result ol { margin: 18px 0 0; padding-left: 22px; }
.diagnosis-result li + li { margin-top: 8px; }
.fit-tag { display: inline-flex; margin-bottom: 10px; padding: 4px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 850; }
.result-affiliate { margin-bottom: 14px; }
.source-note { margin-top: 34px; font-size: 13px; }
.related-links { margin-top: 22px; color: var(--muted); font-size: 14px; }
.related-links a { color: var(--green); font-weight: 800; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.metric { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.metric small { display: block; color: var(--muted); font-weight: 700; }
.metric strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 25px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.speed-gauge { position: relative; display: grid; place-items: center; width: 260px; height: 260px; margin: 6px auto 26px; border-radius: 50%; background: conic-gradient(var(--green) var(--progress, 0%), #e6ebe7 0); }
.speed-gauge::after { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: var(--surface); }
.gauge-content { position: relative; z-index: 2; text-align: center; }
.gauge-content strong { display: block; font-size: 48px; line-height: 1; letter-spacing: -.05em; }
.gauge-content span { color: var(--muted); font-weight: 700; }
.speed-status { min-height: 28px; margin: 0 0 18px; color: var(--muted); text-align: center; }
.progress { height: 8px; margin: 20px 0 10px; border-radius: 8px; background: #e8ece9; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--green); transition: width .25s; }
.counter-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.small-button { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 800; }
.small-button:hover { background: var(--paper); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.article { min-width: 0; }
.article h2 { margin-top: 42px; font-size: 30px; }
.article h3 { margin-top: 28px; }
.article p, .article li { color: #465149; }
.article table { width: 100%; border-collapse: collapse; }
.article th, .article td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.sidebar { position: sticky; top: 92px; display: grid; gap: 16px; }
.sidebar-card { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.sidebar-card h3 { font-size: 16px; }
.sidebar-card a { display: block; margin-top: 10px; color: var(--green); font-size: 14px; font-weight: 800; }
.affiliate-slot { display: none; margin: 30px 0; padding: 24px; border: 1px solid #ead9b7; border-radius: 18px; background: #fff9ed; }
.affiliate-slot.is-active { display: block; }
.affiliate-slot .pr-label { display: inline-block; margin-bottom: 8px; color: #76591f; font-size: 12px; font-weight: 850; letter-spacing: .08em; }
.affiliate-items { display: grid; gap: 12px; }
.affiliate-item { padding: 16px; border: 1px solid #ead9b7; border-radius: 14px; background: #fff; }
.affiliate-item strong { display: block; font-size: 17px; line-height: 1.55; }
.affiliate-item p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.affiliate-item a { color: var(--green); font-weight: 850; }
.affiliate-item a.button { color: #fff; }
.affiliate-material > a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 18px; border-radius: 999px; background: var(--green); color: #fff; text-align: center; text-decoration: none; line-height: 1.45; box-shadow: 0 10px 24px rgba(8,120,93,.18); }
.affiliate-material > a::after { content: "→"; margin-left: 8px; }
.affiliate-material > a:hover { background: var(--green-2); transform: translateY(-1px); }
.affiliate-material a { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 12px; padding: 12px 16px; border-radius: 12px; background: var(--green); color: #fff; text-align: center; text-decoration: none; line-height: 1.5; transition: background .2s, transform .2s; }
.affiliate-material a:hover { background: var(--green-2); transform: translateY(-1px); }
.affiliate-material a:focus-visible { outline: 3px solid #006fb9; outline-offset: 3px; }
.notice { padding: 16px 18px; border-left: 4px solid var(--green); border-radius: 0 12px 12px 0; background: var(--mint); color: #355847; font-size: 14px; }
.legal { width: min(800px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0; }
.legal h1 { font-size: clamp(34px, 5vw, 54px); }
.legal h2 { margin-top: 44px; font-size: 26px; }
.legal p, .legal li { color: #465149; }
.site-footer { padding: 46px 0 28px; background: var(--ink); color: #eef3ef; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.site-footer .brand { color: #fff; }
.footer-copy { max-width: 460px; margin-top: 16px; color: #b6c0ba; font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.footer-links a { color: #d7dfda; text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: #fff; }
.copyright { margin: 34px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.13); color: #96a29b; font-size: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Dify VPS比較ガイド */
.guide-page { background: radial-gradient(900px 500px at 8% 2%, rgba(76,205,161,.12), transparent 62%), radial-gradient(760px 480px at 96% 5%, rgba(96,165,250,.11), transparent 64%), var(--paper); }
.guide-hero { padding: 74px 0 58px; }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: clamp(38px,5vw,72px); align-items: center; }
.guide-hero h1 { max-width: 720px; font-size: clamp(46px,6.4vw,78px); line-height: 1.05; letter-spacing: -.065em; }
.guide-hero .lead { max-width: 650px; }
.guide-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.guide-badges span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 11px; border: 1px solid rgba(8,120,93,.18); border-radius: 999px; background: rgba(255,255,255,.76); color: #285747; font-size: 12px; font-weight: 800; }
.guide-badges span::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #10a37f; }
.guide-summary-card { position: relative; padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 30px; background: linear-gradient(145deg,#10241f,#0d1826 68%,#173449); color: #f7fbf9; box-shadow: var(--shadow-lg); overflow: hidden; }
.guide-summary-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -100px; top: -100px; border-radius: 50%; background: rgba(73,209,167,.26); filter: blur(5px); }
.guide-summary-card > * { position: relative; z-index: 1; }
.guide-summary-card > p { margin: 0 0 22px; color: #99e8ce; font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.guide-summary-card dl { margin: 0; }
.guide-summary-card dl > div { display: grid; grid-template-columns: 86px 1fr; gap: 16px; align-items: center; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.13); }
.guide-summary-card dt { font-size: 25px; font-weight: 900; letter-spacing: -.04em; }
.guide-summary-card dd { margin: 0; color: #c3d2cd; font-size: 14px; }
.guide-summary-card small { display: block; margin-top: 18px; color: #9eaaa6; }
.guide-section { padding-top: 26px; }
.guide-article { padding: clamp(24px,4vw,44px); border: 1px solid rgba(215,224,229,.92); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.guide-article > .pr-disclosure { width: auto; margin: 0 0 26px; }
.guide-lead-box { padding: 22px; border-left: 4px solid var(--green); border-radius: 0 16px 16px 0; background: var(--mint); }
.guide-lead-box > strong { color: var(--green-2); font-size: 13px; letter-spacing: .08em; }
.guide-lead-box p { margin: 8px 0 0; color: #315849; }
.guide-table-wrap { max-width: 100%; margin: 22px 0 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.guide-table { min-width: 720px; }
.guide-table th, .guide-table td { vertical-align: top; }
.guide-table thead th { background: #eef5f1; color: #284e41; font-size: 13px; }
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }
.guide-plan { display: inline-flex; min-width: 76px; min-height: 38px; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 900; }
.guide-callout { margin: 28px 0; padding: 22px; border: 1px solid #e6d49e; border-radius: 18px; background: #fff9e9; }
.guide-callout strong { color: #735a1e; }
.guide-callout p { margin: 7px 0 0; }
.guide-cta { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin: 42px 0; padding: clamp(24px,4vw,34px); border-radius: 24px; background: linear-gradient(145deg,#10241f,#0d1826 68%,#173449); color: #f7fbf9; box-shadow: var(--shadow); }
.guide-cta span { color: #99e8ce; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.guide-cta h2 { margin: 8px 0 0; color: #fff; font-size: clamp(26px,4vw,36px); }
.guide-cta p { max-width: 620px; margin: 10px 0 0; color: #c3d2cd; }
.guide-cta .button { min-width: 172px; }
.guide-checklist { display: grid; gap: 10px; margin: 24px 0; padding: 0; list-style: none; counter-reset: guide-check; }
.guide-checklist li { position: relative; min-height: 70px; padding: 13px 16px 13px 58px; border: 1px solid var(--line); border-radius: 16px; background: #f8faf9; }
.guide-checklist li::before { counter-increment: guide-check; content: counter(guide-check); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 900; }
.guide-checklist strong, .guide-checklist span { display: block; }
.guide-checklist span { margin-top: 2px; color: var(--muted); font-size: 14px; }
.guide-faq { display: grid; gap: 10px; }
.guide-faq details { border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.guide-faq summary { min-height: 52px; padding: 14px 48px 14px 16px; cursor: pointer; font-weight: 850; }
.guide-faq details p { margin: 0; padding: 0 16px 18px; }
.guide-sources a { color: var(--green); font-weight: 800; }
.guide-sidebar { top: 90px; }
.guide-side-primary { border-color: rgba(8,120,93,.22); background: linear-gradient(145deg,#eef9f5,#fff); box-shadow: var(--shadow-sm); }
.guide-side-primary > span { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.guide-side-primary h3 { margin-top: 8px; font-size: 21px; }
.guide-side-primary p { color: var(--muted); font-size: 14px; }
.guide-side-primary .button { width: 100%; margin-top: 10px; color: #fff; }

@media (max-width: 1080px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 令和8年版・資金繰り診断 */
.cashflow-page { background: radial-gradient(900px 520px at 12% 2%, rgba(110,231,183,.16), transparent 58%), radial-gradient(760px 500px at 96% 8%, rgba(96,165,250,.13), transparent 62%), var(--paper); }
.cashflow-page .tool-hero { padding: 64px 0 34px; text-align: left; }
.cashflow-hero-grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(340px,.7fr); gap: clamp(38px,4.5vw,62px); align-items: center; }
.cashflow-page .tool-hero h1 { max-width: 720px; margin: 0; font-size: clamp(40px,5.2vw,68px); line-height: 1.14; letter-spacing: -.055em; }
.cashflow-page .tool-hero .lead { max-width: 650px; margin: 22px 0 0; color: #465563; font-size: clamp(16px,1.8vw,19px); }
.cashflow-trust { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.cashflow-trust span { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid rgba(8,120,93,.18); border-radius: 999px; background: rgba(255,255,255,.72); color: #285747; font-size: 12px; font-weight: 800; backdrop-filter: blur(12px); }
.cashflow-trust span::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #10a37f; box-shadow: 0 0 0 4px rgba(16,163,127,.12); }
.cashflow-hero-preview { position: relative; min-height: 330px; padding: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 32px; background: linear-gradient(145deg,#12241f,#0d1826 64%,#172e3d); color: #f8fbfa; box-shadow: var(--shadow-lg); overflow: hidden; }
.cashflow-hero-preview::before { content: ""; position: absolute; width: 250px; height: 250px; right: -90px; top: -100px; border-radius: 50%; background: rgba(73,209,167,.28); filter: blur(8px); }
.cashflow-preview-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #bfd0ca; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.cashflow-live-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.10); color: #d9fff2; letter-spacing: 0; }
.cashflow-live-badge::before { content: ""; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #5ee2b8; box-shadow: 0 0 0 4px rgba(94,226,184,.13); }
.cashflow-preview-main { position: relative; margin-top: 42px; }
.cashflow-preview-main small { color: #a9bbb5; font-size: 13px; font-weight: 700; }
.cashflow-preview-main strong { display: block; margin-top: 5px; font-size: clamp(40px,5vw,58px); line-height: 1.05; letter-spacing: -.055em; }
.cashflow-preview-grid { position: relative; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 34px; }
.cashflow-preview-metric { padding: 14px 15px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; background: rgba(255,255,255,.07); }
.cashflow-preview-metric small { display: block; color: #a9bbb5; font-size: 11px; }
.cashflow-preview-metric strong { display: block; margin-top: 3px; color: #fff; font-size: 18px; }
.cashflow-page .tool-shell { position: relative; width: min(980px,calc(100% - 32px)); margin-top: 18px; padding: clamp(22px,4vw,44px); border-radius: 32px; box-shadow: var(--shadow-lg); }
.cashflow-step { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 26px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cashflow-step span:first-child { color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.cashflow-step span:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }
.cashflow-page .tool-shell > h2 { margin-bottom: 10px; font-size: clamp(25px,4vw,36px); }
.cashflow-page .form-grid { gap: 16px; margin-top: 22px !important; }
.cashflow-page .form-grid > div { min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: #f8fafb; transition: border-color .2s, background .2s, transform .2s; }
.cashflow-page .form-grid > div:focus-within { border-color: rgba(8,120,93,.55); background: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(8,120,93,.08); }
.cashflow-page .field-label { color: #344054; font-size: 14px; }
.cashflow-page .input { min-height: 58px; border-color: #cbd5dc; background: #fff; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cashflow-page input[type="number"] { text-align: right; }
.cashflow-page #calculate-cashflow-gap { width: 100%; min-height: 58px; margin-top: 24px !important; font-size: 17px; letter-spacing: .01em; }
.cashflow-page #calculate-cashflow-gap::after { content: "→"; margin-left: 10px; font-size: 20px; }
.cashflow-page .diagnosis-result { margin-top: 30px; padding: clamp(20px,3.5vw,34px); scroll-margin-top: 88px; border: 1px solid #afd9ca; border-radius: 26px; background: linear-gradient(145deg,#effaf6,#e4f5ef); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.cashflow-page .diagnosis-result.is-gap { border-color: #ebc1b9; background: linear-gradient(145deg,#fff8f5,#fff1ed); }
.cashflow-page .diagnosis-result > small { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.cashflow-page .diagnosis-result.is-gap > small { background: var(--danger); }
.cashflow-page .diagnosis-result > h2 { margin-top: 14px; color: #163d31; font-size: clamp(25px,4vw,36px); }
.cashflow-page .diagnosis-result.is-gap > h2 { color: #842f25; }
.cashflow-page .metric { padding: 16px; border-color: rgba(8,120,93,.14); background: rgba(255,255,255,.78); }
.cashflow-page .metric small { min-height: 40px; color: #52645b; font-size: 12px; }
.cashflow-page .metric strong { font-size: clamp(21px,3.4vw,29px); font-variant-numeric: tabular-nums; }
.cashflow-page .result-box { padding: 20px; background: rgba(255,255,255,.82); border: 1px solid rgba(8,120,93,.15); }
.cashflow-page .diagnosis-result.is-gap .result-box { border-color: #efcbc4; }
.cashflow-page #cashflow-actions { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: action; }
.cashflow-page #cashflow-actions li { position: relative; padding: 12px 12px 12px 44px; border-top: 1px solid rgba(82,100,91,.14); color: #344b42; }
.cashflow-page #cashflow-actions li::before { counter-increment: action; content: counter(action); position: absolute; left: 8px; top: 11px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; font-size: 11px; font-weight: 900; }
.cashflow-page .affiliate-slot { margin: 24px 0 0; padding: 20px; border-color: #ecd49a; border-radius: 20px; background: linear-gradient(145deg,#fffaf0,#fff4d8); }
.cashflow-page .affiliate-item { padding: 18px; border-color: rgba(184,137,32,.22); border-radius: 16px; }
.cashflow-page .affiliate-item strong { font-size: 17px; }
.cashflow-page .affiliate-item p { color: #5d625f; font-size: 14px; }
.cashflow-page .affiliate-material > a { width: 100%; min-height: 52px; font-size: 15px; }
.cashflow-page .tool-shell > .result-note:last-child { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: #62707a; }
@media (max-width: 820px) {
  .header-inner { height: 62px; padding-inline: 18px; }
  .menu-button { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; padding: 12px 18px 18px; border-bottom: 1px solid var(--line); background: var(--paper); flex-direction: column; }
  .nav.is-open { display: flex; }
  .header-inner > .brand + .nav { position: static; display: flex; max-width: calc(100vw - 190px); margin-left: auto; padding: 0; border: 0; background: transparent; flex-direction: row; overflow-x: auto; white-space: nowrap; }
  .hero { padding-top: 54px; }
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-panel { min-height: 320px; }
  .tool-grid, .principles { grid-template-columns: 1fr; }
  .tool-card.featured { grid-column: span 1; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-columns { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .sidebar { position: static; }
  .cashflow-hero-grid { grid-template-columns: 1fr; }
  .cashflow-hero-preview { display: none; }
  .guide-hero-grid { grid-template-columns: 1fr; }
  .guide-summary-card { max-width: 620px; }
  .guide-cta { grid-template-columns: 1fr; }
  .guide-cta .button { width: 100%; }
}
@media (max-width: 1050px) and (min-width: 821px) {
  .cashflow-hero-grid { grid-template-columns: 1fr; }
  .cashflow-hero-preview { display: none; }
}
@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { padding-top: 42px; }
  .hero-actions .button { width: 100%; }
  .hero-panel { display: none; }
  .panel-card { inset: 38px 22px; }
  .panel-value { font-size: 46px; }
  .converter-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .swap-button { width: 100%; }
  .tool-shell { width: min(100% - 20px, 940px); border-radius: 20px; }
  .tool-shell > .button { width: 100%; margin-top: 24px !important; }
  .tool-card { min-height: 230px; padding: 24px; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .tool-card { min-height: 230px; }
  .tool-number { margin-bottom: 30px; }
  .tool-link { left: 24px; bottom: 22px; }
  .affiliate-slot { padding: 18px; }
  .affiliate-item { padding: 15px; }
  .affiliate-material a { width: 100%; }
  .speed-gauge { width: 220px; height: 220px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric { padding: 14px; }
  .metric strong { font-size: 20px; }
  .footer-links { grid-template-columns: 1fr; }
  .cashflow-page .tool-hero { padding: 38px 0 20px; }
  .cashflow-page .tool-hero h1 { font-size: clamp(34px,9.5vw,39px); line-height: 1.18; letter-spacing: -.06em; text-wrap: balance; word-break: auto-phrase; }
  .cashflow-page .tool-hero h1 br { display: none; }
  .cashflow-hero-preview { display: none; }
  .cashflow-preview-main { margin-top: 25px; }
  .cashflow-preview-main strong { font-size: 42px; }
  .cashflow-preview-grid { margin-top: 22px; }
  .cashflow-page .tool-shell { width: min(100% - 16px,980px); padding: 20px 16px 22px; border-radius: 24px; }
  .cashflow-step { align-items: flex-start; }
  .cashflow-page .form-grid > div { padding: 14px; }
  .cashflow-page .input { font-size: 17px; }
  .cashflow-page .metric-grid { gap: 8px; }
  .cashflow-page .metric { padding: 13px 11px; }
  .cashflow-page .metric small { min-height: 36px; }
  .cashflow-page .metric strong { font-size: 19px; }
  .cashflow-page .affiliate-slot { padding: 14px; }
  .guide-hero { padding: 44px 0 28px; }
  .guide-hero h1 { font-size: clamp(42px,13vw,57px); }
  .guide-hero h1 br { display: none; }
  .guide-summary-card { padding: 22px; border-radius: 24px; }
  .guide-summary-card dl > div { grid-template-columns: 74px 1fr; }
  .guide-article { padding: 20px 16px; border-radius: 22px; }
  .guide-article h2 { font-size: 26px; }
  .guide-cta { margin-inline: -4px; padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
