:root {
  --primary-color: #50141c;
  --primary-dark: #380d13;
  --bg-color: #f7f6f5;
  --card-bg: #ffffff;
  --text-color: #2b2b2b;
  --border-color: #dcd3d4;
  --accent-bg: #faf4f5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  /* システム標準フォントを優先指定してフォント読み込み負荷を低減 */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 0;
  margin: 0;
}

/* ヘッダー：伝統校らしい質実剛健なデザイン */
header {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 2.5rem 1rem;
  text-align: center;
  border-bottom: 4px solid var(--primary-dark);
}

header h1 {
  font-family: "Yu Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

header h1 .break-sp {
  display: inline;
}

/* 写真ぼかし＋文字重ね用のヒーローセクション */
.hero-executive {
  position: relative;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  /* モバイルパフォーマンス低下の主な原因となるbackdrop-filterの代わりにGPU処理しやすいwill-changeを指定 */
  will-change: transform;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/img/img3.jpg");
  background-size: cover;
  background-position: center;
  filter: blur(6px) brightness(0.55);
  transform: scale(1.08);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

.hero-content h2 {
  font-family: "Yu Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  color: #ffffff;
  font-size: 2.2rem;
  letter-spacing: 0.12em;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* メインコンテナ */
.container {
  max-width: 860px;
  margin: 30px auto;
  padding: 0 20px;
}

/* セクション枠：紙面風のシンプルな仕切り */
.section-box {
  background: var(--card-bg);
  padding: 40px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

h2 {
  font-family: "Yu Mincho", "Shippori Mincho", "Hiragino Mincho ProN", serif;
  color: var(--primary-color);
  font-size: 1.35rem;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
}

p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

p.lead {
  font-size: 1.05rem;
  font-weight: 500;
}

/* 表（テーブル）：すっきりとした公的文書風スタイル */
.executive-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.executive-table th,
.executive-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.executive-table th {
  width: 28%;
  background-color: var(--accent-bg);
  color: var(--primary-color);
  font-weight: bold;
  vertical-align: top;
  border-right: 1px solid var(--border-color);
}

.executive-table td {
  background-color: #ffffff;
}

.executive-table tr:first-child th,
.executive-table tr:first-child td {
  border-top: 1px solid var(--border-color);
}

/* 生徒会執行部の写真スタイル */
.executive-image {
  margin-top: 25px;
  text-align: center;
}

.executive-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
  background-color: #ffffff;
  display: block;
  margin: 0 auto;
}

/* メッセージ枠 */
.message-box {
  background-color: var(--accent-bg);
  padding: 20px;
  margin-top: 15px;
}

.message-box p {
  margin-bottom: 0;
}

/* フッター */
footer {
  text-align: center;
  padding: 25px 10px;
  color: #666;
  font-size: 0.85rem;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}

/* モバイル対応 */
@media (max-width: 640px) {
  header {
    padding: 1.8rem 1rem;
  }
  header h1 {
    font-size: 1.4rem;
  }
  header h1 .break-sp {
    display: block;
  }
  .hero-executive {
    height: 180px;
  }
  .hero-content h2 {
    font-size: 1.6rem;
  }
  .container {
    padding: 0;
  }
  .section-box {
    padding: 20px;
  }
  .executive-table,
  .executive-table tbody,
  .executive-table tr,
  .executive-table th,
  .executive-table td {
    display: block;
    width: 100%;
  }
  .executive-table th {
    border-right: none;
    border-bottom: none;
    padding-bottom: 4px;
    background-color: transparent;
  }
  .executive-table td {
    padding-top: 0;
    padding-bottom: 12px;
  }
  .executive-table tr:first-child td {
    border-top: none;
  }
}