@charset "UTF-8";
/*
 * 汎用スタイル
 * General Styles
 */

/* 投稿リスト全体がシンプル型のとき、カードっぽさを打ち消す */
ul.p-postList.-type-simple {
  display: flex;
  flex-direction: column;
  gap: 0;
}

ul.p-postList.-type-simple .p-postList__item {
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  margin: 0;
  width: 100%;
  max-width: none;
}

ul.p-postList.-type-simple .p-postList__body {
  padding: 0;
}

/* 最後のアイテムのボーダーを消す */
ul.p-postList.-type-simple .p-postList__item:last-child {
  border-bottom: none;
}

ul.p-postList.-type-simple .p-postList__meta {
  border: none !important;
}

/* フローティングボタン*/
/* フローティングボタン全体のラッパー */
.floating-buttons {
  position: fixed;
  bottom: 200px;
  right: 0;
  z-index: 99999;
  width: 60px;
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: yellow;
  border-radius: 5px;
  border: 3px solid orange;
}

/* ボタン共通のスタイル */
.floating-button {
  width: 100%;
  height: 100%; /* ボタン枠全体に合わせる */
  color: #333;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  position: relative;
  display: flex; /* フレックスボックスに切り替え */
  justify-content: center; /* 横方向中央 */
  align-items: center;
}

/* ホバー効果 */
.floating-button:hover {
  transform: scale(1.05);
}

/* ボタンにテキストがある場合 */
.floating-button__text {
  display: block;
  font-size: 16px;
  writing-mode: vertical-rl; /* ← 縦書きにするためのプロパティ */
  text-orientation: upright; /* 文字を横倒しにせず立てて表示 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* 真ん中に配置 */
  white-space: nowrap; /* 折り返しを防ぐ */
}

/* 背景だけ全幅、中身は中央揃え */
.bg-full {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* フルワイド背景に対して中身も広げる */
.bg-full .swell-block-fullWide__inner {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0;
  padding-right: 0;
}

/* alignfull の左ズレと拡張幅を打ち消して、中央配置にする */
@media (min-width: 960px) {
  .alignfull,
  .l-content .alignfull {
    left: 0 !important;
    width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }
}

/* .l-article の中に .bg-full があるとき、強制的に幅制限を解除する */
.l-article .bg-full.alignfull {
  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;
}

/* フルワイド背景内でも投稿リストは1200px幅に固定する */
.bg-full .p-postList {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* 投稿リスト全体に左右余白をつけて、カラム崩れ防止 */
.p-postList.p-postList {
  padding-left: 1em;
  padding-right: 1em;
  box-sizing: border-box;
}

.bg-full.bg-color-purple {
  background-color: #f6f4ff;
}

/* メインビジュアルが枠内におさまるように*/
.p-mainVisual__imgLayer img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* 固定ページタイトルエリアのタイトルを中央配置*/
.l-topTitleArea__body.l-container {
  text-align: center;
}

/* ============================================
   タブのカスタムスタイル
   =========================================== */
.swell-block-tab.is-style-default .c-tabList .c-tabList__item {
  width: 50%;
}

.swell-block-tab.is-style-default .c-tabBody {
  border: 1px solid #ccc;
}

/* タブボタンの基本スタイル（非アクティブ） */
.c-tabList__button,
.c-tabList .c-tabList__button {
  font-size: 18px !important;
  font-weight: 700 !important;
  background-color: #e8e8e8 !important;
  color: #666 !important;
  border: 1px solid #ccc !important;
  padding: 12px 20px !important;
  letter-spacing: 0.5px !important;
  line-height: 1.4 !important;
  transition: all 0.3s ease !important;
}

/* アクティブなタブ（選択中） */
.c-tabList__button.-current,
.c-tabList .c-tabList__button.-current {
  background-color: #c4d600 !important;
  color: #fff !important;
  border: 1px solid #7ab000 !important;
  border-bottom: 3px solid #7ab000 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* ホバー時のスタイル */
.c-tabList__button:hover {
  background-color: #f0f0f0 !important;
  color: #333 !important;
  border-color: #999 !important;
}

/* アクティブタブのホバー時は変化なし */
.c-tabList__button.-current:hover,
.c-tabList .c-tabList__button.-current:hover {
  background-color: #8cc400 !important;
  color: #fff !important;
  border: 1px solid #7ab000 !important;
  border-bottom: 3px solid #7ab000 !important;
}

/* より強力なセレクタで確実に適用 */
.swell-block-tab .c-tabList__button[aria-selected="true"],
.wp-block-swell-tab .c-tabList__button[aria-selected="true"],
[data-block-name*="tab"] .c-tabList__button.-current {
  background-color: #8cc400 !important;
  color: #fff !important;
  border: 1px solid #7ab000 !important;
  border-bottom: 3px solid #7ab000 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* GoogleMap */
.google-map-responsive {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.google-map-responsive iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* .l-article 配下で alignfull が詰まる問題を解消 */
@media (min-width: 960px) {
  .l-article .swell-block-fullWide.alignfull {
    width: calc(100vw - var(--swl-scrollbar_width, 0px)) !important;
    max-width: calc(100vw - var(--swl-scrollbar_width, 0px)) !important;
    margin-left: calc(
      50% - 50vw + var(--swl-scrollbar_width, 0px) / 2
    ) !important;
    margin-right: calc(
      50% - 50vw + var(--swl-scrollbar_width, 0px) / 2
    ) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* 講師セクションのスマホ中央配置修正 */
@media (max-width: 959px) {
  /* 講師セクションのmarginを打ち消して中央配置 */
  .swell-block-fullWide.alignfull.bg-full {
    margin-left: 0;
    margin-right: 0;
    margin-inline: 0;
    /* bg-fullの位置指定も打ち消し */
    position: static;
    left: auto;
    right: auto;
    width: 100%;
  }

  /* レッスンセクションのmarginを打ち消して中央配置 */
  .swell-block-fullWide.alignfull.bg-full.bg-color-purple {
    margin-left: 0;
    margin-right: 0;
    margin-inline: 0;
    /* bg-fullの位置指定も打ち消し */
    position: static;
    left: auto;
    right: auto;
    width: 100%;
  }
}
