@charset "UTF-8";

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
    line-height: 2;
    background-color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #e58cb3;
    transition: width 0.3s ease;
}

a:hover {
    color: #e58cb3;
}

a:hover::after {
    width: 100%;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 70px;
}

.section {
    padding: 60px 0;
}

/* 1. Hero Area */
.hero {
    background-color: #d24986;
    height: 100vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Added for absolute positioning of children */
    overflow: hidden;
    /* Prevent overflow if images are large */
}

/* Hero Decoration Parts */
.hero-part {
    position: fixed;
    z-index: 1;
    /* Behind header background (z-index: 5) */
    /* Allow clicking through if necessary */
    opacity: 0;
    transition: opacity 0.5s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1), top 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-part.is-visible {
    opacity: 1;
}

/* Ensure logo and scroll indicator are above decorations */
.logo-container,
.scroll-indicator {
    position: relative;
    z-index: 10;
}

.part-t-l {
    width: 214px;
    top: -6vh;
    left: -30vw;
    transform: translate(-5vw, -5vh);
}

.part-t-l.is-active {
    transform: none;
}

.part-t-c {
    width: 295px;
    top: -14vh;
    left: 50%;
    transform: translateX(-50%) translateY(-5vh);
}

.part-t-c.is-active {
    transform: translateX(-50%);
    top: -6vh;
}

.part-t-r {
    width: 270.5px;
    top: -6vh;
    right: -30vw;
    transform: translate(5vw, -5vh);
}

.part-t-r.is-active {
    transform: none;
}

.part-m-l {
    width: 104.5px;
    top: 50%;
    left: -20vw;
    transform: translateY(-50%) translateX(-5vw);
}

.part-m-l.is-active {
    transform: translateY(-50%);
}

.part-m-r {
    width: 141px;
    top: 50%;
    right: -13vw;
    transform: translateY(-50%) translateX(5vw);
}

.part-m-r.is-active {
    transform: translateY(-50%);
}

.part-b-l {
    width: 290px;
    bottom: -10vh;
    left: -30vw;
    transform: translate(-5vw, 5vh);
}

.part-b-l.is-active {
    transform: none;
}

.part-b-c {
    width: 246px;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%) translateY(5vh);
}

.part-b-c.is-active {
    transform: translateX(-50%);
}

.part-b-r {
    width: 378px;
    bottom: -10vh;
    right: -50vw;
    transform: translate(5vw, 5vh);
    z-index: 2;
}

.part-b-r.is-active {
    transform: none;
}

.hero-logo-loading {
    width: 30vw;
    /* Reduced from 185.4vw */
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease;
    z-index: 12;
}

body.loaded .hero-logo-loading {
    opacity: 0;
    pointer-events: none;
}

.hero-logo {
    width: 61.8vw;
    /* 61.8vw * 1.07 */
    height: auto;
    filter: drop-shadow(5px 5px 5px rgba(34, 34, 34, 0.4));
    margin: 20px;
    /* 影のための余白確保 */
    will-change: filter;
    /* レンダリング最適化 */
    opacity: 0;
    transition: opacity 1.0s ease;
}

.hero-logo.is-visible {
    opacity: 1;
}

.logo-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* 影のための余白確保 */
    margin-top: 4vh;
    /* 全体を下に下げるため */
    position: relative;
    /* For absolute positioning of loading logo */
    min-height: 200px;
    /* Ensure height for centering */
}

.hero-outline {
    width: 56.3vw;
    /* 43.3vw * 1.07 (ロゴの約70%) */
    height: auto;
    margin-top: 5px;
    /* Reduced from 20px */
    opacity: 0;
    transition: opacity 1.0s ease;
    cursor: pointer;
}

.hero-outline.is-visible {
    opacity: 1;
}

/* English version hero outline size adjustment (90% of hero-logo 61.8vw) */
html[lang="en"] .hero-outline {
    width: 55.6vw;
}

/* Fixed Logos */
.hero-fixed-logo {
    position: absolute;
    width: 80px;
    height: auto;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-fixed-logo.is-visible {
    opacity: 1;
}

/* Site Header */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 10;
    /* Highest priority */
    line-height: 0;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 5;
    /* Higher than kv_parts (z-index: 1) */
    height: 55.3px;
    /* Matches logo height (130px * 0.425) */
}

.header-logo {
    width: 130px;
    height: auto;
    display: block;
}

