/* ------------------------------
 * ベース
 * ------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  color: #1a1a1a;
  background-color: #f5f7fb;
  line-height: 1.8;
  padding-top: 140px;
  top: 0 !important;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1200px, 100% - 40px);
  margin: 0 auto;
}

a {
  text-decoration: none;
}

html,
body {
  height: 100%;
  color: var(--color-text);
}

body {
  display: flex;
  flex-direction: column;
  padding-top: var(--header-pc-height);
}

body.admin-bar .site-header {
  top: 32px;
}

main {
  flex: 1;
}

footer {
  flex-shrink: 0;
}

:root {
  --header-pc-height: 140px;
  --header-sp-height: 60px;
  --color-text: #1a1a1a;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 985px) {
  body {
    padding-top: var(--header-sp-height);
  }

  body.admin-bar .site-header {
    top: 46px;
  }
}

/* =========================
   外部リンク ↗ アイコン
========================= */
.p-page-link {
  position: relative;
  display: inline-block;
  padding-right: 22px;
  color: #8a0b0b;
  text-decoration: none;
}

.p-page-link.is-external {
  position: relative;
  padding-right: 1.6em;
}

.header-nav .mega-list a {
  position: relative;
}

.header-nav .mega-list a.p-page-link.is-external:not(.is-pdf)::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.p-page-link.is-external:hover::after {
  opacity: 0.85;
}

.header-nav .mega-list a.p-page-link.is-external:not(.is-pdf)::after {
  background-image: url("../img/btn-square-deco.png");
}

