@charset "UTF-8";

/* =========================================
   変数定義 & ベース設定
   ========================================= */
:root {
    /* トレンドカラー: グレイッシュパープル & オフホワイト */
    --primary-color: #7D7D91; /* 落ち着いた紫グレー */
    --accent-color: #6a5a80;  /* アクセントの紫 */
    --bg-color: #F9F9FB;      /* 背景色（青みのある白） */
    --text-color: #333333;
    --text-light: #666666;
    --white: #ffffff;
    
    /* フォント設定 */
    --font-serif: "Noto Serif JP", serif;       /* 見出し用 */
    --font-sans: "Zen Maru Gothic", sans-serif; /* 本文用 */
    
    /* レイアウト変数 */
    --header-height: 80px;
    --section-spacing: 120px;
    --container-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 2;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.05em;
    overflow-x: hidden; /* 横スクロール防止 */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* コンテナ設定 */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* タイポグラフィ */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
}

/* セクション共通 */
.section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title-en {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-family: sans-serif;
}

.section-title-ja {
    display: inline-block;
    font-size: 2.2rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title-ja::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: var(--accent-color);
}

/* =========================================
   ヘッダー (ガラスモーフィズム)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    /* 初期状態は透明 */
    background: transparent;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo img {
    height: 50px;
    width: auto;
    /* ロゴ背景白抜きが不要なら削除 */
    }

/* ナビゲーション */
.global-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.global-nav a {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-color); /* 白背景時は黒文字 */
    position: relative;
}
/* ヘッダーが透明な時（トップ位置）は見やすくする調整が必要な場合はここに記述 */
/* 今回はシンプルにスクロール前も視認できる前提、またはJSで制御 */

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.global-nav a:hover::after {
    width: 100%;
}

.header-contact {
    display: flex;
    align-items: center;
}

.tel-button {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.tel-button .tel-number {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--accent-color);
    font-weight: bold;
}
.tel-button .tel-sub {
    font-size: 0.7rem;
    color: var(--text-light);
    background: #eee;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}

/* ハンバーガー */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    display: block; width: 30px; height: 2px; background: #333;
    margin: 6px 0; transition: 0.3s;
}

/* スマホメニュー */
.mobile-menu {
    position: fixed; top: 0; right: 0; width: 80%; max-width: 300px; height: 100vh;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 1050; padding: 100px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu li { margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }


/* =========================================
   メインビジュアル (没入型)
   ========================================= */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* 画面いっぱい */
    height: 100dvh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ゆっくりズームアウトするアニメーション */
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    from { transform: scale(1.0); }
    to { transform: scale(1.15); }
}

/* ヒーローオーバーレイ（文字を読みやすく） */
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2); 
}

/* ヒーローキャッチコピー（縦書きでモダン和風） */
.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    writing-mode: vertical-rl; /* 縦書き */
    text-orientation: upright;
    letter-spacing: 0.3em;
    margin-right: -18vw; /* 右側に寄せる */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    border-right: 1px solid rgba(255,255,255,0.8);
    padding-right: 30px;
    margin-left: 30px;
}

.hero-sub {
    font-size: 1.1rem;
    font-family: var(--font-sans);
    opacity: 0.9;
}

/* スクロールダウンインジケーター */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    z-index: 2;
    animation: float 2s infinite ease-in-out;
}
.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: #fff;
    margin: 10px auto 0;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
    50% { transform: translate(-50%, 10px); opacity: 1; }
}


/* =========================================
   コンセプト (画像とテキストの融合)
   ========================================= */
.concept-section {
    position: relative;
    background: #fff;
    overflow: hidden;
}

.concept-bg-shape {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(172,201,231,0.2) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    border-radius: 50%;
}

