@charset "UTF-8";

/* ==========================================================================
   Design System & Tokens
   ========================================================================== */
:root {
    --primary-color: #333333;
    --secondary-color: #135ea3;
    --accent-color: #f27d00;
    --bg-soft: #fcf6f0;
    --white: #ffffff;
    --gray-light: #f8f9fa;
    --gray-medium: #e9ecef;
    --gray-dark: #6c757d;

    /* Whitespace (As per requirements) */
    --section-margin-sp: 80px;
    --section-margin-pc: 120px;
}

/* Typography */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'M PLUS 1p', 'Noto Sans JP', sans-serif;
    color: var(--primary-color);
    line-height: 1.8;
    /* ゆとりを持たせる */
    letter-spacing: 0.05em;
    /* 上品さを出す */
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

h1,
h2,
h3,
h4,
.font-bold {
    font-weight: 700;
}

/* ==========================================================================
   Layout & Utility
   ========================================================================== */
.section-margin {
    margin-bottom: var(--section-margin-sp);
}

@media (min-width: 1024px) {
    .section-margin {
        margin-bottom: var(--section-margin-pc);
    }
}

.container-custom {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
}

/* Rounded and Shadowed images for a softer, premium look */
.raw-style {
    border-radius: 1.5rem !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden;
    transition: transform 0.3s ease;
}

img.raw-style:hover {
    transform: scale(1.02);
}

/* ==========================================================================
   Box Style (Modern & Friendly with Neon/Bokeh bits)
   ========================================================================== */
.section-box {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(19, 94, 163, 0.15);
    /* Light blue border */
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow:
        0 8px 32px rgba(19, 94, 163, 0.08),
        0 0 15px rgba(19, 94, 163, 0.05),
        inset 0 0 20px rgba(19, 94, 163, 0.02);
    /* Neon glow fill */
    overflow: hidden;
    backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
    .section-box {
        padding: 5rem 4rem;
    }
}

/* Inner Bokeh Orb (Requirement essence) */
.section-box::before {
    content: '';
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at 75% 25%, rgba(19, 94, 163, 0.05), transparent 45%),
        radial-gradient(circle at 25% 75%, rgba(19, 94, 163, 0.03), transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.section-box>* {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header {
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--secondary-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle (Hamburger to X) */
.hamburger-icon {
    width: 28px;
    height: 20px;
    position: relative;
    margin: auto;
    cursor: pointer;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 20px;
    /* Force consistent width */
    background: var(--primary-color);
    border-radius: 9px;
    opacity: 1;
    left: 4px;
    /* Center within the 28px width container */
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
}

.hamburger-icon span:nth-child(2) {
    top: 9px;
}

.hamburger-icon span:nth-child(3) {
    top: 18px;
}

@media (max-width: 767px) {
    #menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(19, 94, 163, 0.05);
        border: 1px solid rgba(19, 94, 163, 0.1);
        border-radius: 50%;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (min-width: 768px) {
    #menu-btn {
        display: none !important;
    }
}

#menu-btn:hover {
    background: rgba(19, 94, 163, 0.1);
    transform: scale(1.05);
}

#menu-btn.active {
    background: var(--accent-color);
    border-color: transparent;
}

#menu-btn.active .hamburger-icon span {
    background: white !important;
}

#menu-btn.active .hamburger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

#menu-btn.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#menu-btn.active .hamburger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Header state when menu is open */
#header.menu-open {
    background: transparent;
    box-shadow: none;
    border: none;
}

/* Mobile Menu Overlay */
#sp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

.sp-nav-link {
    transition: all 0.3s;
    position: relative;
}

.sp-nav-link:active {
    transform: scale(0.95);
    color: var(--accent-color);
}

/* ==========================================================================
   FV Swiper
   ========================================================================== */
.fv-swiper,
.gallery-swiper {
    width: 100%;
    overflow: hidden;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff9e3b 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(242, 125, 0, 0.25);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 125, 0, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    border: 1.5px solid var(--secondary-color);
    color: var(--secondary-color);
    padding: 0.6rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

/* Section Headings - Text Only Premium Design */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    padding-top: 2rem;
    overflow: hidden;
    /* Prevent background text from causing horizontal scroll */
}

.section-title .en-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    color: rgba(19, 94, 163, 0.04);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    line-height: 1;
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    font-family: 'Arial Black', sans-serif;
    transition: all 1s ease;
}

.section-title.active .en-text {
    color: rgba(19, 94, 163, 0.08);
    letter-spacing: 0.25em;
}

.section-title .jp-text {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 900;
    color: var(--secondary-color);
    letter-spacing: 0.1em;
    position: relative;
    display: inline-block;
    z-index: 1;
}

.section-title .jp-text::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-color), #ffb347);
    border-radius: 999px;
}

/* Sub-titles in sections */
.sub-title {
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(19, 94, 163, 0.05);
    z-index: -1;
    transition: width 0.5s ease;
}

.sh-reveal.active .sub-title::after {
    background: rgba(242, 125, 0, 0.1);
}

/* Parallax (Fixed Background) */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

@media (max-width: 1023px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* ==========================================================================
   Interaction & UI
   ========================================================================== */
#top-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    padding: 1rem;
    border-radius: 50%;
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    display: none;
    transition: all 0.3s;
}

#top-btn:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Premium CTA Enhancement */
.cta-premium {
    position: relative;
    overflow: hidden;
    background: #0a192f;
}

.cta-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/gallery_7.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    filter: saturate(0) brightness(0.5);
}

.cta-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(19, 94, 163, 0.4), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(242, 125, 0, 0.2), transparent 50%);
    pointer-events: none;
}

.cta-premium .container-custom {
    position: relative;
    z-index: 2;
}

.cta-glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 2rem;
    width: 100%;
}

.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 500;
    display: flex;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

/* Animation trigger */
.sh-reveal,
.fade-in,
.fade-up,
.fade-left,
.fade-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.fade-up {
    transform: translateY(30px);
}

.fade-left {
    transform: translateX(-30px);
}

.fade-right {
    transform: translateX(30px);
}

.sh-reveal {
    transform: translateY(30px);
    transition-duration: 0.8s;
}

.sh-reveal.active,
.fade-in.active,
.fade-up.active,
.fade-left.active,
.fade-right.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Staggered delays if needed */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}


/* English Title Adjustments for SP */
@media (max-width: 767px) {
    .section-title .en-text {
        font-size: 1.75rem;
        /* Reduced from 2.5rem+ */
    }

    .cta-en-title {
        font-size: 11px;
        /* Reduced from 14px (text-sm) */
    }
}

/* Response Fix for Header & CTA */
@media (min-width: 768px) {
    #menu-btn {
        display: none !important;
    }

    .mobile-sticky-cta {
        display: none !important;
    }

    header nav {
        display: flex !important;
    }
}