/* 全ページ共通：基本設定・ヘッダー・フッター・共通部品
 * 通常の指定 → 条件別の調整の順序を保っています。
 * @media は画面幅などの条件です。追記前に同じセレクター名を検索してください。
 */

/* 基本設定・共通の色と画像 */

:root {
  --red: #8e0000;
  --ink: #171413;
  --paper: #f6f3ee;
  --line: #ddd7cf;
  --gutter: clamp(18px, 4vw, 64px);
  --cta-cream: #f0e4dc;
  --cta-cream-deep: #e3d0c4;
  --cta-wine: #651018;
  --cta-red: #8e0000;
  --cta-red-bright: #ae1118;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", "Noto Sans JP", "Yu Gothic", YuGothic, Arial, sans-serif;
  min-width: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ページ内リンクの着地位置：固定ヘッダーの高さ分あける（各ページCSSの指定が優先） */
:where(main [id]) {
  scroll-margin-top: 104px;
}

@media (max-width: 900px) {
  :where(main [id]) {
    scroll-margin-top: 70px;
  }
}

.site-shell {
  width: 100%;
  min-width: 0;
}

.container {
  width: min(calc(100% - var(--gutter) * 2), 1240px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.eyebrow.light {
  color: #edb6b8;
}

.topline {
  height: 30px;
  background: #181514;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #f0ece8;
}

.topline-inner {
  width: min(calc(100% - var(--gutter) * 2), 1440px);
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-start;
}

.topline p {
  margin: 0;
}

.topline p span {
  color: #fff;
  font-weight: 800;
  margin-right: 14px;
}

/* ヘッダー・ナビゲーション */

.site-header {
  height: 94px;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 0;
  transform: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: clamp(18px, 3vw, 48px);
  flex: 0 0 auto;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.desktop-nav a {
  min-width: 92px;
  padding-inline: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  position: relative;
}

.desktop-nav a:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.desktop-nav a:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

.desktop-nav strong {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.menu-button,
.mobile-nav {
  display: none;
}

/* メインビジュアル */

.hero {
  position: relative;
  overflow: visible;
  background: #fff;
  color: var(--ink);
  max-height: none;
  height: calc(100svh - 124px);
  height: calc(100dvh - 124px);
  min-height: 0;
}

.hero h1 {
  letter-spacing: -0.045em;
  margin: 0;
  font-weight: 900;
  text-wrap: balance;
  text-shadow: none;
  font-size: clamp(46px, 5.45vw, 78px);
  color: var(--ink);
}

/* お知らせ */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(20px, 2vw, 26px);
}

.section-head h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.035em;
}

.section-head h2 span {
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-left: 18px;
  color: #756e67;
  font-weight: 600;
}

.recruit-section {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(420px, 0.78fr);
  background: #171514;
  min-height: 540px;
}

.recruit-photo {
  min-width: 0;
  overflow: clip;
}

.recruit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s;
}

.recruit-photo:hover img {
  transform: scale(1.035);
}

.recruit-panel {
  background: #191615;
  color: #fff;
  padding: clamp(54px, 6vw, 92px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recruit-panel h2 {
  line-height: 1.3;
  margin: 0 0 24px;
  font-size: clamp(27px, 2.65vw, 52px);
}

.recruit-panel > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.9;
  color: #cfc7c1;
}

.recruit-actions {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.recruit-actions a {
  min-height: 58px;
  border: 1px solid #615b56;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 800;
  transition: 0.3s;
}

.recruit-actions a:first-child {
  background: var(--red);
  border-color: var(--red);
}

.recruit-actions a:hover {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}

.recruit-actions b {
  transition: transform 0.3s;
}

.recruit-actions a:hover b {
  transform: translateX(6px);
}

/* お問い合わせ */

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  z-index: 2;
  position: relative;
}

.contact-inner p {
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #f2c2c4;
  font-size: 11px;
}

.contact-inner h2 {
  margin: 12px 0 0;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.32;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.45);
}

/* フッター */

.footer-main {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: flex-start;
}

.footer-brand {
  padding: 0;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(6, auto);
  gap: clamp(18px, 3vw, 44px);
}

.footer-links a {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links strong {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid #393532;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  letter-spacing: 0.08em;
  margin-top: 36px;
  min-height: 64px;
  font-size: 10px;
  font-weight: 700;
  border-top-color: #ded8d1;
  color: #625b55;
}

@media (max-width: 1100px) {
  .desktop-nav a {
    min-width: 74px;
    padding-inline: 10px;
  }

  .recruit-section {
    grid-template-columns: 1fr 420px;
  }

  .recruit-panel {
    padding: 45px;
  }
}

@media (max-width: 900px) {

  .brand {
    padding-inline: var(--gutter);
  }

  .mobile-nav a {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #383431;
  }

  .mobile-nav strong {
    font-size: 11px;
  }

  .mobile-nav span {
    font-size: 11px;
    color: #9a948f;
  }

  .mobile-nav b {
    color: #d9a3a5;
  }

  .recruit-section {
    grid-template-columns: 1fr;
  }

  .recruit-photo {
    height: 470px;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-links {
    width: 100%;
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (max-width: 650px) {
  :root {
    --gutter: 20px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }

  .section-head h2 span {
    display: block;
    margin: 9px 0 0;
  }

  .recruit-photo {
    height: 310px;
  }

  .recruit-panel {
    padding: 50px var(--gutter);
  }

  .contact-inner {
    flex-direction: column;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 20px;
    gap: 11px;
    margin-top: 30px;
    font-size: 12px;
    line-height: 1.6;
  }

  .footer-bottom p {
    margin: 0;
  }
}

@media (max-width: 370px) {
  :root {
    --gutter: 16px;
  }

  .brand {
    gap: 9px;
  }
}
/*

*/

.team-select-section {
  color: #fff;
}

.team-select-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 34px;
}

.team-select-head h2 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 0;
}

.team-choice {
  position: relative;
  min-width: 0;
  color: #fff;
  perspective: none;
  box-shadow: none !important;
  border: 0;
  transform: none !important;
  overflow: clip;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.55s !important;
}

.team-choice img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.04);
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s;
}

.team-choice-copy {
  position: absolute;
  left: clamp(24px, 4vw, 52px);
  right: clamp(24px, 4vw, 52px);
  bottom: clamp(28px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.team-choice-copy small {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #e8b7b9;
}

.team-choice-copy strong {
  font-size: clamp(24px, 3.3vw, 48px);
  margin-top: 8px;
  white-space: nowrap;
}

.team-choice-copy em {
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
  width: 100%;
  padding-top: 16px;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  transition: letter-spacing 0.35s;
}

.team-choice-copy b {
  font-size: 16px;
  transition: transform 0.3s;
}

.team-choice:is(:hover, .is-hover) .team-choice-copy b {
  transform: translateX(7px);
}

@media (max-width: 900px) {
  .team-select-head {
    flex-direction: column;
  }

  .team-choice-copy strong {
    font-size: clamp(24px, 4.2vw, 36px);
  }
}

@media (max-width: 650px) {
  .team-select-head {
    gap: 20px;
    margin-bottom: 26px;
  }

  .team-select-head h2 {
    font-size: 44px;
  }

  .team-choice {
    clip-path: none !important;
    height: 290px;
  }

  .team-choice-copy {
    left: 24px;
    right: 24px;
    bottom: 25px;
  }

  .team-choice-copy strong {
    font-size: 27px;
  }

  .team-choice-copy em {
    margin-top: 14px;
  }
}

@media (max-width: 370px) {
  .team-choice-copy strong {
    font-size: 24px;
  }
}

/* スケジュール */

.team-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: clamp(430px, 44vw, 590px);
}

.team-choice,
.team-choice:first-child {
  clip-path: none;
  flex: none;
}

.team-choice:is(:hover, .is-hover) {
  flex: none;
  border-color: rgba(255, 255, 255, 0.8);
}

.team-select-grid:has(.team-choice:is(:hover, .is-hover)) .team-choice:not(:hover, .is-hover) {
  flex: none;
  filter: none;
}

.team-choice:is(:hover, .is-hover) .team-choice-copy em {
  letter-spacing: 0.2em;
}

/* 練習環境・設備写真 */

@media (max-width: 900px) {
  .team-select-grid {
    height: 460px;
  }
}

@media (max-width: 650px) {
  .team-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
  }
}

@media (max-width: 370px) {
  .team-choice {
    height: 270px;
  }
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: clamp(46px, 7vw, 64px);
  }
}

@media (max-width: 650px) {
  .hero {
    background: #f6f3ee;
  }
}

.desktop-nav > .nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) {
  min-width: 92px;
  padding: 0 18px;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  position: relative;
  cursor: default;
}

