/* ==========================================================================
Base Styles & Layout Container
========================================================================== */
html {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #000;
  font-weight: 400;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS 1", sans-serif;
  font-feature-settings: "palt";
  background-color: white;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.l-container {
  max-width: 1200px;
  padding: 0 10rem;
  margin: auto;
}

.u-link-underline {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #333;
  text-decoration-thickness: .1rem;
  text-underline-offset: .2rem;
}

@media screen and (max-width: 1299px) and (min-width: 769px) {
  html {
    font-size: 0.769vw;
  }
}

/* ～767px → 750px 等倍 */
@media screen and (max-width: 768px) {
  html {
    font-size: 2.666vw;
  }

  .layout-container {
    width: 100%;
    padding: 0 2rem;
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.u-sp-only {
  display: none !important;
}

@media screen and (max-width:768px) {
  .u-pc-only {
    display: none !important;
  }

  .u-sp-only {
    display: block !important;
  }

  .l-container {
    max-width: none;
    padding: 0 2rem;
    margin: auto;
  }
}

.u-relative {
  position: relative;
}


/* ==========================================================================
  Component: Header
========================================================================== */
.c-header {
  width: 100%;
  position: relative;
  z-index: 100;
  color: #253A6C;
}

.c-header__inner {
  display: flex;
  align-items: baseline;
  margin: 0 auto;
  padding: 2rem 0;
  justify-content: center;
  max-width: 1200px;
  gap: 10rem;
}

.c-header__logo img {
  width: 45rem;
}

.c-header__menu {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.c-header__menu-link {
  display: block;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.8rem;
  padding: 1rem 0;
}

.c-header__menu-link--external {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.c-header__menu-link-icon {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
}

@media (max-width: 768px) {
  .c-header {
  }
  
  .c-header__inner {
    gap: 0;
    justify-content: space-around;
    align-items: center;
    padding: 1rem 2rem;
    max-width: none;
    height: 5.8rem;
  }

  .c-header__logo {
    width: 25rem;
    margin-right: auto;
  }

  .c-header__logo img {
    width: 100%;
  }
}

/* ==========================================================================
  スマホ（SP）用のハンバーガーメニュー
========================================================================== */

@media (max-width: 768px) {
  .c-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 3.8rem;
    height: 3.8rem;
    padding: 1.2rem 1rem;
    background: none;
    border: 0.1rem solid #1a3a5f;
    border-radius: 50%;
    cursor: pointer;
    z-index: 110;
    box-sizing: border-box;
  }

  .c-header__hamburger-line {
    display: block;
    width: 100%;
    height: 0.1rem;
    background-color: #1a3a5f;
    transition: all 0.3s ease;
  }

  .c-header__hamburger.is-active {
    border-color: #fff;

    position: fixed;
    top: 1rem;
    right: 2rem;
  }

  .c-header__hamburger.is-active .c-header__hamburger-line {
    background-color: #fff;
  }

  .c-header__hamburger.is-active .c-header__hamburger-line:nth-child(1) {
    transform: translateY(0.6rem) rotate(45deg);
  }

  .c-header__hamburger.is-active .c-header__hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .c-header__hamburger.is-active .c-header__hamburger-line:nth-child(3) {
    transform: translateY(-0.6rem) rotate(-45deg);
  }

  .c-header__icon {
    width: 7rem;
    margin: 3rem auto 1rem;
  }

  /* スマホ時のナビゲーション */
  .c-header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 60rem;
    height: 100vh;
    background-color: #253A6C;
    box-shadow: -0.2rem 0 0.8rem rgba(0, 0, 0, 0.1);
    padding: 8rem 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 105;
    box-sizing: border-box;
  }

  .c-header__nav.is-active {
    right: 0;
  }

  .c-header__menu-item {
    text-align: center;
    border-bottom: #fff solid 1px;
  }

  .c-header__menu-link {
    color: #fff;
    padding: 2rem 0;
  }

  .c-header__menu-link-icon path {
    stroke: #fff;
  }
}

/* ==========================================================================
  PC用スタイル
========================================================================== */
@media (min-width: 769px) {
  .c-header__hamburger,
  .c-header__nav__logo,
  .c-header__icon {
    display: none;
  }

  /* PC時は通常配置に戻す */
  .c-header__nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    display: block !important;
  }

  /* 元の横並び指定を確実に適用 */
  .c-header__menu {
    flex-direction: row;
    gap: 4rem;
  }

  .c-header__menu-item {
    position: relative;
    line-height: .8;
  }

  .c-header__menu-link {
    color: #253A6C;
    padding: 1rem 0;
    transition: color 0.2s ease;
    white-space: nowrap;
  }

  .c-header__menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.3rem;
    background-color: #F80C00;
    transition: width 0.3s ease;
  }

  .c-header__menu-link:hover::after {
    width: 100%;
  }

  .c-header__menu-item--active .c-header__menu-link::after {
    width: 100%;
  }
}


/* ==========================================================================
  タイトル等で使用している青背景の部分
========================================================================== */
.c-heading-capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #253A6C;
  color: #fff;
  border-radius: 10rem;
  box-sizing: border-box;
  font-size: 1em;
}

/* ==========================================================================
  タイトルで使用している白背景カプセルタイトル
   ========================================================================== */
