/* ===========================
   style.css - 完全統合版（header nav ul完全対応）
   =========================== */

/* 基本リセット・ユーティリティ */
:root {
  /* カスタムプロパティ（必要に応じて追加） */
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "メイリオ", Meiryo, "M PLUS Rounded 1c", sans-serif;
  scroll-behavior: smooth;
  background: #fffcf0;
  color: #222;
  line-height: 1.6;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
}

/* テキスト共通 */
p, ul, ol, li {
  margin: 0 0 10px 0;
}

body p, html p {
  font-size: 18px;
  line-height: 1.75em;
  font-weight: 400;
  padding: 0;
  margin: 10px 0;
  transform: rotate(0.03deg);
}

@media screen and (max-width: 768px) {
  body p, html p {
    font-size: 14px;
  }
}

/* 汎用クラス */
.p21 {
  font-size: 21px;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .p21 {
    font-size: 16px;
  }
}

.mt40 {
  margin-top: 40px;
}

a {
  text-decoration: none;
  color: #007bff;
}

a:hover {
  text-decoration: none;
}

/* PC / SP 表示切替 */
.pc {
  display: block;
}

@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
}

.sp {
  display: none;
}

@media screen and (max-width: 768px) {
  .sp {
    display: block;
  }
}

/* ===========================
   ヘッダー（ハンバーガーメニュー3項目sameレベル・完全版）
   =========================== */
header {
  width: 100%;
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  z-index: 9999;
}

header .logo {
  width: 100%;
  padding: 20px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
}

header .logo img {
  width: 277px;
}

@media screen and (max-width: 768px) {
  header .logo img {
    width: 70%;
  }
}

header nav {
  max-width: 1000px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
  text-align: right;
  position: relative;
}

header nav .menu-off {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* ハンバーガーボタン（<a>タグ対応） */
header nav .menu-off a#menu-off {
  width: 72px !important;
  height: 72px !important;
  background: url("img/menu_off.png") no-repeat center/contain !important;
  display: block !important;
  cursor: pointer !important;
  transition: background-image 0.3s ease !important;
  box-sizing: border-box !important;
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  header nav .menu-off a#menu-off {
    background-size: 60px 60 px!important;
    background-position: center !important;
  }
}

  header nav .menu-off.active a#menu-off {
    background-size: 60px 60px !important;
    background-position: center !important;
  background: url("img/menu_on.png") no-repeat center/contain !important;
}


/* ★★★ ハンバーガーメニュー：3項目sameレベル＋strong強調（最終版） ★★★ */
header nav ul#menu {
  position: absolute;
  top: 95px;
  right: 15px;
  text-align: left !important;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  min-width: 300px;
  max-height: 420px;
  display: none;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  list-style: none;
  border: 1px solid rgba(69,201,122,0.15);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}

/* 全メニュー項目（統一デザイン：menu-main / menu-item.external） */
header nav ul#menu > li.menu-main,
header nav ul#menu > li.menu-item.external {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(69,201,122,0.2);
  font-weight: 600 !important;
  font-size: 14px;
  line-height: 1.3;
  text-align: left !important;
  margin: 0;
  box-sizing: border-box;
  background: none;
}

header nav ul#menu > li.menu-main:last-child,
header nav ul#menu > li.menu-item.external:last-child {
  border-bottom: none;
}

header nav ul#menu > li.menu-main strong,
header nav ul#menu > li.menu-item.external a {
  display: block;
  color: #004080 !important;
  text-decoration: none;
  width: 100%;
  padding: 0;
  font-weight: 700 !important;
  transition: all 0.2s ease;
}

header nav ul#menu > li.menu-main:hover,
header nav ul#menu > li.menu-item.external:hover {
  background: rgba(0, 123, 255, 0.05);
}

header nav ul#menu > li.menu-main strong a {
  color: #004080 !important;
}

header nav ul#menu > li.menu-main strong a:hover {
  color: #0066cc !important;
}

header nav ul#menu > li.special-planning strong {
  display: block;
  padding-bottom: 15px !important; /* ★余白ここに追加 */
}

header nav ul#menu > li.special-planning .submenu {
  margin-top: 5px !important;
}

/* 区切り線（完全非表示） */
header nav ul#menu > li.menu-divider {
  display: none !important;
}

/* サブメニュー（青統一・コンパクト） */
header nav ul#menu .submenu {
  display: block !important;
  background: rgba(248, 250, 255, 0.9);
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 123, 255, 0.2);
  list-style: none;
}

