/* ============================================================
   大会について：大会理念（2026-12-03 安部さん「レイアウトがダサい。理念をはっきりさせて」）
   大きな言葉1つ → 称える5つの姿 → 仕組み、の3段。about.html だけで最後に読む
   ============================================================ */

.philo{ position: relative; overflow: hidden; }
.philo-in{ width: min(1080px, 100% - 48px); margin: 0 auto; }

/* 小さなラベル */
.philo-tag{
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 clamp(22px, 3vw, 36px);
  font-size: 14px; font-weight: 700; letter-spacing: .2em;
  color: var(--a-accent-text);
}
.philo-tag::before{ content: ""; width: 32px; height: 2px; background: var(--o); }

/* ---- 1. 大きな言葉 ---- */
.philo-h{
  margin: 0;
  font-family: "Dela Gothic One", "Noto Sans JP", sans-serif;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: .01em;
  color: var(--a-text);
}
.philo-h > span{ display: block; }
.philo-l1, .philo-l2{ font-size: clamp(30px, 5.6vw, 64px); }
.philo-l3{
  margin-top: .12em;
  font-size: clamp(46px, 10.4vw, 128px);
  line-height: 1.08;
  color: var(--o);
  letter-spacing: -.01em;
}
/* 「結果」に線が引かれる */
.philo-x{
  position: relative; text-decoration: none;
  color: var(--a-text-3);
}
.philo-x::after{
  content: ""; position: absolute; left: -4%; right: -4%; top: 46%;
  height: .09em; min-height: 3px; background: var(--o);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s cubic-bezier(.22,1,.36,1) .45s;
}
.philo-h.is-in .philo-x::after, .philo-h:not(.rv) .philo-x::after{ transform: none; }

/* ---- 2. 称える5つの姿 ---- */
.philo-acts{ margin-top: clamp(64px, 9vw, 120px); }
.philo-lead{
  margin: 0;
  font-size: clamp(17px, 1.8vw, 21px); font-weight: 700;
  color: var(--a-text-2);
}
.philo-lead-end{ margin-top: clamp(22px, 3vw, 32px); color: var(--a-text); }
.philo-list{
  list-style: none; margin: clamp(18px, 2.4vw, 28px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0 clamp(14px, 2vw, 28px);
}
.philo-list li{
  position: relative;
  padding: clamp(16px, 2vw, 22px) 0 4px;
}
/* 上の線が左から伸びる */
.philo-list li::before{
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 2px; background: var(--a-line);
}
.philo-list li::after{
  content: ""; position: absolute; left: 0; top: 0;
  width: 100%; height: 2px; background: var(--o);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .8s cubic-bezier(.22,1,.36,1) .1s;
}
.philo-list li.is-in::after{ transform: scaleX(.28); }
.philo-list li:hover::after{ transform: none; }
.philo-list .no{
  display: block;
  font-family: "Anton", sans-serif; font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1; letter-spacing: .02em;
  color: var(--o);
}
.philo-list .t{
  display: block; margin-top: 12px;
  font-size: clamp(17px, 1.75vw, 21px); font-weight: 700; line-height: 1.5;
  color: var(--a-text);
}

/* ---- 3. しくみ ---- */
.philo-why{
  margin-top: clamp(72px, 9vw, 120px);
  max-width: 760px;
}
.philo-why > p{
  margin: 0;
  font-size: clamp(16px, 1.5vw, 17px); font-weight: 500; line-height: 2.05;
  color: var(--a-text-2);
}
.philo-sys{
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px);
  margin: clamp(36px, 4vw, 48px) 0 0;
}
.philo-sys > div{ border-top: 2px solid var(--o); padding-top: 16px; }
.philo-sys dt{
  font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; line-height: 1.4;
  color: var(--a-text);
}
.philo-sys dd{
  margin: 8px 0 0;
  font-size: 15px; font-weight: 500; line-height: 1.8;
  color: var(--a-text-2);
}
.philo-why > p.philo-close{
  margin-top: clamp(44px, 5vw, 60px);
  font-size: clamp(19px, 2.1vw, 25px); font-weight: 700; line-height: 1.75;
  color: var(--a-text);
}

/* スマホ：5つは縦に並べ、番号を左に */
@media (max-width: 760px){
  .philo-in{ width: calc(100% - 40px); }
  .philo-list{ grid-template-columns: 1fr; }
  .philo-list li{
    display: grid; grid-template-columns: 56px 1fr; align-items: baseline;
    padding: 14px 0;
  }
  .philo-list .no{ font-size: 28px; }
  .philo-list .t{ margin-top: 0; font-size: 18px; }
  .philo-sys{ grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce){
  .philo-x::after, .philo-list li::after{ transition: none; }
}

/* 理念を「「なぜ動くか」を、自分で考えられる人に。」に（2026-12-03 安部さん「野球を通じて、自ら動く理由を考えられる人を育てたい」「②で」）
   2行目は10文字あるので、スマホの幅に1行で収まる大きさにする */
.philo-l3.philo-l3s{ font-size: clamp(30px, 8.2vw, 96px); margin-top: .18em; }
.philo-sub{
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  font-size: clamp(16px, 1.7vw, 20px); font-weight: 700; line-height: 1.8;
  color: var(--a-text);
}
@media (max-width: 760px){ .philo-sub br{ display: none; } }
/* 見出しの下の文は2段落（2026-12-03 安部さん決定の文）。文の幅を読みやすく */
.philo-sub{ max-width: 38em; }
.philo-sub2{ margin-top: 12px; }
/* 見出しの下の文の改行は安部さん指定の位置で、スマホでも残す（2026-12-03） */
.philo-sub br{ display: inline !important; }
/* 見出しの下の4行は、スマホでも1文1行（2026-12-03 安部さん「これにしてね」）。
   一番長い行（24文字）が画面の幅に収まる大きさにする */
@media (max-width: 760px){
  .philo-sub1{ font-size: min(17px, calc((100vw - 48px) / 24.6)); }
}
/* 下の2行（一番長い行は25文字）も1文1行。上の4行と同じ大きさにそろえる（2026-12-03 安部さん） */
@media (max-width: 760px){
  .philo-sub1{ font-size: min(17px, calc((100vw - 48px) / 25.6)); }
}
.philo-sub1 .nw{ white-space: nowrap; }
@media (max-width: 760px){
  .philo-sub1{ font-size: min(17px, calc((100vw - 48px) / 26.4)); letter-spacing: 0 !important; }
}

/* 2026-12-03 安部さん「大会理念の文字が小さすぎる」「1行目と2行目の文字の大きさが違う。合わせて」
   ラベル「大会理念」は大きく太く、見出しの2行は同じ大きさ（長い2行目が幅に収まる大きさ）にそろえる */
.philo-tag{
  font-size: clamp(18px, 1.9vw, 26px) !important; font-weight: 900 !important; letter-spacing: .08em !important;
  gap: 14px !important; margin-bottom: clamp(20px, 2.6vw, 32px) !important;
}
.philo-tag::before{ width: 40px !important; height: 3px !important; }
.philo-h .philo-l1, .philo-h .philo-l3.philo-l3s{ font-size: clamp(30px, 8.2vw, 96px) !important; line-height: 1.2 !important; }
.philo-h .philo-l3.philo-l3s{ margin-top: .08em !important; }
@media (min-width: 761px){ .philo-sub, .philo-sub1{ font-size: clamp(18px, 1.9vw, 24px) !important; } }
