@charset "utf-8";

:root {
  --primary-color: #002D43;
  --secondary-color: #F8B500;
  --text-color: #000;
  --text-gray-color: #949494;
  --text-link-color: #F97C00;
  --background-color: #F6F6F6;
  --white-color: #fff;
  --line-color: #C9C9C9;
  --gradation-orange: linear-gradient(to right, #F8B500, #F97C00);
  --gradation-blue: linear-gradient(to right, #002D43, #09608B);
  --header-height: 55px;
}
@media (min-width: 768px) {
  :root { --header-height: 81px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.9;
  padding-top: var(--header-height);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 54px;
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--white-color);
  background-color: var(--primary-color);
  font-size: 0.93rem;
  transition: background-color 0.25s ease;
}

.button-with-icon {
  gap: 8px;
}

.button-with-icon::after {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../img/common/icon_open.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.sp-br-hide {
  display: none;
}


/*------------------------------
  header
------------------------------*/
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  border-bottom: 1px solid var(--line-color);
  background-color: var(--white-color);
}

section[id] {
  scroll-margin-top: calc(var(--header-height, 0px) + 12px);
}

.header-inner {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-title {
  line-height: 1;
  padding: 16px 10px;
}

.site-brand-link {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-logo {
  display: block;
  width: 400px;
  height: auto;
}

.menu-toggle {
  position: relative;
  align-self: stretch;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 60px;
  height: auto;
  padding: 16px;
  background-color: var(--primary-color);
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--white-color);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-height: calc(100dvh - 60px);
  overflow-y: auto;
  background-color: var(--primary-color);
  padding: 30px 10px;
  z-index: 30;
}

.header-nav.is-open {
  display: block;
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.menu-list li {
  width: 100%;
  border-bottom: 1px solid var(--line-color);
  padding-bottom: 10px;
  padding-left: 10px;
}

.header-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
}

.header-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  height: 52px;
  padding: 0 14px;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--white-color);
  background-color: var(--primary-color);
  border: 1px solid var(--white-color);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.header-action-button::after {
  content: "";
  width: 14px;
  height: 14px;
  background-image: url("../img/common/icon_open.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.menu-list a {
  display: block;
  width: 100%;
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--white-color);
  padding: 10px 0;
  border-bottom: none;
  transition: color 0.25s ease;
}


/*------------------------------
  footer
------------------------------*/
footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 10px 14px;
  min-height: 63.2vw;
  background-image: url("../img/common/footer_back_sp.svg");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 100px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.footer-logo {
  width: 336px;
  height: auto;
}

.footer-sns{
  margin: 0 auto;
  display: flex;
  gap: 26px;
  margin-bottom: 30px;
}

.footer-sns a img{
  width: 26px;
  height: auto;
  transition: opacity 0.25s ease;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.footer-contact {
  font-size: 0.87rem;
  line-height: 1.7;
}

.footer-bnr{
  display: block;
  width: 200px;
  height: auto;
  margin: 10px auto;
  transition: opacity 0.25s ease;
}

.footer-copy {
  font-size: 0.68rem;
  text-align: center;
  color: var(--white-color);
}

.page-top-button {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  display: block;
  width: 60px;
  line-height: 0;
  transition: opacity 0.25s ease;
}


.page-top-button img {
  display: block;
  width: 100%;
  height: auto;
}


/*------------------------------
  【TOP】side copy
------------------------------*/
.side-copy {
  display: none;
}

/*------------------------------
  【TOP】main visual
------------------------------*/
.main-visual {
  width: 100%;
  overflow: hidden;
}

.main-visual-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  animation: mv-fade-in 1.4s ease 0.15s forwards;
}

@keyframes mv-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-visual-image {
    opacity: 1;
    animation: none;
  }
}

/*------------------------------
  【TOP】section common
------------------------------*/
.section-block {
  padding: 40px 14px 60px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

/*------------------------------
  【TOP】topics
------------------------------*/
.topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-color);
  transition: transform 0.25s ease;
}

.topic-image {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  margin-bottom: 6px;
}

.topic-category {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-link-color);
}

.topic-title {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s ease;
}

.topic-date {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.87rem;
  color: var(--text-gray-color);
}

