@charset "UTF-8";

/* ==========================================================================
   1. Variables & Base Settings
   ========================================================================== */
:root {
  --base-font: "Noto Sans JP", sans-serif;
  --main-blue: #5e7fbb;
  --light-blue: #cedaf4;
  --accent-yellow: #ffea00;
  --text-color: #333;
  --border-color: #eee;
  --max-width: 1320px;
}

html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  color: var(--text-color);
  font-family: var(--base-font);
  font-size: 1.6rem;
  line-height: 1.5;
  margin: 0;
  padding-top: 190px;
}

.imgmax { width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
a:hover { opacity: 0.7; }

.header-inner {
  max-width: var(--max-width);
  width: calc(100% - 40px);
  margin-inline: auto;
  display: flex;
  align-items: center;
}
.center_tit{
    text-align: center;
}
/* ==========================================================================
   2. Main Header
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* --- 1段目：ロゴセンターエリア --- */
.header-top {
  padding: 12px 0; /* 上下を少し詰めました */
  border-bottom: 1px solid var(--border-color);
}

.header-top .header-inner {
  display: grid;
  /* 左右を少し広げ(1.2fr)、中央(1fr)をコンパクトに固定 */
  grid-template-columns: 1.2fr 1fr 1.2fr; 
  align-items: center;
}

/* 左：メニュー */
.header-left { display: flex; justify-content: flex-start; }
.header-menu-trigger { text-align: center; cursor: pointer; }
.menu-icon span {
  display: block; width: 26px; height: 1px; background: var(--text-color); margin: 5px auto;
}
.menu-label { font-size: 0.9rem; font-weight: bold; }

/* 既存のメニュートリガーにホバー効果追加 */
.header-menu-trigger {
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.header-menu-trigger:hover {
  opacity: 0.7;
}

.header-menu-trigger:hover .menu-icon span {
  background: #4a7ba7;
}

/* メニューがアクティブの時のアイコンアニメーション */
.header-menu-trigger.active .menu-icon span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
  transition: transform 0.3s ease;
}

.header-menu-trigger.active .menu-icon span:nth-child(2) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-menu-trigger.active .menu-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
  transition: transform 0.3s ease;
}

.menu-icon span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--text-color);
  margin: 5px auto;
  transition: all 0.3s ease;
}

/* サイドメニュー本体 */
.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

.side-menu.active {
  pointer-events: auto;
}

/* オーバーレイ（背景の暗い部分） */
.side-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.side-menu.active .side-menu-overlay {
  opacity: 1;
}

/* メニューコンテンツ */
.side-menu-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.side-menu.active .side-menu-content {
  transform: translateX(0);
}

/* 閉じるボタン */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 36px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 50%;
  z-index: 10;
}

.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

/* メニューヘッダー */
.menu-header {
  padding: 25px 20px 20px;
  border-bottom: 2px solid #e0e0e0;
  background: linear-gradient(135deg, #4a7ba7 0%, #5a8bb7 100%);
}

.menu-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* メニューリスト */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}

.menu-list li {
  border-bottom: 1px solid #f0f0f0;
}

.menu-list li.divider {
  height: 10px;
  background-color: #f8f8f8;
  border: none;
  margin: 5px 0;
}

.menu-list li.menu-category {
  padding: 14px 20px 10px;
  color: #999;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #fafafa;
  border-bottom: none;
}

.menu-list a {
  display: block;
  padding: 16px 20px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}

.menu-list a:hover {
  background-color: #f5f8fa;
  color: #4a7ba7;
  padding-left: 25px;
}

.menu-list a::after {
  content: '›';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #ccc;
  transition: all 0.2s ease;
}

.menu-list a:hover::after {
  color: #4a7ba7;
  right: 15px;
}

/* スクロールバーのスタイル */
.side-menu-content::-webkit-scrollbar {
  width: 6px;
}

