*{
    padding: 0px;
    margin: 0px;

}
body {
    transition: background-color 1.5s ease-in-out;
    font-size: 22px;
}
html{
    scroll-behavior: smooth;
}
a{
    color: black;
    text-decoration: none;
}
header{
background-color: rgb(255, 246, 246);
padding: 30px;
text-align: center;
}
header h1{
    font-size: 48px;
    margin-bottom: 20px;
}
header nav ul{
    display: flex;
    justify-content: space-around;
    list-style-type: none;
}
section{
    height: 1000px;
}

.page-index{
    main {
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
}
.hero img{
    width: 100%;
}
.about{
    background-color: rgb(251, 247, 244);
    padding: 0px;
    text-align: center;
}
footer{
    background-color: rgb(251, 247, 244);
    text-align: center;
    padding: 30px;
}

.btn {
    background-color: lightgray;
    color: black;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
}

.box {
    position: relative; /* 追加 */

    width: 300px;
    height: 150px;

    background-color: orange;

    margin: 0 auto;
    text-align: center;

    border-radius: 20px; /* 角を丸くする */

    transition: 0.3s;

    display: flex;              /* 文字を中央に */
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

.box:hover {
    background-color: red;
    color: white;
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

/* 吹き出しのしっぽ */
.box::after {
    content: "";
    position: absolute;

    right: -20px;
    top: 50%;

    transform: translateY(-50%);

    border-width: 15px 0 15px 20px;
    border-style: solid;
    border-color: transparent transparent transparent orange;
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

/* ホバー時にしっぽも赤く */
.box:hover::after {
    border-color: transparent transparent transparent red;
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

.card {
    width: 250px;
    padding: 20px;
    background-color: #f0f0f0;
    transition: all 0.3s ease;
}

.card:hover {
    background-color: #87ceeb;
    transform: scale(1.05);
}

/* スプラッシュ画面 */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 9999;

    animation: fadeOut 1s ease 2s forwards;
}

/* ロゴ */
.logo {
    color: white;
    font-size: 4rem;
    letter-spacing: 0.2em;

    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

/* メインコンテンツ */
#content {
    opacity: 0;
    animation: showContent 1s ease 2.8s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes showContent {
    to {
        opacity: 1;
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main h1,
main p {
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列 */
    gap: 20px; /* 画像間の余白 */
    max-width: 800px;
    margin: 0 auto; /* 中央配置 */
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* 画像比率を保ちながら枠いっぱいに表示 */
    display: block;
    opacity: 0;
    animation: floatIn 1.5s ease forwards;
}