/* ===================================
   VARIABLES
====================================== */
:root {
    --cp-color-main: #0090c4;
    --cp-color-main-light: #00aefc;
    --cp-color-main-dark: #0087b8;
    --cp-color-accent: #fde700;
    --cp-color-red: #f73b28;
    --cp-color-text: #483d3f;
    --cp-color-gray: #6e6e6e;
    --cp-color-white: #fff;
    --cp-color-bg-light-blue: #ebfaff;
    --cp-color-bg-beige: #f3eee8;
    --cp-gradient-blue-sky: linear-gradient(to right, var(--cp-color-main-light), var(--cp-color-main));
    --cp-gradient-dark-blue: linear-gradient(to right, var(--cp-color-main-dark), var(--cp-color-main));
    --cp-gradient-yellow: linear-gradient(to right, var(--cp-color-accent), #ffec40);
    --cp-font-body: 'Noto Sans JP', sans-serif;
    --cp-font-title: 'M PLUS Rounded 1c', serif;
    --cp-container-width: 1100px;
    --cp-container-width-small: 800px;
    --cp-shadow-subtle: 0 4px 10px rgba(0, 0, 0, 0.08);
    --cp-shadow-pop: 0 12px 30px rgba(0, 0, 0, 0.25);
    --cp-transition-ease: 0.3s ease-in-out;
}

/* ===================================
   COMMON & BASE STYLES
====================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--cp-font-body);
    color: var(--cp-color-text);
    background-color: var(--cp-color-white);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.85;
    margin: 0;
    overflow-x: hidden;
    min-width: inherit;
}

#cp-page {
    font-family: var(--cp-font-body) !important;
    color: var(--cp-color-text) !important;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.85 !important;
    position: relative;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

br.hidden-sp {
    display: none;
}

.cp-container {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--cp-container-width);
    position: relative;
    z-index: 1;
}

#nav-gift .cp-container-small {
    width: 100%;
}

#nav-overview .cp-container-small {
    max-width: var(--cp-container-width-small);
}

.cp-text {
    font-size: 18px;
    margin: 0;
}

p small {
    font-size: 16px;
}

.cp-text-bold {
    font-weight: 700;
}

.cp-text-center {
    text-align: center;
    margin-top: 10px
}

.cp-text-link {
    text-decoration: underline !important;
    font-weight: 700;
    display: inline;
    align-items: center;
    color: var(--cp-color-accent) !important;
    transition: opacity var(--cp-transition-ease);
}

.cp-text-external-link::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url('../images/icon_window.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 0.3em;
    vertical-align: -0.15em;
}

#alpha_cafe .cp-text-external-link,
#alpha_cafe .cp-text-link {
    color: var(--cp-color-main-dark) !important;
    text-decoration: underline !important;
    font-weight: bold;
}

.cp-text-external-link:hover,
.cp-text-link:hover {
    opacity: 0.75;
}

.cp-text-link:visited {
    color: var(--cp-color-red) !important;
}

.cp-button {
    width: auto;
    display: block;
    padding: 12px 25px;
    background: var(--cp-color-main) !important;
    color: var(--cp-color-white) !important;
    border: none;
    border-radius: 50px;
    text-align: center;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 700;
    margin-top: 50px;
    margin-inline: auto;
    box-shadow: var(--cp-shadow-subtle);
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease), background var(--cp-transition-ease);
    position: relative;
    overflow: hidden;
    z-index: 1;
    line-height: 1.4;
}

.cp-button:hover,
.acafe-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--cp-shadow-pop);
    background: var(--cp-gradient-dark-blue) !important;
}

.cp-section {
    padding: 60px 0;
    position: relative;
}

.cp-section-title {
    font-family: var(--cp-font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--cp-color-main-dark);
    text-align: center;
    margin: 0 auto 30px;
    line-height: 1.3;
    max-width: 90%;
    position: relative;
    padding-bottom: 20px;
}

.cp-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--cp-color-accent);
    border-radius: 5px;
}

.cp-section-dark-bg .cp-section-title {
    color: var(--cp-color-white);
}

.cp-section-dark-bg .cp-section-title::after {
    background: var(--cp-color-white);
}

@media (min-width: 768px) {
    #nav-gift .cp-container-small {
        max-width: var(--cp-container-width-small);
    }
}

/* ===================================
   WAVE STYLES (波のスタイル)
====================================== */

.cp-section-bg-white {
    background-color: var(--cp-color-white);
}

.cp-section-bg-light-blue {
    background-color: var(--cp-color-bg-light-blue);
}

.cp-section-bg-beige {
    background-color: var(--cp-color-bg-beige);
}

.cp-section-bg-dark-blue {
    background-color: var(--cp-color-main-dark);
    color: var(--cp-color-white);
}

#nav-gift,
#nav-how-to,
#nav-gallery,
#nav-overview,
#nav-tips,
#recipe,
#recommended {
    padding-top: 140px;
}