.side-menu-content::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.side-menu-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.side-menu-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* body固定（メニューを開いた時にスクロールを防ぐ） */
body.menu-open {
  overflow: hidden;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .side-menu-content {
    width: 280px;
  }
  
  .menu-header h2 {
    font-size: 18px;
  }
  
  .menu-list a {
    font-size: 14px;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .side-menu-content {
    width: 100%;
    max-width: 90vw;
  }
}



/* 中央：ロゴエリア (サイズダウン) */
.head__logoarea { text-align: center; }
#logo { 
  max-width: 280px; /* 344pxから280pxへ。上品なサイズ感に */
  margin: 0 auto; 
}
.head__fcp {
  font-size: 1.0rem; /* 1.1から少し下げました */
  color: #888;
  margin-top: 4px;
  font-weight: normal;
  white-space: nowrap;
}

/* 右：ナビ (アイコンサイズダウン・gapなし) */
.header-right { display: flex; justify-content: flex-end; }
.header-user-nav { 
  display: flex; 
  gap: 0; /* ご要望通りgapなし */
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px; /* gapの代わりにアイテム自体の幅で調整 */
  white-space: nowrap;
}

.nav-item i {
  font-size: 2.2rem; /* 2.8から2.2へ。ほどよい存在感に */
  margin-bottom: 2px;
}

.nav-item span {
  font-size: 1.0rem;
  font-weight: bold;
  transform: scale(0.9); /* 文字も少し小さくしてアイコンと合わせる */
}

/* --- 2段目：カテゴリナビセンター --- */
.header-bottom {
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
}

.header-bottom .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.category-nav { grid-column: 2; }
.category-list {
  display: flex;
  list-style: none;
  gap: 35px;
  margin: 0; padding: 0;
}
.category-list li a {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-search {
  grid-column: 3; justify-self: end;
  display: flex; background: #f4f4f4; padding: 6px 12px; border-radius: 4px; width: 220px;
}
.header-search input { border: none; background: transparent; outline: none; flex: 1; font-size: 1.2rem; }
.header-search button { border: none; background: transparent; cursor: pointer; color: #888; }

/* --- 3段目：インフォメーション & お知らせ --- */
.header-info-bar { background: var(--main-blue); color: #fff; padding: 6px 0; }
.header-info-bar .header-inner { justify-content: center; gap: 40px; font-size: 1.3rem; font-weight: bold; }
.info-item span { color: var(--accent-yellow); margin-left: 5px; }

.header-notice-bar { background: var(--light-blue); text-align: center; padding: 5px 0; }
.header-notice-bar a { font-size: 1.2rem; color: #4267b2; font-weight: bold; }

/* ==========================================================================
   3. Responsive
   ========================================================================== */
@media (max-width: 768px) {
  body { padding-top: 130px; }
  .head__fcp, .header-bottom, .nav-item span { display: none; }
  .header-top .header-inner { grid-template-columns: 1fr 1.5fr 1fr; }
  #logo { max-width: 160px; }
}




/* お知らせバー全体の箱 */
.header-notice-bar {
  background: var(--light-blue);
  height: 35px; /* 高さを固定 */
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* 各お知らせアイテム */
.notice-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #4267b2;
  font-weight: bold;
  text-decoration: none;
  
  /* 初期状態は透明 */
  opacity: 0;
  animation: noticeFadeLoop 12s infinite; /* 12秒で1サイクル */
}

/* 3記事ある場合のタイミングずらし */
.notice-item:nth-child(1) { animation-delay: 0s; }
.notice-item:nth-child(2) { animation-delay: 4s; }
.notice-item:nth-child(3) { animation-delay: 8s; }

/* ふわっと入れ替わるアニメーション設定 */
@keyframes noticeFadeLoop {
  0% { opacity: 0; transform: translateY(5px); }
  5% { opacity: 1; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(0); }
  35% { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 0; }
}

/* ホバー時に動きを止める（ユーザーが読みやすくするため） */
.notice-slider:hover .notice-item {
  animation-play-state: paused;
}




/* --- 枠組み：ご提示いただいた設定 --- */
.basic__area.-middle {
    max-width: 1120px;
    max-width: min(calc(100% - 40px), 1120px);
    margin-inline: auto;
    /* バナーとして見せるための背景と余白を追加 */
    background-color: #f0f4f9; 
    padding: 60px 20px;
    text-align: center;
    border-radius: 4px; /* ほんの少し角を丸めると画像に近くなります */
}

/* --- 中身のデザイン調整 --- */
.search-banner__catch {
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
}

.search-banner__text {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* ボタン：1120pxの枠内で、画像のような程よいサイズ感に */
.search-modal-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--main-blue); /* #5e7fbb */
    color: #fff;
    font-size: 2.6rem; /* 画像通りの存在感 */
    font-weight: bold;
    padding: 20px 0;
    width: 100%;
    max-width: 540px; /* 1120pxの中で「少し大きめのボタン」に見える幅 */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 0 #4a6da8; /* 少し厚み（押し込み感）を出す */
}

.search-modal-trigger:hover {
    background-color: #4a6da8;
    transform: translateY(2px);
    box-shadow: 0 2px 0 #4a6da8;
}

.search-modal-trigger i {
    font-size: 2.2rem;
}
.search-modal-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--main-blue); /* #5e7fbb */
    color: #fff;
    font-size: 2.4rem;
    font-weight: bold;
    padding: 18px 80px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
}

.search-modal-trigger:hover {
    background-color: #4a6da8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(94, 127, 187, 0.3);
}

/* --- モーダルアニメーション --- */
.search-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none; /* 初期状態 */
    align-items: center;
    justify-content: center;
}

