:root {

    --yellow: #FFD84D;
    --blue: #8DD8F8;
    --orange: #FF9B54;
    --red: #E85B5B;

    --green: #7DBB9E;

    --bg: #FFFDF7;
    --white: #FFFFFF;

    --text: #26343D;
    --text-sub: #68757C;

    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;

    --shadow:
        0 8px 30px rgba(38, 52, 61, 0.07);

}


/* RESET
--------------------------------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);

    color: var(--text);

    font-family:
        "Noto Sans JP",
        sans-serif;

    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}


/* HEADER
--------------------------------- */

.site-header {

    height: 72px;

    padding:
        10px 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: var(--white);
}

.site-logo {

    display: flex;
    flex-direction: column;
}

.logo-main {

    font-size: 15px;

    font-weight: 800;

    letter-spacing: .04em;
}

.logo-jp {

    margin-top: -2px;

    font-size: 10px;

    color: var(--text-sub);
}

.language {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 12px;

    font-weight: 700;
}

.language-active {

    padding:
        5px 10px;

    border-radius: 999px;

    background: var(--blue);
}


/* HERO
--------------------------------- */

.hero {

    padding:
        65px 22px 60px;

    background: var(--yellow);
}

.hero-inner {

    max-width: 600px;

    margin: 0 auto;
}

.hero-label {

    margin: 0 0 25px;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: .08em;
}

.hero h1 {

    margin: 0;

    font-size:
        clamp(38px, 11vw, 60px);

    line-height: 1.3;

    letter-spacing: .02em;
}

.hero-en {

    margin:
        8px 0 30px;

    font-size: 17px;

    font-weight: 700;
}

.hero-description {

    margin: 0;

    font-size: 16px;

    font-weight: 600;
}

.hero-description-en {

    margin:
        4px 0 30px;

    font-size: 13px;

    line-height: 1.5;

    color: #47555D;
}


/* CURRENT LOCATION BUTTON
--------------------------------- */

.location-button {

    min-height: 66px;

    padding:
        12px 22px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--text);

    color: var(--white);

    box-shadow: var(--shadow);
}

.location-button-jp {

    font-size: 18px;

    font-weight: 800;
}

.location-button-en {

    margin-top: 1px;

    font-size: 12px;

    font-weight: 600;

    opacity: .85;
}


/* COMMON
--------------------------------- */

.section-inner {

    width:
        min(100% - 40px, 1100px);

    margin: 0 auto;
}

section h2 {

    margin: 0;

    font-size: 27px;

    line-height: 1.4;
}

.section-title-en {

    margin:
        2px 0 30px;

    font-size: 14px;

    font-weight: 600;

    color: var(--text-sub);
}


/* CATEGORIES
--------------------------------- */

.categories {

    padding:
        60px 0;
}

.category-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;
}

.category-card {

    min-height: 150px;

    padding: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius:
        var(--radius-md);

    background: var(--white);

    color: var(--text);

    box-shadow: var(--shadow);

    cursor: pointer;
}

.category-icon {
    width: 56px;
    height: 56px;

    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}

.category-jp {

    font-size: 16px;

    font-weight: 800;
}

.category-card[data-category="support"] .category-jp {
    font-size: 14px;
    letter-spacing: -0.05em;
    white-space: nowrap;
}

.category-en {

    margin-top: 2px;

    font-size: 12px;

    font-weight: 600;

    color: var(--text-sub);
}


/* MAP
--------------------------------- */

.map-placeholder {

    min-height: 430px;

    padding: 30px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-radius:
        var(--radius-lg);

    background: #E8F6FC;

    text-align: center;
}

.map-placeholder p {

    margin: 0;

    font-size: 45px;
}

.map-placeholder strong {

    margin-top: 5px;

    font-size: 22px;
}

.map-placeholder span {

    margin-top: 5px;

    font-size: 13px;

    color: var(--text-sub);
}


/* FOOTER
--------------------------------- */

.site-footer {

    padding:
        50px 22px;

    background: var(--text);

    color: var(--white);
}

.footer-inner {

    max-width: 1100px;

    margin: 0 auto;
}

.footer-logo {

    margin: 0;

    font-size: 18px;

    font-weight: 800;
}

.footer-en {
    font-size: 12px;
    opacity: .75;
}

.footer-note {
    margin-top: 30px;
    padding-top: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

    font-size: 13px;
    font-weight: 700;

    opacity: 1;
}

.footer-note-en {
    margin-top: 4px;

    font-size: 11px;
    line-height: 1.6;

    opacity: .7;
}

