@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-soft: #f7f8fa;
  --color-text: #11114d;
  --color-text-strong: #333333;
  --color-muted: #4a5577;
  --color-line: #d9dfe8;
  --color-accent: #ecce63;
  --color-accent-soft: rgba(236, 206, 99, 0.25);
  --color-navy: #11114d;
  --shadow-card: 0 18px 40px rgba(41, 51, 85, 0.09);
  --shadow-soft: 0 10px 24px rgba(41, 51, 85, 0.08);
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
  --container: min(1120px, calc(100% - 40px));
  --font-body: "Noto Sans JP", sans-serif;
  --font-display: "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--color-text);
  font-family: var(--font-body);
  font-optical-sizing: auto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(236, 206, 99, 0.2), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}

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

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(236, 206, 99, 0.72);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(41, 51, 85, 0.08);
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.92);
}

.site-header__inner,
.site-footer__inner,
.section-shell,
.page-shell {
  width: var(--container);
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand__name {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.95rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
}

.brand__name::after {
  content: "“TSUNAGU” Sports Project";
  margin-top: 6px;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  position: relative;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--color-muted);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.24s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-navy);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle span {
  margin-top: 6px;
  margin-bottom: 6px;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-8px) rotate(-45deg);
}

main {
  display: block;
  flex: 1 0 auto;
}

.section,
.page-section {
  padding: 64px 0;
}

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

.section-heading--center {
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-navy);
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-copy,
.page-copy,
.page-intro,
.card-meta,
.article-summary,
.article-body,
.member-copy,
.contact-copy,
.contact-note {
  font-size: 16px;
  color: var(--color-text-strong);
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero--center {
  text-align: center;
}

.page-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-navy);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 4.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-copy,
.page-intro {
  max-width: 760px;
  margin-top: 18px;
}

.page-hero--center .page-copy,
.page-hero--center .page-intro {
  margin-left: auto;
  margin-right: auto;
}

.page-intro--brand {
  line-height: 2;
}

.home-hero {
  padding: 0 0 40px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  width: 100%;
  background:
    linear-gradient(118deg, rgba(41, 51, 85, 0.88), rgba(255, 255, 255, 0.1)),
    url("../images/hero-rugby-coach.png") center center / cover no-repeat;
  box-shadow: var(--shadow-card);
  color: #fff;
}

.hero-shell {
  width: var(--container);
  min-height: inherit;
  margin: 0 auto;
  padding: 56px 0;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-logo {
  width: clamp(110px, 15vw, 160px);
  margin-bottom: 24px;
}

.hero-name {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6vw, 4.9rem);
  line-height: 1;
  letter-spacing: 0.06em;
}

.hero-subtitle {
  display: block;
  margin-bottom: 16px;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 700;
}

.hero-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
}

.cards-grid {
  display: grid;
  gap: 24px;
}

.cards-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-link,
.news-link {
  display: block;
}

.card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card-link:hover .card,
.news-link:hover .news-row {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image img,
.split-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.45;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.split-media {
  display: flex;
  align-self: stretch;
  overflow: hidden;
  min-height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.split-copy {
  padding: 8px 0;
}

.lead-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1.6;
}

.about-lead {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.9;
  color: var(--color-navy);
  font-weight: 700;
}

.about-lead--offset {
  margin-top: 1.2em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.action-row--center {
  justify-content: center;
}

.button,
.button-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  background: var(--color-accent);
  color: var(--color-navy);
  box-shadow: 0 12px 24px rgba(41, 51, 85, 0.12);
  font-weight: 800;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.button:hover,
.button-subtle:hover {
  transform: translateY(-2px);
}

.news-list {
  display: grid;
  gap: 16px;
}

.news-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.news-date {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
}

.news-text {
  font-size: 1.05rem;
  font-weight: 700;
}

.support-banner {
  display: flex;
  justify-content: center;
}

.support-banner a {
  width: min(400px, 100%);
  display: block;
  padding: 2.5% 5%;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-line);
}

.support-banner img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.sns-link {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-soft);
  color: var(--color-navy);
}