.topic-date::after {
  content: "";
  width: 42px;
  height: 26px;
  margin-left: auto;
  background-image: url("../img/common/icon_arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 18px;
  background-color: var(--primary-color);
  transition: background-color 0.25s ease;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}

/*------------------------------
  【TOP】about
------------------------------*/
.about-section {
  background-image: url("../img/top/back_border.svg");
  background-repeat: repeat;
  background-position: top left;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.about-block + .about-block {
  margin-top: 30px;
}

.about-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  order: 1;
  padding: 54px 16px 20px;
  background-color: var(--white-color);
}

.about-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 148px;
  height: 34px;
  background-image: url("../img/top/tag_about01.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.about-block:nth-of-type(2) .about-content::before {
  background-image: url("../img/top/tag_about02.svg");
}

.about-block:nth-of-type(3) .about-content::before {
  background-image: url("../img/top/tag_about03.svg");
}

.about-block:nth-of-type(4) .about-content::before {
  background-image: url("../img/top/tag_about04.svg");
}

.about-block:nth-of-type(5) .about-content::before {
  background-image: url("../img/top/tag_about05.svg");
}

.about-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
}

.about-text {
  font-size: 1rem;
  line-height: 1.9;
}

.about-image-wrap {
  width: 100%;
  order: 2;
  margin: 0;
}

.about-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}

.u-contain{
    object-fit: contain;
    background-color: var(--white-color);
  }

.pamphlet {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  overflow: hidden;
  background-color: rgba(4, 73, 107, 0.16);
}

.pamphlet-image-wrap {
  margin: 0;
  flex: 0 0 80px;
  max-width: 80px;
  display: flex;
}

.pamphlet-image {
  display: block;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.pamphlet-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0;
}

.pamphlet-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary-color);
}

.pamphlet-text {
  font-size: 1rem;
  line-height: 1.9;
}

.pamphlet-button {
  width: fit-content;
}

/*------------------------------
  【TOP】admissions
------------------------------*/
.admissions-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.admissions-table th,
.admissions-table td {
  border-bottom: 1px solid var(--line-color);
  padding: 18px 10px;
  text-align: left;
  vertical-align: top;
}

.admissions-table th {
  width: 25%;
  font-weight: 700;
}

.admissions-table td {
  width: 75%;
  line-height: 1.4;
}

.admissions-info{
  width: 100%;
  text-align: center;
  font-weight: 700;
  padding: 30px 10px;
  margin: 20px auto 0;
  background-color: var(--background-color);
}

.admissions-link {
  color: var(--text-link-color);
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0 6px;
}

.admissions-link::after {
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../img/common/icon_open_org.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.admissions-section {
  padding-bottom: 20px;
}

/*------------------------------
 【TOP】contact
------------------------------*/
.contact-inner {
  width: 100%;
  max-width: none;
  background-color: var(--primary-color);
  text-align: center;
  padding: 40px 15px;
  border-radius: 8px;
}

.contact-heading{
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
  text-align: center;
}

.contact-info{
  color: var(--white-color);
  text-align: left;
}

.contact-name{
  color: var(--white-color);
  font-weight: 700;
  margin-top: 30px;
  text-align: left;
  line-height: 1.5;
}

.contact-address{
  color: var(--white-color);
  font-weight: 700;
  margin-top: 10px;
  text-align: left;
  line-height: 1.5;
}

.contact-mail{
  color: var(--white-color);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  margin-top: 10px;
}

.contact-mail span{
  font-weight: 400;
  font-size: 0.87rem;
  margin-right: 6px;
}

.contact-form{
  margin: 30px 0 0;
  padding: 30px 10px;
  text-align: center;
  background-color: var(--white-color);
  border-radius: 8px;
}

.contact-form-heading{
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary-color);
  text-align: center;
} 

.contact-form-info{
  text-align: left;
  margin-bottom: 14px;
}

/*------------------------------
  【TOP】Instagram
------------------------------*/
.instagram-heading{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-link-color);
  text-align: center;
}

.instagram-heading::before {
  content: "";
  width: 27px;
  height: 27px;
  background-image: url("../img/top/Instagram.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.instagram-name{
  width: 200px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  padding: 6px 10px; 
  margin: 0 auto;
  background-color: var(--background-color);
}


/*------------------------------
  topics（お知らせ一覧・詳細）
------------------------------*/
.page-head {
  padding: 26px 0 0;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1.37rem;
  font-weight: 700;
  margin-bottom: 26px;
  color: var(--primary-color);
  text-align: center;
}

.page-heading-logo {
  display: block;
  width: 44px;
  height: auto;
}

.page-breadcrumb {
  width: 100%;
  padding: 6px 14px;
  background-color: var(--background-color);
}

.page-breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--text-gray-color);
  overflow: hidden;
}

.page-breadcrumb-list li {
  min-width: 0;
}

.page-breadcrumb-list li:not(:last-child) {
  flex: 0 0 auto;
}

