
/* 新潟を楽しむナビ専用トップページ（Cocoon子テーマ） */
/* 親テーマの共通ヘッダー・フッター、および他ページには適用しません。 */

/* トップページに限りCocoon本文の枠・余白・サイドバーを解除 */
body.home #content,
body.home #content-in,
body.home #main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
body.home #content-in {
    display: block !important;
}
body.home #main {
    float: none !important;
    flex: none !important;
}
body.home #sidebar {
    display: none !important;
}

body.home .fp-root {
    --fp-navy: #102c49;
    --fp-blue: #0766ad;
    --fp-blue-dark: #07518b;
    --fp-ink: #24354a;
    --fp-muted: #637487;
    --fp-pale: #edf7ff;
    --fp-cream: #faf8f4;
    --fp-line: #e3eaf0;
    --fp-width: 1160px;
    --fp-radius: 12px;
    color: var(--fp-ink);
    background: #fff;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: .02em;
    width: 100%;
    min-width: 0;
    overflow: clip;
    -webkit-font-smoothing: antialiased;
}
body.home .fp-root,
body.home .fp-root *,
body.home .fp-root *::before,
body.home .fp-root *::after {
    box-sizing: border-box;
}
body.home .fp-root h1,
body.home .fp-root h2,
body.home .fp-root h3,
body.home .fp-root p {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    color: inherit;
    line-height: inherit;
    font-family: inherit;
    letter-spacing: inherit;
}
body.home .fp-root h1::before,
body.home .fp-root h1::after,
body.home .fp-root h2::before,
body.home .fp-root h2::after,
body.home .fp-root h3::before,
body.home .fp-root h3::after {
    content: none;
}
body.home .fp-root img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
}
body.home .fp-root a {
    color: inherit;
    text-decoration: none;
    box-shadow: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
body.home .fp-root a:hover { text-decoration: none; }
body.home .fp-root a:focus-visible {
    outline: 3px solid #e6aa36;
    outline-offset: 4px;
}
body.home .fp-root .fp-inner {
    width: min(var(--fp-width), calc(100% - 48px));
    margin-inline: auto;
}

/* メインビジュアル */
body.home .fp-root .fp-hero {
    position: relative;
    isolation: isolate;
    min-height: 440px;
    display: flex;
    align-items: center;
    background: linear-gradient(110deg, #ecf8ff 0%, #e8f5fc 42%, #d8edf9 100%);
}
body.home .fp-root .fp-hero-photo {
    position: absolute;
    z-index: -2;
    inset: 0 0 0 32%;
    overflow: hidden;
}
body.home .fp-root .fp-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 46%;
}
body.home .fp-root .fp-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, #ecf8ff 0%, #ecf8ff 28%, rgba(236,248,255,.96) 38%, rgba(236,248,255,.52) 57%, rgba(236,248,255,0) 78%);
}
body.home .fp-root .fp-hero-inner {
    position: relative;
    z-index: 1;
    padding-block: 66px;
}
body.home .fp-root .fp-hero-copy { max-width: 540px; }
body.home .fp-root .fp-eyebrow,
body.home .fp-root .fp-heading-en {
    font-size: 11px;
    font-weight: 800;
    color: var(--fp-blue);
    letter-spacing: .32em;
    line-height: 1.5;
}
body.home .fp-root .fp-hero-title {
    margin-top: 16px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 800;
    font-size: clamp(32px, 4.25vw, 54px);
    letter-spacing: .04em;
    line-height: 1.43;
    color: var(--fp-navy);
}
body.home .fp-root .fp-hero-description {
    margin-top: 20px;
    font-weight: 500;
    font-size: 15px;
    line-height: 2.05;
    color: var(--fp-navy);
}
body.home .fp-root .fp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    min-height: 48px;
    padding: 11px 24px;
    border: 1px solid transparent;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
}
body.home .fp-root .fp-button-primary {
    margin-top: 24px;
    background: var(--fp-blue-dark);
    color: #fff;
    min-width: 214px;
}
body.home .fp-root .fp-button-primary:hover {
    background: #083b67;
    transform: translateY(-2px);
}
body.home .fp-root .fp-button span,
body.home .fp-root .fp-text-link span {
    font-size: 19px;
    line-height: 1;
}

