/*
 Theme Name: MUSUBI Original Theme v2
 Theme URI: https://example.com/musubi
 Author: LIFE Inc.
 Description: MUSUBI -結- オリジナルブロックテーマ（v2）。クラシック版 MUSUBI Original Theme の後継。
 Version: 2.0.0
 License: GNU General Public License v2 or later
 License URI: https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain: musubi
*/

/* ベースタイポグラフィ・レイアウト */
html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--musubi-body-font, "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif);
  font-size: var(--body-font-size, 17px);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-gray);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ヘッダー・メイン・フッターを隙間なく連結（ルートの blockGap 32px を無効化） */
body .wp-site-blocks > * {
  margin-block-start: 0;
}

/* 余白のレスポンシブ切替（本番の実測値をデジタル庁基準の8の倍数にスナップ）
   PC: セクション80px / ヒーロー80px → ≤1024px: 上下56px・ヒーロー40px → ≤600px: ヒーロー16px
   ※ body で再宣言することでグローバルスタイルの :root 定義を継承段階で上書き */
@media (max-width: 1024px) {
  body {
    --wp--preset--spacing--50: 32px;
    --wp--preset--spacing--60: 40px;
    --wp--preset--spacing--70: 56px;
    --wp--preset--spacing--80: 40px;
  }

  /* セクション左右は本番28px相当 → 8の倍数24pxに補正（上下56pxと分離するため個別指定） */
  .front-page-sections > .wp-block-group.alignfull {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 600px) {
  body {
    --wp--preset--spacing--80: 16px;
  }
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--site-header-height);
  padding: 10px var(--section-pad-x, 80px);
  box-sizing: border-box;
}

.site-logo-wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex-shrink: 0;
}

.site-header-end {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-header .btn-gold.site-header-shop {
  white-space: nowrap;
}

.site-header-border {
  height: 1px;
  background-color: var(--border-light);
}

/* ナビのハンバーガー切替をコア既定の600pxから960pxへ拡大
   （600〜960pxでタイトル＋ナビ5項目＋ボタンが横幅に収まらないため） */
@media (max-width: 960px) {
  .site-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }

  .site-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }

  /* ハンバーガーを ONLINE SHOP の右へ（タイトル左・ボタン＋ハンバーガー右寄せ） */
  .site-header .wp-block-buttons {
    order: 2;
    margin-left: auto;
  }

  .site-header .wp-block-navigation {
    order: 3;
  }

  /* ヘッダーを薄く: 行の上下余白とボタンの高さを縮小（インライン指定上書きのため !important） */
  .site-header .wp-block-group.is-layout-flex {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }

  .site-header .wp-block-button__link {
    padding: 8px 18px !important;
    font-size: 13px !important;
  }

  /* 開いたメニュー: 本番（クラシック版）同様のヘッダー下シート型
     暗い背景の上に白いシート、リンクは罫線付きの縦積みリスト */
  .site-header .wp-block-navigation__responsive-container.has-modal-open {
    top: 52px;
    background-color: rgba(0, 0, 0, 0.35) !important;
    padding: 0;
  }

  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__responsive-dialog {
    background: var(--bg-white);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 4px 0 12px;
  }

  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation__container {
    display: block;
    width: 100%;
  }

  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item {
    display: block;
    border-bottom: 1px solid var(--border-light);
  }

  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content {
    display: block;
    padding: 16px 24px;
    font-size: 15px;
    letter-spacing: 0.18em;
    color: var(--text-primary);
  }

  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content:hover,
  .site-header .wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation-item__content:focus-visible {
    background: var(--bg-gray);
    text-decoration: none;
  }

  /* 閉じる(×)ボタンはシート右上に小さく */
  .site-header .wp-block-navigation__responsive-container-close {
    padding: 10px 14px;
    color: var(--main-navy);
  }
}

/* スマホ幅: サイトタイトルとボタンを縮小して1行に収める
   （両者ともインライン/グローバルスタイル指定のため !important で上書き） */
