/*
 Theme Name:   Twenty Twenty-Four Child
 Template:     twentytwentyfour
 Version:      1.0
*/

@import url("../twentytwentyfour/style.css");

/* ベーススタイル */
html { scroll-behavior: smooth; }
.footer-teaser {
  background-color: #5e948e;
  color: #fff;
  padding: 1.5em;
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 0!important;
}

.alignwide {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.has-base-background-color { background-color: #fff; }

/* ヘッダー・ページタイトル */
.page-header {
  text-align: center;
  margin: 40px 0 20px;
}
.page-title {
  font-size: 2rem;
  color: #333;
  margin: 0;
}
.page-title2{
	  color: #red;
}
.page-description {
  font-size: 1rem;
  color: #666;
}
.ng-photo-sp{display:none!important;}
.section-title{  text-align: center;
}
/* 装飾ユーティリティ */
.text-shadow-top { text-shadow: 2px 3px 4px rgba(0, 0, 0, 0.6); }
.box-shadow-soft {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}
.box-shadow { box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }

/* 裸足写真グリッド */
.barefoot-grid {
  display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));*/
	grid-template-columns: repeat(auto-fit, 100px);
  gap: 0.5em;
	justify-content: center;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.barefoot-item {
  width: 100%;
  background: #fff;
  border-radius: 0.5em;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;

}
.barefoot-item a{text-decoration:none;}
.barefoot-item:hover {
  transform: translateY(-4px);
}
.barefoot-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.barefoot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.barefoot-caption {
  padding: 0.8em;
}
.barefoot-title {
  font-size: 0.8rem;
  font-weight: bold;
  color: #222;
  margin: 0 ;
}
.barefoot-pref {
  font-size: 0.8rem;
  color: #777;
  margin: 0;
}
.founders-title-image {
  text-align: center;
  margin-bottom: 30px;
}

.founders-title-image img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Contact Form 7 スタイル */
.wpcf7-form p { margin-bottom: 0.1em; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  margin-bottom: 0.1em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}
.wpcf7 textarea {
  height: 120px;
  resize: vertical;
}
.wpcf7 input[type="submit"] {
  background-color: #FA805A;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.wpcf7 input[type="submit"]:hover {
  background-color: #e96a12;
}

/* 裸足チャレンジ専用フォーム */
#barefoot-form {
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  font-family: "Helvetica Neue", sans-serif;
}
#barefoot-form p {
  margin-bottom: 1.2em;
}
#barefoot-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
  color: #333;
}
#barefoot-form input[type="text"],
#barefoot-form input[type="email"],
#barefoot-form textarea,
#barefoot-form select {
  width: 100%;
  padding: 0.75em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
  color: #333;
}
#barefoot-form input[type="file"] {
  border: none;
  background: transparent;
  font-size: 0.95em;
}
#barefoot-form input[type="submit"] {
  background-color: #ffa600;
  color: white;
  border: none;
  padding: 0.8em 1.5em;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
#barefoot-form input[type="submit"]:hover {
  background-color: #ff8800;
}
#barefoot-form input::placeholder,
#barefoot-form textarea::placeholder {
  color: #888;
}
.site-footer {
  background-color: #B1C5A4; /* 好きな色に変更 */
}
/* その他 */
footer{
  background-color: #264653!important;
}
.footer-teaser {
  background-color: #5e948e;
  color: #fff;
  padding: 1.5em;
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 0!important;
}
.activities-text {
  padding: 0.5em 0;
  height: 6.5em;
}
.event-01 {
  width: 6em;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.barefoot-number {
  font-size: 0.7rem;
  color: #FF6600;
  font-weight: bold;
  margin-top: 4px;
}
.challenge-banner {
  background: #cedd64;
  color: #393939;
  padding: 1em;
  text-align: center;
  font-size: 1.2em;
  margin-bottom: 20px;
  border-radius: 8px;
}
.challenge-banner .banner-link {
  text-decoration: none;
  color: inherit;
}
.challenge-banner .banner-button {
  background: #333;
  color: #fff;
  padding: 0.4em 1em;
  margin-left: 1em;
  border-radius: 4px;
  font-weight: bold;
}
.challenge-banner .banner-button:hover {
  background: #666;
}
.floating-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff4081;
  color: white;
  padding: 1em 1.2em;
  border-radius: 50px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  text-decoration: none;
}
.floating-button:hover {
  background: #e91e63;
}