.concept-inner {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.concept-image {
    flex: 1;
    position: relative;
}

.concept-image img {
    border-radius: 8px;
    box-shadow: 20px 20px 0px rgba(230, 230, 240, 1);
    /* スクロールアニメーション用初期状態 */
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

.concept-text {
    flex: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease 0.3s; /* 遅延 */
}

.concept-text h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.concept-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.05rem;
}


/* =========================================
   施設案内 (カード型レイアウト)
   ========================================= */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.facility-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    /* スクロールアニメ用 */
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s;
}

/* アニメーション発火時 */
.facility-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.facility-card:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.8;
}

.btn-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: bold;
    position: relative;
    width: fit-content;
}

.btn-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-link:hover::after {
    transform: translateX(5px);
}

/* =========================================
   フッター
   ========================================= */
.footer {
    background: #f0f0f4;
    padding: 80px 0 30px;
    margin-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-info h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.footer-nav ul {
    list-style: none;
}
.footer-nav li {
    margin-bottom: 12px;
}
.footer-nav a {
    color: var(--text-light);
    font-size: 0.9rem;
}
.footer-nav a:hover {
    color: var(--accent-color);
}

.copyright {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 30px;
    color: #999;
    font-size: 0.8rem;
}

/* =========================================
   共通アニメーション用クラス (JSで制御)
   ========================================= */
.js-scroll-trigger {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.js-scroll-trigger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   レスポンシブ
   ========================================= */
@media (max-width: 900px) {
    :root {
        --header-height: 60px;
        --section-spacing: 80px;
    }
    
    .global-nav { display: none; }
    .hamburger { display: block; }
    
    .hero-content {
        writing-mode: horizontal-tb; /* スマホは横書きに戻す */
        text-align: center;
        margin-right: 0;
        margin-top: 60px;
    }
    
    .hero-title {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.8);
        padding-right: 0;
        padding-bottom: 20px;
        margin-left: 0;
        margin-bottom: 20px;
        font-size: 1.8rem;
    }
    
    .concept-inner {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .tel-button .tel-number { font-size: 1.1rem; }
    .tel-button .tel-sub { display: none; }
}
/* =========================================
   ヘッダー (Glassmorphism & Fixed)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--text-color);
}

/* スクロール時のスタイル（背景が白くなり影がつく） */
.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 70px; /* 少しコンパクトに */
}

.header-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
}
.logo img {
    height: 48px;
    width: auto;
    /* ロゴが見やすいように微調整 */
  
    border-radius: 4px;
}


/* PCナビゲーション */
.global-nav {
    margin-left: auto;
    /* ★修正1：右の余白を詰めて、メニュー全体を右へ寄せる */
    margin-right: 10px; /* 変更前: 40px */
}

/* 親メニュー：直下のulのみ横並びにする */
.global-nav > ul {
    display: flex;
    /* ★修正2：項目間の間隔を狭めて、メニューの開始位置を右へずらす */
    gap: 20px; /* 変更前: 30px */
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* 親メニューのリンク */
.global-nav > ul > li > a {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    padding: 10px 0;
    position: relative;
    letter-spacing: 0.05em;
    display: block;
    text-decoration: none;
}

/* 親メニューの下線アニメーション */
.global-nav > ul > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.global-nav > ul > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- ドロップダウンメニュー設定 --- */
.has-child {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.sub-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 50%;
    
    width: max-content;
    min-width: 180px;
    
    /* ピンク背景デザイン（ご指定の透過率に変更） */
    background: rgba(215, 185, 205, 0.096);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    z-index: 1000;
    
    /* アニメーション初期状態 */
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(10px);
    transition: all 0.3s ease;
}

/* ホバー時の枠の動作 */
.has-child:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.2s; /* 0.2秒待機 */
}