.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger):after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) strong {
  font-size: 12px;
  letter-spacing: 0.14em;
}

.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) small {
  white-space: nowrap;
}

.desktop-nav > a small {
  white-space: nowrap;
}

.nav-submenu {
  position: absolute;
  left: 0;
  top: calc(100% - 1px);
  width: 236px;
  padding: 9px;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 18px 42px rgba(25, 18, 14, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s,
    transform 0.25s,
    visibility 0.25s;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-nav .nav-submenu a {
  min-width: 0;
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ece7e1;
  font-size: 11px;
  font-weight: 800;
  transition: padding 0.25s,
    background 0.25s;
}

.desktop-nav .nav-submenu a:last-child {
  border-bottom: 0;
}

.desktop-nav .nav-submenu a:after {
  display: none;
}

.desktop-nav .nav-submenu a b {
  color: var(--red);
  transition: transform 0.25s;
}

.desktop-nav .nav-submenu a:hover {
  padding-left: 17px;
  background: #f6f3ee;
}

.desktop-nav .nav-submenu a:hover b {
  transform: translateX(4px);
}

/* よくあるご質問 */

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(560px, 46vw);
  gap: 12px;
}

.contact-actions a {
  min-width: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  background: linear-gradient(135deg, #8e0000 0%, #b60a0a 100%);
  font-size: 14px;
  min-height: 108px;
  padding: 24px 26px;
}

.contact-actions b {
  font-size: 20px;
  transition: transform 0.3s;
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
}

@media (max-width: 1180px) {
  .desktop-nav,
  .header-entry {
    display: none;
  }

  .menu-button {
    display: flex;
    margin-left: auto;
    border: 0;
    background: var(--red);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    --menu-line-gap: 7px;
    width: 68px;
    position: relative;
  }

  .menu-button span {
    display: block;
    background: #fff;
    left: 50%;
    top: 50%;
    width: 24px;
    height: 1.5px;
    margin: 0;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s,
      opacity 0.3s;
    position: absolute;
  }

  .mobile-nav {
    display: grid;
    left: 0;
    right: 0;
    overflow-y: auto;
    background: #171413;
    color: #fff;
    padding: 18px var(--gutter) 24px;
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    overscroll-behavior: contain;
    position: fixed;
    align-content: start;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }

  .mobile-nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav > a {
    display: grid;
    align-items: center;
    min-height: 48px;
    border-bottom: 1px solid #383431;
  }

  .mobile-nav > a strong {
    font-size: 11px;
  }

  .mobile-nav > a span {
    font-size: 11px;
  }

  .mobile-nav-group {
    display: grid;
    align-items: center;
    border-bottom: 1px solid #383431;
    padding-block: 10px;
  }
}

@media (max-width: 900px) {

  .contact-inner {
    align-items: stretch;
    gap: 34px;
  }
}

@media (max-width: 650px) {
  .contact-actions {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    padding-top: 26px;
    border-top: 1px solid #ded8d1;
    gap: 24px 18px;
  }
}

.news-section {
  background: #f6f3ee;
}

.news-editorial-list {
  border-top: 1px solid #cfc8c0;
}

.news-editorial-list > a,
.news-editorial-list > .news-item {
  min-width: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: 112px 128px minmax(0, 1fr) 34px;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  padding: 18px 8px;
  border-bottom: 1px solid #cfc8c0;
  position: relative;
  transition: padding 0.35s,
    background 0.35s,
    box-shadow 0.35s;
}

.news-editorial-list > a:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s;
}

.news-editorial-list > a:hover,
.news-editorial-list > a:focus-visible {
  padding-inline: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(42, 29, 20, 0.07);
}

.news-editorial-list > a:hover:before,
.news-editorial-list > a:focus-visible:before {
  transform: scaleY(1);
  transform-origin: top;
}

.news-category {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 全カテゴリー共通の固定幅（最長ラベル「越谷中央ボーイズ」基準） */
  width: 9.6em;
  min-height: 22px;
  padding: 3px 0;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.news-category-trial {
  background: #1358a6;
}

/* 越谷中央ボーイズ：ロゴのネイビー */
.news-category-chuo {
  background: #002649;
}

.news-editorial-list time {
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
  color: #2b2724;
  letter-spacing: 0.045em;
}

.news-editorial-list p {
  min-width: 0;
  margin: 0;
  font-size: clamp(13px, 1.4vw, 17px);
  font-weight: 700;
  line-height: 1.65;
  color: #211e1c;
}

.news-editorial-list b {
  color: var(--red);
  font-size: 19px;
  transition: transform 0.3s;
}

.news-editorial-list > a:hover b,
.news-editorial-list > a:focus-visible b {
  transform: translateX(6px);
}

/* 詳細ページ未作成のお知らせ（リンクなし） */
.news-editorial-list > .news-item b {
  color: #c9c0b8;
}

.team-choice-face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: clip;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.55s;
}

.team-choice-front {
  transform: rotateY(0);
  opacity: 1;
}

.team-choice-back {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.5);
  text-align: center;
  opacity: 0;
  background: #8e0000;
  color: #fff;
  justify-content: center;
  align-items: center;
  padding: clamp(26px, 4vw, 54px);
}

