/* ============================================================
   SHODO FAM 統合CSS
   全カスタムCSSを1ファイルに統合
   ============================================================ */

/* ------------------------------------------------------------
   1. ヘッダーロゴ WooCommerce対策
   ------------------------------------------------------------ */

/* WooCommerceのimg height:autoからヘッダーロゴを保護 */
.woocommerce .c-headLogo__img,
.woocommerce-page .c-headLogo__img {
  height: 100% !important;
}

/* ------------------------------------------------------------
   2. スマホキャッチフレーズ (追加CSS)
   ------------------------------------------------------------ */

/* スマホでキャッチフレーズを表示させる */
@media (max-width: 959px) {
  .l-header__inner .c-catchphrase {
    display: block;
    margin-top: -10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------
   3. パンくずリスト (追加CSS)
   ------------------------------------------------------------ */

/* 記事名を表示させる */
.single .p-breadcrumb__item:last-child > .p-breadcrumb__text {
  display: block !important;
  white-space: nowrap;
}

/* パンくずリスト全体の調整 */
.p-breadcrumb__list {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-right: 1em;
  scrollbar-width: none;
}
.p-breadcrumb__list::-webkit-scrollbar {
  display: none;
}

/* 最後のパンくずアイテム */
.p-breadcrumb__item:last-of-type,
.p-breadcrumb__item:last-of-type .p-breadcrumb__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------------------
   4. ログインアイコン・ボタン (12409.css)
   ------------------------------------------------------------ */

/* 共通アイコンは普通に表示（メニュー等が消えない） */
.c-iconBtn__icon {
  display: block !important;
  font-size: 24px !important;
  line-height: 1 !important;
}

/* icon-person だけ中央寄せ＆ズレ防止（ログイン画像用） */
.c-iconBtn__icon.icon-person {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* アイコン画像 */
.icon-person::before {
  content: "" !important;
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  background-image: url('https://shodo-fam.com/wp-content/uploads/2025/04/loginlogo-2.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ボタン本体を横並び・中央揃えに */
.c-iconBtn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0px !important;
  white-space: nowrap !important;
  height: 100% !important;
  width: 100% !important;
  text-decoration: none !important;
}

/* ラベル（ログイン）を右に表示・整列、おしゃれなフォント＋大きめに */
.c-iconBtn__label {
  display: inline !important;
  width: auto !important;
  color: #484d50 !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  font-family: 'Noto Sans JP', sans-serif !important;
  letter-spacing: 0.03em !important;
  line-height: 1 !important;
  transform: none !important;
}

/* ボタン全体の枠サイズを調整（正方形縛り解除） */
.l-header__customBtn.sp_ {
  height: auto !important;
  width: auto !important;
  padding: 4px 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ------------------------------------------------------------
   5. フローティングCTA (画像バナー版)
   ------------------------------------------------------------ */

.floating-cta {
  display: none;
}

@media screen and (max-width: 1024px) {
  .floating-cta.show {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    display: block;
  }

  .floating-cta-link {
    display: block;
    text-decoration: none;
  }

  .floating-cta-img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.floating-cta-close {
  position: absolute;
  top: -24px;
  right: 0;
  width: 44px;
  height: 24px;
  background: #fff;
  color: #666;
  border: 1px solid #ccc;
  border-right: none;
  border-bottom: none;
  border-radius: 6px 0 0 0;
  font-size: 20px;
  font-weight: bold;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cta-close:hover {
  background: #f5f5f5;
}

/* スライドアニメーション */
@media screen and (max-width: 1024px) {
  .floating-cta.show {
    transition: transform 0.3s ease;
    transform: translateY(0);
  }
  .floating-cta.show.minimized {
    transform: translateY(100%);
    pointer-events: none;
  }
}

/* ↑復元ボタン */
.floating-cta-restore {
  display: none;
}



body.modal-open .floating-cta {
  z-index: 0 !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden !important;
}




/* ------------------------------------------------------------
   7. PMPro会員フォーム (12083, 12124.css + child theme)
   ------------------------------------------------------------ */

/* アカウント作成欄の周囲を透明にする (12083) */
#pmpro_user_fields,
#pmpro_user_fields .pmpro_card,
#pmpro_user_fields .pmpro_card_content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* お支払い情報欄の周囲も透明にする */
#pmpro_payment_information_fields,
#pmpro_payment_information_fields .pmpro_card,
#pmpro_payment_information_fields .pmpro_card_content {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Stripe Elements 共通スタイル（スマホでもPCと同じに） */
#AccountNumber,
#Expiry,
#CVV {
  min-height: 48px;
  background: #fff;
  border: 1px solid #ccc;
  opacity: 1 !important;
  pointer-events: auto !important;
  padding: 0.5em;
  width: 100%;
  display: block;
  position: static !important;
  overflow: visible !important;
  transform: none !important;
}

/* スマホ特有の問題回避（全ての画面サイズで強制適用） */
.StripeElement {
  background: #fff !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  min-height: 48px;
  padding: 0.5em;
  border: 1px solid #ccc;
  box-sizing: border-box;
  width: 100%;
}

/* モバイルで入力できない問題の緩和 */
input.__PrivateStripeElement-input {
  opacity: 1 !important;
  pointer-events: auto !important;
  position: static !important;
  height: auto !important;
  width: 100% !important;
  font-size: 16px !important;
  z-index: 999 !important;
}

/* 子テーマ: PMPro 2カラム スマホ対応 */
@media screen and (max-width: 767px) {
  .pmpro .pmpro_cols-2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .pmpro .pmpro_cols-2 > * {
    width: calc(50% - 4px) !important;
  }
}

/* ------------------------------------------------------------
   9. WooCommerce (11864, 11865.css)
   ------------------------------------------------------------ */

/* WooCommerceページでもSWELLと同じフォントを適用 (11865) */
body.woocommerce,
body.woocommerce-page,
body.woocommerce * {
  font-family: var(--swl--font-base, "Noto Sans JP", sans-serif) !important;
}

/* 商品画像に自然な影をつける（SWELL風） (11864) */
img.attachment-woocommerce_thumbnail {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 4px 4px -4px rgba(0, 0, 0, 0.1) !important;
  transition: box-shadow 0.3s ease;
  display: block;
  background: #fff;
}

/* 影が隠れないように親要素のoverflowを解除 */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
  overflow: visible !important;
}

/* ------------------------------------------------------------
   10. モーダル画像 (11795.css)
   ------------------------------------------------------------ */

.modal img {
  display: block !important;
  vertical-align: bottom !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------------------------
   11. ウィジェット余白 (11797, 12369.css)
   ------------------------------------------------------------ */

/* ウィジェット画像の上余白除去 (11797) */
#media_image-8 {
  margin-top: 0;
  padding-top: 0;
}

/* サイドバーウィジェット間の余白除去 (12369) */
@media (min-width: 960px) {
  #sidebar .c-widget + .c-widget {
    margin-top: 0 !important;
  }
}

/* ------------------------------------------------------------
   12. メインコンテンツ余白 (12402.css)
   ------------------------------------------------------------ */

.l-mainContent__inner > .post_content {
  margin-top: 1em !important;
}

/* ------------------------------------------------------------
   13. H2見出し (13467.css) - 削除済み
   SWELLのデフォルトh2サイズをそのまま使用
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   14. 無限スクロール (13367, 13389, 13394.css merged)
   ------------------------------------------------------------ */

@keyframes infinity-scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes infinity-scroll-right {
  from { transform: translateX(-100%); }
  to { transform: translateX(0%); }
}

.scroll-infinity {
  overflow: hidden;
  width: 100%;
  padding: 0;
  background: transparent;
}

.scroll-infinity__wrap {
  display: flex;
  width: max-content;
}

.scroll-infinity__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.scroll-infinity__list--left {
  animation: infinity-scroll-left 40s linear infinite;
}

.scroll-infinity__list--right {
  animation: infinity-scroll-right 40s linear infinite;
}

.scroll-infinity__item {
  flex-shrink: 0;
  padding-right: 16px;
}

.scroll-infinity__item img {
  display: block;
  width: auto;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1),
              0 4px 12px -4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.scroll-infinity__item img:hover {
  transform: scale(1.03);
}

.alignfull > .wp-block-cover__inner-container > .scroll-infinity,
.alignfull > .wp-block-group__inner-container > .scroll-infinity,
.swell-block-fullWide__inner > .scroll-infinity {
  margin-bottom: 1em !important;
}

/* ------------------------------------------------------------
   15. 受講者の声 (12610.css)
   ------------------------------------------------------------ */

.voice-container {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  padding: 0;
}

.voice-card {
  width: calc(50% - 20px);
  margin-bottom: 0;
}

.voice-balloon {
  position: relative;
  background-color: #fff;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  border-radius: 10px;
  font-weight: bold;
  font-size: 17px;
  line-height: 1.45;
  padding: 15px 20px 15px 16px;
}

.voice-balloon::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 48px;
  width: 36px;
  height: 30px;
  background-image: url('https://palmie.s3-ap-northeast-1.amazonaws.com/v2/subscriptions/lp/06_voice/balloon-tail.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.voice-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
  margin-top: 24px;
  padding-left: 0;
}

.voice-icon-container {
  text-align: center;
  width: 95px;
  flex-shrink: 0;
}

.voice-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.voice-name {
  margin-top: 0;
  font-size: 0.9rem;
  font-weight: normal;
  line-height: 1.2;
}

.voice-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

@media screen and (max-width: 1023px) {
  .voice-container {
    padding: 0;
  }

  .voice-card {
    width: 100%;
    margin-bottom: 0;
  }

  .voice-balloon {
    font-size: 15px;
    padding: 12px 16px 12px 14px;
    line-height: 1.4;
  }

  .voice-balloon::after {
    left: 44px;
  }

  .voice-flex {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-top: 24px;
    gap: 8px;
    padding-left: 0;
  }

  .voice-icon-container {
    width: 85px;
  }

  .voice-icon {
    width: 78px;
    height: 78px;
    border: 2px solid #fff;
  }

  .voice-name {
    margin-top: 0;
    font-size: 0.85rem;
    line-height: 1.2;
  }

  .voice-text {
    font-size: 1.05rem;
    line-height: 1.6;
  }
}

/* ------------------------------------------------------------
   16. 講師紹介カード (13511.css)
   ------------------------------------------------------------ */

.instructor-card {
  max-width: 600px;
  margin: 24px auto;
  padding: 20px 40px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  text-align: left;
  border-bottom: 1px solid #ccc;
}

.instructor-top {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.instructor-image {
  width: 120px;
  min-width: 120px;
}

.instructor-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1cb0f8;
}

.instructor-info {
  flex: 1;
}

.name-and-role {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-wrap: wrap;
}

.instructor-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #222;
  margin: 0;
}

.role-label {
  background-color: #1cb0f8;
  color: #fff;
  padding: 0.2em 0.7em;
  border-radius: 20px;
  font-size: 0.8em;
  white-space: nowrap;
}

.instructor-title {
  font-size: 0.95em;
  color: #555;
  margin: 0.3em 0 0 0;
}

.instructor-message {
  margin-top: 1.5em;
  font-size: 1em;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 768px) {
  .instructor-card {
    padding: 20px 20px;
  }
}

/* ------------------------------------------------------------
   17. 料金ボックス (14445.css - newer version with #1cb0f8)
   ------------------------------------------------------------ */

.sf-price-box {
  background: #f3fbfe;
  border: 2px solid #1cb0f8;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  font-family: "Yu Gothic", sans-serif;
  position: relative;
}

.sf-price-badge {
  display: inline-block;
  background: #1cb0f8;
  color: #fff;
  font-weight: bold;
  padding: 4px 36px;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 4px 0 8px;
}

.sf-price-main {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.1;
}

.sf-price-highlight {
  font-size: 2.6rem;
  color: #FF3636;
  vertical-align: baseline;
}

.sf-price-yen {
  font-size: 1.3rem;
  margin-left: 4px;
  vertical-align: baseline;
  color: #FF3636;
}

.sf-price-note {
  color: #666;
  font-size: 1rem;
  display: inline-block;
  line-height: 1.1;
  margin-top: -0.4em;
}

.sf-price-divider::before {
  content: "";
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 1.2em auto;
  border-top: 1px dotted #1cb0f8;
}

.sf-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.7;
}

.sf-price-features li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
}

.sf-price-features li::before {
  content: "2714";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.8rem;
  color: #fff;
  background-color: #1cb0f8;
  border-radius: 3px;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 24px;
  font-weight: bold;
}

@media screen and (max-width: 600px) {
  .sf-price-features {
    width: 100%;
    text-align: left;
  }
}

/* ------------------------------------------------------------
   18. 比較テーブル (14445.css)
   ------------------------------------------------------------ */

.compare-section {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 !important;
  font-family: var(--main-font);
  background-color: #fff;
  color: #666;
  margin-bottom: 0 !important;
}

.compare-section table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 6px !important;
  border: none;
  overflow: hidden;
}

