/*
Theme Name:   Snow Monkey Child
Theme URI:    https://snow-monkey.2inc.org
Description:  Snow Monkey の子テーマ。ポケットイングリッシュ用カスタム。
Author:       Custom
Template:     snow-monkey
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  snow-monkey-child
*/

/*
 * セクション一覧（子テーマのみの修正・親テーマは未変更）
 * 1. ヘッダー（sticky）・ナビ・マイページ/ログインボタン
 * 2. お問い合わせセクション・フォーム（#contact）
 * 3. #flow 背景・本文色（黒）
 * 4. ページテンプレート（ログイン・マイページ・決済・決済完了）レイアウト
 * 5. 上記ページ：インフォバー非表示・ヘッダー二重解消
 * 6. 上記ページ：フッター余白
 * 7. 子テーマフッター・ページトップ（親のページトップは非表示）
 */

/* 同一ページ内アンカーへのスムーズスクロール */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   1. 子テーマヘッダー（追随固定）・ヘッダーナビ・マイページボタン
   ========================================================================== */
/* ヘッダーをスクロール時に上端に固定（追随） */
.l-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.sm-child-header-nav .sm-child-header-nav__list,
.sm-child-header-nav .c-navbar {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0 1.5em !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sm-child-header-nav .c-navbar__item {
  margin: 0 !important;
  padding: 0 !important;
}

.sm-child-header-nav .c-navbar__item a {
  text-decoration: none;
  white-space: nowrap;
}

/* マイページ／ログインボタン（全ページ統一・親テーマの競合を完全に排除）
 * 独自クラスで固定サイズを指定し、フロント・他ページで同じ見た目に */
.sm-child-header-nav .sm-child-header-nav__item--btn {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
}

.sm-child-header-nav .sm-child-header-nav__item--btn .sm-child-header-nav__btn {
  /* 親の flex/display を完全に上書き（フロント・他ページで同じサイズに） */
  display: inline-block !important;
  flex: none !important;
  width: auto !important;
  height: auto !important;
  /* 固定パディングで全ページ統一 */
  padding: 0.5em 1.25em !important;
  line-height: 1.4 !important;
  min-height: 2.25em !important;
  box-sizing: border-box !important;
  /* デザイン */
  background: #166534 !important;
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  border-radius: 9999px !important;
  border: none !important;
  text-decoration: none !important;
  text-align: center !important;
  vertical-align: middle !important;
  transition: background 0.2s;
}

.sm-child-header-nav
  .sm-child-header-nav__item--btn
  .sm-child-header-nav__btn:hover {
  background: #166534 !important;
  color: #fff !important;
}

/* ドロワー（ハンバーガーメニュー）: 背景を白系に（赤だと見えないため） */
#drawer-nav,
#drawer-nav .c-drawer__inner {
  background-color: #fff !important;
}

