/* 
========================================
    MUSEA Website For Businesses Stylesheet
========================================
*/

/* 1. Base (Variables, Reset, Fundamentals) */
:root {
    /* Colors */
    --musea-biz-bg-light: #E6F0F2;
    --musea-biz-bg-white: #FFFFFF;
    --musea-biz-primary: #809ca1;
    --musea-biz-primary-dark: #B586B2;
    --musea-biz-accent: #9B72AA;
    --musea-text-main: #4A4A4A;
    --musea-text-sub: #787878;

    /* Shadows */
    --musea-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.05);
    --musea-shadow-float: 0 15px 40px rgba(155, 114, 170, 0.15);

    /* Spacing & Sizes */
    --nav-height: 66px;
    --section-padding: clamp(50px, 8vw, 10px);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--musea-text-main);
    background-color: var(--musea-biz-bg-light);
    line-height: 1.8;
    letter-spacing: 0.05em;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

/* Typography Defaults */
h1,
h2,
h3 {
    margin-bottom: 20px;
}

/* 2. Layout (Global structures) */
.top-space {
    height: var(--nav-height);
}

.container {
    max-width: 1200px;
}

.text-content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.text-content-container h1 {
    font-size: clamp(1.6rem, 5vw, 3.5rem);
}

.text-content-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.text-content-container h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.text-content-container p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: 1;
}

/* 3. Components (Reusable UI elements) */

/* Buttons */
.btn-primary {
    background-color: var(--musea-biz-primary);
    border-color: var(--musea-biz-primary);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(128, 156, 161, 0.4);
}

.btn-primary:hover {
    color: var(--musea-text-main);
    background-color: var(--musea-primary-dark);
    border-color: var(--musea-biz-bg-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(128, 156, 161, 0.4);
}

/* Service Tags */
#otherServicesAccordion .accordion-button {
    color: var(--musea-text-main);
    background-color: transparent;
    transition: all 0.3s ease;
}

#otherServicesAccordion .accordion-button:not(.collapsed) {
    background-color: var(--musea-bg-light);
    color: var(--musea-text-main);
    box-shadow: none;
}

#otherServicesAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(212, 165, 209, 0.1);
}

.service-tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 10px 0;
}

.service-tag-item {
    display: inline-block;
    padding: 8px 24px;
    background-color: var(--musea-bg-light);
    color: var(--musea-text-main);
    /* border: 1px solid var(--musea-primary); */
    border-radius: 50px;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.service-tag-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(212, 165, 209, 0.3);
}

/* Cards (Flipping Logic) */
.section-card-content {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    padding: clamp(30px, 5vw, 60px);
    border-radius: 30px;
    box-shadow: var(--musea-shadow-card);
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.section-card-content img.rounded {
    border-radius: 10px !important;
    /* Bootstrapの標準設定を確実に上書き */
    transition: transform 0.4s ease;
}

.section-card-content img:hover {
    transform: scale(1.02);
}

.card {
    border: none;
    background: transparent;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    min-height: 280px;
    perspective: 1000px;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px);
}

.card-body {
    padding: 0;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.card.is-flipped .card-body {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 1);
    /* 透過を防止 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card:hover .card-front,
.card:hover .card-back {
    box-shadow: var(--musea-shadow-float);
    border-color: var(--musea-primary);
}

.card-front {
    transform: rotateY(0deg) translateZ(1px);
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg) translateZ(1px);
    background: var(--musea-bg-white);
    color: var(--musea-text-main);
    text-align: center;
}

.card-back p {
    font-size: 0.95rem;
    margin: 0;
}

.card-front img {
    color: var(--musea-primary);
    filter: drop-shadow(0 4px 6px rgba(212, 165, 209, 0.3));
    transition: transform 0.3s ease;
    margin-bottom: 1.5rem;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--musea-text-main);
    font-size: 1.1rem;
}

.card-text {
    font-size: 0.9rem;
    color: var(--musea-text-sub);
    margin-bottom: 0;
}

/* Animation trigger classes for cards */
.stagger-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-card.is-visible {
    opacity: 1;
    transform: none;
}

.stagger-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-card:nth-child(3) {
    transition-delay: 0.3s;
}

@media (max-width: 991px) {
    .stagger-card.is-visible .card-body {
        animation: card-peek 1.0s cubic-bezier(0.50, 1, 0.30, 1) 0.75s;
    }
}

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand img {
    height: 30px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--musea-text-main) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--musea-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--musea-primary) !important;
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    outline: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (min-width: 992px) {
    .navbar .d-flex.align-items-center {
        margin-left: auto;
    }
}

