/*
Theme Name: Introductory Child
Template: introductory_theme_ver2
Version: 1.0.0
*/

@import url("../introductory_theme_ver2/style.css"); /* 親テーマのCSSを読み込む */


/* モバイルメニュー */
.mobile-menu {
  display: none;
  background: #fff;
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  text-align: center;
  z-index: 1000;
}

.mobile-menu.active {
  display: block;
}

/* モバイルだけ表示 */
@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
}

/* サイドメニュー */
.side-menu {
  position: fixed;
  top: 0;
  left: -300px; /* ← メニュー非表示状態 */
  width: 250px;
  height: 100%;
  background: white;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transition: left 0.6s ease-in-out;
  z-index: 9999;
  padding: 100px 1em 1em 1em;
  padding-left: 2em;
  font-size:1em
}

/* 表示状態 */
.side-menu.active {
  left: 0;
}

/* メニューの黒丸削除 */
.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 1em 0;
  font-size: 1.2em;
  text-align: left;
}

/* 固定ヘッダー */
.site-header.wp-block-template-part {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding-top: 1em;
  padding-bottom: 0.1em;
}

/* ヘッダー下の余白 */
body {
  padding-top: 80px;
}

/* ハンバーガー全体のボタンスタイル */
.menu-toggle {
  width: 20px; /* 小さめに調整 */
  height: 24px;
  position: relative;
  display: inline-block;
  margin-left: 20px !important;  /*  左側に余白を追加（必要に応じて調整） */
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
  
}

