@charset "UTF-8";

/* ------------------------------ */
/* 基本スタイル */
/* ------------------------------ */
body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

.main-content {
    width: 100%;
    margin: 0 auto;
}

/* ------------------------------ */
/* 画像セクション */
/* ------------------------------ */
.image-section {
    width: 100%;
    position: relative;
}

.image-wrapper--sp-only {
    max-width: 600px;
    margin: 0 auto;
}

@media screen and (max-width: 767px) {
    .image-wrapper--sp-only {
        max-width: 100%;
    }
}

.image-wrapper--sp-only img {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------ */
/* 動画オーバーレイ (浮かせて表示) */
/* ------------------------------ */
.video-overlay {
    position: absolute;
    bottom: 15px;
    /* 画像のボトムから少し浮かせた位置 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    /* コンテンツ幅に収まるように調整 */
    max-width: 540px;
    /* .image-wrapper--sp-only (600px) の90% */
    z-index: 20;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.video-overlay--shorts {
    max-width: 300px;
    /* Shorts用の幅調整 */
    bottom: 15px;
}

.video-overlay--10 {

    bottom: 40px;
}

.video-overlay--top {
    bottom: inherit;
    top: 0;
    width: 100%;
    max-width: 600px;
    box-shadow: none;
}

.video-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-wrapper--local {
    aspect-ratio: 9 / 16;
    width: 90%;
    margin: 0 auto;
}

.video-wrapper--shorts {
    aspect-ratio: 9 / 16;
}

/* YouTubeなどのiframeをcover（はみ出し中央配置）にするためのクラス */
.video-wrapper--cover iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

/* Shorts（9:16）を16:9の枠でcoverさせる場合 */
.video-wrapper--cover.video-wrapper--shorts-in-169 iframe {
    width: 100%;
    height: 177.77%;
    /* 16/9 * 16/9? No, to cover 16:9 with 9:16: width is 100%, height must be 100% * (16/9) / (9/16) = 3.16? No. */
    /* Simple way: */
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    min-height: 100%;
    min-width: 100%;
}

/* ------------------------------ */
/* 動画サムネイル重ね表示 / Instagramリンク */
/* ------------------------------ */
.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
    cursor: pointer;
}

.instagram-link {
    text-decoration: none;
    display: block;
}

.instagram-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 11;
    transition: background 0.3s ease;
}

.instagram-link:hover .instagram-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.instagram-btn-text {
    background: #fff;
    color: #333;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.instagram-btn-text::before {
    content: "";
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='2' width='20' height='20' rx='5' ry='5'%3E%3C/rect%3E%3Cpath d='M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z'%3E%3C/path%3E%3Cline x1='17.5' y1='6.5' x2='17.51' y2='6.5'%3E%3C/line%3E%3C/svg%3E") no-repeat center center;
    background-size: contain;
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 11;
    pointer-events: none;
    /* 下の要素のクリックを邪魔しない */
}

.video-play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
}

/* クリック後に消すためのクラス */
.is-hidden {
    display: none !important;
}

.video-wrapper iframe,
.video-wrapper video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.grey-bg {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background-color: #F2F2F2;
}

/* ------------------------------ */
/* CTAボタン (ふわふわアニメーション) */
/* ------------------------------ */
.image-section--cta {
    position: relative;
}

.cta-btn {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 550px;
    z-index: 10;
    display: block;
    animation: float 3s ease-in-out infinite;
}

@media screen and (max-width: 480px) {
    .cta-btn {
        bottom: 40px;
    }
}

.cta-btn:hover .cta-btn__img {
    transform: scale(1.04);
}

.cta-btn__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ------------------------------ */
/* サイドナビゲーション (PC表示) */
/* ------------------------------ */
.side-nav {
    position: fixed;
    right: 50px;
    /* 画面端から少し離して中央寄りに */
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: none;
}

@media screen and (min-width: 1301px) {
    .side-nav {
        display: block;
    }
}

.side-nav__inner {
    width: 320px;
    /* 全体的に大きく */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.side-nav__title {
    font-size: 16px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.1em;
    color: #333;
    /* ベージュ背景に合わせて濃い色に */
    margin-bottom: 15px;
    padding-right: 40px;
}

.side-nav__list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    align-items: flex-end;
}

.side-nav__item {
    width: 280px;
    /* 項目を大きく */
    transition: transform 0.3s ease;
}

.side-nav__item:hover {
    transform: translateX(-10px);
}

.side-nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-radius: 8px;
    /* 角を少し丸く */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.side-nav__link::after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border: 1px solid #333;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='10 8 14 12 10 16'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 10px;
    flex-shrink: 0;
}

/* アクティブ時の色をご指定のベージュに */
.side-nav__link.is-active {
    background: #EADFD1;
    color: #333;
}

.side-nav__link.is-active::after {
    border-color: #333;
}

/* ------------------------------ */
/* 追従型CTAボタン */
/* ------------------------------ */
.sticky-cta {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 1100;
    width: 280px;
    /* 画像のサイズに合わせて調整 */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

@media screen and (max-width: 767px) {
    .sticky-cta {
        right: inherit;
        left: 50%;
        bottom: 0px;
        width: 95%;
        max-width: 400px;
        transform: translate(-50%, 0);
    }
}

.sticky-cta.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta__link {
    display: block;
    text-decoration: none;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.sticky-cta__link:hover {
    transform: scale(1.05);
}

.sticky-cta__img {
    width: 100%;
    height: auto;
    display: block;
}

/* ------------------------------ */
/* 動画グリッド (Section 12) */
/* ------------------------------ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 20px 10px;
    max-width: 600px;
    margin: 0 auto;
    background: url(../img/sp/movie-grid-bg.webp) no-repeat center center;
}

.video-grid__item video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background-color: #000;
}

/* 再生ボタンの擬似要素 */
.video-grid__item {
    position: relative;
}

.video-grid__item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 30px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
    transition: opacity 0.3s ease;
}

/* 再生中、または一度でも再生されたらボタンを消す */
.video-grid__item.is-playing::after {
    opacity: 0;
}

/* 横長動画（movie-6）の個別対応 */
.video-grid__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.video-grid__item:last-child video {
    aspect-ratio: 16 / 9;
}

/* ------------------------------ */
/* フッター */
/* ------------------------------ */
.footer {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}

.footer__copy {
    font-size: 12px;
    letter-spacing: 0.05em;
}