:root {
    --page-scale: 1;
    --page-visual-width: 1728px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #000000;
    font-family: 'Noto Serif JP', serif;
}

html, body, header {
    width: 100%;
    height: 100%;
}

.page-wrapper {
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    overflow-x: hidden;
    background: inherit;
}

.page-canvas {
    width: 100%;
    height: 100%;
    transform-origin: top center;
    /* transform: scale(var(--page-scale)); */
}

/* ヒーローセクション */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: url('images/hero-ryokucha.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-item-area {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1280px;
}

/* 縦書きメインタイトル */
.vertical-title {
    position: absolute;
    top: 32px;
    left: 50%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 12vw;
    height: auto;
    z-index: 5;
    opacity: 0;
    filter: blur(16px);
    transform: translateX(-50%) translateY(24px);
    transition: opacity 1.6s ease 0.6s, filter 1.6s ease 0.6s, transform 1.6s ease 0.6s;
}

.vertical-title.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0);
}

.main-title-area {
     width: 6vw;
     display: flex;
     justify-content: center;
     align-items: center;
   
}

.main-title {
    font-weight: 400;
    font-size: 6vw;
    letter-spacing: 1rem;
    white-space: nowrap;
    text-align: center;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

.sub-title-left {
    position: absolute;
    left: 0;
    bottom: 0;
    font-weight: 400;
    font-size: 2vw;
    letter-spacing: 1rem;
    white-space: nowrap;
    text-align: center;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

.sub-title-right {
    position: absolute;
    right: 0;
    top: 0;
    font-weight: 400;
    font-size: 2vw;
    letter-spacing: 1rem;
    white-space: nowrap;
    text-align: center;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

/* 縦書きリッチテキスト */
.vertical-rich {
    position: absolute;
    right: 0;
    top: calc(100%/3);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px;
    gap: 8px;
    z-index: 5;
    opacity: 0;
    filter: blur(16px);
    transform: translateY(24px);
    transition: opacity 1.6s ease, filter 1.6s ease, transform 1.6s ease;
}

.vertical-rich.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.vertical-rich p {
    font-weight: 400;
    font-size: 19px;
    letter-spacing: 1rem;
    text-align: center;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

.badge-area {
    position: absolute;
    width: 115px;
    display: flex;
    flex-flow: column;
    bottom: 56px;
    left: 0;
    opacity: 0;
    filter: blur(16px);
    transform: translateY(24px);
    transition: opacity 1.6s ease 1s, filter 1.6s ease 1s, transform 1.6s ease 1s;
}

.circle-decoration {
    width: 100%;
    height: auto;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.9));
    pointer-events: none;
    z-index: 4;
}

.badge-area.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.hero-divider {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, calc(50% + 24px));
    width: calc(100% / 2.5);
    height: auto;
    pointer-events: none;
    filter: drop-shadow(5px 8px 16px rgba(0, 0, 0, 0.35));
    z-index: 6;
    opacity: 0;
    transition: opacity 1.6s ease 1.4s, transform 1.6s ease 1.4s;
}

.hero-divider.is-visible {
    opacity: 1;
    transform: translate(-50%, 50%);
}

/* 購入スクロールボタン */
.scroll-button {
    position: fixed;
    top: calc(24px + env(safe-area-inset-top, 0px));
    right: max(24px, calc((100vw - var(--page-visual-width, 1728px)) / 2 + 24px));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 48px;
    background: linear-gradient(93.55deg, rgba(11, 110, 69, 0.921569) 0%, rgba(6, 19, 9, 0.94902) 100.71%);
    box-shadow: 4.72727px 4.72727px 4.72727px rgba(0, 0, 0, 0.25);
    border-radius: 8px;
    text-decoration: none;
    z-index: 1000;
}

.scroll-button span {
    font-weight: 600;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #FFFFFF;
}

/* 写真エリアセクション */
.photo-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 112px 0;
    gap: 56px;
    width: 100%;
    min-height: 100%;
    background: url('images/背景.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    gap: 16px;
    text-align: center;
}

.sp-br {
    display: none;
}

.section-title h2 {
    font-weight: 500;
    font-size: 40px;
    line-height: 64px;
    color: #D0B417;
}

.section-title p {
    font-weight: 400;
    font-size: 19px;
    line-height: 32px;
    color: #D0B417;
}

/* 写真グリッド */
.photo-area {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, auto);
    gap: 24px;
    width: min(100%, 1577px);
    padding: 8px;
}

.photo-area img {
    width: 100%;
    display: block;
    border: 3px solid #FFFFFF;
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.9));
    border-radius: 10px;
}

.photo-large {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    aspect-ratio: 1033 / 588;
    object-fit: cover;
}

.photo-medium {
    aspect-ratio: 504 / 275;
    object-fit: cover;
}

