/* トップページ：審査向けの説明コンテンツ・ヒーロー（index のみ読み込み） */

.landing-hero {
    width: 100vw;
    min-height: clamp(390px, 44vw, 540px);
    margin: 0 calc(50% - 50vw);
    padding: clamp(46px, 7vw, 86px) max(18px, env(safe-area-inset-left)) clamp(48px, 7vw, 92px);
    border-radius: 0;
    background:
        radial-gradient(80% 90% at 88% 8%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 58%),
        #f8faf6;
    border: 0;
    box-shadow: none;
    max-width: none;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.landing-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -110px;
    width: 280px;
    height: 220px;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.1);
    pointer-events: none;
}

.landing-hero-inner {
    position: static;
    max-width: 1400px;
    min-height: inherit;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.landing-hero-copy {
    width: min(820px, 64vw);
    min-width: 0;
    position: relative;
    z-index: 3;
}

.landing-hero-media {
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 1;
    width: min(68vw, 980px);
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.landing-hero-media::before,
.landing-hero-media::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.landing-hero-media::before {
    inset: 0 auto 0 0;
    width: 50%;
    background: linear-gradient(90deg, #f8faf6 0%, rgba(248, 250, 246, 0.9) 28%, rgba(248, 250, 246, 0) 100%);
}

.landing-hero-media::after {
    inset: auto 0 0 0;
    height: 36%;
    background: linear-gradient(180deg, rgba(248, 250, 246, 0) 0%, rgba(248, 250, 246, 0.86) 72%, #f8faf6 100%);
}

.landing-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    padding: 7px 15px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary-dark, #388e3c);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(46, 125, 50, 0.08);
}

.landing-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-color, #4caf50);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}

.landing-hero-title {
    margin: 0 0 36px;
    font-size: clamp(1.72rem, 3.8vw, 3.1rem);
    font-weight: 800;
    line-height: 1.28;
    color: #24342a;
    letter-spacing: 0.015em;
    text-wrap: balance;
}

.landing-hero-title span {
    color: var(--primary-dark, #388e3c);
    white-space: nowrap;
}

.landing-hero-lead {
    margin: 0 0 22px;
    max-width: 570px;
    font-size: clamp(0.96rem, 1.2vw, 1.08rem);
    line-height: 1.9;
    color: #3f5147;
    font-weight: 500;
}

.landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    align-items: center;
}

.landing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 24px;
    font-size: 0.9375rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    border-radius: 999px;
    transition:
        background 0.2s,
        color 0.2s,
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.landing-btn:focus-visible {
    outline: 2px solid var(--primary-color, #4caf50);
    outline-offset: 2px;
}

.landing-btn--primary {
    background: linear-gradient(180deg, var(--primary-color, #4caf50) 0%, var(--primary-dark, #388e3c) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(56, 142, 60, 0.35);
}

.landing-btn--primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.landing-btn--secondary {
    background: #fff;
    color: var(--header-nav-text, #1b5e20);
    border-color: rgba(46, 125, 50, 0.45);
}

.landing-btn--secondary:hover {
    background: #f0f0f0;
    color: #1b5e20;
    transform: translateY(-1px);
}

.landing-btn--ghost {
    background: transparent;
    color: var(--text-muted, #7f8c8d);
    border-color: var(--border-color, #e0e8dc);
}

.landing-btn--ghost:hover {
    color: var(--primary-dark, #388e3c);
    border-color: rgba(76, 175, 80, 0.45);
}

.landing-value-strip {
    margin: 0 0 48px;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.landing-value-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(76, 175, 80, 0.2);
    box-shadow:
        0 10px 22px rgba(31, 41, 55, 0.05),
        0 1px 3px rgba(31, 41, 55, 0.04);
    text-align: center;
}

.landing-value-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 128px;
    height: 108px;
    border-radius: 14px;
    flex-shrink: 0;
}

.landing-value-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 余白の出やすい contain をやめて埋める */
    object-position: center;
    transform: scale(1.06); /* 見た目を少し大きく */
}

.landing-value-card h2 {
    margin: 0 0 5px;
    font-size: 0.93rem;
    line-height: 1.35;
}

.landing-value-card p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-muted, #7f8c8d);
    line-height: 1.55;
}

/* TOP の検索フォームをLPの主役カードとして見せる */
.search-panel {
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid rgba(46, 125, 50, 0.16);
    border-radius: 24px;
    box-shadow:
        0 18px 45px rgba(31, 41, 55, 0.07),
        0 4px 14px rgba(76, 175, 80, 0.08);
}

.search-panel-title-row {
    align-items: center;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}

.search-panel-title {
    margin-bottom: 0;
}

.search-panel .form-section {
    padding: 0 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.1);
}

.search-panel .form-section:last-of-type {
    border-bottom: none;
}

.search-panel .section-title {
    color: #263d30;
    border-left: 1px solid rgba(76, 175, 80, 0.2);
    background: rgba(232, 245, 233, 0.95);
}

.search-panel .section-subtitle {
    color: #82918a;
}

.search-tabs {
    background: #f7faf5;
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 12px;
}

.tab-btn.active {
    background: linear-gradient(180deg, #f5a05a, #e8711a);
    box-shadow: 0 2px 8px rgba(232, 113, 26, 0.22);
}

#search-btn {
    background: linear-gradient(180deg, var(--primary-color, #4caf50), var(--primary-dark, #388e3c));
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(56, 142, 60, 0.22);
}

/* --- 検索フォームより下の説明ブロック --- */

.landing-below-results {
    margin-top: 48px;
    padding-top: 8px;
    border-top: 1px solid rgba(46, 125, 50, 0.12);
}

.landing-section {
    margin-bottom: clamp(36px, 6vw, 56px);
}

.landing-section:last-child {
    margin-bottom: 0;
}

.landing-section-title {
    display: block;
    position: relative;
    margin: 0 0 14px;
    padding-left: 16px;
    font-size: clamp(1.28rem, 2.6vw, 1.6rem);
    font-weight: 800;
    color: #24342a;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.landing-section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-color, #4caf50) 0%, var(--primary-dark, #388e3c) 100%);
}

.landing-section-intro {
    margin: 0 0 22px;
    max-width: 1400px;
    font-size: 0.97rem;
    line-height: 1.75;
    color: var(--text-muted, #7f8c8d);
}

.landing-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .landing-feature-grid {
        grid-template-columns: 1fr;
    }
}

.landing-feature-card {
    margin: 0;
    padding: 22px 20px;
    background: var(--card-bg, #fff);
    border-radius: var(--radius-md, 10px);
    border: 1px solid var(--border-color, #e0e8dc);
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.05));
    transition: border-color 0.2s, box-shadow 0.2s;
}

.landing-feature-card:hover {
    border-color: rgba(76, 175, 80, 0.35);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(76, 175, 80, 0.12));
}

.landing-feature-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.landing-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: var(--primary-color, #4caf50);
    background: rgba(76, 175, 80, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
}

.landing-feature-card h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color, #4a4a4a);
}

.landing-feature-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-muted, #7f8c8d);
}

/* FAQ */
.landing-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 1400px;
}

.landing-faq-item {
    border: 1px solid var(--border-color, #e0e8dc);
    border-radius: var(--radius-md, 10px);
    background: var(--card-bg, #fff);
    overflow: hidden;
}

.landing-faq-item summary {
    padding: 16px 18px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color, #4a4a4a);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-faq-item summary::-webkit-details-marker {
    display: none;
}

.landing-faq-item summary::before {
    content: "\f059";
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(76, 175, 80, 0.14);
    color: var(--primary-dark, #388e3c);
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.landing-faq-item summary::after {
    content: "";
    margin-left: auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--primary-color, #4caf50);
    border-bottom: 2px solid var(--primary-color, #4caf50);
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.landing-faq-item[open] summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

.landing-faq-answer {
    padding: 0 18px 18px 36px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-muted, #7f8c8d);
}

.landing-faq-answer a {
    color: var(--primary-color, #4caf50);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 詳細ガイド（読み物） */
.landing-prose {
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
    align-items: center;
    max-width: 1400px;
    min-height: 360px;
    background:
        radial-gradient(70% 90% at 88% 18%, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(135deg, #ffffff 0%, #f3faf1 48%, #e6f4e8 100%);
    border-radius: 30px;
    border: 1px solid rgba(76, 175, 80, 0.14);
    box-shadow:
        0 18px 42px rgba(31, 41, 55, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
    overflow: hidden;
}

.landing-prose-card {
    position: relative;
    z-index: 2;
    margin: clamp(22px, 3vw, 42px);
    backdrop-filter: blur(6px);
}

.landing-prose-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary-dark, #388e3c);
}

.landing-prose-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-color, #4caf50);
}

.landing-prose-visual {
    position: relative;
    z-index: 1;
    align-self: stretch;
    min-height: 360px;
    overflow: hidden;
}

.landing-prose-visual::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 2;
    width: 34%;
    background: linear-gradient(90deg, #f3faf1 0%, rgba(243, 250, 241, 0.82) 34%, rgba(243, 250, 241, 0) 100%);
    pointer-events: none;
}

.landing-prose-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    height: 22%;
    background: linear-gradient(180deg, rgba(230, 244, 232, 0) 0%, rgba(230, 244, 232, 0.9) 100%);
    pointer-events: none;
}

.landing-prose-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.landing-prose h3 {
    position: relative;
    margin: 0 0 28px;
    padding-left: 0;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.45;
    color: #233b31;
}

.landing-prose h3::after {
    content: none;
}

.landing-prose-lead {
    position: relative;
    margin: 0 0 28px;
    padding: 22px 26px;
    border-radius: 40px;
    background:
        radial-gradient(circle at 12% 12%, #ffffff 0 22px, transparent 23px),
        radial-gradient(circle at 31% 0%, #ffffff 0 30px, transparent 31px),
        radial-gradient(circle at 55% 7%, #ffffff 0 24px, transparent 25px),
        radial-gradient(circle at 79% 10%, #ffffff 0 28px, transparent 29px),
        radial-gradient(circle at 18% 100%, #ffffff 0 26px, transparent 27px),
        radial-gradient(circle at 45% 108%, #ffffff 0 30px, transparent 31px),
        radial-gradient(circle at 72% 100%, #ffffff 0 24px, transparent 25px),
        #ffffff;
    border: 1px solid rgba(76, 175, 80, 0.16);
    box-shadow:
        0 10px 24px rgba(31, 41, 55, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.95;
    letter-spacing: 0.01em;
    color: #4b5d54;
    text-wrap: pretty;
}

.landing-prose-lead br {
    display: block;
    content: "";
    margin-top: 0.4em;
}

.landing-prose-note {
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 14px;
    background: rgba(255, 248, 224, 0.74);
    border: 1px solid rgba(255, 193, 7, 0.2);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #516259;
}

.landing-prose-note a {
    color: var(--primary-dark, #388e3c);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 980px) {
    .landing-prose {
        display: block;
        position: relative;
        min-height: 420px;
        padding: 0;
        border-radius: 24px;
        background: none;
        overflow: hidden;
    }

    .landing-prose-visual {
        position: absolute;
        inset: 0;
        min-height: auto;
        z-index: 0;
        border-radius: 0;
    }

    .landing-prose-visual::before {
        inset: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            160deg,
            rgba(240, 250, 240, 0.30) 0%,
            rgba(240, 250, 240, 0.12) 100%
        );
    }

    .landing-prose-visual::after {
        display: none;
    }

    .landing-prose-card {
        position: relative;
        z-index: 2;
        margin: clamp(20px, 4vw, 32px);
        padding: clamp(20px, 3vw, 32px) clamp(18px, 3vw, 28px);
        border-radius: 18px;
        backdrop-filter: blur(8px);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    }

    .landing-prose-card .landing-prose-kicker {
        color: var(--primary-dark, #388e3c);
    }

    .landing-prose-card .landing-prose-kicker::before {
        background: var(--primary-color, #4caf50);
    }

    .landing-prose-card h3 {
        color: #24342a;
        text-shadow: none;
    }

    .landing-prose-lead {
        color: #3a4a3e;
        text-shadow: none;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .landing-prose-note a {
        color: var(--primary-dark, #388e3c);
    }
}

/* 下段 CTA */
.landing-cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    border-radius: var(--radius-lg, 20px);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12) 0%, rgba(255, 193, 7, 0.12) 100%);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.landing-cta-text {
    margin: 0;
    flex: 1;
    min-width: 200px;
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.55;
    color: var(--text-color, #4a4a4a);
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 768px) {
    .landing-hero {
        min-height: 0;
        padding: 0 14px 28px;
        background: #f8faf6;
    }

    .landing-hero-inner {
        min-height: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .landing-hero-copy {
        width: 100%;
        padding: 0;
    }

    .landing-hero-media {
        position: relative;
        inset: auto;
        width: calc(100% + 28px);
        height: clamp(220px, 58vw, 330px);
        margin: 0 -14px;
        order: -1;
    }

    .landing-hero-media img {
        height: 100%;
        aspect-ratio: auto;
    }

    .landing-hero-media::before {
        inset: auto 0 0 0;
        width: auto;
        height: 46%;
        background: linear-gradient(180deg, rgba(248, 250, 246, 0) 0%, rgba(248, 250, 246, 0.88) 72%, #f8faf6 100%);
    }

    .landing-hero-media::after {
        display: none;
    }

    .landing-hero-title br {
        display: none;
    }

    .landing-hero-title {
        font-size: clamp(1.55rem, 8vw, 2.25rem);
    }

    .landing-hero-lead {
        font-size: 0.94rem;
        line-height: 1.8;
    }

    .landing-value-strip {
        grid-template-columns: 1fr;
        margin-bottom: 18px;
    }

    .landing-value-card {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .landing-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-btn {
        width: 100%;
        justify-content: center;
    }

    .landing-cta-panel {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .landing-cta-actions {
        justify-content: center;
    }

    .landing-prose {
        min-height: 340px;
        border-radius: 20px;
    }

    .landing-prose-note {
        font-size: 0.84rem;
    }
}

/* TOP: 最新記事（グリッド・カード本体は style.css の .osamaru-post-card-*） */
.landing-latest-footer {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-latest-footer .landing-btn--secondary {
    color: var(--primary-dark, #388e3c);
    border-color: rgba(76, 175, 80, 0.55);
}
