/* =========================
   Base
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #050505;
  color: #f5f5f5;
  font-family: Arial, "Helvetica Neue", sans-serif;
  line-height: 1.7;
}

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

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

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

p {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3 {
  margin: 0 0 1.2rem;
  line-height: 1.3;
}

h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
}

.container {
  width: min(1120px, calc(100% - 64px));
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

/* =========================
   Header
========================= */

.site-header {
  width: 100%;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  width: 170px;
  height: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav a {
  opacity: 0.95;
}

.site-nav a:hover {
  color: #ff7a1a;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 88px);
  min-height: 600px;
  max-height: 760px;
  overflow: hidden;
  background: #000;
}

.hero .swiper,
.hero .swiper-wrapper,
.hero .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.88;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)),
    linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.hero-text {
  position: absolute;
  left: 6%;
  top: 77%;
  transform: translateY(-50%);
  z-index: 2;
  transition:
    left 0.6s ease,
    right 0.6s ease,
    top 0.6s ease,
    bottom 0.6s ease,
    transform 0.6s ease,
    text-align 0.6s ease;
}

.hero-text h1 {
  margin-bottom: 20px;
  color: #fff;
}

.hero-text p {
  display: inline-block;
  margin: 0;
  padding: 14px 28px;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  font-size: clamp(1rem, 2.4vw, 1.7rem);
  font-weight: 800;
  transform: skew(-8deg);
  text-align: left;
}

.hero-text p span {
  display: inline-block;
  transform: skew(8deg);
}


/* 2枚目：左下 */
.hero-text.hero-text-left-bottom {
  left: 5%;
  right: auto;
  top: auto;
  bottom: 35px;
  transform: none;
  text-align: left;
}

/* 3枚目：右下 */
.hero-text.hero-text-right-bottom {
  left: auto;
  right: 6%;
  top: auto;
  bottom: 55px;
  transform: none;
  text-align: right;
}

.hero-text.hero-text-right-bottom p {
  text-align: left;
}

/* =========================
   Intro
========================= */

.intro-section {
  padding-top: 70px;
  padding-bottom: 40px;
  text-align: center;
}

.intro-section h2 {
  max-width: 1150px;
  margin: 0 auto 32px;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro-section p {
  max-width: 760px;
  margin: 0 auto;
  color: #ddd;
  font-size: 1.05rem;
}

/* =========================
   Section Heading Row
========================= */

.section-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 34px;
}

.section-heading-row .section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}

.section-heading-row .section-subtitle {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
  color: #fff;
}

/* =========================
   Achievements
========================= */

.achievements-section {
  padding-top: 60px;
}

.achievement-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin: 32px 0 46px;
}

.achievement-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.achievement-content-strong {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 44px;
  margin-top: 46px;
}

.achievement-main-card {
  padding: 26px 28px;
  border-left: 7px solid #ff7a1a;
  background: rgba(255, 255, 255, 0.08);
}

.achievement-label {
  margin: 0 0 6px;
  font-size: 0.85rem;
  font-weight: 900;
  color: #ffb15c;
  letter-spacing: 0.04em;
}

.achievement-big {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 950;
  line-height: 1.1;
  color: #fff;
}

.achievement-years {
  margin: 8px 0 0;
  font-size: 1.1rem;
  font-weight: 900;
  color: #e6e6e6;
}

.achievement-summary-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.achievement-summary-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.achievement-summary-list span {
  color: #ffb15c;
  font-size: 1rem;
  font-weight: 950;
}

.achievement-summary-list strong {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 950;
}

.achievement-button {
  justify-self: end;
}

/* =========================
   Buttons
========================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 230px;
  padding: 18px 32px;
  background: #3f56b3;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button::after {
  content: "→";
  margin-left: 0.6em;
}

.button:hover {
  background: #4c64c8;
  transform: translateY(-2px);
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 160px;
  margin-top: 70px;
}

.contact-submit::after {
  content: none;
}

/* =========================
   Two Column Sections
========================= */

.two-column {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 80px;
}

.text-content p {
  color: #e6e6e6;
  font-size: 1.05rem;
}

.text-content .button {
  margin-top: 30px;
  float: right;
}