@media (max-width: 600px) {
  .site-header .wp-block-site-title {
    font-size: 18px !important;
    letter-spacing: 0.2em !important;
  }

  .site-header .wp-block-button__link {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
}

.site-footer-inner {
  padding: 50px clamp(20px, 5vw, 120px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  box-sizing: border-box;
}

/* カラー・トークン（簡易版） */
:root {
  --main-navy: #192159;
  --bg-white: #ffffff;
  --bg-gray: #f5f5f3;
  --accent-gold: #b8956a;
  --accent-wood: #8b7355;
  --text-primary: #2c2c2c;
  --text-secondary: #8a8a8a;
  --border-light: #e0e0dc;
  --site-header-height: 80px;
}

/* フロントページ: セクション背景を白・グレーで自動交互
   子要素カウント（nth-child）:
     1: wp-block-cover（ヒーロー）← 対象外
     2: NEWS  → 白
     3: CONCEPT → グレー
     4: FEATURED → 白
     5: INSTAGRAM → グレー
     6: ACCESS → 白
   !important でサイトエディター保存版の has-bg-* を上書き */
.front-page-sections > .wp-block-group:nth-child(even) {
  background-color: var(--bg-white) !important;
}

.front-page-sections > .wp-block-group:nth-child(odd) {
  background-color: var(--bg-gray) !important;
}

/* フルワイドセクションが背景色を端まで伸ばせるよう、
   alignfull に負のマージンで全幅へ対応 */
.front-page-sections > .wp-block-group.alignfull {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

.container-wide {
  width: 100%;
  max-width: var(--container-width, 1440px);
  margin: 0 auto;
}

/* おしらせ一覧（ブロック版 archive-news.html）: 日付＋タイトル＋任意サムネのカード行 */
.news-archive .news-card {
  align-items: center;
}

.news-archive .news-card__thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  overflow: hidden;
}

.news-archive .news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.news-archive .news-card__body {
  flex: 1 1 auto;
  min-width: 0;
}

.news-archive .news-card__date {
  color: var(--text-secondary);
}

.news-archive .news-card__title a {
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.news-archive .news-card__title a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

/* ブロックのページネーション */
.news-archive .wp-block-query-pagination {
  gap: 16px;
}

.news-archive .wp-block-query-pagination a:hover {
  color: var(--accent-gold);
}

@media (max-width: 600px) {
  .news-archive .news-card__thumb {
    width: 84px;
    height: 60px;
  }
}

.section-padding {
  padding: var(--section-pad-y, 80px) var(--section-pad-x, 80px);
}

.bg-white {
  background-color: var(--bg-white);
}

.bg-gray {
  background-color: var(--bg-gray);
}

.text-gold {
  color: var(--accent-gold);
}

.text-navy {
  color: var(--main-navy);
}

.label-en {
  margin: 0;
  font-weight: inherit;
  font-size: 12px;
  letter-spacing: 0.3em;
}

.section-title {
  font-family: var(--musubi-heading-font, "Shippori Mincho", "Hiragino Mincho ProN", serif);
  font-size: 23px;
  letter-spacing: 0.12em;
}

/* 見出し類の改行を文節単位に（BudouX 内蔵の Chrome/Edge で有効。
   未対応ブラウザは通常の改行になるだけで無害。手動 <br> はそのまま優先される） */
h1,
h2,
h3,
.news-card__title {
  word-break: auto-phrase;
}

/* CONCEPT（about）本文: 手動 <br> の行が画面幅を超えたとき、文節単位で折り返す */
#about p {
  word-break: auto-phrase;
}

/* ヒーロー（スマホ）: 本番仕様 = 450px固定の切り抜き＋右寄せでタイトル・サブコピー両方表示。
   本番同様に文字を縮小（21px/13px・字間0.08em）して手動<br>の改行が収まるようにする。
   インライン・プリセットクラスの上書きのため !important を使用 */
@media (max-width: 600px) {
  .front-hero h1 {
    font-size: 21px !important;
    letter-spacing: 0.08em !important;
  }

  .front-hero p {
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
    word-break: auto-phrase;
  }
}

.site-header a:hover,
.site-footer a:hover {
  text-decoration: none;
  opacity: 0.86;
}

.header-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.header-nav ul {
  gap: 24px;
}

.footer-nav ul {
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer .footer-nav-list a {
  color: #ffffffcc;
}

.site-footer .footer-shop-link {
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.22em;
}

/* フッターメニュー（任意のサブメニュー） */
.footer-nav-list .sub-menu {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-nav-list .sub-menu .sub-menu {
  margin-top: 6px;
}

.footer-nav-list .sub-menu a {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #ffffffaa;
}

.site-footer .footer-nav-list .sub-menu a:hover {
  color: #fff;
  opacity: 1;
}

.footer-nav-list > .menu-item-has-children {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .footer-shop-link:hover {
  color: #e8d4b0;
  opacity: 1;
}

/* ボタン共通ホバー: 通常 accent-gold → ホバー accent-wood（白文字維持）
   wp:button のプリセット色クラスが !important 付きで出力されるため、
   それを上書きする目的で !important を使用。今後追加するボタンにも自動適用 */
.wp-element-button,
.wp-block-button__link {
  transition: background-color 0.2s ease;
}

.wp-element-button:hover,
.wp-element-button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
  background-color: var(--accent-wood, #8b7355) !important;
  color: var(--bg-white, #ffffff) !important;
  opacity: 1;
  text-decoration: none;
}

/* セレクトブロックのCTA: 配色・余白・ホバーは theme.json と上記共通ルールに委ねる */
.musubi-select-block__button {
  display: inline-block;
  text-decoration: none;
}

/* セレクト: 1行の横スクロールカルーセル
   デスクトップ=収まる枚数を表示して溢れた分は前後ボタン/スクロールで移動、
   スマホ(600px以下)=1枚表示でスワイプ移動 */
.select-carousel-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0 16px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
}

.select-carousel {
  min-width: 0;
  width: 100%;
}

.select-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 4px 0 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

.select-carousel__track::-webkit-scrollbar {
  height: 6px;
}

.select-carousel__track::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 3px;
}

.select-carousel__track .select-item {
  flex: 0 0 clamp(220px, 20vw, 280px);
  scroll-snap-align: start;
}

.select-carousel__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background: var(--bg-white);
  color: var(--main-navy);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.select-carousel__btn:hover,
.select-carousel__btn:focus-visible {
  background: var(--accent-gold);
  color: var(--bg-white);
  outline: none;
}

@media (max-width: 600px) {
  .select-carousel-wrap {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 0 8px;
  }

  .select-carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 21px;
  }

  .select-carousel__track {
    gap: 16px;
  }

  .select-carousel__track .select-item {
    flex-basis: 100%;
    max-width: 100%;
  }
}

/* トップNEWS: スマホのみ1行の横スクロールカルーセル（1枚表示・スワイプ移動）
   デスクトップは 3カラムのカードグリッドのまま */
@media (max-width: 600px) {
  ul.cards-grid-3 {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    padding: 4px 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border-light) transparent;
  }

  ul.cards-grid-3::-webkit-scrollbar {
    height: 6px;
  }

  ul.cards-grid-3::-webkit-scrollbar-thumb {
    background: var(--border-light);
    border-radius: 3px;
  }

  .cards-grid-3 > li {
    flex: 0 0 100%;
    max-width: 100%;
    scroll-snap-align: start;
  }
}

.btn-gold {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--musubi-button-radius, 2px);
  border: 1px solid var(--accent-gold);
  background: var(--accent-gold);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.2em;
}

button.btn-gold {
  cursor: pointer;
  font-family: inherit;
}

.btn-outline-gold {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--musubi-button-radius, 2px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-size: 13px;
  letter-spacing: 0.2em;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.content-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
}

.content-narrow {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* おしらせ一覧・アーカイブ（トップの news セクションと同系統の余白） */
.news-archive-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  align-items: center;
}

.news-archive-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  max-width: 720px;
}

