/* ============================================================
   ロコモフレイル研究会 - 共通スタイルシート
   ============================================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  --bg-color: rgb(255, 249, 238); /* オフホワイト */
  --main-color: #6baed6; /* 淡いブルー */
  --sub-color: #8bc9a1; /* 淡いグリーン */
  --accent-color: #4a8f6a; /* 深めのグリーン */
  --text-color: ; /* 濃いグレー */
  --card-bg: rgb(255, 249, 238); /* カード */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 28px rgba(0, 0, 0, 0.14);
  --transition: all 0.3s ease;
  --font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
  color: var(--brand-accent);
}

ul {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  background-color: rgb(249, 210, 215);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.site-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
}

.site-logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: #666;
}

.loco-edu-header *,
.loco-edu-sp-nav * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.loco-edu-header ul,
.loco-edu-sp-nav ul {
  list-style: none;
}

.loco-edu-header a,
.loco-edu-sp-nav a {
  text-decoration: none;
  color: inherit;
}

/* ============================================================
   ヘッダー本体
============================================================ */
.loco-edu-header {
  background: rgba(249, 210, 215);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  position: sticky;
  top: 0;
  z-index: 9000;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  color: #333;
}

/* position: sticky; headerの固定用ソースコード */

.loco-edu-header-inner {
  max-width: 1550px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.loco-edu-logo {
  font-size: 18px;
  font-weight: 700;
  color: #2c5f8a;
  letter-spacing: 0.03em;
}

/* ============================================================
   PC版グローバルナビ
============================================================ */
.loco-edu-gnav {
  display: flex;
  align-items: center;
}

.loco-edu-gnav > ul {
  display: flex;
}

/* 親ナビ項目 */
.loco-edu-nav-item {
  position: relative;
}

.loco-edu-nav-item > a {
  display: block;
  padding: 20px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  position: relative;
  transition: color 0.2s ease;
}

/* ホバー時の下線アニメーション */
.loco-edu-nav-item > a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: #2c5f8a;
  transition: transform 0.25s ease;
}

.loco-edu-nav-item:hover > a {
  color: #2c5f8a;
}

.loco-edu-nav-item:hover > a::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================================
   サブナビ（PC版ホバー展開）
============================================================ */
.loco-edu-sub-nav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-top: 2px solid #2c5f8a;
  border-radius: 0 0 4px 4px;
  padding: 8px 0;
  /* 初期状態：非表示 */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.loco-edu-nav-item:hover .loco-edu-sub-nav {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.loco-edu-sub-nav li a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #444;
  border-left: 3px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    padding-left 0.15s ease,
    border-left-color 0.15s ease;
}

.loco-edu-sub-nav li a:hover {
  background: #f0f5fa;
  color: #2c5f8a;
  padding-left: 26px;
  border-left-color: #2c5f8a;
}

/* ============================================================
   ハンバーガーボタン（SP用）
============================================================ */
.loco-edu-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.loco-edu-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* ハンバーガー → ✕ アニメーション */
.loco-edu-hamburger.loco-edu-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.loco-edu-hamburger.loco-edu-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.loco-edu-hamburger.loco-edu-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   SP版ドロワーナビ
============================================================ */
.loco-edu-sp-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #fff;
  overflow-y: auto;
  z-index: 8999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 15px;
  color: #333;
}

.loco-edu-sp-nav.loco-edu-open {
  transform: translateX(0);
}

.loco-edu-sp-nav-inner {
  padding: 16px 0 40px;
}

/* SP ナビ項目 */
.loco-edu-sp-item {
  border-bottom: 1px solid #e8e8e8;
}

