@charset "utf-8";

/* =========================================
   共通設定 (Variables & Base)
   ========================================= */
:root {
    --color-bg-main: #ffe0f2;
    --color-bg-grid: rgba(242, 136, 188, 0.15);
    --color-bg-about: #f588b4;
    --color-bg-award: #8fc5e7;
    --font-family-base: 'Zen Maru Gothic', sans-serif;
    --title-color-main: #ffd7f3;
    --title-color-stroke: #1b4aaf;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-base);
    background-color: var(--color-bg-main);
    background-image: 
        linear-gradient(var(--color-bg-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-bg-grid) 1px, transparent 1px);
    background-size: 15px 15px;
    color: #fff;
    text-align: center;
}

.container {
    max-width: 768px;
    margin: 0 auto;
    background-color: transparent;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(242, 136, 188, 0.2);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* =========================================
   1階層目 (index.html) 用スタイル
   ========================================= */

/* --- ヘッダーエリア --- */
.main-header {
    width: 100%;
    padding-top: 30px; 
    padding-bottom: 0px; 
    position: relative;
    z-index: 1; 
}

.visual-wrapper {
    position: relative;
    width: 100%;
    z-index: 1;
}

.header-bg {
    display: block;
    width: 92%; 
    margin: 0 auto;
}

.header-sidetext-left {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: auto;
    max-width: 20%;
    object-fit: contain;
    object-position: left center;
    z-index: 2;
}

.header-sidetext-right {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 20%;
    object-fit: contain;
    object-position: right center;
    z-index: 2;
}

.header-logo-container {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -32%; 
}

.header-logo {
    width: 95%;
    max-width: 580px;
    position: relative;
    z-index: 2;
}

/* アニメーション定義 */
.animate-fadeDown {
    animation: fadeDown 1.2s ease-out forwards;
    opacity: 0;
}
.animate-fadeDown-delay {
    animation: fadeDown 1.2s ease-out forwards;
    opacity: 0;
    animation-delay: 0.5s; 
}
@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-50px); }
    100% { opacity: 1; transform: translateY(0); }
}

.schedule-image {
    width: 65%; 
    max-width: 450px;
    height: auto;
    position: relative;
    z-index: 10;
    align-self: flex-end; 
    margin-right: 2%; 
    margin-top: -40px; 
}

/* スクロール検知フェードイン */
.js-fade {
    opacity: 0;
    transform: translateY(-50px); 
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}
.js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* --- 企画説明エリア --- */
.about-section {
    background-color: var(--color-bg-about);
    padding: 0 50px 30px;
    position: relative;
    z-index: 4;
    margin-top: 80px;
}

.about-title-design {
    display: inline-block;
    background-color: #fff;
    border-radius: 50px;
    padding: 10px 30px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--title-color-main);
    
    position: relative;
    z-index: 10;
    margin-top: -70px;
    margin-bottom: 30px;
    
    white-space: nowrap;

    text-shadow: 
        1.5px 1.5px 0 var(--title-color-stroke), -1.5px -1.5px 0 var(--title-color-stroke),
        1.5px -1.5px 0 var(--title-color-stroke), -1.5px 1.5px 0 var(--title-color-stroke),
        1.5px 0px 0 var(--title-color-stroke), -1.5px 0px 0 var(--title-color-stroke), 
        0px 1.5px 0 var(--title-color-stroke), 0px -1.5px 0 var(--title-color-stroke),
        1.5px 4.5px 0 var(--title-color-stroke), -1.5px 1.5px 0 var(--title-color-stroke),
        1.5px 1.5px 0 var(--title-color-stroke), -1.5px 4.5px 0 var(--title-color-stroke),
        1.5px 3.0px 0 var(--title-color-stroke), -1.5px 3.0px 0 var(--title-color-stroke),
        0px 4.5px 0 var(--title-color-stroke), 0px 1.5px 0 var(--title-color-stroke),
        0px 3px 0 var(--title-color-stroke);
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);

    opacity: 0;
    transform: translateY(-30px);
    transition: opacity 1.0s ease-out, transform 1.0s ease-out;
}

.about-title-design.js-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.title-num-adjust { font-size: 1.15em; margin: 0 2px; }

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.about-text {
    font-weight: 700;
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1; 
    color: #fff;
    word-break: break-all;
}
.doll-wrapper {
    width: 20%; 
    max-width: 120px;
    flex-shrink: 0;
}


