/*
Theme Name: AFFINGER Child
Template: affinger
Description: AFFINGER6 対応
Version: 20210719
*/

/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}



/* PC幅だけテキストロゴをど真ん中に */
@media (min-width: 960px){
  /* ヘッダー行を中央寄せできるようにする */
  #headbox{ display:flex; align-items:center; }

  /* ロゴブロックを自力で中央に押し込む */
  #st-text-logo{ 
    margin: 0 auto;           /* 左右autoでセンター */
    text-align: center; 
    flex: 0 1 auto; 
  }
  #st-text-logo a{ display:inline-block; }

  /* ロゴ上のサブタイトル行も中央寄せ */
  .sitenametop, .sitename{ text-align:center; }
}
/* ==== ヘッダーのロゴを物理的にど真ん中へ ==== */
@media (min-width: 960px){
  /* flex指定を潰してGridに */
  #headbox{
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;  /* 左 / 中央(ロゴ) / 右 */
    align-items: center;
  }

  /* 左のナビ（クラス名は環境差あるので広めに指定） */
  #s-navi, .pcnone, .pcnnone { 
    grid-column: 1; 
    justify-self: start; 
  }

  /* 右側のユーティリティ（検索・メニュー等） */
  #header-r, .smanone { 
    grid-column: 3; 
    justify-self: end; 
  }

  /* ロゴブロックを中央列に固定 */
  #header-l, #st-text-logo{
    grid-column: 2 !important;
    justify-self: center !important;
    text-align: center;
    margin: 0 !important;
  }

  /* サブタイトル行も中央寄せ */
  .sitenametop, .sitename { text-align: center; }
}


/* ===== PC(>=960px) 用：サイズと余白を旧相当に戻す ===== */
@media (min-width:960px){

  /* 見出しタブ本体：幅固定・余計な余白ゼロ */
  #st-text-logo{
    width:464px !important;
    max-width:464px !important;
    min-width:464px !important;
    margin:0 auto !important;
    padding:0 !important;           /* ← パディング要らない */
    background:none !important;      /* 水色タブも不要なら無し */
    border-radius:0 !important;
    box-sizing:border-box;
    text-align:center;
  }

  /* 上の細い説明行（地域のPTA…） */
  #st-text-logo .sitenametop{
    font-size:13px !important;
    line-height:1.2 !important;
    margin:0 0 2px 0 !important;
    padding:0 !important;
  }

  /* 下の太字タイトル行（未来の種を育てよう！…） */
  #st-text-logo .sitename,
  #st-text-logo .sitename a{
    font-size:20px !important;      /* デカくなった分を戻す。22〜24で微調整可 */
    line-height:1.1 !important;
    font-weight:700 !important;
    margin:0 !important;
    padding:0 !important;
    letter-spacing:.02em;
    white-space:normal;              /* ← 1行固定を解除（折り返し許可） */
  }

	
	/* ===== PCだけ：test.lien-ja.com と完全一致 ===== */
@media (min-width:960px){

  /* ヘッダーボックスの幅と中央寄せ（testは 945px） */
  #headbox{
    max-width:945px !important;
    width:945px !important;
    margin:0 auto !important;
    padding-left:0 !important;
    padding-right:0 !important;

    /* 左/中央/右で崩れない配置 */
    display:grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items:center !important;
    background:none !important;
  }
  /* 左右の塊（クラス名は環境差を吸収） */
  #headbox > nav, #s-navi{ grid-column:1 !important; justify-self:start !important; }
  #header-r, .smanone      { grid-column:3 !important; justify-self:end   !important; }

  /* 中央のテキストロゴブロック */
  #st-text-logo{
    grid-column:2 !important;
    width:464px !important;        /* testは実測 464px */
    max-width:464px !important;
    margin:0 auto !important;
    padding:0 !important;
    text-align:center !important;
    box-sizing:border-box !important;
    background:none !important;
    border:0 !important;
  }

  /* ── 中の2行を test の数値に合わせる（フォント系も固定） ── */

  /* 上の細い行：h1.descr.sitenametop（testのcomputedに合わせる） */
  header h1.descr.sitenametop{
    font-size:13px !important;
    font-weight:normal !important;
    line-height:1.3 !important;
    margin:0 0 5px 0 !important;
    padding-top:5px !important;
    word-break:break-all; /* test側に合わせる。不要なら外してOK */
    text-align:center !important;
  }

  /* 下の太字行：p.sitename（リンク含めて同値） */
  #st-text-logo .sitename,
  #st-text-logo .sitename a{
    font-size:20px !important;     /* testは20px */
    line-height:1.1 !important;
    font-weight:700 !important;
    margin:0 !important;
    padding:0 !important;
    letter-spacing:.02em;
    text-align:center !important;
  }
}

	@media (min-width:960px){
  /* 上の細い行（地域のPTA〜）をtestと同じに */
  #st-text-logo .sitenametop,
  #st-text-logo h1.descr.sitenametop{
    margin:0 0 5px 0 !important;   /* 下だけ5px */
    padding:5px 0 0 0 !important;  /* 上だけ5px */
    font-size:13px !important;
    line-height:1.3 !important;
    font-weight:normal !important;
    text-align:center !important;
  }
}