#nav-gift::before,
#nav-how-to::before,
#nav-gallery::before,
#nav-overview::before,
#nav-tips::before,
#recipe::before,
#recommended::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: calc(100% + 2px);
    height: 82px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    z-index: 0;
}

/* #nav-gift: 直前はgreetings (白) */
#nav-gift::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'/%3e%3c/svg%3e");
}

/* #nav-how-to: 直前は#nav-gift (水色: #ebfaff) */
#nav-how-to::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ebfaff'/%3e%3c/svg%3e");
}

/* #nav-gallery: 直前は#nav-how-to (ベージュ: #f3eee8) */
#nav-gallery::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f3eee8'/%3e%3c/svg%3e");
}

/* #nav-overview: 直前は#nav-gallery (白) */
#nav-overview::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23FFFFFF'/%3e%3c/svg%3e");
}

/* #nav-tips: 直前は#nav-overview (濃い青: #0087b8) */
#nav-tips::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%230087b8'/%3e%3c/svg%3e");
}

/* #recipe: 直前は#nav-tips (ベージュ: #f3eee8) */
#recipe::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f3eee8'/%3e%3c/svg%3e");
}

/* #recommended: 直前は#recipe (水色: #ebfaff) */
#recommended::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3e%3cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ebfaff'/%3e%3c/svg%3e");
}

@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .cp-text {
        text-align: center;
    }

    br.hidden-sp {
        display: initial;
    }

    .cp-section-title {
        font-size: 36px;
        margin-bottom: 50px;
        letter-spacing: 0.1em;
    }

    .cp-button {
        font-size: 22px;
        width: min(100%, 480px);
    }
}

/* ===================================
   HERO
====================================== */
.cp-hero-image {
    text-align: center;
    font-size: 0;
    margin-bottom: 4px;
}

/* ===================================
   NAVIGATION
====================================== */
.cp-nav-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--cp-color-main);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-nav-item {
    background-color: transparent;
    border-right: 2px solid var(--cp-color-white);
    border-bottom: 2px solid var(--cp-color-white);
    box-sizing: border-box;
}

.cp-nav-item:hover {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-nav-item a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 30px;
    font-size: 20px;
    color: var(--cp-color-white) !important;
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    letter-spacing: 0.08em;
    box-sizing: border-box;
}


@media (min-width: 768px) {
    .cp-nav-item a {
        font-size: 22px;
    }

    .cp-nav-item a::after {
        content: '';
        width: 8px;
        height: 8px;
        border: 0;
        border-bottom: solid 2px var(--cp-color-white);
        border-right: solid 2px var(--cp-color-white);
        transform: rotate(45deg);
        margin-left: 10px;
    }

    .cp-nav-item a:hover::after {
        margin-left: 15px;
    }
}

@media (max-width: 1023px) {
    .cp-nav-list .cp-nav-item:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1024px) {
    .cp-nav-list {
        grid-template-columns: repeat(5, 1fr);
        border-bottom: none;
        max-width: 1200px;
    }

    .cp-nav-item a {
        padding: 15px 5px;
        min-height: 60px;
    }

    .cp-nav-item {
        border-bottom: none;
    }

    .cp-nav-item:last-child {
        border-right: none;
    }
}

/* ===================================
   GREETINGS
====================================== */
#greetings {
    padding-top: 40px;
    padding-bottom: 50px;
}

#greetings .cp-text-link {
    color: var(--cp-color-main-dark) !important;
}

@media (min-width: 1200px) {
    #greetings {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    #greetings::before {
        content: '';
        position: absolute;
        width: 150px;
        height: 104px;
        background-image: url(../images/side_image_1.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top right;
        bottom: -25%;
        left: 0px;
        transform: translateY(-50%);
        z-index: 2;
    }

    #greetings::after {
        content: '';
        position: absolute;
        width: 80px;
        height: 147px;
        background-image: url(../images/side_image_2.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top right;
        top: 32%;
        right: 0px;
        transform: translateY(-50%);
        z-index: 2;
    }
}

/* ===================================
   GIFT (#nav-gift)
====================================== */
#nav-gift .cp-text-link {
    color: var(--cp-color-main-dark) !important;
}