.team-choice-back small {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--red);
}

.team-choice-back strong {
  line-height: 1.25;
  white-space: nowrap;
  margin: 18px 0;
  font-size: clamp(22px, 2.75vw, 40px);
  letter-spacing: -0.045em;
}

.team-choice-back p {
  font-size: 13px;
  line-height: 1.9;
  color: #fff;
  margin: 0;
}

.team-choice-back em {
  width: 100%;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.16em;
  max-width: 440px;
  border-color: rgba(255, 255, 255, 0.38);
  margin-top: clamp(24px, 4vw, 42px);
}

.team-choice:is(:hover, .is-hover) img {
  transform: none;
  filter: saturate(0.78) contrast(1.04);
}

.header-entry:before,
.contact-actions a:before {
  content: "";
  position: absolute;
  inset: -40% auto -40% -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  transform: skewX(-18deg) translateX(-180%);
  transition: transform 0.65s ease;
  z-index: 0;
  pointer-events: none;
  display: none;
}

.header-entry:hover:before,
.contact-actions a:hover:before {
  transform: skewX(-18deg) translateX(520%);
}

.header-entry,
.contact-actions a {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.header-entry > *,
.contact-actions a > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 650px) {
  .news-editorial-list > a,
  .news-editorial-list > .news-item {
    grid-template-columns: auto minmax(0, 1fr) 24px;
    gap: 8px 12px;
    min-height: 88px;
    padding-block: 15px;
  }

  .news-editorial-list time {
    grid-column: 1;
    grid-row: 1;
    min-width: 6.6em;
    font-size: 12px;
  }

  .news-category {
    grid-column: 2;
    grid-row: 1;
    font-size: 9px;
    min-height: 20px;
    padding: 2px 0;
  }

  .news-editorial-list p {
    grid-column: 1/3;
    grid-row: 2;
  }

  .news-editorial-list b {
    grid-column: 3;
    grid-row: 1/3;
  }
}

@media (max-width: 370px) {
  .news-editorial-list > a,
  .news-editorial-list > .news-item {
    grid-template-columns: auto minmax(0, 1fr) 20px;
  }

  .news-editorial-list p {
    font-size: 12px;
  }
}

.team-choice {
  background: #141414;
}

.team-choice-face {
  transform: none;
}

.team-choice-back {
  transform: scale(0.985);
}

.team-choice:is(:hover, .is-hover),
.team-choice:focus-visible {
  transform: translateY(-12px) !important;
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.55) !important;
}

.team-choice:is(:hover, .is-hover) .team-choice-front,
.team-choice:focus-visible .team-choice-front {
  opacity: 0;
  transform: scale(1.035);
  filter: blur(2px);
}

.team-choice:is(:hover, .is-hover) .team-choice-back,
.team-choice:focus-visible .team-choice-back {
  opacity: 1;
  transform: scale(1);
  box-shadow: none;
}

@media (max-width: 650px) {
  .news-section .section-head {
    align-items: stretch;
  }

  .team-choice:is(:hover, .is-hover),
  .team-choice:focus-visible {
    transform: translateY(-7px) !important;
  }

  .team-choice-back strong {
    font-size: clamp(19px, 6vw, 26px);
  }
}