/* Center Logo Styles */
.hero-pwd-center {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 1.0s ease;
}

.hero-pwd-center.is-visible {
    opacity: 1;
}

@media (max-width: 767px) {

    /* 1. 全SP幅共通設定 */
    .container {
        padding: 0 10px;
    }

    .logo-container {
        margin-top: 1vh;
    }

    .hero-fixed-logo {
        width: 60px;
    }

    .header-logo {
        width: 87px;
    }

    .header-background {
        height: 37px;
    }

    .hero-pwd-center {
        width: 64px;
        margin-bottom: 15px;
    }

    /* 各パーツのリキッド化（580px基準のvwに変換）と位置調整 */
    .part-t-l {
        width: 48vw;
        top: 0vh;
        left: -18vw;
    }

    .part-t-c {
        width: 66vw;
        top: -10vh;
    }

    .part-t-c.is-active {
        top: -6vh;
    }

    .part-t-r {
        width: 62vw;
        top: -2vh;
        right: -28vw;
    }

    .part-m-l {
        width: 24vw;
        left: -10vw;
    }

    .part-m-r {
        width: 32vw;
        right: -5vw;
    }

    .part-b-l {
        width: 66vw;
        left: -8vw;
        bottom: -10vh;
    }

    .part-b-c {
        width: 56vw;
        /* 拡大後の値 */
        display: none;
    }

    .part-b-r {
        width: 86vw;
        bottom: -10vh;
        right: -33vw;
    }
}

@media (max-width: 767px) and (max-height: 580px) {

    .part-m-l,
    .part-m-r {
        display: none;
    }
}

@media (min-width: 768px) {
    .container {
        padding: 0 100px;
    }

    .hero-logo-loading {
        width: 20vw;
        /* Reduced from 126.0vw */
    }

    .hero-logo {
        width: 42.0vw;
        /* 38.2vw * 1.1 */
    }

    .hero-outline {
        width: 31.5vw;
        /* 28.6vw * 1.1 */
    }

    /* English version hero outline size adjustment (90% of hero-logo 42.0vw) */
    html[lang="en"] .hero-outline {
        width: 37.8vw;
    }

    .part-t-l {
        top: 3vh;
        left: -3vw;
    }

    .part-t-c {
        width: 386px;
        top: -10vh;
    }

    .part-t-c.is-active {
        top: -3vh;
    }

    .part-t-r {
        top: 3vh;
        right: -3vw;
    }

    .part-m-l {
        left: -3vw;
    }

    .part-m-r {
        right: -3vw;
    }

    .part-b-l {
        bottom: -3vh;
        left: -3vw;
    }

    .part-b-c {
        bottom: -3vh;
    }

    .part-b-r {
        bottom: -3vh;
        right: -12vw;
    }
}

@media (min-width: 960px) {
    .part-t-l {
        width: 22.29vw;
        /* 214px */
        top: 0;
        left: 2.08vw;
        /* 20px (25% of 960 - 220) */
    }

    .part-t-c {
        width: 40.21vw;
        /* 386px */
        top: -3.13vw;
        /* -30px (approx -3vh) */
    }

    .part-t-r {
        width: 28.18vw;
        /* 270.5px */
        top: 0;
        right: 0vw;
        /* 25% of 960 - 240 */
    }

    .part-m-l {
        width: 10.89vw;
        /* 104.5px */
        left: -3.13vw;
        /* -30px (approx -3vw) */
    }

    .part-m-r {
        width: 14.69vw;
        /* 141px */
        right: -3.13vw;
        /* -30px (approx -3vw) */
    }

    .part-b-l {
        width: 30.21vw;
        /* 290px */
        bottom: -3.13vw;
        left: 0vw;
        /* 25% of 960 - 240 */
    }

    .part-b-c {
        width: 25.63vw;
        /* 246px */
        bottom: -3.13vw;
    }

    .part-b-r {
        width: 39.38vw;
        /* 378px */
        bottom: -3.13vw;
        right: -10.42vw;
        /* -100px (25% of 960 - 340) */
    }
}

@media (min-width: 1300px) {
    .hero-logo {
        width: 546px;
    }

    .hero-outline {
        width: 410px;
    }

    html[lang="en"] .hero-outline {
        width: 491px;
    }

    .part-t-c.is-active {
        top: -10vh;
    }
}