/* リストアイテムのアニメーション設定 */
.sub-menu li {
    display: block;
    width: 100%;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.has-child:hover .sub-menu li {
    opacity: 1;
    transform: translateY(0);
}

/* カスケード表示の遅延設定 */
.has-child:hover .sub-menu li:nth-child(1) { transition-delay: 0.25s; }
.has-child:hover .sub-menu li:nth-child(2) { transition-delay: 0.30s; }
.has-child:hover .sub-menu li:nth-child(3) { transition-delay: 0.35s; }
.has-child:hover .sub-menu li:nth-child(4) { transition-delay: 0.40s; }

/* リンクのデザイン */
.sub-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 0.9rem;
    color: #444;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    
    /* 背景変化のアニメーションを少しゆっくりに */
    transition: all 0.4s ease;
    border-radius: 6px; /* ホバー時の光の形を少し丸める */
    margin: 0 5px; /* 横に少し隙間を開けて光が切れないようにする */
}

/* ★修正箇所：ホバー時の「ぼやーっと浮かび上がる」演出 */
.sub-menu li a:hover {
    /* 背景の光（ボックスの光） */
    background: rgba(255, 255, 255, 0.2); /* 少し白を強くしました */
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.3); /* ぼかし範囲を広げました */
    
    /* 文字の色（くっきりさせる） */
    color: #000; 
    
    /* ★文字自体の発光エフェクト（多重影でリッチな光沢） */
    text-shadow: 
        0 0 5px rgba(255, 255, 255, 1),   /* 内側の強い光 */
        0 0 10px rgba(255, 255, 255, 0.8), /* 外側のふんわりした光 */
        0 0 15px rgba(255, 200, 230, 0.5); /* ほんのりピンク色の光 */
        
    /* 文字の線も少しだけ太くして視認性を上げる */
    font-weight: 500; 
}

/* ドロップダウン内の下線アニメーションは非表示 */
.sub-menu li a::after {
    display: none;
}

/* --- ヘッダーアクション（電話・ハンバーガー） --- */
.header-action {
    display: flex;
    align-items: center;
    gap: 20px;
}

.tel-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
    color: var(--text-color);
}
.tel-label {
    font-size: 0.65rem;
    background: var(--accent-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 2px;
}
.tel-number {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* --- ハンバーガーメニュー --- */
.hamburger {
    display: none; /* PCでは非表示 */
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    transition: 0.4s;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); background: #fff; }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: #fff; }


/* --- スマホ用メニュー (オーバーレイ) --- */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(106, 90, 128, 0.98); /* アクセントカラーの透過背景 */
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-inner {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    color: #fff;
}
.mobile-nav-list {
    list-style: none;
    text-align: center;
}
.mobile-nav-list li {
    margin-bottom: 20px;
}
.mobile-nav-list a {
    font-size: 1.2rem;
    font-weight: bold;
    display: block;
    font-family: var(--font-serif);
}
.mobile-nav-list .en {
    display: block;
    font-size: 0.8rem;
    font-family: sans-serif;
    font-weight: normal;
    opacity: 0.7;
    margin-top: 5px;
}
.mobile-nav-list .sub-item {
    margin-bottom: 10px;
}
.mobile-nav-list .sub-item a {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
}
.mobile-contact {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 30px;
}
.mobile-tel-btn {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-top: 10px;
    font-family: var(--font-serif);
}

/* =========================================
   フッター (Modern Grid)
   ========================================= */
.footer {
    background: #f4f4f6; /* 薄いグレー */
    padding: 80px 0 20px;
    margin-top: 100px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: flex-start;
}

/* ブランド情報エリア */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-logo img {
    height: 60px;
    background: transparent; /* 必要であれば白背景 */
    mix-blend-mode: multiply; /* 背景となじませる(白背景画像の場合) */
}
.brand-msg {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: bold;
}
.footer-contact-info .address {
    margin-bottom: 10px;
}
.footer-tel {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-color);
    font-family: var(--font-serif);
    line-height: 1;
    display: block;
    margin-bottom: 5px;
}
.reception-time {
    background: #fff;
    border: 1px solid #ddd;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
}
.btn-map {
    display: inline-block;
    background: #fff;
    color: var(--text-color);
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.3s;
    width: fit-content;
    text-align: center;
}
.btn-map:hover {
    background: var(--text-color);
    color: #fff;
    border-color: var(--text-color);
}

/* リンク集エリア */
.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.link-col h4 {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}
.link-col ul {
    list-style: none;
}
.link-col li {
    margin-bottom: 15px;
}
.link-col a {
    color: #555;
    transition: 0.3s;
    display: block;
}
.link-col a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* コピーライト */
.footer-bottom {
    border-top: 1px solid #ddd;
    padding-top: 30px;
    text-align: center;
}
.copyright {
    color: #999;
    font-size: 0.8rem;
    font-family: sans-serif;
}

/* =========================================
   上に戻るボタン
   ========================================= */
#page-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 900;
}
#page-top.show {
    opacity: 1;
    visibility: visible;
}
#page-top a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    font-size: 0.8rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
#page-top a:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
}

