:root {
    --red: #e8332a;
    --red-deep: #c8211c;
    --green: #3aa635;
    --green-deep: #2a8a26;
    --charcoal: #3a3a3a;
    --yellow: #f4d422;
    --blue: #22b8d6;
    --ink: #222;
}
 
body {
    font-family: mochiy-pop, sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #f8f9fa;
    color: var(--ink);
    overflow-x: hidden;
    scroll-behavior: smooth;
    margin: 0;
    touch-action: auto;
}

h1, h2, h3, h4, h5, h6, .hero-catch {
    font-family: mochiy-pop, sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
}
 
#intro-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    z-index: 2000;
    text-align: center;
    transition: opacity 1s ease, visibility 1s;
    overflow: hidden;
}
 
.intro-phrase {
    position: absolute;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 100%;
    pointer-events: none;
    transform: scale(0.8);
}
 
.intro-phrase.active {
    opacity: 1;
    transform: scale(1);
}
 
.intro-line {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
 
.intro-line.active {
    opacity: 1;
    transform: scale(1);
}
 
.intro-card {
    position: absolute;
    width: clamp(80px, 12vw, 150px);
    /* aspect-ratio非対応環境用のフォールバック高さを追加 */
    height: clamp(60px, 9vw, 112px); 
    aspect-ratio: 4/3;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    pointer-events: none;
    will-change: transform, opacity;
}
 
.intro-card.scatter {
    transition: transform 3.5s cubic-bezier(0.25, 1, 0.3, 1), opacity 2.5s ease-in-out;
}
 
@keyframes rustle {
    0%, 100% { margin-left: 0px; margin-top: 0px; }
    25% { margin-left: -10px; margin-top: 5px; }
    50% { margin-left: 10px; margin-top: -5px; }
    75% { margin-left: -5px; margin-top: 10px; }
}
 
.rustle {
    animation: rustle 0.5s ease-in-out infinite;
}
 
@keyframes dropBounce {
    0% { transform: translateY(-200px) rotate(15deg); opacity: 0; animation-timing-function: ease-in; }
    30% { transform: translateY(0) rotate(15deg); opacity: 1; animation-timing-function: ease-out; }
    50% { transform: translateY(-60px) rotate(15deg); animation-timing-function: ease-in; }
    65% { transform: translateY(0) rotate(15deg); animation-timing-function: ease-out; }
    75% { transform: translateY(-30px) rotate(15deg); animation-timing-function: ease-in; }
    85% { transform: translateY(0) rotate(15deg); animation-timing-function: ease-out; }
    92% { transform: translateY(-15px) rotate(15deg); animation-timing-function: ease-in; }
    97% { transform: translateY(0) rotate(15deg); animation-timing-function: ease-out; }
    100% { transform: translateY(0) rotate(15deg); opacity: 1; }
}
 
.intro-badge {
    position: absolute;
    opacity: 0;
    transform: translateY(-200px) rotate(15deg);
    will-change: transform, opacity;
    text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff;
}
 
.intro-badge.active {
    animation: dropBounce 1.5s forwards;
}
 
.skip-btn {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2100;
    color: #888;
    font-size: 14px;
    letter-spacing: 0.2em;
    font-weight: 800;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    background: none;
    transition: all 0.3s ease;
}
 
.skip-btn:hover {
    color: #000;
    transform: translateX(-50%) scale(1.1);
}
 
#flash-stage {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1500;
    transition: background-color 0.15s ease-out, opacity 1s ease-out;
    overflow: hidden;
    background-color: #fff;
}
 
#flash-text {
    font-size: clamp(2rem, 7vw, 12vh);
    line-height: 1.1;
    font-weight: 900;
    color: #ffffff;
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    max-width: 90vw;
}
 
.flash-row {
    position: absolute;
    left: 0;
    width: 100%;
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 900;
    font-size: 5.5vw;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}
 
.row-right { transform: translateX(100%); }
.row-left  { transform: translateX(-100%); }
.flash-row.active { transform: translateX(0); }
 
@media (max-width: 767px) {
    #flash-text { line-height: 1.3 !important; display: none; }
}
 
@media (min-width: 768px) {
    #flash-text { white-space: nowrap !important; line-height: 1.1 !important; }
    #flash-text br { display: none !important; }
    .flash-row { display: none; }
}
 
#main-content {
    opacity: 0;
    transition: opacity 1.5s ease;
    background-color: #fff;
}
 
.serif-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}
 
.card {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, left 0.4s ease, top 0.4s ease, width 0.8s cubic-bezier(0.65, 0, 0.35, 1), height 0.8s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.8s ease;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transform-style: preserve-3d;
    border-radius: 1.5rem;
}
 
@media (min-width: 768px) {
    .card { border-radius: 1.5rem; }
}
 
.card:active { cursor: grabbing; }
 
.card.centered {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(1.6) rotate(0deg) !important;
    z-index: 5000 !important;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}
 
.card.fullscreen {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    width: 100vw !important;
    height: 100vh !important;
    transform: translate(-50%, -50%) scale(1) rotate(0deg) !important;
    z-index: 6000 !important;
    border-radius: 0 !important;
    border-width: 0 !important;
    cursor: default;
}
 
