/* =========================
   全体
========================= */

body {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  background: #fff8ec;
  color: #1f3552;
  line-height: 1.8;
}

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


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

.site-header {
  background: #0f2c4d;
  color: #fff8ec;
  text-align: center;
  padding: 36px 16px 28px;
  border-bottom: 4px solid #c8a76a;
}

.site-title {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.site-subtitle {
  margin: 10px 0 0;
  font-size: 15px;
  letter-spacing: 0.12em;
  color: #ead9b9;
}


/* =========================
   ナビゲーション
========================= */

.global-nav {
  background: #17385d;
  border-bottom: 1px solid #c8a76a;
}

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.global-nav li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.global-nav li:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.global-nav a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: #fff8ec;
}

.global-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}


/* =========================
   メインビジュアル・スライダー
========================= */

.main-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #d8c18f;
  background: #fff8ec;
}

.main-image {
  width: 100%;
  height: 520px;
  object-fit: contain;
  display: block;
  background: #fff8ec;
  transition: opacity 1s ease;
}

/* =========================
   メインメッセージ
========================= */

.main-message {
  position: relative;
  z-index: 2;
  background: rgba(255, 252, 244, 0.82);
  padding: 32px 42px;
  border: 1px solid #c8a76a;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(31, 53, 82, 0.16);
}

.main-message p {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.14em;
  line-height: 2;
}


/* =========================
   ようこそ
========================= */

.welcome {
  max-width: 820px;
  margin: 52px auto 42px;
  padding: 0 20px;
  text-align: center;
}

.welcome h2 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: 0.12em;
}

.welcome p {
  margin: 0;
  font-size: 17px;
}


/* =========================
   6つの入口
========================= */

.entrance-section {
  max-width: 1080px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 26px;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #c8a76a;
  margin: 12px auto 0;
}

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

.entrance-card {
  background: #fffdf7;
  border: 1px solid #d8c18f;
  border-radius: 20px;
  padding: 24px 22px;
  min-height: 210px;
  box-shadow: 0 8px 20px rgba(31, 53, 82, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.entrance-card::before {
  content: "♪";
  position: absolute;
  right: 18px;
  top: 12px;
  color: #d0af70;
  font-size: 22px;
  opacity: 0.7;
}

.entrance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(31, 53, 82, 0.14);
}

.card-number {
  display: inline-block;
  background: #0f2c4d;
  color: #fff8ec;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.entrance-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.5;
}

.entrance-card p {
  margin: 0 0 18px;
  font-size: 14px;
  color: #4b4b4b;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  background: #17385d;
  color: #fff8ec;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* =========================
   管理者リンク
========================= */

.admin-link-area {
  text-align: center;
  margin: 30px 0 24px;
}

.admin-link {
  font-size: 14px;
  color: #6b4a32;
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 74, 50, 0.45);
  padding-bottom: 3px;
}

.admin-link:hover {
  color: #3f2a1d;
  border-bottom-color: #3f2a1d;
}

/* =========================
   更新履歴
========================= */

.updates {
  max-width: 820px;
  margin: 0 auto 50px;
  padding: 28px 24px;
  background: rgba(255, 253, 247, 0.9);
  border-top: 1px solid #d8c18f;
  border-bottom: 1px solid #d8c18f;
}

.updates h2 {
  margin: 0 0 16px;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.1em;
}

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

.updates li {
  padding: 8px 0;
  border-bottom: 1px dashed #d8c18f;
  font-size: 14px;
}

.updates li:last-child {
  border-bottom: none;
}

.date {
  display: inline-block;
  min-width: 100px;
  color: #8b6b36;
  font-weight: bold;
}


/* =========================
   注意書き
========================= */

.notice {
  max-width: 820px;
  margin: 0 auto 48px;
  padding: 0 20px;
  font-size: 13px;
  color: #5d5d5d;
  text-align: center;
}


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

.site-footer {
  background: #0f2c4d;
  color: #ead9b9;
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  border-top: 4px solid #c8a76a;
}


/* =========================
   スマホ対応
========================= */

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-title {
    font-size: 34px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 28px 12px 22px;
  }

  .site-title {
    font-size: 28px;
  }

  .site-subtitle {
    font-size: 13px;
  }

  .global-nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .main-visual {
  min-height: 320px;
  }

.main-image {
  height: 320px;
  }

  .main-message p {
    font-size: 18px;
    letter-spacing: 0.08em;
  }

  .welcome {
    margin-top: 38px;
  }

  .welcome h2 {
    font-size: 23px;
  }

  .welcome p {
    font-size: 15px;
  }

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

  .entrance-card {
    min-height: auto;
  }

  .date {
    display: block;
    min-width: auto;
    margin-bottom: 2px;
  }
}

.welcome .site-notice {
  margin-top: 20px;
  font-size: 12px !important;
  line-height: 1.7;
  color: #6b5847;
}

.welcome .site-notice span[lang="en"] {
  font-size: 11px !important;
}

/* =========================
   更新履歴・スクロール窓
========================= */

.updates {
  max-width: 900px;
  margin: 50px auto;
  padding: 28px;

  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(125, 148, 161, 0.24);
  border-radius: 18px;

  box-shadow: 0 10px 28px rgba(59, 80, 92, 0.08);
}

/* 更新履歴の一覧部分だけをスクロール */
.updates ul {
  max-height: 260px;
  overflow-y: auto;

  margin: 20px 0 0;
  padding: 0 14px 0 0;

  list-style: none;
}

/* 各更新項目 */
.updates li {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(125, 148, 161, 0.18);
  line-height: 1.7;
}

/* 日付 */
.updates .date {
  display: inline-block;
  min-width: 110px;
  margin-right: 12px;
  font-weight: bold;
}

/* スクロールバー */
.updates ul::-webkit-scrollbar {
  width: 8px;
}

.updates ul::-webkit-scrollbar-thumb {
  background: rgba(125, 148, 161, 0.45);
  border-radius: 10px;
}

.updates ul::-webkit-scrollbar-track {
  background: rgba(125, 148, 161, 0.1);
  border-radius: 10px;
}

@media (max-width: 600px) {
  .updates {
    margin: 35px 16px;
    padding: 22px 18px;
  }

  .updates ul {
    max-height: 230px;
  }

  .updates .date {
    display: block;
    margin: 0 0 3px;
  }
}