/* リセット＆ベース */
*,
*::before,
::after { box-sizing: border-box; }   /* すべての要素でボックスサイズをborder-boxに統一 */
html { scroll-behavior: smooth; }      /* ページ内リンクのスクロールをスムーズに */
body {
  font-family: "Hiragino Sans","Helvetica Neue", Arial, sans-serif;  /* 基本フォント */
  margin: 0;                  /* デフォルトの余白をリセット */
  background-color: #fffef8;   /* ページ全体の背景色 */
  color: #333;                 /* 基本文字色 */
  -webkit-font-smoothing:antialiased; /* MacやiOSで文字を滑らかに */
  -moz-osx-font-smoothing:grayscale;  /* Macで文字を滑らかに */
  width: 100%;
}

/*メイン画像*/
.title {
  margin: 0 auto;
  margin-top: 85px;
}

/* コンテンツ幅 */
main {
  margin: 0 auto;           /* 中央寄せ */
  padding: 0px 20px;
  align-items: center;     /* 縦方向の中央配置 */
}


/* ヘッダー */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
  display: flex;                           /* 横並びに配置 */
  align-items: center;                     /* 垂直方向中央寄せ */
  justify-content: space-between;          /* 左右に配置して間を広げる */
  padding: 12px 20px;                      /* 内側余白 */
  background: #fff;                        /* 背景を白に */
  border-bottom: 2px solid #e0e0c0;        /* 下線をつける */
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none;}
.logo__img { height: 60px; }
.logo__title { height: 40px; }
.logo:hover {opacity: 0.8;}

