/*
Theme Name: ANBABYHOME_202604
Author: Your Name
Version: 1.0
*/

:root {
    --color-primary: #fdd141;
    --color-app-feature: #ffca39;
    --color-text: #5D4037;
    --color-white: #fef2d1;
    --font-main: 'Inter', 'Kosugi Maru', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container-width: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #FDFCEF;
    /* Default paper-like BG */
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: var(--container-width);
    margin: -1px auto;
    padding: 0 20px;
}

/* Layout Utilities */
.section {
    padding: 80px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* Base sections from reference */
.site-main {
    background-image: url('images/03about_bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
}

/* FAQ Accordion Base */
/* FAQ Styles are defined later in the file */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    box-shadow: none;
    height: 120px;
    display: flex;
    align-items: center;
    /* Changed from stretch to center */
    padding: 0 40px;
    /* Space on sides for pill shape visibility */
    pointer-events: none;
    /* Let clicks pass through transparent area */
}

.header-container {
    background-color: var(--color-primary);
    border: 3.8px solid var(--color-white);
    border-radius: 999px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    height: 52px;
    pointer-events: auto;
}

.header-logo img {
    width: auto;
    max-width: 100%;
    max-height: 26px;
    margin: 4px 3px 0px 0px;
}


.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 5px;
}

.lang-switcher {
    position: relative;
    pointer-events: auto;
}

.lang-btn {
    background-color: #fdf7ca;
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 2px 0px 2px 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.lang-btn:hover {
    background-color: #fff;
}

.earth-icon {
    width: 25%;
    flex-shrink: 0;
}

.current-lang {
    font-size: 17px;
    font-weight: bold;
    color: black;
}

.arrow-icon {
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-top: 5px solid var(--color-text);
    margin-top: 3px;
    margin-left: 2px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #fdf7ca;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 120px;
    padding: 8px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: 0.3s;
    z-index: 1001;
}

.lang-dropdown.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Menu Language Switcher (Desktop Hide) */
.menu-lang-switcher {
    display: none;
}

.lang-dropdown a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: black;
    text-align: center;
}

.lang-dropdown a:hover {
    background-color: var(--color-primary);
}

.menu-trigger img {
    width: auto;
    max-width: 100%;
    max-height: 38px;
    cursor: pointer;
}

/* Main Visual */
.mv-section {
    background-image: url('images/01mv_bg.png');
    background-size: cover;
    background-position: center bottom;
    padding: 120px 0 0px;
    min-height: 700px;
    position: relative;
}

@media (max-width: 768px) {
    .mv-section {
        padding: 100px 0 0px;
        min-height: 840px;
    }
}

.mv-message {
    position: absolute;
    top: -25px;
    left: 50px;
    z-index: 10;
    width: auto;
    max-width: 520px;
}

/* MVロゴ・iPadエリア */
.mv-logo-area {
    position: relative;
    display: table;
    margin: 0 auto 40px;
}


