/* --- 共通リセット & 洗練されたフォント設定 --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;
    line-height: 1.7; color: #111111; background-color: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }

/* --- ヘッダー --- */
header { background: #ffffff; border-bottom: 1px solid #ececec; position: sticky; top: 0; z-index: 100; height: 80px; }
.header-wrap { display: flex; justify-content: space-between; align-items: center; height: 100%; max-width: 1400px; margin: 0 auto; padding-left: 30px; }
.logo-area { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #111; }
.logo-main { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; display: block; width: 26px;}
.logo-sub { font-size: 0.85rem; font-weight: bold; letter-spacing: 1px; color: #333; }

.nav-menu { display: flex; list-style: none; height: 100%; align-items: center; }
.nav-menu li { height: 100%; }
.nav-menu a { 
    display: flex; flex-direction: column; justify-content: center; align-items: center; height: 100%; padding: 0 20px; 
    color: #111; text-decoration: none; font-size: 0.9rem; font-weight: bold; letter-spacing: 1px; text-align: center;
}
.nav-menu a span { font-size: 0.7rem; color: #666; font-weight: normal; margin-top: 2px; }
.nav-menu a:hover { background-color: #fcfcfc; }

.apply-header-btn { 
    background: #000000; color: #ffffff !important; padding: 0 35px !important; font-size: 0.85rem !important; 
    letter-spacing: 2px !important; height: 100%; transition: opacity 0.2s;
}
.apply-header-btn:hover { opacity: 0.85; }

/* --- ボタン共通 --- */
.btn-black { 
    display: inline-flex; align-items: center; justify-content: center; background: #000000; color: #ffffff; 
    text-decoration: none; padding: 15px 50px; font-size: 0.9rem; letter-spacing: 2px; transition: all 0.3s ease;
    border: none; cursor: pointer; font-family: inherit;
}
.btn-black:hover { opacity: 0.8; }
.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #000000; 
    text-decoration: none; padding: 14px 50px; font-size: 0.9rem; letter-spacing: 2px; border: 1px solid #000; transition: all 0.2s;
    font-family: sans-serif; margin-top: 50px;
}
.btn-outline:hover { background: #000; color: #fff; }

.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 50px; letter-spacing: 2px; font-weight: normal; }

/* ページ上部簡易見出し */
.page-header { padding: 60px 0; text-align: center; background: #fafafa; border-bottom: 1px solid #eee; }
.page-header h1 { font-size: 2rem; letter-spacing: 2px; font-weight: bold; }

/* --- 3. 候補生/投票 --- */
.candidates-section { background: #ffffff; padding: 80px 0; }
.candidate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 40px; }
.candidate-card { background: #ffffff; text-align: center; }
.candidate-img-box { width: 100%; background: #eee; overflow: hidden; margin-bottom: 15px; }
.candidate-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.candidate-card:hover .candidate-img-box img { transform: scale(1.03); }
.candidate-name { font-size: 1.05rem; font-weight: bold; letter-spacing: 1px; margin-bottom: 5px; }
.candidate-meta { font-size: 0.8rem; color: #666; margin-bottom: 15px; font-family: sans-serif; }
.candidate-points { font-size: 1.2rem;font-weight: bold;color: cornflowerblue;margin-bottom: 15px;font-family: 'Noto Sans JP';letter-spacing: 0.5px;}

.vote-action-btn { 
    width: 100%; background: #ffffff; color: #000; border: 1px solid #000; padding: 10px 0; 
    font-size: 0.8rem; font-weight: bold; letter-spacing: 1px; cursor: pointer; transition: all 0.2s; font-family: sans-serif;
}
.vote-action-btn:hover { background: #000000; color: #ffffff; }

/* --- 4. ランキング --- */
.ranking-section { background: #fdfcfd; border-top: 1px solid #f0f0f0; padding: 80px 0; }
.ranking-container { max-width: 800px; margin: 0 auto; }
.ranking-list { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.ranking-row { 
    display: flex; align-items: center; padding: 20px 30px; background: #ffffff; border: 1px solid #eaeaea; font-family: sans-serif;
}
.ranking-row.top3 { border-left: 4px solid #000000; }
.rank-number { font-size: 1.4rem; font-weight: bold; width: 60px; }
.rank-candidate-name { font-size: 1.05rem; font-weight: bold; flex-grow: 1; }
.rank-points { font-size: 0.9rem; color: #333; font-weight: bold; letter-spacing: 0.5px; }

/* --- シックな投票確認モーダルのスタイル --- */
.modal-overlay {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 背景を暗く */
    backdrop-filter: blur(5px); /* 背景をうっすらぼかす高級感のあるエフェクト */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 750px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-body {
    display: flex;
    gap: 40px;
}
.modal-img-side {
    width: 45%;
}
.modal-img-side img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    background: #eee;
}
.modal-text-side {
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.modal-text-side h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.modal-text-side .modal-meta-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 40px;
    font-family: sans-serif;
}
.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-actions .btn-black {
    width: 100%;
    padding: 16px 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-align: center;
}
.btn-modal-close {
    width: 100%;
    background: transparent;
    color: #111;
    border: 1px solid #bbb;
    padding: 14px 0;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    text-align: center;
    font-family: sans-serif;
    transition: all 0.2s;
}
.btn-modal-close:hover {
    background: #f5f5f5;
    border-color: #111;
}
.modal-points {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ff4a7d;
    margin-bottom: 25px;
    font-family: sans-serif;
}

footer { background: #ffffff; color: #888; text-align: center; padding: 40px 0; font-size: 0.75rem; border-top: 1px solid #ececec; letter-spacing: 1px; font-family: sans-serif; }

/* --- レスポンシブ対応 --- */
@media (max-width: 1024px) {
    .candidate-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    header { height: auto;  padding: 0 0 6px 0; }
    .header-wrap { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0 15px; position: relative; }
    
    .logo-area { gap: 8px;height: 28px;}
    .logo-main { ont-size: 1.3rem; }
    .logo-sub { font-size: 0.65rem; }
    
    header nav {width: 100%;height: auto !important;}

    .nav-menu { width: 100%;display: flex;flex-wrap: nowrap;justify-content: space-between; border-top: 1px solid #f0f0f0;padding-top: 12px;}
    .nav-menu li {flex: 1;text-align: center;}
    .nav-menu a { padding: 8px 2px; font-size: 0.9rem;letter-spacing: 0;white-space: nowrap; }
    .nav-menu a span { display: none; }

    .about-intro h2 {font-size: 1.5rem;}
    .section-title{font-size: 1.5rem;}
    .stream-banner h3 {font-size: 1.5rem;}

    .apply-header-btn { position: absolute;top: 0;right: 0;height: 42px !important; padding: 0 14px !important; font-size: 0.7rem !important; display: flex !important;align-items: center;justify-content: center;margin-top: 0 !important;}
    .apply-header-btn span {display: inline !important;font-size: 0.9rem !important;margin: 0 !important;color: #ffffff !important;}
    
    /* モーダルのスマホ表示調整 */
    .modal-content { padding: 30px 20px; }
    .modal-body { flex-direction: column; gap: 20px; }
    .modal-img-side, .modal-text-side { width: 100%; }
    .modal-img-side img { height: 280px; }
    .modal-text-side h3 { font-size: 1.4rem; text-align: center; }
    .modal-text-side .modal-meta-text { text-align: center; margin-bottom: 25px; }
}