.news-archive-header h1.label-en {
  margin: 0;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.3em;
}

.news-archive-description {
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  margin: 0;
}

.news-archive-grid {
  width: 100%;
}

/* おしらせカード（トップの cards-grid-3 含む）: フラット、ホバーでアクセント枠 */
.cards-grid-3 .news-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 0 0 20px;
  box-shadow: none;
  transition: border-color 0.25s ease;
}

.cards-grid-3 .news-card:hover {
  border-color: var(--accent-gold);
}

.cards-grid-3 .news-card h3 {
  font-size: 15px;
  margin: 0;
}

.cards-grid-3 .news-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cards-grid-3 .news-card:hover h3 a {
  color: var(--accent-gold);
}

.cards-grid-3 .news-card .placeholder-thumb,
.cards-grid-3 .news-card .news-card__thumb {
  border-radius: 2px 2px 0 0;
}

/* アイキャッチは16:9固定。他の比率の画像は拡大（cover）で枠いっぱいに表示 */
.cards-grid-3 .news-card .news-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin: 0;
}

.cards-grid-3 .news-card .news-card__thumb a {
  display: block;
  height: 100%;
}

.cards-grid-3 .news-card .news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* グリッドのセル高さいっぱいにカードを伸ばし、3枚の箱の高さを揃える */
.cards-grid-3 > li {
  display: flex;
}

.cards-grid-3 > li > .news-card {
  width: 100%;
}

.news-card__media {
  display: block;
  text-decoration: none;
  color: inherit;
  line-height: 0;
}

.cards-grid-3 .news-card > div:not(.placeholder-thumb),
.cards-grid-3 .news-card > h3 {
  padding-left: 16px;
  padding-right: 16px;
}

