/* styles.css */

/* フォントをインポート */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Pacifico&display=swap');

body {
    background-color: #ffdfdf; 
    margin: 0;
    padding: 0;
    font-family: 'ニコモジ＋','ニコモジ＋'; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    overflow-y: scroll; 
}

.container {
    background-color: rgba(255, 255, 255, 0.7);
    width: 90%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    margin: 20px 0; 
}

body::-webkit-scrollbar {
    width: 20px; 
    background-color: #f5f5f5; 
}

body::-webkit-scrollbar-thumb {
    background-color: #b0c5f4; 
    border-radius: 10px; 
    border: 2px solid #f5f5f5; 
}

body::-webkit-scrollbar-track {
    background-color: #f5f5f5; 
}

header {
    margin-bottom: 20px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

h1 {
    margin: 10px 0;
    font-size: 44px;
    font-family: 'ニコモジ＋','Pacifico', cursive; 
    font-weight: 400; 
}

h2 {
    font-size: 33px; 
    font-family: 'ニコモジ＋','Pacifico', cursive; 
    font-weight: 700; 
}

p {
    font-size: 20px; 
    color: #666;
    font-family: 'ニコモジ＋','Caveat', cursive; 
    font-weight: 400; 
}

.links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 5px;
}

.link2 { background-color: #d4c8ff; }

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    font-size: 11px;
    padding: 20px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background-color 0.3s;
    text-align: center;
    flex-direction: column; 
    font-family: 'ニコモジ＋','ニコモジ＋（プラス）'; 
    font-weight: 900; 
}

.link-button img {
    width: 40px; 
    height: 40px; 
    margin-bottom: 5px; 
    transition: transform 0.3s; 
}

.link-button:hover img {
    animation: bounce 0.6s infinite alternate; 
}

@keyframes bounce {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-10px);
    }
}

.link-button:hover {
    background-color: #cf3d6e;
}

.link { background-color: #FFB6C1; }

.announcement {
    background-color: #E0FFFF;
    padding: 20px;
    border-radius: 20px;
}

.announcement img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.announcement p {
    margin: 5px 0;
    font-family: 'ニコモジ＋','Pacifico', cursive; 
    font-size: 18px; 
}

/* --- ▼ 大改造：カウントダウン用デザイン（横並びver） ▼ --- */

.countdown-section {
    background-color: rgba(255, 255, 255, 0.5); 
    border: 3px dashed #FFB6C1; 
    border-radius: 20px;
    padding: 15px 5px;
    margin-bottom: 30px; 
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3); 
    text-align: center;
}

.countdown-title {
    font-size: 20px;
    color: #cf3d6e; 
    margin: 0 0 10px 0;
    font-family: 'ニコモジ＋', 'Pacifico', cursive;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center; /* 垂直方向の中央揃え */
    flex-wrap: wrap; /* 画面が狭い時に折り返す */
    gap: 6px;
    font-family: 'ニコモジ＋', sans-serif;
    color: #555;
    font-size: 18px; /* 「あと」「日」などの文字サイズ */
}

.prefix {
    font-weight: bold;
    color: #cf3d6e;
    margin-right: 2px;
}

.time-group {
    display: flex;
    align-items: center;
}

.num {
    background-color: #fff;
    color: #cf3d6e;
    font-family: 'Pacifico', cursive; /* 数字は可愛くPacificoで */
    font-size: 24px;
    padding: 2px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin: 0 3px; /* 数字の左右に少し余白 */
    min-width: 25px; /* 数字が1桁でも箱の幅を確保 */
    display: inline-block;
}

.unit {
    font-size: 16px;
    font-weight: bold;
    color: #888;
}

/* スマホなど画面が極端に狭い時の調整 */
@media (max-width: 350px) {
    .countdown-display {
        font-size: 14px;
    }
    .num {
        font-size: 20px;
        padding: 2px 5px;
    }
}