@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Noto+Sans+JP:wght@400;700&display=swap');

:root {
    --primary-color: #ffffff;
    --secondary-color: #004680;
    --secondary-light: #0056a0;
    --accent-color: #F3E600;
    --shadow-color: #000000;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden;
}

#footer {
    margin-top: 0;
}

/* 汎用クラス */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
    transition:
        opacity 0.9s ease,
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.9s ease;
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* 固有の余白リセット用汎用クラス */
.mt-0 {
    margin-top: 0 !important;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
}

.sub-heading-wrap {
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

.sub-heading-en {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.sub-heading-ja {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 0;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--primary-color) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary:hover {
    background-color: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 70, 128, 0.2);
}

/* SP/PC表示切り替え（デフォルト：PC表示） */
.sp_item {
    display: none !important;
}


/* ハンバーガーメニューのベーススタイル */
.wf-humberger {
    width: 40px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.wf-humberger span {
    display: block;
    height: 3px;
    background-color: var(--secondary-color);
    width: 100%;
    border-radius: 2px;
}

/* 1. ヒーローセクション */

/* --- ヒーローセクション --- */
.hero {
    display: flex;
    min-height: clamp(460px, calc(100svh - 250px), 540px);
    max-height: 560px;
    position: relative;
    overflow: visible;
    background-color: var(--primary-color);
}

.hero-left {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0 128px max(40px, calc((100vw - 1100px) / 2));
    z-index: 2;
}

.hero-right {
    flex: 1;
    position: relative;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    right: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, var(--shadow-color) 40%);
    mask-image: linear-gradient(to right, transparent 0%, var(--shadow-color) 40%);
    background-image: url('/and-do/ir/images/three-minutes/hero_city_view.png');
}

@media (min-width: 993px) {
    .hero {
        overflow: hidden;
    }

    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.94) 34%,
            rgba(255, 255, 255, 0.82) 58%,
            rgba(255, 255, 255, 0.58) 100%
        );
    }

    .hero-left {
        position: relative;
    }

    .hero-right {
        position: absolute;
        inset: 0;
        z-index: 0;
    }

    .hero-bg {
        inset: 0;
        background-position: center center;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero .hero-lead {
        color: #3f5870;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.85);
    }
}

.hero-headline {
    margin-bottom: 30px;
}