/* ドロワー: ヘッダーと同じリンクのみ・シンプル表示 */
.sm-child-drawer__menu {
  list-style: none !important;
  margin: 0 !important;
  padding: 1rem 0 !important;
}
.sm-child-drawer__menu .c-drawer__item {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.sm-child-drawer__menu .c-drawer__item a {
  display: block;
  padding: 0.9rem 1.25rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background 0.2s;
}
.sm-child-drawer__menu .c-drawer__item a:hover {
  background: rgba(0, 0, 0, 0.04);
}
/* ログイン／マイページはCTA風（ヘッダーと統一） */
.sm-child-drawer__menu .c-drawer__item:last-child a {
  background: #166534 !important;
  color: #fff !important;
  text-align: center;
  margin: 0.5rem 1.25rem;
  border-radius: 9999px;
}
.sm-child-drawer__menu .c-drawer__item:last-child a:hover {
  background: #166534 !important;
}

/* ==========================================================================
   2. お問い合わせセクション（サイトのティール系に合わせた配色）
   ========================================================================== */
.sm-child-section-contact {
  padding: 3rem 0;
  background:
    linear-gradient(
      transparent 50%,
      rgba(34, 139, 34, 0.15) 80%,
      rgba(34, 139, 34, 0.45) 100%
    ),
    linear-gradient(
      135deg,
      rgba(240, 255, 240, 0.4) 0%,
      rgba(200, 230, 201, 0.6) 100%
    );
}

/* お問い合わせ見出し（親の .c-section 等の競合を上書き） */
.sm-child-section-contact .sm-child-section-contact__title {
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  color: #111 !important;
  margin: 0 0 1.5rem !important;
  padding-bottom: 0.5rem !important;
  border-bottom: none !important;
  text-align: center !important;
  position: relative !important;
}

/* 見出し下のバー（テキスト幅程度に短く） */
.sm-child-section-contact .sm-child-section-contact__title::after {
  content: "";
  display: block;
  width: 4em;
  height: 2px;
  background: #166534 !important;
  margin: 0.5rem auto 0;
}

.sm-child-section-contact__lead {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.sm-child-section-contact__action {
  margin: 0;
  text-align: center;
}

.sm-child-section-contact__btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #166534 !important;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

.sm-child-section-contact__btn:hover {
  background: #0f766e;
  color: #fff;
}

/* --- お問い合わせフォーム（ティール系・必須*赤・送信ボタンはサイトカラー） --- */
.sm-child-contact-form {
  background-color: #f0fdfa;
  border: 2px solid #99f6e4;
  padding: 2rem;
  border-radius: 8px;
  max-width: 32rem;
  margin: 0 auto;
}

.sm-child-contact-form__required-note {
  font-size: 0.875rem;
  color: #166534 !important;
  margin: 0 0 1.25rem;
}

.sm-child-contact-form__asterisk {
  color: #166534 !important;
}

.sm-child-contact-form__message {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

.sm-child-contact-form__message--success {
  background: #d4edda;
  color: #155724;
}

.sm-child-contact-form__message--error {
  background: #f8d7da;
  color: #721c24;
}

.sm-child-contact-form__form {
  margin: 0;
}

.sm-child-contact-form__field {
  margin: 0 0 1.25rem;
}

.sm-child-contact-form__label {
  display: block;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.sm-child-contact-form__input,
.sm-child-contact-form__select,
.sm-child-contact-form__textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.sm-child-contact-form__textarea {
  min-height: 6rem;
  resize: vertical;
}

.sm-child-contact-form__select {
  appearance: auto;
  cursor: pointer;
}

/* 送信ボタンラッパー（親テーマの競合を上書きして中央揃え） */
.sm-child-contact-form .sm-child-contact-form__submit {
  margin: 1.5rem 0 0 !important;
  text-align: center !important;
}

.sm-child-contact-form
  .sm-child-contact-form__submit
  .sm-child-contact-form__btn {
  display: inline-block !important;
}

.sm-child-contact-form__btn {
  display: inline-block;
  padding: 0.65rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #166534 !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.sm-child-contact-form__btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
}

/* ==========================================================================
   3. ご利用の流れセクション（#flow）の背景・テキスト
   ========================================================================== */
[id="flow"] {
  background-color: #f8fafc;
  background-image: none;
}

[id="flow"] .wp-block-group__inner-container {
  background-color: #fff;
}

[id="flow"] .wp-block-group .wp-block-group {
  background-color: #fff;
}

[id="flow"] .wp-block-group.has-background,
[id="flow"] .wp-block-column.has-background {
  background-color: #fff !important;
}

[id="flow"] h2,
[id="flow"] h3,
[id="flow"] h4 {
  color: #1e293b;
}

[id="flow"] p,
[id="flow"] .wp-block-group p,
[id="flow"] .wp-block-column p {
  color: #111 !important;
}

/* ==========================================================================
   4. ログイン・マイページ・決済・決済完了のレイアウト（ティール系）
   body class は custom-modifications でスラッグ・テンプレートから付与
   ========================================================================== */
body.page-login .l-main,
body.page-mypage .l-main,
body.page-payment .l-main,
body.page-payment-complete .l-main,
body.sm-child-login-page .l-main {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  max-width: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background-color:
    linear-gradient(
      180deg,
      transparent 50%,
      rgba(34, 139, 34, 0.15) 80%,
      rgba(34, 139, 34, 0.45) 100%
    ),
    linear-gradient(
      135deg,
      rgba(240, 255, 240, 0.4) 0%,
      rgba(200, 230, 201, 0.6) 100%
    );
}

body.page-login .l-contents,
body.page-mypage .l-contents,
body.page-payment .l-contents,
body.page-payment-complete .l-contents,
body.sm-child-login-page .l-contents {
  max-width: none !important;
  width: 100% !important;
}

/* ==========================================================================
   ログインページ
   ========================================================================== */
body.page-login,
body.sm-child-login-page {
  background: linear-gradient(
    165deg,
    #f0fdfa 0%,
    #ccfbf1 40%,
    #99f6e4 100%
  ) !important;
  min-height: 100vh !important;
}

body.page-login .lc-login,
body.sm-child-login-page .lc-login {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  body.page-login .lc-login,
  body.sm-child-login-page .lc-login {
    padding: 3rem 1rem 4rem;
  }
}

body.page-login .lc-login-header,
body.sm-child-login-page .lc-login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

body.page-login .lc-login-header__label,
body.sm-child-login-page .lc-login-header__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #0d9488;
  display: block;
  margin-bottom: 0.75rem;
}

body.page-login .lc-login-header h1,
body.sm-child-login-page .lc-login-header h1 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #374151;
  margin: 0 0 0.5rem;
}

body.page-login .lc-login-header p,
body.sm-child-login-page .lc-login-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

body.page-login .lc-form-card,
body.sm-child-login-page .lc-form-card {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #99f6e4;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.1);
}

body.page-login .lc-form-group,
body.sm-child-login-page .lc-form-group {
  margin-bottom: 1.25rem;
}

body.page-login .lc-form-label,
body.sm-child-login-page .lc-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

body.page-login .lc-form-input,
body.sm-child-login-page .lc-form-input {
  width: 100%;
  padding: 12px 16px;
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #374151;
  outline: none;
  box-sizing: border-box;
}

body.page-login .lc-form-input:focus,
body.sm-child-login-page .lc-form-input:focus {
  border-color: #0d9488;
}

body.page-login .lc-submit-btn,
body.sm-child-login-page .lc-submit-btn {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
  transition:
    background 0.2s,
    box-shadow 0.2s;
}

body.page-login .lc-submit-btn:hover,
body.sm-child-login-page .lc-submit-btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(13, 148, 136, 0.4);
}

body.page-login .lc-error-msg,
body.sm-child-login-page .lc-error-msg {
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.875rem;
}

body.page-login .lc-error-msg:empty,
body.sm-child-login-page .lc-error-msg:empty {
  display: none;
}

body.page-login .lc-remember,
body.sm-child-login-page .lc-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

body.page-login .lc-remember input,
body.sm-child-login-page .lc-remember input {
  width: 18px;
  height: 18px;
  accent-color: #0d9488;
}

body.page-login .lc-remember label,
body.sm-child-login-page .lc-remember label {
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
}

body.page-login .lc-section,
body.sm-child-login-page .lc-section {
  padding: 4rem 0;
  border-top: 1px solid #ccfbf1;
}

body.page-login .lc-section-title,
body.sm-child-login-page .lc-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  margin: 0 0 1rem;
}

