/* ==========================================================================
   選挙用品ECサイト - 共通スタイル
   最終更新: 2025-11-27 ハンバーガーメニュー実装
   ========================================================================== */

/* リセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #00ffff;        /* シアン（メインカラー） */
    --primary-dark: #00d4d4;         /* 濃いシアン */
    --secondary-color: #00cccc;      /* ダークシアン（アクセント） */
    --accent-color: #00e5e5;         /* 明るいシアン（サブカラー） */
    --line-green: #06C755;           /* LINE公式グリーン */
    --text-dark: #1E293B;
    --text-light: #475569;
    --bg-light: #e0ffff;             /* 明るいシアンの背景 */
    --bg-white: #ffffff;
    --border-color: #80ffff;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--bg-white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background-color: #c1ab05;
    color: white;
    padding: 10px 0;
    font-size: 15px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* .header-top 内のリンクは常に白文字・下線なし */
.header-top a,
.header-top a:visited,
.header-top a:hover,
.header-top a:active {
    color: #fff;
    text-decoration: none;
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    display: inline-block;
    line-height: 1;
}

.logo-image {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .logo-image {
        height: 40px;
    }
    
    /* スマホで .header-top を縦並びに */
    .header-top .container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    /* ▼スマホ時：ヘッダー上部の背景色を確実に固定（上書き対策） */
    .header-top {
        background-color: #c1ab05 !important;
    }
}

/* ナビゲーション */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

/* PC・タブレットビューでのナビゲーション */
@media (min-width: 969px) {
    .main-nav {
        display: block;
    }
    
    .main-nav ul {
        display: flex;
        flex-direction: row;
    }
    
    .hamburger {
        display: none !important;
    }
}

.main-nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--accent-color);
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none; /* デフォルトでは非表示 (PCビュー) */
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px; /* タップ領域を拡大 */
    z-index: 1001;
    position: relative;
    -webkit-tap-highlight-color: transparent; /* タップ時のハイライトを無効化 */
    touch-action: manipulation; /* タッチ操作を最適化 */
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #165962;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #0F1A35;
}

.btn-success {
    background-color: var(--line-green);
    color: white;
}

.btn-success:hover {
    background-color: #05A843;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 80px 20px;
    overflow: hidden;
    background: url('https://www.genspark.ai/api/files/s/JDtyzse1') center center / cover no-repeat;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.15;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 2;
    border-bottom: 3px solid #0EA5E9;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.4;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 15px rgba(0,0,0,0.5);
}

/* セクション */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 16px;
    margin-top: -30px;
    margin-bottom: 50px;
}

/* 公費対応ハイライト */
.public-expense-highlight {
    background: var(--secondary-color);
    color: white;
    padding: 50px 40px;
    border-radius: 8px;
    margin: 60px auto;
    box-shadow: var(--shadow-hover);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.public-expense-highlight h2 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.public-expense-highlight p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.public-expense-highlight .check-icon {
    font-size: 80px;
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .public-expense-highlight {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* カード */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid #BFDBFE;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.card-description {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

/* 特徴リスト */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 48px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* フッター */
.site-footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: white;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FFD700;
}

.footer-section p {
    color: white;
}

.footer-legal {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-legal ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal ul li {
    margin: 0;
}

.footer-legal ul li a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal ul li a:hover {
    color: #FFD700;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

/* レスポンシブ */
@media (max-width: 968px) {
    /* ハンバーガーメニュー表示 */
    .hamburger {
        display: flex !important;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        padding-top: 80px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .main-nav ul li {
        border-bottom: 1px solid #E5E7EB;
    }
    
    .main-nav a {
        display: block;
        padding: 18px 30px;
        color: var(--text-dark);
        font-size: 16px;
    }
    
    .main-nav a:hover {
        background: #EFF6FF;
        color: var(--accent-color);
    }
    
    .header-main .container {
        justify-content: space-between;
    }
    
    /* オーバーレイ */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* ユーティリティ */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.bg-light {
    background-color: var(--bg-light);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* CTA Block (knowledge.html) */
.cta-block {
  padding: 56px 20px;
  text-align: center;
  background: #f5f7fa;
}

.cta-block .container {
  max-width: 900px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 22px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.cta-block p {
  margin: 0 0 24px;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background: #0A2342;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.cta-button:hover {
  opacity: 0.92;
}