.desktop-nav small,
.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) small {
  color: #4f4944;
  font-size: 10px;
  font-weight: 700;
}

.desktop-nav strong,
.desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) strong {
  color: #151311;
}

.mobile-nav > a span {
  color: #d9d3ce;
  font-weight: 700;
}

.mobile-nav > a b {
  color: #efc2c4;
}

.header-entry {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%);
  color: #fff;
  border-color: #a92529;
}

footer {
  padding-top: 46px;
  background: #fff;
  color: var(--ink);
  border-top: 1px solid #ded8d1;
}

.footer-links small {
  font-size: 10px;
  font-weight: 700;
  color: #5e5751;
}

.footer-bottom p:first-child {
  font-size: 12px;
  color: var(--ink);
}

.footer-bottom p:last-child {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #625b55;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  counter-increment: faq;
  border: 1px solid #ded8d1;
  min-width: 0;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s,
    background 0.3s;
}

.faq-item > button {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: space-between;
  text-align: left;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 800;
  cursor: pointer;
  transition: color 0.3s,
    padding 0.35s;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
  min-height: 94px;
  color: var(--ink);
}

.faq-item > button b {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid #cfc8c0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s,
    color 0.35s,
    border-color 0.35s;
  grid-column: 3;
}

.faq-item.is-open > button b {
  transform: rotate(45deg);
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.36s ease;
}

.faq-answer > div {
  min-height: 0;
  overflow: hidden;
}

.faq-answer p {
  max-width: 820px;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  transform: translateY(-7px);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  color: #2d2925 !important;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-open .faq-answer p {
  transform: translateY(0);
}

@media (max-width: 650px) {
  .recruit-section {
    min-height: 0;
  }

  .faq-item > button {
    padding-block: 15px;
    font-size: 13px;
    grid-template-columns: 34px minmax(0, 1fr) 29px;
    gap: 10px;
    min-height: 78px;
  }

  .faq-item > button b {
    width: 29px;
    height: 29px;
  }

  .faq-answer p {
    font-size: 12px;
  }
}

.contact-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: clip;
  background: #181311;
  color: #fff;
  padding-block: clamp(46px, 4.5vw, 64px);
  min-height: 360px;
}

.contact-bg,
.contact-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.contact-bg {
  object-fit: cover;
  object-position: center 56%;
  filter: saturate(0.86);
}

.contact-shade {
  background: linear-gradient(90deg, rgba(20, 12, 9, 0.92) 0%, rgba(30, 14, 11, 0.72) 48%, rgba(30, 8, 7, 0.46) 100%);
}

@media (max-width: 900px) {

  .contact-actions {
    width: min(100%, 560px);
  }
}

@media (max-width: 650px) {
  .contact-bg {
    object-position: 42% center;
  }

  .contact-shade {
    background: linear-gradient(180deg, rgba(18, 10, 8, 0.76), rgba(25, 8, 7, 0.88));
  }

  .contact-inner h2 {
    font-size: clamp(31px, 9vw, 43px);
  }
}

.faq-item:last-child {
  grid-column: 1/-1;
}

.faq-item:hover {
  border-color: #b8afa7;
}

.faq-item > button {
  padding: 20px 22px;
}