.cp-gift-container {
    background: var(--cp-color-white);
    padding: 10px 20px 20px;
    border: none;
    border-radius: 15px;
    box-shadow: var(--cp-shadow-subtle);
    margin-top: 30px;
}

.cp-gift-container h4 {
    font-family: var(--cp-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--cp-color-main-dark);
    border-bottom: 5px solid var(--cp-color-accent);
    margin-block: 5px 14px !important;
    text-align: center;
    position: relative;
}

.cp-gift-container h4::before {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url(../images/icon_bean.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
    vertical-align: -0.4em;
}

@media (min-width: 768px) {
    .cp-gift-container {
        padding: 10px 40px 20px;
        margin-top: 30px;
    }

    .cp-gift-container h4 {
        font-size: 32px;
        padding-bottom: 12px;
        margin-block: 15px 30px !important;
    }
}

/* ===================================
   HOW-TO (#nav-how-to)
====================================== */
#nav-how-to {
    padding-bottom: 80px;
}


.cp-step-group {
    margin-top: 70px;
    background: var(--cp-color-white);
    padding: 30px;
    border-radius: 15px;
    border: none;
    box-shadow: var(--cp-shadow-subtle);
    line-height: 1.6;
}

.cp-step-group-title {
    font-family: var(--cp-font-title);
    font-size: 30px;
    font-weight: 800;
    color: var(--cp-color-main-dark);
    border-bottom: 5px solid var(--cp-color-accent);
    margin-block: 5px;
    text-align: center;
    line-height: 1.3;
    padding-bottom: 5px !important;
}

.cp-step-flow {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
}

.cp-step-item {
    background: var(--cp-color-bg-light-blue);
    border: none;
    border-radius: 12px;
    padding: 20px 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    box-shadow: var(--cp-shadow-subtle);
}

.cp-step-item>p {
    margin-top: auto;
}

.cp-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--cp-gradient-dark-blue);
    color: var(--cp-color-white);
    font-size: 40px;
    font-weight: 900;
    padding: 10px 30px;
    border-radius: 0 0 20px 20px;
    border: 5px solid var(--cp-color-white);
    box-shadow: var(--cp-shadow-pop);
    min-width: 80px;
    text-align: center;
    box-sizing: border-box;
}

.cp-step-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    color: var(--cp-color-main-dark);
    font-family: var(--cp-font-title);
    line-height: 1.3;
    width: 100%;
}

.cp-step-image {
    border-radius: 10px;
    box-shadow: var(--cp-shadow-subtle);
    margin-inline: auto;
    width: min(100%, 400px);
}

@media (min-width: 768px) {
    .cp-step-group {
        padding: 40px 60px 50px;
    }

    .cp-step-group-title {
        font-size: 32px;
        padding-bottom: 15px !important;
        margin-block: 20px 40px;
    }

    .cp-step-title {
        line-height: 1.4;
    }
}


@media (min-width: 1024px) {
    #nav-how-to::before {
        content: '';
        position: absolute;
        width: 125px;
        height: 309px;
        background-image: url(../images/side_image_3.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top left;
        top: 3%;
        left: 0px;
        z-index: 0;
    }

    #nav-how-to::after {
        content: '';
        position: absolute;
        width: 125px;
        height: 590px;
        background-image: url(../images/side_image_4.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: top left;
        bottom: 0;
        right: 0px;
        z-index: 0;
    }

    .cp-step-flow {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto;
        gap: 40px;
        margin-top: 60px;
    }

    .cp-step-item {
        display: grid;
        grid-row: 1 / 4;
        grid-template-rows: subgrid;
        padding: 40px 30px;
        gap: 20px;
        margin: 0;
    }

    .cp-step-item>.cp-step-title {
        grid-row: 1;
        align-self: start;
    }

    .cp-step-item>.cp-step-image {
        grid-row: 2;
        align-self: start;
    }

    .cp-step-item>p {
        grid-row: 3;
        align-self: start;
        margin-top: 0;
    }

    .cp-step-group-title {
        line-height: 1.4;
    }
}

/* ===================================
   OVERVIEW (#nav-overview)
====================================== */
#nav-overview .cp-text-link {
    color: var(--cp-color-accent) !important;
}

.cp-overview-list {
    margin: 0;
}

.cp-overview-title {
    font-family: var(--cp-font-title);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    font-weight: 800;
    border-bottom: 5px solid var(--cp-color-accent);
    padding-bottom: 12px;
    margin-block: 40px 20px;
}

.cp-overview-list dt:first-of-type {
    margin-top: 0;
}

.cp-overview-desc {
    margin: 0 0 15px 0;
}

.cp-overview-desc .cp-text-link {
    color: var(--cp-color-white) !important;
}

