/*
 Theme Name: My Snow Monkey
 Theme URI: https://snow-monkey.2inc.org/
 Description: Minimal child theme for Snow Monkey. Safe place for your CSS/PHP tweaks.
 Author: ミーセ（mi-se デザインスタジオ）
 Author URI: https://example.com/
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Template: snow-monkey
 Text Domain: my-snow-monkey
*/

/* Put your custom CSS below */

/* =========================================================
   フォント（Roboto + 和文フォールバック）
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

body,
h1, h2, h3, h4, h5, h6,
.p-header,
.p-global-nav a,
.wp-block-button__link,
button,
input,
textarea,
select {
  font-family: 'Roboto', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', Meiryo, sans-serif !important;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-weight: 600; }
h4, h5, h6 { font-weight: 400; }


/* =========================================================
   ページ内スクロール補正
========================================================= */
html { scroll-behavior: smooth; }
:root { --header-offset: 64px; }
@media (max-width: 768px) {
  :root { --header-offset: 80px; }
}

:target,
h2[id] {
  scroll-margin-top: var(--header-offset);
}


/* =========================================================
   ヘッダー・ロゴ
========================================================= */
.l-header {
  background: transparent !important;
  box-shadow: none !important;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}

.l-header.is-fixed,
.p-drop-nav.p-drop-nav--has-site-branding {
  background-color: rgba(255,255,255,.6) !important;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: none !important;
}

/* =========================================================
   ヘッダーロゴの縦横比固定（伸び縮み防止）
========================================================= */
.c-site-branding__title .custom-logo {
  height: 54px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 768px) {
  .c-site-branding__title .custom-logo {
    height: 40px;
  }
}


/* =========================================================
   ヘッダーCTA（固定＋ドロワー）+ 各ボタンのホバー効果
========================================================= */
.cta-fixed {
  position: fixed;
  top: 76px;
  right: 40px;
  z-index: 9999;
  display: flex;
  gap: .6rem;
  opacity: 0.9;
}

.cta-btn-tel,
.cta-btn-contact,
.footer-insta-btn,
.insta-btn,
.google-btn {
  transition: opacity 0.25s ease;
}

.cta-btn-tel:hover,
.cta-btn-contact:hover,
.footer-insta-btn:hover,
.insta-btn:hover,
.google-btn:hover {
  opacity: 0.8;
}


@media (max-width:1024px) {
  .cta-fixed { display: none !important; }
}

/* PC時：ヘッダーナビ内CTA非表示 */
@media (min-width:1025px) {
  .p-global-nav a[href^="tel:"],
  .p-global-nav a[href*="#contact"] {
    display: none !important;
  }
}

/* TB/SP：ドロワーCTA */
@media (max-width:1024px) {
  .c-drawer a[href*="#contact"],
  .c-drawer a[href^="tel:"] {
    background-color: #3b3b3b;
    color: #ffffff !important;
    padding: 12px 16px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 20px);
    margin: 0 auto;
    text-align: center;
  }
.c-drawer a[href^="tel:"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: url("/wp-content/uploads/2025/11/icon_tel.png") center / contain no-repeat;
  vertical-align: middle;
}

.c-drawer a[href*="#contact"]::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: url("/wp-content/uploads/2025/11/icon_mail.png") center / contain no-repeat;
  vertical-align: middle;
}

  .c-drawer a:hover { opacity: 0.8; }
}

/* =========================================================
   キャッチコピー（PC）
========================================================= */
.is-style-smb-section-undecorated-title h2 {
  font-size: 36px;
  line-height: 1.4;
}

/* =========================================================
   キャッチコピー（SP）
========================================================= */
@media (max-width: 767px) {
  .is-style-smb-section-undecorated-title h2 {
    font-size: 28px;
    line-height: 1.46;
  }
}


/* =========================================================
   ギャラリースライダー（無限スクロール）
========================================================= */
.gallery-slider{
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 40px 0;
}

.gallery-slider > .wp-block-group{
  display: flex;
  flex-wrap: nowrap !important;
  animation: gallery-scroll 50s linear infinite;
}

.gallery-slider figure.wp-block-image{
  width: 400px !important;
  flex: 0 0 400px !important;
  margin-right: 16px;
}

.gallery-slider figure.wp-block-image img{
  width: 400px !important;
  height: 280px !important;
  object-fit: cover;
}