@media (min-width: 1550px) {

    .part-m-l,
    .part-m-r {
        display: none;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded .scroll-indicator {
    opacity: 1;
}

.loading-text {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.1em;
    z-index: 10;
    transition: opacity 0.5s ease;
}

body.loaded .loading-text {
    opacity: 0;
    pointer-events: none;
}

.loading-text span {
    display: inline-block;
    opacity: 0;
    animation: loading-anim 1.5s infinite;
}

.loading-text span:nth-child(1) {
    animation-delay: 0.0s;
}

.loading-text span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-text span:nth-child(3) {
    animation-delay: 0.2s;
}

.loading-text span:nth-child(4) {
    animation-delay: 0.3s;
}

.loading-text span:nth-child(5) {
    animation-delay: 0.4s;
}

.loading-text span:nth-child(6) {
    animation-delay: 0.5s;
}

.loading-text span:nth-child(7) {
    animation-delay: 0.6s;
}

.loading-text span:nth-child(8) {
    animation-delay: 0.7s;
}

.loading-text span:nth-child(9) {
    animation-delay: 0.8s;
}

.loading-text span:nth-child(10) {
    animation-delay: 0.9s;
}

@keyframes loading-anim {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.scroll-indicator span:first-child {
    display: block;
    width: 1px;
    height: 60px;
    background: transparent;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator span:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: scroll-line 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scroll-line {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* 2. About Area */
.section-title {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.about-text {
    margin-bottom: 20px;
}

.about {
    padding: 120px 0;
    background-color: #333;
    color: #dddddd;
}

.about .section-title {
    color: #e58cb3;
    font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "HGS Mincho E", "MS PMincho", "MS Mincho", serif;
}

.about-content {
    background-color: rgba(51, 51, 51, 0.85);
    /* #333 with 0.85 opacity */
    padding: 2em;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    /* Above kv_parts (z-index: 1) */
}

/* 3. Outline Area */
.outline {
    background-color: #444;
    color: #dddddd;
    padding-bottom: 120px;
}

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

.outline-table th,
.outline-table td {
    padding: 30px 20px;
    border: none;
    text-align: left;
    vertical-align: top;
}

.outline-table th {
    width: 25%;
    color: #e58cb3;
    font-weight: bold;
    border-top: 2px solid #e58cb3;
    text-align: right;
    line-height: normal;
}

@media (min-width: 768px) {
    .outline-table th {
        line-height: 2;
    }
}

.outline-table td {
    border-top: 1px solid #555555;
}

.outline-notice {
    margin-top: 10px;
    text-align: left;
    font-size: 12px;
}

/* Outline & Map Content Wrapper */
.outline-content,
.map-content {
    background-color: rgba(68, 68, 68, 0.85);
    /* #444 with 0.85 opacity */
    padding: 2em;
    border-radius: 30px;
    position: relative;
    z-index: 2;
    /* Above kv_parts */
}

/* Map Area */
.map-area {
    margin-top: 60px;
}

.google-map {
    width: 100%;
    height: 400px;
    border: 0;
    margin-bottom: 20px;
}

.map-details {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.static-map {
    width: 40%;
}

.static-map img {
    width: 100%;
    height: auto;
    display: block;
}

.access-info {
    width: 60%;
    font-size: 14px;
    line-height: 2;
}

@media (max-width: 767px) {
    .map-details {
        flex-direction: column;
        gap: 20px;
    }

    .static-map,
    .access-info {
        width: 100%;
    }

    .google-map {
        height: 300px;
    }
}

/* 5. Footer */
.footer {
    background-color: #d24986;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
}

.footer-content {
    background-color: rgba(210, 73, 134, 0.85);
    /* #d24986 with 0.85 opacity */
    display: inline-block;
    padding: 1em 2em;
    border-radius: 30px;
    position: relative;
    z-index: 2;
}

/* 4. Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 20px;
    z-index: 1000;
}

.cookie-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    font-size: 12px;
}

@media (min-width: 768px) {
    .cookie-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.btn-accept {
    background-color: #d24986;
    /* Brand color */
    color: #fff;
}

.btn-reject {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: rgba(255, 255, 255, 0.7);
}

/* Language Switcher Styles */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 0 40px;
    }
}

.language-switcher {
    position: relative;
    width: 68px;
    /* Reduced from 80px */
    height: 24px;
    /* Reduced from 32px */
    background-color: #d24986;
    /* Lighter Pink for visual compensation */
    border-radius: 12px;
    /* Reduced radius */
    padding: 3px;
    /* Reduced padding */
    display: flex;
    box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.2);
    /* Stronger inner shadow for depth */
    /* Neumorphism Inner Shadow */
    z-index: 20;
    pointer-events: auto;
}

.switcher-bg {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 30px;
    /* Reduced width */
    height: 18px;
    /* Reduced height */
    background-color: #FFFFFF;
    border-radius: 9px;
    /* Reduced radius */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
}

/* State for EN active */
.language-switcher.is-en .switcher-bg {
    transform: translateX(32px);
    /* Adjusted for new width */
}

/* index.html Language Switcher */
.lang-btn {
    flex: 1;
    border: none;
    background: transparent;
    font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10px;
    /* Reduced font size */
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #fff;
    /* White for inactive */
    z-index: 2;
    cursor: pointer;
    text-align: center;
    padding: 0;
    line-height: 18px;
    /* Match inner height */
    transition: color 0.3s ease;
    outline: none;
    opacity: 0.8;
    /* Slightly transparent white */
}

.lang-btn:hover {
    opacity: 1;
    color: #fff;
    /* Prevent pink color on hover */
}

/* Remove underline on hover */
.lang-btn::after {
    content: none;
}

/* index2.html Language Selector */
.current-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    color: #d24986;
    /* Pink */
    font-family: "Montserrat", "Lexend", sans-serif;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.lang-btn.active {
    color: #d24986;
    /* Pink */
    opacity: 1;
}

/* Minimalist Language Selector (index2.html) */
.lang-selector-minimal {
    position: relative;
    z-index: 20;
}



.current-lang:hover {
    color: #9e2b5d;
    /* Darker Pink */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    background-color: rgba(210, 73, 134, 0.05);
    /* Very light pink bg on hover */
}

.current-lang .icon-globe {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.current-lang .icon-chevron {
    width: 10px;
    height: 6px;
    stroke: currentColor;
    opacity: 0.8;
    /* Slightly more opaque for pink */
    transition: transform 0.2s ease;
}

.current-lang[aria-expanded="true"] .icon-chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #FFFFFF;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(210, 73, 134, 0.15);
    /* Pink tinted shadow */
    list-style: none;
    padding: 8px 0;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(210, 73, 134, 0.1);
    /* Subtle pink border */
}

.current-lang[aria-expanded="true"]+.lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li button {
    width: 100%;
    text-align: left;
    padding: 8px 16px;
    background: transparent;
    border: none;
    font-family: "Montserrat", "Lexend", sans-serif;
    font-size: 13px;
    color: #888;
    /* Keep inactive gray or make it lighter pink? Gray is safer for contrast unless active */
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown li button:hover {
    background: #fff0f6;
    /* Very light pink */
    color: #d24986;
}

.lang-dropdown li button.active {
    color: #d24986;
    font-weight: 700;
    background: #ffe3f0;
    /* Light pink */
}

/* Ghost UI / Minimalist Segmented Control (index3.html) */
.lang-segment-ghost {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Reduced gap */
    position: relative;
    z-index: 20;
}

/* Case 3: index3.html */
.lang-seg-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 32px;
    /* 40px -> 32px */
    height: 32px;
    border-radius: 50%;
    /* Circle on hover */
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Montserrat", "Lexend", sans-serif;
    font-size: 11px;
    /* 14px -> 11px */
    color: #d24986;
    /* Pink */
    position: relative;
    transition: all 0.2s ease;
    opacity: 0.7;
    /* Make inactive slightly transparent */
}

.lang-seg-btn:hover {
    background-color: rgba(210, 73, 134, 0.08);
    /* Light pink bg */
    opacity: 1;
}

.lang-seg-btn.active {
    color: #d24986;
    /* Active Pink */
    font-weight: 700;
    opacity: 1;
}

.lang-seg-btn.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    /* Adjusted for smaller button */
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    /* 4px -> 3px */
    height: 3px;
    background-color: #d24986;
    /* Pink dot */
    border-radius: 50%;
}

.lang-divider {
    width: 1px;
    height: 10px;
    /* 12px -> 10px */
    background-color: #ffdbe9;
    /* Light pink divider */
    margin: 0 2px;
}