.page-breadcrumb-list li:last-child {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-breadcrumb-list li + li::before {
  content: "・";
  margin: 0 6px;
  color: var(--line-color);
}

.page-breadcrumb-list a {
  color: var(--primary-color);
}

.page-content {
  padding: 20px 14px 70px;
}

.page-content-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.topics-layout {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topics-side {
  order: 1;
  background-color: var(--white-color);
}

.side-accordion + .side-accordion {
  margin-top: 10px;
}

.side-accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--secondary-color);
  background: var(--gradation-blue);
  transition: opacity 0.25s ease;
}

.side-accordion-trigger::after {
  content: "＋";
  font-size: 1.1rem;
  line-height: 1;
}

.side-accordion-trigger[aria-expanded="true"]::after {
  content: "－";
}

.side-accordion-panel {
  padding: 10px 14px;
}

.topics-side-list {
  display: flex;
  flex-direction: column;
}

.topics-side-list a {
  display: block;
  padding: 4px 0;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.87rem;
}

.topics-news {
  order: 2;
  margin-bottom: 40px;
}

.topics-news-list li {
  border-bottom: 1px solid var(--line-color);
}

.topics-news-link {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  row-gap: 1px;
  padding: 16px 4px;
}

.topics-news-date {
  grid-column: 1;
  grid-row: 1;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-gray-color);
  line-height: 1.5;
}

.topics-news-category {
  grid-column: 2;
  grid-row: 1;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-link-color);
  line-height: 1.5;
}

.topics-news-title {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  padding-right: 52px;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 500;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.15em;
  transition: text-decoration-color 0.25s ease;
}

.topics-news-title::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 42px;
  height: 26px;
  background-image: url("../img/common/icon_arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 18px;
  background-color: var(--primary-color);
  border-radius: 999px;
  transition: background-color 0.25s ease;
}

.wp-pagenavi {
  display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  margin-top: 24px;
}

.wp-pagenavi a,
.wp-pagenavi span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-color);
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.wp-pagenavi .current {
  color: var(--text-gray-color);
  background-color: transparent;
}

.topics-detail {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.topics-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.topics-detail-date {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-gray-color);
}

.topics-detail-category {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-link-color);
}

.topics-detail-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.6;
}

.topics-detail-divider {
  width: 100%;
  border: none;
  border-top: 2px solid var(--line-color);
  margin: 18px 0 24px;
}

.topics-detail-body p {
  font-size: 1rem;
  line-height: 1.9;
}

.topics-detail-body p + p {
  margin-top: 16px;
}

.topics-detail-body a {
  color: var(--text-link-color);
  text-decoration: underline;
}

.topics-detail-body a[target="_blank"]::after {
  color: var(--text-link-color);
  content: "";
  width: 18px;
  height: 18px;
  background-image: url("../img/common/icon_open_org.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.topics-detail-body h2 {
  margin: 40px 0 30px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.7;
  background-color: #E0E5E8;
  padding: 12px;
}

.topics-detail-body h3 {
  margin: 30px 0 20px;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.6;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-color);
}

.topics-detail-body h4 {
  margin: 20px 0 10px;
  padding-left: 10px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  border-left: 6px solid var(--primary-color);
}

.topics-detail-body ul,
.topics-detail-body ol {
  margin: 30px 0;
  padding-left: 1.6em;
}

.topics-detail-body li + li {
  margin-top: 10px;
}

.topics-detail-body ul li,
.topics-detail-body ol li {
  font-size: 1rem;
  line-height: 1.4;
}

.topics-detail-body ul {
  list-style: disc;
}

.topics-detail-body ol {
  list-style: decimal;
}

.topics-detail-body ul li::marker,
.topics-detail-body ol li::marker {
  color: var(--primary-color);
}

.topics-detail-body ol li::marker {
  font-weight: 700;
}

.topics-detail-body blockquote {
  font-size: 1rem;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid var(--line-color);
  line-height: 1.8;
}

.topics-detail-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 20px 0;
}

.topics-detail-body th,
.topics-detail-body td {
  text-align: left;
  line-height: 1.5;
  color: var(--text-color);
  height: 54px;
  padding: 12px 0.5rem!important;
  border: solid 1px var(--line-color);
}

.topics-detail-body th {
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
  background-color: var(--background-color);
  height: 54px;
  padding: 12px 0.5rem;
  vertical-align: middle;
}

.topics-detail-back {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}