.headline-part-1 {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.headline-part-1 .highlight {
    font-size: 7.2rem;
    font-weight: 900;
    line-height: 0.8;
}

.headline-part-1 .hero-text-small {
    font-size: 2.55rem;
    font-weight: 800;
}

.headline-part-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 3.1rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.sp-accent-line {
    width: 40px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero-lead {
    font-size: 1.12rem;
    color: #3f5870;
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 720px;
}

.hero-lead-line {
    display: block;
    overflow-wrap: anywhere;
}

.sp-line-break {
    display: none;
}

.pc-line-break {
    display: block;
}

/* --- コンテンツカード（オーバーラップ） --- */
.contents-nav-wrap {
    position: relative;
    margin-top: -132px;
    z-index: 2;
    padding: 0 20px 48px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.contents-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #94a3b8;
    margin-bottom: 15px;
    font-weight: 700;
    text-transform: uppercase;
    padding-left: 10px;
}

.nav-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.nav-card {
    background: var(--primary-color);
    border-radius: 12px;
    padding: 20px 24px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 128px;
    min-width: 0;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.nav-card > div {
    min-width: 0;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 70, 128, 0.08);
    border-color: #cbd5e1;
}

.nav-card-title {
    color: var(--secondary-color);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.nav-card-sub {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
}

.nav-card-arrow {
    align-self: flex-end;
    color: #3b82f6;
    font-size: 0.8rem;
    transition: var(--transition);
}

.nav-card:hover .nav-card-arrow {
    transform: translateX(3px);
}

.contents-nav-wrap .nav-card.scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
}

.contents-nav-wrap .nav-card.scroll-reveal:hover {
    transform: translateY(-5px);
}

/* スクロールインジケーター */
.scroll-indicator {
    display: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(5px);}
    60% {transform: translateY(3px);}
}

html {
    scroll-behavior: smooth;
}

/* SP専用デバイダー */
.sp-divider {
    display: none;
}

/* SP専用スクロールインジケーター */
.sp-scroll-indicator {
    display: none;
}

/* 2. アバウトセクション */
.about {
    background-color: var(--primary-color);
}

.about .text-center .section-title {
    margin-bottom: 24px;
    margin-top: 10px;
}

.section-lead {
    max-width: 1160px;
    margin: 0 auto;
    color: #334155;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.9;
    text-align: left;
    display: inline-block;
}

.social-impact-lead {
    max-width: 820px;
    margin-top: 20px;
}

.about-image-wrap {
    text-align: center; margin: 40px 0;
}
@media (min-width: 993px) {
    .about-image-wrap img {
        width: 88%;
    }

    .about-image-wrap + .sub-heading-wrap {
        margin-top: 92px;
    }
}

.no-image-placeholder {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: bold;
    border-radius: 8px;
    margin: 30px 0;
    border: 1px dashed #ccc;
    min-height: 300px;
    width: 100%;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 0 60px;
}

.card {
    background: var(--primary-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.about .feature-cards .card {
    padding: 30px 24px 32px;
}

.card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.card-icon img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
}

@media (min-width: 993px) {
    .about .feature-cards .card-icon {
        min-height: 184px;
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about .feature-cards .card-icon img {
        max-width: 176px !important;
        max-height: 176px !important;
        width: auto;
        height: auto;
        display: block;
    }
}

.card-title {
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-cards .card ul {
    list-style-type: disc;
    text-align: left;
    font-size: 0.85rem;
    margin: 15px 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.6;
}
.feature-cards .card ul li:not(:last-child) {
    margin-bottom: 8px;
}

.about .feature-cards .card-title {
    margin-top: 0;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-link {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    margin-top: auto;
}

.card-link i {
    margin-left: 5px;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.card-link:hover {
    color: #002a50;
}

.card-link:hover i {
    transform: translateX(4px);
}

/* セクション間区切り線 */
.vertical-divider {
    width: 1px;
    height: 40px;
    background-color: #dde3ea;
    margin: 60px auto 40px;
}

.grid-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 40px;
    margin-top: 0;
}

.grid-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.grid-icon {
    background: transparent;
    color: --primary-color;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

/* 透過・シャドウ無効化モディファイア */
.grid-icon--transparent {
    background: transparent !important;
    box-shadow: none !important;
}

.about-image-wrap img,
.vision-image-wrap img {
    max-width: 100%;
    height: auto;
}

.grid-content h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

/* 3. 数字で見るセクション */
.stats-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    position: relative;
    padding-bottom: 72px;
}

.key-figures-label {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 5px;
    display: block;
}

.accent-line-yellow {
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 20px;
}

.stats-section .section-title {
    margin-bottom: 42px;
    border-bottom: none;
    padding-bottom: 0;
}

.stats-section .section-title::after {
    display: none;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--primary-color);
    border: 1px solid rgba(0, 70, 128, 0.16);
    padding: 18px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0, 32, 64, 0.12);
    color: var(--secondary-color);
    text-align: left;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    grid-template-rows: auto auto auto 1fr;
    column-gap: 10px;
    min-height: 168px;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    transition: var(--transition);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--accent-color);
}

.stat-card:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 32, 64, 0.16);
}

.stat-top-label {
    font-size: 0.84rem;
    line-height: 1.35;
    min-width: 0;
    opacity: 1;
    margin-bottom: 6px;
    font-weight: 700;
    color: #17324d;
}

.stat-main {
    margin-bottom: 6px;
    min-width: 0;
}

.stat-num {
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1;
    color: var(--secondary-color);
}