body.page-login .lc-section-desc,
body.sm-child-login-page .lc-section-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

body.page-login .lc-link-wrap,
body.sm-child-login-page .lc-link-wrap {
  margin-top: 1.5rem;
  text-align: center;
}

body.page-login .lc-link-wrap a,
body.sm-child-login-page .lc-link-wrap a {
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: none;
}

body.page-login .lc-link-wrap a:hover,
body.sm-child-login-page .lc-link-wrap a:hover {
  color: #0d9488;
}

/* ==========================================================================
   マイページ（画像どおり：白背景・表・プラン3種・オプション5種）
   ========================================================================== */
body.page-mypage {
  background: #fff !important;
  min-height: 100vh !important;
  color: #111 !important;
}

body.page-mypage .lc-mypage {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 2rem 1.5rem 4rem !important;
  position: relative;
  z-index: 1;
  text-align: left !important;
}

body.page-mypage .lc-mypage-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f9a8d4;
}

body.page-mypage .lc-mypage-greeting {
  font-size: 0.95rem;
  color: #374151;
  margin: 0 0 1.5rem;
}

body.page-mypage .lc-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

body.page-mypage .lc-plan-th {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 600;
  color: #374151;
}

body.page-mypage .lc-plan-th--select {
  width: 6em;
}
body.page-mypage .lc-plan-th--price {
  text-align: right;
  width: 8em;
  min-width: 7.5em;
  white-space: nowrap;
}

body.page-mypage .lc-plan-row {
  border-bottom: 1px solid #e5e7eb;
}

body.page-mypage .lc-plan-td {
  padding: 1rem;
  vertical-align: top;
}

body.page-mypage .lc-plan-td--select {
  vertical-align: middle;
}
body.page-mypage .lc-plan-td--price {
  text-align: right;
  font-weight: 600;
}
body.page-mypage .lc-plan-td--content {
  max-width: 280px;
}

body.page-mypage .lc-plan-radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

body.page-mypage .lc-plan-radio-label input {
  flex-shrink: 0;
}
body.page-mypage .lc-plan-name {
  display: block;
  font-weight: 600;
  color: #111;
  margin-bottom: 0.35rem;
}
body.page-mypage .lc-plan-tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
body.page-mypage .lc-plan-tag--orange {
  background: #fed7aa;
  color: #166534 !important;
}
body.page-mypage .lc-plan-tag--pink {
  background: #fbcfe8;
  color: #166534 !important;
}
body.page-mypage .lc-plan-tag--blue {
  background: #bfdbfe;
  color: #1e40af;
}