@media (min-width: 769px) {
  .sp-br-hide {
    display: inline;
  }

  .pc-br-hide {
    display: none;
  }

  .topic-card {
    padding-bottom: 0;
    border-bottom: none;
  }

  /*---header---*/
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 20px;
  }

  .header-top {
    width: auto;
  }

  .site-title {
    line-height: 1;
  }

  .site-brand-link {
    gap: 10px;
  }

  .menu-toggle {
    display: none;
  }

  .header-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 16px;
    width: auto;
    min-height: 0;
    overflow-y: visible;
    white-space: nowrap;
    background-color: transparent;
    padding: 20px 0;
  }

  .menu-list {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    width: auto;
    padding-bottom: 0;
    border-bottom: none;
  }

  .menu-list li {
    width: auto;
    border-bottom: none;
    padding-bottom: 0;
    padding-left: 0;
  }

  .header-actions {
    justify-content: flex-start;
    width: auto;
    margin-top: 0;
    margin-left: 8px;
  }

  .header-action-button {
    height: 40px;
    padding: 0 14px;
    font-size: 0.75rem;
  }

  .menu-list a {
    display: inline-block;
    width: auto;
    padding: 0;
    font-size: 0.93rem;
    white-space: nowrap;
    color: var(--primary-color);
  }

  /*---footer---*/
  footer {
    padding: 36px 20px 18px;
    min-height: 25.4861vw;
    background-image: url("../img/common/footer_back.svg");
  }

  .footer-inner {
    width: 100%;
    max-width: 1200px;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 0;
  }

  .footer-sub {
    margin-left: auto;
    text-align: right;
  }

  .footer-main {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 24px;
    row-gap: 12px;
    margin-bottom: 150px;
  }

  .footer-sns {
    margin: 0;
  }

  .footer-heading,
  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-logo {
    width: 460px;
    margin-right: 10px;
    margin-bottom: 10px;
  }

  .footer-bnr {
    margin: 0 0 10px auto;
  }

  .footer-copy {
    white-space: nowrap;
    margin-top: 30px;
  }

  .page-top-button {
    right: 20px;
    bottom: 20px;
  }

  /*---TOP---*/
  .main-visual-image {
    height: 580px;
  }

  .section-block {
    padding: 60px 30px 90px;
  }

  .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
  }

  .section-heading {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .topic-image {
    display: block;
  }

  .about-block {
    flex-direction: row;
    align-items: stretch;
  }

  .about-block + .about-block {
    margin-top: 40px;
  }

  .about-block:nth-of-type(even) {
    flex-direction: row-reverse;
  }

  .about-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 62px 26px 30px;
    justify-content: center;
  }

  .about-content::before {
  width: 186px;
  height: 43px;
  }

  .about-title {
  font-size: 1.43rem;
  }

  .about-image-wrap {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
  }

  .about-image {
    height: 100%;
    min-height: 320px;
  }

  .pamphlet {
    margin-top: 40px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 28px 34px;
  }

  .pamphlet-image-wrap {
    flex: 0 0 166px;
    max-width: 166px;
    display: flex;
  }

  .pamphlet-image {
    width: 166px;
    height: auto;
  }

  .pamphlet-content {
    justify-content: center;
    padding: 0;
  }

  .pamphlet-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .admissions-table {
    width: 100%;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }

  .admissions-table th {
    width: 15%;
  }

  .admissions-table td {
    width: 85%;
  }

  .admissions-info{
    width: 100%;
    max-width: 860px;
  }

  .admissions-section {
    padding-bottom: 30px;
  }

  .contact-inner {
  padding: 40px 15px;
  }

  .contact-heading{
    font-size: 1.75rem;
  }

  .contact-info{
    text-align: center;
  }

  .contact-name{
    text-align: center;
  }

  .contact-address{
    text-align: center;
  }

  .contact-mail{
    text-align: center;
    margin-top: 4px;
  }

  .contact-mail span{
    margin-left: 16px;
  }

  .contact-form{
    max-width: 860px;
    margin: 0 auto;
    margin-top: 40px;
  }

  .contact-form-heading{
    font-size: 1.5rem;
  }

  .contact-form-info{
    text-align: center;
  }

  .instagram-heading{
    font-size: 1.75rem;

  }

  /*---topics(お知らせ一覧・詳細ページ)---*/
  .page-head {
    padding: 50px 0 0;
  }

  .page-heading {
    font-size: 1.75rem;
    margin-bottom: 50px;
  }

  .page-breadcrumb {
  padding: 14px 30px;
  }

  .page-content {
    padding: 30px 30px 70px;
  }

  .topics-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 50px;
    align-items: start;
  }

  .topics-news {
    order: 0;
    grid-column: 1;
    grid-row: 1;
  }

  .topics-side {
    order: 0;
    grid-column: 2;
    grid-row: 1;
  }

  .side-accordion-trigger {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .side-accordion-panel {
    padding: 0 16px 12px;
  }

  .topics-side-list a {
    font-size: 0.93rem;
    padding: 2px 0;
  }

  .topics-news-link {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 24px 4px;
  }

  .topics-news-date,
  .topics-news-category {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.87rem;
  }

  .topics-news-title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
  }

  .topics-pagination {
    margin-top: 30px;
  }

  .topics-detail-title {
    font-size: 1.37rem;
  }

  .topics-detail-body h2 {
    font-size: 1.25rem;
    padding: 14px 12px;
  }

  .topics-detail-body h3 {
    font-size: 1.12rem;
    margin: 30px 0 20px;
  }

  .topics-detail-body h4{
    font-size: 1rem;
    margin: 20px 0 1cqmax;
  }
}