.photo-top-right {
    grid-column: 3;
    grid-row: 1;
}

.photo-middle-right {
    grid-column: 3;
    grid-row: 2;
}

.photo-bottom-left {
    grid-column: 1;
    grid-row: 3;
}

.photo-bottom-center {
    grid-column: 2;
    grid-row: 3;
}

.photo-bottom-right {
    grid-column: 3;
    grid-row: 3;
}

@media (max-width: 768px) {
    .photo-area {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
        width: 100%;
    }

    .photo-large {
        grid-column: 1 / span 6;
        grid-row: 1;
    }

    .photo-top-right {
        grid-column: 1 / span 3;
        grid-row: 2;
    }

    .photo-middle-right {
        grid-column: 4 / span 3;
        grid-row: 2;
    }

    .photo-bottom-left {
        grid-column: 1 / span 2;
        grid-row: 3;
    }

    .photo-bottom-center {
        grid-column: 3 / span 2;
        grid-row: 3;
    }

    .photo-bottom-right {
        grid-column: 5 / span 2;
        grid-row: 3;
    }
}

/* 蒸すセクション */
.steam-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('images/蒸す.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-content {
    display: flex;
    flex-direction: row;
    width: min(100%, 1280px);
    padding: 10px;

}

.steam-section .vertical-content {
    justify-content: flex-end;
}

.tea-leaf-section .vertical-content {
    margin-left: 112px;
}

.vertical-text {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding-top: 32px;
    padding-right: 24px;
}

.vertical-text p {
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

.vertical-title-box {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 8px;
}

.vertical-title-box h3 {
    width: 60px;
    font-weight: 700;
    font-size: 56px;
    line-height: 56px;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

.tea-leaf-section .vertical-title-box h3 {
    width: 120px;
}

.vertical-title-box p {
    width: 25px;
    font-weight: 400;
    font-size: 19px;
    line-height: 24px;
    writing-mode: vertical-rl;
    color: #FFFFFF;
}

/* 茶葉セクション */
.tea-leaf-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100%;
    background: url('images/粉末_緑茶.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tea-leaf-section .vertical-text p {
    color: #484848;
}

.tea-leaf-section .vertical-title-box h3 {
    color: #484848;
}

.tea-leaf-section .vertical-title-box p {
    color: #484848;
}

@media (max-width: 768px) {
    .vertical-content {
        padding-top: 40px;
        width: min(92vw, 520px);
    }

    .steam-section,
    .tea-leaf-section {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px;
    }

    .steam-section h3, .steam-section p{
        filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.9));
    }

    .tea-leaf-section .vertical-content {
        justify-content: center;
        margin-left: 0px;
    }
    .tea-leaf-section .vertical-content .vertical-title-box h3{
        width: 100px;
    }

    .vertical-text {
        padding-top: 32px;
        padding-right: 16px;
    }

    .vertical-text p,
    .vertical-title-box p {
        font-size: 16px;
        line-height: 20px;
    }

    .vertical-title-box h3 {
        font-size: 40px;
        line-height: 44px;
        letter-spacing: 8px;
    }

    .scroll-button {
        width: 56px;
        height: 56px;
        padding: 0;
        border-radius: 16px;
        justify-content: center;
        align-items: center;
    }

    .scroll-button::after {
        content: '\2193';
        font-size: 28px;
        line-height: 1;
        color: #FFFFFF;
    }

    .scroll-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* 新茶セクション */
.shincha-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('images/茶葉.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.shincha-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.shincha-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px;
    z-index: 2;
}

.shincha-content h2 {
    font-weight: 400;
    font-size: 40px;
    line-height: 64px;
    color: #FFFFFF;
}

.shincha-content p {
    font-weight: 400;
    font-size: 19px;
    line-height: 32px;
    text-align: justify;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .shincha-content p {
        width: 90vw;
        font-size: 14px;
    }
}

/* 購入セクション */
.purchase-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 112px 0;
    gap: 16px;
    width: 100%;
    min-height: 100%;
    background: linear-gradient(93.55deg, #0B6E45 0%, #061309 100.71%);
}

.purchase-section .section-title h2 {
    color: #FFFFFF;
}

.purchase-section .section-title p {
    color: #FFFFFF;
}

.purchase-frame {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 50px;
    gap: 50px;
    width: min(92vw, 1280px);
    height: 100%;
    background: #FFFBF1;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.9);
    border-radius: 10px;
}

.product-image {
    width: calc(100%/2);
    height: auto;
    object-fit: cover;
}

.purchase-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
    width: calc(100%/2);
    height: 100%;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-name h3 {
    font-weight: 600;
    font-size: 40px;
    line-height: 40px;
    color: #0B6E45;
}

.product-name p {
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    color: #0B6E45;
    margin-top: 10px;
}

.product-description {
    font-weight: 400;
    font-size: 19px;
    line-height: 24px;
    color: #5B5B5B;
}

.quantity-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quantity-label {
    font-weight: 400;
    font-size: 19px;
    line-height: 30px;
    color: #5B5B5B;
}

.quantity-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #D8EBDE;
    border: 1px solid #D8EBDE;
    border-radius: 99px;
    min-height: 105px;
    gap: 20px;
}

