/* === 共通リセット === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  width: 100%;
  height: 100%;
  height: -webkit-fill-available;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.75;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}
body {
  min-height: 100%;
  /* mobile viewport bug fix */
  min-height: -webkit-fill-available;
}
 
html {
  height: -webkit-fill-available;
}
/* === スマホフレーム === */
.phone-frame {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  height: -webkit-fill-available;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)), linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
  background-size: 5vw 5vw;
  background-repeat: repeat;
  background-position: left top;
  background-color: white;
}
/* === スクロール可能コンテンツ === */
.phone-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  z-index: 3;
}
.phone-content::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}
.phone-content::-webkit-scrollbar-thumb {
  background-color: transparent;
}
/* === パララクスセクション === */
.parallax-box {
  clip-path: inset(0);
  width: 100%;
  height: 50vh;
  max-height: 500px;
  box-sizing: border-box;
  color: #fff;
}
.parallax-box::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  width: 100%;
  height: 100%;
  background-size: 550px;
  background-position: center center;
  background-repeat: no-repeat;
}
.parallax-box::after {
  background-image: url(../image/para-bkgd.png );
}
/* === セクション共通 === */
.hero {
  padding: 0;
  background-image: url("../image/top_base.png");
  background-size: contain;
  background-repeat: no-repeat;
}
.hero img {
  width: 100%;
}
.tick {
  animation: flash 2s steps(1, start) infinite;
}
@keyframes flash {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* === 横スクロール画像セクション === */
section.scroll-image {
  padding: 0 0 0 50px;
  margin-bottom: 3em;
  width: 100%;
}
.scroll-image .scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}
.scroll-container img {
  display: inline-block;
  height: auto;
  height: 260px;
}
/* === スクロールバーのカスタマイズ === */
.scroll-container::-webkit-scrollbar {
  height: 10px;
  display: inline-block;
  z-index: 5;
}
.scroll-container::-webkit-scrollbar-thumb {
  background-color: #0F0F0F;
  border-radius: 6px;
}
.scroll-container {
  scrollbar-color: #444 #787878;
}
.scroll-container::-webkit-scrollbar-thumb:hover {
  background-color: #666; /* 少し明るくして操作しやすく */
}
/* === タイポグラフィ === */
h2 {
  font-size: 30px;
  line-height: 1.4;
  margin-bottom: 1em;
}
h3 {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1em;
}
h4 {
  font-size: 30px;
  text-align: center;
  margin-top: 50px;
}
h5 {
  font-size: 18px;
  line-height: 1.3;
  text-align: left;
  padding: 0 10%;
  margin-bottom: 0.25em;
}
p {
  font-size: 15px;
}
a:hover {
  opacity: 0.6;
}
/* === スライド === */
.slide {
  width: 100%;
  margin: 0 auto 3em;
}
.slide-dep {
  width: 92%;
  margin: 0 auto;
}
.slide img {
  margin-right: 5px;
}
.slide-dep img {
  height: 250px;
}
.paddingmode {
  padding: 3em 10%;
}
/* === 各セクション === */
#message {
  background-image: url(../image/message-bkgd.svg);
  background-repeat: no-repeat;
  background-size: 100%;
  width: 100%;
}
#section001 {
  background-image: url(../image/section-bkgd-001.png);
  background-repeat: no-repeat;
  background-size: 100%;
  min-height: 955px;
}
#section001 h3 {
  padding: 100px 50px 0 50px;
}
#section001 p {
  padding: 0 50px;
}
section#main {
  padding: 0;
}
#svg-section {
  display: block;
  width: 100%;
  aspect-ratio: 20/37;
  background-color: white;
}
iframe#svg-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  background-color: white;
}
iframe::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
#main .boing-target {
  background-size: 100%;
  background-repeat: no-repeat;
  min-height: 195px;
  height: auto;
  padding: 67vw 0 0;
  margin-bottom: 25px;
  position: relative;
  overflow: visible;
}
.department01 {
  background-image: url(../image/department01.svg);
  color: hsl(199, 100%, 46%);
}
.department02 {
  background-image: url(../image/department02.svg);
  color: #E5005A;
}
.department03 {
  background-image: url(../image/department03-.svg);
  color: #039C77;
}
.department01::after {
  content: url("../image/dep01bottom.svg");
  display: inline-block;
  width: 75px;
  height: 25px;
  position: absolute;
  bottom: -25px;
  right: 20px;
}
.department02::after {
  content: url("../image/dep02bottom.svg");
  display: inline-block;
  width: 75px;
  height: 50px;
  position: absolute;
  bottom: -50px;
  right: 75px;
}
.department03::after {
  content: url("../image/dep03bottom.svg");
  display: inline-block;
  width: 75px;
  height: 50px;
  position: absolute;
  bottom: -50px;
  right: 100px;
}
.department01 .slide-dep {
  border-left: 3px solid #00A0E9;
  border-right: 3px solid #00A0E9;
  border-bottom: 4px solid #00A0E9;
}
.department02 .slide-dep {
  border-left: 3px solid #E5005A;
  border-right: 3px solid #E5005A;
  border-bottom: 4px solid #E5005A;
}
.department03 .slide-dep {
  border-left: 3px solid #039C77;
  border-right: 3px solid #039C77;
  border-bottom: 4px solid #039C77;
}