/* =========================================
   レスポンシブ (スマホ対応)
   ========================================= */
@media (max-width: 900px) {
    .global-nav { display: none; }
    .tel-link { display: none; } /* スマホヘッダーでは電話番号非表示(メニュー内にあるため) */
    .hamburger { display: block; margin-left: auto; }
    
    .header { height: 60px; }
    .header.scrolled { height: 60px; }
    .header-inner { padding: 0 20px; }
    .logo img { height: 40px; }
    
    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-tel { font-size: 1.8rem; }
}
/* =========================================
   アニメーション表示用（追記・修正）
   ========================================= */

/* コンセプト画像が表示されるようにする */
.concept-image.is-visible img {
    opacity: 1;
    transform: translateY(0);
}

/* コンセプトテキストが表示されるようにする */
.concept-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* もしJSが動かない場合でも強制的に表示させるための安全策（必要に応じてコメントアウトを外してください） */
/* 
.concept-image img, .concept-text, .facility-card {
    opacity: 1 !important;
    transform: none !important;
} 
*/
/* =========================================
   会社概要 (ガラスモーフィズム & パララックス)
   ========================================= */
.company-section {
    position: relative;
    padding: 140px 0;
    
    /* 背景画像設定 */
    background-image: url('../../img/main/main_03.jpg'); 
    background-size: cover;
    background-position: center;
    
    /* パララックス効果（背景固定） */
    background-attachment: fixed;
    overflow: hidden;
}

/* 背景を少し暗くして文字を見やすくするフィルター */
.company-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3); /* 黒の半透明 */
    z-index: 0;
}

/* ガラスのカード */
.company-card {
    position: relative; /* 背景より手前に */
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    
    /* ★ガラスモーフィズムの核となる設定 */
    background: rgba(255, 255, 255, 0.7); /* 白の半透明 */
    backdrop-filter: blur(15px); /* すりガラス効果 */
    -webkit-backdrop-filter: blur(15px); /* Safari用 */
    
    border: 1px solid rgba(255, 255, 255, 0.6); /* 薄い白枠 */
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); /* 深い影 */
    text-align: center;
    
    /* アニメーション用初期設定（下からフワッと） */
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* スクロールして表示された時の状態 */
.company-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* カード内のタイトル調整 */
.company-card .section-title-wrapper {
    margin-bottom: 40px;
}
.company-card .section-title-ja::after {
    background-color: var(--accent-color);
}

/* 会社情報リスト */
.company-list {
    text-align: left;
    margin-bottom: 40px;
    display: inline-block;
    width: 100%;
}

.company-row {
    display: flex;
    border-bottom: 1px solid rgba(106, 90, 128, 0.15); /* 薄い紫グレーの線 */
    padding: 18px 0;
}
.company-row:last-child {
    border-bottom: none;
}

.company-row dt {
    width: 30%;
    min-width: 100px;
    font-weight: bold;
    color: var(--accent-color); /* テーマカラーの紫 */
    font-family: var(--font-serif);
    display: flex;
    align-items: center;
}

.company-row dd {
    width: 70%;
    color: #333;
    font-weight: 500;
}

