/*
Theme Name: Lightning Child
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/


/* -------------------------------------------
 * 1. 変数定義・グローバル設定 ■■■
 * ------------------------------------------- */

/* 変数 */
:root{
  --base-color: #ffffff;
  --main-color: #1f5eff; /*(31, 94, 255)*/
  --main-light-color: #f2f5ff; /*(242, 245, 255)*/
  --accent-color: #cfd6e6; /*(207, 214, 230)*/
  --text-color: #2b2f3a; /*(43, 47, 58)*/
	
/* Typography */
  --font-sans: 'M PLUS 1p', sans-serif;
  --font-heading: 'Noto Serif jp', serif;
  --font-en: 'Noto Serif jp', serif;
  --font-accent: "Roboto", sans-serif;
}

/* グローバル設定 */

body>.site-body {
	padding-top: 0px;
}

html>body>footer>div>p:nth-child(2) {
	display: none!important;
}

/* ヘッダーコンテンツ幅 */
body #site-header-container {
	max-width: 100%!important;
	width: 1480px!important;
}

/* サイト全体のコンテンツ幅 */
.site-body-container {
  max-width: 1280px; /* ここをデザインに合わせてお好みの数値に変更してください */
  margin-left: auto;
  margin-right: auto;
}

/* ヘッダー色 */
body>#site-header {
	background-color: rgba(207, 214, 230, 0.5)!important;
}

/* 通常テキスト */
p{
	color: var(--text-color);
	font-family: var(--font-sans);
}

/* リンクテキスト */
.click-text{
	color: #000080;
}

/* h3見出し（共通） */
.top-h3 {
  position: relative !important;
  z-index: 1;
  padding-left: 20px !important;
  font-weight: bold;
  color: #333333;
  display: flex !important;
  align-items: center;
  border-bottom: none !important;
}

/* 円の装飾 */
.top-h3::before {
  content: '' !important;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-8%,-50%);
  width: 55px;
  height: 55px;
  background: #a3d5f5;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.7;
}

/* 右側に伸びるライン */
.top-h3::after {
  content: '' !important;
  display: block !important;
  position: static !important; /* テーマの絶対配置（absolute）解除 */
  flex-grow: 1;
  height: 2px; /* ラインの太さ */
  background-color: var(--accent-color);
  margin-left: 20px;
  bottom: auto !important; /* テーマの指定をリセット */
  left: auto !important; /* テーマの指定をリセット */
  transform: none !important; /* テーマの指定をリセット */
}


/* =======================================
   インスタグラム風カスタムボタン
======================================= */
.custom-insta-btn {
  /* ▼▼ サイズ変更はここを書き換えるだけ！ ▼▼ */
  --btn-width: 280px;      /* ボタンの最大横幅 */
  --btn-height: 50px;      /* ボタンの高さ */
  --btn-font-size: 16px;   /* 文字の大きさ */
  /* ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ ▲▲ */

  /* 基本レイアウト */
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--btn-width);
  height: var(--btn-height);
  margin: 0 auto; /* ボタンを中央寄せ */
  
  /* 装飾 */
  border-radius: 5px; /* ご指定の角丸5px */
  font-size: var(--btn-font-size);
  font-weight: bold;
  color: #ffffff; /* 文字色：白 */
  text-decoration: none;
  
  /* インスタグラム風グラデーション */
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* 軽い影で立体感を出す */
  
  /* アニメーションの準備 */
  transition: all 0.3s ease;
}

/* ホバー（マウスオーバー）時のアクション */
.custom-insta-btn:hover {
  color: #ffffff; /* テーマの干渉で文字色が変わるのを防ぐ */
  opacity: 0.85;  /* ご指定通り、色を若干薄くする */
  transform: translateY(-2px); /* プロの小技：少しだけ上にフワッと浮かす */
  box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* 浮いた分、影を濃くする */
}

/* -------------------------------------------
   ギャラリーブロック：スマホで強制1カラム
------------------------------------------- */
@media screen and (max-width: 800px) {
  /* 1. ギャラリーコンテナ自体のグリッドを完全に解除し、ブロック要素にする */
  .custom-sp-1col.wp-block-gallery {
    display: block !important; /* グリッドレイアウトを無効化 */
  }
  
  /* 2. ギャラリー内の各画像コンテナを全幅にして積み上げる */
  .custom-sp-1col.wp-block-gallery .wp-block-image {
    display: block !important;
    width: 100% !important; /* コンテンツ幅いっぱいに */
    margin-bottom: 16px !important; /* 画像間の隙間 */
    margin-right: 0 !important; /* 横の隙間を消す */
  }

  /* 3. 画像自体の横幅をコンテンツ幅に広げる */
  .custom-sp-1col.wp-block-gallery .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important; /* アスペクト比維持 */
  }
}