.search-modal.is-open {
    display: flex;
}

.search-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px); /* 背景をボカす */
    animation: fadeIn 0.3s ease-out;
}

.search-modal__content {
    position: relative;
    background: #fff;
    width: 95%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 8px;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-title {
    text-align: center;
    font-size: 2.4rem;
    color: var(--main-blue);
    margin-bottom: 10px;
}

.modal-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 30px;
}

.search-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 4rem;
    line-height: 1;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}

.search-modal__close:hover { color: #333; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}


/* モーダル内のフォームレイアウト */
.advanced-search-form {
    display: grid;
    gap: 20px;
}

.search-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.search-field label {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #444;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    font-size: 1.4rem;
}

.required-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 1.0rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 5px;
}

/* 検索実行ボタン */
.search-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.search-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-store { background: #333; color: #fff; }
.search-bento { background: var(--main-blue); color: #fff; }

.search-btn:hover { opacity: 0.8; transform: translateY(-2px); }



/* --- 検索フォーム全体 --- */
.advanced-search-form {
    background: #fff;
}

/* 4列のグリッドレイアウト（PC時） */
.search-row.top-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 15px;
    margin-bottom: 25px;
}

/* フィールドの基本スタイル */
.search-field label {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: #444;
    margin-bottom: 8px;
    white-space: nowrap;
}

.search-field select,
.search-field input[type="text"],
.search-field input[type="date"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fdfdfd;
    font-size: 1.4rem;
    color: #333;
}

/* 必須バッジ */
.required-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 1rem;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 5px;
    vertical-align: middle;
}

/* お届け時間の2つ並び */
.time-select-group {
    display: flex;
    gap: 5px;
    align-items: center;
}

/* 下段：フリーワード */
.search-row.bottom-row {
    margin-bottom: 30px;
}
.search-field.wide {
    width: 100%;
}

/* 詳細条件アコーディオンボタン */
#toggle-advanced-conditions {
    display: block;
    width: 100%;
    background: #f0f4f9;
    border: 1px solid #d1d9e6;
    color: #5e7fbb;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.2s;
}
#toggle-advanced-conditions:hover {
    background: #e6edf5;
}

/* 詳細条件の中身 */
#advanced-conditions-drawer {
    background: #fcfcfc;
    border-radius: 4px;
    margin-bottom: 30px !important;
}
#advanced-conditions-drawer h3 {
    font-size: 1.5rem;
    border-left: 4px solid #5e7fbb;
    padding-left: 10px;
    margin-bottom: 15px;
    color: #333;
}

/* チェックボックスの並び */
.tag-checkbox-group, .custom-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.tag-checkbox-group label, .custom-checkbox-group label {
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

/* 検索実行ボタン */
.search-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}
.search-btn {
    flex: 1;
    max-width: 300px;
    padding: 20px;
    border: none;
    border-radius: 4px;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}
