/* =============================================
   和氣流開明学 姓氏研究レポート LP
   メインカラー: #2c5530 (深緑) / アクセント: #c8a84b (ゴールド)
   ============================================= */

/* ========= RESET ========= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'メイリオ', Meiryo, sans-serif;
    color: #2d2d2d;
    line-height: 1.8;
    background: #fafaf7;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ========= VARS ========= */
:root {
    --theme: #2c5530;
    --theme-dark: #1e3c22;
    --theme-light: #4a7c59;
    --gold: #c8a84b;
    --gold-light: #e0c87a;
    --bg-cream: #fdfbf7;
    --bg-beige: #f5ede4;
    --text: #2d2d2d;
    --text-sub: #666;
    --border: #ddd5c4;
    --accent-red: #9b3023;
}

/* ========= COMMON ========= */
.container { max-width: 980px; margin: 0 auto; padding: 0 24px; }

.sec-lead {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 0.3em;
    text-align: center;
    margin-bottom: 14px;
    font-weight: 600;
}
.sec-title {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(1.5rem, 3.2vw, 2.1rem);
    color: var(--theme);
    text-align: center;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 36px;
    letter-spacing: 0.05em;
}

/* ========= BUTTONS ========= */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 34px;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    letter-spacing: 0.05em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme-light) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(44, 85, 48, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(44, 85, 48, 0.35); }
.btn-secondary {
    background: #fff;
    color: var(--theme);
    border: 2px solid var(--theme);
}
.btn-secondary:hover { background: var(--theme); color: #fff; }
.btn-large {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    margin-top: 8px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    position: relative;
    background: linear-gradient(135deg, #1e3c22 0%, #2c5530 60%, #3d6e47 100%);
    color: #fff;
    padding: 60px 0 80px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(200, 168, 75, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(200, 168, 75, 0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-copy { z-index: 2; }
.hero-brand {
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 0.4em;
    margin-bottom: 18px;
    font-weight: 600;
}
.hero-title {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    font-size: clamp(1.7rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
}
.hero-title .accent {
    color: var(--gold);
    display: inline-block;
    position: relative;
    padding: 0 6px;
}
.hero-title .accent::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold-light);
    opacity: 0.5;
}
.hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 32px;
}
.hero-cta-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hero-cta-row .btn-primary {
    background: var(--gold);
    color: var(--theme-dark);
    box-shadow: 0 4px 20px rgba(200, 168, 75, 0.4);
}
.hero-cta-row .btn-primary:hover { background: var(--gold-light); }
.hero-cta-row .btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}
.hero-cta-row .btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.hero-price-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-top: 6px;
}
.hero-visual {
    position: relative;
    z-index: 1;
}
.hero-cover {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: rotate(-3deg);
    transition: transform 0.4s;
}
.hero-cover:hover { transform: rotate(-1deg) translateY(-4px); }

/* =============================================
   課題提起
   ============================================= */
.problems {
    background: #fff;
    padding: 80px 0;
}
.check-list {
    max-width: 700px;
    margin: 0 auto 32px;
}
.check-list li {
    background: var(--bg-cream);
    border-left: 3px solid var(--gold);
    padding: 16px 20px 16px 48px;
    margin-bottom: 12px;
    position: relative;
    border-radius: 0 6px 6px 0;
    font-size: 0.98rem;
    line-height: 1.7;
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--theme);
    font-weight: 700;
    font-size: 1.2rem;
    background: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    line-height: 22px;
    text-align: center;
    border: 2px solid var(--gold);
}
.problems-lead {
    text-align: center;
    font-family: 'Yu Mincho', serif;
    font-size: 1.3rem;
    color: var(--theme);
    margin-top: 40px;
    letter-spacing: 0.08em;
}

/* =============================================
   フィーチャー（わかること）
   ============================================= */
