@charset "utf-8";

:root {
    --bg-dark: #111111;
    --bg-panel: #1a1a1a;
    --text-main: #e0e0e0;
    --gold: #cfa968;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.8;
    letter-spacing: 1px;
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(17, 17, 17, 0.95);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.logo {
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 4px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 2px;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--gold);
}

/* セクション共通 */
section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 60px;
    font-weight: normal;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--gold);
    margin: 20px auto 0;
}

/* ヒーローセクション */
.hero {
    max-width: 100%;
    padding: 0;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: -1;
}

.hero-text {
    text-align: center;
}

.hero-text h1 {
    font-size: 72px;
    color: var(--gold);
    letter-spacing: 15px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.hero-text p {
    font-size: 24px;
    letter-spacing: 8px;
}

/* 理念 */
.about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    background-color: var(--bg-panel);
    padding: 40px;
    border: 1px solid var(--border);
}

.about-container img {
    width: 50%;
    object-fit: cover;
    filter: grayscale(20%);
}

.about-text h3 {
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 20px;
    font-weight: normal;
}

.about-text p {
    margin-bottom: 15px;
    text-align: justify;
}

/* 三本柱（特長） */
.merits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.merit-card {
    background-color: var(--bg-panel);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid var(--border);
    border-top: 3px solid var(--gold);
}

.merit-kanji {
    font-size: 40px;
    color: var(--gold);
    margin-bottom: 20px;
    font-family: serif;
}

.merit-card h4 {
    font-size: 20px;
    margin-bottom: 20px;
    font-weight: normal;
}

/* ギャラリー */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    filter: grayscale(30%) contrast(1.1);
    transition: filter 0.4s;
}

.gallery-grid img:hover {
    filter: grayscale(0%);
}

/* 案内 */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}

.info-table th, .info-table td {
    padding: 25px;
    border-bottom: 1px solid var(--border);
}

.info-table th {
    width: 25%;
    text-align: left;
    color: var(--gold);
    font-weight: normal;
}

/* 指導員プロフィール */
.profile-card {
    background-color: var(--bg-panel);
    padding: 50px;
    border: 1px solid var(--border);
    text-align: center;
}

.profile-desc .role {
    color: var(--gold);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.profile-desc h3 {
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: normal;
}

.profile-desc p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto;
}

/* フッター */
footer {
    background-color: #0a0a0a;
    text-align: center;
    padding: 80px 20px;
    border-top: 1px solid var(--border);
}

footer h3 {
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: normal;
}

.tel {
    font-size: 36px;
    color: var(--text-main);
    margin: 30px 0;
    letter-spacing: 2px;
}

.copyright {
    font-size: 12px;
    color: #666;
}

/* アニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }

/* スマホ表示用調整 */
@media (max-width: 768px) {
    .about-container { flex-direction: column; }
    .about-container img { width: 100%; }
    .merits-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero-text h1 { font-size: 48px; }
}

/* =========================================
   ここから上は前回のCSS（厳格な黒とゴールドの設定）をそのまま残してください
   ========================================= */

/* --- 演出：ふすまオープニング --- */
#fusuma-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 9999;
    display: flex;
    pointer-events: none; /* 開いた後はクリックを妨げないようにする */
}

.fusuma {
    width: 50%; height: 100%;
    /* 和紙のような色と、障子の骨組みを模した薄い線 */
    background-color: #dcd6ce;
    background-image: repeating-linear-gradient(to right, transparent, transparent 80px, rgba(0,0,0,0.05) 80px, rgba(0,0,0,0.05) 82px),
                      repeating-linear-gradient(to bottom, transparent, transparent 120px, rgba(0,0,0,0.05) 120px, rgba(0,0,0,0.05) 122px);
    border: 15px solid #2c1e16; /* 濃い木枠の色 */
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
    transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    align-items: center;
    position: relative;
    pointer-events: auto; /* 閉じている間はスクロール防止の意味も兼ねる */
}

.fusuma-left {
    border-right: 2px solid #111;
    transform: translateX(0);
    justify-content: flex-end;
}

.fusuma-right {
    border-left: 2px solid #111;
    transform: translateX(0);
    justify-content: flex-start;
}

/* ふすまの真ん中の文字 */
.fusuma-text {
    font-size: 60px;
    color: #111;
    font-family: "游明朝", YuMincho, serif;
    writing-mode: vertical-rl;
    letter-spacing: 20px;
    padding: 0 40px;
    opacity: 0.8;
}

/* ページ読み込み完了後に付与されるクラスで開く */
body.loaded .fusuma-left {
    transform: translateX(-100%);
}
body.loaded .fusuma-right {
    transform: translateX(100%);
}

/* --- 演出：舞い散る桜 --- */
#sakura-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    pointer-events: none;
    z-index: 100; /* ふすまより奥、コンテンツより手前 */
    overflow: hidden;
}

.petal {
    position: absolute;
    background-color: #ffb7c5; /* 桜色 */
    /* 花びららしい形をCSSで作る */
    border-radius: 15px 0 15px 0;
    opacity: 0.6;
    box-shadow: 0 0 5px rgba(255, 183, 197, 0.8);
    /* 落下と揺れの2つのアニメーションを組み合わせる */
    animation: fall linear infinite, sway ease-in-out infinite alternate;
}

@keyframes fall {
    0% { top: -10%; opacity: 0; transform: rotate(0deg) scale(0.5); }
    10% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { top: 110%; opacity: 0; transform: rotate(360deg) scale(1); }
}

@keyframes sway {
    0% { margin-left: 0px; }
    100% { margin-left: 80px; }
}