:root {
    --primary: #1b5daa;
    --primary-dark: #14478a;
    --primary-deeper: #0e3566;
    --primary-light: #e8f0fa;
    --primary-lightest: #f2f7fc;
    --accent: #d4a853;
    --text-primary: #1a1a1a;
    --text-secondary: #5c6370;
    --text-tertiary: #8b9199;
    --bg-white: #ffffff;
    --bg-light: #f7f8fa;
    --border: #e2e6ea;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 50%;
    --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", Meiryo, sans-serif;
    --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
    --header-h-m: 60px;
    --header-h-d: 76px;
    --max-w: 1200px;
}
html {
    scroll-behavior: smooth;
}

.btn-filled-primary:hover {
    background: var(--primary-dark);
}
.btn-filled-white:hover {
    background: var(--primary-lightest);
    color: var(--primary-dark);
}
.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 85%;
    max-width: 360px;
    background: var(--bg-white);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.page-hero {
    position: relative;
    margin-top: var(--header-h-m);
    background: linear-gradient(135deg, #1b5daa 0%, #14478a 50%, #0e3566 100%);
    padding: 48px 0 40px;
    overflow: hidden;
    text-align: center;
}
.page-hero-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.ph-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}
.ph-s1 {
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    top: -60px;
    right: -40px;
}
.ph-s2 {
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.03);
    bottom: -30px;
    left: -30px;
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.page-hero-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.page-hero-sub {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.product-nav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-h-m);
    z-index: 99;
    overflow-x: auto;
    scrollbar-width: none;
}
.product-nav::-webkit-scrollbar {
    display: none;
}
.product-nav-inner {
    display: flex;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 20px;
}
.product-nav a {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 14px 18px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
}
.product-nav a:hover {
    color: var(--primary);
}
.product-nav a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 600;
}

.product-section {
    padding: 56px 0 64px;
    scroll-margin-top: 140px;
    background: var(--bg-white);
}
.product-section.alt-bg {
    background: var(--bg-light);
}
.product-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
}
.product-illustration {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.product-illustration svg {
    width: 72px;
    height: 72px;
}
.pi-domestic {
    background: var(--primary-light);
}
.pi-foreign {
    background: linear-gradient(
            135deg,
            var(--primary-lightest),
            var(--primary-light)
    );
}
.pi-bonds {
    background: linear-gradient(135deg, var(--primary-lightest), #e0eaf5);
}
.pi-funds {
    background: linear-gradient(135deg, #edf2fa, var(--primary-light));
}

.product-info {
    text-align: center;
}
.product-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.product-title .num {
    color: var(--primary);
    margin-right: 6px;
    font-size: 16px;
    font-weight: 600;
}
.product-desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.product-content {
    max-width: 900px;
    margin: 0 auto;
}
.sub-heading {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sub-heading svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

.tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}
.tag:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}
.tag svg {
    width: 16px;
    height: 16px;
    opacity: 0.5;
}
.tag-flag {
    font-size: 18px;
    line-height: 1;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.country-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}
.country-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.country-flag {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.country-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.fund-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.fund-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.15s;
}
.fund-item:hover {
    background: var(--primary-lightest);
}
.fund-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
    opacity: 0.5;
}

.notice-card {
    background: var(--primary-lightest);
    border: 1px solid var(--primary-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.notice-card svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}
.notice-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.cta-banner {
    background: var(--primary);
    padding: 48px 0;
}
.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
}
.cta-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.cta-sub {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 24px;
}
.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 36px;
}
.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-bottom {
    padding: 24px 0;
}
.footer-address {
    font-size: 14px;
    line-height: 1.9;
    opacity: 0.7;
}
.footer-address a {
    color: #fff;
}

@media (min-width: 768px) {
    .container {
        padding: 0 32px;
    }
    .product-header {
        flex-direction: row;
        text-align: left;
        gap: 32px;
    }
    .product-info {
        text-align: left;
    }
    .product-desc {
        margin: 0;
    }
    .country-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .fund-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .product-title {
        font-size: 26px;
    }
    .page-hero-title {
        font-size: 34px;
    }
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .page-hero {
        margin-top: var(--header-h-d);
        padding: 64px 0 52px;
    }
    .product-nav {
        top: var(--header-h-d);
    }
    .header-risk-link {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        font-weight: 500;
        color: #8b6914;
        background: #fff8e1;
        padding: 4px 12px;
        border-radius: 3px;
        text-decoration: none;
        margin-right: 4px;
        white-space: nowrap;
        border: 1px solid #f0e4b8;
    }
    .product-section {
        padding: 72px 0 80px;
    }
    .product-illustration {
        width: 140px;
        height: 140px;
    }
    .product-illustration svg {
        width: 84px;
        height: 84px;
    }
    .country-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .fund-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .product-title {
        font-size: 28px;
    }
    .page-hero-title {
        font-size: 38px;
    }
}

body.admin-bar .product-nav {
    top: calc(var(--header-h-m) + 32px);
}

/* Mobile admin bar height */
@media (max-width: 782px) {
    body.admin-bar .product-nav {
        top: calc(var(--header-h-m) + 46px);
    }
}