/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.125rem, 1.3vw, 1.25rem);
    line-height: 1.7;
    color: #F8F6F1;
    background-color: #161616;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    font-weight: 300;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul, ol {
    list-style: none;
}

/* ==========================================================================
   Main Background (LP全体の背景)
   ========================================================================== */
.main-background {
    position: relative;
    background-image: url('../img/hero.png');
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #161616;
}

/* 全体背景を見せるため、各セクションの背景を透過 */
.main-background .story,
.main-background .products,
.main-background .split-feature,
.main-background .hero {
    background-color: transparent;
}



/* Theme Utilities */
.bg-light {
    background-color: #F8F6F1;
    color: #262626;
}

.text-dark {
    color: #262626;
}

.text-light {
    color: #F8F6F1;
}

/* ==========================================================================
   Layout & Grid System
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
}

.container--narrow {
    max-width: 800px;
}

.section-padding {
    padding: 8rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid--2 {
    grid-template-columns: 1fr;
}

.grid--3 {
    grid-template-columns: 1fr;
}

.grid--4 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
        gap: 4rem;
    }
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* ==========================================================================
   Typography & Sections
   ========================================================================== */
.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 2rem;
}

.overline {
    display: block;
    font-size: clamp(0.85rem, 1vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #C9A227;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    border-bottom: 1px solid #E8E8E8;
    padding-bottom: 1rem;
}

/* Story */
.story {
    background-color: transparent;
    color: #F8F6F1;
}

/* Products */
.main-background .products.bg-light {
    background-color: transparent;
    color: #F8F6F1;
}

.main-background .products .text-dark {
    color: #F8F6F1;
}

.main-background .products .section-header {
    border-bottom-color: rgba(248, 246, 241, 0.25);
}

.main-background .products .link-arrow {
    color: #F8F6F1;
}

/* ==========================================================================
   Components (Header & Navigation)
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.is-scrolled {
    background-color: rgba(15, 15, 15, 0.92);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(130, 147, 86, 0.15);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__nav {
    display: none;
}

@media (min-width: 768px) {
    .header__nav {
        display: block;
    }
}

.header__menu {
    display: flex;
    gap: 2rem;
}

.header__link { 
    font-size: clamp(1rem, 1.2vw, 1.15rem); 
    letter-spacing: 0.05em; 
    color: #bbf527;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.header__link:hover { 
    color: #9bb068; 
    opacity: 1; 
}

.header__logo {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    text-decoration: none;
}

.header__logo-kanji {
    color: #C9A227;
    font-weight: 300;
}

/* 右側アクションエリア ＆ 多言語切替 (JA / EN / DE / ZH) */
.header__actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    margin-right: 0.5rem;
}

.lang-link {
    color: #9bb068;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 2px 0;
}

.lang-link:hover,
.lang-link.is-active {
    color: #7df527;
    font-weight: 500;
    border-bottom: 1px solid #9bb068;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.header__action-btn {
    background: none;
    border: none; 
    color: #829356;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
}

.header__action-btn:hover { 
    color: #9bb068; 
    transform: scale(1.08);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    letter-spacing: 0.05em;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn--primary {
    background-color: #C9A227;
    color: #161616;
}

.btn--primary:hover {
    background-color: #b59122;
}

.btn--secondary {
    background-color: transparent;
    border-color: #F8F6F1;
    color: #F8F6F1;
}

.btn--secondary:hover {
    background-color: #F8F6F1;
    color: #161616;
}

.btn--outline {
    border-color: #262626;
    color: #262626;
}

.btn--outline:hover {
    background-color: #262626;
    color: #F8F6F1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 8rem;
}

.hero__title {
    font-size: clamp(3rem, 6vw, 4.8rem);
    margin-bottom: 1.25rem;
    white-space: nowrap;
}
@media (max-width: 767px) {
    .hero__title {
        white-space: normal;
    }
}

.hero__subtitle {
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 4rem;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Product Card & Features
   ========================================================================== */
.product-card__image-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background-color: #F0EEE9;
    aspect-ratio: 4/5;
    margin-bottom: 1rem;
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__title {
    font-size: clamp(1.15rem, 1.4vw, 1.3rem);
    margin-bottom: 0.35rem;
}

.product-card__price {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: #555555;
}

.benefit-list {
    margin-top: 2rem;
}

.benefit-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
    color: #555555;
    font-size: 1.125rem;
}

.benefit-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #C9A227;
}

/* ==========================================================================
   Elegant Feature Section with Wagara Pattern
   ========================================================================== */
.elegant-feature {
    position: relative;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
    background-color: #0d0d0d;
    background-image: 
        linear-gradient(rgba(13, 13, 13, 0.5), rgba(13, 13, 13, 0.5)), 
        url('../img/hero2.png');
    background-repeat: no-repeat;
    background-position: right;
    background-size: auto;
    filter: contrast(125%) brightness(110%);
    overflow: hidden;
}