.p-slife-list .p-page-link.is-external::after,
.p-news-sidebar-list .p-page-link.is-external::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-image: url(../img/btn-square-deco-black.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.p-slife-links a.p-page-link.is-pdf::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background-image: url(../img/icon/PDFicon_BK.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.p-slife-box ul li:hover .p-page-link.is-external::after {
  background-image: url("../img/btn-square-deco.png");
}

.p-slife-box ul li:hover .p-page-link.is-pdf::after {
  background-image: url("../img/icon/PDFicon_WH.png");
}

.footer-sitemap__list li a.p-page-link.is-external::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  background-image: url("../img/btn-square-deco.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.footer-sitemap__list li a.p-page-link.is-pdf::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 6px;
  vertical-align: middle;
  background-image: url("../img/icon/PDFicon_WH.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ------------------------------
 * ヘッダー
 * ------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #e0e4ea;
}

.header-top {
  border-bottom: 1px solid #ccc;
  background: #fff;
}

.header-top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
  padding: 12px 0;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.school-logo {
  width: 260px;
  height: auto;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-links a {
  color: #8a0b0b;
  font-size: 14px;
  border: 1px solid #8a0b0b;
  padding: .3rem 1rem;
  border-radius: 50vw;
  background-color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.header-links a:hover {
  color: #fff;
  background-color: #8a0b0b;
}

/* 翻訳 */

.gt_float_switcher {
  border: 1px solid #8a0b0b;
  box-shadow: none !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
  padding: .1rem .5rem !important;
}

.lang-switcher {
  margin-top: 10px;
}

.lang-switcher {
  display: flex !important;
  align-items: center;
  margin-left: 10px;
  height: 32px;
  overflow: visible;
}

.safari-notice {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #444;
  background: #fff;
  border: 1px solid #8a0b0b;
  padding: 4px 10px;
  border-radius: 4px;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
}

@media screen and (max-width: 959px) {
  .lang-switcher {
    position: absolute;
    top: 45px;
    left: 15px;
    height: auto !important;
    width: calc(100% - 30px);
    z-index: 5;
    margin-left: 0;
    margin-top: 0;
  }

  .safari-notice {
    max-width: calc(100% - 70px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 3px 8px;
  }
}

@media screen and (min-width: 960px) {
  .lang-switcher {
    position: static;
    display: flex !important;
    margin-top: 0;
  }

  .safari-notice {
    white-space: nowrap;
    max-width: none;
  }
}

.notice-icon {
  background: #8a0b0b;
  color: #fff;
  min-width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  text-align: center;
  line-height: 14px;
  margin-right: 6px;
  font-weight: bold;
  font-size: 9px;
}

.lang-switcher .gtranslate_wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  height: 32px !important;
}

.gt_selector {
  height: 32px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  padding: 0 5px !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
}

.gt_float_switcher {
  border: 1px solid #8a0b0b;
  box-shadow: none !important;
}

.gt_float_switcher .gt-selected .gt-current-lang {
  padding: .1rem .5rem !important;
}

/* ------------------------------
 * SNS
 * ------------------------------ */
.header-sns {
  position: relative;
}

.sns-dropdown {
  display: none;
  position: absolute;
  top: 120%;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  list-style: none;
  margin: 0;
  min-width: 200px;
  z-index: 2000;
}

.header-sns.is-open .sns-dropdown {
  display: block;
}

.sns-item {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
}

.sns-item:last-child {
  margin-bottom: 0;
}

.sns-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
  border-radius: 50vw;
  background-position-y: center;
}

.sns-instagram::before {
  background-image: url("../img/sns/instagram.svg");
}

.sns-facebook::before {
  background-image: url("../img/sns/facebook.svg");
}

.sns-x::before {
  background-image: url("../img/sns/x.svg");
}

.sns-youtube::before {
  background-image: url("../img/sns/youtube.svg");
}

.sp-only {
  display: none;
}

.sp-sns-block {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.sp-sns-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #fff;
}

.sp-sns-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-sns-list li {
  margin-bottom: 10px;
}

.sp-sns-list li {
  margin-bottom: 10px;
}

.sns-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sns-icon::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

.sns-instagram .sns-icon::before {
  background-image: url("../img/sns/instagram.svg");
}

.sns-facebook .sns-icon::before {
  background-image: url("../img/sns/facebook.svg");
}

.sns-youtube .sns-icon::before {
  background-image: url("../img/sns/youtube.svg");
}

.sns-x .sns-icon::before {
  background-image: url("../img/sns/x.svg");
}

@media (max-width: 985px) {

  .sp-only {
    display: block;
  }

  /* PC側SNS非表示 */
  .header-links .header-sns {
    display: none;
  }

}

/* グローバルナビ */
.header-nav {
  background: #8a0b0b;
  top: 0;
  position: relative;
  z-index: 10;
}

.header-nav-list {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  align-items: center;
  min-height: 48px;
}

.header-nav-list a {
  color: #ffffff;
  font-size: 15px;
  padding: 6px 4px;
  display: block;
  white-space: nowrap;
}

.header-nav .menu-item {
  position: relative;
}

/* ------------------------------
 * メガメニュー（親）
 * ------------------------------ */

.menu-item.has-mega {
  position: relative;
}

.menu-item.has-mega::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #8a0b0b;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 1001;
}

.menu-item.has-mega:hover .mega-menu,
.menu-item.has-mega:hover::after {
  opacity: 1;
  visibility: visible;
}

.mega-inner {
  padding: 16px 0;
  min-width: 240px;
}

.mega-col {
  position: relative;
}

.mega-title {
  color: #fff;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
}

/* .mega-col:hover .mega-title {
  background: rgba(255, 255, 255, .08);
} */

.header-nav .mega-list a.p-page-link.is-external {
  padding-right: 2.2em;
}

.header-nav .mega-list a.p-page-link.is-external::after {
  right: 20px;
  width: 14px;
  height: 14px;
  background-image: url("../img/btn-square-deco.png");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

/* PDFリンク */
.header-nav .mega-list a.p-page-link.is-pdf {
  padding-right: 2.2em;
}

.header-nav .mega-list a.p-page-link.is-pdf::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.header-nav .mega-list a.p-page-link.is-pdf::after {
  background-image: url("../img/icon/PDFicon_WH.png");
}

/* ------------------------------
 * 孫メニュー（右展開）
 * ------------------------------ */
.mega-list {
  position: absolute;
  top: 0;
  left: 100%;
  background: #8a0b0b;
  padding: 10px 0;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 110;
}

.mega-col:hover .mega-list {
  opacity: 1;
  visibility: visible;
}

.mega-list li {
  list-style: none;
}

.mega-list a {
  display: block;
  padding: 14px 20px;
  color: #fff;
  font-size: 14px;
}

.mega-list a:hover {
  opacity: .6;
}

.mega-col.is-reverse .mega-list {
  left: auto;
  right: 100%;
}

/* ------------------------------
 * アクティブ表示（親・子・孫）
 * ------------------------------ */
.header-nav-list>li.is-active>a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

/* パンくずリスト */
.bread {
  padding: 1rem;
  padding-left: 2rem;
}

.bread a {
  text-decoration: none;
  color: #998787;
}

.bread a:hover {
  color: #8a0b0b;
  font-weight: 700;
}

/* ------------------------------
 * SPメニュー
 * ------------------------------ */

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  width: 40px;
  height: 32px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #8a0b0b;
  transition: .3s;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 10px;
}

.hamburger span:nth-child(3) {
  bottom: 0;
}


.hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg);
  top: 12px;
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 8px;
}

@media (max-width: 985px) {

  .header-sns:hover .sns-dropdown {
    display: block;
  }

  .header-links {
    gap: 8px;
  }

  .header-top-inner {
    height: auto;
    padding: 12px 0;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2rem;
    position: relative;
    flex-wrap: wrap;
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 0;
    /* top: 50%; */
    bottom: 0;
    transform: translateY(-50%);
    width: 32px;
    height: 30px;
    padding: 8px;
  }

  .hamburger span {
    height: 2px;
    margin: 4px 0;
  }

  .hamburger:hover {
    opacity: .7;
  }

  .school-logo {
    width: 200px;
  }

  .header-links {
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-links a.sp-move {
    display: none;
  }

  .header-nav-list {
    flex-direction: column;
    height: auto;
  }

  .mega-menu,
  .mega-list {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .menu-item.is-open .mega-menu {
    display: block;
  }

  .header-nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .mega-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .menu-item.is-open .mega-menu {
    display: block;
  }

  .mega-list {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
  }

  .mega-col.is-open .mega-list {
    display: block;
  }

  .mega-list a {
    display: block;
    padding: .5em 1em;
    padding-left: 2em;
    color: #fff;
    font-size: 14px;
  }

  .header-nav-list>li.is-active>a::after {
    content: none;
  }

  .header-nav-list>li.is-active>a {
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
    font-weight: 700;
  }

  .header-nav-list>li.is-active>a {
    background: rgba(255, 255, 255, .12);
  }

  .mega-title {
    margin: 0;
    background-color: #fff;
    color: #8a0b0b;
    padding: .2em 1em;
  }

  .header-nav {
    display: none;
  }

  .header-nav.is-open {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-sp-height);
    height: calc(100vh - var(--header-top-h, 72px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .header-nav.is-open .header-nav-list {
    padding-bottom: 80px;
  }

  .header-nav-list {
    flex-direction: column;
    padding: 12px 0;
  }

  .header-nav-list>li>a {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .menu-item.has-mega>a::after {
    content: "＋";
    float: right;
  }

  .menu-item.is-open>a::after {
    content: "－";
  }

  .mega-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
  }

  .menu-item.is-open .mega-menu {
    display: block;
  }

  .mega-list {
    position: static;
    display: block;
  }
}

@media (max-width: 485px) {
  .header-top-inner {
    flex-direction: column;
  }

  .bread {
    margin-top: 20px;
    padding-left: 1rem;
  }
}

@media screen and (max-width: 477px) {
  .header-nav.is-open {
    top: 112px;
  }
}

/* ------------------------------
 * コンテナ
 * ------------------------------ */
.l-inner {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.l-header__branding {
  display: flex;
  flex-direction: column;
}

.l-header__site-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.l-header__tagline {
  font-size: 0.75rem;
  margin: 0.2rem 0 0;
}

.p-global-nav,
.p-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.p-global-nav a,
.p-footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.header-nav-list>li.menu-item-has-children:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
}

/* 区切り線（参考サイト再現） */
.header-nav-list .sub-menu li:not(:first-child)::before {
  content: "";
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .3);
  position: absolute;
  top: 0;
  left: 0;
}

/* hover */
.header-nav-list .sub-menu a:hover {
  background-color: #8a0b0b;
}



/* ------------------------------
 * 共通セクション
 * ------------------------------ */

section {
  padding: 1rem 0;
}

.l-main {
  padding-bottom: 4rem;
}

.p-section {
  padding: 3rem 0;
}

.p-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.p-section__title {
  font-size: 1.6rem;
  margin: 0;
}

.p-section__more {
  font-size: 0.9rem;
}

/* 下からフェードイン */
.js-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-up.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
 * TOPページ
 * ------------------------------ */

/* メインビジュアル */

.hero {
  background: linear-gradient(135deg, #e5f2ff, #f5fbff);
  padding: 48px 0 56px;
  margin-top: -32px;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 80%;
  margin: auto;
}

.hero-text {
  flex: .78;
  /* flex: 1; */
  /* z-index: 10; */
}

.hero-tagline {
  font-size: 14px;
  font-weight: 600;
  color: #1d679c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.hero-desc {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 15px;
}


.hero-visual {
  flex: 1;
  position: relative;
  z-index: 5;
}

.hero-image-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: 16px;
  background: #d0e3f7;
  background-image: url(../img/someyaoka-Mainrogo.png);
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #335;
  font-weight: 600;
}

/* ボタン */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 50vw;
  font-size: 14px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn.primary {
  background-color: #1d679c;
  border: 1px solid #1d679c;
  color: #fff;
}

.btn.primary:hover {
  background-color: #fff;
  color: #1d679c;
}

.btn.secondary {
  background-color: #008040;
  border: 1px solid #008040;
  color: #fff;
}

.btn.secondary:hover {
  background-color: #fff;
  color: #008040;
}

.btn.tertiary {
  background-color: #1a1a1a;
  border: 1px solid #1a1a1a;
  color: #fff;
}

.btn.tertiary:hover {
  background-color: #fff;
  color: #1a1a1a;
}

.btn.teaching-practice {
  background-color: #8a0b0b;
  border: 1px solid #8a0b0b;
  color: #fff;
}

.btn.teaching-practice:hover {
  background-color: #fff;
  color: #8a0b0b;
}

.btn.primary:hover,
.btn.secondary:hover,
.btn.tertiary:hover,
.btn.teaching-practice:hover {
  font-weight: 700;
  /* font-size: 1rem; */
  text-decoration: none;
}

/* スライダー部分 */
.hero-slider {
  width: 600px;
  max-width: 100%;
  height: 380px;
  /* border-radius: 16px; */
  overflow: hidden;
  flex: .9;
}

.hero-slider img {
  /* object-fit: contain !important; */
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  border-radius: 16px !important;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    width: 90%;
  }

  .hero-slider {
    width: 100%;
    margin-top: 24px;
  }
}

/* お知らせ */

.news-section {
  background: #f6f8fb;
}

.report-section {
  background: rgba(138, 11, 11, .1);
}

.section-news {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #e1e6ee;
}

.report-section .news-item {
  border-bottom: 1px solid #8a0b0b;
}

.news-item:last-child {
  border-bottom: none;
}

a.link-more {
  font-size: .9rem;
  padding: .6em 2em;
  background-color: #fff;
  border: 1px solid #8a0b0b;
  border-radius: 50vw;
  color: #8a0b0b;
  font-weight: 600;
}

a.link-more:hover {
  background-color: #8a0b0b;
  color: #fff;
}

.news-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  border-radius: 20px;
  margin-right: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.news-badge:hover {
  opacity: 0.85;
}

.news-badge-wrap .c-colored-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .1rem;
}

.news-title {
  color: #222;
  font-size: 15px;
  line-height: 1.6;
  text-decoration: none;
}

.news-title:hover {
  text-decoration: underline;
}

.news-date {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .news-date {
    text-align: left;
  }

  .news-title {
    order: 3;
    font-weight: 600;
  }
}

/* =========================
   染谷丘ってどんな学校？
========================= */

.features-section {
  background-color: #ffffff;
}

.features-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 32px;
  text-align: left;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* カード */
.feature-card {
  background-color: #f6f8fb;
  border-radius: 16px;
  padding: 24px 26px;
}

/* タイトル */
.feature-card__title {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #8a0b0b;
}

/* 説明文 */
.feature-card__desc {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
  margin: 0;
}

/* SP対応 */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features-title {
    font-size: 22px;
  }
}

/* =========================
   8つのガイド
========================= */

.guides-section {
  background: #fff;
}

.guides-grid.guides-8 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* カード本体 */
.guide-card {
  display: block;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e6ebf2;
  background: #fff;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

/* 中身 */
.guides-grid_box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.guides-grid_img {
  flex: 0 0 96px;
}

.guides-grid_img img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.guides-grid_txt p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

/* =========================
   レスポンシブ
========================= */

@media (max-width: 960px) {
  .guides-grid.guides-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .guides-grid.guides-8 {
    grid-template-columns: 1fr;
  }

  .guides-grid_box {
    align-items: center;
  }

  .guides-grid_img {
    flex: 0 0 80px;
  }

  .guides-grid_img img {
    width: 80px;
    height: 80px;
  }
}

/* =========================
   生徒の声
========================= */

.voices-section {
  background-color: #f5f7fa;
}

.voices-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

ul.voices-list {
  padding-left: 0;
}

li.voice-item {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.voices-text {
  flex: 1;
}

.voices-text h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.voices-message {
  line-height: 1.8;
  margin-bottom: 16px;
}

.small-note {
  font-size: 13px;
  color: #666;
}

.voice-icon img {
  width: 26px;
  max-width: 26px;
  height: auto;
}

/* 画像エリア */
.voices-photos {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.voices-photo {
  background-color: #dde6f2;
  border-radius: 12px;
  overflow: hidden;
}

.voices-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3枚目を横長に */
/* .voices-photo:nth-child(3) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
} */

/* =========================
   レスポンシブ
========================= */

@media (max-width: 960px) {
  .voices-inner {
    flex-direction: column;
  }

  .voices-photos {
    grid-template-columns: 1fr;
  }

  .voices-photo:nth-child(3) {
    grid-column: auto;
  }
}

/* ------------------------------
 * SOMEYAレポート
 * ------------------------------ */

.someya-report-section {
  background: #f6eeee;
  padding: 80px 0;
}

.someya-report-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.someya-report-box:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.someya-report-image {
  flex: 0 0 320px;
}

.someya-report-image img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.someya-report-content {
  flex: 1;
}

.someya-report-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.someya-report-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.someya-report-button {
  display: inline-block;
  background: #8a0b0b;
  border: 1px solid #8a0b0b;
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.someya-report-button:hover {
  color: #8a0b0b;
  background: #fff;
}

.someya-report-years {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.someya-report-years a {
  display: block;
  padding: .4rem 1rem;
  background: #ffffff;
  border: 1px solid #8a0b0b;
  border-radius: 50vw;
  text-decoration: none;
  transition: all 0.25s ease;
  font-weight: 600;
  color: #8a0b0b;
  line-height: 1.0;
}

.someya-report-years a span {
  display: block;
  font-weight: 400;
  margin-top: 4px;
}

.someya-report-years a:hover {
  background: #8a0b0b;
  color: #fff;
}

.someya-report-years a:hover span {
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 1024px) {

  .someya-report-box {
    gap: 40px;
    padding: 32px;
  }

  .someya-report-years {
    flex: 0 0 180px;
  }

}

@media (max-width: 768px) {

  .someya-report-box {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .someya-report-image {
    flex: none;
    width: 100%;
  }

  .someya-report-years {
    width: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .someya-report-years a {
    flex: 1 1 45%;
    text-align: center;
    line-height: 1.0;
  }

}


/* ------------------------------
 * ページ / 投稿
 * ------------------------------ */

.p-page__title,
.p-single__title,
.p-archive-title {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
}

.p-page__content,
.p-single__content {
  font-size: 0.95rem;
}

.p-post-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.p-post-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  background: #fff;
}

/* ------------------------------
  進路・探究セクション
 * ------------------------------ */

.career-highlight {
  background: #fff;
  padding: 80px 0;
}

.career-highlight h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 48px;
  font-weight: 700;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 40px;
}

.career-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #8a0b0b;
}

.career-item p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.career-highlight .btn {
  display: inline-block;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .career-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .career-highlight {
    padding: 60px 0;
  }
}

/* ------------------------------
 * フッター
 * ------------------------------ */

.l-footer {
  padding: 1.2rem 0 1.5rem;
  background: #1b2430;
  color: #fff;
}

.l-footer__top {
  width: 90%;
  margin: auto;
  /* max-height 削除（重要） */
}

.l-footer__inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.l-footer__info {
  flex: 0 0 360px;
}

.l-footer__navWrap {
  flex: 1;
  min-width: 0;
}

.l-footer__copy {
  font-size: 0.8rem;
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 780px) {
  .l-footer__inner {
    display: block;
  }

  .l-footer__navWrap {
    display: none;
  }
}

/* ------------------------------
 * フッターロゴ
 * ------------------------------ */

.l-footer__schoolLogo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.l-footer__schoolLogo img {
  max-height: 60px;
}

.l-footer__schoolText {
  font-weight: 700;
  letter-spacing: .05em;
  font-size: 1.2rem;
}

/* ------------------------------
 * TEL / FAX
 * ------------------------------ */

.l-footer__telFax a {
  color: #fff;
}

.l-footer__telFax a:hover,
.footer-sitemap__title a:hover {
  font-weight: 900;
  background-color: #fff;
  color: #8a0b0b;
  border-radius: 50vw;
  padding: .2em 1em;
}

/* ------------------------------
 * Google Map（修正点）
 * ------------------------------ */

.l-footer__map {
  margin-top: 1rem;
}

.l-footer__mapEmbed iframe {
  width: 100%;
  height: 240px;
  border: 0;
}

/* ------------------------------
 * フッター サイトマップ
 * ------------------------------ */

.footer-sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.footer-sitemap__block {
  font-size: 13px;
}

.footer-sitemap__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-sitemap__title a {
  color: #fff;
  text-decoration: none;
}

.footer-sitemap__list,
.footer-sitemap__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-sitemap__list {
  padding-left: 1rem;
}

.footer-sitemap__list li {
  position: relative;
  padding-left: 0.9em;
  margin-bottom: 4px;
}

.footer-sitemap__list li a {
  position: relative;
  display: inline-block;
  padding-left: 1.4em;
}

.footer-sitemap__list li a::before {
  content: "ー";
  position: absolute;
  left: 0;
  top: 0;
}

.footer-sitemap__list a {
  color: #ddd;
  text-decoration: none;
}

.footer-sitemap__list a:hover {
  text-decoration: underline;
}

/* 孫ページ */
.footer-sitemap__sublist {
  margin-top: 2px;
  padding-left: 10px;
}

.footer-sitemap__sublist li {
  font-size: 12.5px;
}

.footer-sitemap__sublist a {
  color: #aaa;
}

/* ------------------------------
 * SP対応
 * ------------------------------ */

@media (max-width: 768px) {

  .l-footer__inner {
    flex-direction: column;
    gap: 1.5rem;
  }

  .l-footer__info {
    width: 100%;
  }

  .footer-sitemap {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .l-footer__mapEmbed iframe {
    height: 240px;
  }
}


/* ボタン */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.c-btn--primary {
  background: linear-gradient(135deg, #0060cd, #dd51cd);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 96, 205, 0.25);
}

.c-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 96, 205, 0.35);
}

.c-btn--outline {
  border-color: #0060cd;
  color: #0060cd;
  background: #fff;
}

.c-btn--outline:hover {
  background: #0060cd;
  color: #fff;
}

/* Hero */


.p-hero__bgGradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(0, 96, 205, 0.2), transparent 55%),
    radial-gradient(circle at bottom right, rgba(221, 81, 205, 0.18), transparent 55%);
  pointer-events: none;
}

.p-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.p-hero__image img {
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  object-fit: cover;
}

.p-hero__subtitle {
  margin: 0 0 20px;
  color: #555;
}

.p-hero__ctaButtons {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* セクション */
.p-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.p-section-header__title {
  font-size: 22px;
  border-left: 4px solid #0060cd;
  padding-left: 10px;
}

.p-section-header__more a,
.p-section-header__more {
  font-size: 13px;
  color: #0060cd;
  text-decoration: none;
}

/* お知らせ */
.p-news {
  padding: 40px 0;
}

.p-news__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-news__item {
  border-bottom: 1px solid #e0e4f0;
}

.p-news__link {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  text-decoration: none;
  color: inherit;
}

.p-news__date {
  font-size: 13px;
  color: #666;
}

.p-news__title {
  font-size: 14px;
}

/* 特徴 */
.p-features {
  padding: 48px 0;
}

.p-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.p-feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.p-feature-card__title {
  font-size: 16px;
  margin-top: 0;
}

.p-feature-card__link {
  font-size: 13px;
  color: #0060cd;
  text-decoration: none;
}

/* ガイド */
.p-guides {
  padding: 48px 0 56px;
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
}

.p-guides__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.p-guide-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.p-guide-card__title {
  margin: 0 0 8px;
  font-size: 15px;
}

.p-guide-card__text {
  font-size: 13px;
  color: #555;
}

/* レポート */
.p-report {
  padding: 40px 0 60px;
}

.p-report__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.p-report-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.p-report-card__date {
  font-size: 12px;
  color: #777;
}

/* ページ */
.p-page {
  padding: 40px 0 60px;
}

.p-page__title {
  margin: 0 0 12px;
  font-size: 24px;
}

.p-page__lead {
  margin: 0 0 24px;
  color: #555;
}

.p-page__body {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   学校生活ページ
========================================================= */
.p-page-content__inner a:link:hover {
  /* color: #8a0b0b; */
  color: #fff;
}

/* ---------------------------
   ページタイトル（左に黒ライン）
--------------------------- */
.p-page-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 24px;
}

.p-page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: #000;
}

.p-slife-hero {
  position: relative;
  width: 100%;
  margin-bottom: 90px;
}

/* 画像（PCでは後ろに表示される大きい領域） */
.p-slife-hero__img img {
  width: 80%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin-left: auto;
}

.p-slife-hero__text {
  position: absolute;
  left: 0;
  top: 70%;
  transform: translateY(-50%);
  width: 50%;
  background: #fff;
  padding: 20px 44px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 10;
}

.p-slife-hero__text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 22px;
  line-height: 1.6;
}

.p-slife-hero__text p {
  line-height: 1.9;
  color: #333;
}

/* ---------------------------
   カードグリッド
--------------------------- */
.p-slife-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

/* 各カテゴリボックス（上線デザイン） */
.p-slife-box {
  padding-top: 24px;
  border-top: 2px solid #000;
}

h3.p-slife-box__title {
  text-wrap: nowrap;
  font-size: 1.1rem;
  text-align: center;
}

.p-slife-box__title {
  background-color: #fff;
  border-left: 3px dotted rgba(0, 0, 0, 0.1);
  border-right: 3px dotted rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}


a.p-slife-box {
  text-decoration: none;
  color: #1a1a1a;
}

/* リスト */
.p-slife-box ul {
  list-style: none;
  padding-left: 1.6rem;
  margin: 0;
}

.p-slife-box ul li {
  margin-bottom: 8px;
  padding-left: 1.6rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #99030f 0%, #99030f 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s ease, color 0.3s ease, font-weight 0.3s ease;
}

.p-slife-box ul li a {
  text-decoration: none;
  color: #1a1a1a;
}

.p-slife-box ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-color: #99030f;
  border-radius: 50%;
}

.p-slife-box ul li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.p-slife-box ul li:hover {
  background-size: 100% 100%;
  font-weight: 700;
}

.p-slife-box ul li:hover,
.p-slife-box ul li:hover a {
  color: #fff;
}

.p-slife-box ul li:hover::after {
  border-top-color: #fff;
  border-right-color: #fff;
}

/* ---------------------------
   SP レスポンシブ
--------------------------- */
@media (max-width: 768px) {

  .p-slife-hero {
    margin-bottom: 40px;
  }

  .p-slife-hero__text {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
    padding: 32px 24px;
    box-shadow: none;
  }

  .p-slife-hero__img img {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .p-page-title {
    font-size: 28px;
    padding-left: 18px;
  }

  .p-page-title::before {
    height: 26px;
  }

  .p-slife-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .p-slife-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .p-slife-box {
    border-top-width: 1.5px;
  }
}

/* 日課表 */
.p-schedule {
  margin: 3rem 0;
}

.p-schedule__title {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.p-schedule-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
}

.p-schedule-table th,
.p-schedule-table td {
  border: 2px solid #000;
  padding: 10px 12px;
  text-align: center;
}

.p-schedule-table thead th {
  font-size: 1.1rem;
  font-weight: 700;
}

.p-schedule-table td:first-child,
.p-schedule-table td:nth-child(3) {
  white-space: nowrap;
  font-weight: 600;
}

.p-schedule__pdf {
  margin: 1rem 2rem;
}

/* SP */
@media (max-width: 768px) {
  .p-schedule-table {
    font-size: 13px;
  }
}

/* ====================
   お知らせ一覧
==================== */

.p-news-archive {
  padding: 40px 0 60px;
}

.p-news-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 48px;
}

.p-news-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.p-news-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
}

