/* 共通スタイル。後半のレスポンシブ規則が前半の基本指定を上書きします。
   見た目を維持するため、整形時には規則の順序を変更していません。 */
* {
  box-sizing: border-box
}

body {
  margin: 0;
  color: #191919;
  background: #ffffff;
  font-family: Arial,"Hiragino Kaku Gothic ProN",sans-serif;
  line-height: 1.9
}

a {
  color: inherit;
  text-underline-offset: 5px
}

header {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  gap: 24px;
  flex-wrap: wrap
}

header a {
  text-decoration: none
}

nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px
}

.brand {
  font-weight: 900;
  line-height: 1.3
}

.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 2px
}

.hero {
  min-height: 650px;
  background: #ffffff;
  color: white;
  padding: 90px 7%;
  position: relative;
  overflow: hidden
}

.hero:after {
  content: "";
  position: absolute;
  border: 1px solid #ffffff35;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  right: -80px;
  top: 40px;
  pointer-events: none
}

h1 {
  font-size: clamp(40px,7vw,90px);
  line-height: 1.35;
  letter-spacing: .02em
}

h2 {
  font-size: clamp(28px,4vw,48px);
  line-height: 1.4
}

h3 {
  font-size: 23px
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  font-weight: bold;
  color: #d3152c
}

.hero .eyebrow {
  color: #d3152c
}

.button {
  display: inline-block;
  padding: 16px 28px;
  background: #d3152c;
  color: white;
  text-decoration: none;
  font-weight: bold
}

.line {
  background: #191919
}

.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 80px 28px
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.photo {
  background: #f2f2f2;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px;
  text-align: center;
  color: #555555;
  border: 1px solid #dddddd
}

.photo small {
  display: block
}

.grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 30px
}

.card {
  padding: 25px 0;
  border-top: 2px solid #d3152c
}

.band {
  background: #f5f5f5
}

.links a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid #ccc;
  text-decoration: none
}

.article {
  max-width: 850px;
  margin: auto;
  padding: 50px 25px
}

.article p {
  white-space: pre-wrap
}

.note {
  font-size: 13px;
  color: #666666
}

footer {
  background: #1d1717;
  color: white;
  padding: 45px 6%
}

details {
  border-bottom: 1px solid #bbb;
  padding: 20px 0
}

summary {
  cursor: pointer;
  font-weight: bold
}

table {
  width: 100%;
  border-collapse: collapse
}

td,th {
  text-align: left;
  padding: 18px 10px;
  border-bottom: 1px solid #ccc
}

.contact {
  text-align: center;
  background: #191919;
  color: white;
  padding: 70px 25px
}

@media(max-width:700px) {
  .split,.grid {
    grid-template-columns: 1fr;
    gap: 25px
  }

  .hero {
    min-height: 580px;
    padding: 60px 25px
  }

  .wrap {
    padding: 50px 22px
  }

  nav {
    gap: 14px
  }

  .photo {
    min-height: 230px
  }

  header {
    padding: 20px
  }

  .hero:after {
    right: -380px
  }

  table {
    font-size: 13px
  }

}

/* Logo-led black, red and white visual system */ :root {
  --red: #d3152c;
  --ink: #191919
}

html {
  scroll-behavior: smooth
}

header {
  border-bottom: 1px solid #eee;
  padding: 22px 5%
}

.brand {
  display: block
}

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

.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 8px;
  color: #555
}

/* 赤い下線は末尾のリンクではなく、現在のページにのみ付ける。 */

a:hover {
  color: var(--red)
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px
}

.button:hover {
  background: #9e1021;
  color: white
}

.hero {
  color: var(--ink);
  padding: 70px 5% 85px;
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center
}

.hero>.eyebrow {
  grid-column: 1/-1;
  margin: 0
}

.hero:after {
  display: none
}

.hero h1 {
  font-size: clamp(38px,4.7vw,72px);
  margin: 12px 0 25px;
  letter-spacing: -.04em;
  line-height: 1.4
}

.hero-copy>p {
  margin-bottom: 28px
}

.hero-photo {
  margin: 0;
  min-height: 420px;
  background: linear-gradient(135deg,#282323,#171717);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border-bottom: 10px solid var(--red);
  position: relative
}

.hero-photo:before {
  content: "";
  position: absolute;
  top: 0;
  right: 25px;
  width: 35px;
  height: 75px;
  background: var(--red);
  transform: skew(-22deg)
}

.hero-photo strong {
  font-size: clamp(26px,3vw,42px);
  line-height: 1.55;
  margin: 28px 0
}

.photo-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--red);
  font-weight: bold
}

.hero-photo .photo-label {
  color: #ff6979
}

.hero-photo figcaption {
  font-size: 12px;
  color: #ccc
}

.photo {
  border: 0;
  border-left: 4px solid var(--red);
  color: #555
}

.subphoto {
  margin: 30px 0 45px;
  min-height: 280px;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  text-align: left
}

.subphoto strong {
  font-size: 25px;
  color: #191919
}

.subphoto figcaption {
  max-width: 650px;
  font-size: 14px
}

.eyebrow:before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 3px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 12px
}

.article h1 {
  border-left: 6px solid var(--red);
  padding-left: 20px
}

.contact {
  border-top: 8px solid var(--red)
}

.contact .button {
  background: var(--red)
}

.footer-logo {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px
}

.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px
}

.card h3 {
  font-size: 21px
}

::selection {
  background: #fbd3d8;
  color: #191919
}

@media(max-width:700px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 38px 22px 50px;
    gap: 25px
  }

  .hero h1 {
    font-size: clamp(32px,8vw,48px)
  }

  .hero-photo {
    min-height: 300px;
    padding: 28px
  }

  .brand img {
    width: 216px
  }

  nav {
    font-size: 12px
  }

  .subphoto {
    padding: 24px
  }

  .article h1 {
    font-size: 30px!important
  }

  .hero>.eyebrow {
    font-size: 10px
  }

  header {
    padding: 18px 22px
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

}

/* Team profile: section rhythm, editorial hierarchy, structured data */ .team-page {
  --section-gap: 85px
}

.team-container {
  max-width: 1160px;
  margin: auto;
  padding-left: 28px;
  padding-right: 28px
}

.team-title {
  padding: 40px max(28px,calc((100vw - 1104px)/2)) 65px;
  background: #f5f5f5;
  border-bottom: 6px solid #d3152c
}

.team-title h1 {
  font-size: clamp(42px,6vw,76px);
  margin: 22px 0;
  line-height: 1.35;
  letter-spacing: -.035em
}

.title-caption {
  font-size: 14px;
  font-weight: bold
}

.team-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  padding-top: 65px;
  padding-bottom: 65px;
  align-items: center
}

.slogan>span {
  font-size: 11px;
  letter-spacing: 2px
}

.slogan>strong {
  display: block;
  font-size: clamp(48px,6vw,78px);
  font-weight: 900;
  line-height: 1.5
}

.slogan strong span {
  color: #d3152c
}

.slogan p {
  font-weight: bold
}

.team-photo {
  margin: 0;
  background: #eee;
  min-height: 280px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 4px solid #d3152c
}

.team-photo>span {
  font-size: 11px;
  color: #d3152c;
  font-weight: bold;
  letter-spacing: 2px
}

.team-photo strong {
  font-size: clamp(22px,3vw,36px);
  margin: 20px 0;
  color: #222
}

.team-photo figcaption {
  color: #666;
  font-size: 12px;
  max-width: 600px
}

.section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 28px
}

.section-nav a {
  font-size: 12px;
  padding: 12px 22px 12px 0;
  margin-right: 20px;
  border-bottom: 1px solid #ccc;
  text-decoration: none
}

.team-section {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  scroll-margin-top: 25px
}

.section-heading {
  display: flex;
  gap: 25px;
  margin-bottom: 38px;
  align-items: flex-start
}

.section-heading>span {
  font-size: 55px;
  font-weight: 900;
  line-height: 1.2;
  color: #d3152c;
  letter-spacing: -3px
}

.section-heading .eyebrow {
  margin: 0 0 10px
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px,4vw,44px)
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px
}

/* 学年別カード：ホームと同じ赤い上線・淡い背景・ホバー色に統一。 */
.growth-card {
  border-top: 2px solid #d3152c;
  padding: 26px 22px;
  background: #faf9f9;
  transition: background-color 180ms ease;
}

@media (hover: hover) {
  .growth-card:hover {
    background: #f6e9eb;
  }

}

.growth-card .grade {
  margin: 0 0 20px;
  font-weight: 800;
  color: #d3152c;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .growth-card {
    transition: none;
  }

}

.growth-card h3 {
  font-size: 22px;
  line-height: 1.6;
  min-height: 70px
}

.growth-card p:not(.grade) {
  font-size: 14px
}

.team-shade {
  background: #f5f5f5
}

.members-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 65px
}

.member-total {
  border-left: 5px solid #d3152c;
  padding-left: 25px
}

.member-total>span {
  font-size: 13px
}

.member-total p {
  margin: 0
}

.member-total b {
  font-size: 100px;
  line-height: 1.5
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 12px
}

.grade-grid>div {
  border-bottom: 2px solid #ccc;
  padding-bottom: 12px
}

.grade-grid span {
  display: block;
  font-size: 12px
}

.grade-grid strong {
  font-size: 32px
}

.grade-grid small {
  font-size: 12px;
  margin-left: 5px
}

.staff-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
  margin-bottom: 45px
}

.staff-table {
  overflow-x: auto
}

.staff-table table {
  min-width: 750px;
  font-size: 13px;
  background: white
}