.stat-unit {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.stat-sub-detail {
    font-size: 0.72rem;
    line-height: 1.45;
    min-width: 0;
    margin: 0 0 4px;
    font-weight: 700;
    color: #4b5563;
}

.stat-date {
    font-size: 0.68rem;
    line-height: 1.4;
    min-width: 0;
    opacity: 1;
    margin: 10px 0 0;
    color: #66788a;
}

.stat-image-wrap {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 100%;
    height: 92px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 0;
    padding-top: 0;
    align-self: center;
}

.stat-image-wrap img {
    max-width: 100%;
    height: 90px;
    width: auto;
    object-fit: contain;
    opacity: 1;
}

/* スタッツアイコンイラスト（透過背景） */
.stat-icon-illustration {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.stat-icon-illustration i {
    font-size: 2.2rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 4. タイムラインセクション */
.timeline-section {
    background-color: #f8fafc;
    padding: 72px 0;
}

.timeline-section .section-label-history {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 10px;
    display: block;
}

.timeline-section .section-title {
    color: #1e293b;
}

.timeline-section .section-title::after {
    background-color: var(--secondary-color);
}

.timeline {
    position: relative;
    max-width: 1060px;
    margin: 36px auto 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
}

/* 中央の縦線 */
.timeline::before {
    display: none;
}

.timeline-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

/* 左カード配置 */
.timeline-item.pos-left .tl-card-wrap {
    width: auto;
    padding-right: 0;
    grid-column: 2;
    grid-row: 1;
}
.timeline-item.pos-left .tl-center {
    position: relative;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: auto;
    grid-column: 1;
    grid-row: 1;
    min-width: 64px;
    padding-top: 6px;
}
.timeline-item.pos-left {
    justify-content: stretch;
}

/* 右カード配置 */
.timeline-item.pos-right .tl-card-wrap {
    width: auto;
    padding-left: 0;
    margin-left: 0;
    grid-column: 2;
    grid-row: 1;
}
.timeline-item.pos-right .tl-center {
    position: relative;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    top: auto;
    grid-column: 1;
    grid-row: 1;
    min-width: 64px;
    padding-top: 6px;
}
.timeline-item.pos-right {
    justify-content: stretch;
}

.tl-center::after {
    content: '';
    position: absolute;
    top: 28px;
    bottom: 0;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background-color: #dde3ea;
    z-index: 0;
}

/* 中央ドットマーカー */
.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 70, 128, 0.12);
    z-index: 2;
    flex-shrink: 0;
}

/* 年数テキスト */
.tl-year {
    font-size: 0.92rem;
    font-weight: 900;
    color: #1e3a5f;
    margin-top: 6px;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    z-index: 1;
    background-color: #f8fafc;
    padding: 3px 0;
}

/* カード */
.tl-card {
    background: var(--primary-color);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.045);
    border: 1px solid #eef1f5;
    transition: var(--transition);
    height: 100%;
}

.tl-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* タグバッジ */
.tl-tag {
    display: inline-block;
    background-color: #e8f2fc;
    color: #1a5fa8;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 50px;
    margin-bottom: 6px;
    margin-right: 6px;
    letter-spacing: 0.05em;
}

.tl-desc {
    font-size: 0.84rem;
    color: #374151;
    line-height: 1.55;
    margin: 0;
}

.tl-event + .tl-event {
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid #f0f3f7;
}

/* Financial Data セクション */
.financial-data-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 64px 0 80px;
    position: relative;
}

.financial-data-section .section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.financial-data-section .section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.financial-data-section .section-sub {
    font-size: 0.85rem;
    opacity: 0.65;
    margin: 0 auto 40px;
    text-align: center;
}

.financial-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.financial-chart-card {
    min-width: 0;
    background: #F8F9FA;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 18px 36px rgba(0, 24, 52, 0.16);
}

.financial-chart-card-header {
    min-height: 74px;
    margin-bottom: 20px;
}

.chart-card-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: #a0a0a0;
    margin-bottom: 4px;
}

.chart-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.chart-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.chart-card-unit {
    font-size: 0.82rem;
    color: #999999;
    white-space: nowrap;
}

.chart-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
}

.chart-container::-webkit-scrollbar {
    display: none;
}

.chart-container:active {
    cursor: grabbing;
}

.chart-scroll-inner {
    position: relative;
    width: 600px;
    min-width: 100%;
    height: 250px;
    max-width: none;
}

.chart-scroll-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
}

.chart-scroll-arrow {
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #c7cbd1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.chart-scroll-arrow:hover {
    color: #999999;
}

