/* ================================
   モーダル（タイトルバーなし・×ボタンのみ）
   + レビュー表示（既存クラス名対応版）
   + 閉じるアニメーション追加
================================ */

/* ================================
   1. モーダル外枠
================================ */

.site-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-modal.is-open {
  display: flex;
  opacity: 1;
}

.site-modal.is-closing {
  opacity: 0;
}

.site-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.site-modal__container {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  z-index: 1;
  animation: modalSlideIn 0.3s ease;
  overflow: hidden; /* 追加 */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-modal.is-closing .site-modal__container {
  animation: modalSlideOut 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes modalSlideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-50px);
    opacity: 0;
  }
}

/* ×ボタン（右上固定） */
.site-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.site-modal__close:hover,
.site-modal__close:focus {
  background-color: #fff;
  color: #000;
  transform: scale(1.1);
  outline: none;
}

.site-modal__close:active {
  transform: scale(0.95);
}

/* コンテンツ部分 */
.site-modal__body {
  flex: 1;
  overflow: auto;
  position: relative;
  background: #fff;
  border-radius: 8px;
  width: 100%;
  min-height: 0; /* 追加: flexアイテムの高さを正しく計算 */
}

#site-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: none; /* デフォルトで非表示 */
  border-radius: 8px;
}

#site-modal-iframe:not([src="about:blank"]) {
  display: block; /* iframe使用時のみ表示 */
}

#site-modal-content {
  padding: 3rem; /* 余白を最適化 */
}

#site-modal-content:not([hidden]) {
  display: block;
}

/* スクロールバーのスタイル（Webkit系ブラウザ） */
.site-modal__body::-webkit-scrollbar {
  width: 8px;
}

.site-modal__body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.site-modal__body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.site-modal__body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* アクセシビリティ: フォーカス表示 */
.site-modal__close:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* モーダルが開いている時、背景のスクロールを無効化 */
html:has(.site-modal.is-open) {
  overflow: hidden;
}

/* ================================
   2. レビュー表示スタイル（既存クラス名）
================================ */

/* モーダル内のレビューページ */
#site-modal-content .review-single-page {
  padding: 0;
  margin: 0;
}

#site-modal-content .review-single {
  max-width: 100%;
}

/* レビューヘッダー（既存の.info.flexを使用） */
#site-modal-content .info.flex {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

#site-modal-content .info.flex .left {
  flex-shrink: 0;
}

#site-modal-content .info.flex .review-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#site-modal-content .info.flex .right {
  flex: 1;
}

#site-modal-content .info.flex .uppername {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  color: #333;
}

/* 星と投稿日を横並び */
#site-modal-content .info.flex .lower {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#site-modal-content .info.flex .review-star {
  font-size: 0.8rem;
  color: #f8b500;
  line-height: 1;
}

#site-modal-content .info.flex .month {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

/* レビュー本文 */
#site-modal-content .review-content {
  line-height: 1.8;
  font-size: 0.8rem;
  color: #333;
  margin-bottom: 1.5rem;
}

#site-modal-content .review-content p {
  margin-bottom: 1rem;
}

#site-modal-content .review-content p:last-child {
  margin-bottom: 0;
}

#site-modal-content .review-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

/* モーダル内では不要な要素を非表示 */
#site-modal-content .review-languages,
#site-modal-content .review-navigation,
#site-modal-content .review-back-link {
  display: none !important;
}

/* ================================
   3. 通常ページ用のレビュースタイル
   （モーダル外で直接アクセスした場合）
================================ */

/* 言語タグ（通常表示のみ） */
.review-languages {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.review-languages-label {
  font-weight: 600;
  color: #666;
}

.review-language-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #333;
}

/* ナビゲーション（通常表示のみ） */
.review-navigation {
  margin-top: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.nav-previous,
.nav-next {
  flex: 1;
}

.nav-next {
  text-align: right;
}

.nav-previous a,
.nav-next a {
  display: block;
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

.nav-previous a:hover,
.nav-next a:hover {
  color: #f8b500;
}

.nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.nav-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
}

/* 一覧に戻るボタン（通常表示のみ） */
.review-back-link {
  text-align: center;
  margin-top: 2rem;
}

/* ================================
   4. レスポンシブ対応
================================ */

@media screen and (max-width: 768px) {
  .site-modal__container {
    width: 95%;
    max-height: 95vh;
    border-radius: 12px;
  }

  .site-modal__close {
    top: 12px;
    right: 12px;
    font-size: 1.75rem;
    width: 36px;
    height: 36px;
  }

  #site-modal-content {
    padding: 1.25rem;
  }

  #site-modal-iframe {
    border-radius: 12px;
  }

  /* レビュー表示 */
  #site-modal-content .info.flex {
    gap: 0.75rem;
  }

  #site-modal-content .info.flex .review-icon {
    width: 50px;
    height: 50px;
  }

  #site-modal-content .info.flex .uppername {
    font-size: 1.125rem;
  }

  #site-modal-content .info.flex .review-star {
    font-size: 1.125rem;
  }

  #site-modal-content .info.flex .month {
    font-size: 0.8125rem;
  }

  /* 通常ページのナビゲーション */
  .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav-next {
    text-align: left;
  }
}