.elegant-feature__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(13, 13, 13, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

.elegant-feature .container {
    position: relative;
    z-index: 2;
}

.elegant-title {
    font-size: clamp(2.25rem, 3vw, 2.75rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-bottom: 2rem;
    color: #f4f4f0;
}

.elegant-text {
    font-size: clamp(1.1rem, 1.3vw, 1.25rem);
    line-height: 1.9;
    letter-spacing: 0.05em;
    color: #d1d1d1;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.elegant-link {
    display: inline-block;
    margin-top: 3rem;
    padding-bottom: 0.5rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #c5a059;
    border-bottom: 1px solid rgba(197, 160, 89, 0.4);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.elegant-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    padding-bottom: 0.2rem;
    letter-spacing: 0.2em;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */
.js-reveal,
.css-reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(8px);
    will-change: opacity, transform, filter;
    transition: 
        opacity 0.4s ease-out,
        transform 0.4s ease-out,
        filter 0.4s ease-out;
}

.js-reveal.is-visible,
.css-reveal.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
    filter: blur(0) !important;
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-image: 
        linear-gradient(rgba(15, 15, 15, 0.85), rgba(15, 15, 15, 0.00)), 
        url('../img/wagaramoyou.jpg');
    background-repeat: repeat;
    background-position: center;
    background-size: 300px auto;
    color: #ffffff;
    position: center;
    padding-top: 100px;

}

.footer__heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: #E8E8E8;
}

.footer__links ul li {
    margin-bottom: 0.5rem;
}

.footer__links ul a {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
}

.footer__links ul a:hover {
    color: #F8F6F1;
}

.newsletter-form {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.5rem;
}

.newsletter-form input {
    background: none;
    border: none;
    color: #F8F6F1;
    flex: 1;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    outline: none;
}

.newsletter-form button {
    background: none;
    border: none;
    color: #C9A227;
    cursor: pointer;
    font-size: 1.35rem;
}

.footer__bottom {
    width: 100vw;
    margin-top: 8rem;
    margin-left: calc(50% - 50vw);

    padding: 2rem 5vw;

    border-top: 1px solid rgba(255, 255, 255, 0.05);

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: clamp(0.875rem, 0.9vw, 1rem);

    background-color: #000000;

    box-sizing: border-box;
}

.footer__legal a {
    margin-left: 1rem;
    color: inherit;
}

/* ==========================================================================
   Hero Section
   CSS Only Parallax
   ========================================================================== */

.parallax-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
   /* isolation: isolate;*/
}


/* --------------------------------------------------------------------------
   Parallax Background
   -------------------------------------------------------------------------- */

.parallax-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}


/* Background Image */

.hero__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /*
     * CSSだけでパララックス効果を実現
     */
    background-attachment: fixed;
}


/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */

.hero__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.35);

    z-index: 1;
}


/* --------------------------------------------------------------------------
   Hero Content
   -------------------------------------------------------------------------- */

.hero__content {
    position: relative;
    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding-top: 8rem;
}


/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {

    .hero__background {
        /*
         * モバイルでは fixed が正常に動作しない
         * ブラウザがあるため通常スクロールに変更
         */
        background-attachment: scroll;
        background-position: center center;
    }

}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .hero__background {
        background-attachment: scroll;
    }

}
/* ==========================================
   多言語切替フェードアニメーション
   ========================================== */

/* 1. 通常表示時のスタイル（アニメーションの最終状態） */
[data-lang-ja],
[data-lang-en],
[data-lang-de],
[data-lang-zh] {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    /* 表示（フェードイン）時のアニメーション設定 */
    transition: 
        opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. 切替処理中（フェードアウト時）のスタイル */
.is-fading {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(15px);
    /* 非表示（フェードアウト）時は素早く消す設定 */
    transition: 
        opacity 0.3s ease,
        filter 0.3s ease,
        transform 0.3s ease !important;
}
/* =========================================
   Journal Section
========================================= */
.journal-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-card__image-wrapper {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
}

.journal-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.journal-card:hover .journal-card__image-wrapper img {
    transform: scale(1.05);
}

.journal-card__date {
    font-size: 0.85rem;
    color: #888; /* ダークテーマに合わせて調整 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.journal-card__title a {
    color: inherit;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.4;
    transition: opacity 0.3s ease;
}

.journal-card__title a:hover {
    opacity: 0.7;
}

/* =========================================
   FAQ Section (Accordion)
========================================= */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* bg-light用に少し暗いボーダー */
}

/* ダークテーマとの互換性調整 */
.theme-dark .bg-light .faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq__question {
    list-style: none;
    cursor: pointer;
    padding: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333; /* bg-light用の文字色 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    padding-bottom: 1.5rem;
    color: #555;
    line-height: 1.6;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}