header nav ul#menu .submenu li {
  padding: 10px 20px 10px 28px !important;
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.25;
  position: relative;
  transition: background 0.2s ease;
}

header nav ul#menu .submenu li:last-child {
  border-bottom: none;
}

header nav ul#menu .submenu li::before {
  content: "•";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #0066cc !important;
  font-weight: bold;
  font-size: 14px;
}

header nav ul#menu .submenu li a {
  color: #0066cc !important;
  padding-left: 6px !important;
  display: block;
  text-decoration: none;
}

header nav ul#menu .submenu li:hover {
  background: rgba(0, 123, 255, 0.08) !important;
}

/* SP調整 */
@media screen and (max-width: 768px) {
  header nav ul#menu {
    min-width: 270px;
    right: 10px;
  }
  
  header nav ul#menu > li.menu-main,
  header nav ul#menu > li.menu-item.external {
    padding: 11px 18px;
    font-size: 13.5px;
  }
  
  header nav ul#menu .submenu li {
    padding: 9px 18px 9px 26px;
    font-size: 13px;
  }
}

/* ===========================
   コンテンツラップ／共通
   =========================== */
.contents-warp {
  width: auto;
  max-width: 1000px;
  margin: 20px auto 0 !important;
  padding-top: 0 !important;
}

@media screen and (max-width: 768px) {
  .contents-warp {
    width: 90%;
    margin: 350px auto 0 5%;
    padding-top: 15px;
  }
}

.contents-warp .link-btn {
  width: 350px;
  margin: 0 auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .contents-warp .link-btn {
    width: 90%;
    margin: 0 5%;
  }
}

.contents-warp .link-btn img {
  width: 60%;
}

.contents-warp .main {
  margin: 0 0 50px 0;
}

.contents-warp .main img {
  width: 100%;
}

.contents-warp .page-link {
  margin-top: -100px;
  padding-top: 100px;
}

.contents-warp section {
  max-width: 700px;
  margin: 0 auto;
}

.contents-warp section h2 {
  padding: 0;
  margin: 0 0 40px 0;
}

.contents-warp section h2 img {
  width: 100%;
}

.contents-warp section .sp-events {
  padding: 0;
  margin: 0 0 40px 0;
}

.contents-warp section .sp-events img {
  width: 100%;
}

.contents-warp section .line {
  margin: 50px 0;
}

.contents-warp section .line img {
  width: 100%;
}

/* ===========================
   パンダ写真＋動画エリア
   =========================== */
.panda-media-area {
  max-width: 900px;
  margin: 30px auto;
}

.panda-photos {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.photo-item {
  flex: 1;
  max-width: 550px;
  text-align: center;
}

.photo-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.photo-caption {
  margin-top: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #004080;
}

@media screen and (max-width: 768px) {
  .panda-photos {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .photo-item {
    max-width: 800px;
  }
  
  .photo-item img {
    height: 350px;
  }
}

/* ===========================
   YouTube埋め込み（レスポンシブ）
   =========================== */
.youtube_wrapper,
.youtube-area .youtube_wrapper,
.contents-warp .youtube_wrapper {
  position: relative;
  width: 98%;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
}

.youtube_wrapper:before,
.youtube-area .youtube_wrapper:before,
.contents-warp .youtube_wrapper:before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9比率 */
  height: 0;
}

.youtube_content,
.contents-warp .youtube_content,
.youtube-area .youtube_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contents-warp .youtube-flava {
  text-align: right;
  width: 90%;
  margin: 10px auto 0 auto;
  font-size: 14px;
}

@media screen and (max-width: 768px) {
  .youtube_wrapper,
  .youtube-area .youtube_wrapper,
  .contents-warp .youtube_wrapper {
    width: 98%;
    max-width: none;
  }
}

/* ===========================
   画像エリア
   =========================== */
.contents-warp .image-area {
  width: 90%;
  margin: 0 auto 40px;
}

.contents-warp .image-area img {
  width: 100%;
}

/* ===========================
   セクションボックス・テーブル
   =========================== */
.section-box {
  background: #fff;
  border-radius: 6px;
  padding: 15px 20px;
  box-shadow: 0 0 5px #ccc;
  margin-bottom: 40px;
}

.table-of-contents {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px 20px;
  margin-bottom: 30px;
  border-radius: 5px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.table-of-contents h2 {
  font-size: 1.4em;
  color: #004080;
  margin-top: 0;
  margin-bottom: 15px;
  border-left: none;
  padding-left: 0;
  text-align: center;
}

.table-of-contents ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.table-of-contents ul li {
  margin-bottom: 8px;
}

.table-of-contents ul li a {
  color: #004080;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 5px 0;
  border-bottom: 1px dotted #eee;
}

.table-of-contents ul li:last-child a {
  border-bottom: none;
}

.table-of-contents ul li a:hover {
  color: #98b1b3;
  text-decoration: none;
}

.toc-title {
  font-weight: bold;
  color: #333333;
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #eee;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}

th, td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: center;
}

th {
  background: #e9ecef;
  font-weight: bold;
}

ul {
  font-size: 1em;
  line-height: 1.8em;
  margin-bottom: 25px;
  padding-left: 20px;
}

li {
  margin-bottom: 5px;
}

/* ===========================
   強調・補助クラス
   =========================== */
.highlight {
  color: #d9534f;
  font-weight: bold;
}

.note {
  font-size: 0.9em;
  color: #555;
  margin-top: -10px;
  margin-bottom: 20px;
}

.button-link {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 12px 30px;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  text-decoration: none;
  margin: 40px auto 60px;
  display: block;
  max-width: 300px;
}

.button-link:hover {
  background: #0056b3;
}

/* ボタン風リンク */
.simple-link {
  background: linear-gradient(135deg, #6bb6ff, #2e5fa0);
  color: white !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,123,255,0.3);
  display: inline-block;
  text-decoration: none;
}

.simple-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,123,255,0.4);
  color: white !important;
}