@media screen and (max-width: 480px) {
  #site-modal-content {
    padding: 1rem;
  }

  #site-modal-content .info.flex .uppername {
    font-size: 1rem;
  }

  #site-modal-content .review-content {
    font-size: 0.9375rem;
  }
}

/* ================================
   投稿モーダル表示用CSS
   site-modal.cssに追加
================================ */

/* モーダル内の投稿ページ */
#site-modal-content .site-main {
  padding: 0;
  margin: 0;
}

#site-modal-content article {
  max-width: 100%;
}

/* 投稿日 */
#site-modal-content .entry-date,
#site-modal-content .post-date,
#site-modal-content time {
  display: block;
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* 投稿タイトル */
#site-modal-content .entry-title,
#site-modal-content h1.entry-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
  margin: 0 0 2rem 0;
  padding: 0;
}

/* 投稿本文 */
#site-modal-content .entry-content {
  line-height: 1.9;
  font-size: 15px;
  color: #333;
}

#site-modal-content .entry-content p {
  margin-bottom: 1.5rem;
}

#site-modal-content .entry-content p:last-child {
  margin-bottom: 0;
}

/* 画像 */
#site-modal-content .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem auto;
  display: block;
}

#site-modal-content .entry-content figure {
  margin: 2rem 0;
}

#site-modal-content .entry-content figcaption {
  font-size: 0.875rem;
  color: #666;
  text-align: center;
  margin-top: 0.5rem;
}

/* 見出し */
#site-modal-content .entry-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f0f0;
  color: #333;
}

#site-modal-content .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: #333;
}
#site-modal-content .entry-content .headline2 {
  padding-bottom: 0.5em;
  border-bottom: 1px solid #333;
}
#site-modal-content .entry-content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.5rem 0 1rem 0;
  color: var(--color-vivid-orange);
      border-left: 5px solid #000;
    padding-left: 0.7em;
}

/* リスト */
#site-modal-content .entry-content ul,
#site-modal-content .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}
.list-upper {
    display: inline-flex;
    justify-content: flex-start;
    align-items: stretch;
}
.list-upper .title {
  font-weight: bolder;
}
.list-upper .price {
  font-weight: bolder;
  color : var(--color-vivid-orange);
}
#site-modal-content .entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* 引用 */
#site-modal-content .entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border-left: 4px solid #ddd;
  font-style: italic;
  color: #666;
}

/* コード */
#site-modal-content .entry-content code {
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

#site-modal-content .entry-content pre {
  background: #f5f5f5;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

#site-modal-content .entry-content pre code {
  background: none;
  padding: 0;
}

/* テーブル */
#site-modal-content .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

#site-modal-content .entry-content th,
#site-modal-content .entry-content td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
}

#site-modal-content .entry-content th {
  background: #f9f9f9;
  font-weight: 700;
}

/* モーダル内では不要な要素を非表示 */
#site-modal-content .entry-meta,
#site-modal-content .entry-footer,
#site-modal-content .post-navigation,
#site-modal-content .comments-area,
#site-modal-content .related-posts,
#site-modal-content .post-tags,
#site-modal-content .post-categories,
#site-modal-content .author-info,
#site-modal-content .share-buttons {
  display: none !important;
}
.entry-thumb {
    max-width: 80%;
    width: 100%;
    margin: 50px auto 100px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  #site-modal-content .entry-title,
  #site-modal-content h1.entry-title {
    font-size: 1.25rem;
  }

  #site-modal-content .entry-content {
    font-size: 0.9375rem;
  }

  #site-modal-content .entry-content h2 {
    font-size: 1.25rem;
  }

  #site-modal-content .entry-content h3 {
    font-size: 1.125rem;
  }

  #site-modal-content .entry-content h4 {
    font-size: 1rem;
  }
}

@media screen and (max-width: 480px) {
  #site-modal-content .entry-date,
  #site-modal-content .post-date,
  #site-modal-content time {
    font-size: 0.8125rem;
  }

  #site-modal-content .entry-title,
  #site-modal-content h1.entry-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }

  #site-modal-content .entry-content {
    font-size: 0.875rem;
  }
}