/* 見出し・余白 */
body.home .fp-root .fp-section { padding-block: 70px 78px; }
body.home .fp-root .fp-heading h2,
body.home .fp-root .fp-about-intro h2 {
    margin-top: 8px;
    font-size: clamp(24px, 2.4vw, 31px);
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: .06em;
    color: var(--fp-navy);
}
body.home .fp-root .fp-heading h2::after,
body.home .fp-root .fp-about-intro h2::after {
    content: "";
    display: block;
    width: 39px;
    height: 2px;
    margin-top: 13px;
    background: var(--fp-blue);
}
body.home .fp-root .fp-heading-center { text-align: center; }
body.home .fp-root .fp-heading-center h2::after { margin-inline: auto; }
body.home .fp-root .fp-heading-description {
    margin-top: 18px;
    font-size: 13px;
    color: var(--fp-muted);
}
body.home .fp-root .fp-section-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
}
body.home .fp-root .fp-text-link {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    flex: none;
    border-bottom: 1px solid #aacce6;
    padding-bottom: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--fp-blue-dark);
    line-height: 1.5;
}
body.home .fp-root .fp-text-link:hover { color: #092e50; border-color: #092e50; }

/* 7つの地域カード */
body.home .fp-root .fp-areas-section { background: #fff; }
body.home .fp-root .fp-area-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}
body.home .fp-root .fp-area-item {
    grid-column: span 3;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--fp-line);
    border-radius: var(--fp-radius);
    box-shadow: 0 5px 17px rgba(19, 48, 73, .06);
}
body.home .fp-root .fp-area-item:nth-child(n+5) { grid-column: span 4; }
body.home .fp-root .fp-area-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(16, 57, 94, .13);
}
body.home .fp-root .fp-area-image-wrap {
    height: 160px;
    overflow: hidden;
    background: #dceef6;
}
body.home .fp-root .fp-area-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
body.home .fp-root .fp-area-item:hover .fp-area-image { transform: scale(1.055); }
body.home .fp-root .fp-area-info {
    position: relative;
    padding: 12px 50px 13px 15px;
    min-height: 85px;
}
body.home .fp-root .fp-area-name {
    display: block;
    color: var(--fp-navy);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.55;
}
body.home .fp-root .fp-area-caption {
    display: block;
    margin-top: 5px;
    color: var(--fp-muted);
    font-size: 11px;
    line-height: 1.5;
}
body.home .fp-root .fp-area-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    width: 31px;
    height: 31px;
    color: var(--fp-blue-dark);
    background: #e4f2fc;
    font-size: 18px;
    line-height: 1;
}

/* 新着・人気記事 */
body.home .fp-root .fp-latest-section { background: var(--fp-cream); }
body.home .fp-root .fp-popular-section { background: var(--fp-pale); }
body.home .fp-root .fp-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
body.home .fp-root .fp-article-item {
    min-width: 0;
    margin: 0;
    background: #fff;
    overflow: hidden;
    border: 1px solid rgba(26, 62, 93, .075);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(28, 61, 87, .055);
    transition: transform .25s ease, box-shadow .25s ease;
}
body.home .fp-root .fp-article-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 28px rgba(23, 57, 86, .13);
}
body.home .fp-root .fp-article-link { display: block; height: 100%; }
body.home .fp-root .fp-article-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.75;
    background: #cfe4f3;
}
body.home .fp-root .fp-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
body.home .fp-root .fp-article-item:hover .fp-article-image { transform: scale(1.055); }
body.home .fp-root .fp-article-info { padding: 15px 17px 17px; }
body.home .fp-root .fp-article-category {
    display: inline-block;
    padding: 2px 8px;
    background: #eef6fc;
    color: var(--fp-blue-dark);
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.65;
}
body.home .fp-root .fp-article-title {
    display: -webkit-box;
    margin-top: 8px;
    color: var(--fp-navy);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 800;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}
