@charset "utf-8";
/* ===============================
   基本設定
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}
img {
    width: 100%;
    vertical-align: bottom;
}
body {
    font-family: "游ゴシック体", sans-serif;
    color: #333;
    background: #f8f8f8;
    min-width: 320px;
    overflow-x: hidden;
}

/* ===============================
   ヘッダー
================================ */
header {
    background: #0077b6;
    color: #fff;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-top-left-radius: 0 !important; /* 左上角を直角 */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* スマホ時は左右余白を少なめに */
    max-width: 1500px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    margin-left: 0; /* 左端に寄せる */
}

.header-right {
    text-align: right;
    font-size: 13px;
    margin-left: auto; /* 右側は自動で余白確保 */
}

.header-right .today-event {
    display: block;
    color: #fff;
    text-decoration: underline;
    margin-top: 3px;
    font-size: 13px;
}

/* ナビゲーション */
.nav {
    width: 100%;
    background: #0077b6;
    display: none;
    text-align: center;
}

.nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.nav ul {
    list-style: none;
    padding: 10px 0;
}

.nav li {
    margin: 10px 0;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
}

/* ハンバーガーメニュー */
.menu-toggle {
    font-size: 28px;
    cursor: pointer;
    margin-left: auto;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===============================
   PC時（min-width: 1024px）
================================ */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }

    .nav {
        display: block !important;
        width: auto;
    }

    .nav ul {
        display: flex;
        gap: 25px;
    }

    .nav li {
        margin: 0;
    }

    .header-container {
        padding: 10px 40px; /* PCは従来の左右余白 */
    }

    .logo {
        margin-left: 0; /* PCでも左寄せ固定 */
    }
    .header-right {
        margin: 0;
    }
}

/* ===============================
   HERO（スマホファースト）
================================ */
.hero {
    margin-top: 60px;
    position: relative;
    height: 95vh; /* スマホ時の高さ */
    overflow: hidden;
}

.slides {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.slides img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cover のままPCと統一 */
    object-position: center center; /* デフォルト中央 */
    opacity: 0;
    transition: opacity 1.5s ease, object-position 0.5s ease;
}

.slides img.active {
    opacity: 1;
}

/* スマホ時スライド個別調整 */
.slides img:nth-child(1) {
    object-position: 60% top;
} /* イルカ2匹が見えるよう右寄り */
.slides img:nth-child(2) {
    object-position: center center;
}
.slides img:nth-child(3) {
    object-position: center center;
}
.slides img:nth-child(4) {
    object-position: center 40%;
} /* ペンギンに文字被りしないよう下寄せ */
.slides img:nth-child(5) {
    object-position: center bottom;
}

/* ヒーローテキスト */
.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    width: 90%;
    white-space: normal;
    z-index: 2;
}

/* スマホ時文字サイズ */
.hero-text h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.4em;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.4;
}

/* ===============================
   PC（min-width: 1024px）
================================ */
@media screen and (min-width: 1024px) {
    .hero {
        height: 100vh; /* PCは元の高さ */
    }

    .hero-text {
        width: auto;
        white-space: normal;
    }

    .hero-text h2 {
        font-size: 2.8rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    /* PC時は全スライド中央表示 */
    .slides img {
        object-position: center center;
    }
}

/* ===============================
   各セクションタイトル（共通）
================================ */
section h2 {
    position: relative;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* PC時のみ 左寄せ＋縦棒 */
@media (min-width: 1024px) {
    /* hero以外のセクション見出しに適用 */
    section:not(.hero) h2,
    .access h2 {
        text-align: left !important;
        margin-left: 6%;
        font-size: 2rem;
        color: #003b73;
        padding-left: 28px; /* 棒と文字の間を広く */
        position: relative;
    }

    section:not(.hero) h2::before,
    .access h2::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 1.4em; /* 棒をやや短めに */
        background: linear-gradient(180deg, #00aaff, #0077b6);
    }
}

/* ===============================
   ヒーロー部分の文字（白固定）
================================ */
.hero-text h2,
.hero-text p {
    color: #fff !important;
}

/* ===============================
   PICK UP
================================ */
.pickup {
    text-align: center;
    padding: 90px 20px;
    background: #fff;
}
.pickup h2 {
    color: #0077b6;
    font-size: 2rem;
    margin-bottom: 35px;
    letter-spacing: 1px;
}
.cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}
.card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    width: 90%;
    max-width: 360px;
    text-align: center;
    padding-bottom: 10px;
}
.card:hover {
    transform: translateY(-5px);
}
.card img {
    /* width: 115%;  */
    /* ← 画像を一回り大きく */
    width: 125%; /* ← 少し大きく */
    max-width: none; /* ← 親要素の制限を外す */
    margin-left: -7.5%; /* ← 中央に合わせる補正 */
    /* height: 220px;  */
    /* ← 縦も少し拡大 */
    height: 240px; /* ← 高さも少し大きめ */
    object-fit: cover;
    border-radius: 12px 12px 0 0;

    transition: transform 0.3s ease;
}
.card h3 {
    color: #0077b6;
    margin-top: 15px;
    font-size: 1.1em;
}
.card p {
    padding: 10px;
    font-size: 14.7px;
    line-height: 1.6;
}

