@charset "UTF-8";

/* ==========================================================================
   Design System Variables
   ========================================================================== */
:root {
    /* Colors */
    --primary-color: #1b4332;
    --accent-color: #272E15;
    --base-color: #ffffff;
    --text-color: #333333;
    --text-light: #666666;
    --bg-semi-white: rgba(255, 255, 255, 0.8);

    /* Breakpoints (Bootstrap compatible) */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: ease-in-out;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    background-color: var(--base-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Helper Classes */
.container {
    max-width: var(--bp-xl);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.container-fluid {
    width: 100%;
}

/* Global Responsive Margins */
@media (max-width: 1024px) {

    .section.container,
    section .container {
        padding-left: 10% !important;
        padding-right: 10% !important;
    }
}

/* ==========================================================================
   Header Scroll Effect
   ========================================================================== */
.site-header.scrolled {
    background-color: var(--bg-semi-white);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Home Page Specific: Transparent Header */
.site-header.header-transparent:not(.scrolled) {
    background-color: transparent;
    color: #ffffff;
}

.site-header.header-transparent:not(.scrolled) .logo img {
    filter: brightness(0) invert(1);
}

.site-header.header-transparent:not(.scrolled) .global-nav a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.site-header.header-transparent:not(.scrolled) .btn-login {
    border-color: #ffffff;
    color: #ffffff;
}

.site-header.header-transparent:not(.scrolled) .hamburger span {
    background-color: #ffffff;
}

/* ==========================================================================
   Loading Screen
   ========================================================================== */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1b4332;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    width: 150px;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 67, 50, 0.8);
    /* 80% opacity (effectively 20% transparent) using primary color base */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem var(--space-md);
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(100%);
    transition: transform 0.5s ease;
    font-size: smaller;
}

#cookie-banner.show {
    transform: translateY(0);
}

.cookie-content p {
    margin: 0;
    line-height: 1.6;
}

.cookie-content a {
    color: white;
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-btn {
    background: white;
    color: var(--accent-color);
    border: 1px solid white;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 4px;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: transparent;
    color: white;
}

@media (max-width: 768px) {
    #cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.5rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }

    .cookie-btn {
        flex: 1;
        font-size: 12px;
        padding: 0.5rem;
    }
}

/* ==========================================================================
   Hero Slider (Swiper Base)
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 80vh;
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   Hamburger Menu & Mobile Nav
   ========================================================================== */
.hamburger {
    display: none;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.hamburger span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease-in-out;
}

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

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

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

/* Hamburger Open State */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger.is-active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background-color: var(--base-color);
    z-index: 1000;
    padding: 93px 2rem 1.86rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.mobile-nav.is-open {
    right: 0;
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
}

.mobile-nav li {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.mobile-nav li:last-child {
    border-bottom: none;
}

.mobile-nav a {
    display: flex;
    flex-direction: column;
    padding: 0.52rem 0;
    color: var(--text-color);
}

.menu-jp {
    font-size: 1rem;
    font-weight: bold;
}

.menu-en {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 2px;
}

.mobile-nav-instagram {
    margin-top: 1rem;
    border-bottom: none !important;
}

.mobile-nav-instagram a {
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}

.menu-sns-icon {
    font-size: 1.5rem;
    color: #E4405F;
}

.mobile-nav-instagram .menu-en {
    margin-top: 0;
    font-weight: bold;
    color: var(--text-color);
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
}

.mobile-nav-close span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-nav-close span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-nav-close span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 992px) {
    .hamburger {
        display: block;
    }
}

h1:not(.page-title-en),
h2,
h3,
h4,
h5,
h6 {
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.sofia-pro-reg {
    font-family: sofia-pro-comp, sans-serif;
    font-weight: 400;
    font-style: normal;
}

.sofia-pro-bld {
    font-family: sofia-pro-comp, sans-serif;
    font-weight: 700;
    font-style: normal;
}

.toppan-bunkyu-midashi {
    font-family: "toppan-bunkyu-midashi-go-std", sans-serif;
    font-weight: 900;
    font-style: normal;
}

.helvetica-neue-lt-pro-cond {
    font-family: "helvetica-neue-lt-pro-cond", sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-out, transform 1s ease-out;
    will-change: opacity, transform;
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-right {
    transform: translateX(50px);
}

.animate-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0) !important;
}

/* ==========================================================================
   About Page Specific
   ========================================================================== */
.about-section {
    padding: var(--space-xl) 0;
}

.about-header-section {
    padding: 100px 0 var(--space-xl);
    background-color: #fcfcfc;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid.reverse .about-image {
    order: 2;
}

.about-grid.reverse .about-content {
    order: 1;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 0.5rem;
}

.about-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 2;
    color: var(--text-color);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.about-services-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.about-services-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.about-services-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.about-citation {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1.5rem;
    text-align: right;
}

.about-citation a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .about-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: var(--space-lg) 0;
    }

    .about-header-section {
        padding: 60px 0 var(--space-lg);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid.reverse .about-image,
    .about-grid.reverse .about-content {
        order: unset;
    }

    .about-image {
        order: -1;
    }

    .about-content h2 {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}

.faq-question {
    width: 100%;
    padding: 1.5rem 1rem;
    display: flex;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
    gap: 1.5rem;
}

.faq-question:hover {
    background-color: #f9faf8;
}

.q-icon,
.a-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: 'sofia-pro', sans-serif;
    font-weight: bold;
    flex-shrink: 0;
}

.q-icon {
    background-color: var(--accent-color);
    color: white;
}

.a-icon {
    background-color: #eee;
    color: var(--text-color);
}

.question-text {
    flex-grow: 1;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-color);
}

.toggle-icon {
    width: 20px;
    height: 20px;
    position: relative;
    flex-shrink: 0;
}

.toggle-icon::before,
.toggle-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-color);
    transition: transform 0.3s ease;
}

/* horizontal line */
.toggle-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    margin-top: -1px;
}

/* vertical line */
.toggle-icon::after {
    width: 2px;
    height: 100%;
    top: 0;
    left: 50%;
    margin-left: -1px;
}

.faq-item.is-active .toggle-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-active .toggle-icon::before {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
}

.faq-item.is-active .faq-answer {
    max-height: 2000px;
    transition: max-height 1s ease-in-out;
}

.answer-inner {
    padding: 0 1rem 1.5rem 1rem;
    display: flex;
    gap: 1.5rem;
    line-height: 1.8;
}

.answer-inner p {
    flex-grow: 1;
    color: var(--text-color);
}

.answer-inner a {
    color: var(--accent-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.2rem 0.5rem;
        gap: 1rem;
    }

    .question-text {
        font-size: 1rem;
    }

    .answer-inner {
        gap: 1rem;
    }
}

/* ==========================================================================
   Common Content Styles
   ========================================================================== */
.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: bold;
}

.section-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 4rem 0;
}

.common-content-style {
    margin-bottom: 4rem;
}

.common-content-style p {
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

@media (max-width: 600px) {
    .section-title {
        font-size: 1.5rem;
    }
}