body {
    margin: 0; padding: 0;
    background-color: #ffffff;
    color: #2d2d2d;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    position: relative;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
}

main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ヘッダー余白設定 */
.header-spacer {
    width: 100%;
    height: 80px;
    display: block;
}

/* --- ふわっと出るアニメーションの基本設定 --- */
.fade-in-el {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.fade-in-el.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TOPヒーローセクション --- */
.hero-container {
    position: relative;
    width: 100%;
    height: 100svh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
}

.hero-bg {
    position: absolute;
    top: 107px; 
    left: 0;
    width: 100%;       
    height: auto;      
    min-height: 100%;  
    object-fit: contain; 
    object-position: top; 
    z-index: 1;
}
.hero-overlay-img {
    position: absolute;
    z-index: 2;
    height: auto;
    pointer-events: none;
}

.img-nanikara-1 {
    width: 75%;
    max-width: 400px;
    top: 12%;
    left: 60%;
    transform: translate(-50%, -50%);
}

/* ヒーロー画像は初期位置がtranslateのため、アニメーション用の初期値を調整 */
.hero-overlay-img.fade-in-el {
    opacity: 0;
    transform: translate(-50%, -30%); /* translate(-50%, -50%)に向かって動く */
    transition: opacity 2s cubic-bezier(0.22, 1, 0.36, 1), transform 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-overlay-img.fade-in-el.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.img-nanikara-2 {
    width: 78%;
    max-width: 380px;
    top: 76%;
    left: 58%;
}

    

/* --- 追加コンテンツセクション --- */
.content-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -30px;
    position: relative;
    z-index: 5;
}

.img-side-align {
    width: 70%;
    max-width: 300px;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.img-right-align {
    align-self: flex-end;
    margin-right: 20px;
}

.img-left-align {
    align-self: flex-start;
    margin-left: 20px;
}

.img-center-70 {
    width: 70%;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

/* --- nanikara 5 & 6 個別調整用 --- */
.img-nanikara-5 {
    width: 75% !important;   /* サイズ指定 */
    margin-top: 0px;
    margin-bottom: 40px;
    margin-left: 15px !important;      /* 左寄せ */
    margin-right: auto !important;  /* 右側を自動で空ける */
    display: block;
}

.img-nanikara-6 {
    width: 65% !important;   /* サイズ指定 */
    margin-top: 0px;
    margin-bottom: 40px;
    margin-right: 50px !important;
    margin-left: auto !important;
    display: block;
}

.img-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.text-container {
    margin: 0 60px 80px;
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.03em;
    text-align: justify;
    font-family: 'Hina Mincho', serif;
}

/* 購入ボタンの設定 */
.purchase-button-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 50px;
}

.purchase-button {
    display: block;
    width: 90%;
    max-width: 300px;
    padding: 18px 0;
    background-color: #1a2a40; /* ネイビー */
    border: 1px solid #bda16b; /* ゴールド縁 */
    color: #eddb8c; /* 文字もシャンパンゴールド */
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15em;
    border-radius: 2px;
    transition: opacity 0.3s;
    border-radius: 25px; /* 丸みのあるデザイン */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 9998;
}

.purchase-button:hover { opacity: 0.8; }

/* --- リンク用ホワイトボックス --- */
.white-box {
    width: 90%;
    max-width: 500px;
    background-color: #f5f5f5;
    border: 1px solid #189bbc;
    border-radius: 15px;
    padding: 25px 20px 25px 40px;
    box-sizing: border-box;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s;
    overflow: visible;
    cursor: pointer;
    z-index: 10;
    margin: 20px auto;
}

.white-box.is-visible { opacity: 1; transform: translateY(0); }
.white-box:active { background-color: #f0f8fa; opacity: 0.8; }

.box-main-img {
    width: 60%;
    height: auto;
    display: block;
    margin: 0 0 15px 0;
    z-index: 2;
    position: relative;
}

.box-text {
    color: #189bbc;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-align: left;
    width: 80%;
    word-break: break-all;
    z-index: 2;
    position: relative;
}

.box-side-img {
    position: absolute;
    right: 45px;
    bottom: 10px;
    height: 85%;
    display: block;
    z-index: 5;
}

#link-box-trigger {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* パンくずリスト */
.breadcrumb-container {
    padding: 40px 20px 40px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* ミネラル部分を装飾するための専用クラス */
.highlight-mineral {
    color: #1a2a40;      /* 指定のカラーコード */
    font-weight: 700;    /* 太さを700に設定 */
}

.text-container {
    line-height: 1.6;    /* 読みやすさのための行間設定（任意） */
}

.breadcrumbs {
    list-style: none; display: flex; padding: 0; margin: 0;
    font-size: 10px; letter-spacing: 0.05em;
    color: #189bbc;
}

.breadcrumbs li:last-child a {
    text-decoration: none;
    color: #a0cadf;
}

.breadcrumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: #ccc; }

/* ページトップに戻るボタン */
.totop-button {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 54px; height: 54px;
    background-color: #bda16b;
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; font-size: 10px; line-height: 1.2;
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.totop-button.is-show { opacity: 1; visibility: visible; }

/* ============================================================
   PC・タブレット レイアウト（768px以上）
   ============================================================ */
@media (min-width: 768px) {

    .hero-container {
        margin-bottom: 100px;
    }

    .hero-bg {
        top: 0px;
        width: unset;
        height: stretch;
    }

    .img-nanikara-1 {
        top: 10%;
        left: 66%;
    }

    .img-nanikara-2 {
        top: 77%;
        left: 66%;
    }



    .content-stack {
        max-width: 960px;
        margin: -30px auto 0;
    }

    .text-container {
        margin: 0 80px 80px;
        font-size: 16px;
        line-height: 2;
    }

    .img-side-align {
        max-width: 380px;
    }

    .img-right-align {
        margin-right: 40px;
    }

    .img-left-align {
        margin-left: 40px;
    }

    .img-nanikara-5 {
        width: 60% !important;
        margin-left: 30px !important;
    }

    .img-nanikara-6 {
        width: 50% !important;
        margin-right: 60px !important;
    }

    .white-box {
        max-width: 600px;
    }

    .box-text {
        font-size: 14px;
    }

    .breadcrumb-container {
        max-width: 960px;
        padding: 40px 30px 40px;
    }

    .breadcrumbs { font-size: 12px; }

    .purchase-button-container {
        flex-direction: row;
    }
}

/* ============================================================
   iPad Air ワイドレイアウト（820px以上）
   ============================================================ */
@media (min-width: 820px) {
    .img-nanikara-2 {
        top: 75%;
    }
}

/* ============================================================
   PC ワイドレイアウト（1024px以上）
   ============================================================ */
@media (min-width: 1024px) {

    .hero-bg {
        top: 0px;
    }

    .content-stack {
        max-width: 1060px;
    }

    .text-container {
        margin: 0 120px 80px;
        font-size: 17px;
    }

    .img-side-align {
        max-width: 420px;
    }

    .img-right-align {
        margin-right: 60px;
    }

    .img-left-align {
        margin-left: 60px;
    }

    .img-nanikara-1 {
        top: 14%;
        left: 72%;
        max-width: 480px;
    }

    .img-nanikara-2 {
        top: 77%;
        left: 72%;
        max-width: 480px;
    }

    .img-nanikara-5 {
        width: 50% !important;
        margin-left: 40px !important;
    }

    .img-nanikara-6 {
        width: 45% !important;
        margin-right: 80px !important;
    }

    .white-box {
        max-width: 680px;
    }

    .breadcrumb-container {
        max-width: 1060px;
        padding: 40px 50px 40px;
    }
}
