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

/* === ベース変数 & リセット === */
:root {
    --main-enji: #8B1538;
    --main-teal: #00B1AE;
    --enji-dark: #6B0F2A;
    --off-white: #FAF8F6;
    --primary-text: #1A1A1A;
    --secondary-text: #4A4A4A;
    --border-light: #E0E0E0;
    --gradient-main: linear-gradient(135deg, var(--main-enji) 0%, var(--enji-dark) 100%);
    --header-height: 70px;
    --max-width: 1100px;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: "Noto Sans JP", sans-serif; }
body { background-color: var(--off-white); color: var(--primary-text); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* === ヘッダー (共通) === */
.site-header {
    position: fixed; top: 0; width: 100%; height: var(--header-height);
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
    z-index: 1000; border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex; align-items: center; transition: all 0.3s;
}
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.header-inner {
    width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.05em; color: var(--primary-text); }

nav ul { display: flex; gap: 32px; }
nav a { font-size: 0.95rem; font-weight: 500; position: relative; color: var(--secondary-text); }
nav a:hover, nav a.current { color: var(--main-enji); }
nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--main-enji); transition: width 0.3s;
}
nav a:hover::after, nav a.current::after { width: 100%; }

/* ハンバーガーメニュー (SP用) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; z-index: 1100; width: 40px; height: 40px; position: relative; }
.menu-icon, .menu-icon::before, .menu-icon::after {
    width: 24px; height: 2px; background: var(--primary-text); display: block; position: absolute; transition: 0.3s; left: 8px;
}
.menu-icon { top: 19px; }
.menu-icon::before { content: ''; top: -7px; left: 0; }
.menu-icon::after { content: ''; top: 7px; left: 0; }
.menu-toggle.active .menu-icon { background: transparent; }
.menu-toggle.active .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .menu-icon::after { top: 0; transform: rotate(-45deg); }

/* === ヒーローセクション共通構造 === */
/* ※背景画像は各CSSで指定します */
.hero-base {
    position: relative; width: 100%; 
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center; text-align: center;
    margin-top: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; color: white; padding: 0 20px; width: 100%;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; line-height: 1.4;
    margin-bottom: 16px; letter-spacing: 0.05em;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem); font-weight: 500; opacity: 0.95;
    letter-spacing: 0.1em; display: inline-block; padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.5);
}

/* === 共通コンポーネント === */
.page-content { max-width: var(--max-width); margin: 0 auto; padding: 80px 24px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title-en {
    font-family: "Outfit", sans-serif; font-size: 1rem; color: var(--main-enji);
    font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; display: block;
}
.section-title-jp { font-size: 2rem; font-weight: 700; margin-top: 8px; }

/* ボタン */
.button-outline {
    display: inline-block; padding: 14px 48px; border: 1px solid var(--main-enji);
    color: var(--main-enji); border-radius: 50px; font-weight: 600; transition: 0.3s;
}
.button-outline:hover { background: var(--main-enji); color: white; transform: translateY(-2px); }

/* === アニメーション定義 === */
.animate-fade-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeUpEffect 1s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.6s; }
@keyframes fadeUpEffect { to { opacity: 1; transform: translateY(0); } }

.scroll-animate { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.scroll-animate.is-visible { opacity: 1; transform: translateY(0); }

/* === フッター (共通) === */
.site-footer { background: var(--primary-text); color: #fff; padding: 60px 24px; text-align: center; font-size: 0.9rem; }

/* === レスポンシブ共通 === */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    nav {
        position: fixed; top: var(--header-height); left: 0; width: 100%; background: white;
        border-bottom: 1px solid var(--border-light);
        transform: translateY(-100%); opacity: 0; transition: 0.3s; pointer-events: none; flex-direction: column; padding: 20px;
    }
    nav.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    nav ul { flex-direction: column; gap: 0; }
    nav a { display: block; padding: 16px 0; border-bottom: 1px solid #f5f5f5; }
}

/* === 背景スライドアニメーションの定義（共通） === */
@keyframes bgPan {
    0% {
        background-position: center top; /* 開始位置：上 */
    }
    100% {
        background-position: center bottom; /* 終了位置：下 */
    }
}