.compare-section th,
.compare-section td {
  padding: 8px !important;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  background-color: #f5f5f5;
  border-radius: 6px;
  border: none !important;
  box-sizing: border-box;
  color: #666 !important;
  font-family: var(--main-font);
}

.compare-section th {
  background-color: #e8f4fa !important;
}

.compare-section th:nth-child(2) {
  background-color: #1cb0f8 !important;
  color: #fff !important;
}

.compare-section th:nth-child(3) {
  background-color: #666 !important;
  color: #fff !important;
}

.compare-section th:first-child {
  background-color: transparent !important;
}

.compare-section td:nth-child(2) {
  color: #1e73be !important;
}

.compare-section .highlight-cell {
  background-color: #f3fbfe !important;
}

span.mark-big {
  font-size: 20px !important;
  display: block;
  margin: 0 !important;
  color: #1e73be !important;
}

span.mark-small {
  font-size: 12px;
  display: block;
  margin: 0 !important;
  color: #666 !important;
}

.compare-section th.row-label {
  background-color: #F7F7F5 !important;
  color: #666 !important;
}

.text-lg {
  font-size: 16px;
  display: inline-block;
}

.highlight-blue {
  color: #1cb0f8 !important;
}

@media screen and (max-width: 600px) {
  .compare-section th,
  .compare-section td {
    font-size: 13px !important;
    padding: 8px 4px !important;
  }
}

