@charset "UTF-8";

/* ==========================================
   共通変数・基本設定
   ========================================== */
:root {
    --primary-color: #4da6ff;
    --primary-hover: #3b82f6;
    --border-color: #e2e8f0;
    --sub-text: #718096;
    --radius-base: 8px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2d3748;
    background-color: #f7fafc;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================
   ヘッダー・ナビゲーション
   ========================================== */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1a202c;
}

/* PC用ナビゲーション */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

/* ハンバーガーボタン（デフォルト非表示） */
.hamburger {
    display: none;
}

/* ==========================================
   メインコンテナ・基本要素
   ========================================== */
.container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-base);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

h1 {
    font-size: 1.5rem;
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
}

h2 {
    font-size: 1.25rem;
    color: #1a202c;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ==========================================
   テーブルスタイル（料金表等の整列用）
   ========================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    background: #ffffff;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    text-align: left;
    font-size: 0.95rem;
}

th {
    background-color: #f7fafc;
    color: #1a202c;
    font-weight: bold;
}

/* ==========================================
   スマホ専用クイックナビ（PC等では完全非表示）
   ========================================== */
.sp-quick-nav {
    display: none !important;
}

/* ==========================================
   メディアクエリ（スマホ表示：768px以下）
   ========================================== */
@media (max-width: 768px) {
    .container {
        margin: 10px auto;
        padding: 15px;
    }

    /* スマホ画面ではハンバーガーボタン・ドロワーメニューを完全に非表示 */
    .hamburger,
    .nav-menu {
        display: none !important;
    }

    /* ヘッダーロゴの配置を中央揃えに調整 */
    .header-inner {
        justify-content: center;
        padding: 12px 15px;
    }

    /* スマホ専用 クイックナビゲーション（ボタン型・追従固定） */
    .sp-quick-nav {
        display: block !important;
        position: sticky;
        top: 65px; /* ヘッダー直下に固定 */
        z-index: 990;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(4px);
        padding: 8px 10px;
        margin-left: -15px;
        margin-right: -15px;
        margin-bottom: 15px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .quick-nav-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }

    .quick-nav-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 2px !important;
        background: #ffffff !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 6px !important;
        color: #2d3748 !important;
        font-size: 0.75rem !important;
        font-weight: bold !important;
        text-decoration: none !important;
        text-align: center !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
    }

    .quick-nav-btn:hover, .quick-nav-btn:active {
        background-color: #f7fafc !important;
        border-color: var(--primary-color) !important;
        color: var(--primary-color) !important;
    }

    /* テーブルのスマホ表示調整 */
    table {
        font-size: 0.85rem;
    }

    th, td {
        padding: 8px 10px;
    }
}