.faq-item > button:before {
  content: "Q" counter(faq, decimal-leading-zero);
  color: var(--red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.faq-item > button:hover {
  padding-inline: 22px;
  color: var(--red);
}

.faq-answer p {
  padding: 0 62px 25px 80px;
}

:where(.facility-cta, .news-all-button, .faq-all-button, .header-entry, .contact-actions a) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.35s,
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

:where(.facility-cta, .news-all-button, .faq-all-button, .header-entry, .contact-actions a):before {
  content: "";
  display: block !important;
  position: absolute;
  inset: -45% auto -45% -48%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  transform: skewX(-18deg) translateX(-190%);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

:where(.facility-cta, .news-all-button, .faq-all-button, .header-entry, .contact-actions a):hover:before,
:where(.facility-cta, .news-all-button, .faq-all-button, .header-entry, .contact-actions a):focus-visible:before {
  transform: skewX(-18deg) translateX(540%);
}

:where(.facility-cta, .news-all-button, .faq-all-button, .header-entry, .contact-actions a) > * {
  position: relative;
  z-index: 1;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  background: #a90000;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 650px) {
  .hero {
    padding-top: 0;
  }

  .faq-item:last-child {
    grid-column: auto;
  }

  .faq-item > button {
    padding: 16px;
  }

  .faq-item > button:hover {
    padding-inline: 16px;
  }

  .faq-answer p {
    padding: 0 45px 22px 60px;
  }
}

@media (max-width: 370px) {
  .faq-item > button {
    grid-template-columns: 30px minmax(0, 1fr) 29px;
    padding-inline: 13px;
  }

  .faq-answer p {
    padding-left: 53px;
    padding-right: 38px;
  }
}

.news-category-boys {
  background: var(--red);
}

.footer-links a:hover strong,
.footer-links a:hover small {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
}

.header-contact,
.header-entry {
  width: 148px;
  min-width: 0;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.35s,
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.header-contact {
  border-left: 1px solid #ddd7cf;
  background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%);
  color: var(--cta-wine);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.92);
  border-color: var(--cta-cream-deep);
}

.header-contact span,
.header-entry span {
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.header-contact small,
.header-entry small {
  font-size: 9px;
  letter-spacing: 0.14em;
  grid-column: 1;
}

.header-contact b,
.header-entry b {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center;
  display: grid;
  place-items: center;
  transition: background 0.35s,
    color 0.35s,
    border-color 0.35s,
    transform 0.35s;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 18px;
  line-height: 1;
}

.mobile-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 8px;
  margin-top: 14px;
}

.mobile-actions a {
  min-width: 0;
  min-height: 50px !important;
  padding: 0 12px;
  border: 1px solid #5a5550 !important;
  background: #292624;
  color: #fff;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mobile-actions b {
  color: inherit !important;
}

.recruit-panel h2 span {
  white-space: nowrap;
}

.faq-answer p {
  font-weight: 600;
}

.contact-actions a,
.contact-actions a:nth-child(2) {
  transform: none !important;
  border: 1px solid transparent;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
  transition: background 0.4s,
    color 0.4s,
    border-color 0.4s,
    box-shadow 0.4s;
}

.contact-actions a:first-child:hover,
.contact-actions a:first-child:focus-visible {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  background: #000;
  color: #fff;
  border-color: #000;
}

.contact-actions a:nth-child(2):hover,
.contact-actions a:nth-child(2):focus-visible {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  background: linear-gradient(135deg, #a20a10, #c72027);
  color: #fff;
  border-color: #c72027;
}

.contact-actions a:hover b,
.contact-actions a:focus-visible b {
  color: inherit;
  transform: translateX(4px) scale(1.06);
}

@media (max-width: 1180px) {
  .header-actions {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    height: calc(100svh - 78px);
    height: calc(100dvh - 78px);
    min-height: 0;
  }
}

@media (max-width: 650px) {
  .recruit-panel h2 {
    font-size: clamp(27px, 8.2vw, 34px);
  }

  .contact-actions b {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 1180px) {
  .topline {
    display: none;
  }

  .site-header {
    height: 68px;
  }

  .site-header > .brand {
    gap: 10px;
  }

  .hero {
    height: calc(100svh - 68px);
    height: calc(100dvh - 68px);
    margin-bottom: 52px;
  }

  .contact-section {
    min-height: 350px;
    padding-block: 48px;
  }

  .contact-actions a {
    min-height: 96px;
    padding: 22px 24px;
  }
}

@media (max-width: 650px) {
  .site-header {
    height: 60px;
  }

  .menu-button {
    width: 60px;
    gap: 5px;
    --menu-line-gap: 6px;
  }

  .hero {
    height: calc(100svh - 60px);
    height: calc(100dvh - 60px);
  }

  .hero h1 {
    font-size: clamp(35px, 10.8vw, 47px);
  }

  .contact-section {
    min-height: 0;
    padding-block: 40px;
  }

  .contact-inner {
    gap: 26px;
  }

  .contact-actions a {
    min-height: 72px;
    padding: 18px 20px;
  }
}

@media (max-width: 370px) {
  .site-header {
    height: 58px;
  }

  .menu-button {
    width: 58px;
  }

  .hero {
    height: calc(100svh - 58px);
    height: calc(100dvh - 58px);
  }

  .hero h1 {
    font-size: 34px;
  }

  .contact-section {
    padding-block: 36px;
  }
}

.hero h1 {
  line-height: 1.08;
}

.contact-actions a b {
  background: #fff;
  border-color: #fff;
}

@media (min-width: 769px) {
  .contact-section {
    min-height: 400px;
    padding-block: 70px;
  }
}

@media (max-width: 650px) {
  .hero h1 {
    line-height: 1.1;
  }
}

.section {
  padding-block: clamp(40px, 3.8vw, 52px);
}

@media (max-width: 650px) {
  .section {
    padding-block: 36px;
  }

}

@media (max-width: 370px) {
  .section {
    padding-block: 34px;
  }
}

@media (max-width: 1180px) {
  .mobile-nav {
    top: 68px;
    bottom: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    max-height: none;
  }
}

@media (max-width: 650px) {
  .mobile-nav {
    top: 60px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }
}

@media (max-width: 370px) {
  .mobile-nav {
    top: 58px;
    height: calc(100vh - 58px);
    height: calc(100dvh - 58px);
  }
}

@media (min-width: 1181px) {
  .section-head {
    margin-bottom: 48px;
  }

  .team-select-head {
    margin-bottom: 48px;
  }
}

.news-all-button {
  width: 230px;
  min-width: 0;
  height: 56px;
  padding: 0 19px;
  border: 1px solid #bdb5ad;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  transform: none !important;
  transition: background 0.35s,
    color 0.35s,
    border-color 0.35s,
    box-shadow 0.35s;
}

.news-all-button b {
  color: var(--red);
  font-size: 18px;
  transition: color 0.3s,
    transform 0.3s;
}

.news-all-button:before {
  content: "";
  display: block !important;
  position: absolute;
  inset: -45% auto -45% -48%;
  width: 36%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.76), transparent);
  transform: skewX(-18deg) translateX(-190%);
  transition: transform 0.68s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}

.news-all-button:hover,
.news-all-button:focus-visible {
  background: #a90000 !important;
  color: #fff !important;
  border-color: #a90000 !important;
  box-shadow: 0 9px 20px rgba(23, 18, 15, 0.16) !important;
  transform: none !important;
}

.news-all-button:hover:before,
.news-all-button:focus-visible:before {
  transform: skewX(-18deg) translateX(540%);
}

.news-all-button:hover b,
.news-all-button:focus-visible b {
  color: #fff !important;
  transform: translateX(5px);
}

.contact-actions a {
  transform: scale(1) !important;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.42s ease,
    color 0.42s ease,
    border-color 0.42s ease,
    box-shadow 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-actions a:after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  display: none !important;
  content: none;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  transform: scale(1.012) !important;
}

.contact-actions a:hover:after,
.contact-actions a:focus-visible:after {
  transform: scaleX(1);
}

@media (max-width: 650px) {
  .news-all-button {
    width: 100%;
    height: 52px;
  }

  .contact-actions a:hover,
  .contact-actions a:focus-visible {
    transform: scale(1.006) !important;
  }
}

.header-contact small {
  color: #7a4b4d;
}

.header-entry small {
  color: rgba(255, 255, 255, 0.78);
}

.header-entry:hover,
.header-entry:focus-visible {
  background: linear-gradient(135deg, #a20a10, #c72027);
  color: #fff;
  border-color: #c72027;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24);
}

.header-contact:hover b,
.header-contact:focus-visible b {
  border-color: #fff;
}

.header-entry:hover b,
.header-entry:focus-visible b {
  border-color: #fff;
}

.mobile-actions a:first-child {
  background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%);
  color: var(--cta-wine);
  border-color: var(--cta-cream-deep) !important;
}

.mobile-actions a:last-child {
  background: linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%);
  color: #fff;
  border-color: #a92529 !important;
}

.mobile-actions a:first-child b {
  color: var(--cta-red) !important;
}

.mobile-actions a:last-child b {
  color: #fff !important;
}

.contact-actions a:first-child {
  background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%);
  color: var(--cta-wine);
  border-color: var(--cta-cream-deep);
  box-shadow: 0 16px 38px rgba(24, 8, 7, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.94);
}