/* --- 各賞紹介エリア --- */
.awards-section {
    background-color: #8fc5e7; /* 水色背景 */
    padding: 50px 20px 60px;
    position: relative;
    z-index: 4;
    text-align: center;
    color: #fff;
}

/* 青フチのタイトル共通スタイル */
.award-blue-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
    text-shadow: 
        2px 2px 0 #1b4aaf, -2px -2px 0 #1b4aaf,
        2px -2px 0 #1b4aaf, -2px 2px 0 #1b4aaf,
        0px 2px 0 #1b4aaf, 0px -2px 0 #1b4aaf,
        2px 0px 0 #1b4aaf, -2px 0px 0 #1b4aaf,
        4px 4px 0 rgba(0,0,0,0.1);
}

/* ====================
   1. 部門賞エリア
   ==================== */
.dept-section-wrapper {
    margin-bottom: 60px;
}

/* グリッドレイアウト (PC: 横一列) */
.dept-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto 25px; 
}

/* 個別のカードデザイン */
.dept-card-box {
    background: linear-gradient(160deg, #ffcdf5 0%, #62c6ff 100%);
    border: 4px solid #fff;
    border-radius: 20px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    aspect-ratio: 1 / 1; 
}

/* カード内の画像 */
.dept-icon {
    width: 70%;
    height: auto;
    object-fit: contain;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* カード内のテキスト */
.dept-name {
    font-weight: 900;
    font-size: 1rem;
    line-height: 1.2;
    margin: 0;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 下の説明文 */
.dept-intro-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}


/* ====================
   2. 総合大賞エリア
   ==================== */
.general-section-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.general-content-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
}

.general-img-area {
    width: 30%;
    max-width: 160px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.general-img-area img {
    width: 100%;
    height: auto;
    /* 白い光彩(グロー) */
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
}

.general-text-area {
    flex: 1;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.8;
}


/* --- アクション & フッター --- */
.action-section {
    padding: 40px 20px 50px;
    text-align: center;
}
/* 1階層目のボタン（画像） */
.vote-button-link {
    display: inline-block;
    width: 100%;
    max-width: 240px;
    transition: transform 0.2s;
    text-decoration: none; /* 下線を消す */
}
.vote-button-link:hover { transform: scale(1.05); }

footer {
    padding: 10px 0 60px;
}

.footer-credit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--title-color-stroke);
}

.credit-mark {
    width: 24px;
    height: auto;
}

.credit-text {
    font-size: 0.55rem;
    font-weight: 700;
    margin: 0;
}

.credit-link {
    color: inherit; 
    text-decoration: underline;
}


/* =========================================
   2階層目 (vote.html) 用スタイル
   ========================================= */

/* 固定ヘッダー (PC用) */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding-top: 40px; 
    overflow: visible;
}

.sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 95px; 
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(245, 136, 180, 0.4);
    z-index: -1; 
}

.sticky-logo {
    height: 72px; 
    width: auto;
    position: relative;
}

.vote-page-body {
    padding-top: 130px;
}

/* =========================================
   投票ページ上部：注意書きボックス
   ========================================= */
.vote-notice-box {
    background-color: #FFF7FC; /* 薄いピンク背景 */
    border: 3px solid #FF63A1; /* 濃いピンク枠線 */
    border-radius: 20px;       /* 角丸 */
    padding: 20px;
    margin-bottom: 30px;       /* 下の要素との隙間 */
    text-align: left;          /* 左揃え */
    box-shadow: 0 4px 0 rgba(255, 99, 161, 0.2); /* ほんのり影 */
}

.vote-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-notice-list li {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 4px; 
    color: #1B4AAF; 
    font-weight: 700; 
    font-size: 0.95rem;
    line-height: 1.6;
}

.vote-notice-list li:last-child {
    margin-bottom: 0;
}

.vote-notice-list li::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 900;
}

.vote-container {
    text-align: center;
    padding: 0 20px;
    max-width: 600px;
}

.vote-section {
    margin-bottom: 50px;
}

.vote-category-title {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 5px 20px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 15px;
    box-shadow: 0 3px 0 rgba(0,0,0,0.1);
    background: linear-gradient(180deg, #97E2FF 0%, #70B7F5 100%);
}

.vote-grid {
    display: grid;
    gap: 15px;
    width: 100%;
}
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }

.vote-item {
    cursor: pointer;
    position: relative;
    display: block;
}

.vote-item input[type="radio"] {
    display: none;
}