@media (min-width: 768px) {
    .cp-overview-title {
        font-size: 32px;
    }
}

/* ===================================
   TIPS (#nav-tips)
====================================== */
.cp-tips-content-wrapper {
    background: var(--cp-color-white);
    padding: 30px 25px;
    border: none;
    border-radius: 15px;
    margin-inline: auto;
    margin-bottom: 50px;
    box-shadow: var(--cp-shadow-subtle);
}

.cp-tips-content {
    border-radius: 8px;
}

.cp-tips-content:last-child {
    margin-top: 25px;
}

#nav-tips h3 {
    font-family: var(--cp-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--cp-color-main-dark);
    border-bottom: 5px solid var(--cp-color-accent);
    padding-bottom: 12px;
    margin-block: 0 30px;
    text-align: center;
    position: relative;
}

#nav-tips h3::before {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background-image: url(../images/icon_beginner.svg);
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 0.5em;
    vertical-align: -0.4em;
}

.tips-list {
    list-style: none;
    padding: 0;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.tips-item {
    overflow: hidden;
    width: calc(50% - 0.6rem);
    background: var(--cp-color-white);
    box-shadow: var(--cp-shadow-subtle);
    border-radius: 10px;
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease);
    display: flex;
    flex-direction: column;
}

.tips-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-pop);
}

.tips-item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.tips-link {
    text-decoration: none;
    color: var(--cp-color-main-dark) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tips-item-text {
    color: var(--cp-color-text);
    font-size: 16px;
    margin: 0;
    padding: 1rem;
    line-height: 1.4;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-grow: 1;
}

#nav-tips .tips-item-text::after {
    content: '';
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    background-image: url('../images/icon_window.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 0.4em;
    vertical-align: -0.25em;
}

@media (min-width: 768px) {
    .cp-tips-content-wrapper {
        display: flex;
        align-items: center;
        gap: 40px;
        padding: 34px 40px 20px;
    }

    .cp-tips-content {
        flex: 1;
    }

    .cp-tips-content:last-child {
        margin-top: 0;
    }

    #nav-tips h3 {
        font-size: 32px;
    }

    .tips-list {
        gap: 2rem;
    }

    .tips-item {
        width: calc((100% - 4rem) / 3);
    }

    .tips-item img {
        height: 200px;
    }

    .tips-item-text {
        font-size: 18px;
    }
}

/* ===================================
   RECIPE (#recipe)
====================================== */
#recipe .recipe-logo {
    width: min(100%, 225px);
    height: auto;
    margin-bottom: 50px;
    filter: drop-shadow(var(--cp-shadow-subtle));
}

#recipe .cp-text {
    margin-bottom: 50px;
}

#recipe .tips-list {
    gap: 1.2rem;
}

#recipe .tips-item {
    width: calc(50% - 0.6rem);
}

#recipe .tips-item img {
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

#recipe .tips-item .tips-link {
    display: block;
    height: auto;
}

#recipe .tips-item-text {
    display: none;
}

#recipe .recipe-banner {
    display: block;
    margin-top: 70px;
}

#recipe .recipe-banner img {
    box-shadow: var(--cp-shadow-subtle);
    border-radius: 15px;
    width: 100%;
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease);
}

#recipe .recipe-banner img:hover {
    transform: scale(1.02);
    box-shadow: var(--cp-shadow-pop);
}

@media (min-width: 768px) {
    #recipe .tips-list {
        gap: 2rem;
    }

    #recipe .tips-item {
        width: calc((100% - 4rem) / 3);
    }

    #recipe .tips-item img {
        height: auto;
    }
}

/* ===================================
   BANNERS & RECOMMENDED
====================================== */
.cp-banner-link {
    display: block;
    overflow: hidden;
    box-shadow: var(--cp-shadow-subtle);
    transition: all var(--cp-transition-ease);
    margin-inline: auto;
    text-align: center;
}

.cp-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-banner-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 25px;
}

.cp-banner-grid li {
    width: min(100%, 380px);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .cp-banner-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .cp-banner-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 08. ギャラリー ーーーーーーーーーーーーーーーーーーー*/

.campaign-gallery {
    max-height: 700px;
    overflow-x: hidden;
    overflow-y: auto;
    direction: ltr;
    scrollbar-width: thin;
    margin-top: 1em;
    padding-block: 2em;
}

.campaign-gallery::-webkit-scrollbar {
    width: 16px;
    height: 60px;
}


.campaign-gallery a {
    text-decoration: none;
}

.campaign-gallery-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.campaign-gallery-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1em;
    overflow: hidden;
    border-left: 1.5px solid var(--cp-color-bg-beige);
    border-bottom: 1.5px solid var(--cp-color-bg-beige);
    padding: 1em;
    background: var(--cp-color-white);
    height: 100%;
}