/*------------------------------
  【TOPページ】サイドコピー
------------------------------*/
@media (min-width: 1300px) {
  .side-copy {
    position: fixed;
    top: calc(50% + (var(--header-height, 0px) / 2) + 16px);
    left: max(0px, calc((100vw - 1200px) / 2 - 100px));
    transform: translateY(-50%) rotate(0deg);
    writing-mode: vertical-rl;
    white-space: nowrap;
    font-size: 40px;
    color: rgba(0, 45, 67, 0.25);
    pointer-events: none;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
    display: block;
  }

  .side-copy.is-visible {
    opacity: 1;
    visibility: visible;
  }
}


/*------------------------------
  タブレット用メニュー
------------------------------*/
@media (min-width: 769px) and (max-width: 1024px) {
  .topic-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: center;
  }

  .header-inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 0;
  }

  .header-top {
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: calc(100dvh - 60px);
    overflow-y: auto;
    background-color: var(--primary-color);
    padding: 30px 10px;
  }

  .header-nav.is-open {
    display: block;
  }

  .menu-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .menu-list li {
    width: 100%;
    border-bottom: 1px solid var(--line-color);
    padding-bottom: 10px;
    padding-left: 10px;
  }

  .header-actions {
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    margin-left: 0;
  }

  .header-action-button {
    height: 52px;
    font-size: 0.93rem;
  }

  .menu-list a {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 1.12rem;
    font-weight: 500;
    color: var(--white-color);
    white-space: normal;
    border-bottom: none;
    transition: color 0.25s ease;
  }
}


/*------------------------------
  ホバー時のスタイル
------------------------------*/
@media (hover: hover) and (pointer: fine) {
  .menu-list a:hover {
    color: var(--text-link-color);
  }

  .admissions-link:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
  }

  .footer-sns a:hover img {
    opacity: 0.7;
  }

  .footer-sub a:hover .footer-bnr {
    opacity: 0.7;
  }

  .topic-card:hover {
    transform: translateY(-4px);
  }

  .topic-card:hover .topic-title {
    text-decoration-color: currentColor;
  }

  .topic-card:hover .topic-date::after {
    background-color: var(--text-link-color);
  }

  .topics-news-link:hover .topics-news-title::after {
    background-color: var(--text-link-color);
  }

  .topics-news-link:hover .topics-news-title {
    text-decoration-color: currentColor;
  }

  .wp-pagenavi a:not([aria-current="page"]):hover {
    color: var(--text-link-color);
    background-color: transparent;
  }

  .header-action-button:hover {
    background-color: var(--text-link-color);
  }

  .button:hover {
    background-color: var(--text-link-color);
  }

  .page-top-button:hover {
    opacity: 0.7;
  }

  .page-breadcrumb-list a:hover {
    color: var(--text-link-color);
  }

  .side-accordion-trigger:hover {
    opacity: 0.7;
  }

  .topics-side-list a:hover { 
    color: var(--text-link-color); 
  }

  .topics-detail-body a:hover {
    text-decoration: none;
  }
}

/* Instagram Feed */
.instagram-container {
    width: 100%;
    margin: 20px 0;
}
.instagram-feed__list {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.instagram-feed__slide {
    flex: 1 1 calc(50% - 5px);
    max-width: calc(50% - 5px);
}
.instagram-feed__slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media screen and (min-width: 769px) {
    .instagram-container {
        max-width: 860px;
        padding-bottom: 20px;
        margin: 20px auto 0;
    }
    .instagram-feed__slide {
    flex: 1 1 calc(33.333% - 6.66px);
    max-width: calc(33.333% - 6.66px);
    }
}
