/* ===================================
VARIABLES
===================================== */
:root {
    --cp-color-main: #da3915;
    --cp-color-red: #e34b33;
    --cp-color-text: #000;
    --cp-color-white: #fff;
    --cp-color-light-yellow: #cab15d;
    --cp-color-beige: #f3eee8;
    --cp-shadow-subtle: 0 4px 10px rgba(0, 0, 0, .08);
    --cp-shadow-pop: 0 12px 30px rgba(0, 0, 0, .25);
    --cp-transition-ease: .3s ease-in-out;
    --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;
}

/* ===================================
COMMON
===================================== */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: inherit;
    overflow-x: hidden;
    font-family: var(--cp-font-body);
    font-size: 18px;
    line-height: 1.85;
    font-weight: 500;
    color: var(--cp-color-text);
    background: var(--cp-color-white);
    box-sizing: border-box;
}

#cp-page {
    position: relative;
    overflow-x: hidden;
    font-family: var(--cp-font-body) !important;
    color: var(--cp-color-text) !important;
    font-size: 18px !important;
    line-height: 1.85 !important;
    font-weight: 500 !important;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

br.hidden-sp {
    display: none;
}

.cp-container {
    max-width: var(--cp-container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding-inline: 4%;
}

.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 {
    display: inline;
    align-items: center;
    color: var(--cp-color-light-yellow) !important;
    text-decoration: underline !important;
    font-weight: 700;
    transition: opacity var(--cp-transition-ease);
}

#alpha_cafe .cp-text-external-link,
#alpha_cafe .cp-text-link {
    color: var(--cp-color-main) !important;
    text-decoration: underline !important;
    font-weight: 700;
}

.cp-text-external-link::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: .3em;
    vertical-align: -.15em;
    background: url('../images/icon_window.svg') center/contain no-repeat;
}

.cp-text-external-link:hover,
.cp-text-link:hover {
    opacity: .75;
}

.cp-text-link:visited {
    color: var(--cp-color-main) !important;
}

.cp-button {
    display: block;
    width: auto;
    line-height: 1.4;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: 40px auto 20px;
    padding: 12px 25px;
    border: none;
    border-radius: 50px;
    background: var(--cp-color-main) !important;
    color: var(--cp-color-white) !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 700;
    box-shadow: var(--cp-shadow-subtle);
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease), background var(--cp-transition-ease);
}

.cp-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--cp-shadow-pop);
    background: linear-gradient(to right, var(--cp-color-main), var(--cp-color-main)) !important;
}

.cp-section {
    position: relative;
    padding: 60px 0;
}

.cp-section-title {
    font-family: var(--cp-font-title);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--cp-color-main);
    text-align: center;
    max-width: 90%;
    margin: 0 auto 30px;
    padding-bottom: 20px;
    position: relative;
}

.cp-section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--cp-color-main);
    border-radius: 5px;
}

@media (min-width:768px) {
    body {
        font-size: 18px;
    }

    br.hidden-sp {
        display: initial;
    }

    .cp-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cp-text {
        text-align: center;
    }

    .cp-button {
        font-size: 22px;
        width: min(100%, 500px);
    }

    .cp-section-title {
        font-size: 36px;
        margin-bottom: 50px;
        letter-spacing: .1em;
    }
}

/* ===================================
HERO
===================================== */
.cp-hero-image {
    text-align: center;
    font-size: 0;
    margin-bottom: 4px;
    background: var(--cp-color-red);
}

/* ===================================
NAV
===================================== */
.cp-nav {
    background: var(--cp-color-main);
}

.cp-nav-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    background: var(--cp-color-main);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-nav-item {
    background: transparent;
    border-bottom: 2px solid var(--cp-color-white);
    box-sizing: border-box;
}

