@charset "utf-8";

/* =========================================
   01. 変数・基本設定
   ========================================= */
:root {
    --qualia-blue: #00b9f1;        /* メインの水色 */
    --qualia-blue-strong: #1c8fd0; /* view more ボタンなどの濃い青 */
    --qualia-blue-border: #1f8fce; /* 商品枠の青 */
    --qualia-footer-blue: #4397d3; /* フッター背景 */
    --qualia-yellow: #fbff01;      /* NEWバッジ */
    --grid-line: #f0f0f0;          /* 方眼紙の線色 */
    --text-color-main: #125488;
}

/* --- Bootstrap上書き・汎用クラス --- */

/* バッジ (bg-warning) */
.badge.bg-warning {
    background-color: var(--qualia-yellow) !important;
    color: #333333 !important;
    font-weight: bold;
}

/* テキストカラー (text-primary) */
.text-primary {
    color: #00b9fa !important;
}

/* ボタン (btn-primary) */
.btn-primary {
    background-color: #00b9fa;
    border-color: #00b9fa;
}
.btn-primary:hover {
    background-color: #009acc;
    border-color: #009acc;
}

/* =========================================
   02. ベース
   ========================================= */
body {
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: var(--text-color-main);
    background-image: url('../images/bg.png');
    background-position: center right;
    background-repeat: no-repeat;
    background-color: #125488;
    
    /* 背景固定 */
    background-attachment: fixed;

    /* フォントの滑らか設定 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* リンク共通 */
a {
    color: var(--qualia-blue);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.7;
    color: var(--qualia-blue);
}

/* ロゴ画像サイズ */
.logo {
    width: 200px;
    height: auto;
}
/* ロゴ用h1リセット */
h1.logo-h1 { margin: 0; padding: 0; line-height: 1; }
h1.logo-h1 a, h1.logo-h1 img { display: inline-block; }

.sidebar-content {
    background-color: #00b9f1;
    
    /* ★重要: 残りの高さをすべて埋める */
    flex: 1;
    
    /* 横幅いっぱいにする */
    width: 100%;
    
    /* もともとサイドバーにあった余白をここに移動 */
    padding: 20px;
    padding-top: 30px; /* 上に少し余裕を持たせる */
    
    /* 中身の配置 */
    display: flex;
    flex-direction: column;
    /* justify-content: space-between; */ /* ←もし中身を上下に分散させたい場合はコメントアウトを外す */
}

/* =========================================
   03. 方眼背景（サイドバー / オフキャンバス共通）
   ========================================= */
.sidebar,
.offcanvas-body {  
    background-color: #ffffff;
    /*background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;*/
}

/* =========================================
   04. サイドバー（PC）とレイアウト
   ========================================= */

/* ベースのサイドバー */
.sidebar {
    text-align: center;
    color: var(--qualia-blue);
    
    /* ★変更点: 余白を0にする */
    padding: 0 !important;
    
    /* ★変更点: 高さいっぱいに固定 */
    height: 100vh !important; 
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px !important;
    z-index: 100;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;

    /* ★重要: 中身を縦に並べて伸ばす設定 */
    display: flex !important;
    flex-direction: column !important;
}

/* PCレイアウト：992px以上でサイドバー固定 */
@media (min-width: 992px) {
    .sidebar {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px !important;
        z-index: 100;
        overflow-y: auto;
        height: 100vh !important;
    }

    .main-content-area {
        margin-left: 300px !important;   /* サイドバー幅の分ずらす */
        width: auto !important;
        max-width: none !important;
        flex: none !important;
        background: none !important;
        transform: none !important;
        min-height: 100vh;
    }

    /* PCでは sp ハンバーガーは非表示 */
    .sp-fixed-btn,
    .navbar-toggler {
        display: none !important;
    }
}

/* 991px以下：スマホ／タブレットレイアウト */
@media (max-width: 991.98px) {

    /* サイドバーは完全非表示（オフキャンバスのみ使用） */
    .sidebar {
        display: none !important;
    }

    /* ハンバーガー表示 */
    .sp-fixed-btn,
    .navbar-toggler {
        display: block !important;
    }

    .sp-fixed-btn {
        position: fixed !important;
        top: 15px !important;
        right: 15px !important;
        z-index: 9999 !important;
    }

    .main-content-area {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: none !important;
        min-height: 100vh;
    }
}

/* =========================================
   05. ナビゲーション・メニュー
   ========================================= */
.nav-link {
    position: relative;
    display: inline-block;
    text-decoration: none;
    border-bottom: none !important;

    color: #fff !important;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 0.05em;

    padding-bottom: 5px;
    margin-bottom: 7px;
    padding-left: 0;
    padding-right: 0;
}

/* ホバー時の下線アニメーション */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #fff !important;
    opacity: 1;
}

