@charset "utf-8";

/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
    --f-blue: #00abeb;
    --f-pink: #ee84b2;
    --f-dark: #1a1a1a;
    --f-white: #ffffff;
    --f-light: #f8f9fa;
}

body {
    font-family: 'Noto Serif JP', serif;
    background-color: var(--f-white);
    color: var(--f-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Helpers */
.sans-serif {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.sans-serif-bold {
    font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.text-blue { color: var(--f-blue); }
.text-pink { color: var(--f-pink); }
.py-100 { padding: 100px 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.brand-en {
    font-family: 'Montserrat', sans-serif;
    color: var(--f-blue);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-brand img {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    object-fit: contain;
}

@media (max-width: 576px) {
    .brand-en { font-size: 1rem; }
    .navbar-brand img { width: 32px; height: 32px; }
}


/* ==========================================================================
   Brand Cards & Showcase
   ========================================================================== */
.mb-150 { margin-bottom: 150px; }

.brand-card {
    background: var(--f-white);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border-radius: 0;
    overflow: hidden;
}

.parallax-img {
    height: 500px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: transform 0.8s ease;
}

/* スマホではパララックスを解除（表示安定のため） */
@media (max-width: 768px) {
    .parallax-img {
        height: 350px;
        background-attachment: scroll;
    }
}

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

.card-body-custom {
    padding: clamp(30px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Badge System */
.shop-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--f-blue);
    color: var(--f-white);
    padding: 15px 25px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.shop-badge.left {
    right: auto;
    left: 0;
    background: var(--f-pink);
}

/* ==========================================================================
   Package Overlays (Responsive)
   ========================================================================== */
.package-overlay-small,
.package-overlay-responsive {
    position: absolute;
    bottom: 20px;
    width: 150px;
    z-index: 5;
    opacity: 0.9;
    filter: drop-shadow(5px 5px 15px rgba(0,0,0,0.15));
    transition: transform 0.4s ease;
}

/* Default Right Alignment (01, 03, 05) */
.package-overlay-small {
    right: 20px;
}

/* Responsive Alignment (02, 04, 06) */
@media (min-width: 768px) {
    .package-overlay-responsive {
        left: 20px;
        right: auto;
    }
}

@media (max-width: 767.98px) {
    .package-overlay-small,
    .package-overlay-responsive {
        width: 100px;
        right: 15px;
        left: auto;
        bottom: 15px;
    }
}

.package-overlay-small:hover,
.package-overlay-responsive:hover {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
}

/* ロゴ表示エリアの調整 */
.logo-display {
    display: flex;
    justify-content: center; /* 基本は中央 */
}

/* PC（992px以上）では左寄せに戻す */
@media (min-width: 992px) {
    .logo-display {
        justify-content: flex-start;
    }
}

/* ロゴ自体のスタイル（もし既にあれば追記・修正してください） */
.floating-logo {
    max-width: 100%;
    height: auto;
    /* 必要に応じて上下の余白など */
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Hero Slider V3 (追加分)
   ========================================================================== */
/* --- Hero Slider Base (画像を表示させるための土台) --- */
.hero-slider-v3 {
    position: relative;
    width: 100%;
    height: 100vh; /* これがないと高さが0になり画像が見えません */
    background-color: #000;
    overflow: hidden;
}

.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1; /* トランプ方式なので基本は1 */
    z-index: 1;
    animation: zoomUp 15s linear infinite;
}

/* スライダーの重なり制御 */
.slider-item.top {
    z-index: 3;
    transition: opacity 3000ms ease-in-out;
}
.slider-item.fade-out {
    opacity: 0;
}

@keyframes zoomUp {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

/* --- Hero Content Layout (今回修正した配置部分) --- */
.hero-layout-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* 画像(z-index:3)より大きくすることで文字を一番前に */
    display: flex;
    pointer-events: none;
    
    /* スマホ版：デフォルト中央配置 */
    align-items: center; 
    justify-content: center;
    padding: 20px;
}

.hero-content-inner {
    width: 100%;
    max-width: 1200px;
}

/* スマホ時：スクロールで消えるための文字サイズ調整 */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        color: #fff;
    }
}

/* PC版：右下配置 */
@media (min-width: 992px) {
    .hero-layout-wrapper {
        align-items: flex-end; /* 下寄せ */
        justify-content: flex-end; /* 右寄せ */
        padding: 0 60px 80px 0; /* 右と下の余白 */
    }
    .hero-content-inner {
        text-align: right; /* テキスト右揃え */
    }
    .hero-title {
        font-size: 3rem;
        color: #fff;
    }
}
/* --- Captions Base --- */
.caption-item {
    position: absolute;
    right: 60px; /* PC版：右からの距離 */
    bottom: 80px; /* PC版：下からの距離 */
    opacity: 0;
    transition: opacity 2000ms ease-in-out;
    pointer-events: none;
    width: auto; /* コンテンツに合わせて幅を調整 */
    text-align: right; /* PC版：右揃え */
}

.caption-item.active {
    opacity: 1;
}

/* ヒーロータイトルの追加設定 */
.hero-title.sans-serif-bold {
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 5px;
}

/* スマホ版の配置・フォント調整 */
@media (max-width: 991.98px) {
    .caption-item {
        position: relative;
        right: auto;
        bottom: auto;
        text-align: center; /* スマホ：中央揃え */
        width: 100%;
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.6rem; /* スマホ用に少し小さく */
    }
}
/* 右下から斜めにじわっと暗くする設定 */
.hero-slider-v3::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top left, rgba(0,0,0,0.5) 0%, transparent 40%);
    z-index: 5; /* 画像(3)より上で、テキスト(10)より下 */
    pointer-events: none;
}
/* --- Certified Header --- */
.certified-header {
    padding-top: 80px;
    padding-bottom: 40px;
}

.certified-title {
    font-size: 2.2rem;
    color: var(--f-dark); /* 「認定商品」の部分の色 */
    letter-spacing: 0.15em;
    position: relative;
    display: inline-block;
    padding-bottom: 0; /* 下線の余白をなくす */
}

/* 下のライン（アンダーライン）を消す設定 */
.certified-title::after {
    display: none; /* これでラインが消えます */
}

/* 文字色の指定 */
.text-blue {
    color: var(--f-blue) !important;
}

.text-pink {
    color: var(--f-pink) !important;
}

/* スマホ版の調整 */
@media (max-width: 767.98px) {
    .certified-title {
        font-size: 1.5rem;
    }
}
/* --- 吹き出しバッジ（大きく修正） --- */
.badge-fukidashi {
    position: relative;
    display: inline-block;
    margin-left: 18px;
    padding: 6px 16px; /* 余白を広げて大きく */
    background-color: var(--f-pink);
    color: #fff !important;
    font-size: 1.2rem; /* 全体のベースサイズをアップ */
    border-radius: 8px; /* 角丸も少し強調 */
    vertical-align: middle;
    top: -8px; /* 文字が大きくなった分、位置を調整 */
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(238, 132, 178, 0.3); /* 存在感を出すために薄く影を追加 */
}

/* 数字「6」をさらに大きく */
.big-num {
    font-size: 1.8rem; /* 他の文字より一回り大きく */
    line-height: 1;
    margin: 0 2px;
    font-family: 'Montserrat', sans-serif; /* 数字をかっこよく */
}

/* 吹き出しの三角（サイズに合わせて調整） */
.badge-fukidashi::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10px;
    transform: translateY(-50%);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--f-pink);
}

/* スマホ版でも「大きく」を維持するための調整 */
@media (max-width: 767.98px) {
    .badge-fukidashi {
        font-size: 1rem;
        padding: 4px 10px;
        top: -4px;
        margin-left: 10px;
    }
    .big-num {
        font-size: 1.4rem;
    }
    .badge-fukidashi::before {
        border-right-width: 8px;
        left: -8px;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    padding: 80px 0 40px;
    background: #000000;
    color: #ffffff;
    text-align: center;
}

.footer-logo img {
    
    opacity: 0.8;
}

.footer-links ul li a {
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-links ul li a:hover {
    color: var(--f-blue) !important;
    opacity: 1 !important;
}

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
}

/* --- Page Top Button (右下固定) --- */
.page-top-btn {
    position: fixed;
    right: 20px;  /* 左から右に変更 */
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* 動きをより滑らかに */
    text-decoration: none;
}

/* ボタンの中のロゴ画像 */
.page-top-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* 表示された時の状態 */
.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
}

/* ホバー時の演出 */
.page-top-btn:hover {
    transform: translateY(-8px); /* 少し多めに浮かす */
    box-shadow: 0 10px 25px rgba(0,171,235,0.4); /* ブランドカラーの影を強調 */
    background: #fff;
}

@media (max-width: 768px) {
    .page-top-btn {
        width: 50px;
        height: 50px;
        right: 15px; /* スマホも右寄りに */
        bottom: 15px;
    }
    .page-top-btn img {
        width: 30px;
        height: 30px;
    }
}