.p-news-card {
  transition: transform .25s ease, box-shadow .25s ease;
}

.p-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.p-news-card:hover .p-news-card__title {
  color: #8a0b0b;
}

.p-news-card__link {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.p-news-card__thumb {
  flex-shrink: 0;
}

.p-news-card__thumb img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.p-news-card__body {
  flex: 1;
  padding: .6rem 1rem;
  /* display: flex;
  flex-direction: column; */
}

.date_box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.p-news-card__date {
  font-size: 14px;
  color: #666;
  line-height: 1;
  white-space: nowrap;
}

.p-news-card__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-news-card__title {
  font-size: clamp(16px, 4vw, 18px);
  margin: 4px 0 0;
  font-weight: 700;
  line-height: 1.4;
}

@media (max-width: 768px) {

  .p-news-card__thumb img {
    width: 100%;
    height: auto;
  }

  .p-news-card {
    flex-direction: column;
  }

}


/* ====================
   ページネーション（帯＋丸）
==================== */

.p-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.p-pagination ul {
  list-style: none;
  margin: 0;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f2f2f2;
  border-radius: 999px;
}

.p-pagination li {
  display: flex;
}

.p-pagination a,
.p-pagination span {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 14px;
  text-decoration: none;
  color: #8a0b0b;
  border: none;
  background: transparent;
  transition: all 0.2s ease;
}

.p-pagination a:hover {
  background: rgba(138, 11, 11, 0.12);
}

.p-pagination .current {
  background-color: #8a0b0b;
  color: #fff;
  font-weight: 700;
}

.p-pagination .prev a,
.p-pagination .next a {
  font-size: 16px;
}

@media (max-width: 768px) {
  .p-pagination ul {
    gap: 6px;
    padding: 8px 14px;
  }

  .p-pagination a,
  .p-pagination span {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
}


/* サイドバー */

.p-news-sidebar-section {
  margin-bottom: 40px;
}

.p-news-sidebar__title {
  font-size: 18px;
  margin-bottom: 12px;
  font-weight: 700;
}

.p-news-archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-news-archive-list li {
  margin-bottom: 8px;
}

.p-news-archive-list a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  color: #0060cd;
  text-decoration: none;
}

.p-news-archive-list .current-cat>a,
.p-news-archive-list .current-cat-parent>a {
  background: #8a0b0b;
  color: #fff;
  font-weight: 700;
}

a.p-news-back-button {
  background-color: #8a0b0b;
  border: 1px solid #8a0b0b;
  padding: .2rem 1rem;
  border-radius: 50vw;
  color: #fff;
}

a.p-news-back-button:hover {
  background-color: #fff;
  color: #8a0b0b;
  font-weight: 700;
}

/* ===== 現在の年度 ===== */
.p-news-archive-list li.is-current>a {
  background: #8a0b0b;
  color: #fff;
  font-weight: 700;
}

.c-colored-tag {
  display: inline-block;
  padding: 1px 10px;
  font-size: 12px;
  border-radius: 4px;
  margin-right: 6px;
  font-weight: 500;
}

/* SP対応 */

@media (max-width: 768px) {

  .p-news-layout {
    grid-template-columns: 1fr;
  }

  .p-news-card__link {
    flex-direction: column;
    padding: 16px;
  }

  .p-news-card__thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
}

/* =========================================================
   お知らせ詳細
========================================================= */
.p-single__box {
  padding: 2rem 1rem;
  background-color: #fff;
}

.p-single__meta-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 12px;
}