.media-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background-color: #fff;
    border: 4px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.meta-info-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 80%, transparent 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 5px 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 15px 10px 0px; 
    gap: 1px;
    z-index: 5;
    pointer-events: none; 
}

.meta-media {
    font-size: 0.65rem; 
    font-weight: 700;
    opacity: 0.9;
    line-height: 1.15;
    align-items: flex-start;
}

.media-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
    display: block;
}

.media-thumbnail:hover img {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.zoom-icon {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%); 
    color: #fff;
    width: 60px; 
    height: 60px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.zoom-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.media-thumbnail:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.vote-radio-btn input:checked ~ .media-thumbnail,
.vote-card:has(input:checked) .media-thumbnail { 
    border-color: #f588b4; 
    background-color: #ffeef6;
    box-shadow: 0 0 15px rgba(245, 136, 180, 0.6);
}

.media-thumbnail.is-selected {
    border-color: #f588b4;
    box-shadow: 0 0 15px rgba(245, 136, 180, 0.6);
}

.vote-item input:checked + .media-box {
    border-color: #f588b4; 
    background-color: #ffeef6;
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(245, 136, 180, 0.6);
}

/* 自由記述エリア */
.decoration-sparkle {
    text-align: center;
    margin-bottom: 10px;
}
.sparkle-icon {
    width: 100px;
    height: auto;
}

.free-text-group {
    margin-bottom: 40px;
    text-align: center;
}

.text-label-box {
    background-color: #fff;
    display: inline-block;
    padding: 5px 15px;
    margin-bottom: -10px;
}

.text-label-box.small-box {
    padding: 5px 30px;
    margin-bottom: 20px;
}

.text-label-title {
    color: #FF63A1; 
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
}

.text-label-desc {
    color: #FF63A1;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 15px;
    display: inline-block;
    text-align: left;
}

textarea {
    width: 100%;
    max-width: 100%;
    height: 150px; 
    border: 2px solid #1b4aaf; 
    border-radius: 15px; 
    padding: 15px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400; 
    font-size: 1rem;
    color: #333;
    outline: none;
    box-sizing: border-box;
    background-color: #fff;
    resize: none;
}

.bias-section {
    margin-bottom: 50px;
    text-align: center;
}

.bias-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 15px 10px;
    max-width: 400px;
    margin: 0 auto;
}

.bias-pill {
    cursor: pointer;
    display: block;
}

.bias-pill input {
    display: none;
}

.bias-pill span {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    border: 2px solid #1b4aaf; 
    border-radius: 30px;
    color: #1b4aaf; 
    font-weight: 900;
    font-size: 1.15rem;
    transition: all 0.2s;
}

