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

}
body {
    transition: background-color 1.5s ease-in-out;
    font-size: 22px;
    font-family: "Mochiy Pop One", sans-serif;
}
html{
    scroll-behavior: smooth;
}
a{
    color: black;
    text-decoration: none;
}
header{
background-color: rgb(255, 246, 246);
padding: 30px;
text-align: center;
display:flex;
    justify-content:space-between;
    align-items:center;

    padding:25px 40px;
}
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;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease, visibility 1s ease;
}

/* インクの水滴を配置する範囲 */
.ink-drops {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* インクの水滴 */
.ink-drop {
    position: absolute;
    top: -80px;
    left: 50%;
    width: 28px;
    height: 40px;
    background: #FFD43B;
    border-radius: 50% 50% 45% 45%;
    filter: drop-shadow(0 0 8px rgba(180, 130, 0, 0.4));
    animation: dropInk 1.2s ease-in forwards;
}

/* 水滴の先端 */
.ink-drop::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    width: 16px;
    height: 18px;
    background: #FFD43B;
    border-radius: 50% 50% 0 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* 水滴ごとの位置とタイミング */
.drop1 {
    left: 20%;
    animation-delay: 0s;
}

.drop2 {
    left: 35%;
    animation-delay: 0.3s;
}

.drop3 {
    left: 50%;
    animation-delay: 0.6s;
}

.drop4 {
    left: 65%;
    animation-delay: 0.9s;
}

.drop5 {
    left: 80%;
    animation-delay: 1.2s;
}

/* 水滴が落ちる動き */
@keyframes dropInk {
    0% {
        top: -80px;
        opacity: 0;
        transform: scale(0.7);
        filter: blur(0);
    }

    20% {
        opacity: 1;
    }

    /* 液体に到達 */
    75% {
        top: 75%;
        opacity: 1;
        transform: scale(1.1);
        filter: blur(0);
    }

    /* インクに溶け込む */
    100% {
        top: 75%;
        opacity: 0;
        transform: scaleX(2.2) scaleY(0.5);
        filter: blur(6px);
    }
}

/* 水槽の中に広がるインク */
.water {
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 120%;
    height: 0;

    background: linear-gradient(
    180deg,
    #FFE680,
    #FFC928 45%,
    #E5A900
);

    border-radius: 48% 52% 0 0 / 3% 4% 0 0;

    animation: fillWater 3s cubic-bezier(0.22, 0.7, 0.25, 1) 0.5s forwards;
    z-index: 2;
}

/* 水面の揺れ */
.water::before {
    content: "";
    position: absolute;
    top: -13px;
    left: 0;
    width: 100%;
    height: 27px;
    background: rgba(255, 235, 150, 0.8);
    border-radius: 50%;
    animation: wave 3s ease-in-out infinite;
}

/* 水面の光 */
.water::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 5px;
    background: rgba(255, 248, 210, 0.7);
    border-radius: 50%;
    filter: blur(4px);
}

/* ロゴ */
#splash .splash-logo {
    position: relative;
    z-index: 3;
    color: white;
    font-family: "Mochiy Pop One", sans-serif;
    font-size: clamp(25px, 5vw, 64px);
    letter-spacing: 0.08em;
    text-align: center;
    opacity: 0;
    text-shadow: 0 3px 15px rgba(0, 35, 65, 0.4);
    animation: logoAppear 1.5s ease 2.4s forwards;
}

/* スプラッシュ画面を閉じる */
#splash.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* 液体が満ちる */
@keyframes fillWater {
    from {
        height: 0;
    }

    to {
        height: 72%;
    }
}

/* 水面の揺れ */
@keyframes wave {
    0%, 100% {
        transform: translateX(-2%) scaleY(1);
    }

    50% {
        transform: translateX(2%) scaleY(0.8);
    }
}

/* ロゴが現れる */
@keyframes logoAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* 動きを抑える設定 */
@media (prefers-reduced-motion: reduce) {
    .ink-drop,
    .water,
    #splash .splash-logo {
        animation-duration: 0.1s;
        animation-delay: 0s;
    }
}

@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;
}

.mochiy-pop-one-regular {
  font-family: "Mochiy Pop One", sans-serif;
  font-weight: 400;
  font-style: normal;
}

nav ul{
    display:flex;
    list-style:none;
    gap:40px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

/* 3本線のデザイン */
.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* スマートフォン用 */
@media screen and (max-width: 768px) {
    header {
        position: relative;
        padding: 15px 20px;
        gap: 12px;
    }

    header h1 {
        font-size: 28px;
        margin-bottom: 0;
    }

    .hamburger {
        display: block;
    }

    /* メニューを閉じた状態 */
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: auto;
        z-index: 1000;
        background: rgb(255, 246, 246);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    }

    /* ボタンを押したときに表示 */
    header nav.active {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        padding: 14px 20px;
    }

    header nav ul li a:hover {
        background: rgba(255, 255, 255, 0.7);
    }
}

/* =========================
   ハンバーガーメニュー
========================= */

/* PCではボタンを隠す */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    border-radius: 3px;
    background: #333;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* スマートフォン表示 */
@media screen and (max-width: 768px) {
    header {
        position: relative;
    }

    .hamburger {
        display: block;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
        background: rgb(255, 246, 246);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 10px 0;
        margin: 0;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
        list-style: none;
    }

    header nav ul li a {
        display: block;
        padding: 14px 20px;
    }
}

@media screen and (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        box-sizing: border-box;
        padding: 10px 15px;
    }

    header .logo {
        font-size: clamp(24px, 7vw, 36px);
        margin: 0;
        min-width: 0;
        flex: 1;
    }

    header .hamburger {
        display: block;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-left: 10px;
        position: relative;
        z-index: 1001;
    }

    header nav {
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
    }
}

.open-share-form {
    margin-top: 18px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: #ffb8c6;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.open-share-form:hover {
    background: #ffa4b7;
}

.share-form {
    display: none;
}

.share-form.is-open {
    display: block;
}