.contact-actions a:nth-child(2) {
  background: linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%);
  color: #fff;
  border-color: #ae2429;
  box-shadow: 0 16px 38px rgba(72, 0, 4, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.2);
}

.contact-actions a:first-child b {
  background: var(--cta-red);
  color: #fff;
  border-color: var(--cta-red);
}

.contact-actions a:nth-child(2) b {
  background: #fff;
  color: var(--cta-red);
  border-color: #fff;
}

.contact-actions a:first-child:after {
  background: var(--cta-red);
}

.contact-actions a:nth-child(2):after {
  background: #fff;
}

.contact-actions a:first-child:hover b,
.contact-actions a:first-child:focus-visible b,
.contact-actions a:nth-child(2):hover b,
.contact-actions a:nth-child(2):focus-visible b {
  background: #fff;
  color: var(--cta-red);
  border-color: #fff;
}

.footer-main {
  flex-wrap: wrap;
}

.header-contact > * {
  position: relative;
  z-index: 1;
}

.header-contact:before {
  content: "";
  display: block;
  position: absolute;
  inset: -42% auto -42% -38%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg) translateX(-220%);
  transition: transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.header-contact:hover:before,
.header-contact:focus-visible:before {
  transform: skewX(-18deg) translateX(700%);
}

.header-contact:hover,
.header-contact:focus-visible {
  background: #000;
  color: #fff;
  border-color: #000;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
}

.header-contact:hover small,
.header-contact:focus-visible small {
  color: #fff;
}

.header-contact:hover b,
.header-contact:focus-visible b,
.header-entry:hover b,
.header-entry:focus-visible b {
  background: transparent;
  color: currentColor;
  border: 0;
  transform: translateX(4px);
}

.contact-actions a:first-child:hover b,
.contact-actions a:first-child:focus-visible b {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.contact-actions a:before {
  content: "";
  display: block !important;
  position: absolute;
  inset: -44% auto -44% -34%;
  width: 18%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg) translateX(-240%);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 0;
}

.contact-actions a:hover:before,
.contact-actions a:focus-visible:before {
  transform: skewX(-18deg) translateX(850%);
}

@media (max-width: 650px) {
  .hero {
    margin-bottom: 46px;
  }
}

@media (max-width: 370px) {
  .hero {
    margin-bottom: 42px;
  }
}

.sns-link {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
}

.sns-link[hidden] {
  display: none !important;
}

.sns-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.footer-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social .sns-link {
  width: 30px;
  height: 30px;
  transition: transform 0.3s,
    opacity 0.3s;
}

.footer-social .sns-link:is(:hover, .is-hover),
.footer-social .sns-link:focus-visible {
  transform: translateY(-2px);
  opacity: 0.85;
}

.sticky-cta {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1180px) {
  .sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: grid;
    box-shadow: 0 -10px 26px rgba(20, 10, 8, 0.2);
    padding-bottom: env(safe-area-inset-bottom);
  }

  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  body.nav-open .sticky-cta {
    display: none;
  }

  .sticky-cta a {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    transition: background 0.3s,
      color 0.3s;
  }

  .sticky-cta-contact {
    background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%);
    color: var(--cta-wine);
  }

  .sticky-cta-entry {
    background: linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%);
    color: #fff;
  }

  .sticky-cta-contact:hover,
  .sticky-cta-contact:focus-visible {
    background: linear-gradient(135deg, var(--cta-wine), var(--cta-red));
    color: #fff;
  }

  .sticky-cta-entry:hover,
  .sticky-cta-entry:focus-visible {
    background: linear-gradient(135deg, #a20a10, #c72027);
  }
}

@media (max-width: 650px) {
  .sticky-cta a {
    min-height: 54px;
    font-size: 12px;
  }

  body {
    padding-bottom: calc(54px + env(safe-area-inset-bottom));
  }
}

.header-contact,
.header-entry,
.desktop-nav a {
  box-sizing: border-box;
}

.mobile-nav > a {
  grid-template-columns: 94px 1fr auto;
}

.mobile-nav-group {
  grid-template-columns: 94px 1fr;
}

.mobile-nav > a strong {
  white-space: normal;
  overflow-wrap: break-word;
  line-height: 1.3;
}