.cards-grid-3 .news-card .news-card__date {
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.18em;
}

.news-archive-empty {
  margin: 0;
  text-align: center;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
}

.news-archive-pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

.news-archive-pagination .navigation.pagination {
  width: 100%;
  display: flex;
  justify-content: center;
}

.news-archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.news-archive-pagination .page-numbers,
.news-archive-pagination ul.page-numbers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.news-archive-pagination li {
  margin: 0;
}

.news-archive-pagination a.page-numbers,
.news-archive-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  background: var(--bg-white);
  text-decoration: none;
  border-radius: 2px;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.news-archive-pagination a.page-numbers:hover,
.news-archive-pagination a.page-numbers:focus {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  outline: none;
}

.news-archive-pagination span.page-numbers.current {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  font-weight: 600;
}

.news-archive-pagination span.page-numbers.dots {
  border: none;
  background: transparent;
  min-width: auto;
}

/* おしらせ単体: セクション余白（一覧の section-padding より読みやすく調整） */
.news-single-outer.section-padding {
  padding-top: clamp(36px, 5.5vw, 84px);
  padding-bottom: clamp(72px, 10vw, 120px);
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
}

.news-single-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: stretch;
}

.news-single-back {
  width: 100%;
  margin: 0;
  text-align: left;
}