.course-menu{display:flex;justify-content:space-evenly;font-weight:500;margin-bottom:3em;}
.department01 .course-menu a{color:#00A0E9;text-decoration:none;border-bottom:1px solid #00A0E9;display:inline-block;}
.department02 .course-menu a{color:#E5005A;text-decoration:none;border-bottom:1px solid #E5005A;display:inline-block;}
.department03 .course-menu a{color:#039C77;text-decoration:none;border-bottom:1px solid #039C77;display:inline-block;}





#news {
  padding-top: 3em;
}
#news span {
  font-size: 12px;
  padding: 0 10%
}
#news h5 {
  font-size: 25px;
  padding: 0 10%;
}
#news p {
  padding: 0 10% 0 10%;
}
#news .boing-target {
  background-size: 100% auto;
  background-repeat: no-repeat;
  height: auto;
  padding:0;
}
#news .boing-target div {
  position: absolute;
  left: 0;
  height: auto;
}
  #news .boing-target.news01 div {
    top: 70vw;
  }
 #news .boing-target.news02 div {
     top: 70vw;
  }
  #news .boing-target.news03 div {
     top: 63vw;
  }
.news01 {
  background-image: url(../image/news01.svg);
  width:100%;
  aspect-ratio: 1 / 1.7;
  margin-bottom: 0px;
}
.news02 {
  background-image: url(../image/news02.svg);
  width:100%;
  aspect-ratio: 1 / 1.7;
  margin-bottom: 2.5vh;
}
.news03 {
  background-image: url(../image/news03.svg);
  width:100%;
  aspect-ratio: 1 / 1.6;
  margin-bottom: 2vh;
}
.news01 img {
  width: 80%;
  max-width: 405px;
  position: absolute;
  left: 10%;
  top: 10vw;
}
.news02 img {
  width: 80%;
  max-width: 405px;
  position: absolute;
  left: 10%;
  top: 12vw;
}
.news03 img {
  width: 80%;
  max-width: 405px;
  position: absolute;
  left: 10%;
  top: 2.5vh;
}
.slide.nobottom {
  margin: 0 auto;
}
footer {
  background-color: #FFF200;
  padding: 3em 10px 3em 10px;
  text-align: center;
  font-size: 13px;
}
footer menu {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: 21px;
  font-weight: 600;
  padding-bottom: 2em;
}
footer menu.follow {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1em;
  padding-bottom: 0.2em;
}
footer a {
  color: #0F0F0F;
  text-decoration: none;
}
footer a:hover {
  opacity: 0.6;
}
footer span {
  font-size: 11px;
}
#pc-follow, #pc-menu {
  display: none;
}
.scroll {
  width: 90%;
  max-height: 300px;
  margin-left: 10%;
  white-space: nowrap;
  aspect-ratio: 3360/1305;
}
#scrollinside {
  aspect-ratio: 3360/1305;
  height: 280px;
}
.simplebar-track.simplebar-horizontal {
  height: 13px;
  background: #828282;
  border-radius: 0px;
  max-width: 100%;
  margin: 0 auto;
}
.simplebar-scrollbar {
  height: 13px;
  background: #41485B;
  border-radius: 5px;
  top: 0;
}
.scroll .simplebar-content-wrapper {
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x !important;
}