.loco-edu-sp-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loco-edu-sp-parent > a {
  flex: 1;
  display: block;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

/* ＋ / − トグルボタン */
.loco-edu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 52px;
  background: none;
  border: none;
  border-left: 1px solid #e8e8e8;
  cursor: pointer;
  font-size: 22px;
  color: #2c5f8a;
  font-weight: 300;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.loco-edu-toggle:hover {
  background: #f0f5fa;
}

/* SP サブナビ（アコーディオン） */
.loco-edu-sp-sub {
  max-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  transition: max-height 0.3s ease;
}

.loco-edu-sp-item.loco-edu-open .loco-edu-sp-sub {
  max-height: 600px; /* 項目数に応じて調整してください */
}

.loco-edu-sp-sub li a {
  display: block;
  padding: 12px 20px 12px 36px;
  font-size: 14px;
  color: #555;
  border-bottom: 1px solid #eee;
  position: relative;
}

.loco-edu-sp-sub li a::before {
  content: "›";
  position: absolute;
  left: 20px;
  color: #2c5f8a;
  font-size: 16px;
}

.loco-edu-sp-sub li:last-child a {
  border-bottom: none;
}

/* ============================================================
   メインコンテンツ（デモ用 ── 実際のサイトでは不要）
============================================================ */
.loco-edu-main {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 24px;
}

.loco-edu-demo-card {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.loco-edu-demo-card h1 {
  font-size: 22px;
  color: #2c5f8a;
  margin-bottom: 16px;
}

.loco-edu-demo-card p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 12px;
}

.loco-edu-demo-card ul {
  list-style: disc;
  padding-left: 24px;
  color: #555;
  line-height: 2;
}

.loco-edu-demo-card code {
  background: #f0f0f0;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 13px;
}

/* ============================================================
   レスポンシブ切替（960px以下でSP版に切り替え）
============================================================ */
@media (max-width: 1100px) {
  /* PC版ナビを非表示 */
  .loco-edu-gnav {
    display: none;
  }

  /* ハンバーガーボタンを表示 */
  .loco-edu-hamburger {
    display: flex;
  }

  /* SP版ドロワーを有効化 */
  .loco-edu-sp-nav {
    display: block;
  }
}

/*kokokokokokokokokkokoeksitaaaaaaaaaaaaaaaaaaaa*/
/* ---------- Navigation ---------- */
/*
.main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background-color: var(--main-color);
  color: #fff;
  opacity: 1;
}
*/
/* Hamburger */
/*
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: rgba(0, 0, 0, 0.13);
  border-radius: 2px;
  transition: var(--transition);
}
*/
/* ---------- Hero Carousel ---------- */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #d8eaf5;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 480px;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(107, 174, 214, 0.55) 0%,
    rgba(139, 201, 161, 0.45) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}

/*切替背景フォント調整*/
.carousel-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  margin-bottom: 12px;
  line-height: 1.3;
}

.carousel-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  max-width: 600px;
}

.carousel-indicators {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.carousel-dot.active {
  background-color: #fff;
  transform: scale(1.3);
}

/* ---------- Section ---------- */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--main-color);
  display: inline-block;
}

.section-title-center {
  text-align: center;
  display: block;
  border-bottom: none;
  position: relative;
  padding-bottom: 16px;
}

.section-title-center::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--main-color);
  border-radius: 2px;
}

/* ---------- Cards ---------- */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-sm);
  background-color: rgba(107, 174, 214, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 4px solid var(--main-color);
}

.card-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  box-shadow: 0 3px 10px rgba(74, 143, 106, 0.3);
}

.btn-primary:hover {
  background-color: #3a7558;
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(74, 143, 106, 0.4);
  opacity: 1;
  color: #fff;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-outline:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.04);
  opacity: 1;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- PDF Icons Grid ---------- */
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.pdf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.pdf-item:hover {
  transform: scale(1.07);
  opacity: 1;
}

.pdf-icon-wrap1 {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background-color: rgb(249, 210, 215);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.pdf-icon-wrap2 {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background-color: rgb(209, 210, 215);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.pdf-icon-wrap3 {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--border-radius);
  background-color: rgb(68, 78, 73);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: var(--transition);
  overflow: hidden;
}

.pdf-item:hover .pdf-icon-wrap {
  box-shadow: var(--shadow-hover);
}

.pdf-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdf-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-color);
  text-align: center;
  line-height: 1.4;
}