.chart-scroll-track {
    width: 150px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.chart-scroll-thumb {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30%;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: left 0.1s ease, width 0.1s ease;
}

/* 5. ビジョンセクション */
.vision-section {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-align: center;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    overflow: hidden;
}

.vision-message {
    line-height: 1.8;
    max-width: 1160px;
    margin: 28px auto 100px;
    font-weight: 400;
    overflow: hidden;
}

.vision-message-main {
    display: block;
    max-width: 1040px;
    margin: 0 auto;
    white-space: normal;
    font-size: 1.62rem;
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 0;
}

.vision-message-sub {
    display: block;
    margin-top: 14px;
    font-size: 1.35rem;
    line-height: 1.8;
}

.vision-image,
.vision-image-wrap {
    margin: 0 calc(50% - 50vw) 0 !important;
    padding: 0;
    background: var(--primary-color);
    text-align: center;
}

.vision-image img,
.vision-image-wrap img {
    display: block;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin: 0 auto;
}

/* フッターとの余白削除 */
#main_content {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* ================================
   レスポンシブ - タブレット (992px)
   ================================ */

/* ================================
   画像モーダル（ポップアップ表示用）
   ================================ */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal.show {
    opacity: 1;
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.image-modal .close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
    line-height: 1;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 992px) {
    .container { padding: 0 24px; }

    /* ヒーロー */
    .hero { flex-direction: column; min-height: auto; max-height: none; }
    .hero-left { 
        padding: 36px 30px 30px;
        text-align: center;
        order: 2;
        align-items: center;
    }
    .hero-right { 
        order: 1;
        height: 220px;
    }
    .hero-bg { height: 220px; position: relative; }
    .hero-right::before { display: none; }
    .hero-right::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: linear-gradient(to top, var(--primary-color), transparent);
    }
    .hero-lead { margin: 0 auto 24px; }
    .hero-headline { font-size: 2.8rem; }
    .hero-headline span.highlight { font-size: 3.5rem; }

    /* ナビカード */
    .contents-nav-wrap { 
        margin-top: 0; 
        padding: 18px 24px 30px; 
    }
    .nav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* アバウト */
    .feature-cards { grid-template-columns: 1fr 1fr; gap: 20px; margin: 40px 0; }
    .grid-features { grid-template-columns: 1fr; gap: 30px; margin-top: 50px; }

    /* スタッツ */
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .stat-card { min-height: 160px; padding: 18px 16px; }
    .stat-num { font-size: 2.6rem; }

}

/* ================================
   レスポンシブ - スマホ (768px)
   ================================ */
