/* 基本スタイル - フォント、body、ヘッダー、フッター */

/* フォント設定 */
body {
    font-family: 'Noto Sans JP', 'Rounded M+ 1c', 'Yu Gothic', sans-serif;
    background-color: #f4f4f2;
    color: var(--color-text-dark);
    min-height: 100vh;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    letter-spacing: 0.01em;
}

/* 見出しの階層を明確化 */
h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
    line-height: var(--line-height-tight);
    color: var(--color-text-dark);
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text-dark);
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    color: var(--color-text-dark);
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-normal);
    color: var(--color-text-dark);
}

/* セクションタイトル */
.section-title {
    margin-bottom: 20px;
    text-align: center;
}

/* ヘッダー・フッター */
header, footer {
    margin: 0;
    font-size: 1.5em;
}

/* ヘッダー */
header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    padding: 8px 20px;
    backdrop-filter: blur(6px);
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #dcd8d3;
}

.header-container {
    display: flex;
    justify-content:left; /* 水平方向の左揃え */
    align-items: center; /* 垂直方向の中央揃え */
    position: relative;
}

/* ロゴ画像のスタイル */
.header-container img {
    height: 80px;
    width: auto;
}

/* タイトル */
header h1 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary-dark);
    padding: 10px;
}

/* フッター*/
footer {
    background-color: #03172c;
    color:#ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    padding-bottom: 5rem;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 10px;

}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-gray-300);
}

.footer-link:active {
    color: var(--color-gray-400);
}

/* ========================================
   ハンバーガーメニュー・ナビゲーションドロワー
   ======================================== */

/* ハンバーガーボタン（デスクトップでは非表示） */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* ナビゲーションオーバーレイ */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
}

.nav-overlay.open {
    display: block;
}

/* ナビゲーションドロワー */
.nav-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #ffffff;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
}

.nav-drawer.open {
    left: 0;
}

.nav-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.nav-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #718096;
    line-height: 1;
    padding: 0 4px;
}

.nav-close-btn:hover {
    color: var(--color-text-dark);
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
}

.nav-menu li {
    border-bottom: 1px solid #f0eeea;
}

.nav-menu a {
    display: block;
    padding: 14px 20px;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background: #f7fafc;
    color: var(--color-primary-dark);
}

/* レスポンシブ: ハンバーガーメニュー表示 */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex;
    }

    .header-container img {
        height: 48px;
    }

    header h1 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .header-container img {
        height: 36px;
    }

    header h1 {
        font-size: 16px;
    }
}