/* マイページ・カートアイコン */
.user-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;  
}

.icon-btn img {
  width: 40px;
  height: auto;
}

/* =========================================
   カートの数字バッジ設定
   ========================================= */

/* アイコンボタンを基準位置にする */
.icon-btn {
    position: relative;
}

/* 数字の丸 */
.cart-badge {
    position: absolute;
    top: -2px;              /* アイコンの少し上 */
    right: -2px;            /* アイコンの少し右 */
    
    width: 20px;            /* 丸の幅 */
    height: 20px;           /* 丸の高さ */
    border-radius: 50%;     /* 完全な丸にする */
    
    background-color: #fbff01; /* 黄色 */
    color: #125488;            /* 数字の色（青） */
    
    font-size: 11px;        /* 文字サイズ */
    font-weight: bold;      /* 太字 */
    
    /* 数字を丸のど真ん中に配置 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    box-shadow: 0 1px 3px rgba(0,0,0,0.2); /* 軽く影をつける */
    z-index: 10;            /* 手前に表示 */
}


/* =========================================
   06. 検索ボックス
   ========================================= */
.search-box-wrapper form {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);

    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #b0b0b0;

    padding: 0 50px 0 20px;

    outline: none;
    appearance: none;

    margin-bottom: 20px;
}

.search-input::placeholder {
    color: #d8d8d8;
    opacity: 1;
}

.search-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-90%);

    background: none;
    border: none;
    padding: 0;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn svg {
    width: 22px;
    height: 22px;
    fill: #b0b0b0;
    transition: fill 0.3s;
}

/* =========================================
   07. サイドバー内 パーツ
   ========================================= */
.sidebar-divider {
    width: 60px;
    height: 1px;
    background-color: #fff;
    margin: 0 auto 30px;
}

/* SNSアイコン */
.sns-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

/* 背景を透明にし、ボーダーを削除 */
.sns-btn {
    width: 40px;
    height: 40px;
    background-color: transparent;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 1.2rem;
    border: none;
}

/* SNSアイコンの画像自体を白くフィルター加工 */
.sns-btn img {
    filter: brightness(0) invert(1);
}

/* にっこりーの ロゴ */
.niccorinologo img {
    width: 120px;
    height: auto;
}

/* Qualia 公式サイトボタン（白背景・水色文字） */
.official-link-btn {
    background-color: #ffffff;
    color: var(--qualia-blue) !important;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: bold;
    display: block;
    margin: 10px auto;
    max-width: 220px;
    box-shadow: 0 4px 10px rgba(0, 160, 233, 0.3);
}

/* サイドバー内フッター */
.side-footer {
    font-size: 0.75rem;
    line-height: 1.8;
    margin-top: 15px;
    color: #ffffff !important;
}

.side-footer a {
    display: block;
    color: #ffffff !important;
}

/* コピーライト部分（少し透明度あり） */
.side-footer .footer-copy {
    display: block;
    margin-top: 25px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: normal;
}

/* =========================================
   08. ハンバーガー（SP用）
   ========================================= */

