:root {
    --text-primary: #1d1d1f;
    --text-secondary: rgba(29, 29, 31, 0.68);
    --text-muted: rgba(245, 245, 247, 0.72);
    --surface-light: #f5f5f7;
    --surface-white: #fff;
    --surface-dark: #05070b;
    --line-light: rgba(29, 29, 31, 0.12);
    --line-dark: rgba(255, 255, 255, 0.14);
    --link-blue: #0066cc;
    --button-blue: #0071e3;
    --accent-cyan: #00a6c8;
    --accent-green: #2f9f72;
    --content-width: 1180px;
    --wide-width: 1440px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    color: var(--text-primary);
    background: var(--surface-white);
    font-family: "SF Pro JP", "SF Pro Text", "SF Pro Icons",
        "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3",
        メイリオ, Meiryo, "ＭＳ Ｐゴシック",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.357px;
    overflow-x: clip;
}

a {
    color: inherit;
    text-decoration: none;
}

.background-stage {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #fff;
}

.background-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.global-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: 100%;
    height: 44px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
    backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(100% - 40px, var(--content-width));
    height: 100%;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: 118px;
    height: 28px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: normal;
}

.brand img {
    display: block;
    width: 100%;
    height: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    line-height: 12px;
    letter-spacing: normal;
}

.nav-links a {
    transition: opacity 180ms ease;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 980px;
    background: var(--button-blue);
    color: #fff;
    white-space: nowrap;
    transition: opacity 180ms ease;
}

.nav-cta:hover,
.button:hover {
    opacity: 0.6;
}

.nav-cta {
    min-height: 24px;
    padding: 5px 13px;
    color: #fff;
}

.button {
    min-height: 42px;
    padding: 8px 22px;
    font-size: 17px;
    letter-spacing: -0.357px;
    cursor: pointer;
}

.button-outline {
    background: #fff;
    border: 1px solid var(--button-blue);
    color: var(--button-blue);
}

/* ==========================================================================
   Internal Page Styles (共通内面ページ用)
   ========================================================================== */

.internal-page {
    background: var(--surface-light);
}

.page-header {
    padding: 160px 20px 80px;
    text-align: center;
}

.page-header h1 {
    font-size: clamp(40px, 5vw, 64px);
    margin: 0 auto 16px; /* オーバーライド: ブロック自体を中央寄せ */
    text-align: center;  /* オーバーライド: テキストを中央寄せ */
    letter-spacing: 0.02em;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 20px;
}

.info-section {
    padding: 0 20px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.content-card {
    background: #fff;
    border-radius: 16px;
    padding: 48px;
    margin-bottom: 48px;
    box-shadow: rgba(0, 0, 0, 0.04) 0 12px 32px;
    border: 1px solid var(--line-light);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th, .info-table td {
    padding: 24px 0;
    border-bottom: 1px solid var(--line-light);
    text-align: left;
    vertical-align: top;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
    padding-bottom: 0;
}

.info-table tr:first-child th,
.info-table tr:first-child td {
    padding-top: 0;
}

.info-table th {
    width: 140px;
    font-weight: 600;
    color: var(--text-secondary);
}

.document-content h2 {
    font-size: 28px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-light);
}

.document-content h3 {
    font-size: 18px;
    margin-top: 40px;
    margin-bottom: 16px;
    font-weight: 600;
}

.document-content p, .document-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.document-content ul {
    padding-left: 24px;
}

@media (max-width: 768px) {
    .content-card {
        padding: 32px 24px;
    }
    .info-table th, .info-table td {
        display: block;
        width: 100%;
    }
    .info-table th {
        padding-bottom: 8px;
        border-bottom: none;
    }
    .info-table td {
        padding-top: 0;
    }
}

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

/* Generic modern fade up */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image / Media scale reveal */
.fade-scale {
    opacity: 0;
    transform: scale(0.94) translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-scale.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* 3D Flip Up Reveal */
.fade-3d {
    opacity: 0;
    transform: perspective(1200px) rotateX(60deg) translateY(60px);
    transform-origin: bottom center;
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.fade-3d.is-visible {
    opacity: 1;
    transform: perspective(1200px) rotateX(0) translateY(0);
}

/* Slide in from sides */
.stagger-sides > * {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.stagger-sides > *:nth-child(odd) {
    transform: translateX(-60px);
}
.stagger-sides > *:nth-child(even) {
    transform: translateX(60px);
}
.stagger-sides.is-visible > * {
    opacity: 1;
    transform: translateX(0);
}
.stagger-sides > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-sides > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-sides > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-sides > *:nth-child(4) { transition-delay: 0.35s; }

/* Staggered children reveal */
.stagger-children > * {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.stagger-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}
.stagger-children > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.15s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.25s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.35s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.45s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.55s; }
.stagger-children > *:nth-child(7) { transition-delay: 0.65s; }
.stagger-children > *:nth-child(8) { transition-delay: 0.75s; }
.stagger-children > *:nth-child(9) { transition-delay: 0.85s; }
