/*
Theme Name:   Nagomi Resort Run - Child
Theme URI:    https://run.nagomiresort.com/
Description:  Snow Monkey 子テーマ — なごみリゾート Run八ヶ岳
Author:       Nagomi Resort
Template:     snow-monkey
Version:      1.0.0
Text Domain:  nagomi-child
*/

/*
 * ================================================================
 *  【重要】このファイルのCSSについて
 *
 *  プライマリカラー（ボタン・リンク色など）は
 *  管理画面 → 外観 → カスタマイズ → 「色・背景色」から設定してください。
 *  推奨値: プライマリカラー #1a1917 / リンクカラー #8b7355
 *
 *  ここには「カスタマイザーで設定できないもの」だけを書きます。
 * ================================================================
 */

/* ─── Google Fonts ───────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@200;300;400;500&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* ─── ブランドカラー変数（フロントエンド用参照のみ） */
:root {
  --ngm-black:  #1a1917;
  --ngm-dark:   #2c2a27;
  --ngm-mid:    #5a5750;
  --ngm-accent: #8b7355;
  --ngm-gold:   #c4aa87;
  --ngm-beige:  #f7f4ef;
  --ngm-border: #e4e0da;
}

/* ─── スクロール強制修正（フロントエンドのみ） ── */
/* body:not(.block-editor-page) でエディタには影響しない */
body:not(.block-editor-page),
body:not(.block-editor-page) html {
  overflow-y: auto !important;
  height: auto !important;
  max-height: none !important;
}

body:not(.block-editor-page) .l-page,
body:not(.block-editor-page) .l-container,
body:not(.block-editor-page) .l-main,
body:not(.block-editor-page) .l-contents,
body:not(.block-editor-page) .l-contents__body,
body:not(.block-editor-page) .l-contents__full-container,
body:not(.block-editor-page) .l-contents__inner,
body:not(.block-editor-page) .l-contents__main,
body:not(.block-editor-page) .l-content,
body:not(.block-editor-page) .c-entry,
body:not(.block-editor-page) .c-entry__body,
body:not(.block-editor-page) .c-entry__content,
body:not(.block-editor-page) .p-entry-content,
body:not(.block-editor-page) .p-section-front-page-content,
body:not(.block-editor-page) .c-section,
body:not(.block-editor-page) .entry-content,
body:not(.block-editor-page) main {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

/* ─── フォント ────────────────────────────────────── */
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* ─── ヘッダー ───────────────────────────────────── */
.l-header {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.c-logo__img {
  height: 40px;
  width: auto;
}

.c-global-nav__item > a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 400;
}

/* ─── ヒーロー（カバーブロック）────────────────── */
.wp-block-cover__inner-container h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.75;
  text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

/* ─── ボタン（雪猿デフォルトスタイル調整） ──── */
.wp-block-button__link {
  border-radius: 0;
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  padding: 14px 44px;
}

/* ─── メディアとテキスト ─────────────────────────── */
.wp-block-media-text {
  gap: 0;
}
.wp-block-media-text .wp-block-media-text__media img {
  height: 100%;
  object-fit: cover;
}

/* ─── テーブル ───────────────────────────────────── */
.wp-block-table table {
  border-collapse: collapse;
  font-size: 0.84rem;
}
.wp-block-table th {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}

/* ─── アコーディオン ─────────────────────────────── */
.smb-accordion__item-summary {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 18px 0;
}
.smb-accordion__item-body {
  font-size: 0.85rem;
  line-height: 1.95;
}

/* ─── フッター ───────────────────────────────────── */
.c-site-footer__copyright {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
}
.l-footer .c-widget-title {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 400;
}
.l-footer .c-widget-title::after {
  display: none;
}

/* ─── フローティング予約ボタン ──────────────────── */
#ngm-float-wrap {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

#ngm-popup {
  background: #fff;
  border: 1px solid #e8e3dd;
  box-shadow: 0 8px 40px rgba(0,0,0,.16);
  padding: 24px 22px 18px;
  width: 230px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px) scale(.97);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#ngm-popup.ngm-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ngm-pop-label {
  font-size: .54rem;
  letter-spacing: .46em;
  text-transform: uppercase;
  color: #8b7355;
  margin-bottom: 4px;
}
.ngm-pop-title {
  font-family: 'Noto Serif JP', serif;
  font-size: .92rem;
  font-weight: 300;
  color: #1a1917;
  margin-bottom: 14px;
}
.ngm-pop-tel {
  display: block;
  font-size: .82rem;
  color: #1a1917;
  text-decoration: none;
  line-height: 1.7;
}
.ngm-pop-tel span {
  font-size: .62rem;
  color: #9a9590;
}
.ngm-pop-rule {
  border: none;
  border-top: 1px solid #e8e3dd;
  margin: 12px 0;
}
.ngm-pop-web {
  display: block;
  background: #1a1917;
  color: #fff;
  text-decoration: none;
  font-size: .68rem;
  letter-spacing: .22em;
  padding: 11px 0;
  transition: opacity .2s;
}
.ngm-pop-web:hover {
  opacity: .82;
  color: #fff;
}

#ngm-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #1a1917;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 13px 20px;
  font-size: .7rem;
  letter-spacing: .26em;
  font-family: inherit;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  border-radius: 0;
  transition: background .2s;
}
#ngm-btn:hover {
  background: #2e2b27;
  color: #fff;
}
.ngm-btn-close {
  display: none;
  font-size: .95rem;
}
#ngm-btn.ngm-open .ngm-btn-label { display: none; }
#ngm-btn.ngm-open .ngm-btn-close { display: inline; }

#ngm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
#ngm-overlay.ngm-open { display: block; }

@media (max-width: 600px) {
  #ngm-float-wrap { bottom: 18px; right: 14px; }
  #ngm-popup { width: 210px; }
}

/* ─── レスポンシブ ───────────────────────────────── */
@media (max-width: 768px) {
  .wp-block-media-text .wp-block-media-text__content {
    padding: 40px 24px;
  }
}