.card.fullscreen .card-inner {
    transform: rotateY(180deg);
}
 
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
    border-radius: inherit;
}
 
.card-front,
.card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: inherit;
}
 
.card-back {
    transform: rotateY(180deg);
    background: #fff;
}
 
@keyframes slowBlink {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.2; }
}
 
.view-detail-label {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    backdrop-filter: none;
    border: none;
    padding: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
 
.card.centered .view-detail-label {
    opacity: 1;
    animation: slowBlink 2.5s infinite ease-in-out;
}
 
.card.fullscreen .view-detail-label { display: none; }
 
@media (min-width: 768px) {
    .view-detail-label { font-size: 11px; bottom: 25px; }
}
 
.card h2 { line-height: 1.5; }
 
@media (max-width: 767px) {
    .card h2 { line-height: 1.3 !important; }
}
 
.vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}
 
section { min-height: 100vh; width: 100%; }
 
.fade-update {
    animation: fadeIn 0.8s ease forwards;
}
 
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
.bg-scatter-card {
    position: absolute;
    border-radius: 1.5rem;
    pointer-events: none;
}
 
#section-nav {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}
 
#section-nav.show {
    opacity: 1;
    pointer-events: auto;
}
 
.section-nav-item {
    position: relative;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.2);
}
 
.section-nav-item::after {
    content: attr(data-label);
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    text-shadow: 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 0 2px 10px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transform: translateY(-50%) translateX(-10px);
}
 
.section-nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
 
.section-nav-item.active {
    background: #333;
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}
 
.pop-accent { color: #FFA344; }
 
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #f2e9e1;
    font-weight: 300;
    transition: color 0.4s ease;
}
 
#about-section {
    height: 100vh;
    height: 100svh;
    min-height: 0 !important;
}
 
#about-right {
    transition: background-color 0.8s ease;
    width: 100%;
    height: 100%;
}
 
#about-slider-scroll {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
 
#about-slider-scroll::-webkit-scrollbar { display: none; }
 
.about-slider-wrapper {
    transition: background-color 0.8s ease;
    border-radius: 0;
    box-shadow: none;
}
 
#about-slider-container { display: flex; width: 500%; height: 100%; }
 
.about-page {
    width: 20%;
    flex-shrink: 0;
    scroll-snap-align: start;
    height: 100%;
}
 
