/* 基本設定のカラーをホンダの赤に変更 */
:root {
    --main-color: #E41E24; /* Honda Red */
    --honda-black: #000000;
    --text-color: #333;
    --bg-color: #fff;
    --dark-bg: #111;
}

/* ヘッダー全体の高さをロゴに合わせて調整 */
.header {
    background-color: rgba(0, 0, 0, 0.95);
    color: #fff;
    padding: 8px 0; /* 少しスリムに */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--main-color); /* 下部に赤いラインを入れて引き締める */
}

/* ロゴ画像のサイズ調整 */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px; /* PCでの高さ */
    width: auto;
    display: block;
    transition: 0.3s;
}

/* スマホでのロゴサイズ調整 */
@media (max-width: 768px) {
    .logo-img {
        height: 40px; /* スマホでは少し小さく */
    }
    
    .nav ul {
        gap: 10px; /* メニューの間隔を少し詰める */
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* 共通コンテナ */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    gap: 20px;
}

.nav a {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #ccc;
}

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

.btn-nav {
    border: 1px solid #fff;
    padding: 5px 15px;
    border-radius: 4px;
}

/* --- ヒーローセクション最終調整 --- */

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px; /* スマホで文字が端に寄りすぎるのを防ぐ */
}

.hero-content {
    max-width: 900px; /* フレーズが長いので少し広めに設定 */
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.main-phrase {
    display: block;
    font-size: clamp(1.8rem, 7vw, 4.2rem); /* スマホで溢れないよう最小値を微調整 */
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

.sub-phrase {
    display: block;
    font-size: clamp(0.9rem, 3.5vw, 1.6rem);
    font-weight: 400;
    margin-top: 0.8rem;
    color: var(--main-color);
    letter-spacing: 0.15em;
}

/* 既存のsubtitleの微調整 */
.hero-subtitle {
    font-size: clamp(0.9rem, 3vw, 1.2rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
    letter-spacing: 0.05em;
}

.hero-subtitle2 {
    font-size: clamp(0.8rem, 3vw, 1rem);
    opacity: 0.9;
    letter-spacing: 0.05em;
    color: #888;
}

/* ボタンのレイアウト */
.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap; /* スマホでボタンが入りきらない場合に自動で折り返す */
}

.btn-hero {
    display: inline-block;
    min-width: 160px; /* ボタンの幅を揃えるとかっこいい */
    background-color: var(--main-color);
    color: #fff;
    padding: 14px 24px;
    border-radius: 4px; /* 丸みすぎない方が硬派な印象 */
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
}

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

.section-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--main-color);
    margin: 10px auto 0;
}

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

/* スケジュールカード */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-left: 5px solid var(--main-color);
}

.card-date {
    font-family: 'Oswald', sans-serif;
    color: var(--main-color);
    font-weight: bold;
    margin-bottom: 5px;
}

.card-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.9rem;
    color: #666;
}

/* フッター */
.footer {
    background-color: var(--dark-bg);
    color: #888;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
}

/* スマホ向けレスポンシブ対応 */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }

    .nav ul {
        gap: 15px;
        font-size: 0.8rem;
    }
}

/* 過去のイベント（アコーディオン） */
.history-container {
    max-width: 800px;
    margin: 0 auto;
}

.history-year {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.history-year summary {
    background-color: #333; /* 閉じてる時の色 */
    color: #fff;
    padding: 15px 20px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    list-style: none; /* デフォルトの三角を消す */
    position: relative;
    transition: background-color 0.3s;
}

/* 開いている時のヘッダー色（赤に変える） */
.history-year[open] summary {
    background-color: var(--main-color);
}

/* カスタムアイコン（＋と－） */
.history-year summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.history-year[open] summary::after {
    content: '-';
}

/* イベントリストの中身 */
.event-list {
    padding: 0;
}

.event-list li {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-wrap: wrap; /* スマホで折り返す */
    align-items: center;
    gap: 10px;
}

.event-list li:last-child {
    border-bottom: none;
}

/* 日付 */
.event-list .date {
    font-family: 'Oswald', sans-serif;
    color: var(--main-color);
    font-weight: bold;
    min-width: 80px;
}

/* 場所（丸いバッジスタイル） */
.event-list .loc {
    background: #eee;
    color: #555;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* メンバーセクション (ダーク背景) */
.bg-dark {
    background-color: #111;
    color: #fff;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

/* カウントダウンの装飾 */
.countdown-box {
    text-align: center;
    padding: 30px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.03);
}

.countdown-label {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: #ccc;
}

.countdown-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.days-number {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--main-color);
    line-height: 1;
}

.days-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 4px;
    color: #666;
}

.countdown-anniversary {
    font-size: 0.8rem;
    color: #888;
}

/* ログインフォームの装飾 */
.login-box {
    background: #222;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.login-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--main-color);
}

.login-desc {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 20px;
}

.login-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    border-radius: 4px;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-login:hover {
    background: #d32f2f;
}

.login-links {
    margin-top: 15px;
    font-size: 0.8rem;
    text-align: center;
}

