@charset "utf-8";
/* history-new.css 固有スタイル（共通部分は _shared-50th-sub.css） */

div#container {
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2) inset;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 100%;
}

.history-page {
        background: #fff;
        color: #333;
        font-family: "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
        line-height: 1.6;
        overflow-x: clip;
}

.history-hero {
        position: relative;
        background:
            linear-gradient(135deg, rgba(0, 25, 65, 0.65) 0%, rgba(0, 70, 140, 0.50) 100%),
            url('../../50th/history/img/bg_001.jpg') center/cover no-repeat;
        padding: 130px 24px 100px;
        text-align: center;
        color: #fff;
        border-bottom: 1px solid #e1eef6;
        overflow: hidden;
}

.history-hero::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 28px;
        width: 60px;
        height: 2px;
        background: rgba(255, 255, 255, 0.6);
        transform: translateX(-50%);
}

.history-hero h1 {
        font-size: 3rem;
        color: #fff;
        margin: 0 0 16px;
        letter-spacing: 0.1em;
        font-weight: 700;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.history-hero .lead {
        font-size: 1.15rem;
        color: rgba(255, 255, 255, 0.95);
        margin: 0 auto 28px;
        max-width: 760px;
        letter-spacing: 0.05em;
        text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.history-hero .history-message {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.92);
        margin: 0 auto;
        max-width: 720px;
        line-height: 2;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.history-hero .history-message strong {
        color: #fff;
        font-weight: 700;
}

.timeline-section {
        max-width: 1400px;
        margin: 60px auto 100px;
        padding: 0 24px;
}

.timeline-tabs {
        display: flex;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 0 20px;
        padding: 0;
        list-style: none;
}

.timeline-tabs::-webkit-scrollbar {
        display: none;
}

.timeline-tab {
        flex: 0 0 auto;
        appearance: none;
        background: transparent;
        border: none;
        font-family: inherit;
        font-size: 1.15rem;
        font-weight: 600;
        color: #888;
        padding: 20px 36px;
        cursor: pointer;
        position: relative;
        transition: color 0.2s ease, background 0.2s ease;
        white-space: nowrap;
}

.timeline-tab::after {
        content: '';
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: -2px;
        height: 3px;
        background: #0039a8;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.25s ease;
}

.timeline-tab:hover {
        color: #0039a8;
        background: #f6fbfd;
}

.timeline-tab.is-active {
        color: #0039a8;
}

.timeline-tab.is-active::after {
        transform: scaleX(1);
}

.timeline-panels {
        background: #fafcfe;
        border: 1px solid #e1eef6;
        border-radius: 8px;
}

.timeline-panel {
        display: none;
}

.timeline-panel.is-active {
        display: block;
        animation: fadeInPanel 0.4s ease forwards;
}

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

.timeline-track {
        padding: 24px 4px 20px;
}

.timeline-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 0 12px 16px;
        cursor: grab;
        user-select: none;
        scroll-behavior: smooth;
}

.timeline-scroll.is-dragging {
        cursor: grabbing;
        scroll-behavior: auto;
}

.timeline-scroll.is-dragging a, .timeline-scroll.is-dragging img {
        pointer-events: none;
}

.timeline-scroll {
        scrollbar-width: none;
}

.timeline-scroll::-webkit-scrollbar {
        display: none;
}

.timeline-grid {
        display: grid;
        grid-template-rows: minmax(145px, auto) 80px minmax(180px, auto);
        grid-auto-flow: dense;
        grid-auto-columns: 300px;
        gap: 18px;
        padding: 24px 16px 32px;
        position: relative;
}

.timeline-axis-line {
        grid-row: 2;
        align-self: center;
        height: 2px;
        background-image: repeating-linear-gradient(
            to right,
            #6b88a8 0,
            #6b88a8 6px,
            transparent 6px,
            transparent 14px
        );
        z-index: 0;
        pointer-events: none;
        width: 100%;
}

.axis-marker {
        grid-row: 2;
        position: relative;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 4px;
        line-height: 1;
        font-weight: 600;
        font-size: 0.95rem;
        color: #0039a8;
        z-index: 1;
        background: transparent;
}

.axis-marker::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 14px;
        height: 14px;
        background: #fff;
        border: 3px solid #0039a8;
        border-radius: 50%;
        z-index: 2;
        margin: 0;
}

