/*
Theme Name: RIN SPA JOURNAL
Theme URI: https://rin-spa.net/media/
Author: RIN SPA
Author URI: https://rin-spa.net/media/
Description: RIN SPA JOURNAL オリジナルテーマ
Version: 1.0
Text Domain: RIN SPA JOURNAL
*/

        :root {
            --primary-color: #2a3d31; 
            --accent-color: #c5a059;  
            --bg-base: #fdfaf6;       
            --white: #ffffff;
            --text-main: #222;
            --text-sub: #555;
            --line-color: #06c755;
            --site-header-height: 72px;
        }

        html { scroll-behavior: smooth; }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Noto Serif JP', serif;
            background-color: var(--bg-base);
            color: var(--text-main);
            line-height: 1.8;
            overflow-x: hidden;
        }

        /* --- Common --- */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 4%; }
        .section-title { text-align: center; margin-bottom: 50px; }
        .section-title h2 { font-size: 1.8rem; font-weight: 500; position: relative; display: inline-block; padding-bottom: 15px; }
        .section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 40px; height: 1px; background: var(--accent-color); }
        .section-title span { display: block; font-size: 0.75rem; color: var(--accent-color); letter-spacing: 2px; margin-top: 10px; text-transform: uppercase; }
        
        .fade-up { opacity: 0; transform: translateY(30px); transition: all 1s ease-out; }
        .fade-up.active { opacity: 1; transform: translateY(0); }
        .sp-only { display: none; }

        /* Fallback post thumbnails */
        .thumb.is-fallback-logo,
        .popular-thumb.is-fallback-logo,
        .journal-thumb.is-fallback-logo,
        .a-eyecatch.is-fallback-logo,
        .r-img.is-fallback-logo {
            object-fit: contain;
            background: #fffdf9;
            border: 1px solid rgba(197, 160, 89, 0.22);
            box-sizing: border-box;
        }
        .thumb.is-fallback-logo {
            padding: clamp(34px, 5vw, 58px);
        }
        .popular-thumb.is-fallback-logo {
            padding: 16px;
        }
        .journal-thumb.is-fallback-logo {
            padding: clamp(36px, 6vw, 64px);
        }
        .a-eyecatch.is-fallback-logo {
            height: clamp(260px, 46vw, 520px);
            padding: clamp(56px, 9vw, 120px);
        }
        .r-img.is-fallback-logo {
            padding: clamp(30px, 5vw, 56px);
        }
        .journal-card:hover .journal-thumb.is-fallback-logo,
        .r-card:hover .r-img.is-fallback-logo {
            transform: none;
        }

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

        /* --- Header --- */
        header {
            padding: 15px 4%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(255,255,255,0.95);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 1px solid #eee;
            flex-wrap: wrap;
        }
        
        .logo { 
            font-family: 'Noto Serif JP', serif; 
            font-size: 1.6rem; 
            font-weight: 500; 
            color: var(--primary-color); 
            letter-spacing: 2px; 
            text-decoration: none;
        }
        
        .header-nav { display: flex; gap: 25px; }
        .header-nav a { 
            font-family: 'Montserrat', sans-serif; 
            text-decoration: none; 
            color: #333; 
            font-size: 0.9rem; 
            transition: 0.3s; 
            font-weight: 500; 
            letter-spacing: 0.05em;
        }
        .header-nav a:hover { color: var(--accent-color); }

        .nav-right-btns { display: flex; align-items: center; gap: 15px; }
        .nav-btn { 
            font-family: 'Montserrat', sans-serif;
            text-decoration: none; 
            color: white; 
            background: var(--primary-color); 
            padding: 10px 22px; 
            font-size: 0.8rem; 
            font-weight: 600; 
            border-radius: 2px; 
            transition: 0.3s; 
            letter-spacing: 1px;
        }

        .drawer-toggle {
            display: none;
            width: 44px;
            height: 44px;
            border: 1px solid rgba(42, 61, 49, 0.14);
            border-radius: 50%;
            background: var(--white);
            align-items: center;
            justify-content: center;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            box-shadow: 0 6px 18px rgba(0,0,0,0.04);
            transition: border-color 0.3s, box-shadow 0.3s;
        }
        .drawer-toggle:hover {
            border-color: rgba(197, 160, 89, 0.55);
            box-shadow: 0 8px 22px rgba(0,0,0,0.08);
        }
        .drawer-toggle__line {
            display: block;
            width: 20px;
            height: 2px;
            background: var(--primary-color);
            border-radius: 999px;
            transition: transform 0.3s, opacity 0.3s;
        }
        body.drawer-open .drawer-toggle__line:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        body.drawer-open .drawer-toggle__line:nth-child(2) {
            opacity: 0;
        }
        body.drawer-open .drawer-toggle__line:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }
        body.drawer-open {
            overflow: hidden;
        }
        body.drawer-open .site-header {
            z-index: 2700;
        }
        .drawer-overlay {
            position: fixed;
            top: var(--site-header-height);
            right: 0;
            bottom: 0;
            left: 0;
            background: rgba(42, 61, 49, 0.36);
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s, visibility 0.3s;
            z-index: 2500;
        }
        .drawer-nav {
            position: fixed;
            top: var(--site-header-height);
            right: 0;
            width: min(82vw, 360px);
            height: calc(100dvh - var(--site-header-height));
            background: var(--white);
            box-shadow: -18px 0 40px rgba(0,0,0,0.14);
            transform: translateX(100%);
            transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
            z-index: 2600;
            overflow-y: auto;
            overscroll-behavior: contain;
        }
        .drawer-nav__inner {
            display: flex;
            flex-direction: column;
            padding: 26px 24px 36px;
        }
        .drawer-nav a {
            display: flex;
            align-items: center;
            min-height: 52px;
            padding: 12px 4px;
            border-bottom: 1px solid #f0ece6;
            color: var(--primary-color);
            text-decoration: none;
            font-weight: 700;
            letter-spacing: 0.06em;
            line-height: 1.5;
        }
        .drawer-nav a.active {
            color: var(--accent-color);
        }
        .drawer-nav .drawer-nav__btn {
            justify-content: center;
            min-height: auto;
            margin-top: 26px;
            padding: 15px 20px;
            border: none;
            border-radius: 999px;
            background: var(--primary-color);
            color: var(--white);
            font-family: 'Montserrat', sans-serif;
            font-size: 0.9rem;
            letter-spacing: 0.08em;
            box-shadow: 0 10px 26px rgba(42, 61, 49, 0.18);
        }
        body.drawer-open .drawer-overlay {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }
        body.drawer-open .drawer-nav {
            transform: translateX(0);
        }

        /* --- Hero (Video Background Layout) --- */
        .hero {
            position: relative;
            height: 85vh;
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            text-align: center;
            overflow: hidden;
        }

        .hero-video {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            z-index: 0;
            object-fit: cover;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        .hero h1 { font-size: 2.8rem; font-weight: 500; letter-spacing: 4px; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
        .hero p { letter-spacing: 5px; font-size: 1.1rem; margin-bottom: 25px; font-family: 'Montserrat', sans-serif; }

        /* --- 1. お悩み別ナビゲーション --- */
        .problem-nav {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-top: -60px;
            margin-bottom: 100px;
            position: relative;
            z-index: 10;
        }
        .nav-card {
            background: var(--white);
            padding: 40px 25px 30px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0,0,0,0.08);
            border-bottom: 4px solid transparent;
            cursor: pointer;
            transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
            border-radius: 4px;
            text-decoration: none;
            display: block;
            color: inherit;
        }
        .nav-card:hover { transform: translateY(-10px); border-color: var(--accent-color); box-shadow: 0 25px 50px rgba(0,0,0,0.12); }
        .nav-card span { font-size: 1.05rem; font-weight: 700; display: block; color: var(--primary-color); }
        .nav-card i { display: block; font-size: 0.75rem; color: var(--accent-color); margin-bottom: 15px; font-style: normal; text-transform: uppercase; font-family: 'Montserrat', sans-serif; letter-spacing: 2px; font-weight: 700; }
        .nav-card-arrow { display: inline-flex; justify-content: center; align-items: center; width: 36px; height: 36px; border-radius: 50%; background-color: var(--bg-base); color: var(--accent-color); margin-top: 20px; font-size: 1.1rem; transition: all 0.3s ease; border: 1px solid rgba(197, 160, 89, 0.2); font-family: 'Montserrat', sans-serif; }
        .nav-card:hover .nav-card-arrow { background-color: var(--accent-color); color: var(--white); transform: translateX(5px); border-color: var(--accent-color); }

        /* --- Content Layout --- */
        .content-layout {
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 60px;
            margin-bottom: 100px;
        }

        /* --- 2. SEO記事セクション --- */
        .article-list { display: flex; flex-direction: column; gap: 50px; }
        .article-card { display: grid; grid-template-columns: 300px 1fr; gap: 30px; background: white; padding: 20px; transition: 0.3s; }
        .article-card:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); }
        .thumb { width: 100%; height: 200px; object-fit: cover; }
        .article-info h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-color); }
        .author-tag { font-size: 0.75rem; color: var(--text-sub); display: flex; align-items: center; margin-bottom: 10px; }
        .author-tag img { width: 25px; height: 25px; border-radius: 50%; margin-right: 8px; }

        /* --- 3. Bio Spa Technology --- */
        #biospa { scroll-margin-top: 100px; padding: 100px 0; background: #fff; }
        .patent-badge {
            display: inline-block;
            background: var(--primary-color);
            color: #fff;
            padding: 5px 15px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 25px;
            border-radius: 2px;
            font-family: 'Montserrat', sans-serif;
        }
        .bio-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
        .bio-intro p { font-size: 1rem; color: var(--text-sub); line-height: 2; }
        .bio-intro strong { color: var(--primary-color); font-weight: 700; border-bottom: 1px solid var(--accent-color); }
        .bio-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
        .bio-feature-card { text-align: center; padding: 30px 20px; background: var(--bg-base); border-radius: 4px; transition: 0.3s; }
        .bio-feature-card:hover { transform: translateY(-5px); background: #fdfdfd; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
        .bio-icon { width: 60px; height: 60px; margin: 0 auto 20px; background: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-color); font-size: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); font-family: 'Montserrat', sans-serif; font-weight: 700; }
        .bio-title { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 700; }
        .bio-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; text-align: left; }

        /* Bio Outro Enhancements */
        .bio-outro { max-width: 900px; margin: 80px auto 0; }
        
        .bio-effects-box { background: #fdfaf6; border: 1px solid #eee; padding: 40px; border-radius: 4px; margin-bottom: 40px; text-align: center; }
        .bio-effects-box h4 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 700; }
        .bio-effects-box p { font-size: 0.95rem; color: var(--text-sub); margin-bottom: 25px; line-height: 1.8; }
        .effect-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
        .e-tag { background: white; border: 1px solid var(--accent-color); color: var(--accent-color); padding: 6px 15px; font-size: 0.85rem; border-radius: 20px; font-weight: 500; }
        
        .bio-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }
        .evidence-card { background: white; padding: 40px; border-radius: 4px; border: 1px solid #f0f0f0; box-shadow: 0 10px 30px rgba(0,0,0,0.02); display: flex; flex-direction: column; }
        .ev-title { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 15px; text-align: center; border-bottom: 1px solid #eee; padding-bottom: 10px; font-weight: 700; }
        .ev-desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 25px; flex-grow: 1; }
        
        .wave-compare { display: flex; gap: 15px; }
        .wave-item { flex: 1; text-align: center; padding: 15px 10px; border-radius: 4px; }
        .wave-item.down { background: rgba(153, 153, 153, 0.1); color: #666; }
        .wave-item.up { background: rgba(197, 160, 89, 0.1); color: var(--primary-color); }
        .wave-item span { display: block; font-size: 0.75rem; margin-bottom: 5px; }
        .wave-item strong { display: block; font-size: 1.1rem; font-weight: 700; }
        
        .rare-number { text-align: center; color: var(--primary-color); margin-top: auto; }
        .rare-small { display: block; font-size: 0.85rem; margin-bottom: 5px; color: var(--text-sub); }
        .rare-large { display: block; font-size: 2.5rem; font-weight: 700; line-height: 1; margin-bottom: 10px; font-family: 'Montserrat', sans-serif;}
        .rare-large span { font-size: 1rem; }
        .rare-percent { display: inline-block; background: var(--accent-color); color: white; padding: 4px 15px; border-radius: 2px; font-size: 0.9rem; font-weight: 700; font-family: 'Montserrat', sans-serif;}
        
        .bio-concept-box { background: var(--primary-color); color: white; padding: 40px; border-radius: 4px; text-align: center; box-shadow: 0 10px 30px rgba(42, 61, 49, 0.15); }
        .bio-concept-box p { font-size: 1.1rem; line-height: 1.8; font-weight: 500; letter-spacing: 1px; margin: 0; }

        @media (max-width: 768px) { .bio-features { grid-template-columns: 1fr; } }

        /* --- 4. Before/After 展示 --- */
        #cases { scroll-margin-top: 100px; padding: 100px 0; background: #fdfaf6; }
        .ba-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
        .ba-card { border: 1px solid #eee; padding: 25px; background: white; border-radius: 4px; }
        .ba-imgs { display: flex; gap: 8px; margin-bottom: 20px; }
        .ba-img-wrap { flex: 1; position: relative; aspect-ratio: 1 / 1; border-radius: 2px; overflow: hidden; }
        .ba-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .ba-img-label { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(42, 61, 49, 0.8); color: #fff; font-size: 0.7rem; text-align: center; padding: 4px 0; font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 1px; }
        .ba-card h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--primary-color); font-weight: 700; }
        .ba-card p { font-size: 0.9rem; color: var(--text-sub); line-height: 1.7; }

        /* --- 5. Voices --- */
        #voices { scroll-margin-top: 100px; padding: 100px 0; }
        .voice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
        .voice-item { background: white; padding: 40px; position: relative; border-radius: 4px; box-shadow: 0 5px 20px rgba(0,0,0,0.02); display: flex; flex-direction: column; }
        .voice-imgs { display: flex; gap: 10px; margin-bottom: 25px; position: relative; z-index: 1; }
        .voice-img-wrap { flex: 1; position: relative; aspect-ratio: 1 / 1; border-radius: 2px; overflow: hidden; }
        .voice-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .voice-img-label { position: absolute; bottom: 0; left: 0; width: 100%; background: rgba(42, 61, 49, 0.8); color: #fff; font-size: 0.7rem; text-align: center; padding: 4px 0; font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 1px; }
        .voice-item::after { content: "“"; position: absolute; top: 10px; left: 20px; font-size: 5rem; color: #f6f6f6; font-family: 'Montserrat', sans-serif; line-height: 1; z-index: 0; }
        .voice-text { font-size: 1rem; position: relative; z-index: 1; font-weight: 500; flex-grow: 1; line-height: 1.8; }
        .voice-meta { margin-top: 25px; font-size: 0.85rem; color: var(--accent-color); font-weight: 700; border-top: 1px solid #f0f0f0; padding-top: 15px; position: relative; z-index: 1; }

        /* --- 6. Therapist & Mission (Horizontal Scroll) --- */

        .therapist-wrapper { position: relative; padding-bottom: 40px; }
        .therapist-scroller { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; padding: 20px 10px 40px 10px; }

        .t-card { width: 320px; max-width: 100%; background: var(--white); padding-bottom: 30px; transition: 0.3s; cursor: pointer; position: relative; border-radius: 4px; box-shadow: 0 8px 25px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.02); }
        .t-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
        .t-img { width: 100%; height: 350px; object-fit: cover; margin-bottom: 20px; border-radius: 4px 4px 0 0; }
        .t-info { padding: 0 25px; text-align: center; }
        .t-role { font-size: 0.75rem; color: var(--accent-color); font-weight: 700; letter-spacing: 1px; display: block; margin-bottom: 5px; text-transform: uppercase; }
        .t-name { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; font-family: 'Montserrat', sans-serif; }
        .t-desc { font-size: 0.85rem; color: var(--text-sub); line-height: 1.6; margin-bottom: 15px; }
        .view-more { position: absolute; bottom: 15px; right: 20px; font-size: 0.75rem; color: var(--accent-color); font-family: 'Montserrat', sans-serif; font-weight: 600; opacity: 1; }

        /* Shop Info 2 Columns */
        .shop-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            max-width: 1000px;
            margin: 60px auto 0;
        }
        .shop-card {
            background: var(--white);
            padding: 35px;
            border-left: 5px solid var(--primary-color);
            box-shadow: 0 5px 20px rgba(0,0,0,0.03);
        }
        .shop-name {
            font-size: 1.1rem;
            margin-bottom: 20px;
            color: var(--primary-color);
            font-weight: 700;
            border-bottom: 1px solid #eee;
            padding-bottom: 10px;
        }
        .shop-info-row {
            font-size: 0.9rem;
            margin-bottom: 10px;
            line-height: 1.6;
        }
        .shop-access {
            margin-top: 15px;
            font-size: 0.85rem;
            color: var(--text-sub);
            background: #fdfaf6;
            padding: 10px;
            border-radius: 4px;
        }

        /* --- Modal --- */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 3000; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(8px); }
        .modal-overlay.open { display: flex; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .modal-content { background: white; width: 95%; max-width: 1200px; height: 90vh; display: flex; border-radius: 8px; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.3); overflow: hidden; }
        .modal-close { position: absolute; top: 20px; right: 25px; font-size: 2.5rem; cursor: pointer; color: #999; z-index: 10; line-height: 1; transition: 0.3s; background: white; width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .modal-close:hover { color: var(--primary-color); transform: scale(1.1); }
        .modal-img-box { width: 45%; height: 100%; flex-shrink: 0; }
        .modal-img { width: 100%; height: 100%; object-fit: cover; }
        .modal-body { padding: 60px 50px; width: 55%; height: 100%; overflow-y: auto; }
        .m-role { color: var(--accent-color); font-size: 0.85rem; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px; display: block; text-transform: uppercase; }
        .m-name { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 25px; line-height: 1.2; font-family: 'Montserrat', sans-serif; font-weight: 800; }
        .m-desc { font-size: 1.05rem; color: var(--text-main); margin-bottom: 40px; line-height: 1.9; font-weight: 500; }
        .m-detail { font-size: 0.95rem; color: #444; background: #fdfaf6; padding: 40px; border-radius: 6px; border: 1px solid #f0f0f0; margin-bottom: 20px; }
        .m-detail h5 { font-size: 1rem; color: var(--primary-color); margin-bottom: 20px; font-family: 'Montserrat', sans-serif; border-left: 3px solid var(--accent-color); padding-left: 12px; }
        
        @media (max-width: 900px) {
            .modal-content { flex-direction: column; height: 95vh; }
            .modal-img-box { width: 100%; height: 35vh; }
            .modal-body { width: 100%; height: 60vh; padding: 30px; overflow-y: auto; }
            .m-name { font-size: 2rem; }
            .m-detail { padding: 25px; }
        }

        /* --- CTA (Bottom) --- */
        .cta-box { background: var(--primary-color); color: white; padding: 80px 20px; text-align: center; }
        .cta-btns { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
        .btn { padding: 18px 50px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1rem; transition: 0.3s; border: none; cursor: pointer; }
        .btn-line { background: var(--line-color); color: white; display: inline-block; box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3); }
        .btn:hover { opacity: 0.9; transform: scale(1.05); }

        /* General Button Styles */
        .btn-outline { background: transparent; color: var(--primary-color); border: 2px solid var(--primary-color); display: inline-block; padding: 16px 48px; border-radius: 30px; text-decoration: none; font-weight: bold; font-size: 1rem; transition: 0.3s; }
        .btn-outline:hover { background: var(--primary-color); color: white; transform: scale(1.05); }
        .center-btn-wrap { text-align: center; margin-top: 50px; }

        /* --- Floating CTA --- */
        .floating-cta { position: fixed; bottom: 35px; right: 35px; z-index: 2000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: all 0.5s ease; }
        .floating-cta.visible { opacity: 1; visibility: visible; transform: translateY(0); }
        .circle-btn-wrap { position: relative; width: 145px; height: 145px; display: flex; justify-content: center; align-items: center; background: var(--white); border-radius: 50%; box-shadow: 0 10px 35px rgba(0,0,0,0.1); cursor: pointer; text-decoration: none; transition: all 0.3s ease; }
        .circle-btn-wrap:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
        .spinning-text { position: absolute; width: 100%; height: 100%; animation: spin-text 25s linear infinite; }
        .spinning-text text { font-family: 'Noto Serif JP', serif; font-size: 10.5px; font-weight: 500; letter-spacing: 2px; fill: var(--accent-color); }
        @keyframes spin-text { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
        .center-content { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; color: var(--line-color); }
        .center-icon { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 1.8rem; line-height: 1; margin-bottom: 4px; }
        .center-text { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.5px; }

        /* --- Footer --- */
        footer { background: #fff; padding: 60px 4% 40px; text-align: center; border-top: 1px solid #eee; }
        .footer-nav { display: flex; justify-content: center; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; }
        .footer-nav a { font-family: 'Montserrat', sans-serif; text-decoration: none; color: #444; font-size: 0.9rem; transition: 0.3s; font-weight: 500; letter-spacing: 0.05em; }
        .footer-nav a:hover { color: var(--accent-color); }
        .footer-copy { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: #888; letter-spacing: 1px; }

        /* --- 404 --- */
        .error404 .site-header {
            box-shadow: 0 0.5rem 1.5rem rgba(42, 61, 49, 0.04);
        }
        .error404 .l-main {
            display: grid;
            place-items: center;
            min-height: calc(100vh - var(--site-header-height) - 12.75rem);
            min-height: calc(100svh - var(--site-header-height) - 12.75rem);
            padding: clamp(5rem, 11vw, 8rem) 4%;
            background:
                linear-gradient(180deg, rgba(253, 250, 246, 0.92) 0%, rgba(255, 255, 255, 0.9) 100%);
        }
        .p-notfound {
            width: min(100%, 45rem);
            text-align: center;
        }
        .p-notfound h1 {
            color: var(--primary-color);
            font-size: clamp(1.8rem, 4vw, 2.8rem);
            font-weight: 500;
            line-height: 1.45;
            margin-bottom: 1.25rem;
        }
        .p-notfound h1::after {
            content: '';
            display: block;
            width: 3rem;
            height: 1px;
            margin: 1.5rem auto 0;
            background: var(--accent-color);
        }
        .p-notfound p {
            color: var(--text-sub);
            font-size: clamp(0.98rem, 1.8vw, 1.08rem);
            line-height: 2;
            margin-bottom: 2.25rem;
        }
        .p-notfound .c-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 12rem;
            min-height: 3.25rem;
            padding: 0.85rem 2rem;
            background: var(--primary-color);
            color: var(--white);
            border: 1px solid var(--primary-color);
            border-radius: 2px;
            font-family: 'Montserrat', 'Noto Serif JP', serif;
            font-size: 0.88rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            line-height: 1.5;
            text-decoration: none;
            transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
        }
        .p-notfound .c-button:hover {
            background: var(--white);
            color: var(--primary-color);
            border-color: rgba(42, 61, 49, 0.45);
            transform: translateY(-0.125rem);
        }
        .error404 footer {
            margin-top: 0;
        }

        @media (max-width: 1024px) {
            .site-header .header-nav,
            .site-header .nav-right-btns {
                display: none;
            }
            .site-header .drawer-toggle {
                display: inline-flex;
                flex: 0 0 auto;
            }
        }
        @media (max-width: 900px) {
            .content-layout, .article-card, .voice-grid, .bio-features, .shop-container, .bio-evidence-grid { grid-template-columns: 1fr; }
            .cta-btns { flex-direction: column; }
            .floating-cta { bottom: 25px; right: 25px; }
            .circle-btn-wrap { width: 120px; height: 120px; }
            .spinning-text text { font-size: 10px; }
            .center-icon { font-size: 1.5rem; }
            .center-text { font-size: 0.7rem; }
        }
        @media (max-width: 768px) {
            header { flex-wrap: nowrap; gap: 10px; padding-left: 15px; padding-right: 15px; }
            .logo { flex: 0 1 auto; font-size: 1.25rem; letter-spacing: 1px; white-space: nowrap; }
            .nav-btn { padding: 7px 10px; font-size: 0.78rem; letter-spacing: 0.08em; white-space: nowrap; }
            .error404 .l-main {
                min-height: auto;
                padding-top: 4.5rem;
                padding-bottom: 5rem;
            }
            .p-notfound .c-button {
                width: min(100%, 18rem);
            }
        }
        @media (max-width: 480px) {
            .drawer-nav {
                width: min(90vw, 340px);
            }
            .drawer-nav__inner {
                padding-left: 22px;
                padding-right: 22px;
            }
        }

        /* --- Trial Flow Section (ENHANCED) --- */
        #trial-flow { padding: 100px 0; background: #fff; border-bottom: 1px solid #eee; }
        
        .trial-concept {
            text-align: center; max-width: 800px; margin: 0 auto 60px;
        }
        .trial-concept h3 {
            font-size: 1.5rem; color: var(--primary-color); margin-bottom: 20px; line-height: 1.4;
        }
        .trial-concept p {
            font-size: 1rem; color: var(--text-sub); line-height: 2;
        }
        
        .flow-steps { max-width: 800px; margin: 0 auto; position: relative; }
        .flow-steps::before { content: ''; position: absolute; top: 0; left: 20px; height: 100%; width: 2px; background: #eee; }
        .step-item { position: relative; padding-left: 60px; margin-bottom: 60px; }
        .step-item:last-child { margin-bottom: 0; }
        
        .step-num { position: absolute; top: 0; left: 0; width: 40px; height: 40px; background: var(--accent-color); color: white; border-radius: 50%; text-align: center; line-height: 40px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem; z-index: 2; box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4); }
        
        .step-content h3 { font-size: 1.3rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 700; border-bottom: 1px solid #eee; padding-bottom: 10px; display: inline-block; }
        .step-content p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.8; margin-bottom: 15px; }
        .step-highlight { font-weight: 700; color: var(--primary-color); background: #f4f1ed; padding: 0 5px; }

        .trial-note { background: #fdfaf6; padding: 30px; margin-top: 60px; font-size: 0.9rem; color: #555; text-align: center; border-radius: 4px; border: 1px solid #eee; }
        .trial-note p { margin-bottom: 10px; }
        .trial-note p:last-child { margin-bottom: 0; }
        
        /* --- Instagram Section --- */
        .p-instagram-section { padding: 100px 0; background: #fff; border-bottom: 1px solid #eee; }
        .insta-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 30px;
        }
        .insta-header .section-title {
            margin-bottom: 0;
            text-align: left;
        }
        .insta-header .section-title h2::after {
            left: 0;
            transform: none;
        }
        .insta-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-family: 'Montserrat', sans-serif;
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--primary-color);
            text-decoration: none;
            border: 1px solid var(--primary-color);
            padding: 10px 24px;
            border-radius: 30px;
            transition: 0.3s;
        }
        .insta-btn:hover {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            transform: translateY(-2px);
        }
        .insta-btn svg {
            width: 16px;
            height: 16px;
            fill: currentColor;
            transition: 0.3s;
        }
        .insta-btn:hover svg {
            fill: white;
        }
        .insta-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 15px;
            margin-top: 40px;
        }
        .insta-item {
            position: relative;
            aspect-ratio: 1 / 1;
            overflow: hidden;
            display: block;
            border-radius: 4px;
        }
        .insta-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .insta-item:hover img {
            transform: scale(1.05);
        }
        .insta-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.4);
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        .insta-item:hover .insta-overlay {
            opacity: 1;
        }
        .insta-overlay svg {
            width: 32px;
            height: 32px;
            fill: white;
        }

        @media (max-width: 900px) {
            .insta-grid { grid-template-columns: repeat(3, 1fr); }
            .insta-header { flex-direction: column; align-items: flex-start; gap: 20px; }
        }
        @media (max-width: 600px) {
            .flow-steps::before { left: 15px; }
            .step-item { padding-left: 50px; }
            .step-num { width: 30px; height: 30px; line-height: 30px; font-size: 0.9rem; }
        }

        
