/* はみ出し防止の基本設定 */
*, *::before, *::after {
    box-sizing: border-box !important;
}

:root {
    --koke: #2f4f4f;
    --komorebi: #d4d9ba;
    --washi: #f9faf5;
    --sumi: #1c1c1c;
}

/* --------------------------------------------------------------------------
   アンカーリンク：固定ヘッダー分のオフセット
-------------------------------------------------------------------------- */
[id] {
    scroll-margin-top: 90px;
}

/* --------------------------------------------------------------------------
   Global Reset & Defaults
-------------------------------------------------------------------------- */
input::-ms-reveal,
input::-ms-clear {
  display: none;
}

body.seijaku {
    margin: 0;
    padding: 0;
    background-color: var(--washi);
    color: var(--sumi);
    font-family: "Noto Serif JP", serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ============================================================
   ヘッダー・ナビゲーション
   ============================================================ */
.ten-no-michibiki {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(249,250,245,0.92);
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(47,79,79,0.05);
}

.nav-logo {
    font-size: 16px;
    letter-spacing: 0.25em;
    color: var(--koke);
    text-decoration: none;
    font-weight: 400;
}

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: var(--sumi);
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.nav-links a:hover { opacity: 1; }
.nav-member { border: 1px solid var(--koke); padding: 8px 16px; border-radius: 2px; }

/* ============================================================
   ヒーローバナー（3行タイトル構成）
   ============================================================ */
.hero-banner {
    width: 100vw;
    padding: 180px 0 120px;
    background-color: var(--koke);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='500' viewBox='0 0 600 500'%3E%3Cg fill='none' stroke='%23d4d9ba' stroke-width='0.8' opacity='0.08'%3E%3Cellipse cx='500' cy='60' rx='80' ry='130' transform='rotate(-15 500 60)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    pointer-events: none;
}

.hero-banner-label {
    font-size: 28px;
    letter-spacing: 0.4em;
    color: var(--komorebi);
    margin: 0 0 20px 0;
    font-weight: 300;
    opacity: 0.95;
}

.hero-banner-title {
    font-size: clamp(40px, 8vw, 68px);
    font-weight: 300;
    letter-spacing: 0.35em;
    color: #fff;
    margin: 0 0 35px 0.35em;
    line-height: 1.1;
    text-align: center;
}

.hero-banner-subtitle {
    font-size: 13px;
    letter-spacing: 0.3em;
    color: var(--komorebi);
    opacity: 0.8;
}

/* ============================================================
   静寂のバナー（サブページ共通）
   ============================================================ */
.sei-banner {
    width: 100vw;
    padding: 120px 0 80px;
    background-color: var(--koke);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.sei-banner-title {
    font-size: 28px;
    letter-spacing: 0.4em;
    color: #fff;
    font-weight: 300;
}

/* ============================================================
   コンテンツ・容器
   ============================================================ */
.utsuwa {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 5%;
}

.midashi {
    font-size: 22px;
    text-align: center;
    letter-spacing: 0.3em;
    margin-bottom: 40px;
    color: var(--koke);
}

.bunsho {
    font-size: 16px;
    line-height: 2.2;
    margin-bottom: 30px;
}

/* ============================================================
   共鳴の響き（Testimonial Quotes）
   ============================================================ */
.hibiki {
    margin: 80px 0;
    padding: 60px;
    background: #fff;
    border-left: 4px solid var(--koke);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    position: relative;
}

.hibiki-kotoba {
    font-size: clamp(18px, 4vw, 22px);
    line-height: 2.2;
    margin-bottom: 30px;
    color: var(--koke);
    font-weight: 500;
}

.hibiki-haikei {
    font-size: 13px;
    opacity: 0.5;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* ============================================================
   共鳴マッチング（事前問診入力）
   ============================================================ */
.kyoumei {
    text-align: center;
    padding: 80px 40px;
    background: rgba(212, 217, 186, 0.15); /* 金緑の微かな背景 */
    border-radius: 4px;
    margin: 100px 0;
}

.kyoumei-nyuryoku {
    width: 100%;
    max-width: 640px;
    padding: 20px 24px;
    border: 1px solid rgba(47, 79, 79, 0.2);
    background: #fff;
    border-radius: 2px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: all 0.4s ease;
    text-align: center;
}

.kyoumei-nyuryoku:focus {
    border-color: var(--koke);
    box-shadow: 0 0 0 4px rgba(47, 79, 79, 0.05);
}

/* ============================================================
   扉ページ（door/）専用のヒーローバナー
   ============================================================ */
.entrance-hero-view {
    width: 100vw;
    height: 480px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 80px;
}

.entrance-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45); /* 暗くして文字を浮かせる */
    z-index: 1;
}

.entrance-hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.35em;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
    padding: 0 5%;
}

