/* common.css */

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

:root {
  --container: 1180px;
  --text: #334155;
  --muted: #64748b;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --main: #6aa53a;
  --main-dark: #4f7f2a;
  --main-soft: #edf7e7;
  --shadow: 0 10px 24px rgba(15, 23, 42, .045);
  --radius: 20px;
  --heading: #1f2937;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--text);
  font-family:
    "Noto Sans JP",
    "BIZ UDPGothic",
    "Hiragino Sans",
    "Yu Gothic UI",
    "Yu Gothic",
    Meiryo,
    sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(219, 228, 238, .9);
}

.site-header .container {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-text {
  max-width: 560px;
  overflow: hidden;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* =========================
   Brand Home Link
========================= */

.brand-home {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.brand-home:link,
.brand-home:visited,
.brand-home:hover,
.brand-home:active {
  color: inherit;
  text-decoration: none;
}

/* =========================
   Navigation
========================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .03em;
}

.nav a {
  padding: 4px 2px;
  color: inherit;
  white-space: nowrap;
  transition:
    color .18s ease,
    opacity .18s ease;
}

.nav a:hover {
  color: var(--main-dark);
  opacity: .92;
}

.nav a[aria-current="page"] {
  color: var(--main-dark);
}

/* =========================
   Common Layout / Cards
========================= */

.main {
  padding: 26px 0 44px;
}

.hero,
.page-card,
.panel {
  overflow: hidden;
  border: 1px solid rgba(219, 228, 238, .95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
}

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

.hero-media {
  height: 248px;
  overflow: hidden;
  background: #f8fafc;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-text {
  padding: 15px 24px 17px;
  border-top: 1px solid rgba(226, 232, 240, .85);
  background: #fbfbfb;
}

.hero-text h1 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  color: #334155;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .01em;
}

.hero-title-ja {
  display: block;
}

.hero-title-en {
  display: block;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}

/* =========================
   Page Title / Panel Title
========================= */

.page-title,
.panel-title {
  position: relative;
  margin: 0;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: .02em;
}

.page-title {
  padding: 16px 22px 16px 36px;
  border-bottom: 1px solid rgba(219, 228, 238, .9);
  background: linear-gradient(
    180deg,
    #fcfcfd 0%,
    #fafbfc 100%
  );
  font-size: 18px;
}

.page-title::before,
.panel-title::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 999px;
  background: rgba(106, 165, 58, .58);
  transform: translateY(-50%);
}

.panel-title {
  padding: 13px 20px 13px 32px;
  border-bottom: 1px solid rgba(219, 228, 238, .9);
  background: #fcfcfd;
  font-size: 16px;
}

.panel-body {
  padding: 26px 26px 28px;
  background: var(--surface);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid rgba(106, 165, 58, .45);
  border-radius: 999px;
  background: #fff;
  color: var(--main-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .03em;
  transition:
    background .18s ease,
    transform .18s ease,
    border-color .18s ease;
}

.btn:hover {
  border-color: rgba(106, 165, 58, .72);
  background: #f7fcf4;
  transform: translateY(-1px);
}

/* =========================
   Top Page Blocks
========================= */

.blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.block {
  min-height: 134px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(219, 228, 238, .95);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.block-head {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-bottom: 1px solid #dbeccd;
  background: var(--main-soft);
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
}

.block-body {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 8px 18px 12px;
  background: var(--surface);
}

.lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.left-stack {
  display: grid;
  gap: 24px;
}

/* =========================
   News
========================= */

#news .panel-body {
  display: grid;
  gap: 16px;
  padding: 22px 24px 24px;
}

#news .news-block {
  display: block;
  margin: 0;
  padding: 2px 0 10px;
  border-bottom: 1px solid #eef2f7;
}

#news .news-block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

#news .news-date {
  display: block;
  margin: 0 0 9px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .03em;
  white-space: nowrap;
}

#news .news-lines,
#schedule .schedule-text {
  color: #334155;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
}

#news .news-lines p {
  margin: 0;
}

#news .news-lines p + p {
  margin-top: 8px;
}

/* =========================
   Schedule
========================= */

#schedule .panel-body {
  padding: 24px 26px 26px;
}

#schedule .schedule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#schedule .schedule-item {
  margin: 0;
  padding: 10px 0 0;
  color: #334155;
  line-height: 1.9;
}

#schedule .schedule-text {
  margin: 0;
}

/* =========================
   Note
========================= */

.note {
  display: inline-block;
  margin: 14px 0 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: .03em;
}

/* =========================
   Business Gallery
========================= */

.business-gallery {
  display: grid;
  gap: 20px;
  margin-top: 26px;
  margin-bottom: 0;
}

