@charset "UTF-8";

/* ==========================================================================
   Variables - カラーやフォントの定義
   ========================================================================== */
:root {
    /* Colors - より深みのある色合いへ */
    --color-primary: #005c8a;      /* 少し落ち着いた深めの青 */
    --color-primary-dark: #00334d; /* かなり濃いネイビー */
    --color-secondary: #f4f7f9;    /* 背景用のグレーがかった白 */
    --color-accent: #b89b5e;       /* マットな質感のゴールド */
    --color-text: #2c3e50;         /* 真っ黒ではなくダークネイビー系 */
    --color-text-light: #5f6c7b;   
    --color-white: #ffffff;
    --color-bg-base: #f4f7f9;      /* ベース背景色 */
    --color-bg-sub: #ffffff;       /* サブ背景色（カードや強調エリア用） */
    
    /* Fonts */
    --font-base: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    --font-serif: "Noto Serif JP", "Times New Roman", serif;
    --font-english: "Playfair Display", serif; /* 英語見出し用 */
    
    /* Layout */
    --width-container: 1100px; /* 少しワイドに */
    --spacing-base: 24px;
    --border-radius: 4px; /* 丸みを抑えてシャープに */
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--color-text);
    background-color: var(--color-bg-base);
    background-image: none; /* 五線譜はheaderや特定のセクションに限定しても良いかも */
    line-height: 1.9;
    letter-spacing: 0.05em; /* 文字間を広げて上品に */
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* 背景にテクスチャ感をプラス（五線譜は薄く残す） */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            transparent,
            transparent 59px,
            rgba(0, 0, 0, 0.02) 59px,
            rgba(0, 0, 0, 0.02) 60px
        );
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* ==========================================================================
   Layout Components
   ========================================================================== */
.container {
    width: 90%;
    max-width: var(--width-container);
    margin: 0 auto;
    padding: 0 var(--spacing-base);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: none;
    padding: 1.2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); /* 影をより繊細に */
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

/* ヘッダーの下線をよりシンプルで高級感あるものに */
.header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    opacity: 0.5;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cinzel', serif; /* 英語ロゴをCinzelに変更 */
    font-size: 1.6rem;
    font-weight: 400; /* 細身でスタイリッシュに */
    color: var(--color-primary-dark);
    letter-spacing: 0.1em;
    position: relative;
    padding-left: 25px;
}

/* ロゴにト音記号風のアクセント */
.logo::before {
    content: "𝄞";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.8rem;
    color: var(--color-accent);
    font-family: serif;
}

.logo span {
    color: var(--color-text);
    font-weight: 700;
}

/* Navigation */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem; /* 間隔を広げてゆとりを */
}

.nav-link {
    color: var(--color-text);
    font-family: 'Playfair Display', var(--font-base); /* 英語フォント混ぜる */
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-radius: 0;
    position: relative;
    overflow: visible;
    letter-spacing: 0.05em;
}

.nav-link:hover {
    color: var(--color-primary-dark);
    background-color: transparent;
    text-decoration: none;
    transform: translateY(0);
    box-shadow: none;
}

/* ホバー時は下線がスッと伸びるアニメーションに（より大人っぽく） */
.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover::after {
    /* 音符は控えめに */
    content: "♪";
    position: absolute;
    top: -15px;
    right: -10px;
    font-size: 0.7rem;
    color: var(--color-accent);
    animation: floatNote 1.5s ease-out infinite;
    opacity: 0.8;
}

@keyframes floatNote {
    0% { transform: translateY(0) rotate(0); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(-15px) rotate(20deg); opacity: 0; }
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer a {
    color: var(--color-secondary);
}

/* ==========================================================================
   Common UI Components
   ========================================================================== */
/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--color-primary-dark); /* 濃紺で引き締め */
    color: var(--color-white);
    border-radius: 2px; /* 丸みをとって角ばらせる */
    font-family: 'Playfair Display', var(--font-base);
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.4s ease;
    border: 1px solid var(--color-primary-dark);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: none;
    z-index: 1;
}

.btn::before {
    /* 削除：前の斜めアニメーション */
    content: none; 
}

/* ホバーで白反転するクラシックなスタイル */
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    color: var(--color-primary-dark);
    background-color: #fff;
    text-decoration: none;
}

.btn-accent {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: #fff;
    color: var(--color-accent);
    box-shadow: 0 10px 20px rgba(184, 155, 94, 0.2);
}

/* Sections */
.section {
    padding: 7rem 0; /* 余白を大きく取って高級感 */
    position: relative;
}

.section-title {
    font-family: 'Playfair Display', serif; /* 英語フォント */
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-primary-dark);
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: 0.05em;
}

/* 見出しの下線をシンプルかつ繊細に */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 0;
}

.section-title::before {
    /* 音符装飾は削除してシックに（あるいは極小にする） */
    content: none;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem; /* 間隔広め */
}

.card {
    background: var(--color-white);
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03); /* 非常に薄く広い影 */
    overflow: hidden;
    transition: all 0.5s ease;
    border: none;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 50, 80, 0.08);
}

.card:hover .card-img {
    transform: scale(1.03);
    filter: grayscale(0%); /* ホバーでカラーに戻すなどの演出が可能 */
}

.card-img {
    width: 100%;
    height: 240px; /* 画像エリア広く */
    object-fit: cover;
    background-color: #f0f0f0; 
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(20%) sepia(10%); /* 少し落ち着いたトーンに */
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.5rem;
    color: var(--color-primary-dark);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays if needed (JSでインデックス付与が必要だが、簡易的にnth-childで対応も可) */
.card-grid .card:nth-child(1) { transition-delay: 0.1s; }
.card-grid .card:nth-child(2) { transition-delay: 0.2s; }
.card-grid .card:nth-child(3) { transition-delay: 0.3s; }
.card-grid .card:nth-child(4) { transition-delay: 0.4s; }

/* Responsive Design */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
    }
    
    .hamburger {
        display: block;
    }

    .nav-menu {
        display: none; /* JSでトグルさせる */
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
        background-color: var(--color-secondary);
        padding: 1rem;
        border-radius: var(--border-radius);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
}