.quantity-controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
    flex-shrink: 0;
}

.quantity-button {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: linear-gradient(93.55deg, #0B6E45 0%, #061309 100.71%);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-value {
    font-family: 'Noto Sans Thai', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #0B6E45;
}

.price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #0B6E45;
    flex: 1 1 auto;
}

.price-amount {
    line-height: 1.4;
}

.price-note {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.terms-box {
    display: flex;
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    background: #D8EBDE;
    border-radius: 30px;
}

.checkbox-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.checkbox-row input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid #000000;
}

.checkbox-row label {
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;
    color: #5B5B5B;
}

.terms-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 34px;
    color: #5B5B5B;
}

.terms-list {
    margin: 0;
    padding-left: 36px;
    list-style: disc;
}

.terms-list li {
    margin-bottom: 6px;
}
.purchase-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 90px;
    background: linear-gradient(93.55deg, #0B6E45 0%, #061309 100.71%);
    border-radius: 99px;
    border: none;
    cursor: pointer;
}

.purchase-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    filter: grayscale(20%);
}

.purchase-button span {
    font-weight: 700;
    font-size: 24px;
    line-height: 40px;
    color: #FFFFFF;
}

.status-message {
    margin-top: 18px;
    min-height: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 26px;
    color: #0B6E45;
    text-align: center;
}

@media (max-width: 768px) {
    .purchase-section{
        padding: 56px 0;
    }

    .purchase-frame {
        flex-direction: column;
        padding: 32px 12px;
        gap: 32px;
    }

    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-position: 50% 80%;
    }

    .purchase-details {
        width: 100%;
        gap: 24px;
    }

    .product-info {
        gap: 0px;
    }

    .product-name h3 {
        font-size: 24px;
    }

    .product-name p {
        font-size: 16px;
    }

    .product-description, .quantity-label {
        font-size: 14px;
    }

    .quantity-box {
        flex-direction: column;
        align-items: center;
        padding: 16px;
        min-height: auto;
        gap: 12px;
        border-radius: 40px;
    }

    .quantity-controls {
        gap: 15px;
    }

    .quantity-button {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    .quantity-value {
        font-size: 20px;
    }

    .price {
        align-items: center;
        text-align: center;
        font-size: 20px;
    }

    .price-note {
        font-size: 14px;
    }

    .terms-box {
        padding: 10px;
        gap: 8px;
    }

    .checkbox-row label {
        font-size: 16px;
    }

    .terms-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .terms-list {
        padding-left: 36px;
    }
    
    .purchase-button{
        height: 56px;
    }


    .purchase-button span {
        font-size: 18px;
    }


}

/* フッター */
.footer {
    width: 100%;
    padding: 32px 8px;
    text-align: center;
    color: #FFFFFF;
}

.footer p {
    font-weight: 400;
    font-size: 16px;
}

@media (max-width: 768px) {
    .page-wrapper {
        padding: 0;
    }

    .page-canvas {
        transform: none;
    }

    .vertical-title {
        position: absolute;
        top: 32px;
        width: 45vw;
    }

    .main-title-area {
        width: 20vw;    
    }

    .main-title {
        font-size: 20vw;
    }

    .sub-title-left, .sub-title-right {
        font-size: 7.5vw;
    }

    /* 縦書きリッチテキスト */
    .vertical-rich {
        top: calc(100%/3);
    }

    .vertical-rich p {
        font-size: 14px;
    }

    /* .badge-area {
        width: 72px;
        top: calc(100%/8);
        padding: 8px;
    } */

    .badge-area {
        left: 50%;
        right: auto;
        bottom: clamp(8px, 14vw, 140px);
        width: auto;
        max-width: calc(100% - 32px);
        flex-flow: row nowrap;
        justify-content: center;
        align-items: center;
        gap: min(6vw, 0px);
        transform: translate(-50%, 0px);
    }

    .badge-area.is-visible {
        transform: translate(-50%, 0px);
    }

    .circle-decoration {
        width: min(22vw, 96px);
        flex: 0 0 auto;
    }

    .hero-divider {
        width: 100vw;
        transform: translate(-50%, 50%);    
    }

    .photo-section{
        padding: 64px 8px;
        gap: 16px;
    }

    .section-title h2 {
        font-size: 22px;
        line-height: 40px;
    }

    .sp-br {
        display: inline;
    }

    .section-title p {
        font-weight: 0;
        font-size: 14px;
        line-height: 20px;
    }


}