/* -------------------------------------------
   追従ボタンのデザイン（カプセル型背景）
------------------------------------------- */
/* 全体をまとめる枠（白くて丸い背景） */
.fixed-sns-wrap {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 12px;
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    
    /* じわっと現れるための初期状態 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

/* JSでクラスが付与された時の状態（出現！） */
.fixed-sns-wrap.is-show {
    opacity: 1;
    visibility: visible;
}

/* 各ボタンの共通デザイン */
.fixed-sns-wrap .sns-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 24px;
    transition: transform 0.3s ease;
}

/* ▼ Lightningテーマの余白を強制リセットして中央に揃える ▼ */
.fixed-sns-wrap .sns-btn i {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* ホバー時のアクション（少し拡大する） */
.fixed-sns-wrap .sns-btn:hover {
    transform: scale(1.1);
}

/* -------------------------------------------
   各ボタンのカラー設定
------------------------------------------- */
/* お問い合わせ（誠実さを出すためにテーマのメインカラーを設定） */
.fixed-sns-wrap .sns-contact { 
    background-color: var(--main-color, #3f51b5); 
}

/* Instagram（ブランドカラーのグラデーション） */
.fixed-sns-wrap .sns-ig { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); 
}

/* -------------------------------------------
   スマホ閲覧時の微調整
------------------------------------------- */
@media screen and (max-width: 800px) {
    .fixed-sns-wrap {
        right: 10px;
        padding: 12px 8px;
        gap: 12px;
    }
    .fixed-sns-wrap .sns-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* -------------------------------------------
   ヘッダー
------------------------------------------- */

/* ヘッダーメニューのホバー時変色 */

/* 1. 通常時のリンクテキスト（アニメーションの準備） */
.global-nav-list a {
    transition: color 0.3s ease !important; /* 0.3秒かけて滑らかに変化させる */
}

/* 2. ホバー（マウスオーバー）時のテキスト色 */
.global-nav-list a:hover {
    color: var(--main-color) !important; /* ご指定のメインカラーに変更 */
}

/* 検索ボックスを囲むリスト(li)の調整 */
li.custom-header-search {
    display: flex;
    align-items: center;
    padding-left: 15px; /* メニュー項目との間隔 */
}

/* 検索フォーム自体の調整 */
#global-nav div {
	width: 300px;
	align-items: center;
	flex-wrap: nowrap;
}

li.custom-header-search form {
    margin: 0;
    display: flex;
    align-items: center;
    max-width: 200px; /* 検索窓の横幅（お好みで調整） */
}

/* 検索の入力欄（インプット）の調整 */
li.custom-header-search form input[type="search"] {
    height: 38px!important;
    padding: 0 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px 0 0 4px; /* 左側だけ角丸 */
}

/* 検索ボタン（送信ボタン）の調整 */
li.custom-header-search form button,
li.custom-header-search form input[type="submit"] {
    height: 38px;
	min-width: 60px;
	width: 60px!important;
    padding: 0 15px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0; /* 右側だけ角丸 */
    cursor: pointer;
    transition: opacity 0.3s ease;
}

li.custom-header-search form button:hover,
li.custom-header-search form input[type="submit"]:hover {
    opacity: 0.8;
}

/* スマホ閲覧時（ハンバーガーメニュー内）の調整 */
@media screen and (max-width: 800px) {
    li.custom-header-search {
        padding: 15px;
        justify-content: center;
    }
    li.custom-header-search form {
        max-width: 100%;
        width: 100%;
    }
}

/* -------------------------------------------
   検索ブロックのホバー時下線アニメーションを無効化
------------------------------------------- */
li.custom-header-search::after,
li.custom-header-search::before,
li.custom-header-search:hover::after,
li.custom-header-search:hover::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
}

/* 内包される要素に線がつくケースもリセット */
li.custom-header-search form::after,
li.custom-header-search form::before {
    display: none !important;
}



/* -------------------------------------------
   フッター
------------------------------------------- */
@media screen and (min-width: 801px) {
.site-footer .menu {
  display: flex !important;
  justify-content: center !important;
  padding: 10px 0px 10px 0px;
 }
}
@media screen and (max-width:800px){
.footer-nav .menu-item>a {
  display: flex;
  justify-content: center;
  padding: 18px 0px 18px 0px;
 }
}


