/**
 * 共通スタイル（内部ページ用）
 * 背景・ヘッダー・メイン・セクション・テーブル・HBメニュー
 * ※背景周りにエラーがある場合は次回以降 parts/ で分離・修正する
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: 'IBM Plex Sans JP', sans-serif;
  background: linear-gradient(180deg, #f8f9ff 0%, #f0f2ff 50%, #e8ebff 100%);
  min-height: 100vh;
  color: #364153;
  overflow-x: hidden;
  position: relative;
}

/* ===== 共通コンテナ（表示領域） ===== */
.site-main {
  padding-top: 81px;
  position: relative;
  z-index: 1;
}

/* 共通コンテナ内では子要素の header 用 padding を重複させない */
.site-main .main-container {
  padding-top: 0;
}

/* ===== 背景装飾 ===== */
.bg-decorations {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  animation: bg-breathe 12s ease-in-out infinite;
  transform-origin: left bottom;
  will-change: transform;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
}

.bg-blob-1 {
  width: 1325px;
  height: 4249px;
  background: linear-gradient(180deg, #292668, #4a4b99);
  filter: blur(64px);
  opacity: 0.31;
  left: -1738px;
  top: -2050px;
  transform: rotate(34deg);
}

.bg-blob-2 {
  width: 1402px;
  height: 4497px;
  background: linear-gradient(180deg, #5151ca, #292668);
  filter: blur(64px);
  opacity: 0.33;
  left: -1008px;
  top: 1770px;
  transform: rotate(49deg);
}

.bg-blob-3 {
  width: 605px;
  height: 605px;
  background: linear-gradient(180deg, #7171e8, #5151ca);
  filter: blur(64px);
  opacity: 0.23;
  left: 374px;
  top: 917px;
}

.bg-blob-4 {
  width: 545px;
  height: 545px;
  background: linear-gradient(180deg, #292668, #7171e8);
  filter: blur(40px);
  opacity: 0.27;
  left: 301px;
  top: 2071px;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
}

.bg-circle-1 {
  width: 1161px;
  height: 1161px;
  left: -215px;
  top: 304px;
  border: 4px solid rgba(41, 38, 104, 0.4);
  opacity: 0.28;
}

.bg-circle-2 {
  width: 959px;
  height: 959px;
  left: 1px;
  top: 700px;
  border: 4px solid rgba(81, 81, 202, 0.4);
  opacity: 0.24;
}

.bg-circle-3 {
  width: 682px;
  height: 682px;
  left: 255px;
  top: 1134px;
  border: 4px solid rgba(41, 38, 104, 0.4);
  opacity: 0.14;
}

.bg-square {
  position: absolute;
  border-radius: 14px;
  filter: blur(15px);
  background: linear-gradient(180deg, #292668, #5151ca);
  opacity: 0.15;
}

.bg-square-1  { width: 150px; height: 150px; left: 1027px; top: 206px; }
.bg-square-2  { width: 165px; height: 165px; left: 76px;   top: 2886px; }
.bg-square-3  { width: 180px; height: 180px; left: 703px;  top: 2023px; }
.bg-square-4  { width: 195px; height: 195px; left: 1123px; top: 2701px; }
.bg-square-5  { width: 210px; height: 210px; left: 844px;  top: 2375px; }
.bg-square-6  { width: 225px; height: 225px; left: 394px;  top: 2374px; }
.bg-square-7  { width: 240px; height: 240px; left: 813px;  top: 1863px; }
.bg-square-8  { width: 255px; height: 255px; left: 892px;  top: 313px; }
.bg-square-9  { width: 270px; height: 270px; left: 368px;  top: 1333px; }

.bg-small-circle {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(180deg, #5151ca, #7171e8);
  filter: blur(40px);
  opacity: 0.15;
}

.bg-small-circle-1 { width: 268px; height: 268px; left: 827px; top: 760px; }
.bg-small-circle-2 { width: 277px; height: 277px; left: 659px; top: 1334px; }
.bg-small-circle-3 { width: 265px; height: 265px; left: 502px; top: 1919px; }
.bg-small-circle-4 { width: 300px; height: 300px; left: 322px; top: 2480px; }
.bg-small-circle-5 { width: 350px; height: 350px; left: 134px; top: 3034px; }

/* ===== ヘッダー（共通） ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 81px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 0.8px solid rgba(41, 38, 104, 0.1);
  box-shadow: 0px 10px 15px 0px rgba(0, 0, 0, 0.1), 0px 4px 6px 0px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

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

.site-header__logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0px 0px 0px 4px rgba(41, 38, 104, 0.2), 0px 25px 50px -12px rgba(0, 0, 0, 0.25);
  object-fit: cover;
}

.site-header__logo-text {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.75px;
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  text-decoration: none;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-header__menu {
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 14px;
}

.site-header__menu span {
  display: block;
  height: 2.67px;
  background: #292668;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.site-header__menu {
  position: relative;
  z-index: 210;
}

body.menu-open .site-header__menu span:nth-child(1) {
  transform: translateY(calc(8px + 2.67px / 2)) rotate(45deg);
}

body.menu-open .site-header__menu span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.menu-open .site-header__menu span:nth-child(3) {
  transform: translateY(calc(-8px - 2.67px / 2)) rotate(-45deg);
}

/* ===== フッター（共通） ===== */
.site-footer {
  background: rgba(255, 255, 255, 0.5);
  border-top: 0.8px solid rgba(41, 38, 104, 0.1);
  padding: 21px 0;
  margin-top: 40px;
}

.site-footer__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.site-footer__link {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: #4a5565;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer__link:hover {
  color: #292668;
  text-decoration: none;
}

/* ===== メインコンテンツ ===== */
.main {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  text-align: left;
}

/* 広めのレイアウト用（2x2グリッド・横並びカード等） */
.content-wide {
  max-width: 1240px;
  padding: 40px 40px 80px;
}

.page-title {
  margin: 40px 0;
  text-align: center;
}

/* ページメインタイトル（共通・10文字収まる可変サイズ） */
.page-main-title,
.page-title h1 {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 38px;
  line-height: 1.2;
  background: linear-gradient(180deg, #292668 0%, #5151ca 50%, #7171e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.title-underline {
  width: 400px;
  height: 5px;
  margin: 20px auto 0;
  display: block;
}

.section {
  margin: 70px 0 40px;
  max-width: none;
}

.section-title {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 60px;
  background: linear-gradient(180deg, #8888ff 0%, #6d6dcc 89.135%, #525299 180%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  margin-bottom: 4px;
}

.section-body {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 25px;
  line-height: 50px;
  color: #364153;
  text-align: left;
}

.section-body p {
  margin: 0;
}

.bullet-list {
  list-style: none;
  display: inline-block;
  text-align: left;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 60px;
  color: #364153;
}

.table-section {
  margin: 40px -150px;
  width: 1080px;
}

.exam-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  text-align: left;
}

.exam-table thead th {
  background: #292668;
  color: #fff;
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 60px;
  text-align: center;
  padding: 15px 20px;
  border: 1px solid #9299a4;
}

.exam-table tbody td {
  font-family: 'IBM Plex Sans JP', sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 54px;
  color: #364153;
  padding: 20px 30px;
  border: 1px solid #9299a4;
  vertical-align: top;
}

.exam-table tbody td.col-grade {
  font-weight: 700;
  font-size: 36px;
  line-height: 60px;
  color: #292668;
  text-align: center;
  white-space: nowrap;
}

.exam-table tbody td.col-topic {
  font-size: 36px;
  line-height: 54px;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .content { padding: 24px 24px 60px; }
  .page-main-title,
  .page-title h1 { font-size: 34px; }
  .title-underline { width: 280px; }
  .section-title { font-size: 32px; line-height: 48px; }
  .section-body { font-size: 22px; line-height: 38px; }
  .bullet-list { font-size: 22px; line-height: 38px; }
  .exam-table thead th { font-size: 24px; line-height: 36px; padding: 12px 16px; }
  .exam-table tbody td { font-size: 22px; line-height: 36px; padding: 14px 20px; }
  .exam-table tbody td.col-grade { font-size: 24px; line-height: 36px; }
  .exam-table tbody td.col-topic { font-size: 22px; }
}

@media (max-width: 768px) {
  .content { padding: 20px 16px 48px; }
  .page-main-title,
  .page-title h1 { font-size: 28px; line-height: 1.3; }
  .title-underline { width: 200px; }
  .section { margin: 28px auto; }
  .site-footer__nav { padding: 0 24px; gap: 24px; }
  .section-title { font-size: 24px; line-height: 36px; }
  .section-body { font-size: 18px; line-height: 30px; }
  .bullet-list { font-size: 18px; line-height: 30px; }
  .table-section { margin: 28px auto; }
  .exam-table { display: block; overflow-x: auto; }
  .exam-table thead th { font-size: 16px; line-height: 24px; padding: 10px 12px; white-space: nowrap; }
  .exam-table tbody td { font-size: 15px; line-height: 24px; padding: 10px 14px; }
  .exam-table tbody td.col-grade { font-size: 16px; }
  .exam-table tbody td.col-topic { font-size: 15px; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 16px; }
  .site-header__logo-img { width: 40px; height: 40px; }
  .site-header__logo-text { font-size: 20px; }
  .site-header__menu { width: 40px; height: 40px; gap: 6px; }
}

@media (max-width: 480px) {
  .page-main-title,
  .page-title h1 { font-size: 24px; line-height: 1.3; }
  .section-title { font-size: 20px; line-height: 30px; }
  .section-body { font-size: 16px; line-height: 26px; }
  .bullet-list { font-size: 16px; line-height: 26px; }
  .exam-table thead th { font-size: 14px; padding: 8px 10px; }
  .exam-table tbody td { font-size: 14px; padding: 8px 12px; }
}

@keyframes bg-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* ===== HB Menu ===== */
.hb-nav-separator { width: 100%; height: 12px; display: block; margin: 4px 0; }
.hb-nav-separator svg { width: 100%; height: 100%; }
.hb-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  text-decoration: none;
  transition: padding-left 0.2s;
  border-bottom: none !important;
  border-image: none !important;
}
.hb-nav-item:not(:last-child) { border-image: none !important; }
.hb-image-area {
  position: relative;
  flex: 1;
  min-height: 356px;
  overflow: hidden;
  margin: 0 !important;
}
.hb-image-placeholder { display: none !important; }
.hb-bg-water {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  overflow: hidden;
  pointer-events: none;
}
.hb-bg-water img {
  position: absolute;
  width: 155%;
  height: 148%;
  left: -43%;
  top: -45%;
  object-fit: cover;
  max-width: none;
}
.hb-main-image {
  position: absolute;
  bottom: 0;
  left: 50px;
  width: 600px;
  height: 356px;
  max-width: calc(100% - 100px);
}
.hb-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hb-image-area { min-height: 200px !important; margin: 0 !important; }
  .hb-main-image { left: 24px; width: calc(100% - 48px); max-width: none; height: auto; aspect-ratio: 600/356; }
}
