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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* 横スクロールを防止 */
    position: relative;
}

.background-wrapper {
    position: fixed; /* 背景を固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* ビューポートの高さに固定 */
    z-index: -1; /* コンテンツの背後に配置 */
    background: linear-gradient(45deg, #fd6d7673, #fdbfa7d4), url(../img/bg.png);
    background-size: 300% 300%, cover;
    background-blend-mode: multiply;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ヘッダーのスタイル */
.main-header {
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.main-header img{
        margin: 0 auto;
}

.main-title {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.main-title span {
    display: block;
    font-size: 1.5rem;
    margin-top: 10px;
    color: #ffe66d; /* サブテキストに少し変化をつける */
}

.header-subtext {
    font-size: 1.2rem;
    font-weight: 300;
    color: #fff;
    opacity: 0.9;
}

.main-header::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transform: rotate(-30deg);
    animation: pulseAnimation 8s infinite ease-in-out;
}

@keyframes pulseAnimation {
    0%, 100% {
        transform: scale(1) rotate(-30deg);
    }
    50% {
        transform: scale(1.1) rotate(-30deg);
    }
}

.icon:hover {
    transform: scale(1.1);
}

.info {
    text-align: center;
    margin-top: 10px;
}

.name {
    font-size: 16px;
    font-weight: bold;
}

.bio {
    font-size: 12px;
    color: #999;
}

.bio {
    position: relative;
    background: #f1f1f1; /* 吹き出しの背景色 */
    padding: 10px 10px;
    border-radius: 10px;
    margin-top: 10px; /* アイコンからの距離 */
    width: 100%; /* 吹き出しの最大幅を調整 */
    max-width: 165px;
    text-align: left; /* テキストの配置 */
    font-size: 13px; /* テキストの大きさ */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

/* 吹き出しの矢印部分 */
.bio::before {
    content: "";
    position: absolute;
    bottom: 100%; /* 吹き出しの上に矢印を配置 */
    left: 0; /* 吹き出しの矢印の位置を調整 */
    right: 0; /* 吹き出しの矢印の位置を調整 */
    margin: 0 auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px; /* 矢印のサイズ */
    border-color: transparent transparent #f1f1f1 transparent; /* 矢印の色を吹き出しと合わせる */
}

.header {
    background-color: #f8f9fa;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    border-bottom: 2px solid #ddd;
}

.icon-container {
    display: flex;
    padding: 0px;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
}

.icon-item {
    width: 48%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

#moreBtn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #b9b9b9;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    width: 60%;
}

#moreBtn:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .icon-item {
        width: 48%;
    }
}

@media (max-width: 576px) {
    .icon-item {
        width: 50%;
        margin-bottom: 5px;
    }
}

.badges {
    position: absolute;
    top: 120px; /* アイコンの下側に配置 */
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 10px;
}

/* 共通のバッジスタイル */
.badge {
    background-color: #ff4081;
    color: white;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
    margin-right: 2px;
    margin-left: 2px;
    font-weight: 700;
}

/* 左側バッジ */
.left-badge {
    background-color: #FF69B4; /* ピンク - 恋愛したい */
}

/* 右側バッジ */
.right-badge {
    background-color: #32CD32; /* ライトグリーン - 希望時間 */
}

/* 時間帯に応じた背景色 */
.badge.daytime {
    background-color: #ff9600; /* 日中希望のオレンジ */
}

.badge.evening {
    background-color: #ff5403; /* 夕方希望のオレンジ */
}

.badge.midnight {
    background-color: #0000dc; /* 深夜OKのダークブルー */
}

/* 恋愛したいバッジのスタイル */
.badge.want-love {
    background-color: #FF69B4; /* ピンク */
}

/* LINE交換バッジのスタイル */
.badge.line-exchange {
    background-color: #32CD32; /* ライトグリーン */
}

/* すぐ会いたいバッジのスタイル */
.badge.meet-now {
    background-color: #ae05f3; /* 紫 */
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: floatSnow 10s ease-in-out infinite;
}

/* 雪のような滑らかな動きのアニメーションを追加 */
@keyframes floatSnow {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-10px, 20px);
    }
    50% {
        transform: translate(10px, 50px);
    }
    75% {
        transform: translate(-15px, 80px);
    }
    100% {
        transform: translate(0, 100px);
    }
}

/* 複数の異なるアニメーションを用意 */
@keyframes floatRandom1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(30px, -15px); }
    50% { transform: translate(-25px, 30px); }
    75% { transform: translate(-30px, -20px); }
    100% { transform: translate(0, 0); }
}

@keyframes floatRandom2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-20px, 10px); }
    50% { transform: translate(15px, -25px); }
    75% { transform: translate(20px, 20px); }
    100% { transform: translate(0, 0); }
}

@keyframes floatRandom3 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(10px, 20px); }
    50% { transform: translate(-15px, -15px); }
    75% { transform: translate(25px, -10px); }
    100% { transform: translate(0, 0); }
}

.icon-item {
    width: 150px;
    margin: 15px;
    text-align: center;
    display: none; /* 初期状態で非表示に */
    position: relative;
}