:root {
  --bg: #f7faf9; --surface: #fff; --text: #1c2b2a; --muted: #5e7270; --line: #e1eae8;
  --brand: #0f9d8a; --brand-dark: #0b7d6e; --brand-soft: #e3f5f1; --warn: #a86a0e; --warn-soft: #fdf3e0;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,60,55,.05), 0 6px 20px rgba(20,60,55,.06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* hidden属性を、どの表示指定（.btn など）よりも優先する（疑似決済のボタンなどが、隠れたまま出ないように） */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; } .mt { margin-top: 2em; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }
:focus-visible { outline: 3px solid #7dd8c0; outline-offset: 2px; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; position: relative; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; height: 52px; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.foot-logo { height: 52px; margin-bottom: 8px; }
.gnav { display: flex; gap: 4px; }
.gnav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--text); font-size: .93rem; }
.gnav a:hover, .gnav a[aria-current] { background: var(--brand-soft); color: var(--brand-dark); }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: inherit; min-height: 44px; }

.hero { background: linear-gradient(180deg, #e9f7f3, var(--bg)); padding: clamp(40px, 8vw, 88px) 0 clamp(32px, 6vw, 56px); }
.eyebrow { color: var(--brand-dark); font-weight: 700; letter-spacing: .14em; font-size: .85rem; margin-bottom: .8em; }
.lead { font-size: 1.05rem; color: #34504d; max-width: 40em; }
.points { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 0; }
.points li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .9rem; }
.points li::before { content: "✓ "; color: var(--brand); font-weight: 700; }

.section { padding: clamp(32px, 6vw, 56px) 0; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }
.page-head { padding: 36px 0 8px; } .page-head .wrap { }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.card-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 a { color: var(--text); text-decoration: none; font-size: 1.15rem; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.os { font-size: .82rem; color: var(--muted); }
.card-body .btn { margin-top: auto; }

.featured { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; padding: 28px; align-items: center; }
.featured-img img { border-radius: 10px; border: 1px solid var(--line); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

.price { display: inline-flex; align-items: baseline; gap: 6px; }
.price b { font-size: 1.9rem; color: var(--brand-dark); letter-spacing: .01em; }
.price small { font-size: .9rem; color: var(--muted); }
.price-box { margin: 14px 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; } .price-box p { margin: 2px 0 0; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tag { font-size: .75rem; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; white-space: nowrap; }
.tag-main { background: var(--brand); color: #fff; }
.tag-soft { background: var(--brand-soft); color: var(--brand-dark); }
.tag-line { background: #fff; border-color: var(--line); color: var(--muted); }
.tag-wait { background: var(--warn-soft); color: var(--warn); }
.tag-ok { background: var(--brand-soft); color: var(--brand-dark); }

.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; border-radius: 12px; border: 1px solid var(--brand); text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.25; }
.btn small { font-size: .7rem; font-weight: 600; opacity: .85; }
.btn-primary { background: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-dark); }
.btn-line { background: #fff; color: var(--brand-dark); } .btn-line:hover { background: var(--brand-soft); }
.btn.is-pending, .btn.is-disabled { background: #eef2f1; border-color: var(--line); color: #6b7d7b; border-style: dashed; }
.btn.is-pending:hover { background: #eef2f1; }
.flow-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 8px; }

.chips { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chip { background: #fff; border: 1px dashed #c9d8d5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; font-size: .88rem; color: var(--muted); }
.chip b { color: var(--text); font-size: .95rem; }
.chip-on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); } .chip-on span { color: var(--brand-dark); font-weight: 600; }

.detail-hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; padding: 36px 0 20px; align-items: center; }
.detail-hero-img { margin: 0; } .detail-hero-img img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.subnav { position: sticky; top: 64px; z-index: 5; background: rgba(247,250,249,.95); backdrop-filter: blur(6px); display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; white-space: nowrap; }
.subnav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .88rem; color: var(--text); }
.subnav a:hover { background: var(--brand-soft); }
.product-detail .section { padding: 28px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .45em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.notes { margin: 0 0 1em; padding-left: 1.2em; } .notes li { margin-bottom: .4em; }
.info { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 1.2em 0 0; }
.info div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.info dt { font-size: .78rem; color: var(--muted); } .info dd { margin: 0; font-weight: 600; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.feature { padding: 16px 18px; } .feature p { margin: 0; font-size: .92rem; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.shots figure, .shot-one { margin: 0; } .shots img, .shot-one img { border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.shot-one { margin: 24px 0; max-width: 640px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .92rem; }
.table th, .table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f1f7f5; font-size: .8rem; color: var(--muted); }
.cta { text-align: left; }
.steps { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; align-items: flex-start; }
.steps li b { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; }
.steps h3 { margin: 0 0 2px; } .steps p { margin: 0; font-size: .92rem; }
.notice { background: var(--warn-soft); border: 1px solid #f0d9a8; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; color: #6b4a0b; }
.notice p { margin: 4px 0 0; }
.product-line { padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.prose h2 { margin-top: 1.6em; font-size: 1.15rem; } .prose ul { padding-left: 1.2em; }

.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; padding: 28px 0; }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.footer-in ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-content: start; }
.footer-in a { text-decoration: none; }
.copy { grid-column: 1 / -1; margin: 0; }
.noscript { color: #a33; }

@media (max-width: 820px) {
  .featured, .detail-hero { grid-template-columns: 1fr; padding-inline: 0; }
  .featured { padding: 18px; gap: 18px; }
  .menu-btn { display: block; }
  .gnav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 14px; box-shadow: var(--shadow); }
  .gnav.open { display: flex; }
  .gnav a { padding: 12px; border-radius: 10px; }
  .footer-in { grid-template-columns: 1fr; }
  .subnav { top: 64px; }
  .shots { grid-template-columns: 1fr; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { font-weight: 700; }
  .flow-buttons .btn { flex: 1 1 100%; }
}

.eyebrow i { font-style: normal; color: #f58a07; margin: 0 .35em; }
.eyebrow { color: #2a3338; }
@media (max-width: 400px) { .brand-logo { height: 42px; } .header-in { gap: 8px; } }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 20px; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.15rem; margin-bottom: .2em; }
.plan-main { border: 2px solid var(--brand); }
.plan-sub { background: #fbfcfc; border-style: dashed; }
.plan-price { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price b { font-size: 1.7rem; color: var(--brand-dark); }
.plan-price small { color: var(--muted); }
.plan-up { font-size: .9rem; margin: 0 0 10px; }
.plan-up b { color: var(--brand-dark); }
.tier { margin: 0 0 22px; }
.tier h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.tier-price { font-size: .9rem; font-weight: 600; color: var(--brand-dark); }
.tier-items { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.tier-items li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; font-size: .92rem; }
.tier-upgrade .tier-items li { border-color: #f0d9a8; background: #fffaf0; }
.tier-subscription .tier-items li { border-style: dashed; }
.migrate, .customize { padding: 22px; } .migrate h3, .customize h3 { font-size: 1.15rem; }
.chips-plain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; }
.chips-plain li { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 4px 14px; font-size: .9rem; }
.card-plans { margin: 0 0 8px; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }
.tokusho dd.pending { color: var(--muted); font-weight: 400; }
.tokusho { grid-template-columns: 1fr; }
.platform-note { background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 10px 0; }

.buy-form { padding: 22px; margin-top: 16px; }
.buy-form h2 { margin-top: 0; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.field label { font-weight: 700; font-size: .92rem; }
.field label em { font-style: normal; font-size: .72rem; background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel] { font: inherit; padding: 11px 14px; border: 1px solid #c9d8d5; border-radius: 10px; min-height: 46px; background: #fff; }
.field input:focus { outline: 3px solid #7dd8c0; outline-offset: 1px; }
.field input[aria-invalid=true] { border-color: #d6604a; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.field.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.err { margin: 0; color: #a3361f; font-weight: 700; font-size: .88rem; }
.buy-actions { margin-top: 8px; }
.btn-test { background: #f58a07; border-color: #f58a07; } .btn-test:hover { background: #d97300; }
.notice-test { background: #fff3e0; border-color: #f5c27a; }
.product-box { padding: 20px; }
.product-box h2 { margin: 0 0 6px; font-size: 1.2rem; }
.key-box { background: #fff; border: 2px solid var(--brand); border-radius: 12px; padding: 14px 16px; margin: 0 0 10px; overflow-wrap: anywhere; }
.key-box code { font-family: ui-monospace, Consolas, monospace; font-size: .86rem; word-break: break-all; user-select: all; }
.thanks { font-size: 1.5rem; color: var(--brand-dark); margin-top: 0; }
#completeRoot h2:not(.thanks) { margin-top: 1.6em; font-size: 1.15rem; }

/* ---- 困りごと相談ページ ---- */
.consult-hero { background: radial-gradient(1200px 400px at 85% -10%, #d6f1ea 0, transparent 60%), linear-gradient(180deg, #eaf7f3, var(--bg)); padding: clamp(44px, 9vw, 96px) 0 clamp(36px, 6vw, 64px); }
.consult-hero h1 { font-size: clamp(1.9rem, 5.4vw, 3rem); letter-spacing: .01em; margin-bottom: .5em; }
.consult-main { font-size: clamp(1.15rem, 3.2vw, 1.6rem); font-weight: 700; color: var(--brand-dark); line-height: 1.6; margin: 0 0 1em; }
.consult-hero .lead { max-width: 40em; margin-bottom: 1.4em; }
.consult-h { font-size: clamp(1.3rem, 3.4vw, 1.8rem); color: var(--text); }
.lead-dark { font-size: 1.06rem; color: #34504d; max-width: 42em; }
.bubbles { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.bubbles li { position: relative; background: #fff; border: 1px solid #cfe3de; border-radius: 18px 18px 18px 4px; padding: 12px 18px; box-shadow: var(--shadow); font-weight: 600; max-width: 100%; }
.bubbles li:nth-child(even) { border-radius: 18px 18px 4px 18px; background: #f3fbf8; }
.easy { padding: clamp(22px, 4vw, 40px); text-align: center; }
.easy-quote { font-size: clamp(1.2rem, 3.4vw, 1.7rem); font-weight: 700; color: var(--brand-dark); line-height: 1.8; margin: .6em 0; }
.routes { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.routes li { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.routes li b { font-size: 1.02rem; } .routes li span { color: var(--muted); font-size: .92rem; }
.buy-form textarea { font: inherit; padding: 11px 14px; border: 1px solid #c9d8d5; border-radius: 10px; background: #fff; min-height: 96px; resize: vertical; }
.buy-form select { font: inherit; padding: 11px 14px; border: 1px solid #c9d8d5; border-radius: 10px; min-height: 46px; background: #fff; }
.buy-form textarea:focus, .buy-form select:focus { outline: 3px solid #7dd8c0; outline-offset: 1px; }
.buy-form [aria-invalid=true] { border-color: #d6604a; }
.file-list { list-style: none; margin: 4px 0 0; padding: 0; font-size: .88rem; color: var(--muted); }
.consult-done { padding: 26px; text-align: center; }
.consult-cta { padding-block: 24px; }
.consult-cta-box { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(135deg, #e3f5f1, #fff); border: 1px solid #cfe3de; border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); box-shadow: var(--shadow); }
.consult-cta-box h2 { margin: 0 0 6px; font-size: clamp(1.15rem, 2.8vw, 1.45rem); } .consult-cta-box p { margin: 0; color: #34504d; }
.notice-soft { background: #f1f8f6; border-color: #cfe3de; color: #234; }
.sp { display: none; } @media (max-width: 640px) { .sp { display: inline; } .pc { display: none; } }
@media (max-width: 1060px) { .gnav a { padding: 8px 8px; font-size: .88rem; } }

.confirm-panel h2 { margin-top: 0; }
.confirm-list { margin: 12px 0 18px; display: grid; gap: 8px; }
.confirm-list > div { display: grid; grid-template-columns: 11em 1fr; gap: 4px 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.confirm-list dt { color: var(--muted); font-size: .85rem; font-weight: 700; }
.confirm-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.confirm-list .is-pending { background: #fffaf0; border-color: #f0d9a8; } .confirm-list .is-pending dd { color: #8a5a0b; }
@media (max-width: 640px) { .confirm-list > div { grid-template-columns: 1fr; } }