.p-single__date {
  color: #666;
  line-height: 1;
  white-space: nowrap;
}

/* カテゴリ表示 */
.p-single__cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-single__cats .p-news-card__cat {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 50px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.p-single__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.p-single__body {
  width: 90%;
  margin: auto;
  padding: 2rem;
}

span.p-single__title_txt {
  padding: 1rem 2rem;
  border-top: 2px solid #99030f;
  border-bottom: 2px solid #99030f;
  display: inline-block;
}

.p-single__nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 3rem;
}

.p-single__nav-prev {
  text-align: left;
}

.p-single__nav-prev a:hover {
  color: #8a0b0b;
  font-weight: 700;
}

.p-single__nav-archive {
  text-align: center;
  margin-top: 40px;
}

.p-single__nav-archive a {
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  background-color: #fff;
  border: 1px solid #1a1a1a;
  padding: .6rem 1rem;
  border-radius: 50vw;
}

.p-single__nav-archive a:hover {
  color: #fff;
  background-color: #1a1a1a;
}

.p-single__nav-next {
  text-align: right;
}

.p-single__nav-next a:hover {
  color: #8a0b0b;
  font-weight: 700;
}


/* ------------------------------
 * 表 + 自由記載_テンプレ
 * ------------------------------ */
.page.page-table,
.page.page-free {
  width: 90%;
  /* min-width: 1200px; */
  max-width: 1200px;
  margin: auto;
  margin-bottom: 60px;
  padding-top: 40px;
}

