/* 基本設定 */
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-image: url("../img/bg.png");
    background-color: #f0f0f0;
    text-align: center;
    /* 横揺れ防止の鉄則 */
    overflow-x: hidden;
    width: 100%;
}

.page-container {
    width: 100%;
    /* paddingが幅に含まれるように設定 */
    box-sizing: border-box; 
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px; /* スマホ用に少し狭める */
}

/* タイトルとヘッダー */
header {
    margin-bottom: 0px;
    padding-bottom: 10px;
}

header img {
    max-width: 100%; /* 親要素を突き抜けないように */
    height: auto;
}

h1 {
    font-size: clamp(1.2em, 5vw, 2em); /* 画面幅に応じてサイズ調整 */
    color: #333;
    margin: 10px 0;
}

/* 応募要項テキストボックス */
.application-notice {
	position: relative;
	z-index: 1;
    width: 95%; /* スマホで窮屈にならないよう広げる */
    max-width: 800px;
    box-sizing: border-box;
    background-color: #ffe4b5;
    border: 2px solid #ff7f50;
    padding: 30px 15px; /* 上下を詰め、左右に余白 */
    margin: 25px auto;
    font-size: 1rem;
    color: #333;
    border-radius: 5px;
    text-align: left;
    /* 長い英単語などの突き抜け防止 */
    word-wrap: break-word;
}

.application-notice span {
    font-weight: bold;
    font-size: 1.1em;
}

/* 湯呑みイメージ */
.mug-sample {

    margin: 20px auto;
    width: 100%;
    max-width: 400px;
}

.mug-sample img {
    /* ネガティブマージンはぐらつきの元になるため、スマホでは控えめに調整 */
	position: relative;
	z-index: 2;
    margin-top: -60px; 
    max-width: 100%;
    height: auto;
}

.yunomi-image {
    width: 100%;
    height: auto;
    display: block; /* flexから修正（画像単体のため） */
    margin: 0 auto;
}

/* 投票リスト */
.vote-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vote-item {
    display: flex; 
    align-items: center; 
    padding: 15px 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

.quote-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #0056b3;
    margin-right: 10px; 
    flex-shrink: 0; 
}

.quote-text {
    flex-grow: 1; 
    text-align: left;
    font-size: 0.95em;
    margin-right: 10px;
    word-break: break-all; /* 改行を許容して横はみ出しを防ぐ */
}

.select-button {
    flex-shrink: 0; 
    background-color: #cc0000;
    color: white;
    padding: 8px 15px;
    font-size: 0.9em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* フッター */
footer {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 20px;
    color: #FFFFFF;
    background-color: #979ea3;	
}
.footer-banners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
    padding: 0 20px;
  }
  .footer-banners a {
    display: block;
    width: 280px; /* 指定のサイズ */
    transition: opacity 0.3s;
  }
  .footer-banners a:hover {
    opacity: 0.8;
  }
  .footer-banners img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
  }
  footer p {
    text-align: center;
    margin-top: 20px;
  }

/* モバイル向け微調整（幅が狭い場合） */
@media (max-width: 480px) {
    .vote-item {
        /* 非常に狭い画面では縦並びにするか、フォントをさらに下げる */
        padding: 10px 8px;
    }
    .quote-text {
        font-size: 0.85em;
    }
    .select-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* ========================================== */
/* モーダルウィンドウのスタイル (変更なし) */
/* ========================================== */
.quote-modal {
    padding: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 600px;
}
.modal-content {
    position: relative;
    padding: 20px;
    background-color: #a6cded;
    text-align: center;
}
.modal-close-button {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #555;
}
.modal-title-area {
    margin-bottom: 20px;
}
.modal-quote-title-img {
    max-width: 100%;
    height: auto;
}
.modal-quote-description {
    background-color: #faf5dd;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}
.modal-visuals-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}
.modal-mug-container,
.modal-character-container {
    width: 45%;
    text-align: center;
}
.modal-mug-img,
.modal-character-img {
    max-width: 100%;
    height: auto;
}
.modal-cta-area {
    padding-top: 10px;
}
.modal-post-button {
    background-color: #cc0000;
    color: white;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 80%;
    max-width: 300px;
}