.bias-pill .color-sungho  { background-color: #FFE8F6; }
.bias-pill .color-riwoo   { background-color: #E7FFFC; }
.bias-pill .color-jaehyun { background-color: #FFF1E8; }
.bias-pill .color-taesan  { background-color: #E4EEFF; }
.bias-pill .color-leehan  { background-color: #FFFFE9; }
.bias-pill .color-woonhak { background-color: #ECFFEC; }

.bias-pill input:checked + span {
    border-color: #f588b4; 
    border-width: 3px;      
    color: #f588b4;         
    box-shadow: 0 0 10px rgba(245, 136, 180, 0.5); 
    transform: translateY(-2px);
}

.submit-area {
    margin-bottom: 40px;
}

/* 投票ボタン */
.vote-submit-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-block;
    width: 100%;
    max-width: 240px;
    cursor: pointer;
    transition: transform 0.2s;
    background: linear-gradient(to bottom, #FFACD7, #F570A5);
    border: 5px solid #fff;
    border-radius: 50px;
    padding: 5px 50px;
    margin: 0 auto;
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    text-align: center;
    line-height: 1.4;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(245, 112, 165, 0.8);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.vote-submit-button:hover {
    transform: scale(1.05);
}

.submit-note {
    font-size: 0.75rem;
    margin-top: 15px;
    color: #FF63A1; 
    font-weight: 700;
}

/* モーダル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-overlay.active {
    display: flex; 
}
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 4px solid #f588b4;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.modal-title {
    color: #FF63A1;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}
.modal-date {
    font-weight: 700;
    color: #1B4AAF;
    margin-bottom: -35px;
}

.modal-image-box {
    margin-bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal-img {
    max-width: 80%; 
    height: auto;
}

.modal-date_ex {
    font-weight: 700;
    font-size: 0.85rem;
    color: #1B4AAF;
    margin-bottom: 30px;
}

.modal-back-btn {
    display: inline-block;
    background: #53bced;
    color: #fff;
    padding: 10px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 4px 0 rgba(0,0,0,0.1);
}

/* =========================================
   決勝戦エリア (総合部門) のデザイン
   ========================================= */

.final-stage-section {
    background-color: #FFF7FC; 
    border: 4px solid #FF63A1; 
    border-radius: 30px;       
    padding: 30px 20px;        
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: 0 0 20px rgba(255, 99, 161, 0.2);
    text-align: center;
}

.vote-category-title.rainbow-pill {
    background: linear-gradient(90deg, #FF8ABF 0%, #B2AEFF 50%, #5DC3FF 100%);
    border: 3px solid #fff;
    color: #fff;
    display: inline-block;
    padding: 5px 30px;
    font-size: 1.3rem;
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.final-desc {
    color: #1B4AAF;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}
.final-desc .highlight-text {
    font-weight: 900;
    font-size: 1.2em;
}

.finalist-card {
    background: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.finalist-title {
    font-size: 0.9rem;
    font-weight: 900;
    color: #FF63A1;
    margin: 0 0 8px 0;
}

.finalist-box-inner {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-color: #E8E8E8;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 10px rgba(255, 182, 210, 0.5);
    border: 2px solid #fff;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;     
}

.finalist-empty-state {
    width: 100%;
    text-align: center;
    z-index: 1;
    padding: 0; 
}

.empty-title {
    display: none;
}

.empty-message {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    line-height: 1.4;
    margin: 0; 
}

.finalist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.final-radio {
    margin-top: 15px;
}

.finalist-card:has(input:checked) .finalist-box-inner {
    border: 4px solid #f588b4;
    box-shadow: 0 0 20px rgba(245, 136, 180, 0.8);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* =========================================
   メディア拡大モーダル
   ========================================= */
#mediaModal {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 2000; 
}

#mediaModal.active {
    display: flex; 
}

#mediaContainer {
    width: 90%;
    max-width: 800px; 
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.media-modal-content {
    max-width: 100%;
    max-height: 80vh; 
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.media-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.media-modal-close:hover {
    color: #f588b4; 
}

/* ラジオボタンデザイン */
.vote-radio-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 5px auto 0;
    cursor: pointer;
    position: relative;
    width: 24px; 
    height: 24px;
    background: none;
    border: none;
    padding: 0;
}

.radio-text { display: none !important; }

.vote-radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 2; 
    display: block !important; 
}

.vote-radio-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #C0C0C0; 
    border-radius: 50%;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fff; 
    z-index: 1;
}

.vote-radio-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); 
    width: 12px; 
    height: 12px;
    background-color: #f588b4; 
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 1;
}

.vote-radio-btn:has(input:checked)::before {
    border-color: #f588b4; 
    box-shadow: 0 0 12px 3px rgba(245, 136, 180, 0.7), inset 0 0 6px rgba(245, 136, 180, 0.5);
}

.vote-radio-btn:has(input:checked)::after {
    transform: translate(-50%, -50%) scale(1); 
    box-shadow: 0 0 8px rgba(245, 136, 180, 0.8); 
}

.vote-radio-btn:hover::before {
    border-color: rgba(245, 136, 180, 0.6);
    background-color: #ffeef6;
}

.vote-page-body .general-section .section-common-title {
    margin-top: 0 !important;   
    margin-bottom: 0 !important; 
    line-height: 1.2;            
}

.vote-reason-area {
    margin-top: 20px; 
    padding: 0 10px;  
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;
}

.reason-textarea {
    height: 80px !important;
    &::placeholder {
        color: #ccc;
        font-weight: 700;
    }
}


/* =========================================================================
   ★★スマホ用レスポンシブ設定 (ここに全て集約)★★
   ========================================================================= */
@media screen and (max-width: 480px) {
    /* --- 1階層目 (index.html) --- */
    .header-logo-container { margin-top: -28%; }
    .schedule-image { width: 75%; margin-top: -25px; margin-right: 2%; }
    
    .about-section {
        padding: 0 10px 30px;
        margin-top: 60px;
    }
    .about-title-design { 
        font-size: 1.3rem; 
        padding: 8px 20px;
        margin-top: -50px;
        margin-bottom: 10px;
    }
    .about-content {
        flex-wrap: wrap;
        gap: 0px;
        justify-content: center;
        margin-top: 0;
    }
    .about-text { flex: 0 0 100%; width: 100%; order: 1; font-size: 0.85rem; line-height: 1.8; margin-bottom: 0px; }
    .doll-wrapper { flex: 0 0 18%; width: 18%; max-width: none; }
    .doll-wrapper.left { order: 2; margin-right: 5px; } 
    .doll-wrapper.right { order: 3; margin-left: 5px; }

    .awards-section { padding: 30px 15px; }
    .section-common-title { font-size: 1.6rem; margin-bottom: 15px; }
    .general-section { width: 100%; max-width: none; }

    /* 部門賞グリッド */
    .dept-grid-container {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        width: 92% !important;
        margin: 0 auto 20px !important;
        padding: 0 !important;
        height: auto !important;
        box-sizing: border-box;
    }
    .dept-card-box {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        padding: 10px !important;
        box-sizing: border-box;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .dept-icon {
        width: 75% !important; 
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 2px !important; 
        object-fit: contain;
    }
    .dept-name {
        font-size: 0.8rem !important;
        line-height: 1.2;
        word-break: break-all;
    }
    
    .dept-intro-text,
    .general-text-area {
        font-size: 0.85rem !important;
        line-height: 1.6 !important;
        font-weight: 700 !important;
        position: relative;
        z-index: 2;
        padding-top: 10px;
    }

    /* 総合大賞エリア */
    .general-award-container {
        flex-direction: row; 
        justify-content: center;
        align-items: center; 
        gap: 15px;
        width: fit-content;
        max-width: 360px;
        margin: 0 auto;
    }
    .general-content-box {
        flex-direction: row; 
        align-items: center;
        gap: 8px; /* 距離調整 */
    }
    .general-img-area {
        width: 45%; 
        max-width: 160px;
    }
    .general-trophy { width: 28%; max-width: 100px; }
    .general-desc-box { flex: 1; padding-bottom: 0; }
    .award-desc { font-size: 0.85rem; line-height: 1.8; text-align: left; }

    /* --- 2階層目 (vote.html) --- */
    
    /* 固定ヘッダー調整 (ロゴはみ出しデザイン) */
    .sticky-header {
        /* 上の隙間を詰めて、ステータスバー直下へ */
        padding-top: 10px !important; 
        /* ロゴの上端を揃える */
        align-items: flex-start !important;
    }
    
    .sticky-header::before {
        /* 白い背景帯を短くする (ロゴがはみ出るように) */
        height: 65px !important;
        box-shadow: 0 5px 10px rgba(245, 136, 180, 0.3) !important;
    }
    
    .sticky-logo {
        /* ロゴを大きくして、下の白帯からはみ出させる */
        height: 80px !important; 
        width: auto;
        /* 少しだけ上にマージンを持たせる */
        margin-top: 0px !important; 
    }
    
    /* コンテンツ開始位置を下げる */
    .vote-page-body {
        padding-top: 110px !important; 
    }

    /* 注意書きボックス */
    .vote-notice-box { padding: 15px; }
    .vote-notice-list li { font-size: 0.8rem; }

    /* グリッド調整 */
    .vote-grid.col-3 { grid-template-columns: repeat(3, 1fr); }
    .vote-grid.col-2 { grid-template-columns: repeat(2, 1fr); }
    
    /* メタ情報 */
    .meta-info-bar {
        font-size: 0.8rem; 
        padding: 3px 5px;
        gap: 0px;
        flex-wrap: wrap; 
        line-height: 1.15;
    }

    /* 推しボタン */
    .bias-buttons { gap: 10px 8px; }
    .bias-pill span { height: 45px; font-size: 1.15rem; }
    
    /* タイトル類 */
    .text-label-title { font-size: 1.15rem; }
    .text-label-desc { font-size: 0.8rem; }

    /* 投票ボタン */
    .vote-submit-button {
        font-size: 1.3rem;
        padding: 12px 0;
        border-width: 4px;
    }

    /* 決勝エリア調整 */
    .final-stage-section { padding: 20px 15px; }
    .final-desc { font-size: 0.95rem; }
    .vote-category-title.rainbow-pill { font-size: 1.3rem; padding: 5px 20px; }
    .finalist-title { font-size: 0.85rem; }
    .empty-message { font-size: 1rem; }

    /* モーダル */
    .modal-content { max-width: 80%; padding: 30px; width: auto; }
    .modal-img { max-width: 65%; }
}