/* PC時（幅1024px以上）の微調整 */
@media screen and (min-width: 1024px) {
    .card img {
        width: 115%; /* PCでも少し拡大 */
        margin-left: -7.5%; /* 中央補正 */
        height: 250px; /* 高さを少し上げる */
    }
}
/* ===============================
   PICK UP（PC時の横並び再設定）
=============================== */
@media screen and (min-width: 1024px) {
    .cards {
        flex-direction: row; /* ← PCでは横並びに */
        justify-content: center;
        flex-wrap: wrap; /* ← 折り返し許可（3枚などで安定） */
        gap: 40px; /* ← カードの間隔 */
    }

    .card {
        width: 300px; /* ← 一回り大きめ（バランス維持） */
    }
}

/* ===============================
   EVENT（イベントスライダー）
================================ */
.event {
    padding: 60px 0;
    text-align: center;
    background: #f5fbff;
}

.event h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #003b73;
}

/* --- スライダー全体 --- */
.event-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    width: 90%;
    margin: 0 auto;
}

/* --- スライダー本体 --- */
.event-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    scroll-behavior: smooth;
    width: 80%;
    padding: 20px 0;
}

/* --- カード --- */
.event-card {
    flex: 0 0 18%; /* 5枚表示用 */
    text-align: center;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease,
        box-shadow 0.4s ease;
    opacity: 0.6;
    transform: scale(0.9);
    filter: brightness(0.8);
}

/* --- 中央を強調 --- */
.event-card.active {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* --- 画像 --- */
.event-card img {
    width: 100%;
    height: 220px; /* 統一サイズ */
    object-fit: cover; /* トリミングで整える */
    border-radius: 10px;
    display: block;
    margin: 0 auto 10px;
}

/* --- ボタン --- */
.event-wrapper button {
    background-color: #00aaff;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background 0.3s;
}

.event-wrapper button:hover {
    background-color: #0088cc;
}

/* ===== EVENT スマホファースト対応 ===== */

/* スマホ時（デフォルト） */
.event-slider {
    width: 90%;
    gap: 10px;
}

.event-card {
    flex: 0 0 100%; /* スマホは1枚ずつ表示 */
}

.event-card img {
    height: 180px; /* 高さを少し低く */
}

/* タブレット以上（768px〜） */
@media screen and (min-width: 768px) {
    .event-slider {
        width: 100%;
        gap: 20px;
    }

    .event-card {
        flex: 0 0 calc(20% - 10px); /* 5枚表示（18〜20%程度） */
    }

    .event-card img {
        height: 220px; /* 通常高さに戻す */
    }
}

/* ===============================
   GALLERY
================================ */
.gallery {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
}
.gallery h2 {
    color: #0077b6;
    margin-bottom: 30px;
}
.grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}
.grid img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.3s;
}
.grid img:hover {
    transform: scale(1.04);
}
/* スマホファースト（デフォルト）: 3列×5行 */
.grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin: 0 auto;
}

/* スマホ時のみヒトデ(5)とペンギン(6)を入れ替え */
@media screen and (min-width: 320px) and (max-width: 1023px) {
    .grid {
        grid-template-areas:
            "img1 img2 img3"
            "img4 img6 img5"
            "img7 img8 img9"
            "img10 img11 img12"
            "img13 img14 img15";
    }

    .grid img:nth-child(1) {
        grid-area: img1;
    }
    .grid img:nth-child(2) {
        grid-area: img2;
    }
    .grid img:nth-child(3) {
        grid-area: img3;
    }
    .grid img:nth-child(4) {
        grid-area: img4;
    }
    .grid img:nth-child(5) {
        grid-area: img5;
    } /* ヒトデ */
    .grid img:nth-child(6) {
        grid-area: img6;
    } /* ペンギン */
    .grid img:nth-child(7) {
        grid-area: img7;
    }
    .grid img:nth-child(8) {
        grid-area: img8;
    }
    .grid img:nth-child(9) {
        grid-area: img9;
    }
    .grid img:nth-child(10) {
        grid-area: img10;
    }
    .grid img:nth-child(11) {
        grid-area: img11;
    }
    .grid img:nth-child(12) {
        grid-area: img12;
    }
    .grid img:nth-child(13) {
        grid-area: img13;
    }
    .grid img:nth-child(14) {
        grid-area: img14;
    }
    .grid img:nth-child(15) {
        grid-area: img15;
    }
}

