:root {
    --tuds-bg: #f5f8fb;
    --tuds-surface: #ffffff;
    --tuds-surface-soft: rgba(255,255,255,.78);
    --tuds-text: #102033;
    --tuds-muted: #5d6b7a;
    --tuds-line: rgba(24, 54, 85, .12);
    --tuds-primary: #0d6efd;
    --tuds-primary-dark: #074db5;
    --tuds-accent: #12b981;
    --tuds-soft-blue: #e8f1ff;
    --tuds-shadow: 0 20px 60px rgba(20, 43, 76, .12);
    --tuds-radius-xl: 28px;
    --tuds-radius-lg: 20px;
    --tuds-radius-md: 14px;
}

body.tuds-map-front .site-content .ast-container,
body.tuds-map-front .ast-container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

body.tuds-map-front .entry-header,
body.tuds-map-front .page-header,
body.tuds-map-front .ast-archive-description,
body.tuds-map-front .comments-area {
    display: none !important;
}

.tuds-front {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #f5f8fb 100%);
    color: var(--tuds-text);
    overflow: hidden;
}

.tuds-front a {
    text-decoration: none;
}

.tuds-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.tuds-eyebrow {
    margin: 0 0 10px;
    color: var(--tuds-primary);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 12px;
}

.tuds-hero {
    position: relative;
    padding: clamp(56px, 7vw, 96px) 0 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(18,185,129,.18) 0, rgba(18,185,129,0) 28%),
        radial-gradient(circle at 85% 15%, rgba(13,110,253,.20) 0, rgba(13,110,253,0) 34%),
        linear-gradient(135deg, #ffffff 0%, #edf6ff 100%);
}

.tuds-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -130px -10%;
    height: 220px;
    background: #ffffff;
    transform: rotate(-2deg);
    transform-origin: center;
}

.tuds-hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}

.tuds-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 64px);
    line-height: 1.08;
    letter-spacing: -.04em;
    color: #0c1f35;
}

.tuds-hero__lead {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--tuds-muted);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.9;
}

.tuds-hero__actions,
.tuds-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tuds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.tuds-btn:hover {
    transform: translateY(-2px);
}

.tuds-btn--primary {
    background: linear-gradient(135deg, var(--tuds-primary), var(--tuds-primary-dark));
    color: #fff !important;
    box-shadow: 0 14px 30px rgba(13,110,253,.28);
}

.tuds-btn--ghost {
    background: rgba(255,255,255,.74);
    color: var(--tuds-primary-dark) !important;
    border: 1px solid rgba(13,110,253,.18);
}

.tuds-hero__panel {
    padding: 26px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: var(--tuds-radius-xl);
    background: rgba(255,255,255,.78);
    box-shadow: var(--tuds-shadow);
    backdrop-filter: blur(16px);
}

.tuds-panel__label {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--tuds-muted);
    font-weight: 800;
    font-size: 13px;
}

.tuds-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--tuds-line);
}

.tuds-search input[type="search"] {
    width: 100%;
    border: 0;
    background: transparent;
    min-height: 48px;
    padding: 0 10px;
    color: var(--tuds-text);
    outline: none;
}

.tuds-search button {
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    background: var(--tuds-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.tuds-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tuds-quick-links a {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--tuds-soft-blue);
    color: var(--tuds-primary-dark);
    font-weight: 700;
    font-size: 13px;
}

.tuds-stats {
    position: relative;
    z-index: 2;
    padding: 0 0 34px;
}

.tuds-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tuds-stat-card {
    padding: 22px 24px;
    border-radius: var(--tuds-radius-lg);
    background: var(--tuds-surface);
    border: 1px solid var(--tuds-line);
    box-shadow: 0 12px 36px rgba(22, 44, 79, .07);
}

.tuds-stat-card strong {
    display: block;
    font-size: clamp(24px, 3vw, 34px);
    color: var(--tuds-primary-dark);
    line-height: 1;
}

.tuds-stat-card span {
    display: block;
    margin-top: 8px;
    color: var(--tuds-muted);
    font-weight: 700;
}

.tuds-section {
    padding: clamp(54px, 7vw, 92px) 0;
}

.tuds-section__head {
    max-width: 820px;
    margin-bottom: 28px;
}

.tuds-section__head--row {
    max-width: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.tuds-section h2 {
    margin: 0;
    color: #102033;
    font-size: clamp(28px, 3.2vw, 42px);
    letter-spacing: -.03em;
    line-height: 1.18;
}

.tuds-section__head p:not(.tuds-eyebrow) {
    margin: 12px 0 0;
    color: var(--tuds-muted);
    line-height: 1.8;
}

.tuds-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: start;
}

.tuds-map-card,
.tuds-region-panel,
.tuds-post-card,
.tuds-cta__box {
    border: 1px solid var(--tuds-line);
    background: rgba(255,255,255,.92);
    box-shadow: var(--tuds-shadow);
}

.tuds-map-card {
    padding: clamp(16px, 2vw, 28px);
    border-radius: var(--tuds-radius-xl);
}

.tuds-map-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--tuds-muted);
    font-weight: 800;
}