/* =======================================
   2.TOPページ関連 ■■■
======================================= */

.fv-title {
  letter-spacing: 2px;
  font-size: 3rem!important;
}
@media screen and (max-width: 800px){
  .fv-title {
      font-size: 2.6rem!important;
	}
}

.fv-text{
  text-shadow: 5px 5px 10px rgba(56, 56, 56, 1);
}

.title {
  font-family: var(--font-heading);
}

/* インスタタイトル */
.pop-title{
  font-family:var(--font-sans);
  text-shadow: 0px 0px 1px rgba(255, 255, 255, 1);
}

@media screen and (min-width: 801px){
	.pop-title{
		font-size: 3.2rem;
		transform: translate(0, -48px)!important;
	}
}

@media screen and (max-width: 800px){
	.pop-title{
		font-size: 2.6rem!important;
		transform: translate(20px, -28px)!important;
	}
}

.rounded-wrapper {
	border-radius: 25px 25px 25px 25px;
}

/* 新着情報ページ送り */
.wp-block-group .page-numbers {
	background-color: rgba(232, 232, 232, 1);
	padding-right: 10px;
	padding-left: 10px;
	padding-top: 5px;
	padding-bottom: 5px;
	border-radius: 6px 6px 6px 6px;
}

/* =======================================
   3.下層ページ関連 ■■■
======================================= */

/* 大枠のグリッドコンテナ（PC用：3カラム×2段） */
.activity-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  width: 100%;
}