.event-card {
        background: #fff;
        border-radius: 10px;
        padding: 22px 24px;
        box-shadow: 0 1px 3px rgba(0, 30, 70, 0.06), 0 1px 2px rgba(0, 30, 70, 0.04);
        transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
        scroll-snap-align: start;
        position: relative;
        z-index: 1;
        overflow: hidden;
        border: 1px solid #eef2f7;
        cursor: pointer;
}

.event-card.company {
        grid-row: 1;
        align-self: end;
        height: 145px;
        overflow: hidden;
}

.event-card.company:has(.event-image) {
        height: 330px;
}

.event-card.company:hover {
        background: #f4f8ff;
        border-color: #0039a8;
        box-shadow: 0 4px 14px rgba(0, 57, 168, 0.18);
}

.event-card.context {
        grid-row: 3;
        align-self: start;
        background: #f6fbfd;
        border-color: #dceaf2;
}

.event-card.context:hover {
        background: #e6f4fb;
        border-color: #00a4de;
        box-shadow: 0 4px 14px rgba(0, 164, 222, 0.18);
}

.event-card::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 36px;
        background: linear-gradient(to bottom, transparent, #fff);
        opacity: 0;
        transition: opacity 0.2s ease;
        pointer-events: none;
}

.event-card.context::after {
        background: linear-gradient(to bottom, transparent, #f6fbfd);
}

.event-card.is-clipped::after {
        opacity: 1;
}

.event-image {
        margin: -22px -24px 16px;
        background: #e1eef6;
        overflow: hidden;
        line-height: 0;
}

.event-image img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
        transform: scale(1.04);
}

.event-year {
        font-size: 0.92rem;
        font-weight: 700;
        color: #0039a8;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
}

.event-card.context .event-year {
        color: #00a4de;
}

.event-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #222;
        margin: 0 0 8px;
        line-height: 1.45;
}

.event-text {
        font-size: 0.95rem;
        color: #555;
        margin: 0;
        line-height: 1.65;
}

.timeline-hint {
        text-align: left;
        color: #888;
        font-size: 0.95rem;
        margin: 16px 0 16px 20px;
}

.timeline-hint::after {
        content: ' →';
}

.timeline-progress {
        height: 6px;
        background: #e1eef6;
        border-radius: 3px;
        margin: 4px 16px 12px;
        overflow: hidden;
}

.timeline-progress-bar {
        height: 100%;
        background: #00a4de;
        width: 0%;
        border-radius: 3px;
        transition: width 0.1s ease-out;
}

.next-decade-hint, .prev-decade-hint {
        position: sticky;
        align-self: center;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: #fff;
        border: 2px solid #0039a8;
        border-radius: 999px;
        color: #0039a8;
        font-weight: 700;
        font-size: 0.95rem;
        white-space: nowrap;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 57, 168, 0.12);
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease, background 0.2s ease;
        pointer-events: none;
}

.next-decade-hint {
        right: 70px;
        justify-self: end;
        transform: translateX(20px);
}

.prev-decade-hint {
        left: 70px;
        justify-self: start;
        transform: translateX(-20px);
}

.next-decade-hint .arrow, .prev-decade-hint .arrow {
        font-size: 1.2rem;
        line-height: 1;
}

.timeline-panel.is-at-end .next-decade-hint {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
}

.timeline-panel.is-at-start .prev-decade-hint {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
}

.next-decade-hint:hover, .prev-decade-hint:hover {
        background: #0039a8;
        color: #fff;
}

.event-modal {
        position: fixed;
        inset: 0;
        background: rgba(20, 30, 50, 0.6);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        padding: 20px;
        opacity: 0;
        transition: opacity 0.25s ease;
}

.event-modal.is-open {
        display: flex;
        opacity: 1;
}