/* ================================
   メニュー項目モーダル表示用CSS
   site-modal.cssに追加
================================ */

/* モーダル内のメニューページ */
#site-modal-content .menu-single-page {
  padding: 0;
  margin: 0;
}

#site-modal-content .menu-single {
  max-width: 100%;
}

/* メニュータイトル */
#site-modal-content .menu-single .entry-title {
font-size: 1.5rem;
    font-family: var(--font-mincho);
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin: 0 0 2rem 0;
  padding: 0;
  text-align: left;
}

/* メニュー画像 */
#site-modal-content .menu-single .entry-thumb {
  margin-bottom: 5rem;
}

#site-modal-content .menu-single .entry-thumb img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* メニュー本文 */
#site-modal-content .menu-single .entry-content {
  line-height: 1.9;
  font-size: 15px;
  font-family: var(--font-mincho);
  color: #333;
}

#site-modal-content .menu-single .entry-content p {
  margin-bottom: 1.5rem;
}

#site-modal-content .menu-single .entry-content p:last-child {
  margin-bottom: 0;
}

/* 見出し（メニューセクション）*/
#site-modal-content .menu-single .entry-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 3rem 0 2rem 0;
  padding-left: 1rem;
  padding-bottom: 0;
  border-left: 4px solid #f8b500;
  border-bottom: none;
  color: #f8b500;
}

#site-modal-content .menu-single .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 1rem 0;
  color: #333;
}

/* リスト */
#site-modal-content .menu-single .entry-content ul,
#site-modal-content .menu-single .entry-content ol {
  margin: 1.5rem 0;
  padding-left: 0!important;
}

#site-modal-content .menu-single .entry-content li {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  border-bottom: #333 solid 1px;
}
#site-modal-content .menu-single .entry-content li:last-child {
  border-bottom: 0;
}

/* モーダル内では不要な要素を非表示 */
#site-modal-content .menu-price,
#site-modal-content .menu-languages,
#site-modal-content .menu-navigation,
#site-modal-content .menu-back-link,
#site-modal-content .entry-meta {
  display: none !important;
}

/* ================================
   通常ページ用のメニュースタイル
================================ */

/* メニュー個別ページ全体 */
.menu-single-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.menu-single {
  background: #fff;
  padding: 3rem 0;
}

/* メニュータイトル */
.menu-single .entry-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.4;
  color: #333;
  margin: 0 0 2rem 0;
  text-align: left;
}

/* メニュー画像 */
.menu-single .entry-thumb {
  margin-bottom: 2rem;
}

.menu-single .entry-thumb img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* メニュー本文 */
.menu-single .entry-content {
  line-height: 1.9;
  font-size: 1.125rem;
  color: #333;
  margin-bottom: 3rem;
}

/* 価格 */
.menu-price {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.price-label {
  font-weight: 600;
  color: #666;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8b500;
}

/* 言語タグ */
.menu-languages {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.menu-languages-label {
  font-weight: 600;
  color: #666;
  font-size: 0.9rem;
}

.menu-language-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #333;
}

/* ナビゲーション */
.menu-navigation {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.menu-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.menu-navigation .nav-previous,
.menu-navigation .nav-next {
  flex: 1;
}

.menu-navigation .nav-next {
  text-align: right;
}

.menu-navigation .nav-previous a,
.menu-navigation .nav-next a {
  display: block;
  text-decoration: none;
  color: #333;
  transition: all 0.3s;
  padding: 1rem;
  border-radius: 8px;
}

.menu-navigation .nav-previous a:hover,
.menu-navigation .nav-next a:hover {
  background: #f9f9f9;
  color: #f8b500;
}

.menu-navigation .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.menu-navigation .nav-title {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* 一覧に戻るボタン */
.menu-back-link {
  text-align: center;
  margin-top: 3rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .menu-single-page {
    padding: 2rem 1rem;
  }

  .menu-single {
    padding: 2rem;
  }

  .menu-single .entry-title {
    font-size: 1.5rem;
  }

  .menu-single .entry-content {
    font-size: 1rem;
  }

  .menu-navigation .nav-links {
    flex-direction: column;
    gap: 1.5rem;
  }

  .menu-navigation .nav-next {
    text-align: left;
  }

  #site-modal-content .menu-single .entry-title {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .menu-single-page {
    padding: 1.5rem 1rem;
  }

  .menu-single {
    padding: 1.5rem;
  }

  .menu-single .entry-title {
    font-size: 1.25rem;
  }

  .menu-single .entry-content {
    font-size: 0.9375rem;
  }

  #site-modal-content .menu-single .entry-title {
    font-size: 1.25rem;
  }

  #site-modal-content .menu-single .entry-content {
    font-size: 0.9375rem;
  }
}