@media (max-width: 370px) {
  .mobile-nav > a {
    grid-template-columns: 90px 1fr auto;
  }

  .mobile-nav-group {
    grid-template-columns: 90px 1fr;
  }
}

@media (min-width: 1181px) {
  .site-header {
    height: 94px;
    min-height: 94px;
    max-height: 94px;
  }

  .header-actions {
    height: auto;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%) left/50% 100% no-repeat,
      linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%) right/50% 100% no-repeat;
  }

  .header-actions:has(.header-contact:hover),
  .header-actions:has(.header-contact:focus-visible) {
    background: linear-gradient(#000, #000) left/50% 100% no-repeat,
      linear-gradient(135deg, var(--cta-red) 0%, var(--cta-red-bright) 100%) right/50% 100% no-repeat;
  }

  .header-actions:has(.header-entry:hover),
  .header-actions:has(.header-entry:focus-visible) {
    background: linear-gradient(135deg, var(--cta-cream) 0%, #f8f1ec 100%) left/50% 100% no-repeat,
      linear-gradient(135deg, #a20a10, #c72027) right/50% 100% no-repeat;
  }

  .header-contact,
  .header-entry {
    height: auto !important;
    min-height: 0;
    max-height: none;
    align-self: stretch;
    isolation: auto;
    background-clip: border-box;
  }
}

@media (max-width: 650px) {
  footer {
    padding-top: 42px;
  }

  .footer-main {
    align-items: stretch;
    gap: 26px;
  }

  .footer-identity {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 15px;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-social .sns-link {
    width: 34px;
    height: 34px;
  }

  .footer-links strong {
    font-size: 13px;
    line-height: 1.45;
  }

  .footer-links small {
    font-size: 11px;
    line-height: 1.55;
    color: #4b4540;
    font-weight: 700;
  }

  .footer-bottom p:first-child {
    font-size: 13px;
  }

  .footer-bottom p:last-child {
    font-size: 12px;
    color: #39332f;
    font-weight: 800;
    letter-spacing: 0.08em;
  }
}

/* 全ページ共通：フッターの補助リンク（トップページと同じ表示） */

.footer-legal {
  display: flex;
  align-items: center;
  gap: 26px;
}

.footer-legal a {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: inherit;
  opacity: 0.82;
  transition: opacity 0.3s,
    color 0.3s;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  opacity: 1;
  color: var(--red);
}

@media (max-width: 650px) {
  .footer-legal {
    gap: 18px;
    margin-block: 4px;
    flex-wrap: wrap;
  }

  .footer-legal a {
    font-size: 12px;
    color: #3f3934;
    opacity: 1;
    font-weight: 800;
  }
}

/* ロゴ：全ページのヘッダー・フッターで共通の切り替え表示 */
.brand-switch {
  min-width: 0;
}
.footer-brand.brand-switch {
  padding: 0;
}

/* フッター補助リンク：スマートフォンではナビリンク直下に表示 */

.footer-legal-sp {
  display: none;
}

@media (max-width: 650px) {
  .footer-main .footer-legal-sp {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: -4px 0 0;
    padding-top: 22px;
    border-top: 1px solid #ded8d1;
    gap: 10px 22px;
  }

  .footer-bottom .footer-legal {
    display: none;
  }
}

/* ヘッダー：TEAMをリンク化（クリックでチーム紹介へ遷移、ホバーで目次のプルダウンを表示） */

.desktop-nav > .nav-dropdown > .nav-dropdown-trigger {
  cursor: pointer;
}

.desktop-nav > .nav-dropdown > .nav-dropdown-trigger:hover strong,
.desktop-nav > .nav-dropdown > .nav-dropdown-trigger:focus-visible strong {
  color: var(--red);
}

/* ヘッダー・フッター：画面幅ごとの調整 */

/* 1181〜1450px：ナビ項目を詰めて1行に収める */

@media (min-width: 1181px) and (max-width: 1450px) {
  .desktop-nav > a,
  .desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) {
    min-width: 84px;
    padding-inline: 8px;
  }

  .desktop-nav small,
  .desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) small {
    font-size: 8px;
    letter-spacing: -0.01em;
  }

  .header-contact,
  .header-entry {
    width: 132px;
    padding-inline: 12px;
  }
}

/* ヘッダーナビ（1181〜1450px幅でナビ7項目＋CTAを1行に収めるため、さらに詰める。 */

@media (max-width: 1450px) {
  .desktop-nav > a,
  .desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) {
    min-width: 0;
    padding-inline: 7px;
  }

  .desktop-nav strong,
  .desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) strong {
    font-size: 10.5px;
    letter-spacing: 0.05em;
  }

  .desktop-nav small,
  .desktop-nav > .nav-dropdown > :is(button, .nav-dropdown-trigger) small {
    font-size: 7.5px;
    white-space: nowrap;
  }

  .site-header > .brand {
    padding-inline: 16px;
  }

  .header-contact,
  .header-entry {
    width: 108px;
    padding-inline: 8px;
  }
}

/* ヘッダーCTAボタンのhover/focusで高さ・位置がずれてメインビジュアルとの間に
   隙間が出ないよう固定（common.css側の演出用transform/topを無効化） */

.site-header,
.header-actions,
.header-contact,
.header-entry {
  margin: 0 !important;
}

.header-contact,
.header-entry,
.header-contact:hover,
.header-contact:focus-visible,
.header-entry:hover,
.header-entry:focus-visible {
  top: auto !important;
  transform: none !important;
}

/* フッター：スマートフォン表示のコピーライト文字サイズ */

@media (max-width: 650px) {
  .footer-bottom > p:last-child {
    font-size: 11px;
  }
}