/* ============================================================
   本文エリアの幅制限（余白確保）
   ============================================================ */
.entrance-content-flow {
    max-width: 800px;
    margin: 0 auto 120px;
    padding: 0 5%;
    box-sizing: border-box;
}

/* ============================================================
   共鳴事例（体験談）セクション
   ============================================================ */
.jirei-section {
    margin: 100px 0;
    padding: 60px 0;
    border-top: 1px solid rgba(47,79,79,0.1);
}

.jirei-section-title {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: var(--koke);
    opacity: 0.6;
    margin-bottom: 40px;
    text-align: center;
}

.jirei-card {
    margin-bottom: 60px;
    padding-left: 20px;
    border-left: 1px solid var(--komorebi);
}

.jirei-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--koke);
    margin-bottom: 12px;
}

.jirei-body {
    font-size: 15px;
    line-height: 2.0;
    opacity: 0.8;
}

/* ============================================================
   動画コンテナ
   ============================================================ */
.video-wrap {
    position: relative;
    width: 50%; /* 横幅を半分に */
    margin: 60px auto 16px; /* 中央寄せ */
    padding-bottom: 28.125%; /* 50% * 0.5625 (16:9) */
    height: 0;
    overflow: hidden;
    border-radius: 2px;
    background: #000;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-caption {
    font-size: 12px;
    text-align: center;
    opacity: 0.4;
    letter-spacing: 0.1em;
    margin-bottom: 80px;
}

/* 縦型ショート動画用 */
.video-wrap.shorts {
    width: 280px; /* スマホ風の幅に制限 */
    aspect-ratio: 9 / 16;
    padding-bottom: 0;
    height: 500px;
}

.video-preview-trigger.shorts {
    width: 280px;
    height: 500px;
    aspect-ratio: 9 / 16;
}


/* ============================================================
   スマート・ビデオ・プレビュー (file:// 閲覧用)
   ============================================================ */
.video-preview-trigger {
    display: none; /* デフォルト非表示、JSで制御 */
    position: relative;
    width: 50%; /* 横幅を半分に */
    margin: 60px auto 16px; /* 中央寄せ */
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.video-preview-trigger::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(47, 79, 79, 0.4); /* 苔緑オーバーレイ */
    transition: background 0.5s ease;
}

.video-preview-trigger:hover::before {
    background: rgba(47, 79, 79, 0.2);
}

.video-preview-trigger::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 50px;
    font-family: serif;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-preview-trigger:hover::after {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

/* ============================================================
   ゲートカード（グリッド・センタリング）
   ============================================================ */
.gate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1100px;
    margin: 80px auto;
}

.gate-card {
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    text-decoration: none;
    overflow: hidden;
    border-radius: 1px;
    background: #000;
}

.gate-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 3s;
    z-index: 0;
    opacity: 0.8;
}

.gate-card:hover .gate-card-bg { transform: scale(1.05); }

