/* Typography & Colors */
:root {
    --color-base: #fafaf8;
    --color-text: #4a4a4a;
    --color-primary: #6b9bd1;
    --color-accent: #f4a09c;
    --color-card: #ffffff;
    --color-border: #e7e7e4;
    --shadow-soft: 0 6px 24px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--color-base);
    color: var(--color-text);
    font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto,
        Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.75;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* モバイルでの微小な横スクロールを抑止 */
}

h1,
h2,
h3,
h4 {
    font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
    margin: 0 0 0.5em 0;
}

/* Layout */
.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    box-sizing: border-box;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(250, 250, 248, 0.8);
    backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.brand-mark {
    color: var(--color-accent);
}
.brand-text {
    font-family: "Noto Serif JP", Georgia, "Times New Roman", serif;
}

.nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-link {
    color: var(--color-text);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 8px;
}
.nav-link:hover {
    background: #f0f0ed;
}

/* Hero */
.hero {
    position: relative;
    padding: 0 0 56px;
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 2;
}
.hero-split {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 24px;
}
.hero-left {
    position: relative;
    z-index: 2;
}
.hero-right {
    position: relative;
    z-index: 1;
    min-height: 380px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.hero-3d {
    position: relative;
    width: 100%;
    height: min(58vw, 500px);
    margin-top: -40px;
    max-width: 100%;
}
.hero-3d canvas {
    display: block;
}
.hero-aura {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        40% 40% at 65% 35%,
        rgba(140, 120, 200, 0.28),
        rgba(107, 155, 209, 0.18) 50%,
        rgba(244, 160, 156, 0.16) 70%,
        transparent 75%
    );
    filter: blur(8px);
    mix-blend-mode: screen;
}
.hero-title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.3;
    background: linear-gradient(180deg, #343a69 0%, #22223b 40%, #5c5aa5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 24px rgba(60, 70, 120, 0.25);
}
.hero-sub {
    margin-top: 12px;
    font-size: 16px;
    color: #4b4e6d;
    text-shadow: 0 2px 10px rgba(40, 45, 80, 0.2);
}
.hero-cta {
    margin-top: 24px;
}
.hero-bg {
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 70%;
    background: radial-gradient(
            60% 60% at 50% 30%,
            rgba(107, 155, 209, 0.22),
            rgba(244, 160, 156, 0.14) 55%,
            transparent 70%
        ),
        conic-gradient(
            from 210deg at 80% 20%,
            rgba(180, 150, 255, 0.18),
            rgba(255, 255, 255, 0) 25%
        );
    z-index: 1;
}

/* Sections */
.section-title {
    font-size: clamp(22px, 3vw, 28px);
    margin-bottom: 16px;
}

.concept {
    padding: 16px 0 0;
}
.concept-card {
    padding: 28px;
}
.concept-body p {
    margin: 0 0 1em 0;
}

.how {
    padding: 36px 0;
}
.grid-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.step {
    padding: 20px;
    text-align: center;
}
.step-icon {
    color: var(--color-primary);
    margin-bottom: 8px;
}
.step-title {
    font-size: 14px;
    letter-spacing: 0.1em;
    color: #666;
}
.step-desc {
    margin-top: 6px;
    font-size: 16px;
}
.how-cta {
    text-align: center;
    margin-top: 20px;
}

.price {
    padding: 24px 0 64px;
}
.price-card {
    text-align: center;
    padding: 28px;
}
.price-main {
    font-size: 18px;
}
.price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
}
.price-note {
    color: #666;
    margin-top: 8px;
}

/* Cards */
.card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
}
.card-soft {
    box-shadow: var(--shadow-soft);
}

/* Buttons */
.button {
    appearance: none;
    border: none;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.06s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:active {
    transform: translateY(1px);
}
.button-primary {
    background: var(--color-primary);
    color: #fff;
}
.button-primary:hover {
    filter: brightness(1.05);
}
.button-accent {
    background: var(--color-accent);
    color: #fff;
}
.button-accent:hover {
    filter: saturate(1.05) brightness(1.02);
}
.button-lg {
    padding: 12px 20px;
    font-size: 16px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 18px 0;
    background: rgba(255, 255, 255, 0.6);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-links {
    display: flex;
    gap: 12px;
}
.footer-link {
    color: #5a5a5a;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
}
.footer-link:hover {
    background: #f0f0ed;
}

/* Modal/Form styles were removed as the flow now uses Stripe Payment Links */

/* Utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Desktop-mid breakpoint to equalize hero columns */
@media (max-width: 1200px) and (min-width: 901px) {
    .hero-split {
        grid-template-columns: 1fr 1fr;
    }
    .hero-left,
    .hero-right {
        min-width: 0;
    }
    .hero-3d {
        height: min(46vw, 460px);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .grid-steps {
        grid-template-columns: 1fr;
    }
    .field-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 40px 0 56px;
        overflow-x: hidden;
        overflow-y: visible;
    }
    .hero-split {
        grid-template-columns: 1fr;
        gap: 24px;
        align-items: stretch;
        text-align: center;
    }
    .hero-left {
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 16px;
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-right {
        order: 2;
        min-height: 100px;
        align-items: center;
        justify-content: center;
        padding: 0 16px;
        min-width: 0;
        overflow: visible;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-3d {
        height: min(70vw, 350px);
        margin-top: 0;
    }
    .hero-bg {
        left: 0;
        right: 0;
    }
    .hero-title {
        font-size: clamp(24px, 7vw, 36px);
    }
    .hero-sub {
        font-size: 15px;
        margin-top: 16px;
    }
    .hero-cta {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 32px 0 48px;
    }
    .hero-split {
        gap: 20px;
    }
    .hero-left,
    .hero-right {
        padding: 0 12px;
    }
    .hero-3d {
        height: min(75vw, 320px);
    }
    .hero-title {
        font-size: clamp(22px, 8vw, 32px);
    }
    .hero-sub {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 24px 0 40px;
    }
    .hero-split {
        gap: 16px;
    }
    .hero-left,
    .hero-right {
        padding: 0 8px;
    }
    .hero-3d {
        height: min(80vw, 280px);
    }
    .hero-title {
        font-size: clamp(20px, 9vw, 28px);
        line-height: 1.4;
    }
    .hero-sub {
        font-size: 13px;
        line-height: 1.6;
    }
    .section-title {
        font-size: clamp(18px, 6vw, 24px);
    }
}