/* PC時（min-width: 1024px）: 5列×3行 */
@media screen and (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(5, 1fr);
        grid-template-areas: none; /* 元の順序に戻す */
    }
}

/* ===============================
   アクセスセクション
================================ */
.access {
    padding: 80px 5%;
    background: #f0f8ff;
}

.access h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #0077b6;
}

.access-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 左側マップ */
.map {
    flex: 1;
    min-height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 右側情報 */
.access-info {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
}

.access-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0077b6;
}

/* 写真2枚横並び */
.access-photos {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.access-photos img {
    width: 48%; /* 横2枚バランス良く */
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* スマホ（基本デザイン） */
.access-container {
    flex-direction: column;
}

.map {
    width: 100%;
    height: 300px;
}

.access-photos {
    flex-direction: column;
}

.access-photos img {
    width: 100%;
}

/* タブレット以上（768px〜） */
@media screen and (min-width: 768px) {
    .access-container {
        flex-direction: row;
    }

    .map {
        width: 50%;
        height: 400px;
    }

    .access-photos {
        flex-direction: row;
    }

    .access-photos img {
        width: 48%;
    }
}

#toTop {
    margin-top: 20px;
    background: #0077b6;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===============================
   FOOTER
=============================== */
footer {
    background: #0077b6; /* ヘッダーと同じ青 */
    color: #fff;
    text-align: center;
    padding: 20px 20px; /* 縦幅をスマホ基準でコンパクトに */
    font-size: 0.85rem; /* 少し小さめ */
    line-height: 1.4; /* 行間を詰める */
    position: relative;
}

footer .sns-links {
    margin-bottom: 10px; /* SNSリンク下余白を縮小 */
}

footer .sns-links a {
    margin: 0 10px;
    font-size: 1.6rem; /* 少し小さく調整 */
    transition: transform 0.3s, opacity 0.3s;
}

footer .sns-links a:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

/* SNSアイコン公式カラー */
footer .fa-x-twitter {
    color: #000;
}
footer .fa-instagram {
    color: #e4405f;
}
footer .fa-youtube {
    color: #ff0000;
}
footer .fa-line {
    color: #00c300;
}

/* お問い合わせリンク */
footer .contact-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin: 4px 0; /* 上下余白を縮小 */
}

footer .contact-link:hover {
    text-decoration: underline;
}

/* コピーライト */
footer p:last-child {
    margin-top: 4px; /* 上余白を縮小 */
    font-size: 0.75rem;
    opacity: 0.9;
}

/* PC（min-width:1024px） */
@media screen and (min-width: 1024px) {
    footer {
        padding: 20px 60px; /* 横広く、縦はスマホと同じ */
        text-align: center;
    }

    footer .sns-links a {
        font-size: 1.8rem; /* 元の大きさに戻す */
    }

    footer .contact-link {
        position: absolute;
        right: 60px;
        top: 20px; /* 縦位置を下げて縦幅をコンパクトに */
        margin: 0;
    }

    footer p:last-child {
        font-size: 0.8rem; /* 元のコピーライトサイズに近づける */
    }
}

/* ===============================
   トップへ戻るボタン（スマホ基準）
================================ */
.back-to-top {
    text-align: center;
    margin: 40px 0; /* スマホは少しコンパクト */
}

.back-to-top a {
    display: inline-block;
    background: #0077b6;
    color: #fff;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s, transform 0.2s;
}

.back-to-top a:hover {
    background: #0096c7;
    transform: translateY(-2px);
}

/* ===============================
   PC（768px以上）用
================================ */
@media (min-width: 768px) {
    .back-to-top {
        margin: 60px 0;
    }

    .back-to-top a {
        padding: 12px 28px;
        font-size: 14px;
    }
}

/* ===============================
   min-width: 1024px（PC）
================================ */
@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
    .nav {
        display: block !important;
        width: auto;
    }
    .nav ul {
        display: flex;
        gap: 25px;
    }
    .nav li {
        margin: 0;
    }
    .hero-text h2 {
        font-size: 2.8rem;
    }
    .hero-text p {
        font-size: 1.2rem;
    }
    .grid {
        grid-template-columns: repeat(5, 1fr);
        max-width: 1200px;
    }
    .card {
        width: 30%;
    }
}
/* ===============================
   特定の角だけフラットに戻す
================================ */

/* ヘッダー左上を直角に */
header {
    border-top-left-radius: 0 !important;
}

/* フッター右下を直角に */
footer {
    border-bottom-left-radius: 0 !important;
}
/* ===== アクセス微調整 ===== */
@media screen and (min-width: 768px) {
    .access-container {
        align-items: flex-start; /* 上端をそろえる */
        gap: 50px; /* 左右の間隔を広げる（20→40px） */
    }

    .map {
        margin-top: 28px; /* 少し下げて右側と下端をそろえる */
        height: 375px;
    }
}