.menu-toggle span {
  position: absolute;
  height: 1px; /* 少し細めにしてスッキリ */
  width: 24px;  /* 固定幅で飛び出さないようにする */
  background: #333;
  left: 3px;    /* 左に少しずらして中央寄せ */
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle span:nth-child(1) {
  top: 5px;
}
.menu-toggle span:nth-child(2) {
  top: 11px;
}
.menu-toggle span:nth-child(3) {
  top: 17px;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

/* ✖ に変形（active時） */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 12px;
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 12px;
}

/* ホバー時に色を変える（お好みで） */
.menu-toggle:hover span {
  background: #555;
}

/* トップページの通常画像：スマホは100%、PCは最大600px */
.home .wp-block-image img {
  width: 100%;
  max-width: 600px;    /* PC上限 */
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 特定の画像（small-image）だけ：スマホは100%、PCは最大400px */
.home .wp-block-image.small-image img {
  width: 100% !important;       /* ← インラインwidth:663px を打ち消し */
  max-width: 400px !important;  /* PC上限 */
  height: auto !important;
}

/* スマホ時に home-slider をフル幅＆左右余白ゼロに */
@media (max-width: 768px) {
  .home .home-slider {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
    max-width: 100vw !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home .home-slider .wp-block-image img,
  .home .home-slider .wp-block-image.small-image img {
    width: 100% !important;
    max-width: none !important; 
    height: auto !important;
  }
}


/* =========================================================
   JAM ORCHESTRA — 問い合わせフォーム（contact-cover 専用）
   - フル幅カバー
   - フォーム中央寄せ & 幅制御
   - 2カラム（ラベル/入力）レイアウト
   - 余白の最小化 & 入力欄の高さ拡張
   - 送信ボタンの中央表示
   - アンカー（#contact）ずれ補正 & 見出し影
   ========================================================= */

/* ===== 1) カバーをページ端まで広げる（ホームのみ） ===== */
.home .contact-cover{
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  overflow: visible;
}

/* 親テーマの幅制限を解除 */
.home .contact-cover .wp-block-cover__inner-container,
.home .contact-cover .is-layout-constrained,
.home .contact-cover .wp-block-group,
.home .contact-cover .wp-block-shortcode{
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ===== 2) フォームの器（中央寄せ & 最大幅） ===== */
.home .contact-cover .wpcf7 form{
  width: 100% !important;
  max-width: 800px !important;          /* PCでの最大幅 */
  margin: 0 auto !important;
  box-sizing: border-box !important;
  padding: 0 16px !important;            /* スマホ左右余白 */
}
@media (min-width: 768px){
  .home .contact-cover .wpcf7 form{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 入力UIはフォーム幅にフィット */
.home .contact-cover .wpcf7 input,
.home .contact-cover .wpcf7 textarea,
.home .contact-cover .wpcf7 select{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: #fff;
}

/* ===== 3) 2カラム行レイアウト & 余白最小化 ===== */
.home .contact-cover .cf-two-col{
  display: grid !important;
  grid-template-columns: 120px 1fr !important; /* ラベル / 入力 */
  column-gap: 10px !important;                 /* 横の間 */
  row-gap: 10px !important;                    /* 縦の間 */
  font-size: 14px;                              /* 全体の文字サイズ */
}
.home .contact-cover .cf-row{ display: contents !important; }
.home .contact-cover .cf-row .cf-label{ grid-column: 1; align-self: center; }
.home .contact-cover .cf-row .cf-input{ grid-column: 2; }

/* ラベル側 */
.home .contact-cover .cf-label{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  font-weight: 600;
  color: #222;
}
.home .contact-cover .cf-label .req{
  font-size: 11px;
  color: #c00;
  font-weight: normal;
  margin-left: .4em;
  vertical-align: super;
}

/* 行内の<p>余白・空要素を除去（謎の空白対策） */
.home .contact-cover .wpcf7 form p{
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
}
.home .contact-cover .wpcf7-form p:empty,
.home .contact-cover .cf-label p:empty,
.home .contact-cover .cf-input p:empty,
.home .contact-cover .cf-row > p:empty{
  display: none !important;
}
.home .contact-cover .cf-label p,
.home .contact-cover .cf-input p{
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

/* ===== 4) 入力欄の“高さ”をしっかり確保 ===== */
.home .contact-cover .wpcf7 input[type="text"],
.home .contact-cover .wpcf7 input[type="email"],
.home .contact-cover .wpcf7 input[type="tel"],
.home .contact-cover .wpcf7 select{
  height: 48px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
}
.home .contact-cover .wpcf7 select{ line-height: 1.2 !important; } /* iOS対策 */
.home .contact-cover .wpcf7 textarea{
  min-height: 200px !important;
  padding: 10px 12px !important;
  font-size: 14px !important;
}

/* 幅いっぱい使いたい行（メモ欄など） */
.home .contact-cover .cf-row--full .cf-label{ grid-column: 1; }
.home .contact-cover .cf-row--full .cf-input{ grid-column: 2; }

/* スマホは1カラム */
@media (max-width: 767px){
  .home .contact-cover .cf-two-col{
    grid-template-columns: 1fr !important;
    column-gap: 0 !important;
    row-gap: 10px !important;
  }
  .home .contact-cover .cf-row .cf-label,
  .home .contact-cover .cf-row .cf-input,
  .home .contact-cover .cf-row--full .cf-label,
  .home .contact-cover .cf-row--full .cf-input{
    grid-column: 1;
  }
}

/* ===== 5) 送信ボタン（中央・自動幅） ===== */
.home .contact-cover .wpcf7 .submit-row{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin-top: 20px !important;
  padding: 0 !important;
}
.home .contact-cover .wpcf7 .contact-btn,
.home .contact-cover .wpcf7 .wpcf7-submit{
  display: inline-block !important;
  width: auto !important;
  min-width: 160px !important;
  padding: 12px 24px !important;
  margin: 0 !important;
  background: #333 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  transition: background .3s ease !important;
}
.home .contact-cover .wpcf7 .wpcf7-submit:hover{ background: #555 !important; }

/* スピナーが位置をずらさないように */
.home .contact-cover .wpcf7 .wpcf7-spinner{
  position: absolute !important;
  right: -30px; top: 50%;
  transform: translateY(-50%);
  visibility: hidden !important;
}
.home .contact-cover .wpcf7 .wpcf7-spinner.is-active{ visibility: visible !important; }

/* ===== 6) アンカー(#contact) の着地点補正 & 見出し影 ===== */
html{ scroll-behavior: smooth; }

#contact, [id="contact"]{ scroll-margin-top: 100px; }
@media (max-width: 767px){
  #contact, [id="contact"]{ scroll-margin-top: 150px; }
}

/* 固定ヘッダーで隠れないように若干の余裕（必要なら数値調整） */
#contact:target::before{
  content: "";
  display: block;
  height: 80px;
  margin-top: -120px;
}

#contact{ text-shadow: 2px 2px 0 rgba(80,80,80,.4) !important; }

/* === ラベルと入力欄の間の余白をなくす === */
.contact-cover .cf-label p,
.contact-cover .cf-input p {
  margin: 0 !important;
  padding: 1 !important;
  line-height: 1.3 !important; /* ← 文字が詰まりすぎないよう少し調整 */
}

/* cf-row 内の余計な <p> を完全に削除 */
.contact-cover .cf-row p:empty {
  display: none !important;
}

/* 特定のカバーだけ角丸にする */
.wp-block-cover.rounded-cover {
  border-radius: 20px !important;
  overflow: hidden !important; /* 内部を角丸でクリップ */
}

/* 背景レイヤー（色・オーバーレイ・画像）も角丸に揃える */
.wp-block-cover.rounded-cover .wp-block-cover__background,
.wp-block-cover.rounded-cover .wp-block-cover__image-background,
.wp-block-cover.rounded-cover .wp-block-cover__gradient-background,
.wp-block-cover.rounded-cover img,
.wp-block-cover.rounded-cover video {
  border-radius: inherit !important;
}

/* ── SPでヒーロー（home-slider）を全幅＆横ブレ防止 ── */
@media (max-width: 768px) {
  /* 親の制約解除 */
  .home .home-slider {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /* 内側の a / picture / img をフル幅に */
  .home .home-slider,
  .home .home-slider > a,
  .home .home-slider picture,
  .home .home-slider img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  /* 画面全体の横スクロールを封じる保険 */
  html, body, .wp-site-blocks { overflow-x: hidden !important; }
}

/* ===== 共通（しっぽり明朝フォント設定） ===== */
.wp-block-heading.h-shippori {
  font-family: 'Shippori Mincho B1', serif;
  font-weight: 400 !important;  /* 太字防止 */
  letter-spacing: 0.04em;
  line-height: 1.7;
}


/* =====================
  ↓スマホ１行、PC小さ過ぎ回避
===================== */
/* ▼ PC & 共通 */
h5.wp-block-heading.catch-copy,
h5.wp-block-heading.catch-copy a {
  display: block !important;
  text-align: center !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

/* ▼ スマホ */
@media (max-width: 768px) {
  h5.wp-block-heading.catch-copy,
  h5.wp-block-heading.catch-copy a {
    font-size: 18px !important; /* ← 読みやすく、1行に収まる上限 */
  }
}

/* ▼ PC */
@media (min-width: 769px) {
  h5.wp-block-heading.catch-copy,
  h5.wp-block-heading.catch-copy a {
    font-size: 26px !important; /* ← 小さくなりすぎない高級感サイズ */
  }
}

/* ====== ゲスト満足度ポイント：PCは3列、SPは1列 ====== */

/* 見出しまわり（お好みで調整用） */
.points-list > h6,
.points-list > h1 {
  text-align: center;
}

/* POINT3つを横並びにする箱 */
.points-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

/* 各POINTカード */
.points-row .point-item {
  flex: 1 1 calc(33.333% - 40px);  /* 3カラム */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 画像はカードの横幅いっぱい */
.points-row .point-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* タイトル */
.points-row .point-item .point-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

/* 説明文 */
.points-row .point-item .point-desc {
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}

/* ====== スマホ（768px以下）は縦並び ====== */
@media (max-width: 768px) {
  .points-row {
    flex-direction: column;
  }

  .points-row .point-item {
    flex-basis: 100%;
  }

  .points-row .point-item .point-title {
    font-size: 16px;
  }
}

/* ── POINT3下：自動スクロールGALLERY ── */
.jo-auto-gallery {
  padding: 36px 0;
  background: #f5f5f5; /* 必要ならここで色だけ微調整 */
}

/* マスク：はみ出し隠し */
.jo-auto-gallery__mask {
  overflow: hidden;
  width: 100%;
}

/* 横一列に並べて自動スクロールさせるレール */
/* track / rail どちらでも動くように両方指定 */
.jo-auto-gallery__track,
.jo-auto-gallery__rail {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  width: max-content !important;
  animation: jo-auto-scroll 70s linear infinite !important; /* ← 全体の基本速度：ゆっくりめ */
}

/* 各画像カード共通 */
.jo-auto-gallery__item {
  flex: 0 0 auto !important;
  display: block !important;
}

.jo-auto-gallery__item img {
  display: block !important;
  width: 100% !important;
  border-radius: 8px !important;
}

/* ── スマホ用：もっとゆっくり＆ズームしない ── */
@media (max-width: 768px) {

  .jo-auto-gallery__item {
    width: 90vw !important;
    flex-basis: 90vw !important;
  }

  .jo-auto-gallery__item img {
    width: 100% !important;
    height: 300px !important;    /* ← 高さを固定してズレ防止（お好みで270〜300も可） */
    object-fit: cover !important; /* ← contain は隙間が出るのでNG */
    border-radius: 8px !important;
  }

  .jo-auto-gallery__rail {
    animation-duration: 90s !important;
  }
}

/* ── PC用：高さだけ固定してトリミング ── */
@media (min-width: 769px) {
  .jo-auto-gallery__item img {
    height: 260px !important;
    object-fit: cover !important;
  }
}

/* 無限スクロールアニメーション */
@keyframes jo-auto-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── スタッフの想いセクション：PCで中央寄せ ── */
@media (min-width: 1025px) {
  .jo-staff-message {
    max-width: 900px; /* 横幅を中央に凝縮する値 */
    margin-inline: auto !important;
    justify-content: center !important;
    gap: 60px !important; /* 画像と文章の距離 */
  }

  /* 写真を中央に寄せる */
  .jo-staff-message .wp-block-image {
    display: flex;
    justify-content: center;
  }
}

