@charset "UTF-8";

/* =========================================
   湘南まぜこぜ計画の歩み
   全ページ共通タイトル位置・高さ統一版
========================================= */

:root {
    --history-blue: #84D2E5;
    --history-blue-dark: #6dbcd1;
    --history-blue-soft: #dceef7;
    --history-yellow: #F7D070;

    --history-text: #333333;
    --history-text-sub: #555555;
    --history-text-muted: #777777;

    --history-border: #eeeeee;
    --history-bg-soft: #fdfdfd;

    --history-radius-sm: 8px;
    --history-radius-md: 16px;

    --history-content-width: 1200px;
}

/* -----------------------------------------
   基本設定
----------------------------------------- */

.history-section,
.history-section * {
    box-sizing: border-box;
}

.history-section {
    padding: 0 20px 80px;
    margin-top: -40px;
}

.history-section .section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* -----------------------------------------
   ページ最上部のタイトル
----------------------------------------- */

.history-section .page-header {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left;
}

.history-section .page-title {
    display: block;
    width: 100%;
    margin: 0 0 20px !important;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--history-yellow);
    color: var(--history-blue);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.history-section .page-desc {
    margin: 0 0 60px !important;
    color: var(--history-text-sub);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* -----------------------------------------
   ページ途中の見出し
----------------------------------------- */

.history-sub-header {
    margin: 0 0 40px;
    text-align: left;
}

.history-sub-title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--history-yellow);
    color: var(--history-blue);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
}

/* -----------------------------------------
   タイムライン全体
----------------------------------------- */

.pro-timeline-wrapper {
    position: relative;
    margin: 0 0 80px;
    padding-left: 60px;
}

.pro-timeline-wrapper::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 19px;
    width: 2px;
    background-color: var(--history-blue-soft);
}

.pro-year-group {
    position: relative;
    margin-bottom: 70px;
}

.pro-year-group:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   年号マーカー
----------------------------------------- */

.pro-year-marker {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 35px;
}

.pro-year-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -50px;
    width: 14px;
    height: 14px;
    border: 3px solid var(--history-blue);
    border-radius: 50%;
    background: #ffffff;
    transform: translateY(-50%);
    z-index: 2;
}