.p-common__main-ttl {
  color: #253A6C;
  text-align: center;
  font-size: 3.2rem;
  font-weight: 700;
  background-color: #fff;
  border: .2rem solid #253A6C;
  padding: 1.5rem 5.5rem;
  display: block;
  width: fit-content;
  margin: 6rem auto 3.5rem;
}

@media screen and (max-width: 768px) {
  .p-common__main-ttl {
    font-size: 2.4rem;
    margin: 8rem auto 4rem;
  }

}


/* ==========================================================================
   Project: Common Intro (p-common-intro)
   ========================================================================== */
.p-common-intro {
  position: relative;
  padding-top: 5rem;
}

.p-common-intro__title {
  color: #253A6C;
  text-align: center;
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.6;
}

@media screen and (max-width: 768px) {
  .p-common-intro__title {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: -.05rem;
  }
}


/* ==========================================
  モーダル
========================================== */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.c-modal.is-active {
  opacity: 1;
  visibility: visible;
}

.c-modal__backdrop {
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 9rem;
  overscroll-behavior: contain;
}

.c-modal__container {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 120rem;
  height: 100%;
  max-height: 80vh;
  border-radius: 3rem;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 .4rem .7rem 0 rgba(0, 0, 0, 0.25);
}

.c-modal__close {
  cursor: pointer;
  position: absolute;
  top: -6rem;
  right: 0;
  z-index: 100;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: #333;
}

.c-modal__close-icon {
  width: 3rem;
  padding-top: .5rem;
}

.c-modal__close-icon svg {
  width: 100%;
}

.c-modal__close-text {
  font-size: 1.1rem;
  line-height: 1;
  font-weight: bold;
  letter-spacing: 0.05em;
}


.c-modal__content {
  height: 100%;
  overflow-y: auto;
  padding: 2.5em;
  box-sizing: border-box;
  max-width: 100%;
  word-break: break-all;
}

.c-modal__scroll {
  -webkit-overflow-scrolling: touch;
}

.c-modal__scroll::-webkit-scrollbar {
  width: .4em;
}

.c-modal__scroll::-webkit-scrollbar-track {
  background: linear-gradient(to right,
      transparent calc(50% - .1rem),
      #929292 calc(50% - .1rem),
      #929292 calc(50% + .1rem),
      transparent calc(50% + .1rem));
}

.c-modal__scroll::-webkit-scrollbar-thumb {
  background: #253A6C;
  border-radius: .1em;
}

@media (max-width: 768px) {
  .c-modal__container {
    height: 85vh;
  }
}

/* ==========================================================================
  Project: Footer
========================================================================== */

.p-footer {
  padding: 5rem 0 2rem;
  background-color: #253A6C;
}

.p-footer__sns-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p-footer__sns-img {
  width: 25rem;
}

.p-footer__sns-txt {
  width: 38.6rem;
  display: block;
  margin: 0 auto;
}

.p-footer__sns-icons {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.p-footer__sns-icon {
  width: 8rem;
}

.p-footer__sponsor-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  width: 120rem;
  margin: 3rem auto 3rem;
}

.p-footer__sponsor-item {
  display: block;
  width: 22.4rem;
  object-fit: cover;
}

.p-footer__bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 120rem;
  margin: auto;
}

.p-footer__logo-wrap img {
  width: 21rem;
  margin: auto;
}

.p-footer__logo-txt {
  font-size: 1.6rem;
  font-weight: 400;
  color: #FFF;
  text-align: center;
  margin-top: 1em;
}

.p-footer__copyright {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 1.2rem;
  color: #FFF;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .p-footer__sns-wrap {
    display: flex;
    flex-direction: column;
  }

  .p-footer__sns-img {
    width: 19.5rem;
  }

  .p-footer__sns-txt {
    width: 20rem;
    padding: 1rem 0;
  }

  .p-footer__sns-icons {
    margin-bottom: 2rem;
  }


  .p-footer__sns-icon {
    width: 4rem;
  }

  .p-footer__sns-icons {
    gap: 2rem;
  }

  .p-footer__sponsor-list {
    grid-template-columns: repeat(2, 1fr);
    width: 33.5rem;
  }

  .p-footer__sponsor-item {
    display: block;
    width: 16rem;
    object-fit: cover;
  }

  .p-footer__sponsor-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc(50% - .75rem);
  }

  .p-footer__bottom {
    align-items: center;
    flex-direction: column-reverse;
    gap: 2rem;
    width: 100%;
  }

  .p-footer__logo-wrap img {
    width: 18rem;
  }

  .p-footer__logo-txt {
    font-size: 1.3rem;
  }

  .p-footer__copyright{
    position: static;
    font-size: 1rem;
  }
}

/* ==========================================================================
  Component: ページトップに戻るボタン
========================================================================== */
.c-scroll-top {
  position: fixed;
  right: 3rem;
  bottom: 3rem;
  width: 14rem;
  height: 14rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.c-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.c-scroll-top.is-docked {
  position: absolute;
  bottom: auto;
}

.c-scroll-top img {
  display: block;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 768px) {
  .c-scroll-top {
    right: 1.5rem;
    bottom: 1.5rem;
    width: 8rem;
    height: 8rem;
  }
}