/* モバイルファーストのスタイル */
.challenge-banner {
  padding: 1em;
  text-align: center;
  font-size: 1rem;
  line-height: 1.4;
}

.challenge-banner .banner-link {
  color: #000;
  text-decoration: none;
  display: block;
}

.challenge-banner .break-after {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.4em;
}

.challenge-banner .banner-button {
  display: inline-block;
  margin-top: 0.6em;
  padding: 0.6em 1.2em;
  color: #fff;
  border-radius: 9999px;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
}
/* PCやタブレットなど画面幅が768px以上の場合 */
@media screen and (min-width: 768px) {
	.challenge-banner {
    font-size: 1.2rem;
    padding: 1.5em 2em;
  }

  .challenge-banner .banner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
  }

  .challenge-banner .break-after {
    display: inline;
    margin-bottom: 0;
    font-size: 1.5rem;
  }

  .challenge-banner .banner-button {
    margin-top: 0;
    font-size: 1.1rem;
  }
}
/* 個別ページ用スタイル */

.barefoot-detail{
	width:95%;
	 max-width: 400px; /* 画像の最大幅と同じに */
	margin:0 auto;
}
.barefoot-detail .barefoot-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.75em;
}
.barefoot-detail .barefoot-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: auto !important; /* 念のため固定比率を解除 */
  display: block;
  margin-bottom: 1.5rem; /* 適度な余白 */
  overflow: visible;
}
.barefoot-detail .barefoot-thumb {
  width: 100%;
  max-width: 400px; /* 表示サイズの最大幅 */
  height: auto;
  margin: 0 auto 1.5rem; /* 中央寄せ + 下余白 */
  display: block;
  overflow: hidden;
}

.barefoot-detail .barefoot-pref,
.barefoot-detail .barefoot-number {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 1em;
}
.barefoot-detail .barefoot-number {
  color: #FF6600;
}

.barefoot-detail .barefoot-content {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 1em;
}
@media screen and (max-width: 600px) {
  .barefoot-detail .barefoot-title {
    font-size: 1.5rem;
  }
  .barefoot-detail .barefoot-content {
    font-size: 0.95rem;
  }
}
.challenge-banner p.small{padding:0.8em;font-size:70%;}

#load-more {
  background: #333;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
}

#load-more:hover {
  background: #555;
}