.cp-nav-item:hover {
    background: rgba(0, 0, 0, .1);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-nav-item a {
    width: 100%;
    min-height: 30px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .08em;
    color: var(--cp-color-white) !important;
    text-decoration: none !important;
}

@media (min-width:768px) {
    .cp-nav-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cp-nav-item {
        border-right: none;
    }

    .cp-nav-item:nth-child(1),
    .cp-nav-item:nth-child(3) {
        border-right: 2px solid var(--cp-color-white);
    }

    .cp-nav-item a {
        font-size: 22px;
    }

    .cp-nav-item a::after {
        content: '';
        width: 8px;
        height: 8px;
        border-bottom: 2px solid var(--cp-color-white);
        border-right: 2px solid var(--cp-color-white);
        transform: rotate(45deg);
    }

    .cp-nav-item a:hover::after {
        margin-left: 5px;
    }
}

@media (min-width:1024px) {
    .cp-nav-list {
        grid-template-columns: repeat(4, 1fr);
        border-bottom: none;
        max-width: 1200px;
    }

    .cp-nav-item {
        border-bottom: none;
    }

    .cp-nav-item:nth-child(1) {
        border-left: 2px solid var(--cp-color-white);
    }

    .cp-nav-item:nth-child(2),
    .cp-nav-item:nth-child(4) {
        border-right: 2px solid var(--cp-color-white);
    }

    .cp-nav-item a {
        min-height: 60px;
        padding: 15px 5px;
    }
}

/* ===================================
GREETINGS
===================================== */
#greetings {
    padding: 40px 0 50px;
    background: var(--cp-color-beige);
}

#greetings .cp-gift-price {
    color: var(--cp-color-text);
}

#greetings h3 {
    text-decoration-line: underline;
    text-underline-offset: .3em;
    text-decoration-thickness: .08em;
}

@media (min-width:1024px) {
    #greetings {
        padding: 80px 0;
    }

    #greetings::after {
        content: '';
        position: absolute;
        right: 37px;
        bottom: 0%;
        width: 330px;
        height: 200px;
        background: url(../images/side_image_2.png) top right / contain no-repeat;
        transform: translateY(-50%);
        z-index: 2;
    }
}

/* ===================================
GIFT SECTION
===================================== */
#nav-gift {
    background: var(--cp-color-white);
    color: #000;
    padding-block: 60px;
}