.copyright {

    margin-top: 30px;

    font-size: 11px;

    opacity: .6;
}


/* ========================================
   MAP
======================================== */

.map-section {
    padding: 30px 0 80px;
}


.map-wrapper {
    position: relative;

    width: 100%;

    overflow: hidden;

    border-radius: 24px;

    background: var(--blue);

    box-shadow: var(--shadow);
}


#yamato-map {
    width: 100%;
    height: 460px;
}


/* 現在地ボタン
---------------------------------------- */

.map-location-button {
    position: absolute;

    left: 50%;
    bottom: 20px;

    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 360px;

    min-height: 64px;

    padding: 10px 20px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: none;

    border-radius: 18px;

    background: var(--yellow);

    color: var(--text);

    box-shadow:
        0 8px 24px rgba(38, 52, 61, 0.20);

    cursor: pointer;

    z-index: 10;
}


.map-location-jp {
    font-size: 17px;
    font-weight: 800;
}


.map-location-en {
    margin-top: 1px;

    font-size: 12px;
    font-weight: 600;

    color: #45545c;
}

/* ========================================
   MAP INFO CARD
======================================== */
.map-info-card {
    width: 180px;
    max-width: 100%;

    padding: 6px 4px 8px;

    color: var(--text);

    font-family:
        "Noto Sans JP",
        sans-serif;

    overflow-wrap: anywhere;
}

.map-info-type {
    margin: 0;

    font-size: 13px;

    font-weight: 800;
}


.map-info-type-en {
    margin: 0 0 10px;

    font-size: 10px;

    font-weight: 600;

    color: var(--text-sub);
}


.map-info-card h3 {
    margin: 0;

    font-size: 17px;

    line-height: 1.5;
}


.map-info-name-en {
    margin: 2px 0 0;

    font-size: 11px;

    color: var(--text-sub);
}


.map-info-address {
    margin: 12px 0;

    font-size: 12px;

    line-height: 1.6;
}

.map-info-note {
    margin: 14px 0 4px;

    font-size: 12px;
    line-height: 1.7;
}

.map-info-note-en {
    margin: 0 0 14px;

    font-size: 11px;
    line-height: 1.6;

    color: var(--text-sub);
}

.map-info-source {
    margin: 10px 0 2px;

    font-size: 11px;
    line-height: 1.6;

    color: var(--text-sub);
}

.map-info-checked {
    margin: 0 0 12px;

    font-size: 11px;
    line-height: 1.6;

    color: var(--text-sub);
}


.map-info-route {
    padding: 10px 14px;

    display: flex;

    flex-direction: column;

    align-items: center;

    border-radius: 12px;

    background: var(--yellow);

    color: var(--text);

    font-size: 13px;

    font-weight: 800;

    text-decoration: none;
}


.map-info-route span {
    font-size: 10px;

    font-weight: 600;
}

.map-section {
    scroll-margin-top: 100px;
}

/* ========================================
   ACTIVE CATEGORY
======================================== */

.category-card.is-active {
    background: var(--yellow);

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(38, 52, 61, 0.14);
}

/* ========================================
   LANGUAGE
======================================== */

.language-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    opacity: .45;
}

.language-button.language-active {
    opacity: 1;
    font-weight: 700;
}


/* 英語表示のとき、日本語を非表示 */

body.lang-en .logo-jp,
body.lang-en .hero h1,
body.lang-en .hero-description,
body.lang-en .location-button-jp,
body.lang-en .categories h2,
body.lang-en .category-jp,
body.lang-en .map-section h2,
body.lang-en .map-location-jp {
    display: none;
}


/* 英語表示では英語見出しを大きく */

body.lang-en .hero-en {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 24px;
}

body.lang-en .section-title-en {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

body.lang-en .category-en {
    font-size: 15px;
    font-weight: 700;
}

/* スマホ：現在地ボタンをコンパクトに
--------------------------------- */

@media (max-width: 767px) {

    .map-location-button {
        width: calc(100% - 48px);
        max-width: 290px;

        min-height: 56px;

        padding: 8px 16px;

        bottom: 12px;

        border-radius: 16px;
    }

    .map-location-jp {
        font-size: 15px;
    }

    .map-location-en {
        font-size: 11px;
    }

    .map-section {
    padding-bottom: 50px;
}

}

/* PC
--------------------------------- */

@media (min-width: 768px) {

    .site-header {

        padding:
            12px 40px;
    }

    .hero {

        padding:
            90px 40px;
    }

    .category-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

        #yamato-map {
        height: 560px;
    }

    .map-info-card {
        width: 240px;
    }

}