@keyframes gallery-scroll{
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =========================================================
   投稿アイキャッチ
========================================================= */
.p-entry__eyecatch img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .p-entry__eyecatch img { height: 250px; }
}




/* =======================================================
   fadein-up：セクション内の h2 だけをアニメーション
========================================= */

/* 初期状態（h2だけ非表示） */
.fadein-up h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 表示状態（is-visibleが付いたらh2だけ出す） */
.fadein-up.is-visible h2 {
  opacity: 1;
  transform: translateY(0);
}



/* ============================
   投稿カード no-image
=============================== */
.smb-posts .smb-posts__item-thumbnail {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.smb-posts .smb-posts__item-thumbnail:not(:has(img)) {
  background: url("/wp-content/uploads/2025/11/no-image.webp") center/cover no-repeat;
}

/* =========================================================
   FAQ背景テキスト専用フォント（全体Robotoの上書き対策）
========================================================= */
.smb-section__background-text {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Gentium Plus", serif !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}


/* =========================
   お問い合わせフォーム
   （Snow Monkey × CF7）
========================= */

.wpcf7 {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
}

.label-row {
  margin-bottom: 1rem;
  font-weight: 600;
}

.req-badge {
  margin-left: .5em;
  padding: .1em .4em;
  background: #b36136;
  color: #fff;
  font-size: 12px;
}

.wpcf7-form input,
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  margin-bottom: 2rem;
}

.wpcf7-form .wpcf7-submit {
  width: 100%;
  padding: .9em;
  font-size: 1.125rem;
}

/* ラベル行（見出し） */
.label-row {
  display: block;
  margin: 0 0 1rem;
  font-weight: 600;
}

/* 必須バッジ */
.req-badge {
  display: inline-block;
  margin-left: .5em;
  padding: .1em .4em;
  background: #b36136;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
}

/* 入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 2rem;
}

/* placeholder色 */
.wpcf7-form ::placeholder {
  color: #9a9a9a;
}

/* バリデーションメッセージ */
.wpcf7-not-valid-tip { 
  font-size: 14px;
  color: #b36136;
  font-weight: 600;
}

/* ラジオボタン */
.wpcf7-form .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8em 1.2em;
  margin: .35rem 0 2rem;
}

.wpcf7-form .wpcf7-list-item {
  display: flex;
  align-items: center;
  gap: .35em;
  font-size: .95rem;
  cursor: pointer;
  white-space: nowrap;   /* ← 文字の縦割れを防ぐ */
}

.wpcf7-form input[type="radio"] {
  width: 1em;
  height: 1em;
  accent-color: #4ca6ad;
  cursor: pointer;
  margin: 0;
}

/* ラベル背景は透過のまま */
.wpcf7-form .wpcf7-list-item label,
.wpcf7-form .wpcf7-list-item span {
  background: transparent;
}


/*  送信ボタン */
.wpcf7-form .wpcf7-submit {
  display: block;
  width: 100%;
  padding: .9em 1em;
  font-size: 1.125rem;
  margin: 1em auto 0;
  border-radius: 0;
  letter-spacing: 0.1em;
}

/* プライバシーポリシー アコーディオン */
.policy-accordion { 
  margin: 1.5em 0 1.2em;
}

.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  background: #f1eeea;
  border: none;
  padding: .8em 1em;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
}

.policy-accordion .accordion-label { 
  color: #333;
  letter-spacing: 0.08em;
}

.accordion-icon { 
  width: 1.2em; 
  text-align: center;
}

/* =========================================
   同意チェック（acceptance）
   横並び＋中央寄せ
========================================= */

/* 外側：中央寄せ */
.wpcf7-form .wpcf7-acceptance {
  display: flex;
  justify-content: center;
  margin: 0.5em 0 1.5em;
}

/* label を flex化して「□＋テキスト」を横並び */
.wpcf7-form .wpcf7-acceptance label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  text-align: center;
  line-height: 1.6;
}

/* チェックボックス本体 */
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  margin: 0;
  accent-color: #4ca6ad; /* ラジオと色合わせ */
  cursor: pointer;
  flex-shrink: 0;
}

/* テキスト（span） */
.wpcf7-form .wpcf7-acceptance span {
  display: inline-block;
  white-space: nowrap;   /* PCでは1行維持 */
}

/* スマホだけは折り返しOK */
@media (max-width: 767px) {
  .wpcf7-form .wpcf7-acceptance span {
    white-space: normal;
  }
}


