/* =========================================================
   Google Fonts
   Windows / Mac 共通フォント
========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap");


/* =========================================================
   テーマカラー
========================================================= */

.theme-gasone {
  --theme-color: #00a447;
  --theme-dark: #008d3d;
}

.theme-eneone {
  --theme-color: #ff641c;
  --theme-dark: #e95716;
}


/* =========================================================
   基本設定
========================================================= */

:root {
  --gasone-green: #00a447;
  --eneone-orange: #ff641c;

  --text: #17212b;
  --sub-text: #66717c;

  --bg: #f4f8fa;
  --white: #ffffff;

  --border: #dfe6ea;

  --content-width: 1180px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: var(--text);
  background: var(--bg);

  font-family:
    "Noto Sans JP",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  font-weight: 400;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

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

.container {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
}


/* =========================================================
   一時非表示
========================================================= */

.is-hidden {
  display: none !important;
}


/* =========================================================
   ヘッダー
========================================================= */

.site-header {
  position: relative;
  z-index: 10;

  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;

  min-height: 72px;
  gap: 30px;
}

.site-logo {
  display: flex;
  align-items: center;

  gap: 12px;

  text-decoration: none;
}

.site-logo img {
  width: 105px;
  max-height: 40px;

  object-fit: contain;
}

.site-logo-text {
  font-size: 14px;
  font-weight: 700;
}


/* =========================================================
   年度ナビ
========================================================= */

.year-nav ul,
.cup-nav ul {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.year-nav a,
.cup-nav a {
  display: block;

  padding: 7px 15px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 500;

  text-decoration: none;

  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.year-nav a:hover,
.cup-nav a:hover {
  border-color: var(--theme-color);
}

.year-nav .current a,
.cup-nav .current a {
  color: var(--white);

  background: var(--theme-color);
  border-color: var(--theme-color);

  font-weight: 700;
}


/* =========================================================
   大会切り替え
========================================================= */

.cup-nav {
  position: sticky;
  top: 0;
  z-index: 1000;

  padding: 11px 0;

  background: rgba(255, 255, 255, 0.96);

  border-bottom: 1px solid var(--border);

  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cup-nav ul {
  justify-content: center;
}


/* =========================================================
   HERO
========================================================= */

.hero {
  color: var(--white);
  background: var(--theme-color);
}

.hero-inner {
  padding: 48px 0;

  text-align: center;
}

.hero-lead {
  margin: 0 0 10px;

  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
}


/* =========================================================
   HERO タイトル画像
========================================================= */

.hero-title {
  margin: 0;

  line-height: 1;
}

.hero-title-image {
  width: min(100%, 760px);
  height: auto;

  margin: 0 auto;
}

.hero-description {
  max-width: 900px;

  margin: 25px auto 0;

  font-size: 14px;
  font-weight: 400;

  line-height: 1.9;
}


/* =========================================================
   ページタイトル
========================================================= */

.page-intro {
  padding: 45px 0 20px;
}

.page-title {
  margin: 0 0 5px;

  font-size: clamp(23px, 3vw, 32px);
  font-weight: 700;

  line-height: 1.45;
}

.page-date {
  margin: 0;

  color: var(--sub-text);

  font-size: 13px;
}


/* =========================================================
   フォトギャラリー
========================================================= */

.gallery-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 16px;

  margin: 25px 0 55px;
}

.gallery-card {
  position: relative;

  display: flex;
  align-items: center;

  min-height: 150px;

  overflow: hidden;

  color: var(--white);

  border-radius: var(--radius);

  text-decoration: none;

  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.gallery-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.gallery-card--gasone {
  background: var(--gasone-green);
}

.gallery-card--eneone {
  background: var(--eneone-orange);
}

.gallery-card-text {
  position: relative;
  z-index: 2;

  width: 57%;

  padding: 20px 24px;
}

.gallery-card-title {
  display: block;

  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;

  line-height: 1.2;
}

.gallery-card-sub {
  display: block;

  margin-top: 7px;

  font-size: 12px;
  font-weight: 500;
}

.gallery-image {
  position: absolute;

  top: 0;
  right: 0;

  width: 43%;
  height: 100%;

  object-fit: cover;
}


/* =========================================================
   共通セクション
========================================================= */

.section {
  margin-bottom: 65px;
}

.section-title {
  display: flex;
  align-items: center;

  gap: 10px;

  margin: 0 0 18px;

  font-size: 22px;
  font-weight: 700;
}

.section-title::before {
  width: 5px;
  height: 28px;

  flex-shrink: 0;

  content: "";

  background: var(--theme-color);

  border-radius: 10px;
}

.panel {
  padding: 30px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);
}


/* =========================================================
   大会概要
========================================================= */

.overview-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);

  gap: 18px 20px;

  margin: 0;
}

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

.overview-list dd {
  min-width: 0;

  margin: 0;
}


/* =========================================================
   会場
========================================================= */

.venues {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 12px;

  margin-top: 15px;
}

.venue {
  display: flex;
  flex-direction: column;

  min-height: 120px;

  padding: 15px;

  color: var(--text);
  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 8px;

  text-decoration: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
}

.venue:hover {
  border-color: var(--theme-color);

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

  transform: translateY(-2px);
}

.venue-name {
  margin-bottom: 6px;

  font-size: 13px;
  font-weight: 700;
}

.venue-address {
  margin: 0 0 8px;

  color: var(--sub-text);

  font-size: 12px;

  line-height: 1.6;
}

.venue-map {
  display: inline-block;

  margin-top: auto;

  color: var(--theme-color);

  font-size: 11px;
  font-weight: 700;
}


/* =========================================================
   トーナメント
========================================================= */

.tournament-image {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  object-fit: contain;
}

.pdf-link {
  margin-top: 20px;

  text-align: center;
}

.pdf-link a {
  display: inline-block;

  padding: 10px 24px;

  color: var(--theme-color);

  border: 1px solid var(--theme-color);
  border-radius: 999px;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 0.2s,
    background 0.2s;
}

.pdf-link a:hover {
  color: var(--white);

  background: var(--theme-color);
}


/* =========================================================
   大会結果
========================================================= */

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;
}

