@charset "utf-8";

:root {
    --color-primary: #0A3D62;
    --color-primary-dark: #072a45;
    --color-accent: #C9A86A;
    --color-accent-dark: #B08D4E;
    --color-accent-tint: #F7F1E4;
    --color-text: #4a4a4a;
    --color-text-light: #6b6b6b;
    --radius-card: 12px;
    --shadow-card: 0 4px 16px rgba(10, 61, 98, 0.08);
    --shadow-card-hover: 0 10px 28px rgba(10, 61, 98, 0.14);
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-family: "游ゴシック体", "Yu Gothic Medium", "游ゴシック Medium", YuGothic,
        "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN",
        "メイリオ", Meiryo, sans-serif;
    line-height: 1.8;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    color: var(--color-text);
}

h1 {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--color-primary);
}

h2 {
    font-size: 1.75rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-primary);
}

h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-primary);
}

.container {
    max-width: 980px;
    padding: 0 30px;
    margin-left: auto;
    margin-right: auto;
}

.header {
    width: 100%;
    box-shadow: 0 0 10px #dddddd;
    background-color: white;
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
}

.header-left {
    float: left;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.header-tagline {
    font-size: 11px;
    color: var(--color-text-light);
    margin-top: 2px;
    margin-left: 2px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.header-right {
    float: right;
    display: flex;
    align-items: center;
    gap: 14px;
}

/* --- サイト内検索（PC） --- */
.site-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    font-size: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.search-toggle:hover {
    background: var(--color-accent-tint);
    color: var(--color-accent-dark);
}

.site-search.active .search-toggle {
    color: var(--color-accent-dark);
    background: var(--color-accent-tint);
}

.search-box {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    transition: width 0.25s ease;
}

.site-search.active .search-box {
    width: 240px;
}

.search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 14px;
    border: 1px solid #dde3e8;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    color: var(--color-text);
    background: #fff;
}

.search-input:focus {
    border-color: var(--color-accent);
}

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 280px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-card-hover);
    display: none;
    z-index: 1100;
}

.search-results.show {
    display: block;
}

.search-result-item {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.search-result-desc {
    font-size: 11px;
    color: var(--color-text-light);
    line-height: 1.5;
}

.search-result-item:hover {
    background: var(--color-accent-tint);
}

.search-no-result {
    padding: 14px;
    font-size: 12px;
    color: var(--color-text-light);
    text-align: center;
}

.dropdown {
    position: relative;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
}

.header-right ul li.dropdown {
    position: relative;
}

.header-right ul li .submenu {
    display: none;
    position: absolute;
    top: 100%;
    background: #fff;
    padding: 0;
    margin: 0;
}

.header-right ul li.dropdown:hover .submenu {
    display: block;
}

.header-right ul li .submenu li a {
    display: block;
    text-align: center;
    min-width: 160px;
    margin-left: 0;
    color: var(--color-text);
    text-decoration: none;
}

.header-right ul li .submenu li a:hover {
    background: var(--color-accent-tint);
    color: var(--color-primary);
}

.clear {
    clear: both;
}

.header-right ul {
    display: flex;
    align-items: center;
    list-style-type: none;
}

.header-right a {
    line-height: normal;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    letter-spacing: 0.02em;
    margin-left: 30px;
    padding: 10px 2px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.header-right a:hover {
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
}

.header-left img {
    width: 200px;
    height: 55px;
}

.footer {
    background-color: var(--color-primary);
    color: #dbe4ec;
    border-top: 3px solid var(--color-accent);
    padding: 44px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    text-align: left;
}

.footer-company {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 13px;
    line-height: 1.7;
    color: #a9bccb;
}

.footer-heading {
    font-size: 13px;
    color: #7d95a8;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    font-size: 14px;
    color: #dbe4ec;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid #274a63;
    margin-top: 32px;
    padding: 16px 0;
    font-size: 13px;
    color: #7d95a8;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #4a6d8a;
    color: #dbe4ec;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.share-icon:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.page-title {
    font-size: 28px;
    font-weight: bold;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--color-accent);
    color: var(--color-primary);
}

.mobile-header {
    display: none;
}

.zoomable {
    cursor: zoom-in;
    transition: transform 0.25s ease;
    touch-action: manipulation;
}

.zoomable.zoomed {
    position: fixed;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 85vh;
    z-index: 9999;
    object-fit: contain;
    cursor: zoom-out;
}

.zoomable.zoomed::after {
    content: '';
}

@media (max-width: 800px) {

    .header {
        display: none;
        position: static;
        width: 100%;
        box-shadow: none;
        border-top: 1px solid #eee;
        border-bottom: none;
    }

    body.mobile-menu-open .header {
        display: block;
    }

    .header .container {
        padding: 0;
        max-width: 100%;
    }

    .header-left {
        display: none;
    }

    .header-right {
        float: none;
        width: 100%;
    }

    .header-right ul {
        display: flex;
        flex-direction: column;
        list-style: none;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .header-right ul li {
        border-bottom: 1px solid #eee;
    }

    .header-right a {
        display: block;
        line-height: normal;
        margin-left: 0;
        padding: 14px 16px;
        text-align: left;
    }

    .header-right ul li .submenu {
        display: block;
        position: static;
        padding-left: 16px;
        box-shadow: none;
    }

    .header-right ul li .submenu li a {
        text-align: left;
        min-width: 0;
        padding: 10px 16px;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid #ddd;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .mobile-logo {
        height: 40px;
        flex-shrink: 0;
    }

    .mobile-logo-wrap {
        display: flex;
        flex-direction: column;
    }

    .mobile-tagline {
        font-size: 9.5px;
        color: var(--color-text-light);
        margin-top: 2px;
        white-space: nowrap;
    }

    .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-search-toggle {
        font-size: 20px;
        line-height: 1;
        background: none;
        border: none;
        color: var(--color-primary);
        cursor: pointer;
    }

    .mobile-menu-toggle {
        font-size: 28px;
        line-height: 1;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-search-box {
        display: none;
        padding: 12px 16px;
        background: #fff;
        border-bottom: 1px solid #ddd;
        position: relative;
    }

    .mobile-search-box.show {
        display: block;
    }

    .mobile-search-box .search-input {
        width: 100%;
    }

    .mobile-search-box .search-results {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid #eee;
        margin-top: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-col.footer-about {
        order: 1;
    }

    .share-buttons {
        justify-content: center;
    }
}