.staff-table thead {
  background: #191919;
  color: white
}

.staff-table th,.staff-table td {
  padding: 15px
}

.staff-table tbody tr:nth-child(even) {
  background: #f5f5f5
}

.ground-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 45px
}

.ground-secondary {
  border-top: 3px solid #191919;
  padding-top: 25px
}

.season summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 24px;
  align-items: center
}

.season summary:after {
  content: '＋';
  color: #d3152c
}

.season[open] summary:after {
  content: '−'
}

.season summary span {
  font-size: 12px;
  font-weight: normal;
  margin-left: auto
}

.season li {
  padding: 7px 0
}

.season[open] {
  border-top: 3px solid #d3152c
}

.tradition {
  background: #191919;
  color: white
}

.tradition .eyebrow {
  color: #ff6b7c
}

.tradition-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center
}

.tradition .team-photo {
  background: #302b2b
}

.tradition .team-photo strong {
  color: white
}

.tradition .team-photo figcaption {
  color: #ccc
}

.tradition .team-photo>span {
  color: #ff6b7c
}

.team-next {
  text-align: center
}

.team-next h2 {
  font-size: clamp(28px,4vw,44px)
}

@media(max-width:700px) {
  .team-page {
    --section-gap: 50px
  }

  .team-container {
    padding-left: 22px;
    padding-right: 22px
  }

  .team-title {
    padding: 25px 22px 40px
  }

  .team-intro,.members-layout,.staff-intro,.ground-grid,.tradition-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .growth-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .growth-card h3 {
    min-height: 0;
    margin: 14px 0
  }

  .team-intro {
    padding-top: 40px;
    padding-bottom: 40px
  }

  .grade-grid {
    grid-template-columns: repeat(3,1fr)
  }

  .member-total b {
    font-size: 75px
  }

  .section-heading {
    gap: 18px
  }

  .section-heading>span {
    font-size: 42px
  }

  .section-heading h2 {
    font-size: 28px
  }

  .team-photo {
    min-height: 230px;
    padding: 25px
  }

  .section-nav a {
    font-size: 11px;
    margin-right: 10px
  }

  .season summary {
    font-size: 22px
  }

  .season summary span {
    font-size: 10px
  }

  .team-next .button {
    padding: 16px 20px
  }

}

/* Shared subpage editorial layouts */ .guide-notice {
  padding-top: 24px
}

.guide-spread {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 60px;
  align-items: start
}

.guide-spread.reverse .guide-copy {
  order: 2
}

.guide-spread.reverse .guide-photo {
  order: 1
}

.guide-copy p {
  margin: 0 0 22px;
  line-height: 2
}

.guide-copy p:last-child {
  margin-bottom: 0
}

.guide-photo {
  min-height: 330px;
  aspect-ratio: 3/2
}

.guide-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px
}

.guide-page .section-heading h2 {
  font-size: clamp(26px,3.4vw,40px);
  overflow-wrap: anywhere
}

.guide-page .section-heading {
  max-width: 100%
}

.guide-page .tradition .guide-photo {
  background: #302b2b
}

.guide-page .staff-table {
  margin-bottom: 35px
}

.guide-page .staff-table table {
  min-width: 850px
}

.guide-page .section-nav {
  row-gap: 8px
}

.guide-page .section-nav a {
  max-width: 100%;
  overflow-wrap: anywhere
}

.answer-label {
  color: #d3152c;
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 12px;
  margin-bottom: 16px
}

.tradition .answer-label {
  color: #ff6b7c
}

.guide-page .team-section {
  scroll-margin-top: 20px
}

.guide-page .guide-photo strong {
  font-size: clamp(20px,2.5vw,30px)
}

@media(max-width:700px) {
  .guide-spread,.guide-gallery {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .guide-spread.reverse .guide-copy,.guide-spread.reverse .guide-photo {
    order: initial
  }

  .guide-photo {
    min-height: 240px;
    aspect-ratio: auto
  }

  .guide-page .section-heading h2 {
    font-size: 26px
  }

  .guide-page .section-heading>span {
    font-size: 36px
  }

  .guide-page .team-title h1 {
    font-size: clamp(35px,9vw,52px)
  }

  .guide-page .section-nav a {
    font-size: 12px
  }

  .guide-copy p {
    font-size: 15px
  }

}

/* Centered, responsive content system */ :root {
  --content-width: 1120px;
  --page-gutter: clamp(20px,4vw,40px);
  --reading-width: 720px;
  --layout-gap: clamp(24px,4vw,56px)
}

body {
  overflow-wrap: break-word
}

img,video {
  max-width: 100%;
  height: auto
}

iframe {
  max-width: 100%
}

header {
  padding: 22px max(var(--page-gutter),calc((100% - var(--content-width))/2));
  justify-content: center;
  gap: 20px 48px
}

header .brand {
  text-align: center;
  flex-shrink: 0
}

header .brand img {
  margin-inline: auto
}

header nav {
  justify-content: center;
  align-items: center;
  gap: 12px 24px
}

header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px
}

.wrap,.team-container {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding-inline: var(--page-gutter)
}

.hero {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-gutter));
  margin-inline: auto;
  padding: clamp(40px,6vw,75px) var(--page-gutter);
  grid-template-columns: minmax(0,1fr);
  gap: 32px;
  text-align: center;
  min-height: 0
}

.hero-copy {
  width: 100%;
  max-width: 850px;
  margin-inline: auto
}

.hero h1 {
  font-size: clamp(34px,5.8vw,72px)
}

.hero-photo {
  width: 100%;
  max-width: 1040px;
  min-height: 0;
  aspect-ratio: 16/7;
  margin-inline: auto;
  align-items: center;
  text-align: center;
  padding: clamp(28px,5vw,60px)
}

.hero-photo strong {
  margin: 20px 0
}

.team-title {
  text-align: center;
  padding: 32px var(--page-gutter) clamp(40px,6vw,70px)
}

.team-title>* {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto
}

.team-title h1 {
  font-size: clamp(36px,5.7vw,72px);
  text-wrap: balance
}

.title-caption {
  margin-bottom: 0
}

.section-heading {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-inline: auto;
  margin-bottom: clamp(30px,4vw,48px);
  max-width: 850px
}

.section-heading>span {
  font-size: 42px;
  letter-spacing: -2px;
  line-height: 1
}

.section-heading h2 {
  max-width: 820px;
  text-wrap: balance
}

.section-heading .eyebrow {
  margin-bottom: 12px
}

.section-nav {
  justify-content: center;
  gap: 8px 12px;
  margin-top: 20px;
  max-width: calc(960px + 2 * var(--page-gutter))
}

.section-nav a {
  padding: 12px 14px;
  margin: 0;
  min-height: 44px;
  text-align: center;
  font-size: 13px;
  flex: 0 1 auto
}

.guide-notice {
  max-width: calc(850px + 2 * var(--page-gutter));
  text-align: center
}

.guide-spread,.team-intro,.staff-intro,.tradition-grid,.split {
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: var(--layout-gap);
  align-items: center
}

.guide-spread>*,.team-intro>*,.staff-intro>*,.tradition-grid>*,.split>*,.members-layout>*,.ground-grid>*,.growth-grid>*,.grid>* {
  min-width: 0
}

.guide-copy {
  max-width: var(--reading-width);
  width: 100%;
  margin-inline: auto;
  text-align: left
}

.team-photo,.photo {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  text-align: center;
  overflow-wrap: anywhere
}

.team-photo figcaption {
  max-width: 560px;
  margin-inline: auto
}

.guide-photo {
  aspect-ratio: 4/3;
  min-height: 280px;
  padding: clamp(24px,3vw,38px)
}

.guide-gallery {
  gap: var(--layout-gap);
  grid-template-columns: repeat(2,minmax(0,1fr))
}

.team-container>.team-photo {
  aspect-ratio: 16/7;
  min-height: 280px
}

.guide-page .team-section>.guide-photo {
  max-width: 850px;
  aspect-ratio: 16/7;
  margin: 36px auto 0
}

.growth-grid,.grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 28px
}

.growth-card h3,.card h3 {
  text-wrap: balance
}

.members-layout {
  grid-template-columns: minmax(160px,220px) minmax(0,1fr);
  gap: var(--layout-gap);
  align-items: start
}

.member-total {
  text-align: center;
  border-left: 0;
  border-top: 4px solid var(--red);
  padding: 20px 0
}

.grade-grid {
  text-align: center;
  grid-template-columns: repeat(6,minmax(0,1fr))
}

.ground-grid {
  grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  gap: var(--layout-gap)
}

.staff-table {
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch
}

.staff-table:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px
}

.team-section>p,.team-section>.season {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto
}

.team-section>.season+p,.team-section>h3 {
  text-align: center
}

.wrap>.eyebrow,.wrap>h2,.wrap>p,.guide-gallery+h2 {
  text-align: center
}

.wrap>p {
  max-width: var(--reading-width);
  margin-inline: auto
}

.links {
  max-width: 900px;
  margin-inline: auto;
  text-align: left
}

.button {
  max-width: 100%;
  min-height: 48px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere
}

footer {
  text-align: center;
  padding: 45px var(--page-gutter)
}

footer p {
  max-width: var(--reading-width);
  margin-inline: auto
}

footer a {
  display: inline-block;
  min-height: 44px;
  padding-block: 8px
}

.contact p,.contact h2 {
  max-width: 850px;
  margin-inline: auto
}