.business-gallery-title {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sponsor-grid,
.gallery-grid {
  display: grid;
  width: 100%;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sponsor-card,
.gallery-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, .88);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .02);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.sponsor-card:hover,
.gallery-card:hover {
  border-color: rgba(106, 165, 58, .16);
  box-shadow: 0 6px 14px rgba(15, 23, 42, .03);
  transform: translateY(-1px);
}

.sponsor-card-frame,
.gallery-card-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 4px;
  background: #fff;
}

.sponsor-card-frame img,
.gallery-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.sponsor-card-caption,
.gallery-card-caption {
  padding: 8px 8px 10px;
  border-top: 1px solid #eef2f7;
  background: #fff;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-align: center;
}

/* =========================
   Organization Link
========================= */

.organization-link-wrap {
  margin: 28px 0 -12px;
  text-align: left;
}

.organization-inline-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #c9d6b1;
  border-radius: 999px;
  background: #fff;
  color: var(--main-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease;
}

.organization-inline-link:hover {
  border-color: #9eb37a;
  background: #f5f8ef;
  color: #5f7440;
  transform: translateY(-1px);
}

/* =========================
   Common Entry Body
========================= */

.entry-body {
  padding: 12px 24px 28px;
  color: #3b4b5f;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
}

.entry-body h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  padding: 0 0 2px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
}

.entry-body h3::before {
  content: "";
  width: 3px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(106, 165, 58, .62);
}

/* =========================
   Member List Page
========================= */

.member-groups {
  display: block;
  margin-top: 6px;
}

.letter-group {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #edf2f7;
}

.letter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.letter-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid #cfe8c1;
  border-radius: 999px;
  background: var(--main-soft);
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .03em;
}

.member-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #334155;
  list-style: none;
}

.member-list li {
  margin: 0;
  color: #334155;
  line-height: 1.68;
}

.member-list a,
.member-list a:link,
.member-list a:visited {
  color: #1f5fbf;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
  transition:
    color .18s ease,
    opacity .18s ease,
    text-decoration-color .18s ease;
}

.member-list a:hover,
.member-list a:focus-visible {
  color: var(--main-dark);
  opacity: .92;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.member-list .plain {
  color: #3b4b5f;
  font-weight: 500;
  word-break: break-word;
}

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

.site-footer {
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid #eef2f7;
  background: #fbfcfd;
  color: #64748b;
}

.site-footer .container {
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 12px;
  letter-spacing: .03em;
  text-align: left;
}

.footer-text {
  margin: 0;
}

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

@media (max-width: 960px) {
  .site-header .container {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    width: 100%;
    white-space: normal;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .brand-text {
    max-width: none;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    font-size: 12px;
    line-height: 1.75;
  }

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

  .hero-media {
    height: 208px;
  }

  .hero-text {
    padding: 10px 14px 12px;
  }

  .hero-text h1 {
    font-size: 14px;
    line-height: 1.5;
  }

  .hero-title-en {
    font-size: 12.5px;
  }

  .block-head {
    min-height: 72px;
  }

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

  .page-title {
    padding: 14px 18px 14px 34px;
    font-size: 17px;
  }

  .page-title::before {
    left: 16px;
    height: 16px;
  }

  .entry-body {
    padding: 10px 18px 22px;
    font-size: 14px;
    line-height: 1.85;
  }

  .entry-body h3 {
    margin-top: 2px;
    font-size: 15px;
  }

  #news .news-date {
    font-size: 12.5px;
  }

  #news .news-lines {
    font-size: 15px;
    line-height: 1.8;
  }

  #schedule .schedule-text {
    font-size: 14px;
    line-height: 1.9;
  }

  .organization-link-wrap {
    margin-top: 34px;
  }

  .organization-inline-link {
    padding: 7px 12px;
    font-size: 12px;
  }

  .site-footer .container {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* =========================
   Small Smartphone
========================= */

@media (max-width: 600px) {
  /* ヒーロー画像を150pxに設定 */
  .hero-media {
    height: 150px;
  }

  /* 画像上部をやや優先して表示 */
  .hero-media img {
    object-position: center 30%;
  }

  /* ヒーロー画像下の余白を縮小 */
  .hero-text {
    padding: 8px 12px 9px;
  }

  /* ヒーロー画像下の日本語タイトル */
  .hero-text h1 {
    font-size: 13px;
    line-height: 1.45;
  }

  /* ヒーロー画像下の英文タイトル */
  .hero-title-en {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .sponsor-card-caption,
  .gallery-card-caption {
    font-size: 11.5px;
  }
}