@charset "UTF-8";

#cursor-light {
  position: fixed;
  pointer-events: none; 
  top: 0;
  left: 0;

  /* 光の見た目 */
  width: 40px;
  height: 40px;
  background: rgba(209, 190, 143, 0.5); 
  border-radius: 50%;
  filter: blur(8px); 

  transform: translate(-50%, -50%);
  z-index: 9999;
}

#cursor-light.is-active {
  transform: translate(-50%, -50%) scale(1.5);
  background: rgba(219, 190, 143, 0.8); 
}

@media (hover: none) {
  #cursor-light {
    display: none !important;
  }
}

*, *::before, *::after {
  cursor: none !important;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  color: var(--main-color);
  letter-spacing: 0.05em;
  line-height: 1.5;
  overscroll-behavior-y: none;
  position: relative;
}

:root {
  --main-color: #2F3969;
  --accent-color: #F5F5F5;
}

img{
  max-width: 100%;
}

.daybreak-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2c3866;
  z-index: 10000;
  pointer-events: none;
  animation: bg-fade-out 3.5s forwards ease-in-out;

}

.daybreak-overlay::before {
  content: "";
  position: absolute;
  top: 60%;
  left: 0; 
  width: 0; 
  height: 1px;
  background: #d1be8f;
  box-shadow: 0 0 15px 2px #d1be8f;
  transform-origin: left;
  animation: line-grow-left-to-right 2s forwards ease-out;
  z-index: 99999;
}

.daybreak-overlay::after {
  content: "";
  position: absolute;
  top: 60%;
  left: 0;
  width: 100%;
  height: 100vh;
  filter: url(#noiseFilter) contrast(5%) brightness(5%); 
  transform: translateY(-50%); 
  transform-origin: center;
  z-index: 1;
} 



@keyframes line-grow-left-to-right {
  0% {
    width: 0;
    opacity: 0;
  }
  30% {
    opacity: 1; 
  }
  70% {
    width: 100%;
    opacity: 1; 
  }
  100% {
    width: 100%;
    opacity: 0;
  }
}

@keyframes bg-fade-out {
  0%{ opacity: 1; }
  55% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}



.lora {
  font-family: "Lora", serif;
}

/* ===ヘッダー=== */
header {
  position: fixed; 
  top: 0;          
  left: 0;        
  width: 100% ;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  z-index: 100;
  background: transparent;
  color: var(--accent-color);
  box-sizing: border-box ;
  max-width: 100% ;
}

header h1 {
  font-size: 20px;
}

header nav ul {
  display: flex;
  gap: 40px;
  font-size: 24px;
}

header nav ul li a{
  display: block;
  position: relative;
}

header nav ul li a::after{
  background-color: var(--accent-color);
  bottom: -4px; 
  content: ""; 
  height: 1px; 
  left: 0;
  position: absolute;
  transform: scale(0, 1);
  transform-origin: left top; 
  transition: transform .3s; 
  width: 100%; 
}

header nav ul li a:hover::after{
  transform: scale(1, 1);
}

.dropdown{
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -10px);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;

  list-style: none;
  backdrop-filter: blur(5px);
  background-color: rgb(245, 245, 245, 0.4);
  padding: 15px 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.submenu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  filter: url(#noiseFilter) contrast(20%) brightness(200%) blur(30px);
}



.dropdown:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0px);
}

.submenu li a{
  color: var(--main-color);
  white-space: nowrap;
}

.submenu li a::after{
  background-color: var(--main-color);
}


.gMenu .menu-btn{
  display: none;
}