@media(min-width:701px) and (max-width:960px) {
  header {
    flex-direction: column;
    gap: 14px
  }

  .guide-spread,.team-intro,.staff-intro,.tradition-grid,.split,.members-layout,.ground-grid {
    grid-template-columns: minmax(0,1fr);
    max-width: 800px;
    margin-inline: auto
  }

  .guide-spread.reverse .guide-copy,.guide-spread.reverse .guide-photo {
    order: initial
  }

  .guide-photo {
    min-height: 280px;
    aspect-ratio: 16/9
  }

  .growth-grid,.grid {
    grid-template-columns: minmax(0,1fr);
    max-width: 720px;
    margin-inline: auto
  }

  .growth-card h3 {
    min-height: 0
  }

  .member-total {
    max-width: 220px;
    width: 100%;
    margin-inline: auto
  }

  .slogan {
    text-align: center
  }

}

@media(max-width:700px) {
  header {
    flex-direction: column;
    gap: 12px;
    padding: 18px var(--page-gutter)
  }

  header nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
    max-width: 420px;
    gap: 4px 12px;
    text-align: center;
    font-size: 12px
  }

  header nav a {
    justify-content: center;
    padding: 8px 4px
  }

  header nav a:last-child {
    padding-bottom: 8px
  }

  .hero {
    padding: 36px var(--page-gutter) 44px;
    gap: 26px;
    min-height: 0
  }

  .hero>.eyebrow {
    font-size: 10px;
    letter-spacing: 1.3px
  }

  .hero h1 {
    font-size: clamp(30px,8.5vw,48px)
  }

  .hero-photo {
    aspect-ratio: 4/3;
    min-height: 270px;
    padding: 28px 20px
  }

  .hero-photo strong {
    font-size: 26px
  }

  .hero-photo:before {
    height: 45px;
    width: 22px;
    right: 20px
  }

  .team-title {
    padding: 24px var(--page-gutter) 38px
  }

  .team-title h1,.guide-page .team-title h1 {
    font-size: clamp(32px,8.5vw,48px)
  }

  .team-page {
    --section-gap: 48px
  }

  .section-heading {
    gap: 12px;
    margin-bottom: 28px
  }

  .section-heading>span,.guide-page .section-heading>span {
    font-size: 32px
  }

  .section-heading h2,.guide-page .section-heading h2 {
    font-size: clamp(24px,6.5vw,30px)
  }

  .section-heading .eyebrow {
    font-size: 10px;
    letter-spacing: 2px
  }

  .section-nav {
    gap: 4px 8px
  }

  .section-nav a,.guide-page .section-nav a {
    font-size: 12px;
    padding: 10px 8px;
    flex: 1 1 130px
  }

  .guide-spread,.team-intro,.staff-intro,.tradition-grid,.split,.members-layout,.ground-grid,.growth-grid,.grid,.guide-gallery {
    grid-template-columns: minmax(0,1fr);
    gap: 28px
  }

  .guide-spread.reverse .guide-copy,.guide-spread.reverse .guide-photo {
    order: initial
  }

  .guide-copy p {
    font-size: 15px;
    line-height: 1.95
  }

  .guide-photo,.team-container>.team-photo,.guide-page .team-section>.guide-photo {
    aspect-ratio: auto;
    min-height: 230px;
    padding: 26px 20px
  }

  .team-photo strong,.guide-page .guide-photo strong {
    font-size: 23px
  }

  .photo {
    padding: 26px 20px;
    min-height: 230px
  }

  .slogan {
    text-align: center
  }

  .slogan>strong {
    font-size: 52px
  }

  .member-total {
    max-width: 220px;
    margin-inline: auto;
    width: 100%
  }

  .grade-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 16px
  }

  .growth-card h3 {
    min-height: 0
  }

  .season summary {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 22px
  }

  .season summary span {
    font-size: 11px
  }

  .season ul {
    padding-left: 22px
  }

  .team-next .button {
    width: 100%;
    max-width: 380px;
    padding: 16px
  }

  .wrap {
    padding-top: 48px;
    padding-bottom: 48px
  }

  .contact {
    padding: 48px var(--page-gutter)
  }

}

/* Native HTML disclosure: shared Team Guide navigation */ header {
  position: relative;
  z-index: 10;
  gap: 16px 28px
}

.site-menu {
  border: 0;
  padding: 0;
  margin: 0;
  flex-shrink: 0
}

.site-menu>summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 106px;
  min-height: 48px;
  padding: 10px 14px;
  background: #191919;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #191919
}

.site-menu>summary::-webkit-details-marker {
  display: none
}

.site-menu>summary:hover {
  background: #d3152c;
  border-color: #d3152c
}

.menu-icon {
  width: 22px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative
}

.menu-icon i {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor
}

.menu-close-label {
  display: none
}

.site-menu[open] .menu-open-label {
  display: none
}

.site-menu[open] .menu-close-label {
  display: inline
}

.site-menu[open] .menu-icon i:first-child {
  position: absolute;
  top: 9px;
  transform: rotate(45deg)
}

.site-menu[open] .menu-icon i:nth-child(2) {
  visibility: hidden
}

.site-menu[open] .menu-icon i:last-child {
  position: absolute;
  top: 9px;
  transform: rotate(-45deg)
}

.menu-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 36px max(var(--page-gutter),calc((100% - var(--content-width))/2)) 32px;
  background: #fff;
  border-top: 4px solid #d3152c;
  border-bottom: 1px solid #ccc;
  box-shadow: 0 16px 24px #0002;
  max-height: 75vh;
  max-height: 75dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #191919
}

.menu-heading {
  text-align: center;
  margin-bottom: 28px
}

.menu-heading .eyebrow {
  margin: 0 0 8px
}

.menu-heading h2 {
  font-size: 28px;
  margin: 0
}

header .menu-groups {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 32px;
  align-items: start;
  max-width: none;
  width: 100%;
  text-align: left
}

.menu-group {
  min-width: 0
}

.menu-group h3 {
  font-size: 16px;
  margin: 0 0 10px;
  border-bottom: 2px solid #d3152c;
  padding-bottom: 12px
}

.menu-group ul {
  list-style: none;
  padding: 0;
  margin: 0
}

header .menu-groups a,header .menu-groups a:last-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
  line-height: 1.65;
  text-align: left
}

.menu-group a span {
  flex-shrink: 0;
  color: #d3152c
}

.menu-group a[aria-current="page"] {
  color: #d3152c;
  font-weight: bold
}

.menu-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ddd;
  font-size: 14px
}

.menu-bottom>a:first-child {
  display: inline-flex;
  align-items: center;
  min-height: 44px
}

.menu-bottom .button {
  color: white;
  font-size: 13px
}

@media(min-width:701px) and (max-width:960px) {
  header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto
  }

  header>.brand {
    justify-self: start
  }

  header>nav {
    grid-row: 2;
    grid-column: 1/-1
  }

  header>.site-menu {
    grid-column: 2;
    grid-row: 1
  }

}

@media(max-width:700px) {
  header {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px;
    align-items: center
  }

  header>.brand {
    justify-self: start;
    min-width: 0;
    text-align: left
  }

  header>.brand img {
    width: 200px;
    max-width: 100%;
    margin-left: 0
  }

  header>.brand span {
    font-size: 9px;
    letter-spacing: 0
  }

  header>nav {
    display: none
  }

  .site-menu>summary {
    min-width: 52px;
    min-height: 56px;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    font-size: 10px;
    line-height: 1.2
  }

  .menu-icon {
    height: 17px;
    width: 20px
  }

  .menu-icon i {
    width: 20px
  }

  .site-menu[open] .menu-icon i:first-child,.site-menu[open] .menu-icon i:last-child {
    top: 8px
  }

  .menu-panel {
    padding: 26px var(--page-gutter);
    max-height: calc(100dvh - 110px)
  }

  .menu-heading h2 {
    font-size: 23px
  }

  header .menu-groups {
    grid-template-columns: minmax(0,1fr);
    gap: 26px
  }

  header .menu-groups a,header .menu-groups a:last-child {
    font-size: 14px;
    min-height: 48px;
    padding: 12px 0;
    justify-content: space-between
  }

  .menu-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px
  }

  .menu-bottom>a:first-child {
    justify-content: center
  }

}

.hero-location {
  display: block;
  font-size: clamp(15px,2vw,22px);
  font-weight: 700;
  line-height: 1.7;
  letter-spacing: .03em;
  margin-bottom: 22px
}

.local-guide>p {
  max-width: 760px
}

.local-guide .grid {
  margin-top: 38px
}

/* Friendly LINE invitation */ .line-invitation {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 10px 0 20px
}

.line-invitation h2 {
  font-size: clamp(25px,3.5vw,40px);
  line-height: 1.6;
  text-wrap: balance;
  margin: 20px 0 30px
}

.line-questions {
  max-width: 650px;
  margin: 0 auto 24px;
  border-left: 3px solid #d3152c;
  background: #f5f5f5;
  padding: 20px 24px
}

.line-questions p {
  margin: 0;
  line-height: 2;
  font-size: 16px;
  font-weight: 600
}

.line-welcome {
  font-size: 15px;
  line-height: 2;
  margin: 0 0 30px
}

.team-next .line-consult {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  width: auto;
  max-width: 100%;
  min-height: 60px;
  padding: 18px 32px
}

.line-instructions {
  max-width: 720px;
  margin: 20px auto 0;
  font-size: 12px;
  color: #666;
  line-height: 1.9
}

