/*
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: 70vh;       /* フルスクリーン */
    max-height: none;
  }
}
	
	
	/* === 参加ボタン行：余白と折返しを最適化（PC/スマホ両対応） === */
body .home-hero .btn-row{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, max-content)); /* 260px未満なら自動で折返し */
  justify-content: center;
  align-content: start;
  gap: 18px 28px;                /* 縦18px・横28pxのゆとり */
  margin: 28px auto 8px !important;
}

/* ボタン自体のタップ領域を少しゆったり */
body .home-hero .btn-row .btn{
  padding: 0.95em 1.45em;
}

/* 極端に狭い幅では1列センターに */
@media (max-width: 768px){
  body .home-hero .btn-row{
    grid-template-columns: 1fr;   /* 1列 */
    gap: 22px 0;
  }
  body .home-hero .btn-row .btn{
    width: min(92%, 420px);
    justify-self: center;
    text-align: center;
  }
}

/* 念のため：ボタン行の中に <br> が混じっていたら無効化して詰まりを防ぐ */
body .home-hero .btn-row br{ display:none; }


/* ========== 再募集ページ 基本トークン ========== */
.apply-reopen{
  --maxw: 880px;            /* PCの行幅 */
  --padx: 28px;             /* PCの左右余白 */
  --brand: #1570ef;         /* 基調色 */
  --ink: #101828;           /* 文字濃色 */
  --muted: #667085;         /* 説明テキスト */
  --line: #e5e7eb;          /* 罫線 */
  --card: #ffffff;          /* カード背景 */
  --bg: #f8fafc;            /* セクション薄色 */
  --shadow: 0 8px 24px rgba(16,24,40,.05);
  --radius: 16px;
  font-family: "Noto Sans JP", system-ui, -apple-system, Segoe UI, Roboto, "ヒラギノ角ゴ ProN", "メイリオ", sans-serif;
  color: var(--ink);
}
.apply-reopen .container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--padx);
}

/* ========== ヒーロー ========== */
.apply-hero{
  text-align: center;
  padding: 36px 0 24px;
}
.apply-eyecatch{
  display: inline-block;
  font-weight: 700;
  font-size: .9rem;
  color: #175cd3;
  background: #e8f1ff;
  border: 1px solid #d6e4ff;
  padding: 6px 10px;
  border-radius: 999px;
  margin: 0 0 12px;
}
.apply-title{
  font-size: 2.1rem;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 8px;
}
.apply-lead{
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 20px;
}
.btn-apply{
  display:inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: .25s ease;
}
.btn-apply:hover{opacity:.92; transform: translateY(-2px);}
.btn-apply.is-full{min-width: 260px;}

/* ========== ナビ ========== */
.apply-nav{
  display:flex; gap:10px; justify-content:center; flex-wrap:wrap;
  margin: 10px auto 28px;
}
.apply-nav a{
  display:inline-block; padding:8px 14px; border:1px solid var(--line);
  border-radius: 999px; color:#344054; background:#fff; font-size:.95rem;
}
.apply-nav a:hover{border-color:#cdd3d9}

/* ========== セクション見出し ========== */
.apply-section{ padding: 8px 0 40px; }
.apply-h2{
  text-align:center;
  font-size:1.5rem; font-weight:800; margin: 10px 0 6px;
}
.apply-desc{ text-align:center; color:var(--muted); margin-bottom:18px; }

/* ========== カードグリッド ========== */
.apply-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
  margin-bottom:28px;
}
.apply-card{
  background: var(--card);
  border: 1px solid #eef1f4;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  transition: .25s ease;
}
.apply-card:hover{ transform: translateY(-4px); box-shadow: 0 12px 30px rgba(16,24,40,.07); }
.apply-card.is-full{ opacity:.7; }
.apply-card__title{ font-size:1.12rem; font-weight:700; margin: 2px 0 10px; }
.apply-card__meta{ display:flex; gap:8px; flex-wrap:wrap; margin:0 0 8px; padding:0; list-style:none; }
.apply-card__meta li{
  background:#f9fafb; border:1px solid #e4e7ec; color:#475467;
  border-radius:999px; padding:6px 12px; font-size:.9rem;
}
.apply-card__status{ margin: 4px 0 0; }