h1.page-title {
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 24px;
}

h1.page-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: #000;
}

.data-table {
  width: 80%;
  border-collapse: collapse;
  margin: 2rem auto;
}

.data-table th,
.data-table td {
  border: 1px solid #ccc;
  padding: 8px;
}

.data-table th {
  width: 20%;
  background: #e6f4ff;
}

.free-text {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
}

.free-text p {
  margin: 0 0 1em;
}

.free-text ul,
.free-text ol {
  margin: 0 0 1em 1.5em;
  padding: 0;
}

.free-text li {
  margin-bottom: 0.5em;
}

.free-text strong {
  font-weight: 700;
}

.free-text a {
  color: #0047ab;
  text-decoration: underline;
}


/* ==============================
 * 沿革
 * ============================== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table th,
.history-table td {
  border: 1px solid #777;
  padding: 8px 12px;
  vertical-align: top;
}

.history-table td:nth-child(1),
.history-table td:nth-child(2) {
  width: 90px;
  text-align: center;
  white-space: nowrap;
}

.era-row th {
  font-weight: bold;
}

/* ==========================
 年表（公的文書スタイル）
========================== */

.p-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.9;
  background: #fff;
}

.p-history-table td,
.p-history-table th {
  border: 1px solid #999;
  padding: 10px 12px;
  vertical-align: top;
}