.campaign-gallery-card:nth-child(1),
.campaign-gallery-card:nth-child(2) {
    border-top: 1.5px solid var(--cp-color-bg-beige);
}

.campaign-gallery-card:nth-child(2n) {
    border-right: 1.5px solid var(--cp-color-bg-beige);
}

.campaign-gallery-image {

    img,
    iframe {
        width: 100%;
        height: auto;
        object-fit: contain;
        flex: 1;
        display: flex;
        place-content: center;
        aspect-ratio: 3/2;
    }
}

iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1020 / 680;
}

.campaign-gallery-image img,
iframe {
    width: 100%;
    height: auto;
    object-fit: contain;
    flex: 1;
    display: flex;
    place-content: center;
}

iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 1020 / 680;
}

#nav-gallery .campaign-gallery-image,
#nav-gallery .campaign-gallery-card-title,
#nav-gallery .campaign-text {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.campaign-gallery-card-title,
.campaign-gallery-card-photographer {
    padding: 0 !important;
    line-height: 1.5;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: var(--cp-color-text) !important;
}

.campaign-gallery-card-title {
    margin: .5em 0 0 !important;
}

.campaign-gallery-card-photographer {
    margin: 0 !important;
}

.campaign-text {
    padding: 0;
    margin: 0;
    color: var(--color-brown) !important;
    font-size: 17px;
}

.campaign-gallery-camera,
.campaign-gallery-lens {
    font-size: 15px;
    font-weight: 500;
    color: var(--cp-color-gray);
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

.campaign-gallery-camera::before,
.campaign-gallery-lens::before {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    font-size: 1.5em;
    margin: 0 4px 0;
    vertical-align: text-top;
}

.campaign-gallery-camera::before {
    background: url(../images/icon_camera.svg) no-repeat;

}

.campaign-gallery-lens::before {
    background: url(../images/icon_lens.svg) no-repeat;

}


.acafe-btn {
    width: 100%;
    text-align: center;
    display: inline-block;
    height: auto;
}

.bravo_btn_wrap {
    transition: transform .3s ease;
}

.bravo,
.finish-bravo-btn>div {
    width: inherit;
    height: auto;
    padding: .5em;
    text-align: center;
    font-size: 17px;
    border-radius: 4px;
    box-shadow: var(--shadow);
    font-weight: bold;
    letter-spacing: .05em;
}

.click-bravo-btn>div {
    background: var(--cp-color-main);
    color: var(--cp-color-white) !important;
}

.click-bravo-btn-one>div {
    background: var(--cp-color-accent);
    color: var(--cp-color-main-dark);
}

.click-bravo-btn-two>div {
    background: var(--cp-color-bg-light-blue);
    color: var(--cp-color-main-dark);
}

.finish-bravo-btn>div {
    background: var(--cp-color-bg-beige);
    color: var(--cp-color-main-dark);
}

@media (640px <=width) {
    .campaign-gallery-container {
        grid-template-columns: repeat(3, 1fr);
        padding: 0 2em 0 0;
        gap: 1em;
    }

    .campaign-gallery {
        max-height: 800px;
    }

    .campaign-gallery-card {
        border-radius: 8px;
        border-top: 4px solid var(--cp-color-bg-beige) !important;
        border-right: 4px solid var(--cp-color-bg-beige) !important;
        border-bottom: 4px solid var(--cp-color-bg-beige);
        border-left: 4px solid var(--cp-color-bg-beige);
        filter: drop-shadow(-5px -5px 10px #ffffff) drop-shadow(5px 5px 10px #ededed);
    }

    .campaign-gallery-card:nth-child(1),
    .campaign-gallery-card:nth-child(2) {
        border-top: 4px solid var(--cp-color-bg-beige);
    }

    .campaign-gallery-card:nth-child(2n) {
        border-right: 4px solid var(--cp-color-bg-beige);
    }
}

@media (1024px <=width) {
    .campaign-gallery-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .campaign-gallery {
        max-height: 1000px;
    }

    .campaign-text {
        margin: 0 1em;
    }

    .campaign-gallery-card {
        border-radius: 8px;
        border-top: 4px solid var(--cp-color-bg-beige);
        border-right: 4px solid var(--cp-color-bg-beige);
        border-bottom: 4px solid var(--cp-color-bg-beige);
        border-left: 4px solid var(--cp-color-bg-beige);
    }
}