@media (max-width: 600px) {
  body {
    padding: 0 10px;
  }
  
  table, th, td {
    font-size: 0.9em;
  }
}

/* ===========================
   ページトップボタン
   =========================== */
.pagetop {
  z-index: 9999;
}

.pagetop a {
  position: fixed;
  right: 20px;
  bottom: -70px;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  background-color: rgba(76, 175, 80, 0.15);
  color: #333;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  font-family: inherit;
}

.pagetop a:hover {
  background-color: rgba(0, 123, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

.pagetop.on a {
  bottom: 25px;
}

@media screen and (max-width: 767px) {
  .pagetop a {
    right: 15px;
    width: 55px;
    height: 55px;
    font-size: 10px;
    bottom: -65px;
  }
  
  .pagetop.on a {
    bottom: 20px;
  }
}

/* ハンバーガーメニュー視覚改善 */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#menu-off {
  background: none;
  border: none;
  cursor: pointer;
}

#menu-off:focus {
  outline: 2px solid #007bff;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

/* =========================
   h2 デザイン候補（3種）
   ========================= */
h2 {
  margin-top: 40px;
  margin-bottom: 20px;
  line-height: 1.5em;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.h2-formal {
  font-size: 1.5rem;
  color: #003d73;
  padding: 8px 0;
  margin-bottom: 18px;
  text-align: center;
  position: relative;
}

.h2-formal::after {
  content: "";
  display: block;
  width: 160px;
  height: 6px;
  margin: 10px auto 0 auto;
  background: linear-gradient(90deg, rgba(0,120,215,0.8), rgba(0,120,215,0.2));
  border-radius: 4px;
}

@media (max-width: 768px) {
  .h2-formal { font-size: 1.2rem; }
.h2-formal::after {
  display: none;
}
}

.reservation-banner {
  width: 55%;
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .reservation-banner {
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  /* 既存のスタイル... */

  /* SP用見出し画像切り替え */
  h2.h2-formal img[src*="header_photospot"] { content: url("img/header_photospot_SP.png"); }
  h2.h2-formal img[src*="header_panel"] { content: url("img/header_panel_SP.png"); }
  h2.h2-formal img[src*="header_yosegaki"] { content: url("img/header_yosegaki_SP.png"); }
  h2.h2-formal img[src*="header_message"] { content: url("img/header_message_SP.png"); }
  h2.h2-formal img[src*="header_15years"] { content: url("img/header_15years_SP.png"); }
}

@media screen and (max-width: 768px) {
  img[src*="banner_sendmessage"] {
    width: 240px !important;
    max-width: 90vw !important;
    height: auto !important;
  }
}

@media screen and (max-width: 768px) {
	.contents-warp p {
    font-size: 16px !important;
  }
}