/* ---レスポンシブ--- */
@media screen and (max-width: 640px){

            .gMenu {
            position: relative;
            z-index: 99;
            width: 40px;
            height: 40px;
            }

            .gMenu .menu-icon{
                position: relative;
                z-index: 101;
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .gMenu .menu-icon .navicon {
            background: transparent; 
            display: block;
            height: 2px; 
            width: 40px; 
            position: relative;
            transition: background .4s ease-out; 
            }
          
            .gMenu .menu-icon .navicon::before,
            .gMenu .menu-icon .navicon::after {
            content: '';
            display: block;
            height: 100%;
            position: absolute;
            transition: all .4s ease-out; 
            width: 100%;
            }
            .gMenu .menu-icon .navicon::before {
              top: 7px;
              background: var(--accent-color); 
            } 
            .gMenu .menu-icon .navicon::after {
              top: -7px;
              background: var(--accent-color); 
            } 
            /* メニュー */
            .gMenu .menu {
            backdrop-filter: blur(5px);
            background-color: rgb(245, 245, 245,0.4);
            overflow: hidden; 
            max-height: 0;
            transition: max-height .6s;
            text-align: center;
            width: 100%;
            position: fixed;
            top: 0;
            left: 0;
            padding: 0;
            }

            .gMenu .menu::before{
            content: ""; 
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;   
            background: transparent;
            filter: url(#noiseFilter) contrast(20%) brightness(200%) blur(30px); 
            }


            .gMenu .menu li:first-of-type {
            padding-top: 30px;
            }
            .gMenu .menu li:last-of-type {
            padding-bottom: 30px;
            }
            header nav ul{
            flex-direction: column;
            gap: 30px;
            }
            header nav ul li a::after{
              display: none;
            }


            .gMenu .menu li{
              color: var(--main-color);
            }
            .gMenu .menu li a {
            display: block;
            }
            
            .gMenu .menu-btn:checked ~ .menu {
            max-height: 400px; 
            transition: max-height .6s;
            }

            .gMenu .menu-btn:checked ~ .menu-icon .navicon {
              background: transparent;
            }

            .gMenu .menu-btn:checked ~ .menu-icon .navicon::before {
              transform: rotate(-20deg);top: 0;
              background: var(--main-color) !important;
            }
            .gMenu .menu-btn:checked ~ .menu-icon .navicon::after {
              transform: rotate(20deg);top: 0;
              background: var(--main-color) !important;
            }

            .submenu{
                  position: static;
                  transform: none;
                  transition: none; 
                  opacity: 1;
                  visibility: visible;
                  backdrop-filter: none;
                  background: none;
                  gap: 0;
                  padding: 0;
            }

            .submenu::before {
              content: none;
            }

            .gMenu .menu .submenu li a{
              font-size: 20px;
              padding: 0;
            }
            .gMenu .menu .submenu li {
              padding: 0;
            }

            .dropdown:hover .submenu {
              transform: none;
            }

          }


/* ===ヘッダーここまで=== */

.twilight-bg{
  margin: 0;
  position: fixed;
  /* 背景を画面外まで広げ、端の表示切れを防ぐ */
  top: -100px;
  left: -20px;
  right: -20px;
  bottom: -100px;
  z-index: -2;
  background:
    linear-gradient(to bottom, #2c3866 0%, #9b7494 35%, #ebab8c 60%,transparent 60%),
    linear-gradient(to bottom, transparent 60%, #d1be8f 50%, #9b7494 65%,#38587f 80%,#181b34 100%);
  background-size: 100% 100svh;
  background-position: center top 100px;
  contain: paint;
  transform: translateZ(0);
  will-change: transform;
}

.twilight-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  filter: url(#noiseFilter) contrast(150%) brightness(100%); 
  opacity: 0.3; 
  mix-blend-mode: overlay;
  pointer-events: none;
}


.twilight-overlay{
  position: fixed;
  top: -100px;
  left: -20px;
  right: -20px;
  bottom: -100px;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.2); 

  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  pointer-events: none; 
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%,    
    calc(10% + 10px)  calc(10% + 80px), 
    calc(10% + 10px)  calc(90% - 80px), 
    calc(90% - 10px)  calc(90% - 80px), 
    calc(90% - 10px)  calc(10% + 80px), 
    calc(10% + 10px)  calc(10% + 80px)
  );
}

.mv-inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
}

.main-visual {
  width: 100%;
  height: 100vh;
  position: relative;
}

.mv-content {
  position: fixed;
  top: 60%;  
  right: 15%;
  z-index: 10;
  width: auto;
  height: 0;
}

.mv-content h2 {
  font-size: clamp(40px, 9.7vw, 140px);
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
  position: absolute;
  bottom: 0;
  right: 0;
}

.mv-content h3 {
  font-size: clamp(20px, 2.7vw, 40px);
  background: linear-gradient(to bottom, #2F3969 0%, #F5F5F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin: 0;
  white-space: nowrap;
  position: absolute;
  top: 0;
  right: 0;
}


@keyframes sway {
  0% {
    transform: translate(0, 0) 
    skewX(-1deg);
    filter: blur(0px); 
  }
  50% {
    transform: translate(2px, 1px) 
    skewX(1deg); 
    filter: blur(1px); 
  }
  100% {
    transform: translate(0, 0) 
    skewX(-1deg);
    filter: blur(0px);
  }
} 

.mv-sway-box{
  position: relative;
  width: 100%;
  height: 0;
  animation: sway 5s ease-in-out forwards; 
}



/* 下層ページ */
html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 80px;
}

a {
  outline: none;
}
@media (hover: hover){
a:hover {
  opacity: 0.5;
}

a:hover img {
  opacity: 0.5;
}
}

.bgsec-visual {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.bgsec-visual.mv-inner::after {
  content: none;
}


/*-------------------------------------
Container
--------------------------------------*/

div#Container {
  position: relative;
  width: 944px;
  margin: 0 auto;  
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(50px);
  z-index: 1;
}

div#Container.sec-graphic {
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 200px,
    black calc(100% - 200px),
    transparent
  );  
}


div#Container::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  filter: url(#noiseFilter);
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media screen and (max-width: 944px){
  div#Container{
  width: auto;
  margin: 0 20px 30px 20px;
  }
}




/*-------------------------------------
Contents
--------------------------------------*/
div#Contents {
  width: 80%;
  max-width: 944px;
  margin: 30px auto;
  padding: 150px 0;
  overflow: hidden;
}