.event-modal-content {
        background: #fff;
        border-radius: 12px;
        max-width: 640px;
        width: 100%;
        max-height: 86vh;
        overflow-y: auto;
        position: relative;
        padding: 36px 32px 32px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.event-modal-close {
        position: absolute;
        top: 12px;
        right: 14px;
        background: transparent;
        border: none;
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
        color: #888;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 4px;
        transition: background 0.15s ease, color 0.15s ease;
}

.event-modal-close:hover {
        background: #f1f3f5;
        color: #333;
}

.event-modal-image {
        margin: -36px -32px 24px;
        background: #e1eef6;
        line-height: 0;
        overflow: hidden;
}

.event-modal-image img {
        display: block;
        width: 100%;
        max-height: 360px;
        object-fit: cover;
}

.event-modal-year {
        font-size: 0.95rem;
        font-weight: 700;
        color: #0039a8;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
}

.event-modal[data-kind="context"] .event-modal-year {
        color: #00a4de;
}

.event-modal-title {
        font-size: 1.45rem;
        font-weight: 700;
        color: #222;
        margin: 0 0 14px;
        line-height: 1.45;
}

.event-modal-text {
        font-size: 1rem;
        color: #444;
        line-height: 1.75;
        margin: 0;
        white-space: pre-wrap;
}

.upcoming-section {
        max-width: 1200px;
        margin: 0 auto 120px;
        padding: 0 24px;
}

.upcoming-section-header {
        text-align: center;
        margin-bottom: 56px;
}

.upcoming-section-eyebrow {
        display: inline-block;
        font-size: 0.85rem;
        color: #00a4de;
        letter-spacing: 0.2em;
        font-weight: 700;
        margin-bottom: 12px;
}

.upcoming-section-title {
        font-size: 2rem;
        font-weight: 700;
        color: #0039a8;
        margin: 0 0 16px;
        letter-spacing: 0.05em;
}

.upcoming-section-title::after {
        content: '';
        display: block;
        width: 56px;
        height: 3px;
        background: #00a4de;
        margin: 18px auto 0;
        border-radius: 2px;
}

.feature-card {
        background: #fff;
        border-radius: 18px;
        box-shadow: 0 6px 28px rgba(0, 30, 70, 0.08);
        overflow: hidden;
        margin-bottom: 72px;
        border: 1px solid #eef2f7;
}

.feature-card-hero {
        position: relative;
        background: linear-gradient(135deg, #f6fbfd 0%, #eaf4fb 100%);
        padding: 40px 40px 0;
}

.feature-card-eyebrow {
        display: inline-block;
        background: #0039a8;
        color: #fff;
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        padding: 6px 14px;
        border-radius: 999px;
        margin-bottom: 18px;
}

.feature-card-title {
        font-size: 1.65rem;
        font-weight: 700;
        color: #0039a8;
        line-height: 1.4;
        margin: 0 0 28px;
}

.feature-card-mainimg {
        display: block;
        position: relative;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
        line-height: 0;
}

.feature-card-mainimg img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 8;
        object-fit: cover;
        transition: transform 0.5s ease;
}

.feature-card-mainimg:hover img {
        transform: scale(1.03);
}

.feature-card-caption {
        display: block;
        font-size: 0.82rem;
        color: #666;
        padding: 10px 4px 0;
}

.feature-card-body {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 48px;
        padding: 40px;
}

.feature-block {
        margin-bottom: 28px;
}

.feature-block:last-child {
        margin-bottom: 0;
}

.feature-block h4 {
        font-size: 1.05rem;
        font-weight: 700;
        color: #0039a8;
        margin: 0 0 12px;
        padding-left: 14px;
        position: relative;
}

.feature-block h4::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0.4em;
        width: 4px;
        height: 1em;
        background: #00a4de;
        border-radius: 2px;
}

.feature-block ul {
        list-style: none;
        margin: 0;
        padding: 0;
}

.feature-block li {
        font-size: 0.95rem;
        color: #444;
        line-height: 1.85;
        padding-left: 18px;
        position: relative;
        margin-bottom: 6px;
}

.feature-block li::before {
        content: '';
        position: absolute;
        left: 4px;
        top: 0.75em;
        width: 6px;
        height: 6px;
        background: #00a4de;
        border-radius: 50%;
}

.feature-card-aside {
        align-self: start;
        position: sticky;
        top: 24px;
}

.feature-card-aside img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 10px;
        border: 1px solid #e1eef6;
}

.feature-card-aside .quote {
        display: block;
        font-size: 0.8rem;
        color: #666;
        margin-top: 10px;
        line-height: 1.6;
}

.upcoming-list {
        margin-top: 16px;
}

.upcoming-list-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0039a8;
        text-align: center;
        margin: 0 0 40px;
        position: relative;
        padding-bottom: 14px;
}