.tuds-map-reset {
    border: 1px solid var(--tuds-line);
    border-radius: 999px;
    background: #fff;
    color: var(--tuds-primary-dark);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.tuds-japan-map {
    display: grid;
    grid-template-columns: repeat(7, minmax(68px, 1fr));
    gap: 8px;
    padding: 18px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(232,241,255,.72), rgba(255,255,255,.8)),
        repeating-linear-gradient(45deg, rgba(13,110,253,.035) 0 8px, rgba(18,185,129,.035) 8px 16px);
    overflow-x: auto;
}

.tuds-map-cell {
    min-height: 44px;
    border-radius: 14px;
}

.tuds-map-cell--empty {
    opacity: 0;
    pointer-events: none;
}

.tuds-map-cell--pref {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: #fff;
    color: #17324d;
    border: 1px solid rgba(13,110,253,.12);
    box-shadow: 0 10px 18px rgba(22,44,79,.055);
    font-weight: 800;
    font-size: 14px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tuds-map-cell--pref small {
    color: var(--tuds-primary);
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.tuds-map-cell--pref:hover,
.tuds-map-cell--pref.is-active {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #0d6efd, #12b981);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 30px rgba(13,110,253,.24);
}

.tuds-map-cell--pref:hover small,
.tuds-map-cell--pref.is-active small {
    color: #fff;
}

.tuds-map-note {
    margin: 14px 4px 0;
    color: var(--tuds-muted);
    font-size: 13px;
}

.tuds-region-panel {
    position: sticky;
    top: 24px;
    padding: 24px;
    border-radius: var(--tuds-radius-xl);
}

.tuds-region-panel h3 {
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--tuds-text);
}

.tuds-region-list {
    display: grid;
    gap: 10px;
}

.tuds-region {
    border-radius: 16px;
    border: 1px solid var(--tuds-line);
    background: #fff;
    overflow: hidden;
}

.tuds-region summary {
    cursor: pointer;
    padding: 13px 15px;
    font-weight: 900;
    color: var(--tuds-primary-dark);
}

.tuds-region__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
}

.tuds-region__links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4f7fb;
    color: var(--tuds-text);
    font-weight: 700;
    font-size: 13px;
}

.tuds-region__links a:hover,
.tuds-region__links a.is-active {
    background: var(--tuds-primary);
    color: #fff;
}

.tuds-departments {
    background: #fff;
}

.tuds-text-link {
    color: var(--tuds-primary-dark);
    font-weight: 900;
}

.tuds-dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tuds-dept-card {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--tuds-line);
    background: linear-gradient(180deg, #fff, #f7fbff);
    color: var(--tuds-text);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.tuds-dept-card span {
    font-size: 17px;
    font-weight: 900;
}

.tuds-dept-card small {
    margin-top: 6px;
    color: var(--tuds-muted);
    font-weight: 700;
}

.tuds-dept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13,110,253,.32);
    box-shadow: 0 16px 38px rgba(22,44,79,.10);
}

.tuds-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tuds-post-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px;
    border-radius: var(--tuds-radius-lg);
}

.tuds-post-card__title {
    color: var(--tuds-text);
    font-size: 18px;
    line-height: 1.5;
    font-weight: 900;
}

.tuds-post-card p {
    margin: 12px 0 0;
    color: var(--tuds-muted);
    line-height: 1.75;
    font-size: 14px;
}

.tuds-post-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--tuds-muted);
    font-size: 13px;
    font-weight: 800;
}

.tuds-post-card__meta a {
    color: var(--tuds-primary-dark);
}

.tuds-empty {
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--tuds-line);
}

.tuds-cta {
    padding: 20px 0 72px;
}

.tuds-cta__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: clamp(28px, 4vw, 46px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 10% 10%, rgba(18,185,129,.15), transparent 32%),
        linear-gradient(135deg, #ffffff, #eef6ff);
}

.tuds-cta h2 {
    margin: 0;
    font-size: clamp(25px, 3vw, 38px);
}

.tuds-cta p:not(.tuds-eyebrow) {
    margin: 12px 0 0;
    color: var(--tuds-muted);
    line-height: 1.8;
}

@media (max-width: 1080px) {
    .tuds-hero__grid,
    .tuds-map-layout,
    .tuds-cta__box {
        grid-template-columns: 1fr;
    }

    .tuds-region-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .tuds-shell {
        width: min(100% - 24px, 1180px);
    }

    .tuds-hero {
        padding-top: 42px;
    }

    .tuds-hero__panel {
        padding: 18px;
    }

    .tuds-search {
        grid-template-columns: 1fr;
    }

    .tuds-search button {
        min-height: 46px;
    }

    .tuds-stats__grid,
    .tuds-dept-grid,
    .tuds-latest-grid {
        grid-template-columns: 1fr;
    }

    .tuds-section__head--row {
        align-items: flex-start;
        flex-direction: column;
    }

    .tuds-japan-map {
        grid-template-columns: repeat(7, 64px);
        padding: 12px;
        gap: 7px;
    }

    .tuds-map-cell {
        min-height: 42px;
        border-radius: 12px;
    }

    .tuds-map-cell--pref {
        font-size: 13px;
    }

    .tuds-cta__actions,
    .tuds-hero__actions {
        flex-direction: column;
    }

    .tuds-btn {
        width: 100%;
    }
}