.news-single-back__link {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-single-back__link:hover,
.news-single-back__link:focus {
  color: var(--accent-gold);
  outline: none;
}

.news-single-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 単体: .news-single-head 内のため子セレクタ(>)では未適用だった — 左寄せで「一覧に戻る」と揃える */
.news-single-head .news-archive-header.news-single-intro {
  max-width: none;
  width: 100%;
  align-items: flex-start;
  text-align: left;
  margin-bottom: 0;
}

/* おしらせ単体記事: 一覧カード・アバウト文と同系の白パネル＋タイポ */
.news-single {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(25, 33, 89, 0.06);
  padding: clamp(24px, 4vw, 44px) clamp(20px, 4vw, 48px);
  box-sizing: border-box;
}

.news-single .entry-header.news-single__header {
  text-align: left;
  margin-bottom: clamp(20px, 3vw, 28px);
}

.news-single .entry-header .entry-title {
  margin: 0;
}

.news-single__meta {
  margin: 12px 0 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

.news-single__thumb {
  margin: 0 0 clamp(24px, 3vw, 32px);
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.news-single__thumb-img {
  width: 100%;
  height: auto;
  display: block;
}

.news-single .entry-content.news-single__body {
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.news-single .entry-content p {
  margin-top: 0;
  margin-bottom: 1.35em;
}

.news-single .entry-content > *:last-child {
  margin-bottom: 0;
}

.news-single .entry-content a {
  color: var(--accent-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s ease;
}

.news-single .entry-content a:hover,
.news-single .entry-content a:focus {
  color: var(--main-navy);
  outline: none;
}

.news-single .entry-content h2,
.news-single .entry-content h3,
.news-single .entry-content h4 {
  font-family: var(--musubi-heading-font, "Shippori Mincho", "Hiragino Mincho ProN", serif);
  font-weight: 400;
  color: var(--main-navy);
  letter-spacing: 0.1em;
  line-height: 1.55;
  margin: 1.75em 0 0.65em;
}

.news-single .entry-content h2 {
  font-size: 19px;
}

.news-single .entry-content h3 {
  font-size: 17px;
}

.news-single .entry-content h4 {
  font-size: 15px;
}

.news-single .entry-content h2:first-child,
.news-single .entry-content h3:first-child,
.news-single .entry-content h4:first-child {
  margin-top: 0;
}

.news-single .entry-content ul,
.news-single .entry-content ol {
  margin: 0 0 1.35em;
  padding-left: 1.35em;
}

.news-single .entry-content li {
  margin-bottom: 0.5em;
}

.news-single .entry-content blockquote,
.news-single .entry-content .wp-block-quote {
  margin: 0 0 1.35em;
  padding: 12px 0 12px 1.15em;
  border-left: 2px solid var(--accent-gold);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.85;
}

.news-single .entry-content hr,
.news-single .entry-content .wp-block-separator {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--border-light);
}

.news-single .entry-content .page-links {
  margin-top: 2em;
  padding-top: 1.25em;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.news-single .entry-content img,
.news-single .entry-content figure {
  border-radius: 2px;
}

.news-single .entry-content figcaption {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}

.news-single-outer .post-navigation {
  width: 100%;
  margin-top: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-single-outer .post-navigation .nav-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-single-outer .post-navigation a {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-single-outer .post-navigation a:hover {
  color: var(--accent-gold);
}


/* 404: おしらせ単体と同系の白パネル＋検索 */
.page-error-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  box-shadow: 0 8px 28px rgba(25, 33, 89, 0.06);
  padding: clamp(28px, 5vw, 48px) clamp(22px, 4vw, 44px);
  box-sizing: border-box;
}

.page-error-card__header .label-en {
  margin: 0 0 12px;
}

.page-error-card .entry-title {
  margin: 0;
}

.page-error-card__lead {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.page-error-card .musubi-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0;
}

.page-error-card .musubi-search-form__label {
  flex: 1 1 200px;
  min-width: 0;
  margin: 0;
}

.page-error-card .musubi-search-form__field {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--musubi-button-radius, 2px);
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-error-card .musubi-search-form__field:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold);
}

.page-error-card .musubi-search-form__submit {
  flex: 0 0 auto;
  letter-spacing: 0.12em;
}

.page-error-card__home {
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.page-error-card__home-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-error-card__home-link:hover,
.page-error-card__home-link:focus {
  color: var(--main-navy);
  outline: none;
}

.hero {
  position: relative;
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  margin: 0;
  font-weight: inherit;
  font-family: var(--musubi-heading-font, "Shippori Mincho", "Hiragino Mincho ProN", serif);
  font-size: 29px;
  letter-spacing: 0.3em;
}

.hero-subtitle {
  font-size: 15px;
  letter-spacing: 0.2em;
  color: #ffffffcc;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.about-media {
  min-height: 450px;
  overflow: hidden;
}

.about-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-pad-y, 80px);
  gap: 24px;
}

.instagram-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.instagram-item {
  display: block;
  height: 200px;
  overflow: hidden;
}

.instagram-thumb {
  height: 200px;
}

.instagram-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 外部プラグイン用 Instagram 埋め込み領域 */
.instagram-embed-region {
  width: 100%;
  min-height: 320px;
  box-sizing: border-box;
}

.instagram-embed-region > * {
  max-width: 100%;
}

.instagram-embed-placeholder-msg {
  margin: 0;
  padding: 48px 24px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  border: 1px dashed var(--border-light);
  border-radius: 2px;
  background: var(--bg-gray);
}

.access {
  min-height: 350px;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 350px;
}

.access-media {
  overflow: hidden;
  display: block;
}

.access-media-embed {
  position: relative;
  min-height: 280px;
  background: #e8e4df;
}

.access-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.access-map-placeholder-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.access-media:not(.access-media-embed) {
  position: relative;
  min-height: 280px;
}

.access-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-content {
  padding: 50px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.access-info {
  font-size: 13px;
  line-height: 2;
  margin: 0;
}

.placeholder-thumb {
  background: #ddd;
}

.entry-content img,
.entry-content figure {
  max-width: 100%;
  height: auto;
}

.comments-area {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

.comment-list {
  padding-left: 1.2em;
}

.custom-logo-link img {
  max-height: 58px;
  width: auto;
}

@media (max-width: 1024px) {
  .section-padding {
    padding: 56px 28px;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-header-inner {
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
  }

  .site-logo-wrap {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .hero-title {
    font-size: 25px;
    letter-spacing: 0.18em;
  }

  .about-grid,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .about-media,
  .access-media {
    min-height: 280px;
  }

  .access-content {
    padding: 36px 28px;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 910px) {
  .section-title {
    font-size: 19px;
  }

  .label-en {
    letter-spacing: 0.2em;
  }

  .cards-grid-3 {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-title {
    font-size: 21px;
    letter-spacing: 0.08em;
  }

  .hero-subtitle {
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .about-content {
    padding: 28px 18px;
    gap: 14px;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instagram-item,
  .instagram-thumb {
    height: 150px;
  }

  .access {
    min-height: 0;
  }

  .access-grid {
    min-height: 0;
  }

  .access-content {
    padding: 24px 16px;
  }

  .page-error-card .musubi-search-form {
    flex-direction: column;
  }

  .page-error-card .musubi-search-form__submit {
    width: 100%;
  }
}

@media (max-width: 910px) {
  :root {
    --site-header-height: 64px;
  }

  .site-header {
    z-index: 1001;
  }

  .site-header-inner {
    min-height: var(--site-header-height);
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header-end {
    gap: 8px;
  }

  .site-header .btn-gold.site-header-shop {
    padding: 10px 16px;
    font-size: 12px;
  }
}

