@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

.classroom-ctaBox{
  margin: 18px 0 28px;
  padding: 14px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fafafa;
  text-align: center;
}

.classroom-cta--large{
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 1.05em;
  font-weight: 700;
}

.classroom-ctaBox .classroom-email{
  margin-top: 10px;
  font-size: .95em;
}
/* ========= 教室詳細：CTAをボタン化 ========= */
.classroom-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;

  padding: 12px 16px;
  border-radius: 14px;

  background: #111;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  line-height: 1.2;

  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
  transition: transform .06s ease, box-shadow .18s ease, opacity .18s ease;
}

.classroom-cta::after{
  content: "→";
  font-weight: 900;
}

.classroom-cta:hover{
  opacity: .95;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
}

.classroom-cta:active{
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* 表の中でも押しやすく（横幅確保） */
.classroom-info .classroom-cta{
  min-width: 220px;
}

/* スマホは幅いっぱいにして分かりやすく */
@media (max-width: 599px){
  .classroom-info .classroom-cta{
    display: flex;
    width: 100%;
  }
}

/* ========= 教室詳細：信頼（日本棋院） ========= */
.classroom-trust{
  margin: 16px 0 12px;
  padding: 12px 14px;
  border-left: 4px solid #111;
  background: #f7f7f7;
  border-radius: 10px;
}
.classroom-trust p{
  margin: 0;
  font-size: .95em;
  line-height: 1.6;
}

/* ========= 教室詳細：教室一覧に戻る ========= */
.classroom-backlink{
  margin: 12px 0 0;
  padding-top: 8px;
}

.classroom-backlink a{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  font-size: .95em;
}

.classroom-backlink a:hover{
  background: #e9e9e9;
}

/* ========= 教室詳細：教室一覧に戻る ========= */
.classroom-backlink{
  margin: 12px 0 0;
  padding-top: 8px;
}

.classroom-backlink a{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #111;
  text-decoration: none;
  font-size: .95em;
}

.classroom-backlink a:hover{
  background: #e9e9e9;
}
/* 戻るリンク周り：区切り線と余白を詰める */
.post_content > .classroom-backlink{
  margin-top: 8px !important;
  padding-top: 0 !important;
  border-top: none !important; /* ← 点線/線がこれなら消える */
}

/* 直前CTAの下余白も詰める */
.post_content > .classroom-ctaBox{
  margin-bottom: 8px !important;
}
/* 教室詳細内の区切り線（点線含む）を消す */
.post_content hr,
.post_content .wp-block-separator{
  display: none !important;
}
/* 教室詳細：記事下（点線/余白の原因）を非表示 */
.single-classroom #after_article,
.single-classroom .l-articleBottom{
  display: none !important;
}

/* =========================
   教室一覧：カード画像＆ラベル
   ========================= */

/* 画像が文字に被らない安全版 */
.classroomCard-thumb{
  display: block;
  margin: 0 0 .8em;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.classroomCard-thumb img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* 念のため：見出しの上余白を確保 */
.classroomCard-title{
  margin-top: 0;
}

/* 写真上のラベル（教室名＋地域） */
.classroomCard-badge{
  position: absolute;
  left: .6em;
  right: .6em;
  bottom: .6em;
  padding: .55em .7em;
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-weight: 700;
  font-size: .95em;
  line-height: 1.25;
  backdrop-filter: blur(3px);
}

.classroomCard-badge em{
  display: block;
  font-style: normal;
  font-weight: 600;
  opacity: .9;
  font-size: .85em;
  margin-top: .15em;
}

/* 教室一覧：CTAを縦並びにする */
.classroomCard-actions{
  display: flex;
  flex-direction: column; /* ← 横→縦 */
  gap: .5em;
}

.classroomCard-detail{
  text-align: left;   /* ← 中央やめる */
  font-size: .9em;
  opacity: .85;
  padding-left: .2em; /* ちょい余白で視線誘導 */
}

/* 教室詳細：パンくずの地域（東京・新宿区など）を非表示 */
.single-classroom .c-breadcrumb__list li:not(:first-child):not(:last-child){
  display: none;
}

/* 教室詳細：本文下に出る「新宿区」などターム表示を消す */
.single-classroom .c-postTerm,
.single-classroom .p-postTerm,
.single-classroom .p-postTerms,
.single-classroom .c-taxList,
.single-classroom .c-categoryList,
.single-classroom .c-tagList {
  display: none !important;
}

/* modal hidden by default */
.igof-modal { display:none; position:fixed; inset:0; z-index:9999; }
.igof-modal.is-open { display:block; }

.igof-modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.55); }

.igof-modal__panel{
  position:relative;
  width:min(92vw, 520px);
  max-height:80vh;
  overflow:auto;
  margin:20vh auto 0;
  background:#fff;
  border-radius:16px;
  padding:18px 16px;
}

.igof-modal__close{
  position:absolute; top:10px; right:12px;
  font-size:22px; line-height:1;
  background:transparent; border:none; cursor:pointer;
}