.cp-gift-lead {
    text-align: center;
    font-weight: 500;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cp-gift-bar {
    background-color: var(--cp-color-beige);
    color: var(--cp-color-text);
    font-weight: 800;
    text-align: center;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 1.4;
    letter-spacing: .05em;
}

.cp-mt-large {
    margin-top: 80px;
}

.cp-gift-heading {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.cp-gift-price {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    letter-spacing: .05em;
    line-height: 1.4;
    color: var(--cp-color-main);
}

.cp-gift-note {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 0;
}

.cp-text-left {
    text-align: left;
    display: inline-block;
}

.cp-gift-coupon-area {
    margin-bottom: 60px;
}

.cp-gift-block {
    text-align: center;
    margin-bottom: 20px;
    padding: 30px 20px;
    height: auto;
    border: 4px solid var(--cp-color-main);
    border-radius: 10px;
    box-sizing: border-box;
}

.cp-photoback-area {
    margin-bottom: 60px;
}

.cp-photoback-images {
    margin: 20px 0;
}

.cp-photoback-images img {
    width: 100%;
    height: auto;
}

.cp-photoback-logo-wrap {
    text-align: right;
    margin-bottom: 20px;
}

.cp-photoback-logo {
    max-width: 150px;
}

.cp-gift-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    margin: 60px 0 30px;
    letter-spacing: .05em;
}

.cp-famima-sub-title {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
}

.cp-famima-area {
    width: 100%;
}

.cp-famima-content {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    border: 4px solid var(--cp-color-main);
    padding: 30px 20px;
    height: auto;
    border-radius: 10px;
    box-sizing: border-box;
}

.cp-famima-text {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    line-height: 1.4;
}

.cp-famima-img {
    width: 200px;
    max-width: 100%;
}

.cp-note-list,
.cp-usage-list {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

.cp-note-list li {
    margin-bottom: 0.5em;
}

.cp-usage-guide {
    margin-top: 30px;
}

.cp-usage-list li {
    display: flex;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.cp-usage-list li::before {
    content: counter(list-item);
    counter-increment: list-item;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    height: 1.5em;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.9em;
    flex-shrink: 0;
}

ol.cp-usage-list {
    counter-reset: list-item;
}

.cp-cta-box {
    background-color: var(--cp-color-beige);
    padding: 30px 20px;
    border-radius: 10px;
}

.cp-cta-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 20px !important;
    gap: 5px;
    line-height: 1.4;
    text-align: center;
}

.cp-icon-beginner {
    font-size: 1.2em;
}

.cp-cta-item {
    margin-bottom: 30px;
}

.cp-cta-lead {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    line-height: 1.5;
}

.cp-cta-button {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 15px;
    background-color: #ff9900;
    color: #fff !important;
    font-size: 22px;
    font-weight: 800;
    text-decoration: none !important;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, opacity 0.2s;
}

.cp-cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.cp-lottery-area {
    text-align: center;
    margin-bottom: 30px;
    border: 4px solid var(--cp-color-main);
    border-radius: 10px;
    padding: 30px 20px;
    height: auto;
    border-radius: 10px;
    box-sizing: border-box;
    width: 100%;
}

.cp-lottery-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
    margin-top: 0;
}

@media (min-width: 768px) {
    .cp-gift-bar {
        font-size: 26px;
        padding: 20px 0;
        width: 100%;
    }

    .cp-gift-heading {
        font-size: 28px;
        margin-bottom: 5px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    .cp-gift-condition {
        display: flex;
        min-height: 2.8em;
        align-items: flex-start;
        justify-content: center;
    }

    .cp-gift-item-name {
        display: block;
        font-size: 1.1em;
    }

    .cp-gift-price {
        font-size: 38px;
    }

    .cp-gift-note {
        font-size: 16px;
        text-align: center;
    }

    .cp-gift-coupon-area {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        width: 100%;
    }

    .cp-gift-block {
        margin-bottom: 0;
        padding: 30px 20px 15px;
    }

    .cp-gift-section-title {
        font-size: 32px;
        margin: 0 40px;
    }

    .cp-famima-content {
        flex-direction: row;
        justify-content: center;
        text-align: left;
        gap: 40px;
        height: 230px;
    }

    .cp-famima-text {
        text-align: left;
        font-size: 26px;
    }

    .cp-cta-box {
        margin-inline: auto;
        padding: 30px;
    }

    .cp-cta-title {
        font-size: 26px;
    }

    .cp-cta-lead {
        font-size: 24px;
        padding-left: 20px;
    }

    .cp-cta-sub {
        font-size: 18px;
    }

    .cp-lottery-area {
        width: auto;
    }

    .cp-lottery-title {
        font-size: 26px;
        margin-bottom: 20px;
    }
}

/* ===================================
HOW-TO
===================================== */
#nav-how-to {
    background: var(--cp-color-beige);
}

.cp-step-group {
    margin-top: 70px;
    background: var(--cp-color-white);
    padding: 30px;
    border: none;
    border-radius: 15px;
    box-shadow: var(--cp-shadow-subtle);
    line-height: 1.6;
}

.cp-step-group-title {
    font-family: var(--cp-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--cp-color-main);
    margin: 5px 0;
    text-align: center;
    line-height: 1.3;
    border-bottom: 5px solid var(--cp-color-light-yellow);
    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-beige);
    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-step-title {
    width: 100%;
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--cp-color-main);
    font-family: var(--cp-font-title);
    text-align: center;
}

.cp-step-image {
    width: min(100%, 400px);
    margin-inline: auto;
    border-radius: 10px;
    box-shadow: var(--cp-shadow-subtle);
}

@media (min-width:768px) {
    .cp-step-group {
        padding: 40px 60px 50px;
    }

    .cp-step-group-title {
        font-size: 32px;
        margin: 20px 0 40px;
        letter-spacing: .02em;
    }

    .cp-step-title {
        line-height: 1.4;
    }
}

@media (min-width:1024px) {
    #nav-how-to::before {
        content: '';
        position: absolute;
        left: 0;
        top: 3%;
        width: 187px;
        height: 131px;
        background: url(../images/side_image_3.png) top left/contain no-repeat;
        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>p {
        grid-row: 3;
        align-self: start;
        margin-top: 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;
    }
}

@media (min-width:1280px) {
    #nav-how-to::after {
        content: '';
        position: absolute;
        right: 7px;
        bottom: 0;
        width: 187px;
        height: 168px;
        background: url(../images/side_image_4.png) top left/contain no-repeat;
        z-index: 0;
    }
}

/* ===================================
OVERVIEW
===================================== */
#nav-overview {
    background: var(--cp-color-main);
}

#nav-overview .cp-container-small {
    max-width: var(--cp-container-width-small);
    padding-block: 60px;
    color: var(--cp-color-white);
}

#alpha_cafe #nav-overview .cp-text-external-link,
#alpha_cafe #nav-overview .cp-text-link {
    color: var(--cp-color-white) !important;
}