@media (max-width: 991px) {
    .custom-navbar-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-out;
        background-color: rgba(255, 255, 255, 0.95);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        width: 100%;
        position: absolute;
        left: 0;
        top: 100%;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .custom-navbar-collapse.show {
        max-height: 500px;
    }

    .navbar-nav {
        text-align: center;
        padding: 20px 0;
    }

    .nav-item {
        margin: 15px 0;
    }
}

/* 4. Page Sections */

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #FFF0F5 0%, #F5E6FA 30%, rgba(245, 230, 250, 0.5) 70%, transparent 100%);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-fixed-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-width: 700px;
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

.hero-text {
    width: clamp(70%, 80%, 1000px);
    margin: 0 auto 50px;
    padding: 0 20px;
    z-index: 2;
    text-align: center;
}

.hero-text-svg {
    filter: drop-shadow(1px 1px 0 rgb(0, 0, 0));
}

.hero-text-content {
    height: 120vh;
    /* PCでは高さを出して画像の下部までしっかり表示 */
    min-height: 800px;
    position: relative;
    z-index: 1;
    padding-top: 80px;
    width: 100%;
    /* background-image は削除：<img>タグ側で表示するため */
    background-color: transparent;
    overflow: hidden;
}

/* 画像の上に白いフェードを重ねる */
.hero-text-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(230, 240, 242, 0) 90%,
            /* 透明な範囲を広げ、急激に色を付ける */
            var(--musea-biz-bg-light) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-box-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    max-width: 1500px;
    height: 90vh;
    /* PCでは1画面内に収める */
    z-index: 2;
    pointer-events: none;

    /* コンテナ自体はクリックを透過 */
}

.hero-text-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--musea-primary), var(--musea-primary-dark));
    background-clip: text;
    -webkit-background-clip: text;
    letter-spacing: 0.1em;
    text-shadow: 0 0 2px var(--musea-primary-dark), 0 0 5px #838383, 0 0 30px #ffffff;
    color: #FFFFFF;
}

.hero-text-content p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: rgb(136, 136, 136);
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow:
        0 0 30px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 1)
}

@media (max-width: 768px) {
    .hero-text-content {
        height: calc(100vh - var(--nav-height));
        min-height: auto;
    }

    .hero-box-container {
        height: 80%;
        /* スマホでは元の比率に戻す */
    }

    .hero-text {
        width: min(120%, 100vw);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 四角のアニメーション */
/* 1. 文字のベーススタイル */
.slide-box {
    position: absolute;
    width: fit-content;
    padding: 10px 20px;
    color: var(--musea-text-main);
    font-weight: bold;
    font-size: clamp(1.0rem, 3vw, 1.8rem);
    overflow: hidden;
    text-decoration: none;
    pointer-events: auto;
    /* テキスト部分はクリック可能に */
}

.slide-box:nth-child(1) {
    top: 80px;
    /* 上からの距離 */
    right: 40px;
    /* 右からの距離 */
}

.slide-box:nth-child(2) {
    bottom: 60px;
    /* 下からの距離 */
    left: 40px;
    /* 左からの距離 */
}

.slide-box:nth-child(1) .slide-text {
    animation: textSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.4s forwards;
}

.slide-box:nth-child(2) .slide-text {
    animation: textSlideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 1.8s forwards;
}

.slide-text {
    display: block;
    opacity: 0;
    transform: translateX(100%);
}

.slide-box:nth-child(1)::before {
    animation-delay: 1.4s;
}

.slide-box:nth-child(2)::before {
    animation-delay: 1.8s;
    /* 左下のテキストをさらに遅らせる場合 */
}

/* 2. 背景となる白い四角（擬似要素） */
.slide-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: -1;
    /* 文字の後ろへ */

    /* 最初は左側に隠しておく */
    transform: translateX(-101%);

    /* アニメーションの設定 */
    animation: slideIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* 3. 動きの定義 */
@keyframes slideIn {
    to {
        transform: translateX(0);
    }
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Company Section */
.company-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.company-info-table tr {
    border-bottom: 1px solid rgba(74, 74, 74, 0.1);
}

.company-info-table tr:last-child {
    border-bottom: none;
}

.company-info-table th,
.company-info-table td {
    padding: 25px 15px;
    vertical-align: top;
    text-align: left;
}

.company-info-table th {
    width: 30%;
    font-weight: 700;
    color: var(--musea-text-main);
    position: relative;
    padding-left: 30px;
}

/* 左側のアクセントライン */
.company-info-table th::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background-color: var(--musea-biz-primary);
    border-radius: 2px;
}

.company-info-table td {
    color: var(--musea-text-main);
    line-height: 1.8;
}

.company-info-table .biz-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 768px) {

    .company-info-table th,
    .company-info-table td {
        display: block;
        width: 100%;
        padding: 10px 15px;
    }

    .company-info-table th {
        padding-top: 20px;
        padding-left: 20px;
    }

    .company-info-table th::before {
        top: 30px;
        height: 20px;
    }

    .company-info-table td {
        padding-bottom: 20px;
    }
}

/* Workflow Section */
.workflow-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* PCでは一行に収める */
    gap: clamp(10px, 2vw, 20px);
    margin: 0;
    /* 余分なマージンを削除 */
    width: 100%;
}

.workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.workflow-circle {
    width: clamp(160px, 14vw, 220px);
    /* さらにコンパクトに調整 */
    height: clamp(160px, 14vw, 220px);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* 余白を縮小 */
    margin-bottom: 15px;
    box-shadow: var(--musea-shadow-card);
    transition: transform 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.workflow-circle:hover {
    transform: translateY(-5px);
}

.workflow-step-num {
    font-size: 0.9rem;
    /* フォントサイズを縮小 */
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.workflow-title {
    font-size: 0.95rem;
    /* フォントサイズを縮小 */
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.workflow-desc {
    font-size: 0.7rem;
    /* PC表示ではさらにコンパクトに */
    line-height: 1.5;
    color: var(--musea-text-main);
    word-break: break-all;
}

/* Colors from image */
.step-1 .workflow-circle {
    background-color: #FFE5D1;
}

.step-2 .workflow-circle {
    background-color: #FFD1DF;
}

.step-3 .workflow-circle {
    background-color: #E6D1FF;
}

.step-4 .workflow-circle {
    background-color: #D1E8FF;
}

.workflow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: clamp(80px, 7vw, 110px);
    /* 円のサイズ変更に合わせて調整 */
    color: var(--musea-biz-primary);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .workflow-container {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .workflow-arrow {
        padding: 20px 0;
        transform: rotate(90deg);
    }

    .workflow-circle {
        width: 280px;
        height: 280px;
        padding: 30px;
        /* モバイルでは余白を広げる */
    }

    .workflow-step-num {
        font-size: 1.1rem;
    }

    .workflow-title {
        font-size: 1.2rem;
    }

    .workflow-desc {
        font-size: 0.8rem;
        /* モバイルでは読みやすく大きく */
    }
}

/* Hero Images*/

.hero-text-content img:not(.hero-fixed-logo) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    object-fit: cover;
    object-position: center 80%;
    /* 下の方を優先的に見せる */
    /* 下の方を徐々に消すマスク（領域を狭く修正） */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    filter: blur(2px);
}

/* Footer */
.footer {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer p {
    color: var(--musea-text-sub);
    font-size: 0.9rem;
}

.footer img {
    height: 60px;
    opacity: 0.8;
    margin-top: 20px;
}

/* 5. Animations */
.biz-scroll-indicator {
    position: absolute;
    right: 30px;
    top: calc(100vh - 180px);
    /* PCでは最初の画面の底部に固定 */
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.biz-scroll-text {
    writing-mode: vertical-rl;
    font-size: 14px;
    letter-spacing: 0.3em;
    color: #FFFFFF;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.biz-scroll-line {
    width: 2px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.biz-scroll-line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFF;
    animation: scroll-line-anim 2s cubic-bezier(0.76, 0, 0.3, 1) infinite;
}

@keyframes scroll-line-anim {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes card-peek {

    0%,
    100% {
        transform: rotateY(0);
    }

    40% {
        transform: rotateY(20deg);
    }
}

@keyframes image-switch-animation {

    0%,
    30%,
    100% {
        opacity: 0;
    }

    5%,
    25% {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.scroll-indicator {
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    font-size: 0.8rem;
}

/* 6. Utilities (Functional classes) */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Break control */
.sp {
    display: none;
}

@media (max-width: 768px) {
    .sp {
        display: block;
    }
}

.pc-br {
    display: none;
}

@media (max-width: 1600px) {
    .pc-br {
        display: block;
    }
}

/* No-wrap for titles on mobile */
@media (max-width: 768px) {
    .text-content-container h1 {
        white-space: nowrap;
    }

    .biz-scroll-indicator {
        top: auto;
        bottom: 30px;
        /* スマホでは元の位置（下端）に戻す */
    }
}

/* 7. Splash Screen */
#splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--musea-biz-bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#splash img {
    width: clamp(150px, 30vw, 300px);
    opacity: 0;
    animation: splash-logo-anim 1.2s ease-in-out forwards;
}

#splash.fade-out {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes splash-logo-anim {
    0% {
        opacity: 0;
        transform: scale(0.95);
        filter: blur(10px);
    }

    30% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    70% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    100% {
        opacity: 0.1;
        transform: scale(1.05);
        filter: blur(5px);
    }
}

/* ========================================
    Scrapbook-style Services Section
======================================== */
/* #services {
    padding: 100px 0;
    position: relative;
    background-color: white;
    /* Title area is white */

/* Jagged top edge effect */
/* #services .section-card-content::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background-image: linear-gradient(135deg, white 25%, transparent 25%),
        linear-gradient(225deg, white 25%, transparent 25%);
    background-position: 0 0;
    background-size: 40px 40px;
    z-index: 2;
} */

.scrapbook-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.scrapbook-paper {
    background-image: url('images/background_1.png');
    background-size: auto 100%;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: clamp(40px, 8vw, 100px);
    overflow: hidden;
}

.scrapbook-paper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    pointer-events: none;
}

/* Individual Items */
.scrapbook-item {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.item-shop {
    flex-direction: row-reverse;
}

/* Polaroids */
.scrapbook-photo {
    flex: 0 0 45%;
    background: white;
    padding: 15px 15px 45px 15px;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
    transition: transform 0.3s ease;
}



.scrapbook-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.item-shop .scrapbook-photo {
    transform: rotate(3deg);
}

.item-desk .scrapbook-photo {
    transform: rotate(-2deg);
}

.scrapbook-photo:hover {
    transform: rotate(0deg) scale(1.02);
    z-index: 5;
}

/* Labels and Tape */
.scrapbook-text {
    flex: 1;
    color: #2c4a75;
    display: grid;
    place-items: center;
    font-size: clamp(0.8rem, 2.5vw, 1.6rem);
    /* Deep blue from Service.png */
}

.scrapbook-label {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
}

.label-bg {
    width: 100%;
    height: auto;
    display: block;
}

.label-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
    font-size: clamp(1.0rem, 2.5vw, 1.6rem);
    font-weight: bold;
    color: rgb(114, 114, 114);
    white-space: normal;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Details List */
.scrapbook-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    line-height: 1.8;
    text-align: center;
    /* font-weight: bold; */
    color: rgb(114, 114, 114);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.scrapbook-details li {
    margin-bottom: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #services .section-card-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    #services {
        padding: 60px 0;
    }

    .scrapbook-paper {
        padding: 40px 20px;
        gap: 60px;
        margin: 0 15px;
    }

    .scrapbook-item {
        flex-direction: column !important;
        gap: 20px;
    }

    .scrapbook-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .scrapbook-photo img {
        width: 100%;
        height: auto;
    }

    .scrapbook-text {
        width: 100%;
    }

    /* .label-text {
        font-size: 1.2rem;
    } */

    /* .scrapbook-details {
        font-size: 1.1rem;
    } */
}

/* Tablet Responsive (769px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .scrapbook-item {
        gap: 20px;
    }

    .scrapbook-photo {
        flex: 0 0 40%;
    }

    .scrapbook-photo img {
        max-height: 250px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .scrapbook-paper {
        padding: 30px 15px;
        gap: 40px;
        margin: 0 10px;
    }
}