.result-image {
  width: 100%;

  aspect-ratio: 8 / 5;

  border-radius: 10px;

  object-fit: cover;
}

.result-info {
  padding-top: 12px;
}

.result-rank {
  display: inline-block;

  margin-bottom: 5px;
  padding: 3px 10px;

  color: var(--white);
  background: var(--theme-color);

  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}

.result-team {
  margin: 0;

  font-size: 16px;
  font-weight: 700;
}

.result-detail {
  margin: 3px 0 0;

  color: var(--sub-text);

  font-size: 12px;
}


/* =========================================================
   出場チーム一覧
========================================================= */

.team-index {
  margin-bottom: 35px;
}

.team-index-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));

  gap: 10px;

  margin: 0;
  padding: 0;

  list-style: none;
}

.team-index-list a {
  display: flex;
  align-items: center;

  min-height: 44px;

  padding: 10px 12px;

  color: var(--theme-color);
  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 8px;

  font-size: 12px;
  font-weight: 700;

  line-height: 1.4;

  text-decoration: none;
}

.team-index-list a:hover {
  border-color: var(--theme-color);
}


/* =========================================================
   チーム詳細
========================================================= */

.team-detail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 22px;
}

.team-detail {
  display: flex;
  flex-direction: column;

  height: 100%;

  padding: 18px;

  background: var(--white);

  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.035);

  scroll-margin-top: 85px;
}

.team-detail-heading {
  display: flex;
  align-items: center;

  gap: 8px;

  min-height: 45px;

  margin-bottom: 14px;
}

.team-prefecture {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  padding: 4px 9px;

  color: var(--white);
  background: var(--theme-color);

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.team-detail-title {
  margin: 0;

  font-size: 17px;
  font-weight: 700;

  line-height: 1.4;

  overflow-wrap: anywhere;
}


/* =========================================================
   チーム画像
========================================================= */

.team-main-image {
  width: 100%;

  aspect-ratio: 8 / 5;

  margin-bottom: 15px;

  border-radius: 8px;

  object-fit: cover;
}


/* =========================================================
   チーム紹介
========================================================= */

.team-profile {
  flex: 1;
}

.team-profile dl {
  margin: 0;
}

.team-profile-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);

  gap: 10px;
}

.team-profile dt {
  font-size: 12px;
  font-weight: 700;
}

.team-profile dd {
  margin: 0;

  font-size: 12px;

  line-height: 1.8;

  overflow-wrap: anywhere;
}


/* =========================================================
   フッター
========================================================= */

.site-footer {
  margin-top: 90px;

  padding: 40px 20px;

  color: var(--sub-text);

  font-size: 11px;

  text-align: center;
}


/* =========================================================
   タブレット
========================================================= */

@media (max-width: 1000px) {

  .team-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

}


/* =========================================================
   スマートフォン
========================================================= */

@media (max-width: 768px) {

  .container {
    width: min(calc(100% - 30px), var(--content-width));
  }

  .header-inner {
    display: block;

    padding: 15px 0;
  }

  .site-logo {
    justify-content: center;
  }

  .year-nav {
    margin-top: 15px;
  }

  .year-nav ul {
    justify-content: center;
  }

  .cup-nav {
    padding: 8px 0;
  }

  .cup-nav a {
    padding: 6px 11px;

    font-size: 11px;
  }

  .hero-inner {
    padding: 35px 0;
  }

  .hero-title-image {
    width: min(100%, 620px);
  }

  .hero-description br {
    display: none;
  }

  .gallery-links {
    grid-template-columns: 1fr;
  }

  .venues {
    grid-template-columns: 1fr;
  }

  .venue {
    min-height: auto;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .overview-list {
    grid-template-columns: 1fr;

    gap: 5px;
  }

  .overview-list dt {
    margin-top: 8px;
  }

  .overview-list dt:first-child {
    margin-top: 0;
  }

  .overview-list dd {
    margin-bottom: 15px;
  }

  .panel {
    padding: 20px;
  }

  .team-index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .team-detail {
    padding: 16px;
  }

  .team-profile-row {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .team-profile dt,
  .team-profile dd {
    font-size: 13px;
  }

}


/* =========================================================
   小さいスマホ
========================================================= */

@media (max-width: 520px) {

  .hero-title-image {
    width: 100%;
  }

  .gallery-card {
    min-height: 140px;
  }

  .gallery-card-title {
    font-size: 20px;
  }

  .gallery-card-text {
    width: 62%;

    padding: 18px;
  }

  .gallery-image {
    width: 38%;
  }

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

  .team-detail-heading {
    align-items: flex-start;
  }

  .team-detail-title {
    font-size: 16px;
  }

  .team-profile-row {
    display: block;
  }

  .team-profile dt {
    margin-bottom: 5px;
  }

}