/* SHISAKUBA visual refresh. Content and business logic stay in the original files. */
:root {
  --bg: #f5f8fc;
  --bg-2: #edf3fc;
  --surface: #fff;
  --surface-tint: #f4f7fc;
  --ink: #172f50;
  --ink-soft: #44546b;
  --muted: #68788e;
  --line: #dce5f0;
  --line-soft: #e9eef5;
  --border: var(--line);
  --primary: #2468db;
  --primary-strong: #1954b6;
  --primary-ink: #2056a8;
  --primary-tint: #eaf2ff;
  --primary-tint-2: #cbdcf7;
  --ok: #18805b;
  --r: 18px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 26px;
  --sh-sm: 0 3px 12px rgba(23,47,80,.035);
  --sh-md: 0 12px 32px rgba(23,47,80,.07);
  --sh-lg: 0 24px 60px rgba(23,47,80,.12);
  --sh-blue: 0 6px 16px rgba(36,104,219,.18);
  --maxw: 1200px;
}
body { font-size: 16px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input[type="range"] { touch-action: manipulation; }
::selection { background: #cee0ff; color: var(--ink); }
:where(a,button,input,select,textarea,[tabindex]):focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
:where(input,select,textarea):focus-visible { outline-offset: 2px; }
section[id], [id]:target { scroll-margin-top: 104px; }
.section { padding-block: clamp(64px, 7vw, 96px); }
.section-head { margin-bottom: 40px; }
.section-head h2 { margin-top: 16px; font-size: clamp(26px, 3vw, 36px); line-height: 1.5; }
.section-head p { margin-top: 16px; line-height: 1.9; }
.eyebrow { font-size: 12px; letter-spacing: .06em; padding: 7px 13px; }
.btn { min-height: 48px; padding: 13px 25px; border-radius: 12px; font-family: var(--font-body); font-size: 15px; }
.btn-lg { padding: 17px 28px; min-height: 56px; font-size: 16px; }
.btn-primary { background: var(--primary); box-shadow: var(--sh-blue); }
.btn-ghost { box-shadow: none; border: 1px solid #cbd7e8; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: wait; opacity: .65; transform: none; }

/* One header treatment across all page templates. */
.site-header { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); }
.site-header.scrolled { background: rgba(255,255,255,.97); box-shadow: 0 4px 20px rgba(23,47,80,.04); }
.site-header .wrap { max-width: 1440px; padding-inline: 28px; }
.site-header .header-inner { height: 80px; gap: 20px; }
.site-header .brand { flex-shrink: 0; gap: 10px; }
.site-header .brand-text b { font-family: var(--font-body); font-size: 17px; letter-spacing: .045em; }
.site-header .brand-text small { font-size: 10px; margin-top: 5px; }
.site-header .nav { gap: clamp(12px, 1.5vw, 23px); }
.site-header .nav a { font-size: 13px; padding-block: 12px; color: var(--ink-soft); }
.site-header .nav a:hover { color: var(--primary); }
.site-header .nav a[aria-current="page"] { color: var(--primary-ink); font-weight: 700; }
.site-header .header-cta { gap: 10px; }
.site-header .header-cta .btn { font-size: 13px; padding: 11px 17px; min-height: 44px; }
.menu-toggle { display: none; }
.nav-extra { display: none; }

/* Home: retain all sections and copy, give the illustrations room to breathe. */
#top .hero { padding: clamp(48px, 5.5vw, 80px) 0 80px; background: linear-gradient(120deg,#fff 15%,#f2f7ff 100%); }
#top .hero::before { background: radial-gradient(circle,rgba(67,131,233,.12),transparent 67%); right: -100px; top: -220px; }
#top .hero::after { opacity: .4; }
#top .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 52px; }
#top .hero-copy { max-width: 600px; }
#top .hero h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.5; letter-spacing: .005em; margin-top: 24px; word-break: normal; overflow-wrap: anywhere; }
#top .hero h1 > span:first-child { display: block; white-space: normal !important; }
#top .hero-sub { font-size: 16px; line-height: 2; margin-top: 24px; }
#top .hero-actions { margin-top: 28px; gap: 12px; }
#top .hero-trust { gap: 10px 18px; margin-top: 22px; }
#top .hero-trust span { font-size: 12px; }
#top .hero-visual { min-height: 430px; }
#top .hero-visual .device-pc { margin-top: 12px; border-color: #d6e2f3; box-shadow: 0 24px 64px rgba(38,78,139,.12); }
#top .hero-visual .pc-side { width: 104px; }
#top .hero-visual .pc-main { padding: 18px 14px; }
#top .hero-visual .stat-card { padding: 12px 9px; }
#top .hero-visual .device-phone { right: -6px; bottom: -16px; width: 190px; }
#top .phone-label { top: -8px; left: -16px; border-radius: 10px; }
#top .hero-dots { bottom: -50px; }
#top .hero-dots button { width: 28px; height: 28px; border-radius: 50%; background: transparent; position: relative; }
#top .hero-dots button::after { content: ""; position: absolute; inset: 10px; border-radius: 99px; background: #b6cbe8; }
#top .hero-dots button.on::after { inset: 10px 4px; background: var(--primary); }
#top .strip { padding-block: 26px; }
#top .strip-inner { justify-content: space-between; gap: 20px; }
#top .strip-stat { flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
#top .strip-stat b { font-size: 25px; white-space: nowrap; }
#top .strip-stat span { font-size: 12px; }
#top .prob-grid, #top .why-grid { gap: 20px; }
#top .prob-card { background: #fff; padding: 26px; border-color: var(--line); }
#top .prob-card p { font-size: 15px; line-height: 1.85; }
#top .prob-q { border: 0; background: var(--primary-tint); border-radius: 10px; }
#top .prob-card:hover, #top .why-card:hover { transform: none; box-shadow: none; }
#top .prob-bridge { margin-top: 36px; }
#top .testimonials { background: var(--bg); border-block: 1px solid var(--line); }
#top .voice-card { width: 320px; min-height: 186px; padding: 24px; border-radius: 16px; box-shadow: none; }
#top .voice-quote { font-size: 14px; line-height: 1.9; }
#top .voice-foot { margin-top: auto; font-size: 12px; }
#top .sol-card { padding: 32px; text-align: left; box-shadow: none; }
#top .sol-icon { margin-left: 0; width: 54px; height: 54px; border-radius: 15px; }
#top .sol-num { color: var(--primary-ink); font-size: 12px; }
#top .sol-card p { font-size: 15px; }
#top .caps-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
#top .cap-card { padding: 25px; gap: 14px; background: #fff; }
#top .cap-card h4 { font-size: 17px; }
#top .cap-card p { font-size: 14px; color: var(--ink-soft); line-height: 1.85; }
#top .cap-card.wide { grid-column: span 3; display: grid; grid-template-columns: 46px 1fr; align-items: center; background: var(--primary-tint); }
#top .cap-card.wide p, #top .cap-card.wide .cap-hint { grid-column: 2; }
#top .cap-hint { font-size: 12px; opacity: 1; margin-top: auto; padding-top: 10px; color: var(--primary-ink); }
#top .cap-card:hover { transform: translateY(-2px); border-color: #a9c4ed; box-shadow: var(--sh-md); }
#top .trial-inner { gap: 48px; }
#top .trial-inner > * { min-width: 0; }
#top .trial-item { padding: 14px 16px; font-size: 14px; }
#top .trial-note { font-size: 13px; line-height: 1.9; }
#top .why-card { background: #fff; padding: 28px; }
#top .why-card h3 { font-size: 18px; }
#top .why-card p { font-size: 15px; line-height: 1.9; }
#top .why-card.feature { padding: 36px 40px; background: #19375c; box-shadow: none; }
#top .why-card.feature p { color: #e0e8f4; }
#top .flow { background: var(--bg); }
#top .flow-step { padding-bottom: 24px; }
#top .flow-step:last-child { padding-bottom: 0; }
#top .flow-body { padding: 24px 28px; }
#top .flow-body p { font-size: 15px; }
#top .flow-badge { box-shadow: none; border-width: 1px; border-radius: 18px; }
#top .plan-card { padding: 36px; box-shadow: none; }
#top .plan-card:hover { transform: none; }
#top .plan-card .plan-desc, #top .plan-ul li { font-size: 15px; }
#top .plan-fit span { font-size: 14px; line-height: 1.85; }
#top .pricing { background: var(--bg-2); }
#top .pricing .section-head { max-width: 960px; }
#top .price-panel.on { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: stretch; }
#top .free-banner { width: 100%; max-width: none; padding: 36px 28px; text-align: left; box-shadow: none; border: 1px solid var(--line); }
#top .free-banner + .free-banner { margin-top: 0 !important; border-color: #a7c3ef; }
#top .free-banner .free-big { font-family: var(--font-body); font-size: clamp(36px,4vw,48px); letter-spacing: -.025em; margin-bottom: 16px; }
#top .free-banner h3 { font-size: 22px; margin-bottom: 14px; }
#top .free-banner .free-list { grid-template-columns: 1fr; gap: 0; margin-top: 24px; }
#top .free-banner .trial-item { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: transparent; }
#top .price-inquiry { background: transparent; border: 0; padding: 0; margin-top: 32px; }
#top .price-inquiry-text { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
#top .pricing > .wrap > .trial-note { max-width: 820px !important; background: transparent; padding-inline: 0; color: var(--ink-soft); }
#top .brochure { background: #19375c; }
#top .brochure-inner { max-width: 1000px; grid-template-columns: .7fr 1fr; gap: 64px; }
#top .brochure-desc { color: #e0e8f4; }
#top .brochure-note { color: #c2d2e8; }
#top .shindan { background: #f0f5fd; }
#top .shindan-wrap { max-width: 820px; }
#top .shindan-card { padding: 36px; box-shadow: var(--sh-md); border-width: 1px; border-radius: 22px; }
#top .shindan-q { font-size: 19px; }
#top .shindan-q-badge { font-size: 12px; }
#top .shindan-choice { border-width: 1px; border-radius: 12px; background: #fff; padding: 16px; min-height: 56px; line-height: 1.7; }
#top .shindan-choice.selected { background: var(--primary-tint); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
#top .shindan-step { opacity: 1; }
#top .shindan-step:not(.active) .step-num { background: #e2eaf7; color: #536881; }
#top .step-label, #top .metric-label, #top .metric-unit { font-size: 12px; }
#top .shindan-disclaimer, #top .calc-disclaimer { font-size: 12px; line-height: 1.85; }
#top .shindan-sub { font-size: 13px; }
#top .sf-input { min-height: 48px; font-size: 16px; background: #fff; }
#top .sf-input:focus { box-shadow: 0 0 0 3px var(--primary-tint); }
#top .sf-label { font-size: 13px; }
#top .calc { background: #fff; }
#top .calc-wrap { max-width: 820px; }
#top .calc-card { border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--sh-md); padding: 36px; }
#top .calc-row-head label { font-size: 15px; }
#top .calc-val { font-size: 18px; font-variant-numeric: tabular-nums; }
#top .calc-choice { min-height: 44px; border-radius: 10px; }
#top .calc-metric { padding: 22px 12px; }
#top .calc-metric-label, #top .calc-metric-unit { font-size: 12px; }
#top .calc-metric-value { font-size: 32px; font-variant-numeric: tabular-nums; }
#top .calc-metric-value.calc-metric-big { font-size: 36px; color: #a25e0b; }
#top .calc-cta p { font-size: 14px; }
#top .faq-list { max-width: 840px; }
#top .faq-item { background: #fff; border-radius: 14px; }
#top .faq-item.open { border-color: #afc9ef; background: #f8faff; }
#top .faq-q { font-family: var(--font-body); padding: 22px; line-height: 1.8; }
#top .faq-a-inner { font-size: 15px; }
#top .final { background: #152f50; }
#top .final p { color: #dce6f5; }
#top .final-trust { color: #c0cee2; line-height: 1.9; }
#top .mock-close { min-width: 44px; min-height: 44px; }
.footer { background: #10253f; color: #c1cde0; padding: 56px 0 32px; }
.footer-blurb, .footer-col a { color: #c1cde0; }
.footer-col a { padding-block: 8px; }
.footer-legal p { color: #afbdd2; font-size: 12px; line-height: 2; }
.footer-copy { color: #a6b8d0; }

@media (max-width: 1180px) {
  .site-header .header-inner { height: 72px; gap: 12px; position: relative; }
  .site-header .header-cta { margin-left: auto; }
  .site-header.navigation-ready .nav { display: none; }
  .site-header.navigation-ready .menu-toggle { order: 3; display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); cursor: pointer; }
  .menu-toggle svg { width: 22px; height: 22px; }
  .menu-toggle .menu-close { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
  .menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .site-header.navigation-ready.menu-open .nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; position: absolute; z-index: 60; top: calc(100% + 8px); left: 24px; right: 24px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(23,47,80,.14); max-height: calc(100dvh - 96px); overflow: auto; }
  .site-header .nav a { padding: 12px 14px; min-height: 48px; border-radius: 9px; font-size: 14px; }
  .site-header .nav a:hover { background: var(--primary-tint); }
  .site-header .nav .nav-extra { display: block; color: var(--primary-ink); }
  .site-header:not(.navigation-ready) .header-inner { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 12px; }
  .site-header:not(.navigation-ready) .nav { display: flex; order: 3; width: 100%; overflow-x: auto; gap: 8px; }
  #top .hero-grid { gap: 32px; }
  #top .hero-visual .device-phone { width: 176px; right: -8px; }
  #top .hero-visual .pc-side { width: 82px; }
}
@media (max-width: 960px) {
  #top .hero-grid { grid-template-columns: 1fr; gap: 0; }
  #top .hero-copy { max-width: 680px; margin-inline: auto; }
  #top .hero h1 { font-size: 38px; }
  #top .hero-visual { width: 100%; max-width: 500px; min-height: 420px; margin: 48px auto 0; }
  #top .hero-visual .device-phone { width: 185px; }
  #top .caps-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #top .cap-card.wide { grid-column: span 2; }
  #top .strip-inner { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
  #top .strip-div { display: none; }
  #top .brochure-inner { gap: 32px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; text-align: left; }
  .section-head h2 { font-size: 26px; line-height: 1.55; }
  .section-head p { font-size: 15px; line-height: 1.9; }
  .eyebrow { font-size: 11px; }
  .site-header .wrap { padding-inline: 16px; }
  .site-header .brand { gap: 7px; }
  .site-header .brand-icon-img { height: 30px !important; }
  .site-header .brand-text b { font-size: 13px; }
  .site-header .brand-text small { font-size: 9px; margin-top: 4px; }
  .site-header .header-cta { gap: 8px; }
  .site-header .header-cta .btn-primary { padding: 10px 11px; font-size: 11px; min-height: 42px; }
  .site-header.navigation-ready.menu-open .nav { left: 12px; right: 12px; padding: 10px; }
  #top .hero { padding: 40px 0 56px; overflow: hidden; }
  #top .hero h1 { font-size: clamp(20px,6vw,25px); line-height: 1.65; margin-top: 20px; word-break: normal; }
  #top .hero h1 > span:first-child { white-space: nowrap !important; }
  #top .hero-sub { font-size: 15px; line-height: 1.95; margin-top: 20px; }
  #top .hero-sub br { display: initial; }
  #top .hero-actions { display: grid; grid-template-columns: 1fr; margin-top: 24px; gap: 10px; }
  #top .hero-actions .btn { min-height: 54px; padding: 13px 16px; font-size: 15px; }
  #top .hero-trust { gap: 10px; display: grid; grid-template-columns: 1fr; margin-top: 20px; }
  #top .hero-trust span { font-size: 12px; }
  #top .hero-visual { max-width: 320px; margin-top: 36px; min-height: 0; padding-bottom: 36px; }
  #top .hero-visual .device-phone { position: relative; right: auto; bottom: auto; width: 192px; margin: 0 auto; }
  #top .phone-label { left: 0; top: 22px; font-size: 12px; }
  #top .hero-dots { bottom: 0; }
  #top .strip { padding-block: 24px; }
  #top .strip-stat { flex-direction: column; align-items: flex-start; gap: 4px; }
  #top .strip-stat b { font-size: 22px; }
  #top .strip-stat span { font-size: 11px; }
  #top .prob-grid, #top .why-grid, #top .caps-grid { grid-template-columns: 1fr; gap: 12px; }
  #top .prob-card { padding: 21px; }
  #top .prob-card p { font-size: 15px; }
  #top .cap-card { padding: 22px; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 12px 16px; }
  #top .cap-card p, #top .cap-card .cap-hint { grid-column: 1 / -1; }
  #top .cap-card.wide { grid-column: auto; }
  #top .cap-card.wide p, #top .cap-card.wide .cap-hint { grid-column: 1 / -1; }
  #top .cap-card h4 { font-size: 16px; }
  #top .sol-card, #top .why-card { padding: 24px; }
  #top .why-card.feature { padding: 28px 24px; }
  #top .flow-step { grid-template-columns: 40px 1fr; gap: 12px; padding-bottom: 20px; }
  #top .flow-step::before { left: 19px; top: 40px; }
  #top .flow-badge { width: 40px; height: 40px; font-size: 17px; border-radius: 12px; }
  #top .flow-body { margin: 0; padding: 18px; }
  #top .flow-body h3 { flex-wrap: wrap; gap: 6px; font-size: 16px; }
  #top .flow-body p { font-size: 14px; }
  #top .plan-card { padding: 24px; }
  #top .price-panel.on { grid-template-columns: 1fr; gap: 16px; }
  #top .free-banner { padding: 26px 24px; }
  #top .free-banner .free-big { font-size: 37px; }
  #top .brochure-inner { grid-template-columns: 1fr; gap: 36px; }
  #top .brochure-title { font-size: 26px; }
  #top .calc-card, #top .shindan-card { padding: 24px 20px; border-radius: 18px; }
  #top .calc-wrap .section-head h2 { white-space: normal; }
  #top .calc-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  #top .calc-choice { min-width: 0; }
  #top .calc-metrics { grid-template-columns: 1fr 1fr; gap: 10px; }
  #top .calc-metric { padding: 20px 8px; }
  #top .calc-metric-value { font-size: 28px; }
  #top .calc-metric-value.calc-metric-big { font-size: 30px; }
  #top .calc-metric-label, #top .calc-metric-unit { font-size: 11px; }
  #top .shindan-q { font-size: 17px; }
  #top .shindan-choice { padding: 14px; font-size: 14px; }
  #top .shindan-sub { display: block; margin: 4px 0 0; }
  #top .shindan-steps { justify-content: space-between; margin: 24px 0; }
  #top .step-label { font-size: 10px; }
  #top .shindan-step-line { min-width: 4px; max-width: 16px; }
  #top .faq-q { font-size: 15px; padding: 18px 16px; gap: 10px; }
  #top .faq-a-inner { padding: 0 20px 20px; font-size: 14px; }
  #top .voice-card { width: 286px; padding: 22px; }
  #top .final .section-head, #top .final-inner { text-align: left; }
  #top .final h2 { font-size: 27px; }
  #top .final p { font-size: 15px; }
  #top .final-actions .btn { width: 100%; }
  .footer { padding-top: 40px; }
  .footer-top { gap: 28px; }
  .footer-col a { padding-block: 10px; }
}
@media (max-width: 359px) {
  .site-header .wrap { padding-inline: 10px; }
  .site-header .header-inner { gap: 6px; }
  .site-header .header-cta { gap: 5px; }
  .site-header .header-cta .btn-primary { padding-inline: 8px; font-size: 10px; }
  .site-header .brand-text b { font-size: 12px; }
  .site-header .brand-icon-img { height: 27px !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #top .voices-track { animation: none; }
}

/* 「たとえば、こんなアプリを作れます。」：8枚＋完全オーダーメイドで3×3、Excelは最下段で横長 */
#top a.cap-card { color: inherit; text-decoration: none; cursor: pointer; }
@media (max-width: 960px) and (min-width: 601px) {
  #top .cap-card.custom { grid-column: span 2; }
}
