@charset "UTF-8";

/* =========================================
   基本設定 & 共通スタイル
   ========================================= */
html {
    scroll-behavior: smooth; /* なめらかスクロール */
}

body {
    font-family: 'Yomogi', cursive;
    margin: 0;
    background-color: #fff8f0;
    color: #333;
    /* 画面全体の表示倍率（スマホ・PC共通） */
    zoom: 0.9;
}

h1 {
    font-family: 'Yomogi', cursive;
}

.lesson h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 0.1em;
    margin-bottom: 0em;
    color: #000000;
    text-align: left;
}
h3 {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 2em;
    margin-bottom: 0em;
    color: #000000;
    text-align: center;
}

h4 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 3em;
    margin-bottom: 0em;
    color: #000000;
    text-align: center;
}

h5 {
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 3em;
    margin-bottom: 0em;
    color: #000000;
    text-align: center;
}

.hidden {
    display: none;
}

/* =========================================
   ヘッダー・ナビゲーション
   ========================================= */
header {
    background-color: #f4c2c2;
    padding: 1em;
    text-align: center;
    position: relative; /* ハンバーガーメニューの基準位置 */
    z-index: 100;
}

.FLOWERSTUDIO-img {
    width: 270px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.Misia-img {
    width: 260px;
    height: auto;
    display: block;
    margin: 0 auto;
}

nav a {
    margin: 0 1em;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* ハンバーガーメニューボタン (PCでは非表示) */
.hamburger-btn {
    display: none;
}

/* =========================================
   カテゴリナビゲーション
   ========================================= */

/* コンテナ：ボタンを包む枠 */
.category-nav-container {
    padding: 0px 0px;
    text-align: center;
    background-color: #fff8f0; 
}

/* 連絡先エリア */
.contact-info {
    margin-bottom: 20px;
    font-size: 1.4rem;
    line-height: 1.8;
}
.contact-item {
    display: inline-block;
    margin: 0 10px;
}

/* カテゴリボタンの並び制御 */
.category-links {
    display: flex;
    flex-wrap: wrap; /* 画面端で折り返す設定 */
    justify-content: center; /* 真ん中寄せ */
    gap: 12px; /* ボタン同士の隙間 */
    margin-top: 10px;
}

/* ボタン個別のデザイン */
.cat-btn {
    background: #fce8cc;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
}

/* ホバー時の動き（PC用） */
.cat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    background: #fbdbb3;
}

/* スマホ用の微調整 */
@media screen and (max-width: 600px) {
    .category-links {
        gap: 8px; /* スマホでは隙間を少し狭く */
    }
    .cat-btn {
        padding: 8px 15px; /* ボタンを少しコンパクトに */
        font-size: 0.85rem; /* 文字サイズを調整 */
        width: calc(50% - 10px); /* 2列に並ぶように調整（お好みで削除可） */
        box-sizing: border-box;
    }
    /* "今月のおすすめ"など文字数が多いものは1行にする */
    .cat-btn:first-child { 
        width: 100%; 
        max-width: 300px;
    } 
}

/* =========================================
   ヒーローセクション (スライダー)
   ========================================= */
.hero {
    position: relative;
    /* CSSファイルからのパスになるため ../ を追加しています */
    background-image: url('../images/Decoration/hero-background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #ffffff;
    padding: 60px 20px;
    min-height: 400px;
    color: #333;
    overflow: hidden;
    text-align: center;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    background: #fce6e6;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}

.hero-img {
    /* スライダーデザインのため元の画像は非表示 */
    display: none;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 30px 40px 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slide h2 {
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.4;
}

.slide p {
    margin: 5px 0;
    line-height: 1.6;
    font-size: 1.1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ページネーション（丸い点） */
.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: #bbbbbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ffffff;
    border: 1px solid #ddd;
}

/* スライダー矢印ボタン */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: #555;
    font-size: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.8);
    opacity: 1;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

/* インスタ・LINEリンクボタン */
.insta-section {
    margin-top: 15px;
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.insta-section img {
    width: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.insta-section a {
    color: #333;
    font-size: 16px;
    text-decoration: none;
    font-weight: bold;
}

/* 花の装飾 (Decoration) */
.flower-deco {
    position: absolute;
    width: 60px;
    opacity: 0.7;
    z-index: 0;
}

/* =========================================
   商品リスト・スクロール
   ========================================= */
.featured {
    padding: 0em;
    text-align: center;
}

.product {
    display: inline-block;
    margin: 20px;
    text-align: center;
    /* 元のstyle.cssの設定を維持しつつ調整 */
    padding: 1em;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    min-width: 250px;
    flex-shrink: 0;
}

.product img {
    width: 180px;
    height: auto;
}

.product a {
    text-decoration: none;
    outline: none;
    display: inline-block;
    cursor: zoom-in;
}

/* スクロールエリア */
.scroll-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.product-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1px;
    padding: 10px 40px;
    scroll-behavior: smooth;
}

/* スクロールバー装飾 */
.product-scroll::-webkit-scrollbar {
    height: 8px;
}

.product-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.product-scroll::-webkit-scrollbar-thumb {
    background: rgba(244, 154, 154, 0.6);
    border-radius: 10px;
}

.product-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 100, 100, 0.9);
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #f8cfcf;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 10;
    opacity: 0.4;
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn.right {
    right: 0;
}

.scroll-btn:hover {
    opacity: 1;
}

/* =========================================
   その他コンポーネント
   ========================================= */
button {
    margin-top: 10px;
    padding: 0.5em 1.5em;
    background-color: #ff69b4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.remove-btn {
    background: #ccc;
    color: black;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
    margin-top: 1em;
}

footer {
    background-color: #f4c2c2;
    text-align: center;
    padding: 1em;
    margin-top: 3em;
}

/* Fancybox キャプション */
.fancybox__caption {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

/* =========================================
   レスポンシブ (スマホ対応ナビゲーション)
   ========================================= */
@media screen and (max-width: 768px) {
    /* --- ハンバーガーボタンのデザイン --- */
    .hamburger-btn {
        display: block; /* スマホでは表示 */
        position: absolute;
        top: 15px;
        right: 15px; /* 画面端からの距離 */
        width: 54px; /* ボタンの幅（少し広めに確保） */
        height: 50px;
        background-color: rgba(255, 255, 255, 0.7); /* 背景を半透明の白に */
        border: 1px solid #fff;
        border-radius: 8px;
        cursor: pointer;
        z-index: 2000; /* 最前面に配置 */
        padding: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* ボタンの中の3本線 */
    .hamburger-btn span {
        display: block;
        width: 30px; /* 線の長さを調整（ボタン幅より小さくして中央へ） */
        height: 3px;
        background-color: #555;
        position: absolute;
        left: 0;
        right: 0;
        margin: auto; /* これで中央寄せになります */
        transition: all 0.3s;
        border-radius: 2px;
    }

    /* 3本線の位置調整 */
    .hamburger-btn span:nth-child(1) { top: 14px; }
    .hamburger-btn span:nth-child(2) { top: 23px; }
    .hamburger-btn span:nth-child(3) { top: 32px; }

    /* 開いた時のバツ印アニメーション */
    .hamburger-btn.active span:nth-child(1) {
        top: 23px;
        transform: rotate(45deg);
    }
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-btn.active span:nth-child(3) {
        top: 23px;
        transform: rotate(-45deg);
    }

    /* --- ナビゲーションメニュー (普段は隠す) --- */
    nav {
        display: none; /* 初期状態は非表示 */
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: absolute;
        top: 100%; /* ヘッダーの真下に出す */
        left: 0;
        background-color: #fff0f5; /* メニューの背景色 */
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        z-index: 1500;
        border-top: 2px solid #fff;
    }

    /* ボタンを押した時（activeクラスがついた時）に表示 */
    nav.active {
        display: flex;
        animation: menuSlideDown 0.3s ease forwards;
    }

    nav a {
        display: block;
        margin: 15px 0;
        font-size: 18px;
        width: 80%;
        text-align: center;
        border-bottom: 1px dotted #ccc;
        padding-bottom: 10px;
    }
    
    nav a:last-child {
        border-bottom: none;
    }
}

/* メニューが上からスッと降りてくるアニメーション */
@keyframes menuSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* スライダー用のスマホ調整（さらに小さい画面用） */
@media screen and (max-width: 600px) {
    body { zoom: 0.9; }
    .hero { padding: 40px 10px; }
    .hero-content { width: 95%; }
    .slide { padding: 20px 15px 50px 15px; }
    .slide h2 { font-size: 1.3rem; }
    .slide p { font-size: 0.95rem; }
    .slider-arrow { width: 30px; height: 30px; font-size: 18px; }
    .slider-arrow.prev { left: 5px; }
    .slider-arrow.next { right: 5px; }
    .fancybox__caption { font-size: 0.9rem; padding: 10px; }
    
    .category-links { gap: 8px; }
    .cat-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
        width: calc(50% - 10px);
        box-sizing: border-box;
    }
    .cat-btn:first-child { width: 100%; max-width: 300px; } 
}