@media(max-width:700px) {
  .line-invitation h2 {
    font-size: 26px;
    margin: 16px 0 24px
  }

  .line-questions {
    padding: 18px 14px
  }

  .line-questions p {
    font-size: 14px
  }

  .line-welcome {
    font-size: 14px
  }

  .line-welcome br,.line-instructions br {
    display: none
  }

  .line-instructions {
    text-align: left;
    max-width: 380px
  }

  .team-next .line-consult {
    width: 100%;
    max-width: 380px;
    font-size: 14px;
    padding: 16px;
    gap: 14px
  }

  .line-invitation {
    padding-bottom: 8px
  }

}

/* Official LINE brand icon, original artwork with clear space */ .button.with-line-icon,.team-next .line-consult.with-line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: white;
  color: #191919;
  border: 2px solid #191919;
  padding: 10px 22px 10px 10px;
  max-width: 100%;
  text-align: left
}

.line-icon-space {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: white
}

.line-icon-space img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none
}

.line-button-label {
  min-width: 0;
  line-height: 1.6
}

.button.with-line-icon:hover {
  background: white;
  color: #d3152c;
  border-color: #d3152c
}

@media(max-width:700px) {
  .button.with-line-icon,.team-next .line-consult.with-line-icon {
    gap: 8px;
    padding: 8px 12px 8px 8px;
    font-size: 14px
  }

  .line-icon-space {
    flex-basis: 60px;
    width: 60px;
    height: 60px
  }

}

/* サブページのタイトル：パンくずなしの構成に合わせ、上下の余白をコンパクトに。 */
.team-page .team-title {
  padding-block: clamp(24px, 3vw, 40px) clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.team-page .team-title>.eyebrow {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 12px;
  text-align: center
}

.team-page .team-title>h1 {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 16px;
  text-align: center;
  align-self: center
}

.team-page .team-title>.title-caption {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  text-align: center
}

.team-page .team-title > p:last-child {
  margin-block: 0;
}

.team-page .guide-copy {
  text-align: left
}

@media(max-width:700px) {
  .team-page .team-title {
    padding-block: 20px 26px;
  }

  .team-page .team-title>.eyebrow {
    margin-bottom: 10px
  }

  .team-page .team-title>h1 {
    margin-bottom: 12px
  }

}

/* Primary navigation: common destinations first, full guide in disclosure */ .site-header {
  display: grid;
  grid-template-columns: 220px minmax(0,1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px max(var(--page-gutter),calc((100% - 1240px)/2))
}

.site-header>.brand {
  min-width: 0;
  justify-self: start
}

.site-header>.brand img {
  width: 220px;
  height: auto
}

.site-header>.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 18px;
  max-width: none;
  width: 100%;
  grid-column: auto;
  grid-row: auto
}

.site-header>.primary-nav a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
  border-bottom: 2px solid transparent;
  text-align: center
}

.site-header>.primary-nav a[aria-current="page"] {
  border-bottom-color: #d3152c;
  color: #d3152c;
  font-weight: bold
}

.site-header>.primary-nav a.nav-contact {
  border-bottom: 2px solid #d3152c;
  font-weight: bold;
  gap: 6px
}

.site-header>.site-menu {
  grid-column: auto;
  grid-row: auto;
  justify-self: end
}

.site-header>.site-menu>summary {
  min-width: 94px
}

@media(max-width:1199px) and (min-width:701px) {
  .site-header {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 14px 24px
  }

  .site-header>.brand {
    grid-column: 1;
    grid-row: 1
  }

  .site-header>.site-menu {
    grid-column: 2;
    grid-row: 1
  }

  .site-header>.primary-nav {
    grid-column: 1/-1;
    grid-row: 2;
    justify-content: center;
    border-top: 1px solid #eee;
    padding-top: 8px;
    gap: 6px 24px
  }

}

@media(max-width:700px) {
  .site-header {
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px 16px;
    padding: 16px var(--page-gutter) 12px
  }

  .site-header>.brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 220px
  }

  .site-header>.brand img {
    width: 200px
  }

  .site-header>.brand span {
    font-size: 9px
  }

  .site-header>.site-menu {
    grid-column: 2;
    grid-row: 1
  }

  .site-header>.site-menu>summary {
    min-width: 56px;
    min-height: 56px
  }

  .site-header>.primary-nav {
    display: grid;
    grid-column: 1/-1;
    grid-row: 2;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 0 12px;
    border-top: 1px solid #eee;
    padding-top: 8px
  }

  .site-header>.primary-nav a {
    min-width: 0;
    min-height: 44px;
    padding: 10px 5px;
    font-size: 12px;
    border-bottom: 1px solid #e5e5e5
  }

  .site-header>.primary-nav a.nav-contact {
    background: #191919;
    color: white;
    border: 0;
    padding: 10px 6px;
    margin-top: 3px;
    margin-bottom: 3px;
    min-height: 40px
  }

  .site-header>.primary-nav a[aria-current="page"] {
    background: #fff2f3;
    border-bottom: 2px solid #d3152c
  }

  .site-header .menu-panel {
    max-height: 65vh;
    max-height: 65dvh
  }

  .line-questions p {
    overflow-wrap: anywhere
  }

  .line-questions p br {
    display: none
  }

  .line-questions p {
    max-width: 32em;
    margin-inline: auto
  }

  .guide-page .section-nav {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 6px 10px
  }

  .guide-page .section-nav a {
    font-size: 12px;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1.6;
    padding: 10px 6px
  }

  .guide-page .section-nav a:only-child {
    grid-column: 1/-1
  }

  .team-page .season {
    padding: 16px 0
  }

  .team-page .season summary {
    min-height: 44px
  }

  .team-page .staff-table:before {
    content: '表は左右にスクロールできます';
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 10px
  }

}

@media(max-width:359px) {
  .site-header {
    gap: 12px;
    padding-inline: 16px
  }

  .site-header>.brand span {
    font-size: 8px
  }

  .site-header>.primary-nav {
    gap: 0 8px
  }

  .site-header>.primary-nav a {
    font-size: 11px
  }

  .team-page .team-title h1,.guide-page .team-title h1 {
    font-size: 30px
  }

}

/* 関連ページ：リンク列の下はフッターまでコンパクトに収める。 */
.related-pages {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px var(--page-gutter) 32px;
  text-align: center;
  border-top: 1px solid #ddd
}

.related-pages h2 {
  margin: 0;
  font-size: 24px
}

.related-pages>div {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0
}

.related-pages a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
  border-bottom: 2px solid #d3152c;
  text-decoration: none;
  font-size: 14px
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 40px;
  margin: 30px 0 60px
}

.directory-grid h2 {
  font-size: 24px;
  border-top: 3px solid #d3152c;
  padding-top: 20px
}

.directory-grid ul {
  list-style: none;
  padding: 0
}

.directory-grid a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #ddd
}

@media(max-width:700px) {
  .directory-grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .related-pages>div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px
  }

  .related-pages a {
    justify-content: center
  }

}

/* 共通スティッキーヘッダー。
   ページ内リンクはヘッダーの高さを見込んだ余白を確保します。 */
:root {
  --sticky-header-offset: 140px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
}

html {
  scroll-padding-top: var(--sticky-header-offset);
}

/* 開いたメニューが画面下まで伸びても、メニュー内だけでスクロール可能。 */
.site-header .menu-panel {
  max-height: calc(100vh - var(--sticky-header-offset));
  max-height: calc(100dvh - var(--sticky-header-offset));
  overflow-y: auto;
}

@media (min-width: 701px) and (max-width: 1199px) {
  :root {
    --sticky-header-offset: 200px;
  }

}

@media (max-width: 700px) {
  :root {
    --sticky-header-offset: 260px;
  }

}

/* 横向きなど高さの少ない画面ではロゴと開閉メニューを残し、
   常設リンクは同じ内容を持つハンバーガーメニューに集約します。 */
@media (max-height: 500px) {
  :root {
    --sticky-header-offset: 110px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-header > .primary-nav {
    display: none;
  }

  .site-header > .site-menu {
    grid-column: 2;
    grid-row: 1;
  }

}

/* ヘッダーのLINE導線は公式アイコンのみ。
   原色と周囲の余白を保ち、リンクの用途はaria-labelで伝えます。 */
.site-header > .primary-nav a.nav-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 12px;
  margin: 0;
  border: 0;
  background: #fff;
  flex-shrink: 0;
}

.site-header > .primary-nav a.nav-contact img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: none;
}

@media (max-width: 700px) {
  .site-header > .primary-nav a.nav-contact {
    grid-column: 1 / -1;
    justify-self: center;
  }

}

/* スマートフォンの固定ヘッダー。 */
.mobile-header-line {
  display: none;
}

@media (max-width: 700px) {
  :root {
    --sticky-header-offset: 110px;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) 56px 56px;
    gap: 8px;
    padding: 12px 16px;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 220px;
  }

  .site-header > .brand img {
    width: 200px;
    max-width: 100%;
    height: auto;
  }

  .site-header > .brand span {
    font-size: 9px;
    line-height: 1.6;
    margin-top: 6px;
    letter-spacing: 0;
  }

  .site-header > .primary-nav {
    display: none;
  }

  .site-header > .mobile-header-line {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 8px;
    background: #fff;
  }

  .mobile-header-line img {
    display: block;
    width: 40px;
    height: 40px;
    max-width: none;
  }

  .site-header > .site-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header > .site-menu > summary {
    min-width: 56px;
    width: 56px;
    min-height: 56px;
  }

  .site-header .menu-panel {
    max-height: calc(100vh - var(--sticky-header-offset));
    max-height: calc(100dvh - var(--sticky-header-offset));
  }

}