/* ------------------------------------------------------------
   19. 料金プラン表 (11663.css) - 削除済み
   比較表（SHODO FAM / 書道教室A / 書道教室B）は廃止
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   20. ランキング・スライダー (11664.css)
   ------------------------------------------------------------ */

/* ランキングページのh3（ランキング内のみ） */
.ranking-item .post_content h3,
.ranking-item h3 {
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1.4;
  margin: 3em 0 2em;
  position: relative;
}

/* ランキングアイテム全体のスタイル */
.ranking-item {
  position: relative;
  margin-bottom: 20px;
  padding-top: 45px;
}

/* タイトルとラベルを包むコンテナ */
.title-wrapper {
  position: relative;
  padding-left: 0px;
}

/* ラベル共通のスタイル */
.rank-label {
  position: absolute;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 1em;
  font-weight: bold;
  display: inline-block;
  color: white;
  top: -40px;
  left: 0px;
}

.rank-1 {
  background-color: #F2B50D;
}

.rank-2 {
  background-color: #738C8C;
}

.rank-3 {
  background-color: #B36B4D;
}

.rank-4 {
  background-color: #F7F7F7;
  color: #333333;
}

/* タイトルのスタイル（ランキング内のみ） */
.ranking-item .wp-block-heading {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0;
}