.p-history-era th {
  font-weight: 700;
  text-align: left;
  font-size: 15px;
}

.p-history-ad {
  width: 80px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.p-history-jp {
  width: 120px;
  font-weight: 700;
  white-space: nowrap;
}

.p-history-desc {
  font-weight: 400;
}

.p-history-desc strong {
  font-weight: 700;
}

.p-history-desc p {
  margin: 0;
}

/* ==========================
 印刷（PDF）対応
========================== */
@media print {
  .p-history-table {
    font-size: 13px;
  }

  .p-history-table th,
  .p-history-table td {
    page-break-inside: avoid;
  }
}

/* ==========================
   年表：スマホ縦並び
   ========================== */
@media (max-width: 768px) {

  .p-history-table,
  .p-history-table tbody,
  .p-history-table tr,
  .p-history-table td,
  .p-history-table th {
    display: block;
    width: 100%;
    text-align: left;
  }

  /* 年表1行（通常行） */
  .p-history-row {
    border: 1px solid #ddd;
    margin-bottom: 16px;
    padding: 12px;
    background: #fff;
  }

  /* 西暦 */
  .p-history-ad {
    font-weight: bold;
    margin-bottom: 4px;
  }

  .p-history-ad::before {
    content: "西暦：";
    font-weight: normal;
    color: #666;
  }

  /* 和暦 */
  .p-history-jp {
    margin-bottom: 8px;
  }

  .p-history-jp::before {
    content: "和暦：";
    font-weight: normal;
    color: #666;
  }

  /* 内容 */
  .p-history-desc {
    line-height: 1.6;
  }

  .p-history-desc::before {
    content: "内容：";
    display: block;
    font-weight: normal;
    color: #666;
    margin-bottom: 4px;
  }

  /* 時代見出し行 */
  .p-history-era th {
    font-weight: bold;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
  }
}


/* ==============================
  班活動一覧（archive-club）
============================== */

.p-club-archive {
  padding: 3rem 1rem 4rem;
}

.p-club-archive__header {
  margin-bottom: 2.5rem;
}

.p-club-archive__title {
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 6px solid #b60005;
  padding-left: 0.75rem;
}

/* ===== Grid本体 ===== */

.p-club-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* PC：4列 */
  gap: 1px;
  background: #999;
}