.mv-main-img {
    display: block;
    margin: 0 auto;
    max-width: 630px;
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.mv-books {
    position: absolute;
    left: -9%;
    bottom: -40px;
    width: 160px;
    transition: 0.3s;
}

.mv-free-label {
    position: absolute;
    right: -9%;
    bottom: -40px;
    width: 160px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .mv-message {
        display: block;
        margin: 0px auto;
        width: 100%;
        max-width: 400px;
    }

    .mv-free-label {
        width: 25%;
        bottom: -20%;
        right: -1%;
    }

    .mv-books {
        width: 25%;
        bottom: -20%;
        left: -1%;
    }
}

.mv-download {
    position: absolute;
    bottom: -10%;
    width: 100%;
    z-index: 2;
}

.download-box {
    position: relative;
    display: inline-block;
    max-width: 630px;
    margin: 0 auto;
}

.download-base {
    display: block;
    width: 100%;
    height: auto;
}

.download-btns {
    position: absolute;
    bottom: 22%;
    left: 60%;
    transform: translateX(-50%);
    width: 360px;
    /* PCでのボタンエリアの幁E*/
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.download-btns a {
    width: 160px;
    /* PCでの吁E�Eタンの幁E*/
    display: block;
    flex-shrink: 0;
}

.download-btns img {
    width: 100%;
    /* aタグの幁E��合わせて伸縮 */
    height: auto;
    padding-left: 0;
    transform: none;
    /* scale()を使わずwidthで制御 */
    display: block;
}

@media (max-width: 768px) {
    .download-btns {
        position: absolute;
        bottom: 22%;
        left: 59%;
        /* 木札右側のボタンエリア開始位置 */
        width: 53%;
        /* ボタンエリアの幁E*/
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .download-btns a {
        width: 45%;
        /* 親コンチE��に対する吁E�Eタンの幁E*/
        display: block;
        flex-shrink: 0;
    }

    .download-box {
        position: relative;
        display: inline-block;
        max-width: 90%;
        /* モバイルでの木札自体�E最大幁E��整 */
    }

    .download-btns img {
        width: 100%;
        /* aタグの幁E��合わせて伸縮 */
        height: auto;
        padding: 0;
        transform: none;
        /* scale()を使わずwidthで制御 */
        display: block;
    }
}

/* Intro Section */
.intro-main-img {
    display: block;
    margin: 40px auto;
}

.intro-lead-top {
    font-size: 1.5rem;
    color: #5D4037;
    line-height: 1.8;
    margin-bottom: 20px;
}

.text-emphasis {
    font-weight: 800;
}

.intro-section {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    /* Space for the overlapping download box */
}

@media (max-width: 768px) {
    .intro-section {
        padding-top: 200px;
    }

    .intro-lead-top {
        font-size: 1.1rem;
    }

    .intro-lead-bottom {
        font-size: 1.5rem;
    }
}

.sp-only {
    display: none !important;
}

@media (max-width: 768px) {
    .sp-only {
        display: block !important;
    }

    .pc-only {
        display: none !important;
    }
}


.intro-title-img {
    max-width: 500px;
    margin-bottom: 30px;
}

.intro-content p {
    color: #863c01;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.text-highlight {
    color: #db4424;
}

.text-highlight-accent {
    color: #a96a06;
}

.intro-section {

    overflow: hidden;
}

/* Decoration Elements */
.intro-decorations img {
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.decor-garland-l {
    top: 90px;
    left: 0px;
    width: 19%;
}

.decor-garland-r {
    top: 90px;
    right: 0px;
    width: 19%;
}

.decor-flower-l1 {
    top: 20%;
    left: 3%;
    width: 7%;
}

.decor-flower-l2 {
    top: 56%;
    left: 9%;
    width: 7%;
}

.decor-flower-r1 {
    top: 29%;
    right: 2%;
    width: 7%;
}

.decor-flower-r2 {
    top: 81%;
    right: 8%;
    width: 7%;
}

/* Mockup Characters */
.iphone-deco-character-l {
    position: absolute;
    bottom: 18px;
    left: -182px;
    z-index: 5;
    pointer-events: none;
}

.iphone-deco-character-r {
    position: absolute;
    bottom: 19px;
    right: -160px;
    z-index: 5;
    pointer-events: none;
}

.intro-phone {
    margin-top: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {


    /* Hide specific decorations on mobile */
    .decor-garland-l,
    .decor-garland-r,
    .decor-flower-l1,
    .decor-flower-l2,
    .decor-flower-r1,
    .decor-flower-r2 {
        display: none;
    }

    .decor-garland-l {
        width: 47%;
        top: 5.5%;
    }

    .iphone-deco-character-l {
        width: 33%;
        left: 5px;
        bottom: 94%;
        z-index: 1;
    }

    .iphone-deco-character-r {
        width: 42%;
        right: 0px;
        bottom: 91%;
        z-index: 1;
    }

    .intro-phone {
        margin-top: 33%;
        margin-left: auto;
        margin-right: auto;
    }
}

.intro-iphone-img {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

.iphone-mockup {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.iphone-contents {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.iphone-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure it fits the frame correctly */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.iphone-content.active {
    opacity: 1;
}

.intro-phone-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: #5D4037;
    margin-top: 30px;
    line-height: 1.6;
}

.intro-phone-note {
    color: #db4424;
    font-weight: bold;
}

@media (max-width: 768px) {
    .intro-phone-text {
        font-size: 1.1rem;
    }
}

/* Features */
.features-section {
    background-image: url('images/base_bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    position: relative;
}

.features-section::before {
    content: "";
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('images/seam_03-04.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 10;
}

.features-list {
    margin-top: 60px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-img {
    flex: 1;
    position: relative;
}

.feature-anim {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* フィーチャーアニメーション個別調整用 */
.anim-01 {
    top: -14%;
    left: 25%;
    width: 70%;
}

.anim-02 {
    top: -18%;
    left: 60%;
    width: 35%;
}

.anim-03 {
    top: 58%;
    left: 1%;
    width: 31%;
}

.anim-04 {
    top: -16%;
    left: 6%;
    width: 42%;
}

@media (max-width: 768px) {
    .anim-01 {
        top: -10%;
        left: 20%;
        width: 60%;
    }

    .anim-02 {
        top: -16%;
        left: -2%;
        width: 34%;
    }

    .anim-03 {
        top: 55%;
        left: 0%;
        width: 35%;
    }

    .anim-04 {
        top: -11%;
        left: -1%;
        width: 42%;
    }
}

.feature-text {
    flex: 1;
    text-align: center;
    padding-bottom: 4%;
}

.feature-text-description {
    color: var(--color-white);
    max-width: 500px;
    margin: 0 auto;
}

.feature-num-img {
    width: 160px;
    /* Slightly larger as per mockup */
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.feature-text h3 {
    font-size: 1.8rem;
    color: var(--color-app-feature);
    margin-bottom: 15px;
}

/* Movie / Parents / FAQ */
.movie-section,
.parents-section,
.faq-section {
    background-image: url('images/base_bg.png');
    background-repeat: repeat-y;
    background-size: 100% auto;
    padding: 100px 0px 80px 0px;
    position: relative;
    /* Removed overflow: hidden to prevent clipping of decorations */
}

/* Ensure containers are above the leaf decorations */
.movie-section .container,
.parents-section .container,
.faq-section .container {
    position: relative;
    z-index: 5;
}

/* Floating Leaves */
.leaf-decor-r1,
.leaf-decor-r2,
.leaf-decor-r3,
.leaf-decor-r4,
.leaf-decor-l1,
.leaf-decor-l2,
.leaf-decor-l3 {
    position: absolute;
    /* max-width: 100px;
    min-width: 40px; */
    pointer-events: none;
    z-index: 1;
    /* Ensure leaves are on a low layer */
}

.leaf-decor-r1 {
    top: 23%;
    right: 5%;
    width: 9%;
}

.leaf-decor-l1 {
    top: 70%;
    left: 3%;
    width: 8%;
}

.leaf-decor-r2 {
    top: 30%;
    right: 5%;
    width: 9%;
}

.leaf-decor-l2 {
    top: 60%;
    left: 4%;
    width: 7%;
}

.leaf-decor-r3 {
    top: 68%;
    right: 8%;
    width: 11%;
}

.leaf-decor-r4 {
    top: 26%;
    right: 6%;
    width: 8%;
}

.leaf-decor-l3 {
    top: 30%;
    left: 4%;
    width: 8%;
}

/* Movie Mockup Characters */
.movie-deco-character-mic {
    position: absolute;
    top: 31%;
    left: -24%;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.movie-deco-character-buff {
    position: absolute;
    bottom: 15%;
    right: -29%;
    width: 165px;
    z-index: 2;
    pointer-events: none;
}

@media (max-width: 768px) {

    .movie-deco-character-mic,
    .movie-deco-character-buff {
        display: none !important;
    }

    .leaf-decor-r1 {
        display: none !important;
    }

    .leaf-decor-l1 {
        top: -11%;
        left: 61%;
        width: 17%;
    }

    .leaf-decor-r2 {
        top: -5%;
        left: 8%;
        width: 12%;
    }

    .leaf-decor-l2 {
        top: 79%;
        left: 80%;
        width: 15%;
    }

    .leaf-decor-r3 {
        display: none !important;
    }

    .leaf-decor-r4 {
        top: 89.5%;
        right: 75%;
        width: 17%;
    }

    .leaf-decor-l3 {
        display: none !important;
    }
}

.faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    margin-bottom: 10px;
    background: #f3da65;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-item.is-open {
    border-radius: 20px;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    color: #5D4037;
    background: #f3da65;
    transition: background 0.3s;
}

.q-prefix {
    margin-right: 15px;
    flex-shrink: 0;
}

.faq-question .icon {
    color: #633f05;
    font-weight: bold;
    display: inline-block;
    transform: scale(3);
    transform-origin: center;
    margin-left: auto;
    /* 右に寁E��めE*/
    margin-right: 15px;
}

.faq-question:hover {
    background: #fdfcef;
}

.faq-answer {
    padding: 20px 30px;
    display: none;
    line-height: 1.8;
    color: #5D4037;
    border-top: 1px dashed #D7CCC8;
    background: #fef2d1;
}

.movie-mockup {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
}

.movie-logo {
    position: absolute;
    top: -140px;
    /* Signboard placed within the 100px padding + 50px margin area */
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.movie-frame-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    pointer-events: none;
}

@media (max-width: 768px) {
    .movie-section {
        padding-top: 180px;
        /* Maintain large padding for mobile to clear decorations */
    }

    .movie-mockup {
        margin-top: 0px;
    }

    .movie-logo {
        position: absolute;
        top: -140px;
        /* Positioned within the section's 180px padding area */
        left: 50%;
        transform: translateX(-50%);
        display: block;
    }
}

.movie-video-wrapper {
    position: absolute;
    top: 51%;
    left: 49.5%;
    width: 58.5%;
    height: 48%;
    transform: translate(-50%, -50%);
    z-index: 1;
    overflow: hidden;
}

.movie-video-wrapper iframe,
.movie-video-wrapper video {
    width: 100%;
    height: 100%;
}

.parents-intro-wrap {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* Parents */
.parents-box {
    background-image: url('images/img_to-the-parents_paper.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-color: transparent;
    padding: 60px 80px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.parents-box p {
    margin: 0px 20px 20px 20px;
    font-weight: bold;
}

/* Specification */
.spec-section {
    background-image: url('images/08specification_bg.png');
    background-size: cover;
}

.spec-box {
    max-width: 800px;
    margin: 0 auto 70px;
    text-align: center;
}

.spec-logo {
    display: block;
    margin: 0 auto 50px;
    max-width: 440px;
    width: 100%;
}

.spec-list {
    text-align: left;
    max-width: 680px;
    margin: 0 auto;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    /* 褁E��行対応�Eため top 揁E�� */
    gap: 20px;
    margin-bottom: 25px;
}

.spec-label {
    background: #336f25;
    color: #fff;
    padding: 0 15px;
    /* 上下パチE��ングを廁E��し高さで制御 */
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 85px;
    text-align: center;
    white-space: nowrap;
    /* 精寁E��列：contentのline-height 1.6 (0.95rem * 1.6 = 1.52rem) に高さを合わせめE*/
    height: 1.52rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    font-weight: 500;
}

.spec-prefix {
    display: inline-block;
    margin-left: 2%;
}

@media (max-width: 768px) {
    .spec-item {
        gap: 10px;
    }

    .spec-label {
        min-width: 70px;
        font-size: 0.8rem;
        padding: 0 10px;
        /* 精寁E��列：contentのline-height 1.6 (0.85rem * 1.6 = 1.36rem) に高さを合わせめE*/
        height: 1.36rem;
    }

    .spec-content {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .spec-label {
        height: auto;
        padding: 2px 12px;
    }
}

/* Footer */
.site-footer {
    background-image: url('images/09footer_bg.png');
    background-size: cover;
    padding-bottom: 160px;
    color: #5D4037;
    position: relative;
    /* Added to allow absolute child positioning */
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-nav li {
    font-size: 0.9rem;
    border-right: 1px solid #5D4037;
    padding-right: 30px;
}

.footer-nav li:last-child {
    border-right: none;
}

.footer-company {
    text-align: center;
    margin-bottom: 40px;
}

.footer-company img {
    max-width: 200px;
    margin-bottom: 20px;
}

.company-info p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    margin-top: 20px;
}

.footer-container {
    font-weight: bold;
}

/* Page Top Button */
.page-top {
    position: absolute;
    /* Changed from fixed to absolute */
    right: 30px;
    bottom: 30px;
    width: 90px;
    height: 80px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

.page-top:hover {
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .page-top {
        right: 50%;
        transform: translateX(50%);
        bottom: 30px;
    }

    .page-top:hover {
        transform: translate(50%, -5px);
        /* Maintain horizontal center + vertical lift */
    }
}

/* Responsive (SP) */
@media (max-width: 768px) {
    .site-header {
        height: 80px;
        padding: 0 15px;
    }

    .header-container {
        height: 60px;
    }

    body {
        padding-top: 0;
    }

    .header-logo img {
        width: auto;
        max-width: 100%;
        max-height: 25px;
    }

    .lang-switcher img,
    .menu-trigger img {
        width: auto;
        max-width: 100%;
        max-height: 40px;
    }

    .header-actions {
        gap: 15px;
    }

    .feature-item,
    .feature-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 15px;
    }

    .header-logo img {
        max-height: 20px;
    }

    .lang-switcher img,
    .menu-trigger img {
        max-height: 25px;
    }

    .section {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .mv-main-img {
        max-width: 100%;
    }

    .spec-box {
        padding: 20px 20px 130px 20px;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-nav li {
        border-right: none;
        padding-right: 0;
    }

    .page-top {
        right: 50%;
        transform: translateX(50%);
        bottom: 75px;
        height: 50px;
    }

    .page-top:hover {
        transform: translate(50%, -5px);
    }

    .mv-section {
        padding: 100px 0 0px;
        min-height: 650px;
    }

    .intro-section {
        padding-top: 45%;
    }

}

/* Page Specific Backgrounds */
.page-contact-main {
    background-image: url('images/base_bg.png');
    background-repeat: repeat;
    background-size: 500px auto;
    padding: 60px 0 100px;
}

.contact-container {
    background-image: url('images/base_bg.png');
    background-repeat: repeat;
    background-size: 100% auto, 100% auto, 100% auto, 500px auto;
    padding: 0px 40px 65px 40px;
    max-width: 900px !important;
    position: relative;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 40px;
    color: #5D4037;
    font-weight: bold;
}

.breadcrumbs a {
    color: #336f25;
}

.breadcrumbs span {
    color: #8D6E63;
}

/* Contact Header */
.contact-title-img-wrap {
    margin-bottom: 45px;
}

.contact-title-img {
    width: 30%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Page Specific Title Image Sizes */
.page-contact .contact-title-img {
    width: 52%;
}

.page-privacy .contact-title-img {
    min-width: 300px;
    width: 55%;
}

.page-rules .contact-title-img {
    width: 40%;
}

.contact-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #5D4037;
    margin: 0;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: #5D4037;
    font-weight: bold;
}

/* Illustration */
.contact-mv-img-wrap {
    margin-bottom: 40px;
}

.contact-mv-img {
    max-width: 600px;
    width: 100%;
}

/* Intro Text */
.contact-intro-text {
    margin-top: 30px;
    margin-bottom: 40px;
    line-height: 1.8;
    color: #5D4037;
    font-weight: 500;
}

.contact-intro-text b {
    color: #c54a0d;
}

.contact-lead-links {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-lead-links a {
    color: #336f25;
    font-weight: bold;
    text-decoration: underline;
    font-size: 1.05rem;
}

.contact-lead-links a:hover {
    color: #db4424;
}

/* Form Styles (MW WP Form) */
.contact-form-area {
    max-width: 700px;
    margin: 0 auto 60px;
    padding: 15px 40px;
}

.status-message-box {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-weight: bold;
    display: none;
    line-height: 1.5;
}

.status-message-box.is-success {
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 2px solid #A5D6A7;
}

.status-message-box.is-error {
    background-color: #FFEBEE;
    color: #C62828;
    border: 2px solid #EF9A9A;
}

/* MW WP Form Table & Inputs */
.mw_wp_form table {
    width: 100%;
    margin-bottom: 30px;
    border-collapse: collapse;
}

.mw_wp_form th,
.mw_wp_form td {
    padding: 15px 0;
    border-bottom: 1px dashed #D7CCC8;
    text-align: left;
}

.mw_wp_form th {
    width: 30%;
    vertical-align: top;
    color: #5D4037;
    font-weight: bold;
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #673100;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background: #FDFCEF;
    color: #5D4037;
    transition: 0.3s;
}

.mw_wp_form input:focus,
.mw_wp_form textarea:focus {
    border-color: #336f25;
    outline: none;
    background: #fff;
}

.mw_wp_form .required {
    background: #E53935;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    margin-left: 8px;
    vertical-align: middle;
}

.mw_wp_form_confirm table td {
    font-weight: bold;
    color: #5D4037;
}

/* Buttons */
.mw_wp_form .mwform-ctrl-btn {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.mw_wp_form input[type="submit"],
.mw_wp_form input[type="button"],
.btn-confirm {
    background-image: url('images/contact/btn_confirm.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    color: transparent;
    border: none;
    padding: 0;
    width: 40%;
    max-width: 450px;
    min-width: 250px;
    aspect-ratio: 350 / 85;
    height: auto;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    box-shadow: none;
    transition: 0.3s;
    display: block;
    margin: 0 auto;
}

.mw_wp_form input[type="submit"]:hover,
.mw_wp_form input[type="button"]:hover,
.btn-confirm:hover {
    background-image: url('images/contact/btn_confirm_over.png');
}

/* English Button Images */
.is-en-page .mw_wp_form input[type="submit"],
.is-en-page .mw_wp_form input[type="button"],
.is-en-page .btn-confirm {
    background-image: url('images/contact/btn_confirm-en.png');
}

.is-en-page .mw_wp_form input[type="submit"]:hover,
.is-en-page .mw_wp_form input[type="button"]:hover,
.is-en-page .btn-confirm:hover {
    background-image: url('images/contact/btn_confirm-en_over.png');
}

/* Agreement */
.mw_wp_form dd.agree {
    text-align: center;
    margin: 40px auto 0;
}

.privacy-consent {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
    flex-wrap: nowrap;
}

.privacy-consent label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.privacy-consent input[type="checkbox"] {
    width: 25px;
    /* Adjusting to a balanced size */
    height: 25px;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.mwform-checkbox-field-text {
    display: inline-block;
}

/* Privacy Policy Link in Form */
.mw_wp_form dd.agree a {
    text-decoration: underline;
    color: #5D4037;
    font-weight: bold;
    display: inline-block;
    margin: 10px auto 35px;
    /* Gap to button */
}

.mw_wp_form dd.agree a:hover {
    color: #c54a0d;
    text-decoration: underline;
}

/* Breadcrumbs for Privacy Page */
.page-privacy .breadcrumbs {
    margin: -10px 0 30px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    /* White breadcrumbs on green hero */
}

.page-privacy .breadcrumbs a {
    color: #fff;
    text-decoration: none;
}

.page-privacy .breadcrumbs a:hover,
.page-rules .breadcrumbs a:hover {
    text-decoration: underline;
}

/* Privacy & Rules Background Fix */
.page-privacy.page-contact-main,
.page-rules.page-contact-main {
    background-image: url('images/base_bg.png') !important;
    /* Apply green pattern globally */
    background-color: transparent !important;
}

/* ===========================
   Privacy & Rules Hero Section
   (independent from contact)
=========================== */

.privacy-hero,
.rules-hero {
    padding-bottom: 20px;
    background-image: url('images/base_bg.png') !important;
    /* Green pattern only for hero */
    background-size: cover;
    background-position: center bottom;
    position: relative;
    z-index: 1;
}

.privacy-container,
.rules-container {
    padding: 0px 40px 25px 40px;
    /* Reduced bottom padding */
    max-width: 900px !important;
    position: relative;
    margin: 0 auto;
}

.privacy-hero .privacy-header,
.rules-hero .rules-header {
    margin-top: 20px;
    margin-bottom: 0px;
}

.rules-header .legal-title {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0;
    font-size: 2.2rem;
    padding-top: 15px;
    letter-spacing: 0.1em;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.privacy-hero .contact-title-img {
    width: 60%;
    max-width: 500px;
}

.privacy-content-area {
    padding: 0px 0 100px;
    margin-top: -30px;
    position: relative;
    /* Anchor for leaf decorations */
    z-index: 5;
    overflow: hidden;
    /* Prevent leaves from causing horizontal scroll */
}

/* Leaf Decorations (positioned relative to .privacy-content-area) */
.privacy-decorations img {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    height: auto;
}

.privacy-leaf-01 {
    top: 3%;
    right: 10%;
    width: 8%;
}

.privacy-leaf-02 {
    top: 1.5%;
    left: 9%;
    width: 8%;
}

.privacy-leaf-03 {
    top: 79%;
    right: 10%;
    width: 8%;
}

.privacy-leaf-04 {
    top: 41%;
    left: 13%;
    width: 8%;
}

.privacy-leaf-05 {
    top: 40%;
    right: 12%;
    width: 10%;
}

.privacy-leaf-07 {
    top: 81%;
    left: 9%;
    width: 8%;
}

@media (max-width: 768px) {
    .privacy-decorations img {
        display: none;
        /* Hide on mobile to avoid clutter */
    }
}

/* Image Width Utilities */
.img-w-10 {
    width: 10% !important;
    height: auto !important;
}

.img-w-20 {
    width: 20% !important;
    height: auto !important;
}

.img-w-30 {
    width: 30% !important;
    height: auto !important;
}

.img-w-40 {
    width: 40% !important;
    height: auto !important;
}

.img-w-50 {
    width: 50% !important;
    height: auto !important;
}

.img-w-60 {
    width: 60% !important;
    height: auto !important;
}

.img-w-70 {
    width: 70% !important;
    height: auto !important;
}

.img-w-80 {
    width: 80% !important;
    height: auto !important;
}

.img-w-90 {
    width: 90% !important;
    height: auto !important;
}

.img-w-100 {
    width: 100% !important;
    height: auto !important;
}

/* Allow inline style width to override */
.legal-content img[style*="width"] {
    max-width: 100%;
}

/* Legal Content Area - 3-part Frame */
.legal-frame-wrapper {
    max-width: 960px;
    margin: 0px auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
    position: relative;
    /* Ensure stacking context */
    z-index: 10;
    /* Always above the leaf decorations (z-index: 2) */
}

.legal-frame-top {
    background-image: url('images/contact/img_policy_frame_top.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1760 / 45;
    /* Dynamically maintain aspect ratio */
}

.legal-frame-middle {
    background-image: url('images/contact/img_policy_frame_pattern.png');
    background-size: 100% auto;
    background-repeat: repeat-y;
    width: 100%;
}

.legal-frame-bottom {
    background-image: url('images/contact/img_policy_frame_bottom.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    width: 100%;
    aspect-ratio: 1760 / 48;
    /* Dynamically maintain aspect ratio */
    margin-top: -1px;
    /* Avoid gap */
}

.legal-content {
    padding: 20px 90px;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 10px 30px;
    }

    /* Removed static heights to let aspect-ratio handle scaling on mobile */

    .privacy-content-area {
        margin-top: -20px;
    }
}

.legal-content h1,
.legal-title {
    font-size: 2rem;
    color: #000;
    margin-bottom: 30px;
    font-family: inherit;
    font-weight: 800;
}

.legal-content h3 {
    font-size: 1.35rem;
    color: #a96a06;
    border-bottom: 2px solid #fecb7e;
    padding-bottom: 8px;
    margin: 45px 0 20px;
    font-weight: 800;
}

.legal-content p {
    margin-bottom: 1.5em;
    color: #333;
}

.legal-content ul {
    margin: 20px 0;
    padding-left: 25px;
}

.legal-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.legal-content .lang_en {
    font-family: sans-serif;
}

/* --- Contact Page Refresh --- */
.page-contact-main {
    background-image: none !important;
    background-color: #f7f3e8;
    /* 背景画像のベース色（隙間対策） */
    padding: 0;
}

/* Hero Section (Green BG) */
.contact-hero-section {
    background-image: url('images/base_bg.png');
    background-size: cover;
    background-position: center bottom;
    padding: 120px 0 0px;
    position: relative;
    margin-bottom: -10px;
    /* 隙間対策 */
    overflow: hidden;
    /* 装飾のはみ出し防止 */
}

/* Hero Section (Green BG) */
.privacy-hero-section {
    background-image: url('images/base_bg.png');
    background-size: cover;
    background-position: center bottom;
    padding: 120px 0 0px;
    position: relative;
    margin-bottom: -10px;
    /* 隙間対策 */
    overflow: hidden;
    /* 装飾のはみ出し防止 */
}

/* Hero Decorations */
.contact-hero-decorations img {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.privacy-hero-decorations img {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.hero-leaf-01 {
    top: 25%;
    right: 4%;
    width: 8%;
}

.hero-leaf-02 {
    top: 30%;
    left: 4%;
    width: 8%;
}

.hero-leaf-03 {
    top: 80%;
    right: 4%;
    width: 8%;
}

.hero-leaf-04 {
    top: 56%;
    left: 10%;
    width: 8%;
}

.hero-leaf-05 {
    top: 44%;
    right: 12%;
    width: 11%;
}

.hero-leaf-07 {
    top: 82%;
    left: 4%;
    width: 8%;
}


.contact-hero-content {
    padding-bottom: 20px;
}

.contact-hero-section .breadcrumbs {
    margin-bottom: 30px;
}

.privacy-hero-section .breadcrumbs {
    margin-bottom: 30px;
}

.contact-hero-section .breadcrumbs a,
.contact-hero-section .breadcrumbs span {
    color: #fff;
}

.privacy-hero-section .breadcrumbs a,
.privacy-hero-section .breadcrumbs span {
    color: #fff;
}

.contact-title-img {
    width: 80%;
    /* 70%から80%へ少し拡大 */
    max-width: 900px;
    height: auto;
    margin-bottom: 30px;
}

.contact-intro-text p {
    color: #fff;
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 25px;
}

.contact-intro-text p b span {
    color: #fdbc04;
    /* 黄色ハイライト */
}

.contact-lead-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.contact-lead-links a {
    color: #fecac1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 0;
    border-bottom: 2px solid #fecac1;
    margin: 0 10px;
    transition: opacity 0.3s;
}

.contact-lead-links a:hover {
    opacity: 0.7;
}

.contact-mv-img-wrap {
    margin-top: 60px;
}

.contact-mv-img {
    width: 65%;
    max-width: 650px;
    height: auto;
}

/* Wave Separator */
.contact-wave-separator {
    position: relative;
    z-index: 10;
    margin-top: -65px;
    /* 重なりを深くして隙間を防ぐ */
    margin-bottom: -10px;
}

.contact-wave-separator img {
    width: 101%;
    margin-left: -0.5%;
    height: auto;
    display: block;
    transform: scaleY(-1);
}

/* Form Section (Pattern BG) */
.contact-form-section {
    background-image: url('images/03about_bg.png');
    background-size: repeat;
    padding: 60px 0 90px;
    /* 下部余白を削減 */
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.contact-form-area {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Success Message */
.status-message-box {
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
    padding: 10px;
    border-radius: 8px;
}

.status-message-box.is-success {
    color: #2e7d32;
}

.status-message-box.is-error {
    color: #c62828;
}

/* Decorations in Form Area */
.contact-decorations img {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.contact-decorations .decor-garland-l {
    top: 1%;
    width: 25%;
}

.contact-decorations .decor-garland-r {
    top: 15%;
    right: -2%;
    width: 25%;
}

.contact-decorations .decor-flower-l1 {
    top: 50%;
    left: 5%;
    width: 8%;
}

.contact-decorations .decor-flower-r1 {
    top: 62%;
    right: 6%;
    width: 8%;
}

/* MW WP Form Styling Customization */
.mw_wp_form dl dt {
    font-size: 1.1rem;
    color: #5D4037;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: left;
}

.mw_wp_form dl dd {
    margin-left: 0;
    margin-bottom: 30px;
}

.mw_wp_form input[type="text"],
.mw_wp_form input[type="email"],
.mw_wp_form textarea {
    width: 100%;
    padding: 15px;
    border: 3px solid #673100;
    border-radius: 10px;
    background-color: #FDFCEF;
    font-family: var(--font-main);
    font-weight: bold;
    color: #5D4037;
    font-size: 1rem;
}

.mw_wp_form textarea {
    min-height: 200px;
}

/* Agreement Checkbox Customization */
.privacy-consent {
    margin-top: 40px;
}

.privacy-consent label {
    font-size: 1rem;
    font-weight: bold;
}

.privacy-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #5D4037;
}

/* Submit Button - Red Plate */
.mwform-ctrl-btn {
    text-align: center;
    margin-top: 50px;
}

.mw_wp_form input[type="submit"],
.btn-confirm-trigger {
    display: block;
    width: 320px;
    height: 85px;
    margin: 0 auto;
    background-image: url('images/contact/btn_confirm.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    text-indent: -9999px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.mw_wp_form input[type="submit"]:hover {
    background-image: url('images/contact/btn_confirm_over.png') !important;
    transform: scale(1.05);
}

/* Confirmation Page Specifics */
.confirm-mode dl dt {
    border-bottom: none;
}

.confirm-mode dl dd {
    border: 3px solid #673100;
    background: #FDFCEF;
    padding: 20px;
    border-radius: 12px;
}

/* thanks area back button */
.btn-back-home {
    display: block;
    width: 324px;
    height: 85px;
    margin: 0 auto;
    text-indent: -9999px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.is-jp .btn-back-home {
    background-image: url('images/contact/btn_confirm-back-to-top-jp.png');
}

.is-en .btn-back-home {
    background-image: url('images/contact/btn_confirm-back-to-top-en.png');
}

.btn-back-home:hover {
    transform: scale(1.05);
}

/* Responsive SP */
@media (max-width: 768px) {

    .page-contact .contact-title-img {
        width: 90%;
    }

    .contact-hero-section {
        padding: 100px 0 0px;
    }

    .privacy-hero-section {
        padding: 100px 0 0px;
    }


    .contact-mv-img {
        width: 90%;
    }

    .contact-lead-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-leaf-02,
    .hero-leaf-05,
    .contact-decorations .decor-flower-l1,
    .contact-decorations .decor-flower-r1,
    .contact-decorations .decor-flower-l2,
    .contact-decorations .decor-flower-r2 {
        display: none;
    }

    .contact-decorations .decor-garland-l {
        width: 45%;
        top: -10px;
    }

    .contact-decorations .decor-garland-r {
        display: none;
    }

    .mw_wp_form input[type="submit"] {
        width: 260px;
        height: 70px;
    }

    .mw_wp_form th,
    .mw_wp_form td {
        display: block;
        width: 100%;
    }

    .mw_wp_form td {
        border-bottom: 2px dashed #D7CCC8;
    }
}


/* Global Menu */
.global-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.global-menu.is-active {
    visibility: visible;
    opacity: 1;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.menu-content {
    position: absolute;
    top: 45%;
    left: 52.5%;
    transform: translate(-50%, -50%);
    width: fit-content;
    max-width: 90%;
    z-index: 2;
    text-align: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.global-menu.is-active .menu-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.menu-close-area {
    position: absolute;
    top: -8%;
    right: -44%;
    z-index: 10;
}

.menu-close-btn {
    width: 39%;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.menu-close-btn:hover {
    transform: scale(1.1);
}

.menu-close-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 65px;
    padding: 0;
    list-style: none;
}

.menu-list li {
    width: 100%;
    max-width: 500px;
}

.menu-list a {
    display: flex;
    align-items: center;
    gap: 30px;
    text-decoration: none;
    color: #fff;
    text-align: left;
}

.menu-item-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu-item-text {
    width: fit-content;
    position: relative;
    padding-bottom: 5px;
}

.menu-item-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #fff;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu-list li:hover .menu-item-text::after {
    width: 100%;
}

.menu-item-text img {
    max-height: 55px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}


@media (max-width: 768px) {
    .menu-content {
        top: 42%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: fit-content;
        max-width: 90%;
        padding: 0;
        box-sizing: border-box;
    }

    .menu-list {
        gap: 27px;
    }

    .menu-list li {
        max-width: 280px;
    }

    .menu-item-img {
        width: 45px;
        height: 45px;
    }

    .menu-item-text img {
        max-height: 38px;
    }

    /* Mobile Language Switcher */
    .header-lang-switcher {
        display: none;
    }

    .menu-lang-switcher {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 60px auto 0;
        padding-top: 54px;
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        width: 100%;
        max-width: 280px;
    }

    .menu-lang-switcher .lang-btn {
        background: transparent;
        box-shadow: none;
        color: #fff;
        margin-bottom: 15px;
        padding: 0;
    }

    .menu-lang-switcher .earth-icon {
        width: 24px;
        filter: brightness(0) invert(1);
    }

    .menu-lang-switcher .current-lang {
        color: #fff;
        font-size: 1rem;
    }

    .menu-lang-switcher .lang-options {
        display: flex;
        align-items: center;
        gap: 15px;
        color: #fff;
    }

    .menu-lang-switcher .lang-options a {
        color: rgba(255, 255, 255, 0.6);
        text-decoration: none;
        font-weight: bold;
        font-size: 1.1rem;
        transition: 0.3s;
    }

    .menu-lang-switcher .lang-options a.active {
        color: #fff;
        border-bottom: 2px solid #fff;
    }

    .menu-lang-switcher .sep {
        color: rgba(255, 255, 255, 0.3);
    }

    .menu-close-area {
        top: -12%;
        right: -72%;
    }

    .menu-close-btn {
        width: 34%;
    }
}