.gate-text-content { 
    z-index: 2; 
    color: #fff; 
    background-color: rgba(0, 0, 0, 0.45); 
    padding: 16px 20px; 
    border-radius: 4px; 
}
.gate-subtitle { font-size: 11px; color: var(--komorebi); display: block; margin-bottom: 8px; }
.gate-title { font-size: 1.6rem; font-weight: 400; letter-spacing: 0.12em; display: block; margin-bottom: 6px; }
.gate-desc { font-size: 13px; color: #ddd; line-height: 1.4; margin: 0; opacity: 0.9; }

/* ============================================================
   ボタン装飾（決断の扉・ひそやかな扉）
   ============================================================ */
/* 申し込みボタン（立体デザイン・サイズ統一） */
.ketsudan-no-tobira {
    display: inline-block !important; /* 横幅を文字の内容に合わせる */
    width: auto !important;           /* 幅100%を解除 */
    min-width: auto !important;       /* 過剰な最小幅をリセット */
    max-width: 95% !important;        /* スマホ画面からはみ出さない限界値 */
    margin: 0 auto !important;
    background: #c5a059 !important;
    color: #fff !important;
    padding: 18px 30px !important;    /* 左右余白を調整して文字に合わせる */
    border-radius: 8px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border: none !important;
    border-bottom: 5px solid #a38142 !important; /* 立体的な厚み */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    text-align: center !important;
    cursor: pointer !important;
    -webkit-appearance: none;
    transition: all 0.2s !important;
}

.ketsudan-no-tobira:hover {
    transform: translateY(-2px) !important;
    background-color: #d4b46a !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15) !important;
}

.ketsudan-no-tobira:active {
    transform: translateY(3px) !important;
    border-bottom-width: 2px !important;
    box-shadow: none !important;
}

/* 扉ページ等の解説ボックスのはみ出し防止 */
.safety-box {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 30px 15px !important; /* 左右余白を確保 */
    margin: 60px auto !important;
}

/* 診断ボタン（はい・いいえ） */
.btn-yes {
    display: inline-block;
    padding: 12px 40px;
    background: #c5a059;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.5;
}
.btn-yes:hover {
    background: #d4b46a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.btn-yes:active {
    background: #b08a40;
    transform: translateY(0);
}

.btn-no {
    display: inline-block;
    padding: 12px 40px;
    background: #eee;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1.5;
}
.btn-no:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.btn-no:active {
    background: #d0d0d0;
    transform: translateY(0);
}

/* 予約リスト等のはみ出し防止 */
#reservation-weeks-container label {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.hisoyaka-na-tobira {
    display: inline-block;
    color: var(--sumi);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.1em;
    opacity: 0.6;
    border-bottom: 1px solid rgba(47,79,79,0.3);
    padding-bottom: 4px;
    transition: all 0.3s ease;
}

.hisoyaka-na-tobira:hover {
    opacity: 1;
    border-bottom-color: rgba(47,79,79,0.8);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 900px) {
    .gate-grid { grid-template-columns: 1fr; width: 90%; }
    .nav-links { display: none; }
}

@media (max-width: 600px) {
    .hero-banner { padding: 120px 0 80px; }
    .hero-banner-label { font-size: 20px; }
    .hero-banner-title { font-size: 36px; }
    .midashi { font-size: 18px; }
    .video-wrap { margin-top: 40px; }
    .entrance-hero-view { height: 320px; }
    .entrance-hero-title { font-size: 22px; }
}

/* スマホ限定のログイン導線 */
.mobile-login-box {
    display: none;
    margin-top: 25px;
}
.mobile-login-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}
@media (max-width: 600px) {
    .mobile-login-box { display: block; }
}

/* ============================================================
   フッター（センタリング再構成）
   ============================================================ */
.mori-footer {
    padding: 40px 5% 60px;
    background: var(--koke);
    border-top: 1px solid rgba(47,79,79,0.05);
    text-align: center;
    margin-top: 100px;
    color: #fff;
}

.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-nav a {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-nav a:hover { opacity: 1; }

.footer-old-site {
    margin-bottom: 40px;
    font-size: 12px;
}

.footer-old-site a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.footer-copy {
    font-size: 11px;
    color: #fff;
    opacity: 0.5;
    letter-spacing: 0.1em;
}
@media (max-width: 768px) {
    .video-wrap:not(.shorts) {
        width: 100%;
        padding-bottom: 56.25%;
    }
    .video-preview-trigger:not(.shorts) {
        width: 100%;
    }
    /* 縦型は中央揃え */
    .video-wrap.shorts, .video-preview-trigger.shorts {
        margin-left: auto;
        margin-right: auto;
    }
    .gate-title { 
        font-size: 14px; 
        line-height: 1.4;
    }
    .gate-subtitle {
        font-size: 10px;
        margin-bottom: 4px;
    }
    .gate-text-content { 
        padding: 10px 14px; 
    }
    /* スマホ版ボタンの幅を文字サイズに最適化 */
    .ketsudan-no-tobira {
        padding: 16px 20px !important;
    }
}