/* ===== 各アイテム ===== */

.p-club-item {
  background: #fff;
  min-height: 64px;
}

.p-club-item>a,
.p-club-item>div {
  display: block;
  height: 100%;
  padding: 0.75rem 0.5rem;
  text-align: center;
  color: #003399;
  font-weight: 600;
  text-decoration: none;
}

.p-club-item__title {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* メタ情報（運動 / 文化 / 男女） */
.p-club-item__meta {
  display: none;
  /* 一覧では非表示（必要なら表示可） */
}

/* ===== hover ===== */

.p-club-item a:hover {
  background: #f3f6ff;
  text-decoration: underline;
}

/* ===== 外部リンク ===== */

.p-club-item.is-external a::after {
  content: "↗";
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

/* ===== PDF ===== */

.p-club-item.is-pdf a::after {
  content: "PDF";
  font-size: 0.7rem;
  margin-left: 0.4rem;
  color: #b60005;
}

/* ===== 詳細なし ===== */

.p-club-item.is-disabled {
  background: #f5f5f5;
}

.p-club-item.is-disabled>div {
  color: #777;
  cursor: default;
}

/* タブ */
.club-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.club-tab {
  padding: 10px 24px;
  border: 2px solid #8a0b0b;
  background: #fff;
  color: #8a0b0b;
  font-weight: 700;
  cursor: pointer;
}

.club-tab.is-active {
  background: #8a0b0b;
  color: #fff;
}

/* グリッド */
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.club-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.club-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.club-gender {
  display: inline-block;
  padding: 1px 10px;
  font-size: 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.badge-male {
  background: #0b4d9c;
  color: #fff;
}

.badge-female {
  background: #c62828;
  color: #fff;
}

.badge-both {
  background: #555;
  color: #fff;
}

.club-title.is-no-detail {
  color: #1a1a1a;
}

.club-link.is-external .club-title.is-no-detail {
  color: #6685c3;
}

.club-link.is-external {
  background-image: url(../img/btn-square-deco-black.png);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: 16px;
}

.club-link.is-pdf {
  display: inline-block;
  padding-right: 36px;
  background-image: url(../img/icon/PDFicon_BK.png);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 22px;
}

.club-title {
  color: #cc0000;
  margin: 0;
}

.club-link {
  color: #8a0b0b;
  text-decoration: none;
  font-weight: 600;
}

.club-link:hover {
  text-decoration: underline;
}

/* ==============================
  レスポンシブ
============================== */

/* タブレット */
@media (max-width: 1024px) {
  .p-club-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* スマホ */
@media (max-width: 640px) {
  .p-club-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-club-item__title {
    font-size: 0.9rem;
  }
}

/* ==============================
  班活動詳細（single-club）
============================== */
.club-single__title {
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  margin: 0;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

.club-single__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 32px;
  background: #8a0b0b;
}

.club-single__main-img img {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: auto;
  margin-bottom: 2rem;
}

.club-single__info {
  width: 90%;
  max-width: 900px;
  margin: auto;
}

.club-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.club-info-table th,
.club-info-table td {
  border: 1px solid #ccc;
  padding: 1rem;
  vertical-align: top;
}

.club-info-table th {
  width: 160px;
  background: #f5f6f7;
  font-weight: 600;
}

.club-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.club-back {
  margin-top: 2rem;
  text-align: right;
}

.club-single__gallery {
  width: 90%;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.club-gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.club-gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

.club-gallery-grid figure {
  transition: transform .2s ease, box-shadow .2s ease;
}

.club-gallery-grid figure:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}


@media (max-width: 600px) {
  .club-info-table th {
    width: 120px;
    font-size: 0.9rem;
  }

  .club-info-table td {
    font-size: 0.95rem;
  }
}

h4.wp-block-heading::before {
  content: "";
  border-left: 3px solid #8a0b0b;
  padding-right: .6rem;
}

.wp-block-file {
  padding-left: 1rem;
}


.wp-block-file a {
  position: relative;
  display: inline-block;
  padding: 0.2rem 2.4rem .2rem 2.8rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}

.wp-block-file a::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: #99030f;
  border-radius: 50%;
  transform: translateY(-50%);
}

.wp-block-file a::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}

.wp-block-file a {
  background-image: url("../img/icon/PDFicon_BK.png");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 1rem center;
}

.wp-block-file a:hover {
  background-color: #99030f;
  color: #fff;
  background-image: url("../img/icon/PDFicon_WH.png");
}

.wp-block-file a[href$=".doc"],
.wp-block-file a[href$=".docx"] {
  background-image: url("../img/icon/word-icon_BK.png");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 1rem center;
}

.wp-block-file a[href$=".doc"]:hover,
.wp-block-file a[href$=".docx"]:hover {
  background-color: #99030f;
  color: #fff;
  background-image: url("../img/icon/word-icon_WH.png");
}

.wp-block-file a[href$=".xls"],
.wp-block-file a[href$=".xlsx"] {
  background-image: url("../img/icon/excel-icon_BK.png");
  background-repeat: no-repeat;
  background-size: 16px 16px;
  background-position: right 1rem center;
}

.wp-block-file a[href$=".xls"]:hover,
.wp-block-file a[href$=".xlsx"]:hover {
  background-color: #99030f;
  color: #fff;
  background-image: url("../img/icon/excel-icon_WH.png");
}

ul.wp-block-list {
  margin: 0;
}

/* =========================
   404
========================= */
.p-error-404__btn-wrap a {
  display: inline-block;
  background: #8a0b0b;
  color: #fff;
  padding: 15px 40px;
  border: 1px solid #8a0b0b;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s;
}

.p-error-404__btn-wrap a .c-btn:hover {
  background-color: #8a0b0b;
  color: #fff;
}