/* カスタムセクションタイトルのスタイル */
.is-style-section_ttl {
  margin-bottom: 0px;
}

/* PC用スタイル（画面幅768px以上の場合） */
@media (min-width: 768px) {
  .ranking-item h3 {
    margin: 2em 0 2em;
  }
}

/* モバイルでランキングのカラムのみ全幅にする */
@media only screen and (max-width: 768px) {
  .ranking-item .wp-block-columns {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
  }

  .ranking-item .wp-block-column {
    padding-left: 0;
    padding-right: 0;
  }
}

/* スライダー全体のスタイル */
.slider-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* スライダーのアイテム */
.slider {
  display: flex;
  transition: transform 0.5s ease;
}

.slider-item {
  min-width: 100%;
  width: 100%;
  flex-shrink: 0;
}

.slider img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* ボタンの基本スタイル（追加CSSの最新版を採用） */
.slider-wrapper .slider-btn {
  position: absolute !important;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(247, 247, 247, 0.5) !important;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  padding: 0;
  border: none;
}
.slider-wrapper .slider-btn:hover {
  background-color: rgba(247, 247, 247, 0.8) !important;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* スライダー矢印アイコン */
.slider-wrapper .arrow-icon {
  width: 10px;
  height: auto;
  filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
  color: #313131 !important;
}

/* スライダーの前後ボタン位置 */
.slider-wrapper .next-btn {
  right: 10px !important;
}
.slider-wrapper .prev-btn {
  left: 10px !important;
}

/* スライダーのドット */
.slider-wrapper .dots {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px !important;
  margin-top: 10px !important;
  margin-bottom: 20px !important;
}
.slider-wrapper .dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  background-color: #ccc !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease !important;
}
.slider-wrapper .dot.active {
  background-color: #313131 !important;
}

/* ------------------------------------------------------------
   21. Contact Form 7 (追加CSS)
   ------------------------------------------------------------ */

/* Contact Form7 スマホ・タブレット用カスタマイズ */
@media (max-width: 850px) {
  table.inquiry th,
  table.inquiry td {
    display: block;
    padding: 1em 0 !important;
    width: 100%;
    border: 0;
  }

  input.wpcf7-submit {
    margin-bottom: 30px;
    width: 100%;
  }

  .haveto {
    margin-left: 10px;
  }
}

/* Contact Form7 全体カスタマイズ */
.inquiry p {
  display: inline;
}

