@charset "UTF-8";

body {
    background-color: #fffdd0;
    margin: 0;
    font-family: 'Arial', sans-serif;
    /* 高さ指定と中央揃えをやめる */
    display: block;
    padding: 0;
}


body,
.container {
    padding-top: 80px;
    /* タイトルの高さ＋余裕 */
}


.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 80%;
    padding: 40px 20px;
}

.title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    max-width: 90vw;
    text-align: center;
}

.description {
    background-color: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    text-align: center;
}

.egg {
    flex: 1 1 300px;
    /* 最小幅300pxで横に均等に広がる */
    background: #cfc;
    /* 例 */
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.detail {
    flex: 2 1 600px;
    /* 詳細テキスト部分は少し広めに */
    background: #ffc;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    overflow-wrap: break-word;
    /* テキストのはみ出し防止 */
}

.bubble {
    position: absolute;
    font-size: 40px;
    color: brown;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    user-select: none;
    z-index: 9999;
    max-width: 90vw;
    text-align: center;
    white-space: nowrap;
}

.page-title {
    position: relative;
    /* fixedじゃなくてrelativeに */
    margin: 20px auto 10px;
    font-size: clamp(24px, 5vw, 60px);
    /* 画面幅に応じてフォントサイズ調整 */
    font-weight: bold;
    font-family: "Darumadrop One", sans-serif;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    max-width: 90vw;
    /* 画面幅の90%以内 */
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
    z-index: 9999;
    word-wrap: break-word;
    /* 長い文字も折り返し */
}

.page-description {
    position: relative;
    font-family: "Darumadrop One", sans-serif;
    /* fixed解除 */
    top: auto;
    left: auto;
    transform: none;
    margin: 0 auto 30px;
    max-width: 90vw;
    text-align: center;
    font-weight: bold;
    font-size: 20px;
    color: black;
    /* 必要に応じて色調整 */
    background-color: transparent;
    /* 赤背景解除 */
    padding: 0;
}

.tamago-wrapper {
    padding-top: 100px;
    /* 180px → もっと余裕を持って100pxに */
    /* 必要なら100px以上に調整してください */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}



.tamago-container:nth-child(1) {
    transform: translateX(60px);
    /* 右にズラす */
}

.tamago-container:nth-child(2) {
    transform: translateX(-60px);
    /* 左にズラす */
}

.tamago-container:nth-child(3) {
    transform: translateX(60px);
    /* また右にズラす */
}


.tamago-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 60px auto;
    max-width: 1000px;
    padding: 0 20px;
}

.tamago-row.right {
    flex-direction: row;
    /* 卵 → 説明（右寄せ） */
}

.tamago-row.left {
    flex-direction: row-reverse;
    /* 説明 → 卵（左寄せ） */
}

.tamago-description {
    max-width: 300px;
    background: none;
    padding: 20px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    font-family: "Arial", sans-serif;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.tamago-description h3 {
    font-family: "Darumadrop One", sans-serif;
    margin-top: 0;
    font-size: 5rem;
    color: #222;
}

@media (max-width: 600px) {
    .tamago-row {
        flex-direction: column;
        text-align: center;
    }

    .tamago-description {
        max-width: 90%;
    }
}


.tamago-container {
    width: 90vw;
    max-width: 250px;
    height: auto;
    aspect-ratio: 5 / 7;
    border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
    background: radial-gradient(circle at center, #666, #333);
    border: 6px solid #444;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    transform: none !important;
    /* transformは画面幅狭い時解除 */
}

.logo-text {
    position: absolute;
    top: 50px;
    width: 100%;
    text-align: center;
    font-size: 35px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px black;
    font-family: "Darumadrop One", sans-serif;
    pointer-events: none;
}



.screen {
    position: absolute;
    top: 60%;
    /* 50%よりさらに下げる */
    left: 10%;
    width: 80%;
    height: 60%;
    /* 高さを少し減らす */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transform: translateY(-50%);
}

.face {
    position: relative;
    width: 180px;
    height: 160px;
    background: #111;
    border: 4px solid #555;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    clip-path: polygon(
            /* 上ギザギザ */
            0% 0%, 10% 10%, 20% 0%, 30% 10%, 40% 0%,
            50% 10%, 60% 0%, 70% 10%, 80% 0%, 90% 10%, 100% 0%,
            /* 右下 */
            100% 90%,
            /* 下ギザギザ */
            90% 100%, 80% 90%, 70% 100%, 60% 90%, 50% 100%,
            40% 90%, 30% 100%, 20% 90%, 10% 100%, 0% 90%,
            /* 左上に戻る */
            0% 0%);
}

.tamago-1 {
    background: radial-gradient(ellipse at center, #ffddee 0%, #f9c2d8 100%);
    border-color: #e075a0;
}

.tamago-2 {

    background: radial-gradient(ellipse at center, #d0f4ff 0%, #a3d3e8 100%);
    border-color: #5fb1d4;
}

.tamago-3 {
    background: radial-gradient(ellipse at center, #e6ffd6 0%, #b9e6b0 100%);
    border-color: #70c470;
}

.tamago-container.tamago-2 .face img {
    object-position: center 20%;
}


.tamago-container:nth-child(3) .face img {
    object-fit: cover;
    object-position: center 10%;
    transform: scale(1.2);
}



.face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    position: relative;
}

.button-panel {
    display: flex;
    gap: 16px;
}

.button {
    width: 24px;
    height: 24px;
    background: #888;
    border: 2px solid #444;
    border-radius: 50%;
    box-shadow: inset -2px -2px 3px rgba(255, 255, 255, 0.3),
        inset 2px 2px 3px rgba(0, 0, 0, 0.4);
}



.parent-container {
    position: relative;
}

.gimmick {
    position: absolute;
    bottom: 10px;
    left: 10px;
    /* ギターと同じ位置 */
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 2.5rem;
    pointer-events: none;
}


.gimmick.star {
    bottom: 10px;
    right: 10px;
    font-size: 2.5rem;
}

.gimmick.heart {
    bottom: 10px;
    right: 10px;
    font-size: 2.5rem;
}


.star {
    color: gold;
    bottom: 10px;
    font-size: 45px;
}

.heart {
    color: red;
    bottom: 10px;
    font-size: 35px;
}

@media (min-width: 601px) {
    .tamago-container:nth-child(1) {
        transform: translateX(60px);
    }

    .tamago-container:nth-child(2) {
        transform: translateX(-60px);
    }

    .tamago-container:nth-child(3) {
        transform: translateX(60px);
    }
}

@media (max-width: 90vw) {
    .eggs {
        flex-direction: column;
        gap: 40px;
    }
}