.upcoming-list-title::after {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        width: 40px;
        height: 2px;
        background: #00a4de;
        border-radius: 2px;
}

.upcoming-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
}

.upcoming-item {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid #eef2f7;
        box-shadow: 0 3px 14px rgba(0, 30, 70, 0.06);
        display: flex;
        flex-direction: column;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.upcoming-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 30, 70, 0.12);
}

.upcoming-item-image {
        display: block;
        line-height: 0;
        overflow: hidden;
        background: #e1eef6;
}

.upcoming-item-image img {
        display: block;
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        transition: transform 0.5s ease;
}

.upcoming-item:hover .upcoming-item-image img {
        transform: scale(1.05);
}

.upcoming-item-body {
        padding: 22px 24px 24px;
        flex: 1;
        display: flex;
        flex-direction: column;
}

.upcoming-item-title {
        font-size: 1.15rem;
        font-weight: 700;
        color: #0039a8;
        margin: 0 0 14px;
        padding-bottom: 12px;
        border-bottom: 2px solid #e1eef6;
}

.upcoming-item dl {
        display: grid;
        grid-template-columns: 5.5em 1fr;
        gap: 4px 8px;
        margin: 0 0 4px;
        font-size: 0.9rem;
        line-height: 1.55;
}

.upcoming-item dt {
        color: #0039a8;
        font-weight: 600;
}

.upcoming-item dd {
        margin: 0;
        color: #444;
}

.upcoming-item-notes {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed #d8e3ec;
        display: flex;
        flex-direction: column;
        gap: 6px;
}

.upcoming-item-notes span {
        font-size: 0.82rem;
        color: #555;
        line-height: 1.6;
}

@media (max-width: 767px) {
	.history-hero {
            padding: 72px 16px 60px;
	}

	.history-hero h1 {
            font-size: 1.9rem;
            letter-spacing: 0.06em;
	}

	.history-hero .lead {
            font-size: 0.95rem;
            margin-bottom: 20px;
	}

	.history-hero .history-message {
            font-size: 0.88rem;
            line-height: 1.85;
            text-align: left;
	}

	.history-hero .history-message br {
            display: none;
	}

	.history-hero::after {
            bottom: 20px;
            width: 40px;
	}

	.timeline-section {
            padding: 0 12px;
            margin: 36px auto 60px;
	}

	.timeline-tabs {
            padding-bottom: 12px;
	}

	.timeline-tab {
            padding: 14px 22px;
            font-size: 1rem;
	}

	.timeline-grid {
            grid-template-rows: minmax(220px, auto) 72px minmax(220px, auto);
            grid-auto-columns: 290px;
            gap: 14px;
            padding: 16px 8px 24px;
	}

	.event-card {
            padding: 18px 18px;
	}

	.event-image {
            margin: -18px -18px 14px;
	}

	.event-title {
            font-size: 1.05rem;
	}

	.event-text {
            font-size: 0.88rem;
	}

	.event-year {
            font-size: 0.88rem;
	}

	.axis-marker {
            font-size: 1rem;
	}

	.axis-marker::before {
            width: 14px;
            height: 14px;
            border-width: 3px;
	}

	.upcoming-section {
            margin: 0 auto 72px;
            padding: 0 16px;
	}

	.upcoming-section-header {
            margin-bottom: 36px;
	}

	.upcoming-section-title {
            font-size: 1.4rem;
	}

	.feature-card {
            margin-bottom: 48px;
            border-radius: 14px;
	}

	.feature-card-hero {
            padding: 24px 20px 0;
	}

	.feature-card-title {
            font-size: 1.2rem;
            margin-bottom: 20px;
	}

	.feature-card-body {
            grid-template-columns: 1fr;
            gap: 28px;
            padding: 24px 20px;
	}

	.feature-card-aside {
            position: static;
	}

	.upcoming-list-title {
            font-size: 1.2rem;
            margin-bottom: 28px;
	}

	.upcoming-grid {
            grid-template-columns: 1fr;
            gap: 20px;
	}

	.upcoming-item-body {
            padding: 18px 20px 20px;
	}

	.upcoming-item-title {
            font-size: 1.05rem;
	}

}

@media (min-width: 768px) and (max-width: 1023px) {
	.feature-card-body {
            grid-template-columns: 1fr;
	}

	.upcoming-grid {
            grid-template-columns: repeat(2, 1fr);
	}

}
