html, body {  width: 100%;  overflow-x: hidden;  }

* {  margin: 0;  padding: 0;  box-sizing: border-box;  }

body {  margin: auto;  background: #f2f7c8;  font-family: "ゴシックMB101 L", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;  color: #4d0f30;  font-size: 15px;  line-height: 2em;  }

a {  color: #0000ff;  text-decoration: none;  }
a:visited {  color: #e2041b;  }
a:hover {  color: #b44c97;  }
a:active {  color: #aacf53;  }

/* 汎用クラス */
.c {  text-align: center;  }
.left {  text-align: left;  }
.right {  text-align: right;  }
.r {  color: #ff0000;  }
.u_line_r {  border-bottom: 2px dotted #ff0000;  }
.u_line_bl {  border-bottom: 2px dotted #0000ff;  }
small {  font-size: 11px;  color: #007b43;  }
hr {  width: 80%;  text-align: center;  border: 0;  border-top: 1px solid #a0ff42;  margin: 1em auto;  }

/* ■■■  ページの骨格（レイアウト） ■■■  */
.global-nav, .breadcrumb-container, .nav2-container, main, footer {  width: 96%;  max-width: 950px;  margin-left: auto;  margin-right: auto;  }

/* ■■■  ヘッダー調整 ■■■  */
header {  line-height: 0;}
header .container {  width: 96%;  max-width: 960px; /* 好きな幅に制御  main と揃える */  
  margin: 0 auto;/* 中央寄せ */  padding: 0 1em;  text-align: center; /* 画像を中央寄せしたい場合 */}
header a {  display: inline-block;}
header img {  max-width: 100%;  height: auto;  display: block;  margin: 0 auto; /* 中央寄せ */}

main {  background-color: #ffffff;  padding: 10px 15px;  }
footer {  background-color: rgb(251, 202, 77);  padding: 10px 15px;  }

/* ■■■  グローバルナビゲーション ■■■  */
.global-nav {  position: relative;  z-index: 1000;  min-height: 60px;  background-color: rgb(206, 228, 174);  }
.global-nav ul {  margin: 0;  padding: 0;  list-style: none;  }
.global-nav a {  display: block;  text-decoration: none;  color: rgb(113, 92, 31);  }
.global-nav a:visited {  color: rgb(113, 92, 31);  }
.global-nav a:hover {  color: rgb(180, 76, 151);  }
.global-nav a:active {  color: rgb(170, 207, 83);  }

/* ■■■  ハンバーガーメニュー（スマホ用） ■■■  */
.nav-toggle {  display: none;   } 
.hamburger-btn {  display: block;   position: absolute;   top: 10px;   left: 10px;   width: 40px;  height: 40px;   cursor: pointer;   z-index: 1001;   background: transparent;   border: none;
  /* iOS Safari用の追加プロパティ */
  -webkit-appearance: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
} 
.hamburger-bar {  display: block;   width: 100%;   height: 3px;   background-color: rgb(113, 92, 31);       margin: 6px 0;   } 
.nav-menu {  display: none;   position: absolute;   top: 100%;   left: 0;   width: 100%;   background-color: rgb(206, 228, 174);   box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);   max-height: 80vh;   overflow-y: auto;
  /* iOS Safari用のスクロール改善 */
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
}
.nav-toggle:checked ~ .nav-menu {  display: block;  } 
.global-nav .nav-menu li {  position: relative;   } 
.nav-menu li.active > a {  background-color: rgb(235, 216, 66);  color: rgb(255, 0, 0);  } 
.global-nav .nav-menu a {  padding: 15px 20px;  border-top: 1px solid rgba(0, 0, 0, 0.1);  } 
.global-nav .nav-menu a:hover {  background-color: rgb(235, 216, 66);  } 

/* ■■■  スマホ用navアコーディオン「+」ボタン ■■■  */
.nav__toggle-btn {
  display: block;
  position: absolute;
  top: 50%;
  right: 15px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  z-index: 10;
  /* iOS Safari用の追加プロパティ */
  -webkit-appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.nav__toggle-btn::before,
.nav__toggle-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background-color: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s ease;
}

.nav__toggle-btn::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* iOS Safari用：タッチ状態のフィードバック */
.nav__toggle-btn:active {
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-50%) scale(0.95);
}

.nav__toggle-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

/* ドロップダウンメニューのスタイル */
.nav-menu .dropdown {
  display: none;
  background-color: rgba(0, 0, 0, 0.05);
}

.nav-menu .dropdown li {
  padding-left: 20px;
}

.nav-menu .dropdown .dropdown {
  background-color: rgba(0, 0, 0, 0.1);
}

.nav-menu .dropdown .dropdown li {
  padding-left: 40px;
}

/* 開いた状態のスタイル */
.nav-menu .is-open > .dropdown {
  display: block;
}

.nav-menu .is-open > .nav__toggle-btn::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* has-childrenクラスを持つliに+ボタンを表示 */
.nav-menu .has-children {
  position: relative;
}

/* ■■■  PC表示用レスポンシブ対応（981px以上） ■■■  */
@media (min-width: 981px) {
  /* ハンバーガーボタンと+ボタンを非表示 */
  .hamburger-btn { display: none; }
  .nav__toggle-btn { display: none !important; }
  
  /* ナビゲーションメニューをホリゾンタル表示に変更 */
  .nav-menu { 
    display: flex !important;
    position: static; 
    justify-content: center; 
    width: 100%; 
    background-color: transparent; 
    box-shadow: none; 
    max-height: none; 
    overflow-y: visible; 
  }
  
  /* PCでのリンクスタイル調整 */
  .global-nav a { 
    white-space: nowrap; 
    border-top: none; 
    font-size: 15px; 
    padding: 15px 18px; 
  }
  
  .global-nav li.active > a, .global-nav a:hover { 
    background-color: rgb(235, 216, 66); 
    color: rgb(255, 0, 0); 
  }
  
  /* PCでのリスト項目調整 */
  .global-nav li { 
    position: relative; 
    text-align: center; 
    flex-shrink: 1; 
  }
  
  /* PCでのドロップダウンメニュー */
  .global-nav .dropdown { 
    display: none; 
    position: absolute; 
    top: 100%;
    left: 0;
    background-color: rgb(206, 228, 174); 
    min-width: 280px; 
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); 
    z-index: 1000; 
    max-height: none;
    overflow-y: visible; 
  }
  
  /* PCでの第三階層ドロップダウン */
  .global-nav .dropdown .dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: rgb(206, 228, 174);
    min-width: 280px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1001;
  }
  
  /* PCでのパディング調整 */
  .nav-menu .dropdown li {
    padding-left: 0;
  }
  
  .nav-menu .dropdown .dropdown li {
    padding-left: 0;
    background-color: transparent;
  }
  
  /* PCでのホバー表示 */
  .global-nav li:hover > .dropdown { 
    display: block; 
  }
  
  /* PCでの階層メニューアニメーション */
  .global-nav .dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  
  .global-nav li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

/* ■■■  第2ナビゲーション nav2（横スライドボタン） ■■■  */
.nav2-container {  background-color: #ffffff;  overflow-x: auto;  -webkit-overflow-scrolling: touch;  position: relative;  padding-top: 15px;  padding-bottom: 15px;  }
.nav2-scroller {  display: inline-block;  white-space: nowrap;  padding: 0 15px;  }
.nav2-container::after {  content: '';  position: absolute;  top: 0;  right: 0;  width: 40px;  height: 100%;  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0));  pointer-events: none;  z-index: 2;  }
@media (min-width: 768px) {
  .nav2-container::after {  display: none;  }
}
.nav2-container table {  border-collapse: collapse;  }
.nav2-container td {  padding: 0 4px;  }
.nav2-container img {  display: block;  width: 45px;  height: 45px;  }

/* ■■■  フッターの中身 ■■■  */
footer {  color: rgb(113, 92, 31);  text-align: center;  }
/* フッター内アコーディオン */
.footer-accordion {  background-color: #e0ffff;  border: 1px solid #ccc;  margin-bottom: 20px;  }
.footer-accordion summary {  padding: 10px;  font-weight: bold;  cursor: pointer;  }
.footer-accordion .accordion-content {  padding: 15px;  background-color: #fff9f4;  text-align: left;  }
.footer-accordion h3, .footer-accordion h4 {  text-align: center;  }
/* フッター内グリッドレイアウト */
.footer-grid {  display: grid;  grid-template-columns: repeat(4, 1fr);  gap: 20px;  text-align: left;  margin-bottom: 20px;  }
.footer-column ul {  margin: 0;  padding: 0;  list-style: none;  }
.footer-column li {  margin-bottom: 0.8em;  }
.footer-column p {  text-align: center;  }
@media (max-width: 767px) {
  .footer-grid {  grid-template-columns: repeat(2, 1fr);  }
}
/* フッター内コピーライト */
.footer-meta {  margin-top: 30px;  padding-top: 20px;  border-top: 1px solid rgba(0, 0, 0, 0.1);  }

/* --- その他の部品（コンポーネント） --- */
/* ■■■  基本的なテキストスタイル ■■■  */
p {  font-size: 16px;  line-height: 1.7;  color: #4d0f30;  }

/* ■■■  見出し（h1-h6） ■■■  */
h1, h2, h3, h4, h5, h6 {  text-align: center;  margin: 1.5em auto 1em auto;  }
h1 {  width: 94%;  color: #640125;  font-size: 16px;  line-height: 130%;  background: #fde8d0;  box-shadow: 0px 0px 0px 5px #fde8d0;  border: dotted 3px white;  padding: 0.2em 0.5em;  }
h2 {  font-size: 18px;  padding: .8em .95em;  background: #fff799;  border-top: 2px dotted #e83929;  border-bottom: 1px dashed #e83929;  box-shadow: 0px 6px 3px 0px rgba(232, 57, 41, .1), 0px 6px 3px 0px rgba(232, 57, 41, .1) inset;  }
h3 {  font-size: 17px;  border-top: 3px dotted #9acd32;  border-bottom: 3px dotted #9acd32;  padding: 0.6em 0.8em;  background: #eaffd6;  font-weight: bold;  }

/* ■■■  アコーディオン（details, summary） ■■■  */
details {  display: block;  background-color: #fff9f4;  margin: 1em 0;  }
summary {  display: block;  cursor: pointer;  padding: 0.5em;  background-color: #e0ffff;  list-style: none;  }
summary::-webkit-details-marker {  display: none;  }
.d-box {  background-color: #ffeee6;  }

/* ■■■  テーブル ■■■  */
table.price {  width: 98%;  margin: 0 auto;  color: #4d0f30;  background-color: #b65f00;  border-collapse: collapse;  }
table.price th, table.price td {  border: 1px solid #367714;  text-align: center;  vertical-align: middle;  font-size: 13px;  padding: 8px 5px;  }
table.price th {  color: #ffffff;  background-color: #b65f00;  }
table.price td {  background-color: #fff3ca;  }

/* iframe */
.iframe-top {  width: 94%;  border: none;  height: 100px;  }

/* 画像グリッド */
.image-grid {  display: grid;  grid-template-columns: repeat(3, 1fr);  gap: 15px;  margin: 2em 0;  }
.grid-item {  text-align: center;  font-size: 12px;  }
.grid-item img {  max-width: 100%;  height: auto;  border: 1px solid #ccc;  }
@media (max-width: 767px) {
  .image-grid {  grid-template-columns: 1fr;  }
}

/* ■■■  上に戻るボタン ■■■  */
.to-top-btn {  display: block;  position: fixed;  right: 20px;  bottom: 20px;  width: 50px;  height: 50px;  background-color: #888888;  border-radius: 8px;  text-decoration: none;  opacity: 0;  visibility: hidden;  transition: opacity 0.3s, visibility 0.3s;  z-index: 1000;  }
.to-top-btn.is-visible {  opacity: 1;  visibility: visible;  }
.to-top-btn::before {  content: '';  position: absolute;  top: 50%;  left: 50%;  width: 15px;  height: 15px;  border-top: 4px solid #fff;  border-right: 4px solid #fff;  transform: translate(-50%, -50%) rotate(-45deg);  }

@keyframes move-up {
  0% {  transform: translate(-50%, -40%) rotate(-45deg);  }
  50% {  transform: translate(-50%, -80%) rotate(-45deg);  }
  100% {  transform: translate(-50%, -40%) rotate(-45deg);  }
}

.to-top-btn:hover::before {  animation: move-up 0.8s infinite;  }

/* ■■■  パンくずリスト ■■■  */
.breadcrumb-container { max-width: 950px; margin: 0 auto; padding: 10px 0; background-color: #fff; border-bottom: 1px solid #dee2e6; }
.breadcrumb { display: flex; flex-wrap: wrap; padding: 0 15px; margin: 0; list-style: none; }
.brcbs + .brcbs::before { content: " > "; color: #6c757d; }
.brcbs a { text-decoration: none; color: #007bff; }
.brcbs a:hover { text-decoration: underline; }
.brcbs.active { color: #6c757d; }