/*フォント適用設定 */
main {
  margin-top: 70px;
  font-family: maru-maru-gothic-blr-stdn, sans-serif !important;
  font-style: normal;
  font-weight: 400;
  background: none;
  background-color: #ff7f50;
}

/* ヘッダー・フッターの背景色をmainに合わせる */
header {
  background-color: rgba(250, 235, 217);
}

.header-logo a {
  color: #666059;
}

.nav-item a {
  color: #666059;
}

.menu-toggle span {
  background: #666059;
}

@media (max-width: 767px) {
  .header-nav {
    background-color: rgba(250, 235, 217, 0.95);
  }
}

.footer_upper {
  background: #666059;
}

.footer_lower {
  background-color: #443;
}

/* buttonへのフォント適用設定 */
button {
  font-family: inherit;
}

/* アンカーリンクの到達位置調整（固定ヘッダー分） */
html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 90px;
  /* ヘッダー70px + 余白20px */
}


.top-box {
  background: linear-gradient(to bottom, #f8e6e0 90%, #ff7f50);
  padding: 50px 20px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-image-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}

.top-image-container-upper img {
  width: 60%;
  max-width: 1000px;
}

.top-image-container-lower img {
  width: 60%;
  max-width: 1500px;
}

/* 画像保存禁止設定（pointer-events: none）を画像マップに対してのみ解除 */
img[usemap] {
  pointer-events: auto;
}

.breadcrumbs {
  max-width: 1100px;
}

.event-content-wrapper {
  max-width: 1200px;
}

.section-heading {
  color: #6b493d;
  font-size: 1.5rem;
}

.section-heading::after {
  background: linear-gradient(90deg, #c39143, #6b493d);
}

.section-content p {
  font-size: 1.2rem;
}

.note {
  font-size: 1rem;
}

.detail-label {
  background: #e7d0a9;
  color: #6b493d;
  border: 1px solid #c39143;
}

.detail-value {
  font-weight: bold;
}

.content1 .img-box {
  text-align: center;
  margin: 20px 0 0;
}

.content1 .img-box img {
  max-width: 60%;
  height: auto;
  border-radius: 12px;
}

.content1-emphasis {
  margin: 0 auto;
}

.content1-emphasis p {
  font-weight: bold;
  font-size: 0.9rem;
}

.content2-emphasis p {
  font-size: 1.3rem;
  text-align: center;
  color: #6b493d;
  font-weight: bold;
}

.content2 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.content2 li {
  display: inline-block;
  text-align: center;
  list-style: none;
  width: 30%;
  /* PC版：3つ横並び */
  margin: 15px 1.5%;
  transition: transform 0.3s ease;
}

.content2 li:hover {
  transform: translateY(-5px);
}

.region-menu-button {
  background: none;
  border: none;
  cursor: pointer;
}

.menu-image img {
  border: 1px solid burlywood;
  border-radius: 6px;
  width: 270px;
  /* 固定幅 */
  height: 270px;
  /* 縦幅を固定 */
  object-fit: cover;
  /* 画像が枠内に収まるよう調整 */
}

.menu-name p {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
}

.menu-icon {
  display: block;
  width: fit-content;
  box-sizing: border-box;
  padding: 4px 16px;
  margin: 0 auto;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: #000;
  background-color: #fff;
  border: 2px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.menu-icon:hover {
  color: rgb(26, 21, 20);
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#kamikawa-icon,
.kamikawa-icon {
  background-color: #fff2b8;
}

#tomamae-icon,
.tomamae-icon {
  background-color: #ffe4c4;
}

#ready-icon,
.ready-icon {
  background-color: #bce2e8;
}

#halcc-icon,
.halcc-icon {
  background-color: #d5ead8;
}

#mashike-icon,
.mashike-icon {
  background-color: #f6b695;
}

#tsukigata-icon,
.tsukigata-icon {
  background-color: #fffacd;
}

#yubari-icon,
.yubari-icon {
  background-color: #e6e6fa;
}

#kamishihoro-icon,
.kamishihoro-icon {
  background-color: #c7ddd8;
}

#urahoro-icon,
.urahoro-icon {
  background-color: #edadb5;
}

.price p {
  font-weight: 600;
  font-size: 18px;
  margin: 5px 0 0;
}


dialog::backdrop {
  backdrop-filter: blur(8px);
}

dialog {
  box-shadow: 0px 20px 36px 0px rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50px;
  width: 60vw;
  max-height: 85vh;
  overflow: hidden;
}

.dialog-container {
  display: flex;
  flex-direction: column;
  position: relative;
  max-height: 85vh;
  width: 100%;
  box-sizing: border-box;
}

dialog button {
  background: transparent;
  border: none;
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 0;
  z-index: 100;
}

.batsu {
  display: block;
  position: relative;
  width: 32px;
  height: 32px;
}

.batsu::before,
.batsu::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 32px;
  background: #333;
  border-radius: 2.5px;
}

.batsu::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.batsu::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.dialog-contents {
  display: flex;
  flex: 1;
  max-height: 80vh; 
  padding: 32px 32px 50px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.menu-image-in-dialog {
  width: 40%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.menu-image-in-dialog img {
  border: none;
  height: auto;
  width: 100%;
}

.texts-in-dialog {
  width: 60%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.texts-in-dialog::after {
  content: "";
  display: block;
  height: 50px;
  width: 100%;
}


.texts-in-dialog .menu-name p {
  margin-top: 20px;
  font-size: 22px;
}

.texts-in-dialog .price p {
  font-size: 20px;
  margin-bottom: 18px;
}

.texts-in-dialog .introduction h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.texts-in-dialog .introduction p {
  text-align: left;
  margin-left: 20px;
  font-size: 18px;
}

.content3 ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.content3 li {
  display: inline-block;
  text-align: center;
  list-style: none;
  width: 45%;
  margin: 20px 2%;
  transition: transform 0.3s ease;
}

.content3 li:hover {
  transform: translateY(-5px);
}

.region-intro-button {
  background: #fff;
  border: 2px solid rgba(195, 145, 67, 0.2);
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.region-intro-button:hover {
  background: #fffaf0;
  border-color: #c39143;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}


.content3 h3,
.region-introduction h3 {
  font-size: 1.35rem;
  color: #6b493d;
  margin: 0 0 15px;
  padding: 8px 20px;
  background: rgba(227, 208, 169, 0.3);
  border-left: 6px solid #c39143;
  border-radius: 4px 20px 20px 4px;
  display: inline-block;
}

.region-intro-button .img-box {
  margin: 10px 0 15px;
}

.region-intro-button .img-box img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #eee;
}

.region-intro-button .group-name p {
  font-weight: bold;
  font-size: 1.1rem;
  color: #6b493d;
  margin: 0;
}

/* 団体紹介固有の画像サイズ調整 */
#modalDialog23 .img-box img,
.region-intro-button[id="openButton23"] .img-box img {
  object-fit: contain;
  background: #f9f9f9;
}

/* 自治体紹介モーダルのスタイル調整 */
.region-introduction {
  width: 100%;
  flex-shrink: 0;
  box-sizing: border-box;
}

.region-introduction::after {
  content: "";
  display: block;
  height: 50px;
  width: 100%;
}

.region-introduction .img-box {
  margin: 0 0 20px 0;
  text-align: center;
}

.region-introduction .img-box img {
  max-width: 70%;
  height: auto;
  border-radius: 12px;
}

.region-introduction h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #6b493d;
}

.region-introduction h4 {
  font-size: 20px;
  margin: 20px 0 10px;
  color: #6b493d;
  display: flex;
  align-items: center;
  gap: 10px;
}

.region-introduction h4::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #c39143;
  border-radius: 50%;
}

.region-introduction p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 15px;
}



/* ページトップへ戻るボタン */
.pagetop-btn {
  position: fixed;
  width: 75px;
  height: 75px;
  border: solid 1px #fbdc97;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  right: 25px;
  bottom: 25px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pagetop-btn::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-left: 2px solid #666059;
  border-top: 2px solid #666059;
  transform: rotate(45deg);
  margin-top: 4px;
}

.pagetop-btn::after {
  content: "PAGE\A TOP";
  white-space: pre;
  text-align: center;
  font-size: 12px;
  color: #666059;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.pagetop-btn.visible {
  opacity: 1;
  transform: translateY(0);
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {

  .content2 li,
  .content3 li {
    width: 45%;
    margin: 15px 2.5%;
  }

  dialog {
    width: 90vw;
  }

  dialog button {
    top: 10px;
    right: 9.5px;
  }

  .dialog-contents {
    display: block;
    padding: 32px 32px 20px;
  }

  .menu-image-in-dialog {
    width: 100%;
  }

  .texts-in-dialog {
    width: 100%;
  }

  .texts-in-dialog::after,
  .region-introduction::after {
    height: 10px;
  }
}

@media screen and (max-width: 767px) {
  .top-box {
    min-height: auto;
    padding: 50px 10px;
  }

  .top-image-container-upper img {
    width: 90%;
  }

  .top-image-container-lower img {
    width: 100%;
  }

  .content1 .img-box img {
    max-width: 100%;
  }

  .content2 li,
  .content3 li {
    width: 100%;
    margin: 15px 0;
  }

  .menu-image img {
    width: 200px;
    height: 200px;
  }

  .region-intro-button {
    padding: 15px;
    border-radius: 15px;
  }

  .region-intro-button .img-box img {
    height: 150px;
  }

  .content3 h3,
  .region-introduction h3 {
    font-size: 1.2rem;
    padding: 8px 16px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }

  .region-introduction h4 {
    font-size: 1.1rem;
  }

  .region-introduction .img-box img {
    max-width: 90%;
  }

  #modalDialog23 .img-box img,
  .region-intro-button[id="openButton23"] .img-box img {
    max-width: 80%;
  }
}