/* ==========================================================================
   CHOUJIN事業開発診断 — style.css
   紙色ベース／濃いインク／差し色1点。リッツー（ai-advisor.choujin.net）と同じ色系統。
   ========================================================================== */

:root {
    --bg-main: #f6f5f2;
    --bg-alt: #efece6;
    --text-main: #3d3530;
    --text-secondary: #5c534d;
    --text-muted: #736a60;
    --accent-warm: #7d6749;
    --accent-warm-hover: #66533a;
    --accent-gold: #c4a96a;
    --border: #e3ded6;
    --border-strong: #cfc8bd;

    --font-sans: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    --font-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;

    --container: 720px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg-main); color: var(--text-main); font-family: var(--font-sans); font-size: 16.5px; line-height: 2; font-feature-settings: "palt"; }
a { color: var(--accent-warm); }
a:hover { color: var(--accent-warm-hover); }
p { margin: 0 0 1.2em; max-width: 40em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 700; }
.nowrap { white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-wide { max-width: 1120px; }

.h2 { font-family: var(--font-serif); font-weight: 600; font-size: clamp(22px, 3vw, 27px); line-height: 1.55; letter-spacing: .04em; margin: 0 0 22px; text-wrap: balance; }
.h3 { font-family: var(--font-serif); font-weight: 600; font-size: 18px; letter-spacing: .06em; margin: 0 0 10px; }
.note { font-size: 14px; color: var(--text-muted); line-height: 1.85; }

/* ---- Skip link / Sticky CTA ---- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text-main); color: var(--bg-main); padding: 8px 14px; font-size: 14px; text-decoration: none; }
.skip-link:focus { left: 8px; }
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(246, 245, 242, .96); border-top: 1px solid var(--border); transform: translateY(100%); transition: transform .3s ease; }
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .btn { width: 100%; text-align: center; padding: 14px 20px; }

/* ---- Buttons ---- */
.btn { display: inline-block; font-family: var(--font-sans); font-weight: 700; font-size: 15.5px; letter-spacing: .06em; padding: 14px 30px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s ease, color .2s ease; }
.btn-primary { background: var(--accent-warm); color: #fff; }
.btn-primary:hover { background: var(--accent-warm-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-main); border-color: var(--text-main); }
.btn-ghost:hover { background: var(--text-main); color: var(--bg-main); }
.btn-large { padding: 17px 38px; font-size: 17px; }
.btn:focus-visible { outline: 2px solid var(--text-main); outline-offset: 3px; }
.w-100 { width: 100%; }

/* ---- Header ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(246, 245, 242, .96); border-bottom: 1px solid var(--border); transform: translateY(-100%); transition: transform .3s ease; }
.site-header.visible { transform: translateY(0); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; max-width: 1120px; }
.header-logo { font-family: var(--font-serif); font-weight: 600; font-size: 16px; letter-spacing: .08em; color: var(--text-main); text-decoration: none; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { font-size: 14px; color: var(--text-secondary); text-decoration: none; letter-spacing: .04em; }
.nav-link:hover { color: var(--text-main); }
.nav-cta { background: var(--accent-warm); color: #fff; padding: 8px 16px; font-weight: 700; }
.nav-cta:hover { background: var(--accent-warm-hover); color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-main); transition: transform .25s ease, opacity .25s ease; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero ---- */
.hero { padding: 80px 0 72px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 720px; }
.hero-label { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13.5px; letter-spacing: .12em; color: var(--text-muted); margin: 0 0 22px; }
.hero-label span { white-space: nowrap; }
.hero-title { font-family: var(--font-serif); font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.42; margin: 0 0 24px; }
.hero-sub { font-size: 17px; line-height: 2.05; color: var(--text-secondary); margin: 0 0 32px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-cta-note { font-size: 13.5px; color: var(--text-muted); }


/* ---- Sections ---- */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--border); }

/* A4に書いてあること */
.plain-list { margin: 0 0 20px; border-top: 1px solid var(--border); }
.plain-list > div { display: grid; grid-template-columns: 8.5em 1fr; gap: 0 20px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.plain-list dt { font-weight: 700; }
.plain-list dd { margin: 0; color: var(--text-secondary); }

/* こんなとき */
.fit { background: var(--bg-alt); }
.dash-list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--border-strong); }
.dash-list li { position: relative; padding: 12px 0 12px 1.4em; border-bottom: 1px solid var(--border-strong); }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent-gold); }