.slider-arrow {
    width: 60px;
    height: 60px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s ease;
    background: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
 
.slider-arrow svg { stroke: #d4a373; }
 
#about-prev-btn { left: 40px; }
#about-next-btn { right: 40px; }
 
.slider-arrow:hover:not(:disabled) {
    background: #FFA344;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 163, 68, 0.3);
}
 
.slider-arrow:hover svg { stroke: white; }
 
.effect-card {
    border-left: 3px solid #f2e9e1;
    padding-left: 2rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 0 20px 20px 0;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
 
.effect-card:hover {
    border-left-color: #FFA344;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    transform: translateX(5px);
}
 
.purchase-box-decor {
    padding: 6rem 4rem;
    position: relative;
    z-index: 10;
}
 
/* ============================================
   Hero Section
   ============================================ */
#hero-section {
    position: relative;
    width: 100%;
    clip-path: inset(0 0 -100% 0);
    background: #fff;
}
 
.hero-stage {
    position: relative;
    width: 100%;
    max-width: 1280px;
    aspect-ratio: 1065 / 595;
    margin: 0 auto;
    background: transparent;
}
 
.hero-layer {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100vw;
    height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}
 
.hero-subtitle {
    position: absolute;
    left: 6%;
    top: 22%;
    z-index: 20;
    font-weight: 900;
    letter-spacing: .02em;
    line-height: 1.05;
    transform: rotate(-4deg);
    transform-origin: left center;
    display: flex;
    align-items: baseline;
    gap: .05em;
    white-space: nowrap;
    font-size: clamp(16px, 2.1vw, 28px);
}
 
.hero-subtitle .green { color: var(--charcoal); }
 
.hero-subtitle .motto {
    color: var(--red);
    font-size: clamp(22px, 3vw, 40px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 rgba(0, 0, 0, .04);
    display: inline-block;
}
 
.hero-main-title {
    position: absolute;
    left: 4%;
    top: 38%;
    z-index: 21;
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.1;
}
 
.hero-main-title .series {
    color: var(--charcoal);
    font-size: clamp(20px, 2.7vw, 36px);
    font-weight: 800;
    letter-spacing: .04em;
}
 
.hero-main-title .name {
    margin-top: .08em;
    color: var(--charcoal);
    font-size: clamp(40px, 6.4vw, 82px);
    font-weight: 900;
    line-height: 1;
    text-shadow: 2px 2px 0 #fff, 4px 4px 0 rgba(0, 0, 0, .05);
}
 
.hero-main-title .name .chan { color: var(--charcoal); }
 
.hero-photos {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 48%;
    height: 80%;
    z-index: 15;
}
 
.hero-pcard {
    position: absolute;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .10), 0 2px 4px rgba(0, 0, 0, .06);
    overflow: hidden;
}
 
.hero-p1 { left: 4%;  top: 0;    width: 57.6%; aspect-ratio: 4/3; transform: rotate(-2deg); }
.hero-p2 { left: 52%; top: 25%;  width: 40.8%; aspect-ratio: 4/3; transform: rotate(3deg); }
.hero-p3 { left: 20%; top: 45%;  width: 36%;   aspect-ratio: 4/3; transform: rotate(-3deg); z-index: 10; }
.hero-p4 { left: 55%; top: 62%;  width: 26.4%; aspect-ratio: 1/1; transform: rotate(4deg); }
.hero-p5 { left: 15%; top: 78%;  width: 36%;   aspect-ratio: 4/3; transform: rotate(-1deg); }
 
/* ============================================
   Mobile overrides
   ============================================ */
@media (max-width: 767px) {
    #section-nav { left: 10px; gap: 16px; }
    .section-nav-item { width: 8px; height: 8px; }
 
    .hero-stage {
        aspect-ratio: auto;
        height: 100svh;
        min-height: 600px;
    }
 
    .hero-subtitle {
        left: 7%;
        width: 86%;
        justify-content: center;
        top: 15%;
        font-size: clamp(18px, 4.5vw, 24px);
    }
 
    .hero-subtitle .motto { font-size: clamp(24px, 6vw, 32px); }
 
    .hero-main-title {
        left: 7%;
        top: 22%;
        width: 86%;
        text-align: center;
    }
 
    .hero-main-title .name {
        font-size: clamp(24px, 7.7vw, 35px);
        white-space: nowrap;
    }
 
    .hero-main-title .series { font-size: clamp(15px, 5vw, 22px); }
 
    .hero-cta-wrapper {
        position: absolute;
        left: calc(50vw - 7vw);
        transform: translateX(-50%);
        top: 60vh;
        width: max-content;
        z-index: 30;
        margin-top: 0 !important;
    }
 
    .hero-photos {
        top: 35%;
        right: auto;
        left: 5%;
        width: 90%;
        height: 40vh;
    }
 
    .hero-p1 { left: 12%; top: 0%;  width: 45%; }
    .hero-p2 { left: 52%; top: 12%; width: 38%; }
    .hero-p3 { left: 18%; top: 38%; width: 35%; z-index: 10; }
    .hero-p4 { left: 50%; top: 50%; width: 28%; }
    .hero-p5 { left: 16%; top: 70%; width: 38%; }
 
    .hero-pcard div { font-size: clamp(8px, 2.5vw, 12px) !important; }
}
 
/* ============================================
   Typography helpers
   ============================================ */
.hero-catch {
    font-size: 3.5rem;
    line-height: 1.25;
    color: #4a3f35;
    margin-bottom: 2rem;
}
 
@media (max-width: 768px) {
    .hero-catch { font-size: 2.2rem; }
}
 
/* ============================================
   FV Section
   ============================================ */
#fv-section { min-height: 130vh; }
 
#fv-section .bg-text-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 0;
    pointer-events: none;
    padding: 10vh 0 2rem;
}
 
.bg-text-inner {
    width: 100%;
    max-width: 64rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 10;
}
 
@media (min-width: 768px) {
    .bg-text-inner { padding-left: 3rem; padding-right: 3rem; }
}
 
/* ============================================
   About dots
   ============================================ */
.about-dot {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}
 
.about-dot.active {
    background-color: #FFA344 !important;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 163, 68, 0.4);
}
 
/* ============================================
   Fullscreen nav buttons
   ============================================ */
.fs-nav-btn-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 100;
}
 
.fs-nav-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
 
.fs-nav-btn:hover { transform: scale(1.1); }
 
@media (max-width: 1024px) {
    .fs-nav-btn { width: 45px; height: 45px; }
}
 
/* ============================================
   Bubble float animation
   ============================================ */
@keyframes floatBubble {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(2deg); }
}
 
.bubble-item { animation: floatBubble 5s ease-in-out infinite; }
.bubble-item:nth-child(2n) { animation-duration: 4s;   animation-delay: 0.3s; }
.bubble-item:nth-child(3n) { animation-duration: 6s;   animation-delay: 0.6s; }
.bubble-item:nth-child(4n) { animation-duration: 4.5s; animation-delay: 0.9s; }
 
/* ============================================
   3-D card utilities
   ============================================ */
.perspective   { perspective: 1000px; }
.preserve-3d   { transform-style: preserve-3d; }
.backface-hidden {
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.rotate-y-180 { transform: rotateY(180deg); }
.flipped .card-inner { transform: rotateY(180deg); }
 
/* ============================================
   Mobile accordion
   ============================================ */
@media (max-width: 767px) {
    .accordion-content { display: none; }
 
    .accordion-item.is-open .accordion-content {
        display: block;
        animation: accordionFadeIn 0.3s ease forwards;
    }
 
    .accordion-item.is-open .accordion-icon { transform: rotate(180deg); }
}
 
@keyframes accordionFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}
}