.igof-modal-open{
  background:transparent; border:none; padding:0;
  color: var(--swl-link, #1e73be);
  text-decoration: underline;
  cursor:pointer;
}

.instructor-photo img{
  max-width:120px; border-radius:50%;
  display:block; margin:0 auto 14px;
}
.instructor-title{ color:#666; font-size:.95rem; margin:6px 0 10px; text-align:center; }
.instructor-profile{ font-size:.98rem; line-height:1.7; }

/* テーブル内の講師リンクを自然に */
.instructor-link{
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--swl-link, #1e73be);
  text-decoration: underline;
  cursor: pointer;
}

.instructor-sep{
  color:#666;
  margin: 0 2px;
  font-size: .95em;
}
/* 講師名リンク */
.instructor-link{
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--swl-link, #1e73be);
  text-decoration: underline;
  cursor: pointer;
}

/* （タップで詳細）補助テキスト */
.instructor-hint{
  color:#999;
  font-size:0.85em;
  margin-left:8px;
}
/* ===== 教室一覧：体験ボタン化 ===== */
.page-id-85 .classroomList a[href*="/contact/"]{
  display:block;
  background:#F4A300 !important;
  color:#fff !important;
  text-align:center;
  padding:12px 0;
  border-radius:6px;
  font-weight:600;
  text-decoration:none;
  margin-top:10px;
}


/* 教室一覧：体験・お問い合わせ（文字が消える対策つき） */
.page-id-85 .classroomList a[href*="/contact/"]{
  display:inline-block;
  background:#fff;
  color:#F4A300 !important;      /* ←これが肝 */
  padding:6px 10px;
  border-radius:4px;
  font-weight:600;
  text-decoration:none;
  border:1px solid #F4A300;
  margin-top:8px;
  line-height:1.2;
}

.page-id-85 .classroomList a[href*="/contact/"]:hover{
  background:#fff7e6;
  color:#F4A300 !important;      /* ←hoverでも保持 */
}

.page-id-85 .classroomList a[href*="/contact/"] *{
  color:#F4A300 !important;
}
/* ===== 教室一覧：体験・お問い合わせは「控えめリンク」へ（強制リセット） ===== */
.page-id-85 .classroomList a[href*="/contact/"]{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;      /* 背景を消す */
  background-color: transparent !important;
  color: #F4A300 !important;               /* 文字をオレンジ */
  -webkit-text-fill-color: #F4A300 !important; /* ←これ重要（文字消え対策） */

  border: 1px solid #F4A300 !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;

  font-weight: 600 !important;
  text-decoration: none !important;

  box-shadow: none !important;             /* ボタンっぽさ排除 */
  width: auto !important;                  /* オレンジ帯防止 */
  min-height: auto !important;
}

/* aの中にspan等が入ってても文字色を強制 */
.page-id-85 .classroomList a[href*="/contact/"] *,
.page-id-85 .classroomList a[href*="/contact/"] span{
  color: #F4A300 !important;
  -webkit-text-fill-color: #F4A300 !important;
}

.page-id-85 .classroomList a[href*="/contact/"]:hover{
  background: #fff7e6 !important;
  background-color: #fff7e6 !important;
}

.page-id-13 .c-postContent > * + * {
  margin-top: 24px !important;
}



/* guideページ：リスト直後の見出し余白を調整 */
.page-id-13 ul + .wp-block-heading {
    margin-top: 0.5em;
}

.page-id-13 .hq-contact-btn {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: #374151;
    text-decoration: underline;
    font-weight: 500;
}

.page-id-13 .hq-contact-btn:hover {
    color: #111827;
}

/* 教室一覧：園名（タイトル）と開催日時の間の余白を詰める */
.classroomGrid .classroomCard-title {
  margin-bottom: 8px; /* まずは8px。まだ広ければ4px */
}

.classroomGrid .classroomCard-time {
  margin-top: 0;
}

/* 教室一覧：カードで区切って見やすく */
.classroomGrid .classroomCard{
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* 行間と文字の整え（乱雑感を減らす） */
.classroomGrid .classroomCard-row{
  margin-top: 6px;
  line-height: 1.6;
}

/* ホバーで“押せる感”だけ少し */
.classroomGrid .classroomCard:hover{
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  transform: translateY(-1px);
  transition: all .15s ease;
}
/* カード内タイトルの上余白を消す */
.classroomGrid .classroomCard-title {
  margin-top: 0;
}


/* 教室一覧：エリアフィルター非表示 */
.classroomFilter {
  display: none;
}




/* 教室詳細：ページ下の余白（#contentのmargin）を消す */
.single-classroom #content.l-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* 教室詳細：記事フッター（破線＋余白）を削除 */
.single-classroom .p-articleFoot {
  display: none !important;
}

/* 本部お問い合わせリンクを常に下線表示 */
a[href="/contact-hq/"] {
  text-decoration: underline !important;
}



/* トップページの下の巨大余白を削除 */
.home .l-content {
  margin-bottom: 0 !important;
}