.pro-year-text {
    margin: 0;
    color: var(--history-blue);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.pro-year-sub {
    margin: 0;
    color: var(--history-blue);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

/* -----------------------------------------
   出来事ブロック
----------------------------------------- */

.pro-event {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.pro-event:last-child {
    margin-bottom: 0;
}

.pro-event-connector {
    position: absolute;
    top: 15px;
    left: -40px;
    width: 55px;
    height: 1px;
    border-bottom: 2px dotted var(--history-blue-soft);
}

.pro-event-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 12px;
}

.pro-month {
    flex: 0 0 auto;
    margin: 0;
    color: var(--history-blue);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.pro-title {
    margin: 0;
    color: var(--history-text);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.4;
}

.pro-event-body {
    padding-left: 50px;
}

.pro-list {
    margin: 0 0 15px;
    padding: 0 0 0 18px;
    color: #444444;
    font-size: 1.05rem;
    line-height: 1.8;
}

.pro-list li {
    margin-bottom: 6px;
}

.pro-list li:last-child {
    margin-bottom: 0;
}

/* -----------------------------------------
   タイムライン写真
   外枠を付けないシンプル表示
----------------------------------------- */

.history-photo-card {
    width: min(100%, 680px);
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.history-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #e4e8ea;
    border-radius: 12px;
    background: #f4f8fa;
}

.history-photo-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.history-photo-caption {
    margin: 8px 0 0;
    padding: 0;
    color: #555555;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.6;
}

/* 写真未設定時のプレースホルダーも同じ幅・質感に統一 */
.pro-image-box {
    width: min(100%, 720px);
    margin-top: 26px;
    padding: 26px 22px;
    border: 1px dashed #cfe5ec;
    border-radius: 18px;
    background: #f9fcfd;
    box-shadow: none;
    color: #87959b;
    font-size: 0.92rem;
    line-height: 1.7;
    text-align: center;
}

/* -----------------------------------------
   下部コンテンツ共通
   メディア掲載・助成金を1200px以内で中央配置
----------------------------------------- */

.history-lower-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.history-record-section {
    width: 100%;
    max-width: 100%;
    margin: 0 0 80px;
    padding: 0;
    border: 0;
}

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

.history-record-section .history-sub-header {
    width: 100%;
    margin: 0 0 34px;
}

.history-record-section .history-sub-title {
    width: 100%;
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--history-yellow);
}

/* -----------------------------------------
   取材・メディア掲載
----------------------------------------- */

.media-list {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--history-border);
    list-style: none;
}

.media-item {
    display: grid;
    grid-template-columns: 140px 90px minmax(0, 1fr);
    align-items: start;
    column-gap: 28px;
    width: 100%;
    min-width: 0;
    padding: 28px 20px;
    border-bottom: 1px solid var(--history-border);
    transition: background-color 0.3s ease;
}

.media-item:hover {
    background-color: var(--history-bg-soft);
}

.media-item.is-hidden {
    display: none;
}

.media-date {
    min-width: 0;
    margin: 0;
    padding-top: 5px;
    color: var(--history-text-muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.media-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.badge-web {
    border: 1px solid var(--history-blue);
    background: #f0f9fb;
    color: var(--history-blue);
}

.badge-paper {
    border: 1px solid #3b82f6;
    background: #eff6ff;
    color: #3b82f6;
}

.badge-tv {
    border: 1px solid var(--history-yellow);
    background: #fdfaf0;
    color: #d09a0e;
}

.badge-radio {
    border: 1px solid #8cc63f;
    background: #f4faeb;
    color: #8cc63f;
}

.badge-mag {
    border: 1px solid #9e7bc1;
    background: #f9f5fc;
    color: #9e7bc1;
}

.media-text {
    min-width: 0;
    color: var(--history-text-sub);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.media-text strong {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--history-text);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.5;
}

.media-link {
    display: inline-block;
    margin-top: 3px;
    color: var(--history-text);
    font-size: 0.96rem;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 3px;
}

.media-link:hover {
    color: var(--history-blue-dark);
    text-decoration: underline;
}

.media-link:focus-visible {
    outline: 3px solid rgba(132, 210, 229, 0.35);
    outline-offset: 3px;
    border-radius: 3px;
}

/* -----------------------------------------
   もっと見る
----------------------------------------- */

.show-more-wrap {
    margin-top: 40px;
    text-align: center;
}

.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 52px;
    padding: 12px 38px;
    border: 2px solid var(--history-blue);
    border-radius: 50px;
    background-color: #ffffff;
    color: var(--history-blue);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.btn-show-more:hover {
    background-color: var(--history-blue);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(132, 210, 229, 0.2);
}

.btn-show-more:focus-visible {
    outline: 3px solid rgba(132, 210, 229, 0.35);
    outline-offset: 3px;
}

/* -----------------------------------------
   助成金・受賞歴
----------------------------------------- */

.grant-list {
    width: 100%;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--history-border);
    list-style: none;
}

.grant-item {
    display: grid;
    grid-template-columns: 140px 110px minmax(0, 1fr);
    align-items: start;
    column-gap: 28px;
    width: 100%;
    min-width: 0;
    padding: 28px 20px;
    border-bottom: 1px solid var(--history-border);
    transition: background-color 0.3s ease;
}

.grant-item:hover {
    background-color: var(--history-bg-soft);
}

.grant-year {
    min-width: 0;
    margin: 0;
    padding-top: 5px;
    color: var(--history-text-muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.grant-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px solid var(--history-yellow);
    border-radius: 30px;
    background: #fdfaf0;
    color: #d09a0e;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    white-space: nowrap;
}

.grant-text {
    min-width: 0;
    color: var(--history-text-sub);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.grant-text strong {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--history-text);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.5;
}

/* -----------------------------------------
   CTA
----------------------------------------- */

.pro-cta-block {
    margin-top: 80px;
    padding: 60px 20px;
    border: 1px solid var(--history-border);
    border-radius: var(--history-radius-md);
    background: var(--history-bg-soft);
    text-align: center;
}

.pro-cta-block p {
    margin: 0 0 30px;
    color: var(--history-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.pro-btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 14px 60px;
    border-radius: 50px;
    background-color: var(--history-blue);
    box-shadow: 0 4px 10px rgba(132, 210, 229, 0.3);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.pro-btn-cta:hover {
    background-color: var(--history-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(132, 210, 229, 0.3);
}

.pro-btn-cta:focus-visible {
    outline: 3px solid rgba(132, 210, 229, 0.35);
    outline-offset: 3px;
}

/* -----------------------------------------
   スクロール連動アニメーション
----------------------------------------- */

.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInMedia {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -----------------------------------------
   タブレット
----------------------------------------- */

@media screen and (max-width: 900px) {
    .media-item {
        grid-template-columns: 115px 80px minmax(0, 1fr);
        column-gap: 20px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .grant-item {
        grid-template-columns: 115px 105px minmax(0, 1fr);
        column-gap: 20px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .media-badge {
        width: 80px;
    }

    .grant-badge {
        width: 105px;
    }
}

/* -----------------------------------------
   スマホ
----------------------------------------- */

@media screen and (max-width: 768px) {
    .history-section {
        padding: 0 16px 60px;
        margin-top: -20px;
    }

    .history-section .page-title {
        font-size: 2rem;
    }

    .history-section .page-desc {
        margin-bottom: 40px !important;
        font-size: 1rem;
    }

    .history-sub-title {
        font-size: 1.7rem;
    }

    .pro-timeline-wrapper {
        padding-left: 35px;
    }

    .pro-timeline-wrapper::before {
        left: 9px;
    }

    .pro-year-marker {
        align-items: baseline;
        gap: 4px;
    }

    .pro-year-marker::before {
        left: -34px;
        width: 12px;
        height: 12px;
    }

    .pro-year-text {
        font-size: 2rem;
        line-height: 1.15;
    }

    .pro-year-sub {
        font-size: 1rem;
        line-height: 1.2;
    }

    .pro-event {
        padding-left: 15px;
    }

    .pro-event-connector {
        top: 14px;
        left: -25px;
        width: 30px;
    }

    .pro-event-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pro-month,
    .pro-title {
        line-height: 1.5;
    }

    .pro-event-body {
        margin-top: 10px;
        padding-left: 0;
    }

    .pro-list {
        padding-left: 15px;
        font-size: 0.95rem;
    }

    .history-photo-card,
    .pro-image-box {
        width: 100%;
        max-width: 100%;
    }

    .history-photo-card {
        margin-top: 20px;
    }

    .history-photo-frame {
        aspect-ratio: 4 / 3;
        border-radius: 10px;
    }

    .history-photo-caption {
        margin-top: 7px;
        font-size: 0.84rem;
    }

    .pro-image-box {
        margin-top: 20px;
        padding: 20px 16px;
        border-radius: 15px;
        font-size: 0.88rem;
    }

    .history-record-section {
        margin-bottom: 64px;
    }

    .history-record-section .history-sub-header {
        margin-bottom: 24px;
    }

    .media-item,
    .grant-item {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "date badge"
            "text text";
        align-items: center;
        row-gap: 10px;
        column-gap: 14px;
        padding: 22px 14px;
    }

    .media-date,
    .grant-year {
        grid-area: date;
        padding-top: 0;
        font-size: 0.92rem;
        white-space: normal;
    }

    .media-badge,
    .grant-badge {
        grid-area: badge;
        justify-self: start;
        width: auto;
        min-width: 78px;
        padding: 4px 14px;
    }

    .media-text,
    .grant-text {
        grid-area: text;
        font-size: 0.96rem;
    }

    .media-text strong,
    .grant-text strong {
        font-size: 1.05rem;
    }

    .btn-show-more,
    .pro-btn-cta {
        width: 100%;
        padding-right: 20px;
        padding-left: 20px;
    }

    .pro-cta-block {
        padding: 40px 20px;
    }
}

/* -----------------------------------------
   小型スマホ
----------------------------------------- */

@media screen and (max-width: 480px) {
    .history-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .history-section .page-title {
        font-size: 1.8rem;
    }

    .history-sub-title {
        font-size: 1.5rem;
    }

    .pro-year-text {
        font-size: 1.8rem;
    }

    .pro-title {
        font-size: 1.1rem;
    }

    .history-photo-frame {
        border-radius: 8px;
    }

    .history-photo-caption {
        font-size: 0.82rem;
    }

    .pro-image-box {
        padding: 18px 14px;
    }

    .media-item,
    .grant-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "badge"
            "text";
        row-gap: 8px;
    }

    .media-badge,
    .grant-badge {
        min-width: 0;
    }
}

/* -----------------------------------------
   アニメーション軽減設定
----------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .fade-in-scroll,
    .fade-in-scroll.is-visible,
    .btn-show-more,
    .pro-btn-cta,
    .media-item,
    .grant-item {
        transition: none;
        transform: none;
    }
}