.search-store {
    background: #666;
    color: #fff;
}
.search-bento {
    background: #5e7fbb; /* ハート様のメインカラー */
    color: #fff;
    box-shadow: 0 4px 0 #4a6da8;
}
.search-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* スマホ対応：2列に変更 */
@media (max-width: 768px) {
    .search-row.top-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-buttons {
        flex-direction: column;
        align-items: center;
    }
    .search-btn {
        width: 100%;
        max-width: none;
    }
}



/* --- ベース枠とセクション --- */
.basic__area.-pr-section {
    max-width: 1360px;
    max-width: min(calc(100% - 80px), 1360px);
    margin-inline: auto;
    padding: 60px 0;
}

/* --- グリッド配置 --- */
.tp_pickup--list {
    display: grid;
    /* 1360px幅に合わせて、最低280pxのカードを自動で並べる（最大4列想定） */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px 24px;
}

/* --- 各アイテム（カード）のスタイル --- */
.tp_pickup--item {
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tp_pickup--link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- 画像エリア --- */
.tp_pickup--pic {
    overflow: hidden;
    aspect-ratio: 16 / 10; /* 店舗写真が見やすい少し横長の比率 */
    background: #eee;
    margin-bottom: 15px;
}

.tp_pickup--pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tp_pickup--item:hover .tp_pickup--pic img {
    transform: scale(1.08);
}

/* --- テキストコンテンツ --- */
.tp_pickup--title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* キャッチフレーズ：2行制限と「...」の処理 */
.tp_pickup--desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* ★ 2行でカット */
    overflow: hidden;
    text-overflow: ellipsis;
    
    font-size: 1.4rem;
    line-height: 1.6;
    height: 3.2em; /* 1.6 * 2 = 高さを2行分に固定して揃える */
    color: #666;
    margin-bottom: 15px;
}

/* --- 店舗詳細を見る ボタン風テキスト --- */
.tp_pickup--more {
    margin-top: auto; /* 下に固定 */
    font-size: 1.3rem;
    font-weight: bold;
    color: #5e7fbb; /* メインの青色 */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.tp_pickup--more::after {
    content: "\f105"; /* FontAwesomeの > */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tp_pickup--item:hover .tp_pickup--more::after {
    transform: translateX(5px);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .tp_pickup--list {
        grid-template-columns: 1fr; /* スマホでは1列 */
        gap: 30px;
    }
}

/* --- ジャンルカテゴリのラップ --- */
.product__category__wrap.-base {
    display: grid;
    /* PCでは1行に6つ並べる */
    grid-template-columns: repeat(6, 1fr);
    gap: 20px 10px;
    margin-top: 30px;
}

.product__category--list {
    text-align: center;
    position: relative;
    background: #fff;
    transition: 0.3s;
}

.product__category--list:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}

/* アイコン画像の外枠 */
.product__category--items {
    width: 100%;
    margin: 0px;
    background: #f9f9f9;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.product__category--items img {
    width: 80%; /* アイコンっぽく少し小さめに配置 */
    height: auto;
    object-fit: contain;
}

/* ジャンル名（テキスト） */
.product__category--list p span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    display: block;
}

/* 印刷サービスのような左上ラベル */
.label_print {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    z-index: 2;
}

/* --- レスポンシブ --- */
@media (max-width: 1024px) {
    .product__category__wrap.-base {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product__category__wrap.-base {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px 5px;
    }
    .product__category--list p span {
        font-size: 1.1rem;
    }
}

#und__hist {
    background: #eaeef5;
    padding: 10px 0 60px;
}

/* タブボタンの基本スタイル */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 8px 25px;
    border-radius: 20px;
    border: 1px solid #d93025;
    background: #fff;
    color: #d93025;
    font-weight: bold;
    cursor: pointer;
}
.tab-btn.active {
    background: #d93025;
    color: #fff;
}

/* スクロールエリアの設定 */
.ranking-scroll-wrapper {
    width: 100%;
    overflow-x: auto; /* 横スクロールを許可 */
    padding: 10px 0 30px;
    -webkit-overflow-scrolling: touch;
}

.tab-content {
    display: none; /* 初期は非表示 */
}
.tab-content.active {
    display: block !important;
}