.login-links a {
    color: #888;
    text-decoration: underline;
}

.login-links a:hover {
    color: #fff;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .days-number {
        font-size: 3rem;
    }
}

/* 次のイベントバー：日数強調スタイル */
.next-event-bar {
    background: var(--main-color);
    color: #fff;
    padding: 20px 0;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.event-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.event-info-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.event-tag {
    background: #000; /* ホンダの黒 */
    color: #fff;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.event-name {
    font-size: 1.1rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

/* 数字を大きく、力強く */
.event-timer-days {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.timer-number {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem; /* 大きな数字 */
    line-height: 1;
    font-weight: 700;
}

.timer-label {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* スマホ表示 */
@media (max-width: 768px) {
    .event-info-main {
        flex-direction: column;
        gap: 5px;
    }
    .timer-number {
        font-size: 2.8rem;
    }
}

/* SNSリンクカードのデザイン */
.sns-links-section {
    padding: 50px 0;
    border-top: 1px solid #333;
}

.sns-flex {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sns-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 8px;
    color: #fff;
    font-weight: bold;
    min-width: 240px;
    transition: 0.3s;
}

.sns-card.fb { background-color: #000; border: 1px solid #333; }
.sns-card.x-twitter { background-color: #000; border: 1px solid #333; }

.sns-card:hover {
    transform: translateY(-5px);
    filter: brightness(1.2);
}

.sns-icon {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    width: 30px;
    text-align: center;
}

.sns-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Facebookセクション全体の背景（少し暗くして浮かび上がらせる） */
#facebook {
    background-color: #f0f0f0;
}

/* 埋め込みを包む外枠 */
.fb-wrapper {
    max-width: 540px; /* Facebookの最大500px + 余白 */
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* 浮き上がる影 */
    display: flex;
    justify-content: center;
    border-top: 4px solid var(--main-color); /* 上部にRED WINGの赤を配置 */
}

/* Facebook公式パーツが確実に中央で最大幅になるように強制 */
.fb-page, 
.fb-page span, 
.fb-page iframe {
    width: 500px !important;
    max-width: 100% !important;
}

/* 下部のボタンエリア */
.fb-btn-area {
    text-align: center;
    margin-top: 30px;
}

/* スマホ表示の微調整 */
@media (max-width: 600px) {
    .fb-wrapper {
        padding: 10px;
        border-radius: 0; /* スマホでは画面端まで広げる */
    }
}

/* カウンターの装飾 */
.counter-box {
    background: #222;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid var(--main-color);
}

.visitor-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
}

.stat-label {
    font-size: 0.75rem;
    color: #888;
    font-weight: bold;
}

/* カウンター画像の調整 */
.stat-value img {
    height: 20px;       /* 文字の高さに合わせる（適宜調整） */
    vertical-align: middle;
    filter: brightness(1.2); /* 画像が暗い場合に少し明るくする */
    filter: invert(1); 
}

/* メンバーセクション共通カード */
.member-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 320px;
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    text-align: center;
}

/* 特別サイトボタン */
.special-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.btn-portal {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding: 12px 15px;
    border-radius: 4px;
    transition: 0.3s;
    border: 1px solid #333;
}

.btn-portal.summer { background: linear-gradient(135deg, #222, #333); border-left: 4px solid #f39c12; }
.btn-portal.winter { background: linear-gradient(135deg, #222, #333); border-left: 4px solid #3498db; }

.btn-portal:hover {
    transform: translateX(5px);
    filter: brightness(1.3);
    border-color: var(--main-color);
}

.btn-tag {
    font-family: 'Oswald', sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    color: var(--main-color);
    letter-spacing: 1px;
}

.btn-text {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

/* 一般ログイン（上部に配置するための修正） */
.general-login {
    border-bottom: 1px solid #333; /* 下線に変更 */
    padding-bottom: 20px;         /* 下側の余白 */
    margin-bottom: 20px;          /* 次の要素との間隔 */
}

.login-subtext {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
    text-align: center;
    font-weight: bold;
}

/* 横並びをやめ、縦に積み上げるレイアウトに変更 */
.login-form-mini {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-input-s {
    width: 100%; /* 幅をいっぱいに使う */
    background: #000;
    border: 1px solid #333;
    color: #fff;
    padding: 10px;
    font-size: 0.85rem;
    border-radius: 4px;
}

.btn-login-s {
    width: 100%; /* ボタンも幅いっぱいに */
    background: #444; /* 最初は控えめな色に */
    color: #fff;
    border: none;
    padding: 10px;
    font-family: 'Oswald', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
    margin-top: 5px;
}

.btn-login-s:hover {
    background: var(--main-color); /* ホバーでホンダレッドに */
    color: #fff;
}

/* 特設ポータルエリアの調整 */
.special-portals-area {
    display: flex;
    flex-direction: column;
}

.special-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* レスポンシブ */
@media (max-width: 992px) {
    .members-grid {
        grid-template-columns: 1fr; /* スマホ・タブレットでは縦並び */
    }
}