.features {
    background: linear-gradient(180deg, #fafaf7 0%, var(--bg-beige) 100%);
    padding: 80px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.feature-grid li {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 24px 24px 24px 84px;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}
.feature-grid li:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(44, 85, 48, 0.1);
}
.feature-grid .num {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}
.feature-grid h3 {
    font-size: 1.05rem;
    color: var(--theme);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}
.feature-grid p {
    color: var(--text-sub);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* =============================================
   サンプル
   ============================================= */
.sample {
    background: #fff;
    padding: 80px 0;
}
.sample-note {
    text-align: center;
    color: var(--text-sub);
    font-size: 0.88rem;
    margin-bottom: 40px;
}
.sample-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}
.sample-card {
    background: var(--bg-cream);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.sample-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(44, 85, 48, 0.15);
}
.sample-card img {
    width: 100%;
    border-bottom: 1px solid var(--border);
}
.sample-card figcaption {
    padding: 18px 20px;
    font-size: 0.88rem;
    color: var(--text-sub);
    line-height: 1.6;
}
.sample-card figcaption strong {
    display: block;
    color: var(--theme);
    font-size: 0.98rem;
    margin-bottom: 4px;
    font-weight: 700;
}

/* =============================================
   鑑定書との橋渡し
   ============================================= */
.bridge {
    background: linear-gradient(180deg, var(--bg-beige) 0%, #fff 100%);
    padding: 80px 0;
}
.bridge-card {
    background: #fff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 40px 48px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(200, 168, 75, 0.15);
}
.bridge-body {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 20px;
    color: var(--text);
}
.bridge-body:last-child { margin-bottom: 0; }
.bridge-body strong {
    color: var(--theme);
    font-weight: 700;
}

/* =============================================
   商品情報
   ============================================= */
.product {
    background: #fafaf7;
    padding: 80px 0;
}
.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.product-spec {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px 24px;
    margin-bottom: 30px;
}
.product-spec dt {
    color: var(--theme);
    font-weight: 700;
    padding-top: 3px;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    border-right: 1px solid var(--border);
    padding-right: 14px;
}
.product-spec dd {
    font-size: 0.98rem;
    line-height: 1.7;
}
.product-spec dd .sub {
    color: var(--text-sub);
    font-size: 0.85rem;
}
.product-spec .price {
    font-family: 'Georgia', serif;
    color: var(--theme);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-right: 6px;
}
.product-spec .price-tax {
    font-size: 0.85rem;
    color: var(--text-sub);
}
.product-bonus {
    background: var(--bg-cream);
    border-left: 3px solid var(--gold);
    padding: 20px 24px;
    border-radius: 0 6px 6px 0;
}
.product-bonus h3 {
    color: var(--theme);
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.product-bonus p {
    font-size: 0.93rem;
    line-height: 1.75;
}
.product-bonus strong { color: var(--accent-red); font-weight: 700; }

/* =============================================
   申込フォーム
   ============================================= */
.order {
    background: linear-gradient(135deg, var(--theme) 0%, var(--theme-light) 100%);
    padding: 80px 0;
    color: #fff;
}
.order .sec-lead { color: var(--gold-light); }
.order .sec-title { color: #fff; }

.order-form {
    background: #fff;
    color: var(--text);
    padding: 40px;
    border-radius: 14px;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-weight: 700;
    color: var(--theme);
    margin-bottom: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}
.form-group .required {
    display: inline-block;
    margin-left: 8px;
    color: #fff;
    background: var(--accent-red);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.form-group .optional {
    display: inline-block;
    margin-left: 8px;
    color: var(--text-sub);
    background: #ececec;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.08em;
    vertical-align: middle;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.12);
}
.form-group textarea {
    resize: vertical;
    min-height: 80px;
}
.form-group .hint {
    color: var(--text-sub);
    font-size: 0.82rem;
    margin-top: 6px;
    line-height: 1.5;
}
.form-group .hint.error {
    color: var(--accent-red);
    font-weight: 600;
}
.name-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-note {
    text-align: center;
    color: var(--text-sub);
    font-size: 0.85rem;
    margin-top: 14px;
    line-height: 1.7;
}
.order-form .btn-primary { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%); color: var(--theme-dark); box-shadow: 0 6px 20px rgba(200,168,75,0.4); }
.order-form .btn-primary:hover { filter: brightness(1.03); }

/* =============================================
   フッター
   ============================================= */
.site-footer {
    background: #1e1e1e;
    color: #aaa;
    padding: 40px 0;
    text-align: center;
    font-size: 0.88rem;
}
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--gold); }
.footer-links { margin: 8px 0 14px; }
.footer-small { color: #555; font-size: 0.8rem; }

/* =============================================
   SUCCESS / CANCEL ページ
   ============================================= */
.status-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, #1e3c22 0%, #2c5530 100%);
}
.status-card {
    background: #fff;
    max-width: 560px;
    width: 100%;
    padding: 48px 40px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
}
.status-icon.ok { background: #e8f5e9; color: var(--theme); }
.status-icon.ng { background: #fdecea; color: var(--accent-red); }
.status-title {
    font-family: 'Yu Mincho', serif;
    color: var(--theme);
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}
.status-body {
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 28px;
    text-align: left;
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 20px 24px;
    font-size: 0.96rem;
}
.status-body strong { color: var(--theme); }
.status-page .btn-primary { display: inline-block; }

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 820px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero-visual { order: -1; }
    .hero-cover { max-width: 220px; transform: rotate(-2deg); }
    .hero-title { text-align: center; }
    .hero-brand, .hero-sub, .hero-price-note { text-align: center; }
    .hero-cta-row { justify-content: center; }

    .feature-grid { grid-template-columns: 1fr; }
    .sample-grid { grid-template-columns: 1fr; }
    .product-spec { grid-template-columns: 1fr; gap: 4px; }
    .product-spec dt { border-right: none; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 4px; }
    .product-spec dd { padding-bottom: 10px; }
}

@media (max-width: 480px) {
    .hero { padding: 40px 0 60px; }
    .problems, .features, .sample, .bridge, .product, .order { padding: 60px 0; }
    .order-form { padding: 28px 22px; }
    .bridge-card { padding: 28px 22px; }
    .product-card { padding: 28px 22px; }
    .feature-grid li { padding: 20px 20px 20px 72px; }
    .feature-grid .num { font-size: 1.7rem; top: 16px; left: 18px; }
    .name-row { grid-template-columns: 1fr; }
}

/* =============================================
   Phase 3 (2026-05-24): 苗字検索セクション
   既存LPの「申込フォーム」を「検索ボックス＋結果カード」に置換
   ============================================= */

#surname-checker {
    background: var(--bg-cream);
    padding: 80px 0;
}

#surname-checker .sec-desc {
    text-align: center;
    color: var(--text-sub);
    font-size: 0.96rem;
    line-height: 1.8;
    margin: 0 auto 8px;
    max-width: 640px;
}

