@charset "UTF-8";

.page-home {
    background: #f5f3ec;
}

.home-main {
    width: 100%;
    overflow: clip;
}

.home-section {
    width: min(var(--content-wide), calc(100% - 40px));
    margin: 0 auto;
}

.home-section-label {
    margin: 0 0 14px;
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.home-section-heading {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.home-section-heading h2 {
    margin-bottom: 20px;
    color: var(--color-green);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.35;
}

.home-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111;
    color: #fff;
}

.home-hero-image,
.home-hero-overlay {
    position: absolute;
    inset: 0;
}

.home-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,.74), rgba(0,0,0,.35), rgba(0,0,0,.14));
}

.home-hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--content-wide), calc(100% - 40px));
    margin: 0 auto;
    padding: 120px 0 90px;
}

.home-hero-label {
    margin-bottom: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.home-hero h1 {
    max-width: none;
    margin: 0 0 30px;
    font-size: clamp(1.75rem, 7.8vw, 5.1rem);
    line-height: 1.06;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.home-hero-description {
    margin-bottom: 34px;
    font-size: 1.12rem;
    line-height: 2;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.home-button {
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, opacity .2s ease;
}

.home-button:hover {
    transform: translateY(-2px);
}

.home-button-primary {
    background: #fff;
    color: #111;
}

.home-button-research {
    border-color: rgba(255,255,255,.36);
    background: var(--color-gold);
    color: #111;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.home-button-secondary {
    border-color: rgba(255,255,255,.9);
    background: rgba(31,58,46,.94);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.home-intro {
    padding-top: 120px;
    padding-bottom: 90px;
}

.home-intro-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.home-intro h2 {
    margin-bottom: 26px;
    color: var(--color-green);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.45;
}

.home-lead {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.03rem;
    line-height: 2;
}

.home-story {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding-top: 90px;
    padding-bottom: 90px;
}

.home-story-reverse .home-story-image { order: 2; }
.home-story-reverse .home-story-content { order: 1; }

.home-story-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #ddd;
    border: 3px solid var(--color-ink);
    box-shadow: var(--shadow-paper);
}

.home-story-image img {
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
}

.home-story-content {
    min-width: 0;
}

.home-story-content h2 {
    margin: 0 0 24px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-green);
    color: var(--color-green);
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.7vw, 3rem);
    line-height: 1.38;
}

.home-story-content h2.home-story-heading-nowrap {
    font-size: clamp(1.6rem, 2.8vw, 2.5rem);
    white-space: nowrap;
}

.home-story-content p {
    margin-bottom: 18px;
    line-height: 2;
}

.home-emphasis {
    margin-top: 25px;
    padding: 18px 20px;
    border-left: 6px solid var(--color-gold);
    background: var(--color-gold-soft);
    font-weight: 800;
}

.home-image-caption {
    position: absolute;
    left: 20px;
    bottom: 20px;
    max-width: calc(100% - 40px);
    padding: 8px 13px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: .85rem;
}

.home-stat {
    margin-top: 28px;
    padding: 22px;
    background: #f1eee5;
}

.home-stat strong,
.home-stat span { display: block; }
.home-stat strong { font-size: 1.7rem; }
.home-stat span { margin-top: 4px; font-size: .9rem; }

.home-research,
.home-area-section,
.home-latest,
.home-sns,
.home-faq {
    padding-top: 120px;
    padding-bottom: 120px;
}

.home-research-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    background: #d7d2c6;
}

.home-research-card {
    min-width: 0;
    padding: 30px;
    background: #fff;
}

.home-research-number {
    display: block;
    margin-bottom: 30px;
    opacity: .55;
    font-size: .75rem;
    letter-spacing: .15em;
}

.home-research-card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.home-research-card p { margin: 0; font-size: .92rem; line-height: 1.8; }

.home-area-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-area-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 40px;
    background-position: center;
    background-size: cover;
    color: #fff;
    text-decoration: none;
}

.home-area-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.06));
}

.home-area-card > * { position: relative; z-index: 1; }
.home-area-card span { margin-bottom: 8px; font-size: .75rem; letter-spacing: .15em; }
.home-area-card strong { font-size: clamp(2rem, 4vw, 3.4rem); }
.home-area-card small { margin-top: 8px; }
.home-area-card b { margin-top: 18px; font-size: .75rem; letter-spacing: .1em; }
.home-area-awaji { background-image: url("../images/awaji.webp"); }
.home-area-minami { background-image: url("../images/minami-osaka.webp"); }

.home-point-list {
    margin-top: 24px;
    border-top: 1px solid var(--color-border);
}