/* 横一列に並べるフレックスボックス */
.ranking-row {
    display: flex;
    gap: 20px;
    width: max-content; /* 中身の合計幅に広げる */
    padding: 0 10px;
}

/* 各カードのスタイル */
.ranking-card {
    width: 240px; /* カード1枚の幅 */
    flex-shrink: 0; /* 潰れないように固定 */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
}
.rank-1 { background: #e6b422; }
.rank-2 { background: #b4b4b4; }
.rank-3 { background: #ad8a56; }

.rank-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.rank-info {
    padding: 12px;
}

.rank-store { font-size: 0.75rem; color: #d93025; margin-bottom: 5px; font-weight: bold; }
.rank-title { font-size: 0.95rem; line-height: 1.4; margin: 0; font-weight: bold; height: 2.8em; overflow: hidden; }
.rank-price { font-size: 1.1rem; color: #333; margin-top: 8px; font-weight: bold; }
.rank-phrase { font-size: 0.8rem; color: #666; margin-top: 5px; }

/* スクロールバーのデザイン（任意） */
.ranking-scroll-wrapper::-webkit-scrollbar { height: 5px; }
.ranking-scroll-wrapper::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }


/* 履歴セクション独自のスタイル調整 */
#top_history {
    padding: 40px 0;
}

#top_history .ranking-card {
    width: 200px; /* 履歴はランキングより少しだけ小さくしても良い */
}

.no-history {
    padding: 40px 0;
    text-align: center;
    color: #999;
    border: 1px dashed #ccc;
    border-radius: 10px;
    background: #fff;
}


.news__area {
  background-color: #f0f2f5; /* 画像のような薄いグレー背景 */
  padding: 60px 20px;
}

.news__container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  position: relative;
}

.news__title {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

/* スクロールエリア */
.news__scroll-box {
  max-height: 320px; /* 表示する高さ */
  overflow-y: auto;
  padding-right: 30px; /* スクロールバーとの余白 */
}

/* ブラウザ標準のスクロールバーを画像風にカスタマイズ */
.news__scroll-box::-webkit-scrollbar {
  width: 12px;
}
.news__scroll-box::-webkit-scrollbar-track {
  background: transparent;
  /* 上下の矢印アイコンを擬似的に表現するために、実際の画像ではもっと複雑ですがシンプルに再現 */
}
.news__scroll-box::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 6px;
  border: 3px solid #fff; /* 背景との隙間を作って浮いているように見せる */
}

/* お知らせ一行のスタイル */
.news__item {
  display: flex;
  padding: 25px 0;
  border-bottom: 1px solid #ddd;
}
.news__item:last-child {
  border-bottom: none;
}

.news__date {
  width: 140px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
}

.news__content {
  flex-grow: 1;
}

.news__item-title {
  font-size: 15px;
  font-weight: bold;
  margin:0;
}

.news__item-text {
  font-size: 14px;
  line-height: 2;
  color: #444;
}

/* 下部ナビゲーション装飾 */
.news__footer-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 10px;
}
.nav-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-top: 2px solid #888;
  border-left: 2px solid #888;
}
.-left { transform: rotate(-45deg); }
.-right { transform: rotate(135deg); }

/* スマホ対応 */
@media (max-width: 640px) {
  .news__item {
    flex-direction: column;
  }
  .news__date {
    margin-bottom: 10px;
  }
  .news__container {
    padding: 20px;
  }
}


.guide-area {
    background-color: #f5f7fa; /* 背景の薄いグレー */
    padding: 80px 20px;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
}

.guide-main-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 50px;
    color: #333;
}

/* 4カラムグリッド */
.guide-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.guide-card {
    flex: 1;
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.guide-icon {
    width: 60px;
    height: 60px;
    background: #f0f2f5;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #666;
}

.guide-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.guide-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    text-align: left;
}

/* 下部詳細エリア */
.guide-details {
    background: #fff;
    padding: 30px;
    border-top: 2px solid #eee;
}

.guide-detail-row {
    margin-bottom: 25px;
}

.guide-detail-row:last-child {
    margin-bottom: 0;
}

.guide-detail-row h4 {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 10px;
    border-left: 4px solid #d93025;
    padding-left: 10px;
}

.guide-detail-row p {
    font-size: 13px;
    line-height: 1.8;
    color: #444;
}