@media (max-width: 768px) {
    /* SP/PC表示切り替え */
    html,
    body,
    #wraper,
    .ir_wraper,
    #main_content {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden;
    }

    .sp_item {
        display: block !important;
    }


    .container { padding: 0 16px; }
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.6rem; margin-bottom: 30px; }

    /* ===== ヒーロー ===== */
    .hero { 
        min-height: auto;
        max-height: none;
        padding: 22px 18px 28px;
        background-image: url('/and-do/ir/images/three-minutes/hero_city_view.png');
        background-size: cover;
        background-position: center;
        position: relative;
        display: block;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.9) 54%, rgba(255, 255, 255, 0.78) 100%);
        z-index: 1;
    }
    .hero-left { 
        padding: 0;
        text-align: left;
        align-items: flex-start;
        width: 100%;
        max-width: calc(100vw - 36px);
        position: relative;
        z-index: 2;
        margin: 0;
    }
    .hero-right { display: none; }
    
    .headline-part-1 {
        display: flex;
        align-items: baseline;
        gap: 6px;
        color: #003f73;
        margin-bottom: 6px;
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.85);
    }
    .headline-part-1 .highlight {
        font-size: 4.4rem;
        font-weight: 900;
        line-height: 1;
    }
    .headline-part-1 .hero-text-small {
        font-size: 1.65rem;
        font-weight: 900;
    }

    .headline-part-2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.72rem;
        color: #003f73;
        font-weight: 900;
        margin-bottom: 18px;
        text-shadow: 0 2px 8px rgba(255, 255, 255, 0.85);
    }
    .sp-accent-line {
        width: 28px;
        height: 3px;
        background-color: var(--accent-color);
        border-radius: 2px;
        flex-shrink: 0;
    }
    
    .hero-headline { 
        font-size: 1.8rem; 
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .hero-lead { 
        font-size: 1rem; 
        line-height: 1.65; 
        color: #17324d;
        font-weight: 800;
        margin: 0; 
        text-align: left; 
        width: 100%;
        max-width: calc(100vw - 36px);
        white-space: normal;
        word-break: break-all;
        text-shadow: 0 1px 0 rgba(255, 255, 255, 0.95);
    }

    .hero-lead-line {
        white-space: normal;
        word-break: break-all;
    }

    .sp-line-break {
        display: block;
    }

    .pc-line-break {
        display: none;
    }
    
    .btn-primary { 
        width: fit-content; 
        padding: 14px 28px; 
        justify-content: center;
        background-color: var(--secondary-color);
        box-shadow: 0 8px 20px rgba(0, 70, 128, 0.25);
        border-radius: 50px;
        font-size: 0.9rem;
    }

    /* ===== デバイダー ===== */
    .sp-divider {
        display: block;
        width: 100%;
        height: 1px;
        background-color: #f1f5f9;
        margin: 0;
    }

    /* ===== コンテンツカード ===== */
    .contents-nav-wrap { 
        margin-top: 0; 
        padding: 18px 16px 0; 
        position: relative; 
        z-index: 2;
        background-color: var(--primary-color);
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
    .contents-label { 
        color: #94a3b8; 
        letter-spacing: 0.3em; 
        font-size: 0.7rem; 
        margin-bottom: 10px;
        text-align: left;
    }
    .nav-cards { 
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px; 
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
    .nav-card { 
        min-height: 86px; 
        padding: 12px; 
        flex-direction: column; 
        align-items: flex-start; 
        justify-content: space-between;
        border-radius: 8px; 
        border: 1px solid #f1f5f9;
        box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    }
    .nav-card-title { 
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1.35;
        margin-bottom: 4px; 
        text-align: left; 
    }
    .nav-card-sub { 
        font-size: 0.65rem;
        opacity: 0.7;
    }
    .nav-card-arrow { 
        font-size: 0.7rem; 
        align-self: flex-end; 
        margin-top: auto;
    }

    /* スクロールインジケーター（スマホ版） */
    .sp-scroll-indicator {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: 21px;
        padding-bottom: 6px;
    }
    .sp-scroll-text {
        font-size: 0.55rem;
        color: #94a3b8;
        letter-spacing: 0.4em;
        font-weight: 700;
    }
    .sp-scroll-icon {
        font-size: 0.85rem;
        color: #94a3b8;
        animation: bounce 2s infinite;
    }

    /* ===== アバウト ===== */
    .section-lead {
        max-width: 620px;
    }

    .about-intro {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .social-impact-lead {
        font-size: 0.95rem;
        line-height: 1.75;
    }
    .no-image-placeholder { min-height: 180px; margin: 20px 0; }
    .feature-cards { grid-template-columns: 1fr; gap: 14px; margin: 30px 0; }
    .card { padding: 24px 20px; border-radius: 14px; }
    .card-icon { font-size: 2rem; margin-bottom: 14px; }
    .card-title { font-size: 1rem; margin-bottom: 10px; }
    .card-text { font-size: 0.85rem; line-height: 1.6; }

    .grid-features { grid-template-columns: 1fr; gap: 24px; margin-top: 40px; }
    .grid-icon { width: 48px; height: 48px; font-size: 1.2rem; }
    .grid-content h4 { font-size: 0.95rem; }
    .grid-content p { font-size: 0.85rem; line-height: 1.6; }

    /* ===== スタッツ ===== */
    .stats-section .section-title { margin-bottom: 30px; font-size: 1.5rem; }
    .key-figures-label { font-size: 0.7rem; letter-spacing: 0.3em; }
    .stat-grid { grid-template-columns: 1fr; gap: 12px; }
    .stat-card { 
        min-height: 138px; 
        padding: 16px 14px;
        border-radius: 8px;
        grid-template-columns: minmax(0, 1fr) 64px;
        grid-template-rows: repeat(4, auto);
        column-gap: 8px;
        row-gap: 1px;
        align-items: center;
        align-content: center;
        text-align: left;
    }
    .stat-main {
        justify-content: flex-start;
    }
    .stat-top-label { font-size: 0.78rem; margin-bottom: 5px; }
    .stat-num { font-size: 2.1rem; }
    .stat-unit { font-size: 0.84rem; }
    .stat-sub-detail { font-size: 0.68rem; }
    .stat-image-wrap { 
        grid-row: 1 / -1;
        height: 64px; 
        margin: 0; 
        padding-top: 0; 
        width: 100%;
        justify-content: flex-end;
        align-self: center;
    }
    .stat-image-wrap img { max-width: 64px; max-height: 58px; }
    .stat-icon-illustration { width: 60px; height: 60px; }
    .stat-icon-illustration i { font-size: 1.6rem; }

    /* ===== 売上高・経常利益チャート ===== */
    .financial-data-section { padding: 50px 0 44px; }
    .financial-data-section .section-heading { font-size: 1.4rem; margin-bottom: 6px; }
    .financial-data-section .section-sub { font-size: 0.7rem; margin-bottom: 20px; }
    .financial-chart-grid { grid-template-columns: 1fr; gap: 24px; }
    .financial-chart-card {
        padding: 24px 16px;
        border-radius: 16px;
    }
    .financial-chart-card-header {
        min-height: 0;
        margin-bottom: 14px;
    }
    .chart-card-label { font-size: 0.66rem; letter-spacing: 0.24em; }
    .chart-card-title { font-size: 1.05rem; }
    .chart-card-unit { font-size: 0.74rem; }
    .chart-scroll-inner {
        width: 560px;
        min-width: 560px;
        height: 290px;
    }

    /* ===== タイムライン ===== */
    .timeline-section { padding: 44px 0; }
    .timeline-section .section-title { margin-bottom: 18px; }
    .timeline { 
        grid-template-columns: 1fr;
        gap: 7px;
        margin: 14px auto 0; 
        padding: 0; 
    }
    .timeline::before { display: none; }
    .timeline-item { 
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 7px;
        margin-bottom: 0; 
    }
    
    /* SP版: すべてのタイムラインアイテムを左ドット＋右カードに統一 */
    .timeline-item.pos-left,
    .timeline-item.pos-right {
        justify-content: stretch;
    }
    .timeline-item.pos-left .tl-center,
    .timeline-item.pos-right .tl-center {
        position: relative;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: center;
        min-width: 46px;
        flex-shrink: 0;
        grid-column: 1;
        padding-top: 4px;
    }
    .timeline-item.pos-left .tl-card-wrap,
    .timeline-item.pos-right .tl-card-wrap {
        width: auto;
        flex: 1;
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        grid-column: 2;
    }
    .tl-center::after { top: 22px; }
    .tl-card { padding: 8px 10px; border-radius: 8px; }
    .tl-dot { width: 10px; height: 10px; border-width: 2px; }
    .tl-year { font-size: 0.7rem; margin-top: 4px; }
    .tl-event {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 6px;
        align-items: baseline;
    }
    .tl-tag { font-size: 0.55rem; padding: 2px 7px; margin: 0; }
    .tl-desc { font-size: 0.72rem; line-height: 1.38; }
    .tl-event + .tl-event { margin-top: 5px; padding-top: 5px; }

    /* ===== ビジョン ===== */
    .vision-section { 
        padding: 50px 0 0 !important;
        margin-bottom: 0 !important;
    }
    .vision-section .section-title { font-size: 1.4rem; }
    .vision-message { 
        font-size: 1.1rem; 
        line-height: 1.7; 
        margin: 24px auto 50px; 
        padding: 0 10px; 
        overflow: visible;
    }
    .vision-message-main {
        width: auto;
        margin: 0 auto;
        white-space: normal;
        font-size: 1.18rem;
        line-height: 1.6;
        transform: none;
    }
    .vision-message-sub {
        margin-top: 16px;
        font-size: 0.92rem;
        line-height: 1.7;
    }
    .vision-section .no-image-placeholder { 
        min-height: 160px; 
        margin-top: 40px !important; 
    }

    .vision-image,
    .vision-image-wrap {
        margin-top: 0 !important;
        margin-bottom: -1px !important;
        padding: 0;
        background: var(--primary-color);
    }

}

/* ================================
   レスポンシブ - 小さいスマホ (480px)
   ================================ */ 
@media (max-width: 480px) {
   /* 画像モーダルスマホ対応 */
    .image-modal .modal-content {
        width: 95%;
    }

    .image-modal .close-modal {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .container { padding: 0 14px; }
    .section-padding { padding: 48px 0; }
    .section-title { font-size: 1.35rem; margin-bottom: 24px; }

    /* ヒーロー */
    .hero { padding: 18px 16px 24px; min-height: auto; }
    .hero-headline { font-size: 1.55rem; margin-bottom: 12px; }
    .headline-part-1 .highlight { font-size: 3.8rem; }
    .headline-part-1 .hero-text-small { font-size: 1.35rem; }
    .headline-part-2 { font-size: 1.32rem; gap: 8px; margin-bottom: 12px; }
    .hero-lead { font-size: 0.94rem; margin-bottom: 0; }
    .btn-primary { padding: 12px 24px; font-size: 0.85rem; }

    /* ナビカード */
    .nav-cards { gap: 8px; }
    .nav-card { min-height: 82px; padding: 11px; }
    .nav-card-title { font-size: 0.74rem; }

    /* スタッツ */
    .stat-num { font-size: 2rem; }
    .stat-unit { font-size: 0.82rem; }
    .stat-card { padding: 14px 12px; }

    /* チャート */
    .financial-data-section .section-heading { font-size: 1.2rem; }
    .chart-scroll-inner {
        min-width: 560px;
        height: 300px;
    }

    .chart-container canvas { min-width: 0; height: 100% !important; }

    /* タイムライン */
    .timeline { gap: 6px; }
    .timeline-item.pos-left .tl-center,
    .timeline-item.pos-right .tl-center { min-width: 42px; }
    .timeline-item { grid-template-columns: 42px minmax(0, 1fr); gap: 6px; }
    .tl-card { padding: 7px 9px; }
    .tl-desc { font-size: 0.68rem; line-height: 1.34; }
    .tl-year { font-size: 0.66rem; }
    .tl-tag { font-size: 0.52rem; padding: 2px 6px; }

    /* ビジョン */
    .vision-message { font-size: 0.95rem; line-height: 1.65; padding: 0 8px; }
    .vision-message-main {
        width: auto;
        margin: 0 auto;
        font-size: 1.08rem;
        transform: none;
    }
    .vision-message-sub { font-size: 0.86rem; }
}

/* ================================
   レスポンシブ - 超小型 (360px)
   ================================ */
@media (max-width: 360px) {
    .hero { padding: 16px 12px 22px; }
    .headline-part-1 .highlight { font-size: 3.3rem; }
    .headline-part-1 .hero-text-small { font-size: 1.16rem; }
    .headline-part-2 { font-size: 1.12rem; }
    .hero-lead { font-size: 0.88rem; }
    .section-title { font-size: 1.2rem; }
    .nav-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .nav-card { min-height: 78px; padding: 10px; }
    .nav-card-title { font-size: 0.68rem; line-height: 1.32; }
    .stat-num { font-size: 1.8rem; }
    .vision-message { font-size: 0.88rem; }
    .vision-message-main {
        width: auto;
        margin: 0 auto;
        font-size: 1rem;
        transform: none;
    }
}

/* Balance refinements requested for business, impact, stats, and history */
.grid-icon {
    width: 96px;
    height: 96px;
}

.grid-icon img {
    display: block;
    width: auto;
    height: auto;
    max-width: 96px !important;
    max-height: 96px !important;
    object-fit: contain;
    transform: scale(1.12);
    transform-origin: center;
}

@media (max-width: 768px) {
    .about .feature-cards .card {
        padding: 28px 22px;
    }

    .about .feature-cards .card-icon {
        min-height: 224px;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .about .feature-cards .card-icon img {
        display: block;
        width: min(62vw, 220px) !important;
        height: auto;
        max-width: 220px !important;
        max-height: 220px !important;
        object-fit: contain;
    }

    .grid-features {
        gap: 18px;
    }

    .grid-item {
        align-items: center;
        gap: 18px;
        padding: 16px 14px;
        background: var(--primary-color);
        border: 1px solid #e5edf5;
        border-radius: 10px;
        box-shadow: 0 8px 22px rgba(0, 32, 64, 0.05);
    }

    .grid-icon {
        width: 92px;
        height: 92px;
    }

    .grid-icon img {
        max-width: 92px !important;
        max-height: 92px !important;
    }

    .stat-grid {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-card {
        min-height: 148px;
        padding: 18px 20px 18px 24px;
        grid-template-columns: minmax(0, 220px) 92px;
        grid-template-rows: repeat(4, auto);
        column-gap: 16px;
        row-gap: 1px;
        justify-content: center;
        align-items: center;
        align-content: center;
    }

    .stat-main {
        margin-bottom: 8px;
    }

    .stat-image-wrap {
        height: 86px;
        justify-content: center;
    }

    .stat-image-wrap img {
        max-width: 90px;
        max-height: 80px;
    }
}

@media (max-width: 480px) {
    .about .feature-cards .card-icon {
        min-height: 224px;
    }

    .about .feature-cards .card-icon img {
        width: min(62vw, 220px) !important;
        max-width: 220px !important;
        max-height: 220px !important;
    }

    .grid-item {
        gap: 16px;
        padding: 15px 12px;
    }

    .grid-icon {
        width: 86px;
        height: 86px;
    }

    .grid-icon img {
        max-width: 86px !important;
        max-height: 86px !important;
    }

    .stat-card {
        min-height: 142px;
        padding: 16px 14px 16px 18px;
        grid-template-columns: minmax(0, 190px) 82px;
        column-gap: 12px;
    }

    .stat-image-wrap {
        height: 78px;
    }

    .stat-image-wrap img {
        max-width: 82px;
        max-height: 74px;
    }
}

@media (max-width: 360px) {
    .about .feature-cards .card-icon {
        min-height: 202px;
    }

    .about .feature-cards .card-icon img {
        width: min(60vw, 196px) !important;
        max-width: 196px !important;
        max-height: 196px !important;
    }

    .grid-icon {
        width: 78px;
        height: 78px;
    }

    .grid-icon img {
        max-width: 78px !important;
        max-height: 78px !important;
    }

    .stat-card {
        grid-template-columns: minmax(0, 174px) 76px;
        column-gap: 10px;
    }

    .stat-image-wrap img {
        max-width: 76px;
        max-height: 68px;
    }
}

@media (min-width: 769px) {
    .timeline {
        max-width: 960px;
        margin: 44px auto 0;
        padding: 10px 0 4px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .timeline::before {
        content: '';
        display: block;
        position: absolute;
        top: 28px;
        bottom: 24px;
        left: 135px;
        width: 2px;
        border-radius: 2px;
        background: linear-gradient(180deg, rgba(0, 70, 128, 0.2), rgba(0, 70, 128, 0.08));
    }

    .timeline-item,
    .timeline-item.pos-left,
    .timeline-item.pos-right {
        display: grid;
        grid-template-columns: 148px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
        justify-content: stretch;
        margin-bottom: 0;
    }

    .timeline-item.pos-left .tl-center,
    .timeline-item.pos-right .tl-center {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        min-width: 0;
        padding-top: 0;
        display: grid;
        grid-template-columns: minmax(88px, 110px) 26px;
        gap: 12px;
        align-items: start;
        z-index: 1;
    }

    .timeline-item.pos-left .tl-card-wrap,
    .timeline-item.pos-right .tl-card-wrap {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        padding: 0;
        margin: 0;
    }

    .tl-center::after {
        display: none;
    }

    .tl-dot {
        grid-column: 2;
        grid-row: 1;
        width: 16px;
        height: 16px;
        margin-top: 10px;
        border-width: 3px;
        background-color: var(--secondary-color);
        box-shadow: 0 0 0 6px #f8fafc, 0 0 0 8px rgba(0, 70, 128, 0.12);
    }

    .tl-year {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0;
        background: transparent;
        color: var(--secondary-color);
        font-size: 2.05rem;
        line-height: 1;
        text-align: right;
        letter-spacing: 0;
    }

    .tl-card {
        padding: 22px 26px;
        border-radius: 8px;
        border: 1px solid #e7edf4;
        border-left: 5px solid var(--accent-color);
        box-shadow: 0 12px 28px rgba(0, 32, 64, 0.08);
    }

    .tl-event {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .tl-event + .tl-event {
        margin-top: 14px;
        padding-top: 14px;
    }

    .tl-tag {
        min-width: 72px;
        margin: 2px 0 0;
        text-align: center;
    }

    .tl-desc {
        font-size: 0.95rem;
        line-height: 1.8;
    }
}

.history-tabs {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    background: var(--primary-color);
    border: 1px solid #dbe5ef;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 32, 64, 0.08);
}

.history-tab {
    min-height: 62px;
    padding: 12px 16px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #17446f;
    font: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.2;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.history-tab span {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.history-tab.is-active {
    background: var(--secondary-color);
    color: var(--primary-color);
    box-shadow: 0 8px 18px rgba(0, 70, 128, 0.22);
}

.history-tab.is-active span {
    color: var(--accent-color);
}

.history-tab:focus-visible {
    outline: 3px solid rgba(243, 230, 0, 0.75);
    outline-offset: 2px;
}

.history-tabs + .timeline {
    margin-top: 30px;
}

.timeline-item[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .history-tabs {
        margin-top: 22px;
        padding: 4px;
        gap: 4px;
        border-radius: 8px;
    }

    .history-tab {
        min-height: 58px;
        padding: 10px 8px;
        flex-direction: column;
        gap: 3px;
        font-size: 0.92rem;
    }

    .history-tab span {
        font-size: 0.62rem;
    }

    .history-tabs + .timeline {
        margin-top: 18px;
    }
}

@media (max-width: 360px) {
    .history-tab {
        font-size: 0.82rem;
    }

    .history-tab span {
        font-size: 0.56rem;
    }
}