/* カード全体の共通スタイル */
.activity-card {
  display: flex;
  align-items: center;
  padding: 24px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ホバー（マウスオーバー）時の高度なアクション */
.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* 白い円形のアイコン枠 */
.activity-icon-wrap {
  width: 64px;
  height: 64px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  margin-right: 18px;
  overflow: hidden;
}

/* 円の中のPNGアイコン調整 */
.activity-icon-wrap img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

/* ホバー時に中のアイコンも連動して少し拡大 */
.activity-card:hover .activity-icon-wrap img {
  transform: scale(1.1);
}

/* テキストを縦に並べるラッパー */
.activity-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 日本語タイトル（太字） */
.activity-title-ja {
  font-size: 18px;
  font-weight: bold;
  color: #ffffff; /* すべて白文字で統一 */
  line-height: 1.3;
}

/* 英語タイトル（先進的な極細・広めの字間） */
.activity-title-en {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  opacity: 0.75;
  letter-spacing: 0.08em;
}

/* ---------------------------------------
   各カードの背景カラー設定
--------------------------------------- */
.card-info   { background-color: #5271ff; } /* 清潔感のあるブルー */
.card-bousai { background-color: #55a667; } /* 安心感のあるグリーン */
.card-event  { background-color: #e58a44; } /* 活気のあるオレンジ */
.card-kaigi  { background-color: #607290; } /* シックなブルーグレー */
.card-keicho { background-color: #a8659a; } /* 上品なパープル */
.card-bokin  { background-color: #cda046; } /* 温かみのあるゴールド */


/* =======================================
   スマホ・タブレット用（800px以下の制約条件）
======================================= */
@media screen and (max-width: 800px) {
  /* スマホ用：2カラム×3段に変更 */
  .activity-grid-container {
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px; /* スマホ画面に合わせて余白をコンパクトに */
    margin: 24px 0;
  }
  
  /* スマホでのカード内のサイズ微調整 */
  .activity-card {
    padding: 16px 12px;
  }
  
  .activity-icon-wrap {
    width: 48px; /* 円を一回り小さく */
    height: 48px;
    margin-right: 10px;
  }
  
  .activity-title-ja {
    font-size: 14px; /* 文字落ちを防ぐために少し縮小 */
  }
  
  .activity-title-en {
    font-size: 9px;
  }
}


/* ========================================
   4.お問い合わせフォーム用CSS ■■■
======================================== */
.basic-form {
  max-width: 800px; /* タイポ修正しました */
  margin: 0 auto;
  font-family: "M PLUS 1p", sans-serif;
  color: #334155;
}

/* リード文エリア */
h2:where(:not(.wp-block-post-title)) {
	border-bottom-style: none;
	border-top-style: none;
}

.form-lead-box {
  background-color: #F8FAFC;
  border: 2px solid var(--main-color);
  border-radius: 10px;
  padding: 2em;
  margin: 3em 0;
  text-align: center;
}
.form-lead-box .lead-title {
  font-size: 1.25em;
  font-weight: bold;
  color: #1E293B;
  margin-bottom: 1em;
}
.form-lead-box p {
  margin-bottom: 1em;
  line-height: 1.8;
}

/* 各フォームグループ */
.form-group {
  margin-bottom: 1.5em;
  background: #fff;
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 4px 24px -8px rgba(0, 0, 0, 0.55);
}
.form-group label {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
  color: #1E293B;
}

/* ========================================
   ラベル（バッジ）の個別カラー設定
======================================== */

/* 必須 用のラベル */
.required {
  background-color: #e60000;
  color: #fff;
  font-size: 0.7em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* 会員の方 用のラベル */
.badge-member {
  background-color: #0EA5E9; /* ★会員用の色（例：ブルー） */
  color: #fff;
  font-size: 0.7em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

/* 会員以外の方 用のラベル */
.badge-nonmember {
  background-color: #10B981; /* ★会員以外用の色（例：グリーン） */
  color: #fff;
  font-size: 0.7em;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1;
}

.field-note {
  font-size: 0.85em;
  color: #64748B;
  margin-bottom: 1em;
}

/* 入力フィールド（クラス名をbasic-formに修正） */
.basic-form input[type="text"],
.basic-form input[type="email"],
.basic-form input[type="tel"],
.basic-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 8px;
  background-color: #F8FAFC;
  transition: border-color 0.3s;
}
.basic-form input:focus,
.basic-form textarea:focus {
  border-color: #F97316;
  outline: none;
}

/* ラジオ・チェックボックスの余白調整 */
.wpcf7-list-item {
  margin-right: 1.5em;
  margin-bottom: 0.5em;
  display: inline-block;
}

/* 同意チェックボックス */
.acceptance-group {
  text-align: center;
  background: transparent;
  box-shadow: none;
}

/* プライバシーポリシーのリンク装飾 */
.acceptance-group a {
  color: var(--main-color);
  text-decoration: underline;
  text-decoration-color: #CBD5E1;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}
.acceptance-group a:hover {
  color: #7698f0;
  text-decoration-color: #F97316;
}

/* ========================================
   送信系ボタンの共通スタイル
======================================== */
.btn-confirm, .btn-submit, .btn-back {
  font-weight: bold !important;
  padding: 1em 2em !important;
  border-radius: 5px !important;
  border: none !important;
  font-size: 1em !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
  /* ボタンのサイズを完全に統一 */
  width: 100% !important;
  max-width: 320px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  /* ※ここにあった margin: 0 auto !important; を削除しました（Flexboxのgapを効かせるため） */
}

/* 送信・確認ボタンの個別カラー */
.btn-confirm, .btn-submit {
  background-color: #F97316 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.2) !important;
}
.btn-confirm:hover, .btn-submit:hover {
  transform: translateY(-2px);
  background-color: #FFEDD5 !important;
  color: #F97316 !important;
}

/* 戻るボタンの個別カラー */
.btn-back {
  background-color: #94A3B8 !important;
  color: #fff !important;
  box-shadow: 0 8px 16px rgba(148, 163, 184, 0.2) !important;
}
.btn-back:hover {
  transform: translateY(-2px);
  background-color: #E2E8F0 !important;
  color: #64748B !important;
}

/* ========================================
   送信ボタンのレイアウト（PC/スマホ切り替え）
======================================== */
/* 入力画面（ボタンが1つの場合） */
.submit-wrapper {
  margin-top: 2em;
  display: flex;
  justify-content: center;
}

/* 確認画面（CF7が自動出力するpタグの干渉を防ぐ） */
.confirm-actions,
.confirm-actions p { 
  display: flex;
  flex-direction: column; /* スマホ時は縦並び */
  align-items: center;
  gap: 1.5em; /* ボタン間の余白（ここで隙間を作ります） */
  width: 100%;
  margin: 0;
}

/* PC時（801px以上）のレイアウト */
@media screen and (min-width: 801px) {
  .confirm-actions,
  .confirm-actions p {
    flex-direction: row; /* PC時は横並び */
    justify-content: center;
    gap: 2em;
  }
}

/* 確認画面用テーブル */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}
.confirm-table th, .confirm-table td {
  padding: 1.5em;
  border-bottom: 1px solid #E2E8F0;
}
.confirm-table th {
  width: 35%;
  background-color: #F8FAFC;
  font-weight: bold;
  text-align: left;
}
.confirm-lead {
  text-align: center;
  font-weight: bold;
  color: #F97316;
  margin-bottom: 2em;
}