.home-point-list > div {
    display: grid;
    grid-template-columns: minmax(90px, 120px) 1fr;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.home-point-list strong { color: var(--color-green); }
.home-point-list span { color: #555; font-size: .9rem; }

.home-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.home-stat-grid div { padding: 22px; background: #f2efe7; }
.home-stat-grid strong, .home-stat-grid span { display: block; }
.home-stat-grid strong { margin-bottom: 7px; font-size: 1.45rem; }
.home-stat-grid span { font-size: .82rem; }

.home-latest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.home-latest-card {
    min-width: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.09);
}

.home-latest-image {
    height: 300px;
    overflow: hidden;
    background: #ece8dc;
}

.home-latest-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.home-latest-content { padding: 26px; }
.home-latest-content h3 { margin: 10px 0; font-size: 1.45rem; line-height: 1.45; }
.home-latest-content p { line-height: 1.8; }
.home-latest-content strong { display: inline-block; margin-top: 8px; }

.home-latest-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}

.home-latest-meta time { color: var(--color-green); font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.home-latest-meta span { padding: 5px 9px; background: var(--color-gold-soft); color: #6e5316; font-size: .68rem; font-weight: 800; }
.home-latest-area { margin: 0 0 10px; color: #6b7280; font-size: .82rem; font-weight: 700; }
.home-latest-more { margin-top: 32px; text-align: right; }
.home-latest-more a { color: var(--color-green); font-weight: 900; text-decoration: none; border-bottom: 2px solid currentColor; }
.home-latest-empty { padding: 34px; border: 1px solid #ddd; background: #fafafa; text-align: center; }

.home-note-section {
    width: min(var(--content-wide), calc(100% - 40px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin: 0 auto;
    background: #111;
    color: #fff;
}

.home-note-image {
    min-width: 0;
    min-height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-note-image img { width: 100%; height: 100%; object-fit: contain; }
.home-note-content { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 60px; }
.home-note-content h2 { margin-bottom: 26px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.35; }
.home-note-content p { line-height: 2; }
.home-note-button { align-self: flex-start; margin-top: 20px; padding: 14px 22px; background: #fff; color: #111; font-weight: 800; text-decoration: none; }

.home-sns-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.home-sns-card { min-width: 0; min-height: 145px; display: flex; flex-direction: column; justify-content: center; padding: 28px; border: 1px solid #3a4652; background: #1f2933; color: #fff; text-decoration: none; }
.home-sns-card strong { margin-bottom: 8px; font-size: 1.25rem; }
.home-sns-card span { color: #cbd5e1; font-size: .85rem; line-height: 1.6; }

.home-faq details { border-top: 1px solid #ccc; }
.home-faq details:last-child { border-bottom: 1px solid #ccc; }
.home-faq summary { position: relative; padding: 24px 42px 24px 4px; cursor: pointer; list-style: none; font-weight: 800; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: "+"; position: absolute; right: 5px; font-size: 1.45rem; }
.home-faq details[open] summary::after { content: "−"; }
.home-faq details p { margin: 0; padding: 0 42px 25px 4px; line-height: 2; }

.all-map { width: 100%; height: auto; }

@media (max-width: 760px) {
    .home-section,
    .home-note-section {
        width: calc(100% - 28px);
    }

    /* スマホ：ヒーローを「タイトル / 写真 / CTA」の3段構成にする */
    .home-hero {
        min-height: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: stretch;
        background: #111;
    }

    .home-hero-content {
        display: contents;
        width: auto;
        margin: 0;
        padding: 0;
    }

    .home-hero-top {
        position: relative;
        z-index: 2;
        grid-row: 1;
        width: calc(100% - 28px);
        margin: 0 auto;
        /* 共通ヘッダー66px + 余白24px */
    	padding: calc(66px + 24px) 0 28px;
    }

    .home-hero-label {
        margin-bottom: 10px;
        font-size: .68rem;
        line-height: 1.5;
    }

    .home-hero h1 {
        margin-bottom: 0;
        font-size: clamp(1.65rem, 7.4vw, 2.45rem);
        line-height: 1.18;
        letter-spacing: .01em;
        white-space: normal;
    }

    .home-hero-image {
        position: relative;
        inset: auto;
        z-index: 0;
        grid-row: 2;
        grid-column: 1;
        display: block;
        background: #111;
    }

    .home-hero-image img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }

    .home-hero-overlay {
        position: relative;
        inset: auto;
        z-index: 1;
        grid-row: 2;
        grid-column: 1;
        pointer-events: none;
        background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.26) 34%, rgba(0,0,0,0) 62%);
    }

    .home-hero-description {
        position: relative;
        z-index: 2;
        grid-row: 2;
        grid-column: 1;
        align-self: end;
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 0 0 24px;
        font-size: .98rem;
        line-height: 1.85;
        text-shadow: 0 2px 12px rgba(0,0,0,.72);
    }

    .home-hero-buttons {
        position: relative;
        z-index: 2;
        grid-row: 3;
        width: calc(100% - 28px);
        margin: 0 auto;
        padding: 24px 0 30px;
        flex-direction: column;
        gap: 12px;
    }

    .home-button {
        width: 100%;
        min-width: 0;
        min-height: 56px;
    }

    .home-intro,
    .home-research,
    .home-area-section,
    .home-latest,
    .home-sns,
    .home-faq {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .home-story {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .home-story-reverse .home-story-image { order: 1; }
    .home-story-reverse .home-story-content { order: 2; }

    .home-story-content h2 {
        font-size: clamp(1.45rem, 6.2vw, 2.1rem);
    }
    
    .home-story-content h2.home-story-heading-nowrap {
    	font-size: clamp(1.1rem, 5.2vw, 1.7rem);
	}

    .home-story-content p {
        font-size: .96rem;
        line-height: 1.9;
    }

    .home-research-grid,
    .home-area-grid,
    .home-latest-grid,
    .home-sns-grid,
    .home-note-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-area-card { min-height: 0; aspect-ratio: 1 / 1; padding: 28px; }
    .home-point-list > div { grid-template-columns: 1fr; gap: 3px; }
    .home-stat-grid { grid-template-columns: 1fr; }
    .home-latest-image { height: auto; min-height: 220px; }
    .home-latest-image img { max-height: 420px; }
    .home-latest-more { text-align: left; }
    .home-note-image { min-height: 280px; }
    .home-note-content { padding: 45px 22px; }
    .home-note-button { align-self: stretch; text-align: center; }
    .home-section-heading { margin-bottom: 38px; }
    
}

@media (max-width: 420px) {
    .home-section,
    .home-note-section {
        width: calc(100% - 22px);
    }

    .home-hero-top,
    .home-hero-description,
    .home-hero-buttons {
        width: calc(100% - 22px);
    }

    .home-hero h1 { font-size: clamp(1.65rem, 7.6vw, 2.3rem); }
    .home-area-card { min-height: 0; aspect-ratio: 1 / 1; padding: 22px; }
    .home-latest-content { padding: 22px 18px; }
}


/* 地域ごとの一次調査と公的資料。既存コンポーネントとは独立したコンテンツ。 */
.local-evidence {max-width: 920px; margin: 52px auto; padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(118,137,121,.35); border-radius: 16px; background: rgba(245,249,244,.07); line-height: 1.95;}
.local-evidence-label {font-size: .78rem; letter-spacing: .14em; font-weight: 700; opacity: .78;}
.local-evidence h2 {margin: 12px 0 22px; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.55;}
.local-evidence h3 {margin: 12px 0; font-size: 1.08rem;}
.local-evidence p {margin: 15px 0;}
.local-evidence .local-findings {border-left: 3px solid #669675; margin: 24px 0; padding: 5px 0 5px 21px;}
.local-evidence ul {padding-left: 1.3em; margin: 12px 0;}
.local-evidence li {margin: 8px 0;}
.local-evidence a {text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere;}
.local-sources {margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(118,137,121,.3);}
.local-evidence .local-sources-note {font-size: .88rem; opacity: .86;}
.region-introduction {max-width: 920px; margin: 35px auto; line-height: 1.95;}
.region-introduction h2 {font-size: clamp(1.25rem, 2.5vw, 1.85rem); line-height: 1.5;}
@media (max-width: 720px) {.local-evidence{margin: 30px 12px; padding: 22px 18px;}.region-introduction{padding: 0 12px;}}


/* 固定の実地調査アーカイブ：DBの新着ログが空でも、公開済み調査へ案内する */
.home-latest-archive{margin-top:22px;padding:clamp(18px,3vw,28px);border:1px solid var(--color-border);background:#fff}
.home-latest-archive>p:first-child{margin:0 0 18px;line-height:1.8;color:var(--color-text)}
.home-latest-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.home-latest-archive-grid article{min-width:0;padding:18px;border:1px solid #e0e7e1;border-radius:12px;background:#f8faf8}
.home-latest-archive-grid article>span{display:block;margin-bottom:9px;font-size:.78rem;font-weight:800;color:#53715d}
.home-latest-archive-grid h3{margin:0 0 9px;font-size:1.05rem;line-height:1.55;color:var(--color-ink)}
.home-latest-archive-grid p{margin:0 0 13px;line-height:1.75;font-size:.91rem}
.home-latest-archive-grid a,.home-latest-archive-more a{font-weight:800;color:var(--color-green);text-underline-offset:3px}
.home-latest-archive-more{margin:18px 0 0;text-align:right}
@media(max-width:760px){.home-latest-archive-grid{grid-template-columns:1fr}.home-latest-archive-grid article{padding:16px}.home-latest-archive-more{text-align:left}}
