html {
  scroll-behavior: smooth;
}
body {
  background-color: #f3f1eb;
  color: #242424;
  font-family: "Noto Sans JP", sans-serif;
}
header {
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}
@media print, screen and (max-width: 768px) {
  header {
    padding: 18px 12px;
  }
}
header h1 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0;
}
header h1 img {
  max-width: 242px;
  width: 100%;
}
header h1 span {
  display: inline-block;
  margin-left: 18px;
  margin-bottom: 4px;
  padding: 5px 14px;
  background-color: #ac8400;
  color: #ffffff;
  border-radius: 4px;
}
@media print, screen and (max-width: 768px) {
  header h1 img {
    max-width: 150px;
  }
  header h1 span {
    font-size: 0.85rem;
    margin-left: 10px;
    margin-bottom: 0;
    padding: 2px 8px;
  }
}
main {
  padding-top: 80px;
}
@media print, screen and (max-width: 768px) {
  main {
    padding-top: 60px;
  }
}
.container {
  max-width: 1440px;
  margin: 0 auto;
}
/*メニュー*/
.menu ul {
  display: flex;
  gap: 32px;
}
.menu ul li a {
  font-size: 1.2rem;
  color: #242424;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.menu ul li a:hover {
  color: #e66363;
}
@media print, screen and (max-width: 840px) {
  .menu-wrapper {
    position: relative;
  }
  .menu-icon {
    width: 46px;
    height: 46px;
    position: fixed;
    top: 8px;
    right: 12px;
    cursor: pointer;
    z-index: 3;
    display: inline-block;
    background-color: #e66363;
    padding: 8px 10px 8px 10px;
    border-radius: 50%;
  }
  .menu-icon span {
    display: block;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.4s;
  }
  /* ハンバーガーがXに変形 */
  #menu-toggle:checked + .menu-icon span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  #menu-toggle:checked + .menu-icon span:nth-child(2) {
    opacity: 0;
  }
  #menu-toggle:checked + .menu-icon span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* オーバーレイ背景 */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.4s;
    z-index: 1;
  }
  #menu-toggle:checked ~ .overlay {
    opacity: 1;
    pointer-events: auto;
  }
  /* メニュー本体（右から出す） */
  .menu {
    position: fixed;
    top: 0;
    right: -60%;
    /* ← 初期位置を右へ */
    width: 60%;
    height: 100%;
    background: #fff;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 2;
  }
  .menu ul {
    flex-direction: column;
    margin-top: 40px;
    padding: 32px;
  }
  .menu ul li a {
    font-size: 1.2rem;
    color: #242424;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }
  .menu ul li a:hover {
    color: #e66363;
  }
  #menu-toggle:checked ~ .menu {
    right: 0;
    /* ← 開いたときは右0へ */
  }
}
/*館内案内図*/
.map_section {
  background-color: #eeeae1;
  padding: 15px;
}
.map_container {
  display: flex;
  flex-wrap: wrap;
}
.map_container .map_area {
  flex: 1 1 500px;
  text-align: center;
}
.map_container .map_area img {
  max-width: 600px;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.map_container .info_area {
  flex: 1.2 1 620px;
  margin-top: 24px;
}
/* タブボタンのスタイル */
[role="tablist"] {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
@media print, screen and (max-width: 768px) {
  [role="tablist"] {
    grid-template-columns: 1fr 1fr;
  }
}
[role="tab"] {
  padding: 10px 15px;
  background: #ffffff;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  font-size: 1.2rem;
}
[role="tab"] span {
  background-color: #e66363;
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  margin-right: 8px;
}
@media print, screen and (max-width: 768px) {
  [role="tab"] {
    font-size: 1rem;
    padding: 8px 10px;
  }
}
/* 選択されている時のスタイル */
[role="tab"][aria-selected="true"] {
  background: #efdea6;
  border: none;
  font-weight: bold;
}
/* キーボード操作中のフォーカス可視化 */
[role="tab"]:focus-visible {
  outline: 3px solid #e66363;
  outline-offset: -3px;
}
/* コンテンツ部分 */
[role="tabpanel"] {
  background-color: #ffffff;
  padding: 32px;
}
@media print, screen and (max-width: 768px) {
  [role="tabpanel"] {
    padding: 20px;
  }
}
[role="tabpanel"] .map_content {
  display: flex;
  gap: 20px;
}
[role="tabpanel"] .map_content img {
  max-width: 340px;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
}
[role="tabpanel"] .map_content .map_text h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-weight: 500;
}
[role="tabpanel"] .map_content .map_text h3 span {
  background-color: #e66363;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  margin-right: 8px;
}
[role="tabpanel"] .map_content .map_text p {
  line-height: 1.6;
}
@media print, screen and (max-width: 768px) {
  [role="tabpanel"] .map_content {
    flex-direction: column;
  }
  [role="tabpanel"] .map_content img {
    max-width: 100%;
    aspect-ratio: auto;
  }
}
[role="tabpanel"] .map_scene_list {
  margin-top: 16px;
}
[role="tabpanel"] .map_scene_list h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}
[role="tabpanel"] .map_scene_list ul {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
[role="tabpanel"] .map_scene_list ul li {
  background-color: #e1e1e1;
  padding: 4px;
  border-radius: 4px;
}
/* hidden属性がついているものは強制非表示 */
[hidden] {
  display: none;
}
.panel {
  scroll-margin-top: 80px;
  /* 固定ヘッダーの高さ分くらいの数値を指定 */
}
/*閲覧方法*/
.howto_section {
  padding: 75px 16px;
  background: url(../img/bg.png);
  background-size: cover;
  background-position: center;
  text-align: center;
}
.howto_section h2 {
  font-size: 2rem;
  margin-bottom: 60px;
  font-weight: 500;
}
@media print, screen and (max-width: 768px) {
  .howto_section h2 {
    font-size: 1.6rem;
    margin-bottom: 40px;
  }
}
.howto_section .howto_content {
  max-width: 900px;
  display: flex;
  margin: 0 auto;
  text-align: left;
  justify-content: space-around;
}
.howto_section .howto_content .howto_pc {
  display: block;
}
.howto_section .howto_content .howto_pc img {
  max-width: 450px;
}
@media print, screen and (max-width: 768px) {
  .howto_section .howto_content .howto_pc {
    display: none;
  }
}
.howto_section .howto_content .howto_sp img {
  max-width: 280px;
}
.howto_section .howto_content .howto_txt {
  margin-bottom: 20px;
}
.howto_section .howto_content .howto_txt h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 500;
  color: #ffffff;
}
.howto_section .howto_content .howto_txt h3 span {
  background-color: #e66363;
  padding: 4px 8px;
  border-radius: 4px;
}
/*シーン一覧*/
.pano_viewer_container {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 40px 16px;
  gap: 32px;
}
@media print, screen and (max-width: 1100px) {
  .pano_viewer_container {
    grid-template-columns: 1fr;
  }
}
.pano_viewer_container .scene_list_area h2 {
  margin-bottom: 16px;
  font-size: 1.2rem;
  color: #ac8400;
}
.pano_viewer_container .scene_list_area h2 p {
  position: relative;
  margin-left: 16px;
}
.pano_viewer_container .scene_list_area h2 p::before {
  position: absolute;
  top: 0;
  left: -16px;
  content: "";
  display: inline-block;
  width: 5px;
  height: 28px;
  background-color: #ac8400;
  border-radius: 4px;
}
.pano_viewer_container .scene_list_area .scene_list_ul {
  overflow-y: scroll;
  max-height: 630px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media print, screen and (max-width: 1100px) {
  .pano_viewer_container .scene_list_area .scene_list_ul {
    max-height: 250px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 12px;
  }
}
.pano_viewer_container .scene_list_area .scene_list_ul li {
  background-color: #ffffff;
  margin-right: 10px;
  border-radius: 4px;
  display: flex;
}
.pano_viewer_container .scene_list_area .scene_list_ul li a {
  padding: 8px;
  display: block;
  overflow: hidden;
  width: 100%;
}
.pano_viewer_container .scene_list_area .scene_list_ul li a .flex_box {
  display: flex;
}
.pano_viewer_container .scene_list_area .scene_list_ul li a .flex_box img {
  max-width: 110px;
  margin-right: 8px;
  height: 100%;
  display: block;
  width: 100%;
}
@media print, screen and (max-width: 768px) {
  .pano_viewer_container .scene_list_area .scene_list_ul li a .flex_box img {
    max-width: 90px;
  }
}
.pano_viewer_container .scene_list_area .scene_list_ul li a .flex_box p {
  margin: 0;
}
.pano_viewer_container .scene_list_area .scene_list_ul li a .flex_box p span {
  display: block;
}
.pano_viewer_container iframe {
  max-width: 1100px;
  width: 100%;
  aspect-ratio: 16 / 10;
}
@media print, screen and (max-width: 768px) {
  .pano_viewer_container iframe {
    max-width: 100%;
    aspect-ratio: auto;
    height: 450px;
  }
}
.scene_ttl {
  font-size: 1.3rem;
  margin-bottom: 16px;
  font-weight: 600;
}
/*フッター*/
footer {
  text-align: center;
  padding: 50px;
}
.footer_logo {
  max-width: 240px;
  margin: 0 auto 24px auto;
}
.footer_logo p {
  margin-top: 8px;
  font-weight: bold;
  padding: 5px 14px;
  background-color: #ac8400;
  color: #ffffff;
  display: inline-block;
  border-radius: 4px;
}