body.home .fp-root .fp-article-link:hover .fp-article-title { color: var(--fp-blue-dark); }
body.home .fp-root .fp-article-date {
    display: block;
    margin-top: 9px;
    color: #718093;
    font-size: 11px;
    letter-spacing: .02em;
}
body.home .fp-root .fp-rank {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    border-radius: 0 0 8px 0;
    color: #fff;
    background: #32658b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 1px 2px 6px rgba(0, 0, 0, .12);
}
body.home .fp-root .fp-rank-1 { background: #d5a300; }
body.home .fp-root .fp-rank-2 { background: #8b9aa8; }
body.home .fp-root .fp-rank-3 { background: #b66d41; }
body.home .fp-root .fp-popular-note {
    margin: -6px 0 18px;
    font-size: 12px;
    color: var(--fp-muted);
}
body.home .fp-root .fp-empty {
    text-align: center;
    padding: 36px 15px;
    background: #fff;
    border-radius: 10px;
    color: var(--fp-muted);
}

/* このサイトについて / 運営元 */
body.home .fp-root .fp-about-section {
    padding-block: 65px;
    background: linear-gradient(110deg, #fff 0%, #fff 56%, #f0f8fe 100%);
    border-top: 1px solid #e8eef4;
}
body.home .fp-root .fp-about-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr .77fr;
    gap: 40px;
    align-items: start;
}
body.home .fp-root .fp-about-intro h2 { font-size: 25px; }
body.home .fp-root .fp-about-message {
    margin-top: 25px;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.95;
    color: var(--fp-blue-dark);
    font-weight: 800;
}
body.home .fp-root .fp-about-description { padding-top: 22px; }
body.home .fp-root .fp-about-description p,
body.home .fp-root .fp-about-operator p:not(.fp-about-operator-label) {
    font-size: 12px;
    line-height: 2.1;
    color: #4c5f71;
}
body.home .fp-root .fp-about-description p + p { margin-top: 14px; }
body.home .fp-root .fp-button-outline {
    margin-top: 21px;
    min-height: 42px;
    border-color: var(--fp-blue);
    color: var(--fp-blue-dark);
    background: #fff;
    border-radius: 6px;
    padding-inline: 18px;
    font-size: 12px;
    gap: 12px;
}
body.home .fp-root .fp-button-outline:hover { color: #fff; background: var(--fp-blue); }
body.home .fp-root .fp-about-operator {
    padding: 16px 0 8px 24px;
    border-left: 1px solid #cfdfeb;
}
body.home .fp-root .fp-about-operator-label {
    color: var(--fp-navy);
    font-size: 12px;
    font-weight: 800;
}
body.home .fp-root .fp-about-logo {
    margin-block: 13px 15px;
    width: min(185px, 100%);
    height: auto;
    max-height: 75px;
    object-fit: contain;
    object-position: left center;
}
body.home .fp-root .fp-about-contact {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
    border-bottom: 1px solid currentColor;
    color: var(--fp-blue-dark);
    font-size: 12px;
    font-weight: 700;
}

/* タブレット */
@media (max-width: 980px) {
    body.home .fp-root .fp-hero { min-height: 390px; }
    body.home .fp-root .fp-hero-photo { left: 35%; }
    body.home .fp-root .fp-hero::before {
        background: linear-gradient(90deg, #ecf8ff 0%, rgba(236,248,255,.98) 25%, rgba(236,248,255,.67) 52%, rgba(236,248,255,.04) 100%);
    }
    body.home .fp-root .fp-hero-copy { max-width: 470px; }
    body.home .fp-root .fp-area-item,
    body.home .fp-root .fp-area-item:nth-child(n+5) { grid-column: span 6; }
    body.home .fp-root .fp-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home .fp-root .fp-about-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    body.home .fp-root .fp-about-operator {
        grid-column: 1 / -1;
        border-left: 0;
        border-top: 1px solid #cfdfeb;
        padding: 22px 0 0;
    }
}

/* スマートフォン */
@media (max-width: 600px) {
    body.home .fp-root { font-size: 14px; }
    body.home .fp-root .fp-inner { width: calc(100% - 32px); }
    body.home .fp-root .fp-hero {
        min-height: 0;
        align-items: end;
        padding-top: 185px;
        background: #eef8fd;
    }
    body.home .fp-root .fp-hero-photo { inset: 0 0 auto; height: 245px; }
    body.home .fp-root .fp-hero-photo img { object-position: center; }
    body.home .fp-root .fp-hero::before {
        background: linear-gradient(180deg, rgba(238,248,253,0) 0%, rgba(238,248,253,.22) 23%, #eef8fd 65%, #eef8fd 100%);
    }
    body.home .fp-root .fp-hero-inner { padding-block: 35px 45px; }
    body.home .fp-root .fp-hero-title { margin-top: 10px; font-size: clamp(29px, 8vw, 38px); }
    body.home .fp-root .fp-hero-description { margin-top: 15px; font-size: 13px; }
    body.home .fp-root .fp-hero-description br { display: none; }
    body.home .fp-root .fp-button-primary { width: 100%; max-width: 300px; margin-top: 21px; }
    body.home .fp-root .fp-section { padding-block: 49px 57px; }
    body.home .fp-root .fp-heading h2,
    body.home .fp-root .fp-about-intro h2 { font-size: 24px; }
    body.home .fp-root .fp-heading-description { font-size: 12px; }
    body.home .fp-root .fp-area-grid { gap: 14px; margin-top: 26px; }
    body.home .fp-root .fp-area-item,
    body.home .fp-root .fp-area-item:nth-child(n+5) { grid-column: span 12; }
    body.home .fp-root .fp-area-item { display: grid; grid-template-columns: 43% 57%; min-height: 114px; }
    body.home .fp-root .fp-area-image-wrap { height: 100%; min-height: 114px; }
    body.home .fp-root .fp-area-info { display: flex; flex-direction: column; justify-content: center; padding: 12px 41px 12px 12px; }
    body.home .fp-root .fp-area-name { font-size: 13px; }
    body.home .fp-root .fp-area-caption { font-size: 10px; }
    body.home .fp-root .fp-area-arrow { width: 27px; height: 27px; right: 9px; }
    body.home .fp-root .fp-section-top { align-items: start; flex-direction: column; gap: 13px; margin-bottom: 22px; }
    body.home .fp-root .fp-text-link { align-self: end; }
    body.home .fp-root .fp-article-grid { grid-template-columns: 1fr; gap: 16px; }
    body.home .fp-root .fp-article-image-wrap { aspect-ratio: 1.75; }
    body.home .fp-root .fp-article-info { padding: 13px 15px 16px; }
    body.home .fp-root .fp-article-title { font-size: 14px; }
    body.home .fp-root .fp-about-grid { grid-template-columns: 1fr; gap: 21px; }
    body.home .fp-root .fp-about-message { margin-top: 18px; font-size: 18px; }
    body.home .fp-root .fp-about-description { padding-top: 0; }
    body.home .fp-root .fp-about-operator { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    body.home .fp-root *,
    body.home .fp-root *::before,
    body.home .fp-root *::after { transition-duration: .01ms !important; }
}