/* スマートフォンはアイコンのみ。PCのメニュー文字は維持。 */
@media (max-width: 700px) {
  .site-header > .site-menu > summary {
    padding: 12px;
    gap: 0;
    height: 56px;
    min-height: 56px;
    flex-direction: row;
  }

  .site-menu .menu-open-label,
  .site-menu .menu-close-label,
  .site-menu[open] .menu-close-label {
    display: none;
  }

}

/* ホーム写真の仮配置。顔や動作を切らないよう自然な縦横比を維持。 */
.hero .hero-photo.home-hero-image {
  display: block;
  padding: 0;
  min-height: 0;
  aspect-ratio: auto;
  background: none;
  border-bottom: 5px solid var(--red);
}

.hero .hero-photo.home-hero-image::before {
  display: none;
}

.home-hero-image img,
.home-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.home-photo {
  margin: 0;
  min-width: 0;
}

.home-trial-photo {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
}

.home-photo figcaption {
  padding: 12px 0;
  color: #666;
  font-size: 12px;
  text-align: center;
}

.home-action-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 36px;
}

.home-action-gallery figcaption {
  font-size: 16px;
  font-weight: bold;
  color: #191919;
}

@media (max-width: 700px) {
  .home-trial-photo {
    max-width: 360px;
  }

  .home-action-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

}

/* ホームの実写真だけに控えめな立体感を付与。
   ロゴ・LINEアイコン・写真予定枠には適用しません。
   影は写真領域に限定し、キャプションの背後には付けません。 */
.home-photo img {
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgb(25 25 25 / 6%),
    0 3px 8px rgb(25 25 25 / 4%),
    0 12px 26px -12px rgb(25 25 25 / 17%);
}

.hero .hero-photo.home-hero-image {
  border-bottom-width: 3px;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgb(25 25 25 / 5%),
    0 5px 12px rgb(25 25 25 / 4%),
    0 18px 36px -18px rgb(25 25 25 / 18%);
}

.home-hero-image img {
  border-radius: 3px 3px 0 0;
}

.home-photo figcaption {
  padding-top: 18px;
}

@media (max-width: 700px) {
  .home-photo img,
  .hero .hero-photo.home-hero-image {
    box-shadow:
      0 0 0 1px rgb(25 25 25 / 6%),
      0 8px 18px -10px rgb(25 25 25 / 18%);
  }

}

/* ホーム限定：小さな移動と短いフェード。JavaScriptは使用しません。
   アニメーション非対応時の通常状態は常に表示（opacity: 1）。 */
@keyframes home-intro-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

@keyframes home-scroll-fade {
  from {
    opacity: 0.08;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }

}

@media (prefers-reduced-motion: no-preference) {
  .home-page .hero-copy {
    animation: home-intro-fade 650ms ease-out both;
  }

  .home-page .home-hero-image {
    animation: home-intro-fade 750ms ease-out 120ms both;
  }

  /* 短い見出しでもフェードが一瞬で終わらないよう、entryの割合ではなく
     ビューポートを通過する全区間（cover）の35%までを使います。
     view(block 0px)でページ内リンク用scroll-paddingの影響を除外。 */
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 35%) {
    .home-page main section:not(.hero) h2,
    .home-page .home-photo,
    .home-page .card {
      animation-name: home-scroll-fade;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view(block 0px);
      animation-range: entry 0% cover 35%;
    }

    /* キーボードでリンクへ移動した場合は、すぐ読める状態を優先。 */
    .home-page .card:focus-within {
      animation: none;
      opacity: 1;
      transform: none;
    }

  }

}

/* 動きを抑えるOS設定を優先。内容は遅延なしで表示します。 */
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-copy,
  .home-page .home-hero-image,
  .home-page .home-photo,
  .home-page .card,
  .home-page main > section > h2,
  .home-page main > section > .eyebrow {
    animation: none;
    opacity: 1;
    transform: none;
  }

}

/* 印刷ではスクロール位置にかかわらずすべて表示。 */
@media print {
  .home-page .hero-copy,
  .home-page .home-hero-image,
  .home-page main section h2,
  .home-page .home-photo,
  .home-page .card {
    animation: none;
    opacity: 1;
    transform: none;
  }

}

/* キービジュアル：従来の見出し・説明・CTAを写真へ重ねる。
   コピーを通常フロー内に保ち、文字拡大時も高さが伸びる構成。 */
.home-page .hero-composed {
  padding-top: 32px;
  gap: 24px;
}

.hero-stage {
  --hero-button-width: 240px;
  --hero-button-height: 52px;
  --hero-button-font-size: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 3px;
  border-bottom: 3px solid var(--red);
  background: #282323;
  box-shadow: 0 14px 30px -18px rgb(25 25 25 / 24%);
}

.hero-stage .hero-picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 写真の明るさを残し、コピー周辺と下部だけ少し陰影を補う。 */
  background: linear-gradient(180deg, rgb(20 17 15 / 12%), rgb(20 17 15 / 26%) 50%, rgb(20 17 15 / 34%));
  pointer-events: none;
}

.home-page .hero-stage .hero-copy {
  align-self: center;
  max-width: none;
  width: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px;
  color: #f5f0e7;
  text-align: center;
}

/* 写真を暗くしすぎず、文字の輪郭を柔らかい影で支える。 */
.home-page .hero-stage h1,
.home-page .hero-stage .hero-description {
  text-shadow: 0 1px 3px rgb(20 17 15 / 55%), 0 3px 14px rgb(20 17 15 / 25%);
}

.home-page .hero-stage h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 5.8vw, 68px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #f5f0e7;
}

.home-page .hero-stage .hero-description {
  margin: 0 0 30px;
  max-width: 100%;
  padding: 10px 20px;
  border-radius: 2px;
  background: rgb(50 50 50 / 40%);
  font-size: clamp(14px, 1.8vw, 19px);
  line-height: 1.9;
  color: #fff;
}

.hero-stage .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-button-width);
  min-height: var(--hero-button-height);
  border: 1px solid #fff;
  border-radius: 2px;
  background: #c91029;
  color: #fff;
  padding: 12px 20px;
  font-size: var(--hero-button-font-size);
  line-height: 1.5;
}

.hero-stage .button:hover {
  background: #ab1025;
}

@media (max-width: 700px) {
  .hero-stage {
    --hero-button-width: 220px;
    --hero-button-height: 48px;
    --hero-button-font-size: 14px;
  }

  .home-page .hero-composed {
    padding-top: 24px;
    padding-inline: 16px;
    gap: 18px;
  }

  .home-page .hero-stage .hero-copy {
    min-height: 460px;
    padding: 32px 14px;
  }

  .home-page .hero-stage h1 {
    font-size: clamp(26px, 7vw, 46px);
    margin-bottom: 24px;
  }

  .home-page .hero-stage .hero-description {
    font-size: 13px;
    margin-bottom: 26px;
    padding: 8px 10px;
  }

  .hero-stage .hero-picture img {
    object-position: 58% center;
  }

}

/* 共通フッター：リンクの下にコピーライトを中央配置。 */
.site-footer {
  padding: 36px var(--page-gutter);
  background: #1b1919;
  border-top: 3px solid var(--red);
}

.footer-inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.footer-copyright {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #bcb5b5;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  color: #f5f0e7;
  font-size: 13px;
  text-decoration: none;
  border-bottom: 0;
}

.site-footer .instagram-link {
  width: 44px;
  padding: 0;
  border: 1px solid #666;
  border-radius: 50%;
}

.site-footer .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer .instagram-link:hover {
  background: #393333;
}

.site-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

}

/* 低学年練習の導入：番号付きの練習セクションとは分け、説明と写真をまとめる。 */
.practice-intro .team-section {
  padding-top: 36px;
  padding-bottom: 48px;
}

.practice-intro .guide-spread {
  align-items: center;
}

.practice-intro .guide-copy > .eyebrow {
  margin: 0 0 10px;
}

.practice-intro h2 {
  margin: 0 0 20px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.4;
  text-align: left;
}

@media (max-width: 700px) {
  .practice-intro .team-section {
    padding-top: 24px;
    padding-bottom: 32px;
  }

  .practice-intro .guide-spread {
    gap: 24px;
  }

}

/* 練習の補足：ステップ番号を使わず、淡い背景の囲みで伝える。 */
.practice-note .team-section {
  padding-block: 28px 40px;
}

.practice-note-panel {
  padding: clamp(22px, 4vw, 40px);
  background: #f5f3f3;
  border-radius: 4px;
  align-items: center;
}

.practice-note .practice-note-label {
  margin: 0 0 12px;
  color: #b20e25;
  font-size: 13px;
  font-weight: 700;
}

.practice-note h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.5;
  text-align: left;
}

@media (max-width: 700px) {
  .practice-note .team-section {
    padding-block: 16px 28px;
  }

  .practice-note-panel {
    gap: 24px;
    padding: 20px 16px;
  }

}

/* LINE案内の後は関連ページへ。重複リンクを除き、区切りまでの余白を整える。 */
.team-next.team-section {
  padding-bottom: 40px;
}

.team-next .line-invitation {
  padding-bottom: 0;
}

@media (max-width: 700px) {
  .team-next.team-section {
    padding-bottom: 28px;
  }

}

/* 過去のイベント情報の補足は日程の近くにまとめ、ページ上部に空白を残さない。 */
.guide-copy > .event-record-note {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-left: 2px solid #d3152c;
  background: #fff;
  color: #595353;
  font-size: 13px;
  line-height: 1.8;
}

/* 矢印なしのリンク：枠と背景で操作範囲を示し、文字を中央に収める。 */
.related-pages > div {
  gap: 12px;
  margin: 20px 0 0;
}