.cp-overview-list {
    margin: 0;
}

.cp-overview-title {
    font-family: var(--cp-font-title);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 40px 0 20px;
    border-bottom: 5px solid var(--cp-color-light-yellow);
    padding-bottom: 12px;
}

.cp-overview-list dt:first-of-type {
    margin-top: 0;
}

.cp-overview-subtitle {
    color: var(--cp-color-w);
    margin: 35px 0 5px;
    font-weight: 800;
    font-size: 22px;
    padding-left: 0 !important;
}

.cp-overview-subtitle::before {
    content: none !important;
}

.cp-overview-desc {
    margin: 0 0 15px 0;
}

.cp-overview-desc .cp-text-link {
    color: var(--cp-color-white) !important;
}

.cp-overview-list dt:nth-of-type(-n+2)~dd {
    padding-left: 1em;
    position: relative;
}

.cp-overview-list dt:nth-of-type(-n+2)~dd::before {
    content: '・';
    position: absolute;
    left: 0;
    top: 0;
}

.cp-overview-list dt:nth-of-type(5)~dd {
    padding-left: 0;
}

.cp-overview-list dt:nth-of-type(5)~dd::before {
    content: none;
}

@media (min-width:768px) {
    .cp-overview-title {
        font-size: 32px;
    }

    .cp-overview-list dt:nth-of-type(5)+dd {
        column-count: 2;
        column-gap: 1.2rem;
        column-fill: balance;
    }
}

/* ===================================
TIPS
===================================== */
#nav-tips .cp-text {
    margin-bottom: 50px;
}

#nav-tips h3 {
    font-family: var(--cp-font-title);
    font-size: 26px;
    font-weight: 800;
    color: var(--cp-color-main);
    margin: 0 0 30px;
    border-bottom: 5px solid var(--cp-color-light-yellow);
    padding-bottom: 12px;
    text-align: center;
    position: relative;
}

#nav-tips h3::before {
    content: '';
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
    vertical-align: -.4em;
    background: url(../images/icon_beginner.svg) center/contain no-repeat;
}

.cp-tips-content-wrapper {
    background: var(--cp-color-white);
    border: none;
    border-radius: 15px;
    box-shadow: var(--cp-shadow-subtle);
    margin: 0 auto 50px;
    padding: 30px 25px;
}

.cp-tips-content {
    border-radius: 8px;
}

.cp-tips-content:last-child {
    margin-top: 25px;
}

.tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.tips-item {
    width: calc(50% - .6rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--cp-color-white);
    border-radius: 10px;
    box-shadow: var(--cp-shadow-subtle);
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease);
}

.tips-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--cp-shadow-pop);
}

.tips-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.tips-link {
    display: block;
    height: auto;
    text-decoration: none;
    color: var(--cp-color-main) !important;
}

.tips-item-text {
    display: none;
}

#nav-tips .recipe-logo {
    width: min(100%, 225px);
    height: auto;
    margin-bottom: 50px;
    filter: drop-shadow(var(--cp-shadow-subtle));
}

#nav-tips .recipe-banner {
    display: block;
    margin-top: 70px;
}

#nav-tips .recipe-banner img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--cp-shadow-subtle);
    transition: transform var(--cp-transition-ease), box-shadow var(--cp-transition-ease);
}

#nav-tips .recipe-banner img:hover {
    transform: scale(1.02);
    box-shadow: var(--cp-shadow-pop);
}

@media (min-width:768px) {
    #nav-tips h3 {
        font-size: 32px;
    }

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

    .tips-list {
        gap: 2rem;
    }

    .tips-item {
        width: calc((100% - 4rem)/3);
    }

    .tips-item img {
        height: auto;
    }

    .tips-item-text {
        font-size: 18px;
    }
}

/* ===================================
RECOMMENDED
===================================== */
#recommended {
    background: var(--cp-color-beige);
}

.cp-banner-link {
    display: block;
    overflow: hidden;
    text-align: center;
    margin-inline: auto;
    box-shadow: var(--cp-shadow-subtle);
    transition: all var(--cp-transition-ease);
}

.cp-banner-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--cp-shadow-subtle);
}

.cp-banner-grid {
    list-style: none;
    margin: 0;
    padding: 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(2, 1fr);
    }
}

@media (min-width:1024px) {
    .cp-banner-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}