.guide-footer-notice {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #d93025;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
    .guide-grid { flex-wrap: wrap; }
    .guide-card { flex: none; width: calc(50% - 10px); }
}

@media (max-width: 600px) {
    .guide-card { width: 100%; }
}

.footer {
  background-color: #fcfcfc;
  padding-top: 60px;
  border-top: 1px solid #eee;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ページトップボタン */
.footer__pagetop {
  position: relative;
  text-align: right;
  max-width: 1200px;
  margin: 0 auto -20px;
  padding-right: 20px;
}

.footer__pagetop-link {
  display: inline-block;
  background-color: #ff3300; /* 画像のような鮮やかな赤 */
  color: #fff;
  padding: 15px 10px;
  border-radius: 50% 50% 0 0;
  text-decoration: none;
  text-align: center;
  width: 80px;
}

.footer__pagetop-text {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
}

.footer__pagetop-icon {
  font-size: 20px;
  font-weight: bold;
}

/* インナー */
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.footer__section {
  margin-bottom: 30px;
}

.footer__title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.footer__title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* アイコン：仮で色指定（本来は地図ピン画像など） */
.footer__title.-location::before { background-image: url('data:image/svg+xml;utf8,<svg ... />'); }

/* エリア一覧・都道府県一覧 */
.footer__area-list, .footer__pref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.footer__area-list a, .footer__pref-list a {
  font-size: 13px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__area-list a:hover, .footer__pref-list a:hover {
  color: #ff3300;
}

/* 区切り線 */
.footer__divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* 説明文 */
.footer__description {
  font-size: 13px;
  line-height: 1.8;
  color: #666;
}

.footer__copyright {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 12px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .footer__area-list, .footer__pref-list {
    gap: 10px 15px;
  }
}

/* ガイド全体 */
.guide-wrapper {
    display: flex;
    max-width: 1100px;
    margin: 40px auto;
    gap: 40px;
    padding: 0 20px;
}

/* 左サイドナビ */
.guide-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.guide-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    position: sticky;
    top: 20px;
    border: 1px solid #eee;
}

.guide-nav li {
    border-bottom: 1px solid #eee;
}

.guide-nav li a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background: #fff;
    transition: background 0.3s;
}

.guide-nav li a:hover {
    background: #f9f9f9;
    color: #d93025; /* コーポレートカラー */
}

/* 右メイン */
.guide-main {
    flex-grow: 1;
}

.guide-section {
    margin-bottom: 60px;
}

.guide-section h2 {
    font-size: 22px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.guide-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

/* テーブルスタイル */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.guide-table th, .guide-table td {
    border: 1px solid #eee;
    padding: 15px;
    font-size: 14px;
}

.guide-table th {
    background: #f7f7f7;
    width: 30%;
    text-align: left;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .guide-wrapper {
        flex-direction: column;
    }
    .guide-sidebar {
        width: 100%;
    }
    .guide-nav {
        position: static;
        display: flex;
        flex-wrap: wrap;
    }
    .guide-nav li {
        width: 50%;
    }
}

/* タイトル装飾：サイトのメインカラーに合わせる */
.guide-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding-left: 15px;
    border-left: 5px solid #d93025; /* サイトの赤 */
    margin-bottom: 30px;
}

/* 流れのコンテナ */
.flow-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 各ステップの枠 */
.flow-step {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* ステップ番号 */
.flow-num {
    font-size: 20px;
    font-weight: bold;
    color: #d93025;
    font-family: 'Arial', sans-serif;
    width: 40px;
}

/* 内容のボックス */
.flow-box {
    flex: 1;
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.flow-icon {
    font-size: 28px;
    color: #d93025;
    width: 50px;
    text-align: center;
}

.flow-box h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
    color: #333;
}

.flow-box p {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* ステップ間の矢印ライン（デスクトップ用） */
@media (min-width: 769px) {
    .flow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 20px;
        top: 60px;
        width: 2px;
        height: 40px;
        background: #eee;
    }
}

/* スマホ表示：アイコンとテキストを縦並びに */
@media (max-width: 768px) {
    .flow-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .flow-num {
        width: auto;
    }
}