.related-pages a {
  justify-content: center;
  gap: 0;
  padding: 12px 20px;
  border: 1px solid #e0dada;
  border-bottom: 2px solid #d3152c;
  border-radius: 3px;
  background: #faf9f9;
  line-height: 1.6;
}

.related-pages > a {
  background: #fff;
  border: 1px solid #e0dada;
  text-decoration: underline;
}

.links {
  display: grid;
  gap: 8px;
}

.links a {
  justify-content: flex-start;
  gap: 0;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #ddd7d7;
  border-radius: 3px;
  background: #fff;
}

header .menu-groups a,
header .menu-groups a:last-child {
  justify-content: flex-start;
  gap: 0;
  padding: 12px 10px;
  background: #faf9f9;
}

.menu-group li + li {
  margin-top: 4px;
}

.menu-bottom > a:not(.button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #e0dada;
  border-radius: 3px;
  background: #faf9f9;
  text-decoration: underline;
}

.directory-grid a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px;
  text-decoration: underline;
}

.section-nav a {
  border: 1px solid #e0dada;
  border-radius: 3px;
  background: #faf9f9;
  line-height: 1.6;
}

/* マウスとキーボードのどちらでも対象が分かるようにする。 */
@media (hover: hover) {
  .related-pages a:hover,
  .links a:hover,
  header .menu-groups a:hover,
  .menu-bottom > a:not(.button):hover,
  .directory-grid a:hover,
  .section-nav a:hover {
    background: #fff0f2;
    color: #ae1027;
    text-decoration: underline;
  }

}

a:focus-visible {
  outline: 2px solid #d3152c;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .related-pages {
    padding-block: 24px;
  }

  .related-pages > div {
    gap: 10px;
    margin-block: 16px 0;
  }

  .related-pages a {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
  }

  .section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
  }

  .menu-bottom {
    gap: 12px;
  }

}

/* 共通SNS導線：LINE・Instagramを一組にし、メニューとの間隔を確保。 */
.site-header {
  grid-template-columns: 220px minmax(0, 1fr) auto auto;
  gap: 16px;
}

.site-header > .header-social {
  display: flex;
  align-items: center;
  gap: 4px;
  grid-column: 3;
  grid-row: 1;
}

.header-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 4px;
  color: #191919;
}

.header-social img {
  display: block;
  width: 32px;
  height: 32px;
  max-width: none;
}

.header-social svg {
  width: 26px;
  height: 26px;
}

.site-header > .site-menu {
  grid-column: 4;
  grid-row: 1;
}

@media (hover: hover) {
  .header-social a:hover {
    background: #f4f2f2;
  }

}

.site-footer {
  padding-block: 24px;
}

@media (min-width: 701px) and (max-width: 1199px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px 20px;
  }

  .site-header > .header-social {
    grid-column: 2;
  }

  .site-header > .site-menu {
    grid-column: 3;
  }

  .site-header > .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

}

@media (max-width: 700px), (max-height: 500px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto 44px;
    gap: 8px;
    padding: 12px;
  }

  .site-header > .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-header > .header-social {
    grid-column: 2;
    gap: 0;
  }

  .header-social a {
    width: 44px;
    height: 44px;
    padding: 7px;
  }

  .header-social img {
    width: 30px;
    height: 30px;
  }

  .header-social svg {
    width: 24px;
    height: 24px;
  }

  .site-header > .site-menu {
    grid-column: 3;
    grid-row: 1;
  }

  .site-header > .site-menu > summary {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 10px;
  }

  .site-header > .site-menu > summary .menu-open-label,
  .site-header > .site-menu > summary .menu-close-label {
    display: none;
  }

  .site-footer {
    padding-block: 20px;
  }

}

/* ホームの2つのカード群：赤い上線・中央の2行見出し・淡いホバー色を共通化。 */
.home-page .card {
  padding: 26px 22px;
  border-top: 2px solid #d3152c;
  background: #faf9f9;
  transition: background-color 180ms ease;
}

.home-page .card h3 {
  text-align: center;
  text-wrap: balance;
}

.home-page .card > a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-block: 10px;
}

.home-page .card:focus-within {
  background: #f6e9eb;
}

@media (hover: hover) {
  .home-page .card:hover {
    background: #f6e9eb;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-page .card {
    transition: none;
  }

}

/* 意味のまとまりで折り返し、単語が途中で分断されるのを防ぐ。 */
.home-page .card h3 {
  text-wrap: wrap;
  font-size: clamp(18px, 1.65vw, 21px);
  line-height: 1.6;
}

/* 3枚とも2行で揃え、説明文の開始位置を合わせる。 */
.home-page .heading-phrase {
  display: block;
  white-space: nowrap;
}

.home-page .card h3 {
  min-height: 3.2em;
  margin-block: 0 20px;
}

/* Team Guide削除後：地域案内と活動記録の間隔を調整。 */
.home-page .local-guide {
  padding-bottom: 36px;
}

.home-page .local-guide + #records {
  padding-top: 36px;
}

@media (max-width: 700px) {
  .home-page .local-guide {
    padding-bottom: 24px;
  }

  .home-page .local-guide + #records {
    padding-top: 24px;
  }

}

/* はじめての方向けカード：本文量にかかわらずリンクを下端に揃える。 */
.home-page .first-step .grid {
  align-items: stretch;
}

.home-page .first-step .card {
  display: flex;
  flex-direction: column;
}

.home-page .first-step .card > a {
  margin-top: auto;
  align-self: flex-start;
}

/* FAQの詳細リンク：装飾を抑えた下線付きテキスト。 */
.faq-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 16px;
}

.faq-detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: inherit;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (hover: hover) {
  .faq-detail-links a:hover {
    color: #d3152c;
  }

}

/* 入団案内の団費：月額と年額を分け、学年と金額を同じ行で比較できるようにする。 */
.fee-guide h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}

.fee-list {
  margin: 0 0 28px;
}

.fee-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #595353;
}

.fee-list dt {
  font-weight: 700;
}