/* ヘッダーの見出しを必ず折り返す（幅はそのまま） */
header #st-text-logo .sitename,
header #st-text-logo .sitename a{
  white-space: normal !important;   /* ← nowrap を打ち消す本命 */
  overflow-wrap: anywhere !important; /* 連続文字でも折り返す保険 */
  word-break: break-word !important;
  display: block;                    /* ブロック化で幅に従って折り返す */
  width: 100%;
}

/* 念のためフッター側にも同じ解除（巻き込み対策） */
footer #st-text-logo .sitename,
footer #st-text-logo .sitename a{
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

/* SPでは幅を自動に（横スク防止） */
@media (max-width:959px){
  header #st-text-logo{ width:auto !important; max-width:100% !important; }
}

	
/* PCだけ：ヘッダーは464pxのまま */
@media (min-width:960px){
  header #st-text-logo{
    width:464px !important;
    max-width:464px !important;
    margin:0 auto !important;
    padding:0 !important;
    box-sizing:border-box !important;
    text-align:center !important;
  }
}

/* PCだけ：フッターは “約258px” に固定（上書き強度を上げる） */
@media (min-width:960px){
  /* 左カラム自体をスクショ通りに */
  #footer #footer-l,
  #footer .footer-l,
  footer #footer-l,
  footer .footer-l{
    width:258px !important;
    max-width:258px !important;
    padding:0 20px 0 0 !important; /* 右だけ20px */
    box-sizing:border-box;
  }

  /* フッターの #st-text-logo だけ 258px で固定（ヘッダーの464を打ち消す） */
  body footer#footer div#footer-l div#st-text-logo,
  body footer div#footer-l div#st-text-logo,
  body footer .footer-l #st-text-logo{
    width:258px !important;
    max-width:258px !important;
    min-width:auto !important;
    margin:0 !important;
    padding:0 !important;
    text-align:left !important;
    box-sizing:border-box !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:break-word !important;
  }
}

/* SPは全幅でOK（はみ出し防止） */
@media (max-width:959px){
  footer #st-text-logo{ width:auto !important; max-width:100% !important; }
}

	
	.logo-ticker-wrap .logo-label {
  font-size: 16.5px;    /* PCでは大きめ */
  font-weight: 500;
  line-height: 1.5;     /* 改行時にゆったり */
  white-space: normal;  /* 必要なら折り返し許可 */
}

@media (max-width: 768px) {
  .logo-ticker-wrap .logo-label {
    font-size: 14.5px;  /* モバイルは少し抑える */
    line-height: 1.4; 
  }
}
	
	h1.entry-title {
  font-size: 28px;  !important; /* 今より大きく */
  font-weight: 600; !important;
  line-height: 1.4; !important;
}
@media (max-width: 768px) {
  h1.entry-title {
    font-size: 22px;!important;
  }
}

	
/* ヒーロー動画の器：高さは端末に応じて自動（16:9）＋下に余白 */
.top-hero{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;           /* 高さ自動。必要なら min/max-height を併用 */
  max-height: 70svh;              /* 画面の7割まで */
  overflow: hidden;
  margin: 0 auto clamp(24px, 6vw, 72px); /* ▼ここが“下の余白” */
  background: #000;
}

/* 動画を全面カバー */
.top-hero-el{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ボタンを動画の上に重ねる（中央下） */
.top-hero-ui{
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}
.top-hero-btn{
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #fff;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.top-hero-btn.ghost{
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.55);
}

/* 好みで高さを固定したい時は下記を代わりに使う */
// .top-hero{ height: clamp(360px, 56vw, 640px); aspect-ratio: auto; }
/* 共通（スマホ・タブレット） */
.top-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70svh;  /* モバイルはチラ見え */
  background: #000;
  overflow: hidden;
}

/* PCだけフルスクリーン */
@media (min-width: 960px) {
  .top-hero {
    aspect-ratio: auto;  /* 比率固定を解除 */
    height: 80vh;       /* フルスクリーン */
    max-height: none;
  }
}

	
	/* ===== iOS Safari スプラッシュ対策 ===== */
#fs-splash {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: -webkit-fill-available; /* iOS Safari対応 */
  background: #fff;
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items