.checker-input-row {
    display: flex;
    max-width: 520px;
    margin: 28px auto 16px;
    gap: 12px;
}

#surname-input {
    flex: 1;
    padding: 14px 18px;
    font-size: 1.1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font-family: inherit;
}

#surname-input:focus {
    outline: none;
    border-color: var(--theme);
    box-shadow: 0 0 0 3px rgba(44, 85, 48, 0.12);
}

#surname-search-btn {
    white-space: nowrap;
}

.checker-result {
    max-width: 640px;
    margin: 24px auto 0;
    min-height: 1em;
}

.result-card {
    padding: 28px;
    border-radius: 8px;
    text-align: left;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(44, 85, 48, 0.08);
    animation: surnameFadeIn 0.4s ease-out;
}

@keyframes surnameFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.result-card.completed { border-left: 4px solid var(--theme); }
.result-card.request   { border-left: 4px solid var(--gold); }
.result-card.full      { border-left: 4px solid var(--text-sub); }

.result-card h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--theme);
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', serif;
    line-height: 1.5;
}

.result-card .data-row {
    color: var(--text-sub);
    font-size: 0.95rem;
    margin: 4px 0;
    line-height: 1.7;
}

.result-card .cta-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 28px;
    background: var(--theme);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.2s, transform 0.2s;
}

.result-card .cta-btn:hover {
    background: var(--theme-dark);
    transform: translateY(-1px);
}

.result-card .note {
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-top: 12px;
    line-height: 1.6;
}

.result-loading {
    color: var(--gold);
    font-size: 0.95rem;
    text-align: center;
    padding: 12px;
}

.result-error {
    color: var(--accent-red);
    text-align: center;
    padding: 12px;
}

@media (max-width: 480px) {
    #surname-checker { padding: 60px 0; }
    .checker-input-row { flex-direction: column; }
    .result-card { padding: 22px; }
}