.fee-list dd {
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.fee-list dd strong {
  font-size: clamp(24px, 3vw, 30px);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.fee-list dd span {
  margin-left: 6px;
  font-size: 13px;
  color: #ddd;
}

.fee-notes {
  padding: 16px 20px;
  background: #302b2b;
  border-left: 2px solid #d3152c;
}

.fee-notes p {
  margin: 0;
}

.fee-notes p + p {
  margin-top: 12px;
}

@media (max-width: 700px) {
  .fee-list > div {
    padding-block: 14px;
    gap: 8px;
  }

  .fee-notes {
    padding: 16px;
  }

}

/* 入会金は兄弟割引とは別の案内として表示する。 */
.fee-guide .fee-enrollment {
  margin: 20px 0 0;
}

/* 活動日時：学年・曜日・時間の順に読み取れる一覧。 */
.schedule-list {
  margin: 0;
}

.schedule-row {
  display: grid;
  grid-template-columns: 7em minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid #ddd7d7;
}

.schedule-row:first-child {
  padding-top: 0;
}

.schedule-row dt {
  font-weight: 700;
  line-height: 1.7;
}

.schedule-row dd {
  margin: 0;
  min-width: 0;
}

.schedule-guide .schedule-row p {
  margin: 0;
}

.schedule-guide .schedule-row .schedule-time {
  margin-top: 4px;
  font-size: clamp(23px, 2.6vw, 28px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.schedule-guide .schedule-row .schedule-detail {
  margin-top: 8px;
  font-size: 13px;
  color: #595353;
  line-height: 1.8;
}

.schedule-notes {
  margin-top: 24px;
  padding: 16px 20px;
  background: #f5f3f3;
  border-left: 2px solid #d3152c;
  font-size: 13px;
}

.schedule-notes p {
  margin: 0;
}

.schedule-notes p + p {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .schedule-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 20px;
  }

  .schedule-row dt {
    font-size: 18px;
  }

  .schedule-notes {
    padding: 16px;
  }

}

/* FAQ内の日時・料金：飾りを抑えた見出しと値の一覧。 */
.faq-facts {
  margin: 20px 0;
}

.faq-facts > div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd7d7;
}

.faq-facts dt {
  font-weight: 700;
}

.faq-facts dd {
  margin: 0;
}

.faq-facts small {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.8;
}

.fee-payment {
  margin-top: 20px;
  font-size: 13px;
  color: #ddd;
}

.fee-payment p {
  margin: 0;
}

.fee-payment p + p {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .faq-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

}

/* メイン写真のアートディレクション。小さな画面だけ縦長の配信用画像を使用。 */
.hero-stage > .hero-picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-stage .hero-picture img {
  z-index: auto;
}

@media (max-width: 480px) {
  .hero-stage .hero-picture img {
    object-position: center;
  }

}

/* サブページの写真は撮影指示と同じ3:2に統一。
   仮枠は説明文の長さに合わせて伸び、実写真は自然な比率で表示する。 */
.team-page .team-photo,
.guide-page .team-section > .guide-photo {
  aspect-ratio: 3 / 2;
  min-height: 0;
  padding: clamp(18px, 2.5vw, 30px);
}

.team-page .team-photo:has(> img) {
  padding: 0;
  display: block;
  aspect-ratio: auto;
}

.team-page .team-photo > img {
  display: block;
  width: 100%;
  height: auto;
}

/* ヘッダーロゴは高解像度版でも従来の表示幅を維持する。 */
.site-header > .brand img {
  max-width: min(100%, 240px);
  image-rendering: auto;
}

/* 高解像度ロゴ採用後のヘッダー寸法。画像の比率は保持し、操作アイコンは縮めない。 */
.site-header {
  align-items: center;
  padding-block: 16px;
}

.site-header > .brand {
  width: 220px;
  max-width: 100%;
}

.site-header > .brand img {
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 448;
}

.site-header > .brand span {
  margin-top: 6px;
  line-height: 1.5;
}

.header-social {
  flex-shrink: 0;
}

.header-social a,
.site-header .menu-icon {
  flex-shrink: 0;
}

@media (min-width: 701px) and (max-width: 1199px) {
  .site-header {
    padding-block: 14px;
    row-gap: 10px;
  }

}

@media (max-width: 700px), (max-height: 500px) {
  .site-header {
    min-height: 80px;
    padding: 10px 12px;
    column-gap: 8px;
    row-gap: 0;
  }

  .site-header > .brand {
    width: 200px;
    max-width: 100%;
  }

  .site-header > .brand span {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1.4;
    text-wrap: balance;
  }

  .site-header > .header-social {
    gap: 0;
  }

  .site-header > .site-menu > summary {
    padding: 9px;
    gap: 0;
  }

}

@media (max-width: 359px) {
  .site-header > .brand span {
    font-size: 8px;
  }

}

/* スマホの固定ヘッダーはロゴと操作アイコンだけに絞る。 */
@media (max-width: 700px) {
  .site-header > .brand span {
    display: none;
  }

  .site-header {
    min-height: 60px;
    padding-block: 8px;
  }

  :root {
    --sticky-header-offset: 76px;
  }

}

/* ページ内の縦余白：本文セクション／見出し／段落の3段階で管理。
   導入・練習の補足・関連リンクは、それぞれの役割に合わせた余白を維持する。 */
.home-page,
.team-page {
  --section-space: 80px;
  --heading-space: 40px;
  --paragraph-space: 20px;
}

.team-page {
  --section-gap: var(--section-space);
}

.home-page main > .wrap,
.home-page .first-step > .wrap {
  padding-block: var(--section-space);
}

/* 同じ白背景が連続する境界では、前のセクションの下余白だけを使う。
   背景色のあるセクションは上下の内側余白を確保する。 */
.home-page main > .wrap + .wrap,
.home-page .local-guide + #records {
  padding-top: 0;
}

.team-page > section:not(.team-shade):not(.tradition):not(.practice-intro):not(.practice-note)
  + section:not(.team-shade):not(.tradition):not(.practice-intro):not(.practice-note) > .team-section,
.team-page > section:not(.team-shade):not(.tradition):not(.practice-intro):not(.practice-note)
  + section.team-section {
  padding-top: 0;
}

.team-page > .team-intro {
  padding-block: var(--section-space);
}

/* 見出しを個別に記述したセクションも、番号付き見出しと同じ間隔にする。 */
.home-page .wrap > .eyebrow,
.home-page #about > div > .eyebrow,
.team-page .team-section > .eyebrow {
  margin-block: 0 12px;
}

.home-page .wrap > h2,
.home-page #about > div > h2,
.team-page .team-section > h2 {
  margin-block: 0 var(--heading-space);
}

.team-page .section-heading {
  margin-bottom: var(--heading-space);
}

.home-page .local-guide > p:not(.eyebrow) {
  margin-block: 0;
}

.home-page .local-guide .grid {
  margin-top: var(--heading-space);
}

/* ブロックの端に段落の既定マージンを残さず、写真との上下位置を揃える。 */
.guide-copy > p {
  margin-block: 0 var(--paragraph-space);
}

.guide-copy > :last-child,
.home-page .split > div > :last-child {
  margin-bottom: 0;
}

.home-page .split > div > :first-child {
  margin-top: 0;
}

.team-next .line-invitation {
  padding-top: 0;
}

.team-next .line-invitation > .eyebrow {
  margin-top: 0;
}

/* サイトマップのグループ見出しと一覧も、一定の間隔で配置する。 */
.team-page .directory-grid h2 {
  margin-block: 0 20px;
}

.team-page .directory-grid ul {
  margin-block: 0;
}

.team-page .directory-grid + section {
  margin-top: var(--heading-space);
}

@media (max-width: 700px) {
  .home-page,
  .team-page {
    --section-space: 48px;
    --heading-space: 28px;
    --paragraph-space: 20px;
  }

}

/* スマホの見出し：役割別のサイズを揃え、長文は意味の区切りで折り返す。
   spanはPCでは通常のインライン文字として扱う。 */
@media (max-width: 700px) {
  .home-page main,
  .team-page {
    --mobile-title-size: clamp(28px, 8vw, 36px);
    --mobile-heading-size: clamp(22px, 6vw, 26px);
    --mobile-subheading-size: 20px;
  }

  .team-page .team-title h1,
  .home-page .hero-composed h1 {
    font-size: var(--mobile-title-size);
    line-height: 1.5;
    letter-spacing: 0;
  }

  .home-page main h2,
  .team-page .section-heading h2,
  .team-page .team-section > h2,
  .team-page .practice-intro h2,
  .team-page .practice-note h2,
  .team-page .line-invitation h2 {
    font-size: var(--mobile-heading-size);
    line-height: 1.55;
    letter-spacing: 0;
    text-wrap: balance;
    line-break: strict;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .home-page main h3,
  .team-page h3,
  .team-page .directory-grid h2,
  .team-page .directory-grid + section h2,
  .team-page .related-pages h2 {
    font-size: var(--mobile-subheading-size);
    line-height: 1.6;
    text-wrap: balance;
    line-break: strict;
  }

  /* 2行構成のカードは維持し、320px幅でも長い行が収まるサイズにする。 */
  .home-page .card h3 {
    font-size: 18px;
    line-height: 1.6;
  }

  .mobile-heading-phrase {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    text-wrap: balance;
  }

}

/* 旧サイトから採用した実写真：元の比率を保ち、小さい画像を拡大しない。 */
.team-page .imported-photo {
  width: 100%;
  max-width: var(--photo-native-width);
  margin-inline: auto;
  background: transparent;
  border-bottom: 0;
  box-shadow: 0 4px 16px rgb(25 25 25 / 8%);
}

/* アルバムの縦写真は全身を切らず、PCでも大きくなりすぎない幅で配置。 */
.team-page .team-photo.album-portrait {
  max-width: 420px;
  align-self: center;
}

@media (max-width: 700px) {
  .team-page .team-photo.album-portrait {
    max-width: 360px;
  }

}

/* 写真05-07：元画像2152×1614の左下1850×914相当を表示。
   背景の看板・他グラウンドの人物、右端の大人を外した軽量画像を使用。 */
.team-page .team-photo.rest-photo:has(> img) {
  position: relative;
  aspect-ratio: 1850 / 914;
  overflow: hidden;
}

.team-page .team-photo.rest-photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 活動場所02-03：写真枠から地図へ。所在地と外部リンクは地図の下に表示。 */
.ground-map {
  width: 100%;
  margin: 0;
  border: 1px solid #e0dada;
  background: #fff;
}

.ground-map iframe {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

.ground-map figcaption {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.8;
}

.ground-map figcaption > strong,
.ground-map figcaption > span {
  display: block;
}

.ground-map a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  padding-block: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ground-map a:focus-visible {
  outline: 2px solid #d3152c;
  outline-offset: 4px;
}

.map-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px) {
  .ground-map iframe {
    height: 260px;
  }

  .ground-map figcaption {
    padding: 14px 16px;
  }

}

/* 写真10-01：元画像2312×3082の (900, 1280) から1250×1600を表示。
   手前の選手を中心に、同じ範囲を切り出した軽量画像を使用。 */
.team-page .team-photo.foreground-crop:has(> img) {
  position: relative;
  aspect-ratio: 1250 / 1600;
  overflow: hidden;
}

.team-page .team-photo.foreground-crop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 用品案内：名称と説明を一組にし、空白文字や強制改行での整列を避ける。 */
.equipment-page .equipment-list {
  margin: 24px 0 0;
  text-align: left;
}

.equipment-page .equipment-list > div {
  padding: 20px 0;
  border-bottom: 1px solid #ddd;
}

.equipment-page .equipment-list > div:first-child {
  padding-top: 0;
}

.equipment-page .equipment-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.equipment-page .equipment-list dt {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.equipment-page .equipment-list dd {
  margin: 0;
}

.equipment-page .equipment-list dd p {
  margin: 0 0 10px;
  line-height: 1.85;
}

.equipment-page .equipment-list dd p:last-child {
  margin-bottom: 0;
}

.equipment-page .equipment-list a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.equipment-page .equipment-points {
  margin: 20px 0;
  padding-left: 1.4em;
  text-align: left;
}

.equipment-page .equipment-points li {
  margin-bottom: 12px;
  line-height: 1.85;
}

.equipment-page .guide-spread {
  align-items: start;
}

.equipment-page .imported-photo figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .equipment-page .equipment-list {
    margin-top: 20px;
  }

  .equipment-page .equipment-list > div {
    padding-block: 16px;
  }

  .equipment-page .equipment-list dt {
    font-size: 17px;
  }

}

/* 次に読んでほしいページへの導線。赤い主ボタンと本文リンクの中間の強さ。 */
:is(.home-page, .staff-intro) a.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  min-width: 180px;
  max-width: 100%;
  padding: 12px 24px;
  border: 1px solid #191919;
  border-radius: 2px;
  background: #191919;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

/* 3列の導線はカード中央・下端で揃える。 */
.home-page .first-step .card > a.secondary-action {
  align-self: center;
  width: 180px;
}

@media (hover: hover) {
  :is(.home-page, .staff-intro) a.secondary-action:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }

}

:is(.home-page, .staff-intro) a.secondary-action:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

:is(.home-page, .staff-intro) a.secondary-action:active {
  background: var(--red);
  border-color: var(--red);
}

@media (max-width: 700px) {
  :is(.home-page, .staff-intro) a.secondary-action {
    width: 100%;
    min-width: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  :is(.home-page, .staff-intro) a.secondary-action {
    transition: none;
  }

}

/* ホームの紹介ボタン：本文の揃えは保ち、ボタンだけ中央に置く。 */
.home-page #about a.secondary-action {
  display: flex;
  width: 180px;
  margin-inline: auto;
}

/* 地域案内もカード下端と中央を揃える。長いラベルに合わせて幅を確保。 */
.home-page .local-guide .grid {
  align-items: stretch;
}

.home-page .local-guide .card {
  display: flex;
  flex-direction: column;
}

.home-page .local-guide .card > a.secondary-action {
  align-self: center;
  margin-top: auto;
  width: 280px;
  min-width: 0;
  padding-inline: 12px;
}

/* 黒いボタン周辺の余白：本文との間隔を確保し、autoで下端揃えを維持。 */
.home-page .first-step .card,
.home-page .local-guide .card {
  padding: 32px 24px;
}

.home-page .first-step .card > p,
.home-page .local-guide .card > p {
  margin-block: 0 32px;
}

.home-page #about a.secondary-action {
  margin-top: 32px;
}