body.page-mypage .lc-plan-content-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.6;
  color: #4b5563;
}

body.page-mypage .lc-options-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 1rem;
}

body.page-mypage .lc-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

body.page-mypage .lc-option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}

body.page-mypage .lc-option-row input {
  margin-top: 0.25rem;
}
body.page-mypage .lc-option-label {
  font-weight: 500;
  color: #111;
}
body.page-mypage .lc-option-desc {
  font-size: 0.8rem;
  color: #6b7280;
  grid-column: 2;
}
body.page-mypage .lc-option-price {
  font-weight: 600;
  color: #374151;
}

body.page-mypage .lc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

body.page-mypage .lc-total-label {
  font-weight: 600;
  color: #374151;
}
body.page-mypage .lc-total-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}
body.page-mypage .lc-total-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0 0 1.5rem;
}

body.page-mypage .lc-pay-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #166534 !important;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s;
}

body.page-mypage .lc-pay-btn:hover {
  background: #0f766e;
  color: #fff !important;
}

body.page-mypage .lc-mypage-links {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

body.page-mypage .lc-mypage-links a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}

body.page-mypage .lc-mypage-links a:hover {
  color: #166534 !important;
}

/* ==========================================================================
   決済ページ（クレジットカード入力）
   ========================================================================== */
body.page-payment {
  background: #f0fdfa !important;
  min-height: 100vh !important;
  text-align: center !important;
}

body.page-payment .lc-payment {
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 4rem 1.5rem 4rem !important;
  position: relative;
  z-index: 1;
  text-align: left !important;
}

@media (max-width: 767px) {
  body.page-payment .lc-payment {
    padding: 3rem 1rem 3rem !important;
  }
}

body.page-payment .lc-payment-header {
  text-align: center;
  margin-bottom: 2rem;
}

body.page-payment .lc-payment-header__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #166534 !important;
  display: block;
  margin-bottom: 0.5rem;
}

body.page-payment .lc-payment-header h1 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  color: #374151;
  margin: 0 0 0.4rem;
}

body.page-payment .lc-payment-header p {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

body.page-payment .lc-order-summary {
  background: #fff;
  border: 2px solid #99f6e4;
  border-radius: 20px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
}

body.page-payment .lc-order-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #ccfbf1;
  color: #374151;
}

body.page-payment .lc-order-row:last-child {
  border-bottom: none;
}

body.page-payment .lc-order-row--opt-title {
  font-size: 0.85rem;
  color: #6b7280;
}

body.page-payment .lc-order-row--total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid #99f6e4;
  font-size: 1.1rem;
}

body.page-payment .lc-order-row--total .lc-order-row__amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #166534 !important;
}

body.page-payment .lc-form-card {
  background: #fff;
  border: 2px solid #99f6e4;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
}

body.page-payment .lc-card-icons {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

body.page-payment .lc-card-icons img {
  height: 28px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  opacity: 0.9;
}

body.page-payment .lc-form-group {
  margin-bottom: 1.25rem;
}

body.page-payment .lc-form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.45rem;
}

body.page-payment .lc-form-input {
  width: 100%;
  padding: 12px 16px;
  background: #f0fdfa;
  border: 1.5px solid #99f6e4;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #374151;
  outline: none;
  box-sizing: border-box;
}

body.page-payment .lc-form-input:focus {
  border-color: #166534 !important;
}

body.page-payment .lc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.page-payment .lc-form-divider {
  border: none;
  border-top: 1px solid #ccfbf1;
  margin: 1.5rem 0;
}

body.page-payment .lc-submit-btn {
  display: block;
  width: 100%;
  padding: 1rem 2rem;
  background: #166534 !important;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

body.page-payment .lc-submit-btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  color: #fff;
}

body.page-payment .lc-back-link {
  text-align: center;
  margin-top: 1.5rem;
}

body.page-payment .lc-back-link a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
}

body.page-payment .lc-back-link a:hover {
  color: #166534 !important;
}

body.page-payment .lc-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: #6b7280;
  margin-top: 1rem;
}

body.page-payment .lc-error-msg {
  display: none;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  color: #166534 !important;
  font-size: 0.875rem;
}

body.page-payment .lc-error-msg:not(:empty) {
  display: block;
}