@media screen and (max-width: 768px) {
.ng-photo-sp{display:block!important;}
.ng-photo{display:none!important;}

	.wp-block-group.alignwide,
  .wp-block-cover.alignwide,
  .wp-block-columns.alignwide,
  .wp-block-image.alignwide {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}
span.small{font-size:80%;}
span.red{color:#d8613c;}

.barefoot-progress-container {
  position: relative;
  background: #eee;
  border-radius: 8px;
  height: 36px;
  max-width: 500px;
  margin: 1em auto;
  overflow: hidden;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}
.barefoot-progress-bar {
  background: linear-gradient(90deg, #18fcd4, #10cbb1); /* ミントブルー → 少し深めのブルーグリーン */
  height: 100%;
  transition: width 0.4s ease;
}
.barefoot-progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  line-height: 36px;
  text-align: center;
  font-weight: bold;
  color: #000;
  font-size: 1rem;
}

.barefoot-prefecture-header h2 {
	margin-top:2em;
	text-align:center;
}
.barefoot-prefecture-header h2 .pref{
  font-weight:bold;
  color: #0d7865;

}
.barefoot-prefecture-header p {
	font-size:80%;
	font-weight:normal;
	text-align:center;
}
.barefoot-prefecture-header {

}
#prefecture-select-form {
  text-align: center;
  margin: 2em 0;
}

#prefecture-select-form select {
  font-size: 1em;
  padding: 0.5em 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.gallery-button {
  display: inline-block;
  padding: 0.6em 1.2em;
  background-color: #333;
  color: #fff;
  text-decoration: none!important;
  border-radius: 6px;
  font-weight: normal;
  transition: background-color 0.3s ease;
}

.gallery-button:hover {
  background-color: #555;
}
/*---ファウンダーリスト---*/
/* コンテナは founder-archive を使用中 */
.founder-card{
  display:flex; gap:20px; align-items:flex-start;
  background:#fff; border-radius:12px; box-shadow:0 4px 12px rgba(0,0,0,.08);
  padding:16px; margin-bottom:18px;
}

.founder-photo{ flex:0 0 150px; }
.photo-wrap{ position:relative; width:150px; height:150px; }
.founder-thumb{
  width:150px; height:150px; object-fit:cover; display:block; border-radius:8px;
}

/* メダル：36px、左上。競合に勝つため !important を付与 */
.founder-medal{
  position:absolute !important; top:-6px !important; left:-6px !important;
  width:50px !important; height:auto !important; pointer-events:none;
}

.founder-info{ flex:1; min-width:0; }
.founder-name{ font-size:1.1rem; font-weight:700; margin:0 0 4px; }

/* 番号は左揃え＆オレンジ強調 */
.challenge-number{
  margin:0 0 4px 0 !important; color:#ff7a00; font-weight:700; line-height:1.2;
}

/* 県名 */
.founder-pref{ color:#666; margin:0 0 10px; }

/* メッセージ */
.founder-message{ font-size:.95rem; line-height:1.6; }
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: #ff7f00; /* オレンジ系 */
  color: #fff;
  text-align: center;
  line-height: 44px;
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
}
/* モバイル：縦積み */
@media (max-width: 640px){
  .founder-card{ flex-direction:column; align-items:center; text-align:center; }
  .founder-photo{ flex:none; }
}



/* ヘッダー行：ロゴ左／メニュー右 */
/* 内側幅が狭く見える対策（任意で調整） */
.header-row{ max-width:80%!important; margin-inline:auto; padding-inline:16px; }

.header-inner { 
  max-width: 1200px; margin-inline: auto; padding-inline: 16px;
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
/*--ハンバーガーメニューが開かない対策--*/
.wp-block-navigation__responsive-container{ display:none; }
.wp-block-navigation__responsive-container.is-menu-open{ display:block; }
body.nav-open{ overflow:hidden; }

/*--個別ページのページネーション--*/
.bfp-post-nav{
  display:flex; gap:12px; justify-content:space-between; align-items:center;
  margin-top:24px; padding:12px; border-radius:12px; background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.06);
}
.bfp-nav{ display:flex; flex-direction:column; text-decoration:none; }
.bfp-nav.prev{ align-items:flex-start; }
.bfp-nav.next{ align-items:flex-end; }
.bfp-nav.back{ margin:0 auto; font-weight:700; }
.bfp-nav-label{ font-size:.85rem; color:#666; }
.bfp-nav-title{ font-weight:700; color:#222; max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
@media (max-width:640px){
  .bfp-post-nav{ flex-wrap:wrap; gap:8px; }
  .bfp-nav.back{ order:3; width:100%; text-align:center; }
}



/* 縦並び1カラム（今週の裸足さん） */
.bf-weekly-grid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
  margin: 24px auto;
 max-width: 1000px;
}

/* カード全体クリック（後述JSとセット） */
.bfp-override{ cursor: pointer; }

/* foundersの見た目に完全一致させつつ “メダルだけ”消す */
.bfp-override [class*="medal"],
.bfp-override [class*="ribbon"],
.bfp-override [class*="badge"],
.bfp-override img[src*="medal"],
.bfp-override img[alt*="メダル"]{
  display: none !important;
}

/* サムネイルを正方形に統一（founders側の親要素に当たりやすい汎用セレクタで） */
.bfp-override .founder-thumb,
.bfp-override .thumb,
.bfp-override .post-thumbnail,
.bfp-override figure{
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
}
.bfp-override .founder-thumb img,
.bfp-override .thumb img,
.bfp-override .post-thumbnail img,
.bfp-override figure img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* タイトル・本文内リンクの下線を消す（色はそのまま） */
.bfp-override a{ text-decoration: none !important; }


/* セクション余白・見出し */
.bf-weekly-section { margin: 40px 0; }
.bf-weekly-heading { font-size: 1.4rem; margin: 0 0 12px;text-align:center; }

/* 1カラム縦並び（完全固定） */
.bf-weekly-grid{
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 16px;
}
.bf-weekly-date{
  font-size: .85rem;
  color: #777;
  margin-left: .5em;
}