@media (max-width: 700px) {
  .home-page .first-step .card,
  .home-page .local-guide .card {
    padding: 28px 22px;
  }

  .home-page .first-step .card > p,
  .home-page .local-guide .card > p {
    margin-bottom: 28px;
  }

  .home-page #about a.secondary-action {
    margin-top: 28px;
  }

  .home-page .first-step .grid,
  .home-page .local-guide .grid {
    row-gap: 24px;
  }

}

/* 友遊ボールの2枚：左の実画像の高さに右を合わせ、引き伸ばしや切り抜きを避ける。
   左1440:1376、右3:4なので、右の幅を列幅の71.6667%にする。 */
.team-page .friendly-moments > .team-photo {
  min-height: 0;
  align-self: start;
}

@media (min-width: 701px) {
  .team-page .friendly-moments > [data-photo-id="10-05"] {
    width: 71.666667%;
    max-width: none;
  }

}

/* 写真の上でも見つけやすい、活動予定のサブボタン。 */
.home-page .hero-copy .hero-schedule-link {
  margin: 18px 0 0;
}

.home-page .hero-schedule-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--hero-button-width);
  max-width: 100%;
  min-height: var(--hero-button-height);
  padding: 12px 20px;
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 2px;
  background: rgb(25 25 25 / 42%);
  color: #fff;
  font-size: var(--hero-button-font-size);
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

@media (hover: hover) {
  .home-page .hero-schedule-link a:hover {
    background: #fff;
    color: #191919;
    transform: translateY(-2px);
  }

}

.home-page .hero-schedule-link a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  background: #fff;
  color: #191919;
}

.home-page .hero-schedule-link a:active {
  background: #eee7dd;
  color: #191919;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-schedule-link a {
    transition: none;
    transform: none;
  }

  .home-page .hero-schedule-link a:hover {
    transform: none;
  }

}

/* 活動の記録：残した2つの外部リンクを横並びにする。 */
.home-page #records .records-link-note {
  margin-block: 0 16px;
}

.records-link-note span {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: #555;
}

.home-page #records .links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
}

.home-page #records .links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 52px;
  padding: 14px 12px;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .home-page #records .links {
    gap: 12px;
  }

  .home-page #records .links a {
    padding: 12px 8px;
    font-size: 14px;
  }

}

/* スタッフ一覧：必要なときだけ展開する。 */
.staff-disclosure {
  margin-top: 32px;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid #ddd;
}

.staff-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 18px 20px;
  background: #f7f6f6;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.staff-disclosure > summary::-webkit-details-marker {
  display: none;
}

.staff-disclosure > summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 24px;
  color: var(--red);
}

.staff-disclosure[open] > summary::after {
  content: '−';
}

.staff-disclosure > summary:hover {
  background: #f3e9eb;
}

.staff-disclosure > summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.staff-disclosure .staff-table {
  margin-bottom: 20px;
}

@media (max-width: 700px) {
  .staff-disclosure {
    margin-top: 24px;
  }

  .staff-disclosure > summary {
    padding: 16px 12px;
    font-size: 16px;
  }

}

/* 地図は左、メイン・サブの施設一覧は右にまとめる。 */
.ground-grid > .ground-map {
  align-self: start;
  width: 100%;
  min-width: 0;
}

.ground-directory {
  border-top: 3px solid var(--red);
  padding-top: 24px;
}

.ground-directory h3 {
  margin: 0 0 12px;
}

.ground-directory ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.ground-directory ul:last-child {
  margin-bottom: 0;
}

.ground-directory button {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  padding: 12px 8px;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 5px;
  line-height: 1.7;
}

.ground-directory button[aria-pressed="true"] {
  color: var(--red);
  font-weight: 700;
}

.ground-directory button:hover {
  background: #f3e9eb;
}

.ground-directory button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

#ground-map {
  scroll-margin-top: var(--sticky-header-offset, 100px);
}

@media (max-width: 700px) {
  .ground-directory {
    padding-top: 20px;
  }

  .ground-directory ul {
    margin-bottom: 24px;
  }

}

/* スタッフ紹介の導線もホームと同じボタンを使う。 */
.staff-intro a.secondary-action {
  display: flex;
  width: 180px;
  margin: 28px auto 0;
}

@media (max-width: 700px) {
  .staff-intro a.secondary-action {
    margin-top: 24px;
  }

}

/* 体験の導線は「予定確認 → LINE相談」の順にまとめる。 */
.home-page .trial-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
}

.home-page .trial-actions > a {
  margin: 0;
}

@media (max-width: 700px) {
  .home-page .trial-actions {
    margin-top: 24px;
  }

  .home-page .trial-actions > a {
    width: 100%;
    max-width: 360px;
  }

}

/* PCの体験案内：ボタン群と前後の文章にゆとりを持たせる。 */
@media (min-width: 701px) {
  .home-page .trial-actions {
    margin-top: 40px;
    margin-bottom: 32px;
    gap: 20px;
  }

}

/* ヒーロー写真のクロスフェード。コピーとCTAの位置は固定する。 */
.hero-stage > .hero-picture {
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.hero-stage > .hero-picture.is-current {
  opacity: 1;
}

/* 追加写真：狭い画面でも選手のまとまりが見える位置に合わせる。 */
.hero-stage .hero-slide-group img {
  object-position: 80% 55%;
}

.hero-stage .hero-slide-greeting img {
  object-position: 70% 70%;
}

.hero-stage .hero-slide-celebration img {
  object-position: center 62%;
}

.hero-slideshow-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 44px;
  padding: 0;
  width: 44px;
  height: 44px;
  line-height: 1;
  border: 1px solid rgb(255 255 255 / 65%);
  border-radius: 2px;
  background: rgb(25 25 25 / 60%);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

.hero-slideshow-toggle[hidden] {
  display: none;
}

.hero-slideshow-toggle:hover {
  background: #191919;
}

.hero-slideshow-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .home-page .hero-stage .hero-copy {
    padding-bottom: 68px;
  }

  .hero-stage .hero-slide-running img {
    object-position: 52% center;
  }

}

@media (prefers-reduced-motion: reduce) {
  .hero-stage > .hero-picture {
    transition: none;
  }

}

/* 04-06：左の余白を約24%詰め、選手3人と足元を残す。同じ表示範囲の軽量画像を使用。元画像は保存。 */
.team-page .team-photo.coaching-team-crop:has(> img) {
  aspect-ratio: 3524 / 3082;
  overflow: hidden;
  position: relative;
}
.team-page .team-photo.coaching-team-crop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 03-04：ミットを含めて右側（x=1700,y=300）を表示。背景の写り込みは了承済み。 */
.team-page .team-photo.catcher-umpire-crop:has(> img) {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2923 / 2782;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  align-self: start;
}
.team-page .team-photo.catcher-umpire-crop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* External-link motif supplied by the user; inherits link and hover colors. */
a .external-link-icon {
  margin-inline-start: .25em;
  display: inline-block;
  width: .9em;
  height: .9em;
  vertical-align: -.08em;
  flex-shrink: 0;
  color: inherit;
  overflow: visible;
}

/* Photo 08-05: display the left-hand equipment rack without stretching. */
.team-page .team-photo.equipment-bats-crop:has(> img) {
  position: relative;
  overflow: hidden;
  aspect-ratio: 710 / 1090;
  width: 100%;
  max-width: 350px;
  margin-inline: auto;
  align-self: center;
}
.team-page .team-photo.equipment-bats-crop > img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Home team photo: preserve the landscape composition without upscaling. */
.home-group-photo {
  width: 100%;
  max-width: 568px;
  margin-inline: auto;
}
.home-group-photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Season record photos: keep faces clear by placing the caption over the sky. */
.season-photo {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 28px auto 0;
  overflow: hidden;
}
.season-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.season-photo figcaption {
  position: absolute;
  inset: 0 0 auto;
  padding: 20px 24px 40px;
  color: #fff;
  background: linear-gradient(to bottom, rgb(0 0 0 / 80%), rgb(0 0 0 / 48%) 65%, transparent);
  font-size: clamp(14px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}
.season-photo figcaption strong { white-space: nowrap; }
@media (max-width: 700px) {
  .season-photo { margin-top: 20px; }
  .season-photo figcaption { padding: 12px 14px 28px; }
}