/* ==========================================================================
   決済完了ページ
   ========================================================================== */
body.page-payment-complete {
  background:
    linear-gradient(
      180deg,
      transparent 50%,
      rgba(34, 139, 34, 0.15) 80%,
      rgba(34, 139, 34, 0.45) 100%
    ),
    linear-gradient(
      135deg,
      rgba(240, 255, 240, 0.4) 0%,
      rgba(200, 230, 201, 0.6) 100%
    );
  min-height: 100vh !important;
  text-align: center !important;
}

/* 決済完了：フッターを画面最下部に固定（コンテンツが少ない時） */
body.page-payment-complete .l-container {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

body.page-payment-complete .l-contents {
  flex: 1 1 auto !important;
}

body.page-payment-complete .lc-complete {
  max-width: 560px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 5rem 1.5rem 4rem !important;
  position: relative;
  z-index: 1;
  text-align: center !important;
}

@media (max-width: 767px) {
  body.page-payment-complete .lc-complete {
    padding: 4rem 1rem 3rem !important;
  }
}

body.page-payment-complete .lc-complete-icon {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  background: linear-gradient(
    135deg,
    rgba(13, 148, 136, 0.15) 0%,
    rgba(13, 148, 136, 0.06) 100%
  ) !important;
  border: 2px solid #5eead4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 2rem !important;
}

body.page-payment-complete .lc-complete-icon svg {
  color: #166534 !important;
}

body.page-payment-complete .lc-complete-title {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem) !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin: 0 0 0.625rem !important;
}

body.page-payment-complete .lc-complete-msg {
  font-size: 0.9375rem !important;
  color: #6b7280 !important;
  line-height: 1.7 !important;
  margin: 0 0 2rem !important;
}

body.page-payment-complete .lc-home-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  padding: 0.9rem 2.5rem !important;
  background: #166534 !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35) !important;
  transition: transform 0.2s !important;
}

body.page-payment-complete .lc-home-btn:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%) !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   5. ページテンプレート：インフォバー非表示・ヘッダー二重解消
   ========================================================================== */
body.page-login .p-infobar-wrapper,
body.page-mypage .p-infobar-wrapper,
body.page-payment .p-infobar-wrapper,
body.page-payment-complete .p-infobar-wrapper,
body.sm-child-login-page .p-infobar-wrapper {
  display: none !important;
}

/* ヘッダーが2つ出る場合：2つ目を非表示（レイアウトによって出る場合） */
body.page-login .l-header ~ .l-header,
body.page-mypage .l-header ~ .l-header,
body.page-payment .l-header ~ .l-header,
body.page-payment-complete .l-header ~ .l-header {
  display: none !important;
}

/* ==========================================================================
   6. ページテンプレート：フッター・メインの余白
   ========================================================================== */
body.page-login .l-footer,
body.page-mypage .l-footer,
body.page-payment .l-footer,
body.page-payment-complete .l-footer {
  clear: both;
  /* margin-top: 3rem; */
}

body.page-login .l-contents__main,
body.page-mypage .l-contents__main,
body.page-payment .l-contents__main,
body.page-payment-complete .l-contents__main {
  min-height: 0;
}

/* ==========================================================================
   7. 子テーマフッター（シンプル構成：お問い合わせ・横並びリンク・著作権・ページトップ）
   templates/layout/footer/footer.php
   ========================================================================== */
.c-page-top,
#page-top.page-top {
  display: none !important;
}

.sm-child-footer {
  margin-top: auto;
}

/* フッター上部：リンク（横並び・縦書きなし） */
.sm-child-footer__upper {
  background-color: #e8e8e8;
  padding: 1.5rem 1rem;
}

.sm-child-footer__upper-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sm-child-footer__link-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 1.5em;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sm-child-footer__link-list li {
  margin: 0;
  padding: 0;
  writing-mode: horizontal-tb !important;
}

.sm-child-footer__link-list a {
  display: inline-block;
  color: #2aa9e0;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  writing-mode: horizontal-tb !important;
}

.sm-child-footer__link-list a:hover {
  text-decoration: underline;
}

.sm-child-footer__copyright {
  width: 100%;
  text-align: center;
  background-color: #444;
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.sm-child-footer__copyright a {
  color: #fff;
}

.sm-child-footer__page-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background-color: #166534 !important;
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition:
    opacity 0.2s,
    background-color 0.2s;
}

.sm-child-footer__page-top:hover {
  background-color: #166534 !important;
  color: #fff;
  opacity: 0.95;
}

.sm-child-footer__page-top .fa-chevron-up {
  font-size: 1.25rem;
}