/* ベースは PC では display:none を 992px以上で指定済み */

/* 991px以下での見た目 */
@media (max-width: 991.98px) {

    .navbar-toggler {
        background-color: #21a5dd !important;
        border-radius: 50% !important;
        width: 56px !important;
        height: 56px !important;
        padding: 0 !important;
        border: none !important;
        opacity: 1 !important;

        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .hamburger-icon {
        width: 32px;
        height: 24px;
        position: relative;
    }

    .hamburger-icon span {
        display: block;
        position: absolute;
        left: 0;
        width: 100%;
        height: 4px;
        background-color: #ffffff !important;
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }

    .hamburger-icon span:nth-child(1) { top: 0; }
    .hamburger-icon span:nth-child(2) { top: 10px; }
    .hamburger-icon span:nth-child(3) { top: 20px; }

    /* 開閉アニメーション（×に変化） */
    .navbar-toggler.is-active .hamburger-icon span:nth-child(1) {
        top: 10px;
        transform: rotate(45deg);
    }
    .navbar-toggler.is-active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .navbar-toggler.is-active .hamburger-icon span:nth-child(3) {
        top: 10px;
        transform: rotate(-45deg);
    }
}

/* =========================================
   09. ループテキスト（上部メッセージ）
   ========================================= */
.loop-slider-wrapper {
    margin-top: 10px;
    background-color: #ffffff;
    border-bottom: 2px solid #eeeeee;
    padding: 5px 0;
    width: 100%;
    /*overflow: hidden;*/
}

.loop-text {
    display: flex;
    width: fit-content;
    white-space: nowrap;
    animation: loopText 20s linear infinite;
}

.loop-text span {
    display: inline-block;
    padding-right: 40px;
    font-size: 0.8rem;
    color: #aaaaaa;
    font-weight: bold;
    white-space: nowrap;
}

@keyframes loopText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   10. SP用ロゴエリア・オフキャンバス
   ========================================= */

/* スマホ用トップロゴ（スクロールと一緒に流れる） */
.sp-logo-area {
    background-color: #ffffff !important;
    background-image: none !important;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

/* オフキャンバスメニュー */
.offcanvas {
    max-width: 85%;
}

.offcanvas-header {
    display: none;
}

/* =========================================
   11. メインコンテンツ白箱
   ========================================= */
.main-content-area {
    min-height: 100vh;
}

/* 白いコンテンツボックス */
.content-wrapper {
    background-color: #ffffff;
    width: 100%;
    min-height: 100vh;
    box-shadow: none !important;
}

/* 992px以上で白箱幅を制限（PC・タブレット共通） */
@media (min-width: 992px) {
    .content-wrapper {
        max-width: 560px;
    }
}

/* =========================================
   12. 「商品一覧」タイトル（波線）
   ========================================= */
.wave-title {
  display: inline-block;
  width: 90%;
  max-width: 300px;
  position: relative;

  color: #0095d9;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.05em;
  text-align: center;

  padding: 20px 20px;
  margin: 0 auto;
}

.wave-title::before,
.wave-title::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 13px;
    background-image: url('../images/wavy_line.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% auto;
}

.wave-title::before {
    top: 0;
}

.wave-title::after {
    bottom: 0;
}

/* SPで少し小さく */
@media (max-width: 575.98px) {
    .wave-title {
        font-size: 28px;
        max-width: 240px;
    }
}

/* =========================================
   13. 商品カード
   ========================================= */

/* カード外枠は透明 */
.card.product-card {
    border: none !important;
    background-color: transparent;
    box-shadow: none !important;
}

/* 画像枠 */
.card-img-wrapper {
    width: 100%;
    aspect-ratio: 7 / 6;
    border: 5px solid var(--qualia-blue-border);
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    position: relative;
    margin-bottom: 10px;
}

/* 画像本体 */
.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 商品情報エリア */
.card-body {
  padding: 0 !important;
  text-align: left;
  color: #125488;
}

/* タイトル */
.card-title {
    font-size: 0.9rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 5px;
    min-height: auto;
}

/* NEW バッジ */
.badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 50px;
    margin-bottom: 5px;
    display: inline-block;
}

/* 在庫なしバッジ */
.badge-soldout {
    background-color: #b0b0b0 !important;
    color: #ffffff !important;
    
    font-weight: bold;
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    border-radius: 50px;
    margin-bottom: 5px;
    display: inline-block;
}

/* SPでのカード比率微調整 */
@media (max-width: 991.98px) {
    .card-img-wrapper {
        aspect-ratio: 6 / 5;
        border-width: 4px;
    }
}

/* =========================================
   14. 「view more」ボタン
   ========================================= */
.btn-view-more {
    display: inline-block;
    position: relative;

    background-color: var(--qualia-blue-strong);
    color: #ffffff;
    border: 3px solid var(--qualia-blue-strong);
    border-right: none;
    border-radius: 5px 0 0 5px;

    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-align: center;
    line-height: 1;

    padding: 5px 30px 5px 15px;
    margin-right: 20px;

    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

/* 右側の矢印部分 */
.btn-view-more::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -13px;

    width: 24px;
    height: 24px;
    transform: translateY(-50%) rotate(45deg);

    background-color: inherit;
    border-top: 3px solid var(--qualia-blue-strong);
    border-right: 3px solid var(--qualia-blue-strong);
    border-top-right-radius: 5px;

    transition: all 0.3s ease;
    z-index: -1;
}

/* ホバー時 */
.btn-view-more:hover {
    background-color: #ffffff;
    color: var(--qualia-blue-strong);
    border-color: var(--qualia-blue-strong);
}

.btn-view-more:hover::after {
    background-color: #ffffff;
    border-color: var(--qualia-blue-strong);
}

/* SPで右のはみ出しを抑える */
@media (max-width: 575.98px) {
    .btn-view-more {
        margin-right: 0;
    }
}

/* =========================================
   15. フッター
   ========================================= */
.custom-footer {
    background-color: var(--qualia-footer-blue);
    color: #ffffff;
    text-align: center;

    margin-left: -1.5rem;
    margin-right: -1.5rem;
    margin-bottom: -1.5rem;

    padding-top: 30px;
    padding-bottom: 20px;
}

/* スマホで横余白調整 */
@media (max-width: 575.98px) {
    .custom-footer {
        margin: 0 -15px;
        padding: 25px 15px;
    }
}

/* 薄い区切り線 */
.footer-line {
    width: 85%;
    max-width: 400px;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto 25px;
}

/* 住所 */
.footer-address p {
    margin-bottom: 5px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-address p a {
    color: #ffffff;
}

/* コピーライト（メインフッター） */
.footer-copy {
    display: block;
    margin-top: 25px;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: normal;
}

/* フッター内の地図リンクの色リセット */
.footer-map-link {
    color: inherit;
    text-decoration: none;
}
.footer-map-link:hover {
    color: inherit;
    opacity: 0.7;
}

.logo {
    max-width: 180px;
}

/* =========================================
   16. スクロール連動フェードイン
   ========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
.fade-in.delay-4 { transition-delay: 0.4s; }

/* =========================================
   【重要】画像比率固定ルール (photo-ofi)
   ========================================= */
.photo-ofi {
    height: 0;
    display: block;
    background-color: #EFEFEF;
    overflow: hidden;
    position: relative;
    padding-bottom: 75%;    
    width: 100%;
    border-radius: 12px;
}

.photo-ofi img {
    max-width: inherit;
    max-height: inherit;
    width: 100%;
    height: 100%;    
    object-fit: contain;    
    font-family: 'object-fit: contain;';
    position: absolute;
    left: 0;
    top: 0;
}


/*=========================================
  商品一覧ページ等 (Category Page)
=========================================*/
/* パンくずリスト */
.breadcrumb-item a { color: #00b9fa; text-decoration: none; font-weight: bold; }
.breadcrumb-item.active { color: #666; font-weight: bold; }
.breadcrumb-item + .breadcrumb-item::before { content: ">"; color: #ccc; }

/* カテゴリー一覧ボタン */
.btn-custom-cat {
    border: 2px solid #00b9fa;
    color: #00b9fa;
    background: #fff;
    border-radius: 50px;
    padding: 8px 24px;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin: 5px;
}
.btn-custom-cat:hover,
.btn-custom-cat.active {
    background: #00b9fa;
    color: #fff;
}

/* 画面サイズが767px以下の場合に適用 */
@media only screen and (max-width: 767px) {
  .btn-custom-cat {
    padding: 4px 12px;
    margin: 2px;
  }
}


/* カテゴリーページ用タイトル */
.current-cat-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color-main);
    display: inline-block;
    position: relative;
    margin-bottom: 0;
}
.current-cat-title::after {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    background-color: #00b9fa;
    border-radius: 5px;
    margin-top: 5px;
}

/* ページネーション */
.pagination .page-link {
    color: #00b9fa;
    border: none;
    background: transparent;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0 5px;
    border-radius: 5px;
}
.pagination .page-item.active .page-link {
    background-color: #00b9fa;
    color: #fff;
}
.pagination .page-link:hover {
    background-color: #e0f7ff;
    color: #0095ce;
}

/* =========================================
   ★商品詳細ページ用（縦並びレイアウト最適化版）
   ========================================= */

/* 1. タイトルエリア */
.product-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    color: #125488;
}

/* 2. メイン画像ラッパー */
.main-image-wrapper {
    width: 100%;
    border: 2px solid #eee;
    background-color: #fff;
}
/* 3. サブ画像（横スクロール） */
.sub-images-scroll {
    display: grid; 
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.sub-img-item {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    opacity: 0.7;
    transition: all 0.2s ease;
    background-color: #fff;
}

.sub-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-img-item.active,
.sub-img-item:hover {
    border-color: #00b9fa;
    opacity: 1;
}

/* 4. 価格エリア */
.product-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: #00b9fa;
}

/* 5. フォーム要素（プルダウン） */
.custom-select {
    border-radius: 25px;
    padding: 10px 15px;
    border: 2px solid #eee;
    font-weight: bold;
    color: #555;
    background-color: #f9f9f9;
}
.custom-select:focus {
    border-color: var(--qualia-blue);
    box-shadow: none;
    background-color: #fff;
}

/* 6. カートボタン */
.btn-add-cart {
    width: 100%;
    background-color: #00b9fa;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 185, 241, 0.3);
}
.btn-add-cart:hover {
    background-color: #0095ce;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 185, 241, 0.4);
    color: #fff;
}

/* 7. シェアボタン */
.product-share .share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #fff;
    transition: opacity 0.3s ease;
    text-decoration: none;
}
.share-btn:hover { opacity: 0.8; color: #fff; }

.share-x    { background-color: #000; }
.share-line { background-color: #06c755; }
.share-fb   { background-color: #1877f2; }

/* 8. 商品説明テキスト */
.product-html-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #444;
}
.product-html-text p {
    margin-bottom: 1em;
}

/* 9. YouTube（レスポンシブ） */
.youtube-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 10. その他の画像（グリッド表示） */
.extra-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
.extra-images-grid img {
    border-radius: 10px;
}

/* 11. 戻るボタン */
.btn-back {
    display: inline-block;
    border: 2px solid #ccc;
    background-color: #fff;
    color: #666;
    font-weight: 800;
    padding: 10px 40px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-back:hover {
    border-color: #999;
    color: #333;
    background-color: #f9f9f9;
}

/* 売り切れメッセージの装飾 */
.soldout-message-area {
    margin-top: 30px;
}
.soldout-message-area .border {
    border-color: #ddd !important;
    background-color: #f5f5f5 !important;
}
.soldout-message-area p {
    font-size: 1rem;
    line-height: 1.8;
    color: #888 !important;
}



/* =========================================
   お知らせ一覧 (news.html)
   ========================================= */
.news-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    color: #125488;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.news-item:hover {
    background-color: #f9fbff;
    opacity: 1; 
}

/* メタ情報（日付とバッジの行） */
.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
}

/* 日付 */
.news-date {
    font-weight: 700;
    color: #ccc;
    font-family: sans-serif;
    font-size: 0.95rem;
    margin-right: 5px;
}

/* タイトル */
.news-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    width: 100%;
}
.news-item:hover .news-title {
    color: #00b9fa;
}

/* バッジの共通設定 */
.news-item .badge {
    font-weight: 600;
    padding: 0.5em 1em;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    background-color: #00b9fa !important;
    color: #fff !important;
}
.news-item .badge.bg-warning {
    background-color: #fbff01 !important;
    color: #333 !important;
}


/* =========================================
   お知らせ詳細 (detail2.html)
   ========================================= */

/* --- サブ画像グリッド --- */
.news-sub-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}
.news-sub-img {
    cursor: pointer;
    transition: opacity 0.3s;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}
.news-sub-img:hover {
    opacity: 0.8;
    border-color: #00b9fa;
}

@media (max-width: 575.98px) {
    .news-sub-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- 添付ファイルリスト --- */
.news-file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.file-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
.file-item:hover {
    background-color: #eef6fc;
    border-color: #00b9fa;
    color: #00b9fa;
}
.file-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border: 1px solid #eee;
    color: #00b9fa;
}
.file-info {
    flex-grow: 1;
}
.file-name {
    font-weight: bold;
    display: block;
    line-height: 1.4;
}
.file-size {
    font-size: 0.8rem;
    color: #888;
}

/* --- 拡大モーダル用 --- */
.modal-img-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================
   ガイドページ
   ========================================= */
.guide-section { margin-bottom: 50px; }
.guide-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #125488;
  border-bottom: 2px solid #00b9fa;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.guide-table th {
  background-color: #f0f8ff;
  color: #125488;
  font-weight: 700;
  width: 30%;
  vertical-align: middle;
}
.guide-table td { vertical-align: middle; }