/* バッジ */
.badge{ display:inline-block; font-weight:700; font-size:.9rem; padding:6px 12px; border-radius:999px; }
.badge-spot{  background:#ecfdf3; color:#067647; }
.badge-open{  background:#e9f3ff; color:#0b63d1; }
.badge-full{  background:#fff0f0; color:#d12e2e; }

/* 注意ボックス */
.apply-callout{
  background: var(--bg);
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  padding: 18px 22px;
}
.apply-list{ margin:0; padding-left: 1.1em; color:#344054; line-height:1.8; }

/* FAQ */
.apply-faq{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 16px; margin-bottom:12px; }
.apply-faq[open]{ box-shadow: var(--shadow); }
.apply-faq summary{ cursor:pointer; font-weight:700; }
.faq-a{ margin-top:10px; color:#475467; }

/* お問い合わせ */
address{ font-style: normal; color:#475467; }

/* ========== モバイル最適化 ========== */
@media (max-width: 767px){
  .apply-reopen{ --maxw: 92%; --padx: 16px; }
  .apply-title{ font-size:1.6rem; }
  .apply-lead{ font-size:.95rem; }
  .apply-grid{ grid-template-columns: 1fr; gap:14px; }
  .apply-card{ padding:16px 18px; border-radius:14px; }
  .apply-card__title{ font-size:1rem; }
  .apply-nav{ gap:8px; }
  .btn-apply{ width:100%; padding:14px 20px; }
  .apply-section{ padding-bottom:32px; }
}
	/* カード内のリストの黒丸や中点を完全オフ */
.apply-card__meta,
.apply-card__meta ul,
.apply-card__meta li{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.apply-card__meta li::marker{ content: "" !important; }
.apply-card__meta li::before{ content: none !important; }

/* 念のため、カード全体に疑似要素で丸を入れるテーマ対策 */
.apply-card::before{ content: none !important; }
/* モバイル固定CTA（デフォ非表示） */
.apply-cta-mobile{ display:none; }
@media (max-width: 767px){
  .apply-cta-mobile{
    position: fixed;
    left: 0; right: 0;
    bottom: env(safe-area-inset-bottom, 0);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0));
    background: rgba(255,255,255,.92);
    backdrop-filter: saturate(180%) blur(10px);
    box-shadow: 0 -8px 20px rgba(16,24,40,.10);
    display: flex; justify-content: center;
    z-index: 999;
  }
  .apply-cta-mobile .btn-apply{ width:100%; max-width: 640px; }
  /* 下に固定バーが来るので、ページ最下部が隠れないように余白を足す */
  body{ padding-bottom: 84px; }
}
/* 対象・所要のドット(・/●)を消す＆チップ表示 */
.apply-reopen .apply-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:.5rem .6rem;
  margin:0 0 .6rem;
  padding:0;                 /* 左インデント除去 */
  list-style:none;           /* ブラウザ標準の箇条書き記号を無効化 */
}
.apply-reopen .apply-card__meta li{
  margin:0;
  padding:.28rem .6rem;
  border:1px solid #e6ecf3;
  border-radius:999px;
  background:#f6f9ff;
  font-size:.9rem;
  line-height:1.1;
}

/* AFFINGERの擬似要素で入るドットを強制無効化 */
.apply-reopen .apply-card__meta li::before{
  content:none !important;
  margin:0 !important;
  background:none !important;
  border:none !important;
}
.reopen-bar{
  position: sticky; top: 0; z-index: 9999;
  background: #0ea5e9; color:#fff; text-align:center;
  padding: .65rem 3rem; font-weight:700; letter-spacing:.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.reopen-bar__link{ color:#fff; text-decoration:underline; }
.reopen-bar__close{
  position:absolute; right:.75rem; top:.35rem; border:0; background:transparent;
  color:#fff; font-size:1.25rem; cursor:pointer; line-height:1;
}
.reopen-bar--hidden{ display:none !important; }

.reopen-ribbon{
  display:inline-block; margin: 0 0 10px; padding: .35rem .65rem;
  background: #fde047; color:#111; font-weight:800; border-radius:.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.btn.btn-accent{
  display:inline-block; padding:.75rem 1rem; border-radius:.75rem; font-weight:700;
  background:#16a34a; color:#fff; border:2px solid #15803d;
}
.btn.btn-accent:hover{ filter:brightness(1.05); }