/* ガラス風ボタン */
.btn-glass {
    display: inline-block;
    padding: 12px 50px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-family: var(--font-serif);
    font-weight: bold;
    border-radius: 4px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glass:hover {
    color: #fff;
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: 0 5px 15px rgba(106, 90, 128, 0.253);
    transform: translateY(-2px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .company-section {
        background-attachment: scroll; /* スマホは固定解除して負荷軽減 */
        padding: 60px 20px;
    }
    .company-card {
        padding: 40px 20px;
    }
    .company-row {
        flex-direction: column;
        gap: 5px;
    }
    .company-row dt {
        width: 100%;
        font-size: 0.9rem;
        opacity: 0.8;
    }
    .company-row dd {
        width: 100%;
    }
}
/* =========================================
   施設案内ページ用スタイル
   ========================================= */

/* イントロダクション（コンセプト） */
.intro-text-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}
.intro-title {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin: 20px 0 40px;
    line-height: 1.6;
}
.intro-text-center p {
    font-size: 1rem;
    line-height: 2.2;
    margin-bottom: 20px;
    color: var(--text-light);
}

/* ジグザグレイアウト (Feature Row) */
.feature-section {
    padding-bottom: 80px;
}
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}
.feature-row.reverse {
    flex-direction: row-reverse;
}
.feature-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.feature-image img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}
.feature-row:hover .feature-image img {
    transform: scale(1.05);
}
.feature-text {
    flex: 1;
    padding: 20px;
}
.feature-text h4 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    display: inline-block;
}
.feature-text p {
    line-height: 2;
    color: var(--text-color);
}

/* 控室グリッド (Gallery) */
.bg-gray {
    background-color: #f9f9fc;
    padding-top: 80px;
    padding-bottom: 80px;
}
.grid-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.gallery-item:hover {
    transform: translateY(-5px);
}
.gallery-img {
    height: 180px;
    overflow: hidden;
}
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.gallery-item:hover .gallery-img img {
    transform: scale(1.1);
}
.gallery-caption {
    padding: 20px;
    text-align: center;
}
.gallery-caption h5 {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.gallery-caption p {
    font-size: 0.85rem;
    color: #888;
}

/* フロアマップ */
.floormap-desc {
    text-align: center;
    margin-bottom: 40px;
}
.floormap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    align-items: flex-start;
}
.floormap-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    position: relative;
}
.floor-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}
.floormap-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 15px;
}
.floormap-card p {
    font-weight: bold;
    color: #555;
    font-size: 0.9rem;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    pointer-events: none;
}

a img {
    pointer-events: auto;
}

/* スマホ対応調整 */
@media (max-width: 768px) {
    .feature-row {
        flex-direction: column;
        gap: 30px;
        margin-bottom: 60px;
    }
    .feature-row.reverse {
        flex-direction: column;
    }
    .feature-text {
        padding: 0;
    }
    .floormap-container {
        grid-template-columns: 1fr 1fr; /* スマホでも2列表示で見やすく */
    }
}
@media (max-width: 480px) {
    .floormap-container {
        grid-template-columns: 1fr; /* 画面が小さすぎる場合は1列 */
    }
}

/* =========================================
   当社の特徴 (Features)
   ========================================= */

/* 背景色（薄いグレーで区切りをつける） */
.bg-gray {
    background-color: #f9f9fc;
}

.features-grid {
    display: grid;
    /* 幅300px以上のカードを画面幅に合わせて自動折り返し */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    
    /* アニメーション用 */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* スクロール時のアニメーション */
.feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* 上部のアクセントバー */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color); /* テーマカラーの紫 */
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

/* 番号デザイン */
.feature-icon {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: rgba(106, 90, 128, 0.15); /* 薄い紫 */
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    padding-right: 40px; /* 番号と被らないように */
    border-bottom: 1px dashed #ddd;
    padding-bottom: 15px;
    line-height: 1.4;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr; /* スマホは1列 */
    }
    .feature-card {
        padding: 30px 20px;
    }
}