/*-------------------------------------
Main
--------------------------------------*/
div#Main {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/*-------------------------------------
Main_h2　見出し
--------------------------------------*/
div#Main h2 {
  font-size: 50px;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

div#Main h2.diagon-cut span{
  position: relative;
  display: inline-block;
  color: transparent;
}

div#Main h2.diagon-cut span::before {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  color: var(--main-color);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 20% 100%, 0 100%);
}

div#Main h2.diagon-cut span::after {
  content: "";
  position: absolute;
  bottom: -25px; 
  width: 110px; 
  height: 2px;
  background-color: var(--main-color); 
  transform: rotate(-50deg) translateY(-38px); 
  transform-origin: left bottom;
  z-index: 1;
}

@media screen and (max-width: 640px){
  div#Main h2 {
    font-size: 32px;
  }

  div#Main h2.diagon-cut span::after{
    width: 70px;
    transform: rotate(-50deg) translateY(-27px);
    bottom: -20px;
    height: 1px;
  }
}


/*-------------------------------------
Main_PortImg　課題ページの画像
--------------------------------------*/

.PortImg,.PortImg-pc,.PortImg-sp{
  margin: 0 auto 50px;
  text-align: center;
  max-width: 100%;
}

.PortImg-sp{
  display: none;
}

.btn-wrapper {
  text-align: center;
  margin-bottom: 80px;
}

.btn {
  padding: 15px 20px;
  align-items: baseline;
  border-top: 1px solid var(--main-color);
  border-bottom: 1px solid var(--main-color);
}

.btn img {
  margin-left: 10px;
}

.btn-block{
  margin-bottom: 50px;
}

.ankerpoint{
  margin-bottom: 80px;
}

.ankerpoint ul {
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.ankerpoint ul li {
    width: 200px;
    height: 140px;
    position: relative;
    border-right: solid 1px #2f3969;
    display: flex;
    justify-content: center;
}

.ankerpoint ul li:first-child{
  border-left: solid 1px #2f3969;
}

.ankerpoint .ankernumber{
  font-size: 40px;
}

.ankerpoint .ankertitle{
  font-size: 20px;
}


.ankerpoint ul li a{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}



@media screen and (max-width: 640px){
.ankerpoint ul li a:hover::after{
  transform: scale(0, 1);
}

.ankerpoint .ankernumber{
  font-size: 32px;
}

.ankerpoint .ankertitle{
  font-size: 16px;
}

.ankerpoint ul li {
  height: 120px;
}

.PortImg-sp{
  display: block;
}

.PortImg-pc{
  display: none;
}

}

/*-------------------------------------
Main_p　学校生活での感想 / 課題の感想
--------------------------------------*/
div#Main p {
  font-size: 16px;
  margin-bottom: 20px;
  padding: 0 10px;
  text-align: center;
}


/*-------------------------------------
Main_table　課題ページの表
--------------------------------------*/
div#Main table {
  width: 100%;
  margin: 10px auto 200px auto;
  border-collapse: collapse;
  border: 0 none;
}

div#Main table tr {
  border-bottom: 1px solid #2F3969;
}

div#Main table tr th {
  width: 25%;
  padding: 20px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--main-color);
}

div#Main table tr td {
  width: 75%;
  padding: 20px 10px;
  text-align: left;
  vertical-align: top;
}

div#Main table tr td p {
  text-align: left;
  font-weight: normal;
}

div#Main table tr td ul {
  padding: 0 0 0 8px;
  margin: 0 0 0 8px;
}

div#Main table tr td ol {
  padding: 0 0 0 8px;
  margin: 0 0 0 8px;
}

.items{
  margin-bottom: 200px;
}

@media screen and (max-width: 640px){
  div#Main table {
    margin-bottom: 150px;
  }

}

/*-------------------------------------
pagetop　ページトップへ移動
--------------------------------------*/
p {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
}

.pagetop{
  position: fixed;
  bottom: 60px;
  right: calc((100vw - 944px) / 2 - -30px);
  z-index: 100;

  writing-mode: vertical-rl;
  text-decoration: none;
  width: 30px;
  height: 85px;
  letter-spacing: 5px;
  text-align: right;

  display: flex;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit; 
  padding-top: 10px; 
}

.pagetop:before {
    content: "";
    position: absolute;
    top: 0;
    right: -5px;
    width: 2px;
    height: 20px;
    background: #2F3969;
    transform: skewX(-150deg);}

.pagetop:after {
    content: "";
    position: absolute;
    bottom: 0px;
    right: 0;
    width: 2px;
    height: 85px;
    background: #2F3969;
}

@media screen and (max-width: 944px){
  .pagetop{
    right: 35px;
  }
}



/*-------------------------------------
address　コピーライトマーク
--------------------------------------*/
footer{
  position: fixed; 
  bottom: 0;         
  left: 0;         
  width: 100%;
  max-width: 100% ;
}
address {
  clear: both;
  text-align: center;
  color: var(--accent-color);
}