/* ---------- News / Announcement ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.82rem;
  color: var(--main-color);
  font-weight: 600;
  white-space: nowrap;
  min-width: 100px;
  padding-top: 2px;
}

.news-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--main-color);
  color: #fff;
  white-space: nowrap;
  margin-top: 2px;
}

.news-badge.green {
  background-color: var(--sub-color);
}

.news-text {
  font-size: 0.9rem;
  color: var(--text-color);
  line-height: 1.65;
}

/* ---------- Event Info ---------- */
.event-box {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 32px 36px;
  border-left: 5px solid var(--main-color);
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.event-table th,
.event-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.92rem;
}

.event-table th {
  font-weight: 600;
  color: var(--accent-color);
  width: 140px;
  white-space: nowrap;
}

/* ---------- Page Hero (Sub pages) ---------- */
.page-hero {
  background: linear-gradient(
    135deg,
    rgba(107, 174, 214, 0.2) 0%,
    rgba(139, 201, 161, 0.2) 100%
  );
  padding: 56px 24px;
  text-align: center;
  border-bottom: 1px solid rgba(107, 174, 214, 0.2);
}

.page-hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.page-hero-subtitle {
  font-size: 1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Content Sections ---------- */
.content-block {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 32px;
}

.content-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--sub-color);
}

.content-block p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: #444;
  margin-bottom: 14px;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.content-block ul li {
  font-size: 0.92rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 6px;
}

/* ---------- Info Box ---------- */
.info-box {
  background-color: rgba(107, 174, 214, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 20px 24px;
  border-left: 4px solid var(--main-color);
  margin: 20px 0;
}

.info-box p {
  font-size: 0.88rem;
  color: #444;
  margin: 0;
}

/* ---------- Member Cards ---------- */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.member-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.member-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.member-photo-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background-color: rgba(107, 174, 214, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(107, 174, 214, 0.12);
}

.member-photo-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.4;
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.82rem;
  color: var(--main-color);
  font-weight: 600;
  margin-bottom: 10px;
}

.member-comment {
  font-size: 0.87rem;
  color: #555;
  line-height: 1.7;
}

.member-bio {
  text-align: left;
}

/* ---------- Contact Form ---------- */
.contact-form {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 40px 44px;
}

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

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-label .required {
  color: #e05252;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-family);
  font-size: 0.92rem;
  color: var(--text-color);
  background-color: #fafafa;
  transition: var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--main-color);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(107, 174, 214, 0.15);
}

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

/* ---------- Privacy Box ---------- */
.privacy-box {
  background-color: rgba(139, 201, 161, 0.1);
  border-radius: var(--border-radius-sm);
  padding: 20px 24px;
  border: 1px solid rgba(139, 201, 161, 0.3);
  margin-bottom: 24px;
}

.privacy-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.privacy-box p {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: #2d3a4a;
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.footer-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav h4,
.footer-contact h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--sub-color);
  opacity: 1;
}

.footer-contact p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 6px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.82rem;
  color: #888;
}

.breadcrumb a {
  color: var(--main-color);
}

.breadcrumb span {
  margin: 0 6px;
}

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: linear-gradient(
    135deg,
    rgba(107, 174, 214, 0.15),
    rgba(139, 201, 161, 0.15)
  );
  border-radius: var(--border-radius);
  padding: 32px 36px;
  margin-bottom: 32px;
  border: 1px solid rgba(107, 174, 214, 0.2);
}

.highlight-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.highlight-box p {
  font-size: 0.92rem;
  color: #444;
  line-height: 1.85;
}

/* ---------- Tag / Badge ---------- */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background-color: rgba(107, 174, 214, 0.15);
  color: var(--main-color);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ---------- Research Card ---------- */
.research-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 28px 32px;
  margin-bottom: 24px;
  border-top: 4px solid var(--main-color);
  transition: var(--transition);
}

.research-card:hover {
  box-shadow: var(--shadow-hover);
}

.research-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.research-card .research-meta {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 12px;
}

.research-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.75;
}