/* =========================
   About Preview
========================= */

.about-preview {
  padding-top: 80px;
}

.school-logos {
  display: flex;
  gap: 28px;
  align-items: center;
}

.school-logos img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

/* =========================
   Competition Preview
========================= */

.competition-preview {
  padding-top: 60px;
}

.rescue-image {
  width: 220px;
  background: #fff;
}

/* =========================
   Support Preview
========================= */

.support-preview {
  padding-top: 80px;
  padding-bottom: 120px;
}

.support-preview p {
  max-width: 760px;
  margin: 40px auto 0;
  color: #e6e6e6;
}

/* =========================
   Footer
========================= */

.site-footer {
  padding: 70px 20px 55px;
  text-align: center;
  background: #050505;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  font-size: 0.95rem;
  font-weight: 900;
}

.footer-nav a:hover {
  color: #ff7a1a;
}

.footer-logo {
  width: 220px;
  margin: 0 auto 28px;
}

.footer-contact {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: underline;
}

.copyright {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

/* =========================
   Page Common
========================= */

.page-main {
  background: #080808;
}

.page-section {
  padding: 58px 0 120px;
}

.page-container {
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
}

.page-kicker {
  margin: 0 0 28px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.page-title {
  margin-bottom: 28px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

/* =========================
   About Page
========================= */

.about-main-photo {
  position: relative;
  margin-bottom: 42px;
}

.about-main-photo img {
  width: 100%;
  aspect-ratio: 16 / 9.5;
  object-fit: cover;
}

.photo-label {
  position: absolute;
  top: 18px;
  right: 20px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.about-team-title {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.about-team-title span {
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  color: #d8d8d8;
}

.about-intro {
  margin-bottom: 48px;
}

.about-page .lead-text {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 950;
  line-height: 1.45;
  margin-bottom: 28px;
}

.about-intro p,
.about-block p {
  color: #e5e5e5;
  font-size: 0.98rem;
}

.about-block {
  margin-top: 42px;
}

.about-block h2 {
  margin-bottom: 18px;
  font-size: 1rem;
  font-weight: 900;
}

.about-affiliations {
  margin: 34px 0 52px;
}

.about-affiliations-label {
  margin: 0 0 14px;
  color: #cfcfcf;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-affiliation-logos {
  display: flex;
  align-items: center;
  gap: 22px;
}

.about-affiliation-logos li {
  width: 92px;
  height: 92px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-affiliation-logos img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.values-list div {
  padding: 22px;
  background: #151515;
  border-left: 4px solid #ff7a1a;
}

.values-list h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 950;
}

.values-list p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

/* =========================
   Member Cards
========================= */

.members-section {
  margin-top: 76px;
  text-align: center;
}

.members-section .section-heading-row {
  justify-content: center;
  text-align: center;
}

.members-grid {
  width: min(620px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 74px 86px;
  justify-items: center;
}

.member-card {
  text-align: center;
}

.member-card img {
  width: clamp(170px, 18vw, 220px);
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 10%;
  margin: 0 auto 20px;
}

.member-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 950;
}

.member-name-ja {
  margin: 0 0 18px;
  font-size: 0.9rem;
  font-weight: 900;
}

.member-role {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.8;
  color: #fff;
}

/* =========================
   Past Members
========================= */

.past-members-section {
  margin-top: 95px;
  text-align: center;
}

.past-members-section .section-heading-row {
  justify-content: center;
  text-align: center;
}

.past-members-grid {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 86px;
  justify-items: center;
}

.past-member-card {
  text-align: center;
}

.past-member-card img {
  width: clamp(150px, 15vw, 190px);
  aspect-ratio: 1 / 1;
  height: auto;
  margin: 0 auto 12px;
  object-fit: cover;
}

.past-member-card h3 {
  margin: 0 0 4px;
  font-size: 0.9rem;
  font-weight: 500;
}

.past-member-card p {
  margin: 0;
  font-size: 0.72rem;
  color: #ddd;
}

.past-member-card:nth-child(1) img {
  object-position: center 8%;
}

.past-member-card:nth-child(2) img {
  object-position: center 18%;
}

/* =========================
   Competitions Page
========================= */

.competition-container {
  width: min(980px, calc(100% - 64px));
}

.competition-block {
  margin-top: 64px;
}

.competition-block h2,
.gallery-heading h2 {
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.competition-block p {
  color: #e6e6e6;
  font-size: 0.98rem;
}

.competition-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  margin-top: 34px;
}

.competition-info-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.competition-info-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.25;
}

.competition-logo-card {
  width: 100%;
  min-height: 190px;
  padding: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competition-logo-card img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.competition-logo-card a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competition-logo-card a:hover {
  opacity: 0.85;
}

.competition-info-card p {
  margin: 0;
  color: #e6e6e6;
  font-size: 0.98rem;
  line-height: 1.9;
}

/* =========================
   Competition Gallery
========================= */

.gallery-section {
  margin-top: 72px;
  overflow: hidden;
}

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

.gallery-controls,
.gallery-button {
  display: none;
}

.gallery-wrapper {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: max-content;
  will-change: transform;
  animation-name: fatenGalleryLoop;
  animation-duration: var(--gallery-duration, 100s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.gallery-section:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 clamp(280px, 28vw, 380px);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-item figcaption {
  display: none;
}

@keyframes fatenGalleryLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-1 * var(--gallery-scroll-distance, 0px)));
  }
}

/* =========================
   Results
========================= */

.results-section {
  margin-top: 76px;
}

.results-highlight-card {
  margin: 34px 0 48px;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 7px solid #ff7a1a;
  width: min(460px, 100%);
}

.results-highlight-label {
  margin: 0 0 8px;
  color: #ffb15c;
  font-size: 0.95rem;
  font-weight: 950;
}

.results-highlight-main {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 950;
  line-height: 1.05;
}

.results-highlight-years {
  margin: 10px 0 0;
  color: #e6e6e6;
  font-size: 1.1rem;
  font-weight: 900;
}

.results-list {
  margin-top: 34px;
  display: grid;
  gap: 28px;
}

.result-year-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 34px;
  padding: 28px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.result-year-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 32px;
  width: 6px;
  background: #ff7a1a;
}

.result-year {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: #ff9a3d;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 950;
  padding-left: 24px;
}

.result-items {
  padding-top: 4px;
}

.result-items p {
  margin: 0 0 22px;
}

.result-items p:last-child {
  margin-bottom: 0;
}

.result-items strong {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 950;
}

/* =========================
   Media
========================= */

.media-links {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.media-links a,
.media-link-disabled {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.7;
}

.media-links a {
  text-decoration: underline;
}

.media-links a:visited {
  color: #fff;
}

.media-links a:hover {
  color: #ff7a1a;
}

.media-link-disabled {
  text-decoration: none;
  opacity: 0.9;
}

.media-link-disabled small {
  display: inline-block;
  margin-left: 10px;
  color: #cfcfcf;
  font-size: 0.85rem;
  font-weight: 900;
}

/* =========================
   Partners Page
========================= */

.partners-container {
  width: min(980px, calc(100% - 64px));
}

.partners-title {
  margin-top: 20px;
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: -0.03em;
  max-width: 1100px;
}

.partners-subtitle {
  margin-bottom: 64px;
  color: #e6e6e6;
  font-size: 1rem;
  font-weight: 800;
}

.partners-logo-section {
  margin-top: 64px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}

.partner-card {
  height: 96px;
  padding: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card a {
  width: 100%;
  height: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-card img {
  max-width: 100%;
  max-height: 62px;
  object-fit: contain;
}

.partner-card a:hover {
  opacity: 0.82;
}

.partners-message {
  margin-top: 86px;
}

.partners-message h2 {
  margin-bottom: 24px;
}

.partners-message p {
  max-width: 780px;
  color: #e6e6e6;
  font-size: 1rem;
}

.partners-button {
  margin-top: 36px;
}

/* =========================
   Support Page
========================= */

.support-container {
  width: min(920px, calc(100% - 64px));
}

.support-title {
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.support-lead {
  max-width: 780px;
  color: #e6e6e6;
  font-size: 1rem;
  font-weight: 600;
}

.support-box {
  margin-top: 58px;
  padding: 34px 38px;
  background: #151515;
  border-left: 7px solid #f97316;
  display: grid;
  gap: 36px;
}

.support-box-block h2 {
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 950;
}

.support-box ul {
  list-style: disc;
  padding-left: 1.3rem;
}

.support-box li {
  margin-bottom: 0.55rem;
  color: #f2f2f2;
  font-size: 0.98rem;
}

.campfire-section {
  margin-top: 80px;
}

.campfire-section h2,
.support-contact-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 950;
}

.campfire-section p,
.support-contact-section p {
  max-width: 760px;
  color: #e6e6e6;
  font-size: 1rem;
}

.campfire-card {
  width: min(320px, 100%);
  min-height: 110px;
  padding: 18px 28px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.campfire-card img {
  width: 190px;
  max-width: 85%;
  max-height: 70px;
  object-fit: contain;
}

.campfire-action-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 34px;
  margin-bottom: 34px;
}

.campfire-action-row .campfire-card {
  width: 360px;
  min-height: 120px;
  margin: 0;
  padding: 22px 34px;
}

.campfire-action-row .campfire-card img {
  width: 230px;
  max-width: 90%;
  max-height: 76px;
}

.campfire-action-row .support-main-button {
  margin: 0;
  min-width: 300px;
  height: 70px;
}

.support-main-button {
  margin-top: 0;
}

.support-contact-section {
  margin-top: 86px;
}

.support-contact-section .button {
  margin-top: 28px;
}

/* =========================
   Contact Page
========================= */

.contact-container {
  width: min(820px, calc(100% - 64px));
}

.contact-title {
  margin-top: 20px;
  margin-bottom: 28px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.contact-lead {
  max-width: 720px;
  color: #e6e6e6;
  font-size: 1rem;
  font-weight: 600;
}

.contact-form {
  margin-top: 58px;
  width: 100%;
}

.form-fieldset {
  margin: 0 0 38px;
  padding: 0;
  border: none;
}

.form-fieldset legend,
.form-group label {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 900;
}

.form-fieldset legend span,
.form-group label span {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #3f56b3;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.form-group label small {
  display: inline-block;
  margin-left: 8px;
  color: #cfcfcf;
  font-size: 0.78rem;
  font-weight: 800;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #e8e8e8;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  accent-color: #3f56b3;
}

.form-group {
  margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 16px;
  border: none;
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 1rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 3px solid #3f56b3;
}

.form-group textarea {
  resize: vertical;
  min-height: 180px;
}

.contact-submit {
  margin-top: 26px;
  border: none;
  cursor: pointer;
}

.contact-direct {
  margin-top: 72px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-direct p {
  margin-bottom: 10px;
  color: #e6e6e6;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-direct a {
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: underline;
}

.contact-direct a:hover {
  color: #ff7a1a;
}

/* =========================
   Responsive
========================= */

@media (max-width: 900px) {
  .header-inner {
    width: min(100% - 32px, 1180px);
    height: 76px;
  }

  .site-logo {
    width: 145px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #000;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.active {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-nav a {
    display: block;
    padding: 14px 0;
    width: 100%;
    text-align: center;
  }

  .container {
    width: min(100% - 32px, 1120px);
  }

  .section {
    padding: 52px 0;
  }

  .hero,
  .hero-image {
    height: 560px;
  }

  .hero-text {
    left: 24px;
    right: 24px;
    top: 58%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .hero-text p {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .achievement-photos {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .achievement-content-strong {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .achievement-button {
    justify-self: start;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .school-logos {
    justify-content: flex-start;
  }

  .text-content .button {
    float: none;
  }

  .values-list {
    grid-template-columns: 1fr;
  }

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

  .partner-card {
    height: 92px;
    padding: 0;
  }

  .partner-card a {
    padding: 14px 16px;
  }

  .partner-card img {
    max-height: 58px;
  }

  .button-row {
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 720px) {
  .page-section {
    padding-top: 42px;
  }

  .page-container,
  .competition-container,
  .partners-container,
  .support-container,
  .contact-container {
    width: min(100% - 32px, 980px);
  }

  .photo-label {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
  }

  .section-heading-row {
    gap: 10px;
    margin-bottom: 26px;
  }

  .section-heading-row .section-title {
    font-size: 2rem;
  }

  .section-heading-row .section-subtitle {
    margin-top: 5px;
    font-size: 0.75rem;
  }

  .members-grid,
  .past-members-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .competition-info-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .competition-logo-card {
    min-height: 170px;
    padding: 24px;
  }

  .competition-logo-card img {
    max-height: 120px;
  }

  .gallery-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .gallery-wrapper::-webkit-scrollbar {
    display: none;
  }

  .gallery-track {
    animation: none;
    transform: none;
    gap: 16px;
    width: max-content;
  }

  .gallery-item {
    flex: 0 0 78vw;
  }

  .result-year-block {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-left: 22px;
  }

  .result-year-block::before {
    left: 0;
  }

  .result-year {
    padding-left: 0;
  }

  .results-highlight-card {
    padding: 24px;
  }

  .partners-title {
    font-size: 2rem;
  }

  .partners-subtitle {
    margin-bottom: 46px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .partner-card {
    height: 88px;
    padding: 0;
  }

  .partner-card a {
    padding: 12px 14px;
  }

  .partner-card img {
    max-height: 54px;
  }

  .partners-message {
    margin-top: 60px;
  }

  .support-title {
    font-size: 2.2rem;
  }

  .support-box {
    padding: 28px 24px;
  }

  .campfire-section {
    margin-top: 60px;
  }

  .campfire-action-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .campfire-action-row .campfire-card {
    width: 100%;
  }

  .campfire-action-row .support-main-button {
    width: 100%;
    min-width: 0;
  }

  .support-contact-section {
    margin-top: 66px;
  }

  .contact-title {
    font-size: 2.6rem;
  }

  .contact-form {
    margin-top: 44px;
  }

  .checkbox-label {
    align-items: flex-start;
  }

  .contact-submit {
    width: 100%;
  }

  .hero-text.hero-text-default,
  .hero-text.hero-text-left-bottom,
  .hero-text.hero-text-right-bottom {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 60px;
    transform: none;
    text-align: left;
  }

  .hero-text.hero-text-right-bottom p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 0.95rem;
  }

  .hero,
  .hero-image {
    height: 520px;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .achievement-photos {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }

  .achievement-photos img {
    min-width: 78%;
    scroll-snap-align: start;
  }

  .achievement-main-card {
    padding: 22px;
  }

  .achievement-summary-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .button {
    width: min(100%, 280px);
  }

  .school-logos img {
    width: 90px;
    height: 90px;
  }

  .about-affiliation-logos li {
    width: 76px;
    height: 76px;
  }

  .about-team-title {
    display: block;
  }

  .about-team-title span {
    display: block;
    margin-top: 6px;
    margin-bottom: 0;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .partner-card {
    height: 90px;
    padding: 0;
  }

  .partner-card img {
    max-height: 58px;
  }

  .footer-logo {
    width: 190px;
  }

  .footer-contact {
    gap: 14px;
    flex-direction: column;
  }
}

/* =========================
   Header Actions / Language Toggle
========================= */

.header-inner {
  gap: 32px;
}

.site-nav {
  margin-left: auto;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 34px;
}

.language-toggle {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: 88px;
  height: 30px;
  padding: 3px;
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  line-height: 1;
}

.language-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: #ff7a1a;
  border-radius: 999px;
  transition: transform 0.28s ease;
  z-index: 0;
}

.language-toggle.is-jp::before {
  transform: translateX(0);
}

.language-toggle.is-en::before {
  transform: translateX(100%);
}

.lang-option {
  position: relative;
  z-index: 1;
  width: 50%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  color: #111;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.lang-option.is-current {
  color: #fff;
}

.lang-option:hover {
  color: #111;
}

.lang-option.is-current:hover {
  color: #fff;
}

/* =========================
   Adjustments / Fixes
========================= */

.hero .swiper-slide:nth-child(1) .hero-image {
  object-position: center 18%;
}

html[lang="en"] .achievement-big {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

html[lang="en"] .achievement-summary-list strong {
  font-size: clamp(1rem, 1.4vw, 1.35rem);
}

/* =========================
   Partners Logo Grid
========================= */

.partners-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.partner-card {
  width: 100%;
  height: 118px;
}

.partner-card a {
  padding: 18px 26px;
}

.partner-card img {
  max-height: 68px;
}

.partner-card img[alt="Pololu Logo"] {
  max-height: 78px;
}

/* =========================
   Support Page Card Layout
========================= */

.support-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  background: none;
  border-left: none;
  padding: 0;
  margin-top: 56px;
}

.support-box-block {
  background: #181818;
  border-left: 6px solid #ff7a1a;
  padding: 34px 36px;
}

.support-box-block h2 {
  margin-bottom: 20px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.support-box-block ul {
  margin: 0;
  padding-left: 1.2em;
}

.support-box-block li {
  margin-bottom: 14px;
  line-height: 1.55;
}

.support-box-block li:last-child {
  margin-bottom: 0;
}

/* =========================
   Responsive Overrides
========================= */

@media (max-width: 900px) {
  .header-actions {
    margin-left: auto;
    gap: 10px;
  }

  .language-toggle {
    width: 88px;
    height: 30px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 620px;
    gap: 22px;
  }

  .partner-card {
    height: 110px;
  }
}

@media (max-width: 800px) {
  .support-box {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .support-box-block {
    padding: 28px 24px;
  }
}

@media (max-width: 700px) {
  html[lang="en"] .achievement-summary-list strong {
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .partners-grid {
    grid-template-columns: 1fr;
    max-width: 280px;
    gap: 16px;
  }

  .partner-card {
    height: 100px;
  }

  .partner-card a {
    padding: 16px 22px;
  }

  .partner-card img {
    max-height: 60px;
  }
}

/* =========================
   Competition Info Text Alignment Final
========================= */

.competition-info-grid {
  align-items: start !important;
}

.competition-info-card {
  display: grid !important;
  grid-template-rows: 44px 250px auto !important;
  row-gap: 26px !important;
}

.competition-info-card h3 {
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: flex-end !important;
}

.competition-logo-card {
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  padding: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.competition-logo-card a {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.competition-logo-card img {
  max-width: 100% !important;
  max-height: 145px !important;
  object-fit: contain !important;
}

.competition-info-card p {
  margin: 0 !important;
  padding: 0 !important;
}

/* Tablet */
@media (max-width: 900px) {
  .competition-info-card {
    grid-template-rows: 44px 220px auto !important;
    row-gap: 24px !important;
  }

  .competition-logo-card {
    height: 220px !important;
    min-height: 220px !important;
  }

  .competition-logo-card img {
    max-height: 125px !important;
  }
}

/* Mobile */
@media (max-width: 720px) {
  .competition-info-grid {
    grid-template-columns: 1fr !important;
    gap: 46px !important;
  }

  .competition-info-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .competition-info-card h3 {
    height: auto !important;
    min-height: 0 !important;
    display: block !important;
  }

  .competition-logo-card {
    height: 190px !important;
    min-height: 190px !important;
    padding: 22px !important;
  }

  .competition-logo-card img {
    max-height: 110px !important;
  }
}

/* Small Mobile */
@media (max-width: 520px) {
  .competition-logo-card {
    height: 165px !important;
    min-height: 165px !important;
    padding: 18px !important;
  }

  .competition-logo-card img {
    max-height: 95px !important;
  }
}
.competition-logo-card {
  height: 250px !important;
  min-height: 250px !important;
  margin: 0 !important;
  padding: 0 !important;              /* ← 28px から 0 に */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.competition-logo-card a {
  width: 100% !important;
  height: 100% !important;
  padding: 28px !important;           /* ← ここに移動 */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
/* Mobile */
@media (max-width: 720px) {
  .competition-logo-card {
    height: 190px !important;
    min-height: 190px !important;
    padding: 0 !important;
  }
  .competition-logo-card a {
    padding: 22px !important;
  }
}

/* Small Mobile */
@media (max-width: 520px) {
  .competition-logo-card {
    height: 165px !important;
    min-height: 165px !important;
    padding: 0 !important;
  }
  .competition-logo-card a {
    padding: 18px !important;
  }
}