/* 送料テーブルの文字サイズ調整 */
.shipping-rate-table th, .shipping-rate-table td {
  padding: 8px 12px;
  font-size: 0.95rem;
}

/* =========================================
   お問い合わせフォーム (contact.html)
   ========================================= */

/* テーブル設定 */
.contact-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 2rem;
    border: 1px solid #ddd;
}

.contact-table th,
.contact-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    display: block; /* 縦並び */
    width: 100%;
    box-sizing: border-box;
}

.contact-table th {
    background-color: #f0f0f0;
    font-weight: bold;
    border-bottom: none;
}

.contact-table td {
    background-color: #fff;
    padding-bottom: 20px;
}

/* 必須マーク */
.required-mark {
    color: #ff0000;
    font-size: 0.9em;
    margin-left: 5px;
    font-weight: bold;
}

/* プライバシーポリシーのスクロール枠 */
.privacy-box {
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    padding: 15px;
    background-color: #fff;
    font-size: 0.9rem;
}

/* 確認画面用ボタン（入力画面では非表示） */
.confirm-only {
    display: none;
}

/* フォーム調整 */
.p-country-name { display: none; } /* 国名フィールド（非表示） */

.input-zip {
    width: 200px;
    max-width: 100%;
}

.select-pref {
    max-width: 300px;
    width: 100%;
}

/* 確認画面へ進むボタン */
.btn-confirm {
    background-color: #0088cc;
    border: none;
    min-width: 300px;
    color: #fff;
    transition: background-color 0.3s;
}

.btn-confirm:hover {
    background-color: #006ca3;
    color: #fff;
}