table.inquiry {
  margin-bottom: 30px;
  border: 1px solid #d7d7d7;
  line-height: 1.5;
  vertical-align: middle;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.inquiry tr {
  border: 0 !important;
}

.inquiry th {
  text-align: left;
  font-size: 14px;
  color: #444;
  padding: 1em 0.5em;
  background: #f2f2f2;
  border: 1px solid #d7d7d7;
  white-space: nowrap;
}

.haveto,
.any {
  font-size: 13px;
  padding: 5px;
  color: #fff;
  border-radius: 2px;
  margin-right: 5px;
  font-weight: normal;
}
.haveto {
  background: #ff9393;
}
.any {
  background: #93c9ff;
}

.inquiry td {
  font-size: 14px;
  border: 1px solid #d7d7d7;
  padding: 0.5em;
}

.wpcf7-form-control {
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #d7d7d7;
  padding: 0.8em;
  border-radius: 4px;
  box-sizing: border-box;
}

.inquiry input,
.inquiry select,
.inquiry textarea {
  margin: 5px 0;
  background: #eef9ff;
  border: 1px solid #d7d7d7;
  padding: 0.7em;
  border-radius: 4px;
}
.inquiry textarea {
  padding-bottom: 10em;
}

.wpcf7-list-item-label,
.wpcf7-checkbox,
input[type=checkbox],
input[type=radio] {
  vertical-align: middle;
}
.wpcf7-list-item-label {
  padding: 0 5px 0 2px;
}
.verticallist {
  display: inline-grid;
  gap: 10px;
  margin: 10px 0;
}

.wpcf7-submit {
  display: block;
  margin: 20px auto;
  padding: 1em 0;
  width: 80%;
  background: #47bdef;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 4px;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.wpcf7-submit:hover {
  background: #36a1cf;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.screen-reader-response {
  display: none;
}
.wpcf7-not-valid-tip {
  color: #e92323;
  font-size: 13px;
  margin-top: 5px;
}

.wpcf7-acceptance {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  box-shadow: none;
  font-weight: normal;
  color: inherit;
}

/* ------------------------------------------------------------
   22. 特定記事調整 (追加CSS - postid-8701)
   ------------------------------------------------------------ */

/* 特定記事のパディング調整 */
.postid-8701 .wp-block-group.has-swl-main-thin-background-color.has-background {
  padding: 1em !important;
}

/* ------------------------------------------------------------
   23. キャンペーン期限ショートコード
   ------------------------------------------------------------ */

/* ショートコードを囲む親pタグの余白除去 + 中央寄せ */
p:has(> .campaign-deadline) {
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
}

/* ------------------------------------------------------------
   24. 入力欄共通デザイン（全フォーム統一）
   Profile / Payment / ログイン画面など全てに適用
   ------------------------------------------------------------ */

/* 通常時の入力欄 */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
select,
textarea {
  background: #fff !important;
  border: 1px solid #c5cbd1 !important;
  border-radius: 4px !important;
  outline: none !important;
  transition: 0.2s !important;
  padding: 0.7em !important;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
  outline: none !important;
  border-color: #1cb0f8 !important;
  box-shadow: #1cb0f8 0px 0px 10px -5px !important;
}

/* ------------------------------------------------------------
   25. 送信ボタン共通デザイン（形だけ統一、色は元のまま）
   ------------------------------------------------------------ */

/* 送信ボタンの形（ログイン・プロフィール） */
.pmpro_btn-submit,
.pmpro_btn-submit-update-profile,
input[type="submit"].pmpro_btn,
button[type="submit"].pmpro_btn,
.button.button-primary,
#wp-submit,
input[type="submit"].button,
.pmpro_btn-cancel {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 85% !important;
  max-width: 400px !important;
  padding: 14px 24px !important;
  border-radius: 6px !important;
  text-align: center !important;
  font-weight: bold !important;
}

/* Paymentページのカスタムボタン（中央寄せのみ） */
.pmpro-button-wrap {
  margin-left: auto !important;
  margin-right: auto !important;
}




/* ------------------------------------------------------------
   27. Tutor LMS ダッシュボード基本スタイル
   ------------------------------------------------------------ */

/* フォントをSWELLテーマと統一 */
.tutor-dashboard,
.tutor-dashboard .tutor-dashboard-content,
.tutor-dashboard .tutor-form-control,
.tutor-dashboard .tutor-form-label,
.tutor-dashboard .tutor-btn {
  font-family: var(--swl-font_family) !important;
}

/* プロフィール設定ページのスペーシング調整 */
.tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor {
  height: 170px;
}
.tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor #tutor_profile_area {
  top: 10px;
}
@media (max-width: 688px) {
  .tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor #tutor_profile_area {
    top: 10px;
  }
}
.tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor #tutor_pp_option {
  top: 160px;
}
@media (max-width: 688px) {
  .tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor #tutor_pp_option {
    top: 140px;
  }
}
.tutor-dashboard .tutor-dashboard-content #tutor_profile_cover_photo_editor #tutor_photo_meta_area {
  display: none;
}

/* 入力欄の幅をデフォルトサイズに */
.tutor-dashboard-setting-profile .tutor-form-control {
  max-width: 400px;
}

/* ------------------------------------------------------------
   28. Tutor LMS ご利用中プランページ
   ------------------------------------------------------------ */