/* お問い合わせ見出し：全ページ共通 */

.contact-section .contact-inner h2 {
  font-size: clamp(25px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.contact-section .contact-inner h2 span {
  display: block;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .contact-section .contact-inner h2 {
    font-size: clamp(20px, 6.3vw, 27px);
    letter-spacing: -0.055em;
  }
}

.logo-glint-switch {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: clamp(180px, 18vw, 240px);
  aspect-ratio: 666 / 200;
  margin: 0;
  overflow: hidden;
}

.logo-glint-switch__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: opacity, transform, filter;
}

/* 1枚目：越谷ボーイズ */
.logo-glint-switch__img--01 {
  opacity: 1;
  animation: logoSwitchA 8s ease-in-out infinite;
}

/* 2枚目：越谷中央ボーイズ */
.logo-glint-switch__img--02 {
  opacity: 0;
  animation: logoSwitchB 8s ease-in-out infinite;
}

/* キラッと走る光 */
.logo-glint-switch__shine {
  position: absolute;
  top: -20%;
  left: -35%;
  width: 18%;
  height: 140%;
  pointer-events: none;
  opacity: 0;
  z-index: 5;
  transform: skewX(-25deg);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 20%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.15) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  filter: blur(1px);
  animation: logoShine 8s ease-in-out infinite;
}

@keyframes logoSwitchA {
  0%,
  38% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  44%,
  88% {
    opacity: 0;
    transform: scale(0.985);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes logoSwitchB {
  0%,
  38% {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(2px);
  }
  44%,
  88% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.015);
    filter: blur(2px);
  }
}

/* 2回の切り替えタイミングでキラッと走る */
@keyframes logoShine {
  /* 1回目 */
  0%,
  34% {
    opacity: 0;
    left: -35%;
  }
  36% {
    opacity: 1;
    left: -25%;
  }
  48% {
    opacity: 1;
    left: 120%;
  }
  50% {
    opacity: 0;
    left: 120%;
  }

  /* 2回目 */
  51%,
  84% {
    opacity: 0;
    left: -35%;
  }
  86% {
    opacity: 1;
    left: -25%;
  }
  98% {
    opacity: 1;
    left: 120%;
  }
  100% {
    opacity: 0;
    left: 120%;
  }
}

@media (max-width: 1180px) {
  .logo-glint-switch {
    width: 200px;
  }
}
@media (max-width: 650px) {
  .site-header > .brand-switch {
    padding-inline: 18px;
  }
  .logo-glint-switch {
    width: clamp(160px, 46vw, 190px);
  }
  .footer-brand .logo-glint-switch {
    width: min(220px, 100%);
  }
}

/* モバイルのチーム紹介：標準のdetailsによる開閉メニュー */
@media (max-width: 1180px) {
  .mobile-nav .mobile-team-accordion {
    display: block;
    padding: 0;
  }
  .mobile-team-accordion > summary {
    display: grid;
    grid-template-columns: 94px 1fr 20px;
    align-items: center;
    min-height: 48px;
    cursor: pointer;
    list-style: none;
    color: #fff;
  }
  .mobile-team-accordion > summary::-webkit-details-marker {
    display: none;
  }
  .mobile-team-accordion > summary strong {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
  .mobile-team-accordion > summary span {
    font-size: 11px;
    color: #fff;
    transition: color 0.25s;
  }
  .mobile-team-accordion > summary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }
  .mobile-team-toggle {
    position: relative;
    width: 16px;
    height: 16px;
  }
  .mobile-team-toggle::before,
  .mobile-team-toggle::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 2px;
    width: 12px;
    height: 2px;
    background: currentColor;
    transition: transform 0.25s;
  }
  .mobile-team-toggle::after {
    transform: rotate(90deg);
  }
  .mobile-team-accordion[open] .mobile-team-toggle::after {
    transform: rotate(0);
  }
  .mobile-team-accordion > summary:hover span,
  .mobile-team-accordion > summary:focus-visible span {
    color: #f1c2c2;
  }
  .mobile-team-links {
    padding: 0 0 12px 94px;
  }
  .mobile-team-links > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 8px 0;
    border-top: 1px solid #383431;
    color: #fff;
    font-size: 11px;
  }
  .mobile-team-links > a b {
    color: #ddaaaa;
  }
}
@media (max-width: 370px) {
  .mobile-team-accordion > summary {
    grid-template-columns: 90px 1fr 20px;
  }
  .mobile-team-links {
    padding-left: 90px;
  }
}

/* ハンバーガーメニュー：3本線と閉じる（×）
 * 線をボタン中央を基準に配置し、どの画面幅でも×が中心で正しく交差するようにしています。
 * --menu-line-gap：線の間隔（中心から上下の線までの距離）
 */
@media (max-width: 1180px) {

  .menu-button span:nth-child(1) {
    transform: translate(-50%, calc(-50% - var(--menu-line-gap)));
  }

  .menu-button span:nth-child(3) {
    transform: translate(-50%, calc(-50% + var(--menu-line-gap)));
  }

  .menu-button.is-open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .menu-button.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-button.is-open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

@media (max-width: 650px) {
  .menu-button span {
    width: 22px;
  }
}

/* WordPress：ログイン時の管理バー（固定ヘッダーが管理バーの下に隠れないようにする） */

.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .site-header {
    top: 0;
  }
}

/* 歴代主要実績（トップ・チーム紹介）：期生 / チーム名は文字数に合わせた幅で表示 */

.team-history-name small.tag-term {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  max-width: 100%;
  padding: 3px 8px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .team-history-tags {
    min-width: 0;
    justify-self: start;
    max-width: 100%;
  }

  .team-history-name small.tag-term {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}
