@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700&family=Noto+Serif+JP:wght@400;700&display=swap');

/* ============================================================
   1. 基本設定
   ============================================================ */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: #000;
    color: #fff;
    font-family: 'Noto Serif JP', serif;
    overflow-x: hidden;
    line-height: 1.45;
}

#orb-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important; 
    pointer-events: none !important; 
}

.cosmic-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
}

.stars {
    position: absolute;
    width: 100%; height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 150px 100px, rgba(230, 180, 34, 0.4), transparent);
    background-size: 300px 300px;
    opacity: 0.5;
}

/* ============================================================
   2. ヒーローセクション
   ============================================================ */
.hero-ritual {
    position: relative;
    width: 100%; height: 100vh; height: 100svh;
    display: flex; justify-content: center; align-items: center;
    overflow: hidden; z-index: 5; pointer-events: none;
}

@keyframes actionSync {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
    100% { transform: translate(-50%, calc(-50% - 130px)) scale(0.95); opacity: 0.35; }
}

@keyframes logoSync {
    0%, 30% { opacity: 0; transform: translate(-50%, -50%); }
    100% { opacity: 1; transform: translate(-50%, calc(-50% - 130px)); }
}

.impulse-mark {
    position: absolute; top: 50%; left: 50%; width: 550px; max-width: 90vw;
    animation: actionSync 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.base-logo-group {
    position: absolute; top: 50%; left: 50%; width: 115px; z-index: 10;
    animation: logoSync 7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-wrap { position: relative; display: flex; align-items: center; }
.main-logo { width: 100%; height: auto; }

.gold-ruby {
    position: absolute; right: -30px; top: 0; writing-mode: vertical-rl;
    color: #e6b422; font-size: 1.1rem; letter-spacing: 0.4em;
    text-shadow: 0 0 10px rgba(230, 180, 34, 0.6);
}
.img-caption {
    font-size: 0.9rem;      /* ぐっと小さく（元のサイズに合わせて 0.65〜0.8rem で調整してね） */
    letter-spacing: 0.15em; /* 文字の間隔を少し広げると、小さくても「格」が出るよ */
    color: #bbb;            /* 少しだけ色を飛ばすと、背景に馴染んで神秘的になる */
    text-align: center;
    margin-top: 15px;       /* 写真との間の絶妙な「余白」 */
    line-height: 1.8;
}
.after-text-container {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%;
}

.incantation-line {
    position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; width: 3rem !important;
}
.line-1 { left: 50% !important; margin-left: 300px !important; }
.line-2 { left: 50% !important; margin-left: -340px !important; }

.incantation-line span {
    display: block !important; font-size: 2rem !important; font-weight: 700; opacity: 0;
    background: linear-gradient(180deg, #af8e2f, #f9e589 50%, #e6b422);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: wordIn 0.8s ease-out forwards;
}
@keyframes wordIn { to { opacity: 1; transform: translateY(0); } }

.line-1 span:nth-child(1) { animation-delay: 4.0s; }
.line-1 span:nth-child(2) { animation-delay: 4.1s; }
.line-1 span:nth-child(3) { animation-delay: 4.2s; }
.line-1 span:nth-child(4) { animation-delay: 4.3s; }
.line-1 span:nth-child(5) { animation-delay: 4.4s; }
.line-1 span:nth-child(6) { animation-delay: 4.5s; }
.line-1 span:nth-child(7) { animation-delay: 4.6s; }

.line-2 span:nth-child(1) { animation-delay: 5.4s; }
.line-2 span:nth-child(2) { animation-delay: 5.5s; }
.line-2 span:nth-child(3) { animation-delay: 5.6s; }
.line-2 span:nth-child(4) { animation-delay: 5.7s; }
.line-2 span:nth-child(5) { animation-delay: 5.8s; }
.line-2 span:nth-child(6) { animation-delay: 5.9s; }
.line-2 span:nth-child(7) { animation-delay: 6.0s; }

.scroll-guide {
    position: absolute; bottom: 50px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; z-index: 100;
}
.guide-text { color: #e6b422; font-size: 0.65rem; letter-spacing: 0.4em; margin-bottom: 12px; }
.guide-line { width: 1px; height: 60px; background: rgba(230, 180, 34, 0.2); position: relative; overflow: hidden; }
.guide-line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #e6b422; animation: sLine 2.5s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes sLine { 0% { transform: translateY(-100%); } 50% { transform: translateY(0); } 100% { transform: translateY(100%); } }

/* --- 3. メインコンテンツ --- */
.main-content { position: relative; z-index: 10; }
.content-section { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 5%; position: relative; }
.container { max-width: 1100px; width: 100%; pointer-events: auto; }

.ritual-section-title { text-align: center; margin-bottom: 50px; display: flex; flex-direction: column; align-items: center; }
.katakamuna-txt { 
    font-size: 1.85rem; font-family: 'Noto Sans JP', sans-serif; font-weight: 700; letter-spacing: 0.3em;
    background: linear-gradient(to bottom, #cfaf46 0%, #f9e589 45%, #e6b422 55%, #af8e2f 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(230, 180, 34, 0.4));
}
.title-sep { width: 240px; border: 0; border-top: 1px solid #fff; margin: 12px 0; opacity: 0.6; }
.jp-title { font-size: 0.9rem; color: #e6b422; font-family: 'Noto Serif JP', serif; font-weight: 700; margin-top: -4px; opacity: 0.9; }

.story-text-box {
    background: rgba(15, 15, 15, 0.85); border: 1px solid rgba(230, 180, 34, 0.2);
    padding: 60px; color: #ddd; backdrop-filter: blur(5px);

}
.story-text-box p { margin-bottom: 1.2em; line-height: 1.8; }

.story-visual { margin: 0px 0; text-align: center; }
.story-video, .story-img { width: 100%; max-width: 360px; border: 1px solid rgba(230, 180, 34, 0.4); }

.gold-link-button {
    display: inline-block; padding: 18px 50px; border: 1px solid #e6b422;
    color: #e6b422; text-decoration: none; letter-spacing: 0.2em;
    transition: 0.4s; background: rgba(230, 180, 34, 0.05);
}
.gold-link-button:hover { background: #e6b422; color: #000; }

.concept-inner { display: flex; justify-content: center; gap: 80px; }
.vertical-manifesto {
     writing-mode: vertical-rl; 
     font-weight: 700;
      font-size: 1.4rem; 
      letter-spacing: 0.5em; 
    /* カタカムナと同じグラデーション設定 */
    background: linear-gradient(to bottom, #cfaf46 0%, #f9e589 45%, #e6b422 55%, #af8e2f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 輝き（ドロップシャドウ）も追加して存在感を出す */
    filter: drop-shadow(0 0 8px rgba(230, 180, 34, 0.4));
    opacity: 0;
    transition: 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active .vertical-manifesto { opacity: 1; }

/* ============================================================
   4. サービス詳細（空間・生命変容）
   ============================================================ */
.details-section { padding: 100px 0; background-color: transparent; }
.detail-block { display: flex; align-items: center; gap: 60px; margin-bottom: 120px; }
.detail-block.reverse { flex-direction: row-reverse; }
.detail-image { flex: 1; }
.detail-image img { width: 100%; height: auto; border-radius: 2px; border: 1px solid rgba(230, 180, 34, 0.3); }
.detail-content { flex: 1; }
.section-title { font-size: 2.5rem; letter-spacing: 0.2em; margin-bottom: 5px; color: #e6b422; }
.subtitle { font-size: 1rem; color: #888; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 0.1em; }
.description p { line-height: 1.8; margin-bottom: 20px; color: #ccc; font-size: 1.05rem; }
.feature-list { list-style: none; padding: 0; margin-top: 30px; }
.feature-list li { margin-bottom: 10px; font-weight: bold; color: #ddd; border-left: 2px solid #e6b422; padding-left: 15px; }

/* ============================================================
   5. 料金テーブル
   ============================================================ */
.price-container {
    max-width: 800px; margin: 40px auto; padding: 40px;
    background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(230, 180, 34, 0.1);
}


/* --- 1. 新しく追加する「窓」の設定 --- */
.table-wrapper {
    width: 100%;
    overflow-x: auto; /* 横方向のはみ出しをスクロールさせる */
    margin: 20px 0;
    -webkit-overflow-scrolling: touch; /* スマホでスルスル動くようにする */
}

/* --- 2. テーブル本体の修正（上書きしてね） --- */
.price-table {
    width: 100%;
    min-width: 500px; /* ★ここが重要！スマホでも500pxの幅を死守する */
    border-collapse: collapse;
    color: #fff;
}
/* 1列目（コース名）を太字にする */
.price-table td:first-child {
    font-weight: bold;
    font-family: sans-serif; /* これでゴシック体になるよ */
}
.price-table th { text-align: left; padding: 15px 10px; border-bottom: 1px solid #e6b422; color: #e6b422; font-size: 0.9rem; }
.price-table td { padding: 20px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.price { text-align: right; font-size: 1.3rem; color: #e6b422; font-family: 'Times New Roman', serif; }
/* 2列目（時間）のヘッダーと中身をセンター揃えにする */
.price-table th:nth-child(2),
.price-table td:nth-child(2) {
    text-align: center;
}
/* ★追記：3列目（料金）のヘッダーだけを右寄せに上書き */
.price-table th:nth-child(3) {
    text-align: right;
}



/* キーワード自体の装飾 */
.glossary-term {
    position: relative;
    /* color: #e6b422; /* 金色 */
    cursor: help;
    text-decoration: underline dotted 1px rgba(230, 180, 34, 0.5);
    text-underline-offset: 4px;
    transition: 0.3s;
}

/* ホバー時にキーワードを少し光らせる */
.glossary-term:hover {
    text-shadow: 0 0 10px rgba(230, 180, 34, 0.8);
}

/* ポップアップ本体 */
.glossary-popup {
    visibility: hidden;
    width: 240px;
    background: rgba(10, 10, 10, 0.95); /* 深い黒 */
    color: #ddd;
    text-align: left;
    padding: 15px;
    border: 1px solid rgba(230, 180, 34, 0.4); /* 金の枠線 */
    position: absolute;
    z-index: 100;
    bottom: 150%; /* 上に表示 */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 0.8rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    pointer-events: none;
    backdrop-filter: blur(10px); /* 背景をぼかす */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(230, 180, 34, 0.1);
}

/* ポップアップの小さな三角矢印 */
.glossary-popup::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(230, 180, 34, 0.4) transparent transparent transparent;
}

/* ホバーした時に表示 */
.glossary-term:hover .glossary-popup {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}



/* ============================================================
   6. スマホ調整（レスポンシブ）
   ============================================================ */
@media screen and (max-width: 801px) {
    .concept-inner { flex-direction: column; gap: 0; align-items: center; width: 100%; }
    .vertical-manifesto:nth-child(1) { display: none !important; }
    .vertical-manifesto:nth-child(3) { 
        display: block !important; writing-mode: horizontal-tb !important; 
        font-size: 0.9rem; text-align: center; margin-top: -20px; margin-bottom: 30px; opacity: 1; width: 100%;
    }
    
    /* スマホ幅制限解除（なっちのアイデア） */
    .story-text-box { padding: 0px 10px; background: transparent; border: none; width: 100% !important; margin: -20px auto; }

    @keyframes actionSync {
        0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
        30% { transform: translate(-50%, -50%) scale(1.0); opacity: 1.0; }
        100% { transform: translate(-50%, calc(-50% - 30px)) scale(0.85); opacity: 0.3; }
    }
    @keyframes logoSync {
        0%, 30% { opacity: 0; transform: translate(-50%, -50%); }
        100% { opacity: 1; transform: translate(-50%, calc(-50% - 30px)) scale(0.85); }
    }
    .impulse-mark { width: 340px; } 
    .base-logo-group { width: 85px; } 
    .story-video, .story-img { width: 90% !important; max-width: 260px !important; margin: 0 auto; display: block; }

    /* 言霊演出スマホ最適化 */
    .after-text-container {
        position: absolute !important; top: 55% !important; left: 50% !important;
        transform: translate(-50%, -50%) !important; width: 200px !important; 
        display: flex !important; justify-content: space-between !important; align-items: center !important;
    }
    .incantation-line { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; width: 3rem !important; }
    .line-2 { right: 180px !important; left: auto !important; top: 0 !important; transform: translateY(-50%) !important; white-space: nowrap !important; }
    .line-1 { left: -88px !important; right: auto !important; top: 0 !important; transform: translateY(-50%) !important; white-space: nowrap !important; }
    .incantation-line span { display: block !important; font-size: 1.35rem !important; margin-bottom: 0.15em; }

    /* サービス詳細・料金スマホ */
    .detail-block, .detail-block.reverse { flex-direction: column; gap: 30px; margin-bottom: 80px; }
    .section-title { font-size: 1.8rem; text-align: center; }
    .subtitle { text-align: center; }
    .price-container { padding: 20px 5px; width: 100%; background: transparent; border: none; }
    .price-table th, .price-table td { padding: 15px 5px; font-size: 0.9rem; }

    /* スマホ版での横書きマニフェストにも同じ色を適用 */

    .vertical-manifesto:nth-child(3) { 
        display: block !important;
        writing-mode: horizontal-tb !important; 
        font-size: 0.9rem;
        text-align: center;
        margin-top: -20px;
        margin-bottom: 30px;
        opacity: 1;
        width: 100%;

        /* スマホでも同じグラデーション（横書き用に角度を90度変えてもいいけど、一旦そのまま下向きでOK） */
        background: linear-gradient(to bottom, #cfaf46 0%, #f9e589 45%, #e6b422 55%, #af8e2f 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .glossary-popup {
        width: 180px;
        bottom: 120%;
    }

/* --- PC・タブレット用の設定（画面の横幅が 768px 以上のとき） --- */
@media (min-width: 768px) {
    .img-caption {
        font-size: 1rem;      /* PCでは少し大きめ（1rem = 16px くらい）に */
        letter-spacing: 0.25em; /* 画面が広い分、間隔もさらにゆったり取ると優雅だよ */
        margin-top: 20px;
    }
}

/* ============================================================
   7. その他微調整
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

}


/* ============================================================
   8. アマウツシ
   ============================================================ */
        .main-content.about-page {
            line-height: 2.0;
            letter-spacing: 0.05em;
            color: #e0e0e0;
        }
        .text-block p, .inspiration-story p {
            margin-bottom: 2.5rem;
        }

        /* 全体的な中央揃えの設定 */
        .center-content {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .jp-title {
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            margin-top: 0rem;
            margin-bottom: 0rem;
           /*  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
            display: inline-block;*/
            padding-bottom: 8px;
            letter-spacing: 0.05em;
            color: #fff;
            text-align: center;
        }

        /* アコーディオンのスタイル */
        .accordion-container {
            width: 100%;
            max-width: 800px;
            margin: 1rem auto 2rem;
            border-top: 1px solid rgba(212, 175, 55, 0.2);
            text-align: left; /* 中身は読みやすく左揃え */
        }
        .accordion-item {
            border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        }
        .accordion-header {
            width: 100%;
            padding: 1.5rem 1rem;
            background: none;
            border: none;
            text-align: left;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: 0.3s;
            font-family: 'Noto Sans JP', sans-serif;
            font-size: 1.1rem;
            font-weight: 700;
        }
        .header-tag { color: #d4af37; margin-right: 0.5em; }
        .header-text { color: #fff; }

        .accordion-header:hover { background: rgba(212, 175, 55, 0.05); }
        .accordion-header::after {
            content: '＋';
            color: #d4af37;
            font-size: 1.2rem;
            transition: transform 0.3s;
        }
        .accordion-item.active .accordion-header::after { transform: rotate(45deg); }
        .accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease-out, padding 0.3s;
            background: rgba(255, 255, 255, 0.03);
            padding: 0 1.5rem;
        }
        .accordion-item.active .accordion-content {
            max-height: 2000px;
            padding: 1.5rem;
        }


/* ヘッダー全体のセンター揃え ＆ 行間調整 */
.connector-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem; /* 下のセクションとの距離 */
}

/* 多次元コネクター：行間を詰めるために margin-bottom を極小に */
.connector-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(
        to right,
        #b8860b 0%,
        #f1e767 25%,
        #fff9ad 50%,
        #f1e767 75%,
        #b8860b 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

/* 💡ここが今回の魔法の数字 */
    line-height: 1.0;     /* 1.2から1.0（文字の高さピッタリ）に */
    margin-bottom: -5px;  /* マイナス値を指定して、下の行を無理やり引き寄せる */

    margin-bottom: 0rem; /* ←ここでサブタイとの行間を極限まで詰める */
    animation: shine-gold 5s linear infinite;
}

/* サブタイトル：形あるものに～ */
.connector-subtitle {
    font-family: 'Noto Sans JP';
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.4;
    letter-spacing: 0.08em;
    font-weight: 300;
    margin-top: -20px; /* タイトルとの隙間を消す */
}

/* 強調パーツ */
.connector-subtitle span {
    color: #f1e767;
    font-weight: 700;
}

/* 💡改行コントロール：PCでは隠す */
.br-sp {
    display: none;
}

@keyframes shine-gold {
    to { background-position: 200% center; }
}

/* 💡幅が狭くなった時（タブレット・スマホ）の設定 */
@media (max-width: 1024px) {
    .connector-title {
        font-size: 2.2rem;
        line-height: 1.1; /* タイトルも少しコンパクトに */
        margin-bottom: 0; /* スマホではマイナスにしすぎると重なるので0付近に */
    }
    
    .br-sp {
        display: block;
    }

    .connector-subtitle {
        font-size: 1rem;
        /* 💡ここがポイント！1.4くらいまで絞ると密度が出ます */
        line-height: 1.4; 
        margin-top: 5px;  /* タイトルとの最終距離微調整 */
        letter-spacing: 0.05em; /* 密度に合わせて字間も微調整 */
    }
}

@media (max-width: 480px) {
    .connector-title {
        font-size: 1.8rem;
    }
    .connector-subtitle {
        font-size: 0.9rem;
        line-height: 1.35; /* さらに画面が狭いスマホではもう少し詰める */
    }
}

        @media (max-width: 801px) {
            .jp-title { font-size: 1.2rem; }
            .accordion-header { font-size: 1rem; flex-direction: column; align-items: flex-start; }
            .accordion-header::after { align-self: flex-end; margin-top: -20px; }
        }