.sns-link svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.article-layout {
  display: grid;
  gap: 28px;
}

.article-panel,
.member-card,
.about-block,
.contact-simple {
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.article-panel--event {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article-panel--event .article-body {
  flex: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 0;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.article-body {
}

.article-body > :first-child {
  margin-top: 0 !important;
}

.article-body > :last-child {
  margin-bottom: 0 !important;
}

.article-body img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.article-body h2.wp-block-heading {
  margin: 1em 0 0.45em;
  font-size: 1.84rem;
  line-height: 1.35;
  color: var(--color-navy);
}

.article-body h3.wp-block-heading {
  margin: 1em 0 0.45em;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--color-navy);
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.info-row dt {
  font-weight: 800;
  color: var(--color-navy);
}

.info-row dd {
  margin: 0;
  color: var(--color-text-strong);
}

.back-row {
  margin-top: 80px;
  text-align: center;
}

.intro-stack {
  display: grid;
  gap: 18px;
}

.brand-block {
  text-align: center;
}

.brand-block img {
  width: min(100%, 480px);
  margin: 0 auto 24px;
}

.brand-block__name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: 0.08em;
}

.brand-block__subtitle {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}

.about-block h2,
.about-block h3 {
  margin-top: 0;
}

.about-block h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
}

.about-block h3.about-block__section-title {
  margin-top: 40px;
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-text-strong);
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.member-role {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.member-name {
  margin: 0;
  font-size: 1.3rem;
}

.member-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.member-details {
  display: grid;
  gap: 6px;
}

.member-copy {
  margin: 0;
}

.member-card {
  display: grid;
  gap: 12px;
}

.event-cta-row {
  margin-top: auto;
  justify-content: center;
}

.button--event-cta {
  min-height: 64px;
  padding: 0 40px;
  font-size: 1.12rem;
  letter-spacing: 0.03em;
}

.note-text {
  margin-top: 20px;
  color: var(--color-text-strong);
  font-size: 16px;
}

.note-text--spaced {
  margin-top: 40px;
}

.contact-simple {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.contact-simple p {
  margin: 0 0 18px;
}

.contact-break {
  display: inline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  min-width: 48px;
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-line);
  color: var(--color-navy);
  font-weight: 700;
}

.pagination a[aria-current="page"],
.pagination span[aria-current="page"],
.pagination span.current {
  background: var(--color-accent);
}

.site-footer {
  margin-top: 72px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--color-line);
  background: rgba(255, 255, 255, 0.9);
}

.site-footer__inner {
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 84px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .site-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    padding: 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--color-line);
    box-shadow: var(--shadow-card);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .split-panel,
  .cards-grid--two,
  .member-grid,
  .news-row,
  .info-row {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 560px;
  }

  .hero-shell {
    padding: 38px 0;
  }

  .news-row,
  .info-row {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 24px, 960px);
  }

  .site-header__inner {
    gap: 12px;
  }

  .brand img {
    width: 52px;
    height: 52px;
  }

  .brand__name {
    font-size: 1.35rem;
  }

  .brand__name::after {
    font-size: 0.46em;
  }

  .section,
  .page-section {
    padding: 48px 0;
  }

  .page-hero {
    padding-top: 40px;
  }

  .hero-panel {
    min-height: 500px;
  }

  .hero-shell {
    padding: 24px 0;
  }

  .card-body,
  .article-panel,
  .member-card,
  .about-block,
  .contact-simple {
    padding: 22px;
  }

  .member-head {
    gap: 8px;
  }

  .contact-simple {
    text-align: left;
  }

  .contact-break {
    display: none;
  }

  .button--event-cta {
    width: 100%;
    padding: 0 24px;
  }

  .support-banner a {
    padding: 8%;
  }
}