.shodofam-membership-wrap .pmpro_section {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}
.shodofam-membership-wrap .pmpro_section_title {
  display: none !important;
}
.shodofam-membership-wrap .pmpro_card {
  background: #fff !important;
  border: 1px solid var(--tutor-border-color, #e0e2ea) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.shodofam-membership-wrap .pmpro_card_title {
  background: none !important;
  color: var(--tutor-body-color, #1a1b1e) !important;
  font-weight: 500 !important;
  font-size: 1.1em !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--tutor-color-gray, #e3e5eb) !important;
  border-left: none !important;
}
.shodofam-membership-wrap .pmpro_card_content {
  padding: 20px !important;
}
.shodofam-membership-wrap .pmpro_list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.shodofam-membership-wrap .pmpro_list_item {
  flex: 1 1 auto !important;
  min-width: 140px !important;
  background: var(--tutor-color-gray-10, #eff1f6) !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
}
.shodofam-membership-wrap .pmpro_list_item_label {
  display: block !important;
  font-size: 0.8em !important;
  color: var(--tutor-color-hints, #767c8e) !important;
  margin-bottom: 4px !important;
  font-weight: normal !important;
}
.shodofam-membership-wrap .pmpro_list_item_value {
  display: block !important;
  font-size: 1em !important;
  font-weight: 500 !important;
  color: var(--tutor-body-color, #1a1b1e) !important;
}
.shodofam-membership-wrap .pmpro_card_actions {
  display: flex !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  padding: 12px 20px !important;
  border-top: 1px solid var(--tutor-color-gray, #e3e5eb) !important;
  background: transparent !important;
}
.shodofam-membership-wrap .pmpro_card_action a {
  color: var(--tutor-color-primary, #3e64de) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  font-size: 0.9em !important;
  padding: 4px 8px !important;
  border-radius: 4px !important;
  transition: background-color 0.2s !important;
}
.shodofam-membership-wrap .pmpro_card_action a:hover {
  background-color: var(--tutor-color-gray-10, #eff1f6) !important;
}
.shodofam-membership-wrap #pmpro_actionlink-change {
  display: none !important;
}
.shodofam-membership-wrap .pmpro_card_action_separator {
  color: #ccc !important;
}
@media screen and (max-width: 600px) {
  .shodofam-membership-wrap .pmpro_list {
    flex-direction: column !important;
  }
  .shodofam-membership-wrap .pmpro_card_actions {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .shodofam-membership-wrap .pmpro_card_action_separator {
    display: none !important;
  }
  .shodofam-membership-wrap .pmpro_card_action a {
    display: block !important;
    text-align: center !important;
    background: #f7f8fa !important;
    padding: 10px 16px !important;
    border-radius: 6px !important;
  }
}

/* ------------------------------------------------------------
   29. Tutor LMS お支払い情報更新ページ
   ------------------------------------------------------------ */
/* お支払い方法ページ - アカウント設定カードを非表示 */
.sf-paymentway-page .pmpro_section > .pmpro_card:first-child {
  display: none !important;
}

/* ===== 支払い情報入力欄デザイン ===== */

/* カード番号フィールド - ブランド画像付き */
.sf-paymentway-page .pmpro_payment-account-number {
  position: relative;
}

.sf-paymentway-page .pmpro_payment-account-number label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* カードブランド画像（ラベルの後に表示） */
.sf-paymentway-page .pmpro_payment-account-number label::after {
  content: "";
  display: inline-flex;
  gap: 4px;
  background-image: 
    url("https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/flags/4x3/cc/visa.svg"),
    url("https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/flags/4x3/cc/mastercard.svg"),
    url("https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/flags/4x3/cc/amex.svg"),
    url("https://cdn.jsdelivr.net/gh/lipis/flag-icons@6.6.6/flags/4x3/cc/jcb.svg");
  width: 120px;
  height: 20px;
  background-size: 28px auto;
  background-repeat: no-repeat;
  background-position: 0 center, 32px center, 64px center, 96px center;
  margin-left: auto;
}

/* 3段レイアウト */
.sf-paymentway-page .pmpro_cols-2 {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.sf-paymentway-page .pmpro_cols-2 > .pmpro_form_field {
  width: 100% !important;
}

/* 入力欄の共通スタイル - 丸みと青い光 */
.sf-paymentway-page #AccountNumber,
.sf-paymentway-page #Expiry,
.sf-paymentway-page #CVV {
  min-height: 48px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* フォーカス時の青い光 */
.sf-paymentway-page #AccountNumber.StripeElement--focus,
.sf-paymentway-page #Expiry.StripeElement--focus,
.sf-paymentway-page #CVV.StripeElement--focus,
.sf-paymentway-page #AccountNumber:focus-within,
.sf-paymentway-page #Expiry:focus-within,
.sf-paymentway-page #CVV:focus-within {
  border-color: #1cb0f8 !important;
  box-shadow: 0 0 0 3px rgba(28, 176, 248, 0.2) !important;
  outline: none;
}

/* ラベルスタイル */
.sf-paymentway-page .pmpro_payment-account-number label,
.sf-paymentway-page .pmpro_payment-expiration label,
.sf-paymentway-page .pmpro_payment-cvv label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
  margin-bottom: 6px;
  display: block;
}

/* セキュリティコードのヒント */
.sf-paymentway-page .pmpro_payment-cvv {
  position: relative;
}

.sf-paymentway-page .pmpro_payment-cvv label::after {
  content: "裏面の3桁または4桁";
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

/* カードブランド画像を別の方法で追加（インライン画像風） */
.sf-paymentway-page .pmpro_payment-account-number::before {
  content: "";
  display: block;
  position: absolute;
  top: 6px;
  right: 0;
  width: 140px;
  height: 24px;
  background-image: 
    url("data:image/svg+xml,%3Csvg xmlns=http://www.w3.org/2000/svg viewBox=0 0 48 32%3E%3Crect fill=%231a1f71 width=48 height=32 rx=4/%3E%3Cpath fill=%23fff d=M19 10l-2 12h3l2-12h-3zm14 0l-3 8-1-8h-3l2 12h3l5-12h-3zm-20 0l-3 12h5l1-3h3l-1-3h-2l1-3h3l1-3h-8zm18 0l-2 12h3l2-12h-3z/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  pointer-events: none;
}

/* カード入力欄ラッパーの調整 */
.sf-paymentway-page #pmpro_payment_information_fields .pmpro_card_content {
  padding: 20px !important;
}

/* Stripe Element内部のスタイル調整 */
.sf-paymentway-page .StripeElement {
  background: #fff !important;
  border-radius: 8px !important;
}

/* エラー状態のスタイル */
.sf-paymentway-page .StripeElement--invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

/* 入力済み状態 */
.sf-paymentway-page .StripeElement--complete {
  border-color: #10b981 !important;
}


/* ------------------------------------------------------------
   30. Tutor LMS 更新をキャンセルページ
   ------------------------------------------------------------ */

.shodofam-cancel-wrap .pmpro_form.pmpro_card {
  background: #fff !important;
  border: 1px solid var(--tutor-border-color, #e0e2ea) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.shodofam-cancel-wrap .pmpro_card_content {
  padding: 20px !important;
}
.shodofam-cancel-wrap .pmpro_card_title {
  background: none !important;
  color: var(--tutor-body-color, #1a1b1e) !important;
  font-weight: 500 !important;
  font-size: 1.1em !important;
  padding: 16px 20px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--tutor-color-gray, #e3e5eb) !important;
  border-left: none !important;
}
.shodofam-cancel-wrap .pmpro_btn-submit {
  background-color: #dc3545 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 10px 24px !important;
  font-size: 0.95em !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
}
.shodofam-cancel-wrap .pmpro_btn-submit:hover {
  background-color: #c82333 !important;
}
.shodofam-cancel-wrap .pmpro_btn-cancel {
  background: transparent !important;
  color: var(--tutor-color-hints, #767c8e) !important;
  border: 1px solid var(--tutor-border-color, #e0e2ea) !important;
  border-radius: 6px !important;
  padding: 10px 24px !important;
  font-size: 0.95em !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: background-color 0.2s !important;
}
.shodofam-cancel-wrap .pmpro_btn-cancel:hover {
  background-color: var(--tutor-color-gray-10, #eff1f6) !important;
}
.shodofam-cancel-wrap .pmpro_form_submit {
  margin-top: 20px !important;
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
}
.shodofam-cancel-wrap .pmpro_message {
  padding: 12px 16px !important;
  border-radius: 6px !important;
  margin-bottom: 16px !important;
  font-size: 0.9em !important;
}
.shodofam-cancel-wrap .pmpro_success {
  background: #eef7ee !important;
  border: 1px solid #c3e6c3 !important;
  color: #2e7d32 !important;
}
.shodofam-cancel-wrap .pmpro_actions_nav a {
  color: var(--tutor-color-primary, #3e64de) !important;
  text-decoration: none !important;
}
.shodofam-cancel-wrap .pmpro_actions_nav a:hover {
  text-decoration: underline !important;
}

/* キャンセルボタンを赤色に（複数セレクタ対応） */
.shodofam-cancel-wrap input[type="submit"],
.shodofam-cancel-wrap button[type="submit"],
.shodofam-cancel-wrap .pmpro_btn-submit,
.shodofam-cancel-wrap .pmpro_btn.pmpro_btn-submit {
  background-color: #dc3545 !important;
  color: #fff !important;
}
.shodofam-cancel-wrap input[type="submit"]:hover,
.shodofam-cancel-wrap button[type="submit"]:hover,
.shodofam-cancel-wrap .pmpro_btn-submit:hover {
  background-color: #c82333 !important;
}
@media screen and (max-width: 600px) {
  .shodofam-cancel-wrap .pmpro_form_submit {
    flex-direction: column !important;
  }
  .shodofam-cancel-wrap .pmpro_btn-submit,
  .shodofam-cancel-wrap .pmpro_btn-cancel {
    width: 100% !important;
    text-align: center !important;
  }
}

/* ------------------------------------------------------------
   31. Tutor LMS コース一覧ページ
   ------------------------------------------------------------ */

/* 作者（アバター＋名前）を非表示 */
.tutor-course-card .tutor-meta.tutor-mt-auto {
  display: none !important;
}

/* コース系ページ: サイドバー非表示 */
.post-type-archive-courses #sidebar,
.single-courses #sidebar,
.tax-course-category #sidebar {
  display: none !important;
}

/* スマホで2列表示 */
@media screen and (max-width: 767px) {
  .tutor-course-list.tutor-grid.tutor-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .tutor-course-card .tutor-card-body {
    padding: 8px 10px !important;
  }
  .tutor-course-card .tutor-course-name {
    font-size: 0.95rem !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
  }
  .tutor-course-card .tutor-card-footer {
    padding: 10px 10px 10px !important;
  }
  .tutor-course-card .tutor-card-footer .tutor-btn {
    font-size: 0.9rem !important;
    padding: 6px 8px !important;
  }
}

/* ------------------------------------------------------------
   32. Tutor LMS モーダルスタイル
   ------------------------------------------------------------ */

/* モーダル表示時にヘッダー・フッター非表示 */
body.tutor-modal-open .l-header,
body.tutor-modal-open .l-fixHeader,
body.tutor-modal-open #tutor-dashboard-footer-mobile {
  display: none !important;
}

/* オーバーレイ背景 */
#tutor-change-email-modal .tutor-modal-overlay,
.tutor-modal .tutor-modal-overlay {
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* モーダルウィンドウ - 垂直中央寄せ */
#tutor-change-email-modal .tutor-modal-window,
.tutor-modal .tutor-modal-window {
  margin: 20px auto !important;
  min-height: calc(100% - 40px) !important;
  max-height: calc(100vh - 40px) !important;
  display: flex !important;
  align-items: center !important;
}

/* モーダルコンテンツの角丸 */
#tutor-change-email-modal .tutor-modal-content,
.tutor-modal .tutor-modal-content {
  border-radius: 8px !important;
  background-color: #fff !important;
}

/* モバイル対応 */
@media (max-width: 640px) {
  #tutor-change-email-modal .tutor-modal-window,
  .tutor-modal .tutor-modal-window {
    margin: 12px 10px 10px !important;
    min-height: calc(100% - 22px) !important;
    max-height: 85vh !important;
  }
}



/* ①「未分類」などが出るメタ情報（.tutor-meta tutor-course-details-info）を非表示 */
.tutor-meta.tutor-course-details-info{
  display: none !important;
}

/* ②「コース制作:（制作者情報）」ブロックを非表示 */
.tutor-single-course-sidebar-more .tutor-course-details-instructors{
  display: none !important;
}











/* コース評価欄を非表示 */
.tutor-course-ratings {
    display: none !important;
}
.tutor-ratings.tutor-mb-4 {
    display: none !important;
}
/* ダッシュボードヘッダー スマホ時パディング削除 */
@media (max-width: 767px) {
  .tutor-dashboard .tutor-frontend-dashboard-header {
    padding-bottom: 0 !important;
  }
}

/* コース作者情報を非表示 */
.tutor-meta-course-by-cat {
    display: none !important;
}
/* 受講者情報を非表示 */
.tutor-fs-7.tutor-mt-8 {
    display: none !important;
}



@media screen and (max-width: 600px) {
    .tutor-assignment-footer-btn.tutor-d-flex {
        flex-direction: column;
        gap: 12px;
    }
    .tutor-assignment-footer-btn .tutor-mr-16 {
        margin-right: 0 !important;
    }
}

/* ------------------------------------------------------------
   フッター非表示（アカウント・コース・ショップ系ページ）
   ------------------------------------------------------------ */

#body_wrap.page-id-15751 #footer { display: none; }
#body_wrap.page-id-15751 #footer,
#body_wrap.page-id-15751 #before_footer_widget,
#body_wrap.post-type-archive-courses #footer,
#body_wrap.post-type-archive-courses #before_footer_widget,
#body_wrap.single-courses #footer,
#body_wrap.single-courses #before_footer_widget,
#body_wrap.page-id-11142 #footer,
#body_wrap.page-id-11142 #before_footer_widget,
#body_wrap.single-product #footer,
#body_wrap.single-product #before_footer_widget {
  display: none;
}
/* 課題ページの期間・締切・合計点・合格点を非表示 */
.tutor-assignment-information {
  display: none !important;
}
.tutor-assignment-detail-info {
  display: none !important;
}
.tutor-assignment-meta-info {
  display: none !important;
}
.assignment-info {
  display: none !important;
}