/* ---------- Two-column layout ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.two-col-img img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

/* ---------- Step List ---------- */
.step-list {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  counter-increment: step-counter;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--main-color);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .carousel-track {
    height: 280px;
  }

  .carousel-title {
    font-size: 1.5rem;
  }

  .carousel-subtitle {
    font-size: 0.88rem;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    z-index: 999;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 0.95rem;
  }

  .card-grid-3 {
    grid-template-columns: 1fr;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .page-hero-title {
    font-size: 1.5rem;
  }

  .content-block {
    padding: 24px 20px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .member-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .member-photo-wrap {
    width: 120px;
    height: 120px;
  }

  .news-item {
    flex-direction: column;
    gap: 6px;
  }

  .event-table th {
    width: 100px;
  }

  .two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
  }

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

/* ── Cards Section (index.html) ── */
.cards-section {
  padding: 5rem 0 6rem;
  background: var(--brand-bg-subtle);
}

.cards-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cards-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  color: var(--toc-charcoal-sub);
  margin-top: 0.75rem;
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 0.25rem;
}

@media (min-width: 220px) {
  /* ここで設定したpx以上の画面幅で2列に切り替え */
  .cards-grid {
    grid-template-columns: repeat(2, 3fr); /* 2列目の幅を3frに設定という意味　*/
    gap: 3.25rem;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

.locofre-card {
  background: white;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  transition:
    transform 200ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 200ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 200ms ease-out;
  cursor: pointer;

  width: 100%;
  font-family: inherit;
  min-width: 0;
}

@media (min-width: 1024px) {
  .locofre-card {
    padding: 1.5rem 1rem;
  }
}

.locofre-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(61, 90, 128, 0.12);
  border-color: var(--brand-accent-light);
}

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0.875rem;
  }
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--brand-text);
  letter-spacing: 0.04em;
  margin-bottom: 0.375rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .card-title {
    font-size: 0.95rem;
  }
}

.card-title-en {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--brand-text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.625rem;
  overflow-wrap: break-word;
  word-break: break-all;
}

.card-desc {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .card-desc {
    font-size: 0.75rem;
    line-height: 1.6;
    margin-bottom: 0.875rem;
  }
}

.card-link {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand-accent);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .card-link {
    font-size: 0.75rem;
  }
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 30, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 200ms ease-out;
}

.modal-overlay.hidden {
  display: none;
}

.modal-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(10, 18, 30, 0.3);
  width: 90vw;
  max-width: 900px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: scaleIn 250ms cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--brand-border);
  flex-shrink: 0;
}

.modal-title {
  font-family: "Noto Serif JP", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--brand-text);
  letter-spacing: 0.04em;
}

.modal-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.85rem;
  color: var(--brand-text-muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid var(--brand-border);
  background: transparent;
  color: var(--brand-text-muted);
  font-size: 1.25rem;
  transition:
    background 180ms ease-out,
    color 180ms ease-out;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--brand-bg-subtle);
  color: var(--brand-text);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.pdf-viewer-wrap {
  width: 100%;
  height: 62vh;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.pdf-viewer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.pdf-fallback {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  text-align: center;
  margin-top: 0.75rem;
  line-height: 1.6;
}

.pdf-fallback a {
  color: var(--brand-accent);
  text-decoration: underline;
}

.modal-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid var(--brand-border);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- 協賛企業 ---------- */
.sponsor-lead { text-align: center; margin-bottom: 8px; }
.sponsor-note { text-align: center; font-size: 0.85rem; color: #888; margin-bottom: 32px; }
.sponsor-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-bottom: 28px; }
.sponsor-item { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow); padding: 10px; transition: var(--transition); }
.sponsor-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.sponsor-item img { display: block; width: 100%; height: auto; }
.sponsor-large .sponsor-item { width: calc(50% - 10px); max-width: 400px; }
.sponsor-medium .sponsor-item { width: calc(33.333% - 14px); max-width: 300px; }
.sponsor-small .sponsor-item { width: calc(25% - 15px); max-width: 220px; }
@media (max-width: 768px) {
  .sponsor-medium .sponsor-item { width: calc(50% - 10px); }
  .sponsor-small .sponsor-item { width: calc(50% - 10px); }
}
@media (max-width: 480px) {
  .sponsor-large .sponsor-item { width: 100%; }
}