/* === PC用中央固定 === */
@media screen and (min-width: 743px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    height: -webkit-fill-available;
  }
  /* === 背景固定表示 === */
  .background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../image/pc-background.png') center center / cover no-repeat;
    z-index: -1;
  }
  .phone-frame {
    width: 100%;
    margin: 0 auto;
    height: 100%;
    height: -webkit-fill-available;
    box-shadow: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-size: 25px 25px;
  }
  .phone-frame header {
    display: none;
  }
  h2 {
    font-size: 45px;
    line-height: 1.4;
    margin-bottom: 1em;
  }
  h3 {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1em;
  }
  h4 {
    font-size: 46px;
    text-align: center;
  }
  h5 {
    font-size: 25px;
    line-height: 1.3;
    text-align: left;
    padding: 0 50px;
    margin-bottom: 1em;
  }
  #section001 h3 {
    padding: 150px 50px 0 50px;
  }
  #news h5 {
    font-size: 25px;
    padding: 0 10%;
  }
  p {
    font-size: 18px;
  }
  .slide-dep {
    width: 460px;
    margin: 0 auto;
  }
  .scroll-container img {
    height: 45vh;
    max-height: 450px;
  }
  .scroll {
    width: 90%;
    max-height: 450px;
    margin-left: 10%;
    white-space: nowrap;
    aspect-ratio: 3360 / 1305;
  }
  #scrollinside {
    aspect-ratio: 3360 / 1305;
    height: 400px;
  }
  
  #main .boing-target {
  padding: 320px 0 0;
  }
  #news span {
    font-size: 15px;
    padding: 0 50px;
  }
  #news p {
    padding: 0 50px;
  }
  #message {
    min-height: 987px;
  }
  .news01 {
    min-height: 830px;
    margin-bottom: 0px;
  }
  .news02 {
    min-height: 873px;
    margin-bottom: 0px;
  }
  .news03 {
    min-height: 830px;
    margin-bottom: 0%;
  }
  .news01 img {
    width: 80%;
    max-width: 405px;
    position: absolute;
    left: 50px;
    top: 50px;
  }
  .news02 img {
    width: 85%;
    max-width: 400px;
    position: absolute;
    left: 50px;
    top: 64px;
  }
  .news03 img {
    width: 85%;
    max-width: 400px;
    position: absolute;
    left: 50px;
    top: 25px;
  }
  #news .boing-target.news01 div {
    top:350px;
  }
  #news .boing-target.news02 div {
    top:360px;
  }
  #news .boing-target.news03 div {
   top:330px;
  }
  footer {
    font-size: 16px;
  }
  footer menu {
    font-size: 25px;
  }
  #section001 {
    min-height: 1215px;
  }
}





#topanimation {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10010;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: black;
  pointer-events: none;
}
#topanimation div {
  padding: 45% 20px 0 20px;
}
/* 初期状態：黒 */
[class^="step-"] {
  fill: black;
  animation: fillToWhite 0.1s forwards;
  animation-timing-function: ease;
}
@media screen and (min-width: 768px) {
  #topanimation div {
    padding: 20%;
  }
}
@media screen and (min-width: 1000px) {
  #pc-follow, #pc-menu {
    display: block;
  }
  #pc-follow {
    width: calc(50% - 300px);
    position: absolute;
    left: 0;
    text-align: center;
  }
  #pc-follow menu {
    display: flex;
    justify-content: center;
    gap: 1.5em;
    margin-top: 1em;
  }
  #pc-menu {
    width: 25%;
    min-width: 250px;
    position: absolute;
    right: 0%;
  }
  #pc-menu menu {
    display: flex;
    flex-direction: column;
    gap: 1em;
    font-size: 25px;
    font-weight: 600;
  }
  #pc-menu menu a img {
    width: 25px;
    height: auto;
    margin-right: 0.6em;
    vertical-align: middle;
  }
  #pc-menu a {
    color: #0F0F0F;
    text-decoration: none;
    display: inline-block;
    vertical-align: middle;
  }
  #pc-menu a:hover {
    opacity: 0.6;
  }
  #news .boing-target.news01 div {
    top:350px;
  }
  #news .boing-target.news02 div {
    top:370px;
  }
  #news .boing-target.news03 div {
   top:330px;
  }
}