/* ナビ */
.site-nav .main-nav {
  display:flex; gap:16px; margin:0; padding:0; list-style:none; /* ナビを横並び・余白調整 */
}
.site-nav .main-nav {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav .main-nav a {
  display: inline-block;
  text-decoration: none;
  background: #f3f0c0;
  color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: bold;
}
.site-nav .main-nav a:hover {
  background: linear-gradient(90deg, #f6e58d, #ffbe76);
  color: #444;
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}


/* タイトル・メイン写真*/
.title {
  position: relative;
  width: 100%;
  height: 50vh;             /* 画面全体の高さに */
  overflow: hidden;          /* はみ出した部分を隠す */
}

.history_img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* 画像を拡大してトリミングして全体にフィット */
}

.history_text {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-weight: bold; color: #fff; font-size: 32px;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(5px);
  padding: 18px 26px; border-radius: 10px; text-align: center;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.history_introduction {
  text-align: center;
  width: 600px;
  margin: 0 auto;
}

.Map {
  text-align: center;
  max-width: 800px;   /* 最大幅を600pxに制限 */
  margin: 0 auto;     /* 中央寄せ */
  }

.map-text {
  margin-bottom: 60px;
}  

h2 {
  font-size: 22px;
  display: inline-block;
  padding: 10px 20px;
  border-top: 2px dashed #16a085;
  border-bottom: 2px dashed #16a085;
  margin-top: 60px;
  margin-bottom: 40px;
  background: rgba(22,160,133,0.05);
  border-radius: 1px;
}

h3 {
  font-size: 22px;
  padding: 10px 20px;
  margin-top: 40px;
  margin-bottom: 40px;
  display: block;     /* 横幅いっぱいにする */
  width: 216px;        /* 親要素の幅に合わせる */
  border-radius: 1px;
  margin: 0 auto;
  text-align: center;
}

.mitoeki_map {
  margin-top: 40px;
  margin-bottom: 40px;
  width: 200px;
  transition: transform 0.3s case;
  cursor: pointer;
}

.mitoeki {
  margin-top: 30px;
  margin-bottom: 60px;  
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  width: 600px;
  background: #fff;
  border: 1px solid #238264;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  }

.mitoeki_map.enlarged{
  transform: scale(1.5); /*拡大率*/
}

.minami_map {
  margin-top: 40px;
  margin-bottom: 40px;
  width: 200px;
  transition: transform 0.3s case;
  cursor: pointer;
}

.minami {
  margin-top: 30px;
  margin-bottom: 60px;  
  margin-left: auto;
  margin-right: auto;
  padding: 20px;
  width: 600px;
  background: #fff;
  border: 1px solid #238264;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  }

.minami_map.enlarged{
  transform: scale(1.5); /*拡大率*/
}


.izumi-daiku_map {
  margin-top: 40px;
  margin-bottom: 40px;
  width: 200px;
  transition: transform 0.3s case;
  cursor: pointer;
}

.izumi-daiku {
  margin-top: 30px;
  margin-bottom: 60px;  
  margin-left: auto;
  margin-right: auto;
  width: 600px;
  padding: 20px;
  background: #fff;
  border: 1px solid #238264;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  }

  .izumi-daiku_map.enlarged{
  transform: scale(1.5); /*拡大率*/
  }

.tab-wrap {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 40px;
  font-family: sans-serif;
}

/* ラジオボタンは非表示 */
.tab-wrap input[type="radio"] {
  display: none;
}

p {
  margin-bottom: 40px;
  text-align: left;
}

/* タブのラベル */
.tab-wrap label {
  display: inline-block;
  padding: 10px 20px;
  background: #f3f0c0;
  cursor: pointer;
  margin-right: 2px;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

/* アクティブなタブのスタイル */
#tab1:checked ~ label[for="tab1"],
#tab2:checked ~ label[for="tab2"],
#tab3:checked ~ label[for="tab3"]{
  background: linear-gradient(90deg, #f6e58d, #ffbe76);
  border-bottom: 2px solid white;
  font-weight: bold;
}

/* タブの内容を非表示に */
.tab-content {
  display: none;
  padding: 20px;
  border: 1px solid #ccc;
  background: #fff;
}

/* チェックされたタブに対応する内容を表示 */
#tab1:checked ~ #content1,
#tab2:checked ~ #content2,
#tab3:checked ~ #content3 {
  display: block;
}

.mitoeki_map {
  width: 400px;      /* 横幅を300ピクセルに指定 */
  height: auto;      /* 高さは自動調整（縦横比を保つ） */
}

.minami_map {
  width: 400px;      /* 横幅を300ピクセルに指定 */
  height: auto;      /* 高さは自動調整（縦横比を保つ） */
}

.izumi-daiku_map {
  width: 400px;      /* 横幅を300ピクセルに指定 */
  height: auto;      /* 高さは自動調整（縦横比を保つ） */
}

/* 初期状態の画像 */
.thumbnail {
  cursor: pointer;
  transition: transform 0.3s ease;
}


/* 拡大時のスタイル */
.thumbnail:active {
  transform: scale(2);
  z-index: 10;
}

.site-footer {
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 2px solid #e0e0c0;
}

.site-footer a {
  color: #666;
  text-decoration: none;
  display: block;   /* 中央寄せを安定させる */
}

/* ================================
 ハンバーガーメニュー
================================ */
.nav-toggle {
  display: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 10001; /* ヘッダーや他のコンテンツより前面に */
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.close-btn { /* これはHTMLにはありませんでしたが、もし将来的に実装するなら */
  display: none;
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

  .site-footer {
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: #666;
  border-top: 2px solid #e0e0c0;
}

/* タブレット対応 */
@media (max-width: 1100px){

  /* 店舗カード */
.bl_searchResultBlock_item{
  margin:auto
  }

.bl_searchResultBlock_item {
  padding: 20px 20px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 30px;
  }

.selectbox{
  width: 100%;
  }
 }

 /*　タブレット対応  */
@media (max-width: 1000px){
  .shopbutton{
  display: grid;
  grid-template-columns: repeat(2,1fr);
  }

/* 詳細はこちら、特集はこちら */
.link_wrap{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  justify-items: center;
  }

.selectbox{
  width: 100%;
  }
 }

 /* スマホ対応 */
@media screen and (max-width: 800px){
.selectbox_ttl{
  width: 100%;
  margin-bottom: 20px;
  }
  /* メインビジュアル */
.main-img{
  height: 10rem;
  margin: auto;
}

.main-text{
  font-size: 20px;
  white-space: nowrap;
  }

.selectbox{
  padding-left: 10px;
  padding-right: 10px;
  width: 100%;
  }

.selectbox label{
  font-size: 14px;
 }
   
.selectbox_content{
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  row-gap: 5px;
    }
    
.bl_searchResultBlock{
  font-size: 18px;
  border-top: 1px solid #bdbdbd;
  }

.bl_searchResultBlock_item{
  padding: 20px 10px;
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 30px;
  }

.bl_searchResultBlock_item td{
  padding-left: 20px;
  }

.shoptx{
  text-align: left;
  }

.bl_searchResultBlock_item span{
  display: inline-block;
  }

.bd_style span{
  white-space: nowrap;
  }

.selectbox_check{
  display: inline-block;
  margin-right: 25px;
  display: inline-block;
  margin-bottom: 20px;
  }

.selectbox_check:last-child{
  margin-right: 0;
  }

.selectbox_release{
  text-align: center;
  color: #fff;
  background-color: #bdbdbd;
  padding: 15px 0;
  cursor: pointer;
  }

.js_release{
  cursor: pointer;
  }

html {
  scroll-behavior: smooth;
  }

.hamburger {
  display: flex;
  }

.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 70%;
  max-width: 300px; 
  height: 100%;
  background: #fffef8;
  transform: translateX(100%);
  box-shadow: -3px 0 8px rgba(0,0,0,0.2);
  padding-top: 80px;
  z-index: 9999; /* ヘッダーより下、ハンバーガーアイコンより下 */
  transition: transform 0.4s ease;
  overflow-y: auto; /* メニューが多い場合にスクロール可能にする */
  }

.site-nav .main-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 30px;
  gap: 20px;
  }

.nav-toggle:checked ~ .site-nav {
    transform: translateX(0);
  }
  
  /* ハンバーガーアイコンのアニメーション */
  .nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
  }
  .nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
  }

  /* メニューが開いているときにbodyのスクロールを無効にする */
  .nav-toggle:checked ~ body {
    overflow: hidden;
  }

  /* ロゴの調整 */
  .logo__img {
    height: 45px; /* スマホでのロゴ画像を小さく */
  }
  .logo__title {
    height: 30px; /* スマホでのロゴタイトルを小さく */
  }

  .main {
    margin-top: 70px; /* スマホヘッダーの高さに合わせて調整 */
  }

  .bl_searchResultBlock_item table {
  margin: auto;  
  }

  .bl_searchResultBlock_item tr {
      display: flex;
      flex-direction: column; /* 行の要素を縦に並べる */
      align-items: center; /* 中央寄せ */
      margin: auto;
  }

  .bl_searchResultBlock_item td {
      padding-left: 0; /* 左のパディングをリセット */
      text-align: center; /* テキストを中央寄せ */
      margin-bottom: 15px; /* 各tdの下に余白を追加 */
  }

  .bl_searchResultBlock_item img {
      width: 100%; /* 画像を親要素の幅に合わせる */
      height: auto; /* 高さを自動調整 */
  }

  .bl_searchResultBlock_item h2 {
      font-size: 1.5rem; /* スマホでのh2サイズ調整 */
      margin-top: 10px;
  }

  .bl_searchResultBlock_item p {
      font-size: 0.9rem; /* スマホでのpタグのフォントサイズ調整 */
      margin-bottom: 5px;
      margin-top: 5px;

  }

  button {
      width: auto; /* ボタンの幅を自動調整 */
      padding: 8px 15px; /* パディングを調整 */
      font-size: 1rem; /* フォントサイズを調整 */
      margin-right: 5px;
      margin-top: 15px;
      margin-bottom: 5px;
  }

  .link_wrap {
      margin: 15px 0;
      text-align: center;
      display: grid;
      grid-template-columns: repeat(2,1fr);
      gap: 18px;
  }

  .bd_style{
    width: auto;
  }

  .link_wrap a{
    white-space: nowrap;
    margin-right: 0;
  }
}

/* メニューが開いたときにbodyにoverflow: hidden;を適用する */
#nav-toggle:checked ~ body {
  overflow: hidden;
}

/* ============================
   スマホ最適化 (〜768px)
============================ */
@media screen and (max-width: 768px){

/* --- タイトル画像の高さ調整 --- */
.title{
  height: 35vh; /* PCより小さく */
}
.history_text{
  font-size: 22px;
  padding: 12px 18px;
}
.main-img{
  height: 10rem;
}

  .detail-btn {
    display: inline-block;
    padding: 10px 16px;
    margin-top: 12px;
    background: #f3f0c0;
    color: #333;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
  }

/* --- 説明文章の横幅制限解除 → 読みやすくする --- */
.history_introduction{
  width: 95%;
}

/* --- タブをスマホ横幅に対応 --- */
.tab-wrap{
  width: 100%;
}
.tab-wrap label{
  width: 25%;
  font-size: 12px;
  text-align: center;
  padding: 8px 0;
}

/* --- 画像マップスマホフィット --- */
.mitoeki,
.minami,
.izumi-daiku,
.mitoeki_map,
.minami_map,
.izumi-daiku_map{
  width: 100%;
  max-width: 350px;
  margin: 20px auto;
}


/* --- 段落の余白縮小で読みやすく --- */
p{
  font-size: 15px;
  line-height: 1.8;
  padding: 0 10px;
}

/* --- 見出しの余白調整 --- */
h2{
  margin-top: 40px;
  font-size: 20px;
}
h3{
  font-size: 18px;
  width: 160px;
}
}