/* 見る順番 */
.steps-table { width: 100%; border-collapse: collapse; margin: 22px 0 18px; border-top: 1px solid var(--border); }
.steps-table th, .steps-table td { border-bottom: 1px solid var(--border); padding: 12px 0; vertical-align: top; text-align: left; }
.steps-table th { width: 9.5em; font-weight: 700; white-space: nowrap; padding-right: 20px; }
.steps-table td { color: var(--text-secondary); font-size: 15.5px; }

/* CHOUJINとは */
.about-section { background: #fff; }
.dash-list.compact { margin: 14px 0 12px; }
.dash-list.compact li { padding: 9px 0 9px 1.4em; font-size: 15px; color: var(--text-secondary); }
.about-section .btn { margin-top: 8px; }

/* 流れ・VC */
.flow-list { margin: 0 0 40px; padding-left: 1.4em; }
.flow-list li { margin: 0 0 10px; color: var(--text-secondary); }
.flow-list li b { color: var(--text-main); }

/* FAQ */
.faq-accordion { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; padding: 18px 0; text-align: left; font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--text-main); cursor: pointer; }
.faq-question:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }
.faq-question .icon { position: relative; flex: 0 0 16px; width: 16px; height: 16px; }
.faq-question .icon::before, .faq-question .icon::after { content: ""; position: absolute; background: var(--accent-warm); top: 50%; left: 50%; transform: translate(-50%, -50%); transition: transform .25s ease; }
.faq-question .icon::before { width: 16px; height: 2px; }
.faq-question .icon::after { width: 2px; height: 16px; }
.faq-item.active .faq-question .icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-answer p { padding: 0 0 20px; margin: 0; font-size: 15px; color: var(--text-secondary); }

/* Form */
.cta { background: var(--bg-alt); padding: 80px 0 104px; }
.inline-form-container { background: #fff; border: 1px solid var(--border); padding: 36px 32px; max-width: 580px; }
.form-header h3 { font-family: var(--font-serif); font-weight: 600; font-size: 21px; margin: 0 0 6px; }
.form-header p { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; color: var(--text-main); }
.required { font-size: 11px; color: #fff; background: var(--accent-warm); padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; font-family: var(--font-sans); font-size: 15px; padding: 11px 12px; border: 1px solid var(--border-strong); background: var(--bg-main); color: var(--text-main); border-radius: 0; -webkit-appearance: none; appearance: none; }
.form-group select { background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: 2px solid var(--accent-warm); outline-offset: 0; border-color: var(--accent-warm); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #b3aa9f; }
.form-hint { font-size: 12.5px; color: var(--text-muted); margin: 6px 0 0; }
.form-submit { margin-top: 26px; }
.form-privacy { font-size: 12.5px; color: var(--text-muted); margin-top: 14px; }
.form-success-message { text-align: center; padding: 20px 0; }
.form-success-message h4 { font-family: var(--font-serif); font-size: 20px; margin: 0 0 10px; }
.form-success-message p { color: var(--text-secondary); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 40px 0 36px; }
.footer-content { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.footer-content p { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.footer-link { font-family: var(--font-serif); font-weight: 600; font-size: 16px; letter-spacing: .1em; color: var(--text-main); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 22px; }
.footer-links a { font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.footer-links a:hover { color: var(--text-main); text-decoration: underline; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); margin: 0; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .hero { padding: 56px 0 48px; }
    .hero-title { font-size: 28px; }
    .header-logo { font-size: 14.5px; }
    .header-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-main); border-bottom: 1px solid var(--border); padding: 8px 0 12px; }
    .header-nav.open { display: flex; }
    .header-nav .nav-link { padding: 12px 28px; }
    .header-nav .nav-cta { margin: 8px 28px 0; text-align: center; }
    .hamburger { display: flex; }
    .plain-list > div { grid-template-columns: 1fr; gap: 2px; }
    .steps-table th { display: block; width: auto; padding: 10px 0 0; border-bottom: none; }
    .steps-table td { display: block; padding: 2px 0 10px; }
    .photo-band { margin-bottom: 36px; }
    .inline-form-container { padding: 28px 20px; }
    .cta { padding: 56px 0 96px; }
    .sticky-cta { display: block; }
    .footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}
