/* ***全体設定*** */
/* ****************** */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Noto Sans JP', sans-serif;
  background-image: url(../img/bk1.png);
}
 @font-face {
  font-family: "ふい字" ;
  src: url('../huizi.woff') format('woff');
}

.course-section {
  text-align: center;
  padding: 100px 0;
  position: relative;
  margin: 0 20vw;
}
@media (max-width: 768px) {
  .course-section {
    padding: 50px 0;
    margin: 0 15vw;
  }
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 50px;
  font-size: 24px;
  text-align: center;
}
.section-title h2 {
  font-family: "ふい字";
  font-size: 2rem;
  color: #586069;
  background: #fffff0;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 3px;  
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
  .section-title {
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 1.5rem;
}
}
/* ****************** */





/* ***ファーストビュー画面２分割***/
/* ****************** */
.split-images {
  display: flex;
  width: 100%;
  overflow: hidden;
  padding-bottom: 100px;
}
.image {
  flex: 1;
  position: relative;
  overflow: hidden;
}
.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, filter 0.5s ease;
}
.image:hover img {
  transform: scale(1.1);
  filter: brightness(0.8);
}

@media (max-width: 768px) {
  .split-images {
    display: block;
    /* position: relative; */
  }
  .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0;
    transition: opacity 1.5s ease;
  }
  .image.active {
    opacity: 1;
    z-index: 1;
  }
  .image img {
    transform: none !important;
    filter: none !important;
  }
}
/* ****************** */





/* ***学生作品展について*** */
/* ****************** */
.note-card {
  background: #fffff0;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  position: relative;
  overflow: visible;  /* ← テープがはみ出せるように */
}
.note-header {
  position: relative;
  padding: 30px 0 20px;
  background: #fffff0;
  border-bottom: 1px solid #ddd;
}
.note-header h2 {
  font-size: 1.6rem;
  text-align: center;
  margin: 0;
  color: #7b7e85;
}
/* マスキングテープ */
.note-header .ex-tape {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  width: 150px;
  height: 40px;
  background: #ffebad;
  opacity: 0.9;
}
/* ノート本文（罫線）*/
.note-paper {
  font-family: "ふい字";
  color: #324964;
  padding: 30px 40px;
  background-color: #fffff0;
  border: 1px solid #ddd;
  border-top: none;
  font-size: 20px;

  background-image: repeating-linear-gradient(
    to bottom,
    #e5e5e5 0px,
    #e5e5e5 1px,
    transparent 1px,
    transparent 25px
  );

  line-height: 35px;
  text-align: center;
}

@media (max-width: 768px) {
  /* .note-card{
    margin-top: 10vh;
  } */
  .note-paper {
  font-size: 14px;
  line-height: 25px;
  text-align: left;
}
  .note{
  margin-top: 100vh;
  }
}
/* ****************** */




/* ***コース紹介*** */
/* ****************** */
.section-title .heading-style1 {
  padding: 0.3em 0.9em 0.3em 0.9em;
  color: #324964;
  border-left: 35px solid #e6876f;
  background: #fffff0;
}

.course-container {
  /* display: flex; */
  justify-content: center;
  gap: 30px;
  flex-wrap: nowrap;
  /* max-width: 1000px; */
  margin: 0 auto;
}


/* 各コースカード */
.course {
  width: 280px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  background: rgba(255, 255, 255, 0.3);
  margin: 15px auto;
}
.course img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  /* ← イラストの絵に合わせる */
  /* object-fit: cover; */
  image-rendering: auto;
  transition: transform 0.5s cubic-bezier(.25, .8, .25, 1),
    filter 0.5s cubic-bezier(.25, .8, .25, 1);
}
.course:hover img {
  transform: scale(1.12);
  filter: brightness(0.95);
}
/* コース名（下スライド） */
.course-name {
  position: absolute;
  bottom: -60px;
  left: 0;
  width: 100%;
  padding: 12px 0;
  background: rgba(253, 253, 233, 0.95);
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
  transition: bottom 0.35s ease;
  z-index: 3;
}
.course:hover .course-name {
  bottom: 0;
}

.course.computer .course-name {border-top: 4px solid #155599;}
.course.game .course-name {border-top: 4px solid #2a7444;}
.course.design .course-name {border-top: 4px solid #ec9f3a;}
.course.sound .course-name {border-top: 4px solid #cf3d3d;}

.course.computer:hover {background: #fffff0;}
.course.game:hover {background: #fffff0;}
.course.design:hover {background: #fffff0;}
.course.sound:hover {background: #fffff0;}

.course:hover .course-name {background: #fffff0;}

@media (min-width: 768px) {
  .course-container {
    display: flex;  
  }
}
@media (max-width: 768px) {
.course {
  width: 100%;
  height: 200px;
  margin: 30px auto;
  background: #fffff0;
}
.course img {
  width: 60%;
}
.course-name {
  bottom: -5px;
}
}
/* ****************** */






/* ***作品紹介*** */
/* ****************** */
.section-title .heading-style2 {
  padding: 0.3em 1.5em 0.3em 1.5em;
  color: #324964;
  border-left: 35px solid #83af77;
  background: #fffff0;
  margin: 200px 0 20px;
}

.masonry {
  /* max-width: 1000px; */
  /* margin: 0 7vw; */
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 40px;
  grid-template-areas:
    "tall-left tall-left square-top square-top tall-right tall-right"
    "tall-left tall-left small-mid  small-mid  tall-right tall-right"
    "wide-bottom wide-bottom wide-bottom wide-bottom wide-bottom wide-bottom";  
}

.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.tall-left {
  grid-area: tall-left;
  aspect-ratio: 3 / 4;
}
.square-top {
  grid-area: square-top;
  aspect-ratio: 4 / 2;
}
.small-middle {
  grid-area: small-mid;
  aspect-ratio: 4 / 3;
}
.tall-right {
  grid-area: tall-right;
  aspect-ratio: 3 / 4;
}
.wide-bottom {
  grid-area: wide-bottom;
  aspect-ratio: 9 / 2;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(80, 120, 130, 0.5);
  transform: translateX(-100%);
  transition: transform .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.overlay span {
  color: #fff;
  font-size: 1.2rem;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(-10px);
  transition: .35s ease;
}
.masonry-item:hover img {transform: scale(1.08);}
.masonry-item:hover .overlay {transform: translateX(0);}
.masonry-item:hover .overlay span {
  opacity: 1;
  transform: translateX(0);
}

/* @media (max-width: 1000px) {
  .masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "tall-left tall-left square-top"
      "tall-left tall-left small-mid"
      "tall-right tall-right tall-right"
      "wide-bottom wide-bottom wide-bottom";
  }
} */

@media (max-width: 768px) {
  .masonry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "tall-left"
      "square-top"
      "small-mid"
      "tall-right"
      "wide-bottom";
  }
  .masonry-item {
    aspect-ratio: auto;
  }
  .section-title .heading-style2 {
  margin: 80px 0 30px;
}
 .overlay {
    transform: translateX(0); /* 常に表示 */
  }

  .overlay span {
    opacity: 1;
    transform: translateX(0);
  }

}
/* ****************** */





/* ***アクセス*** */
/* ****************** */
.access-container {
  text-align: center;
  /* padding: 140px 20px 80px; */
}

.course-section .heading-style3 {
  padding: 0.3em 1.5em 0.3em 1.5em;
  color: #324964;
  border-left: 35px solid #f1bb25;
  background: #fffff0;
  margin-bottom: 20px;
}

iframe {
    display: block;
    margin: 0 auto !important;
    width: 100%;
    /* マップの大きさ編集 */
    /* max-width: 1300px; */
    height: 350px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  @media (max-width: 768px) {
    iframe {
    /* マップの大きさ編集 */
    /* max-width: 300px; */
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  }

  }  

/* ****************** */





/* ***フッター*** */ 
/* ****************** */
.site-footer {
  width: 100%;
  padding-top: 100px;
  padding-bottom: 50px;
}
.footer-inner {
  background: #fffff0;
  padding: 90px 20px;
  border-radius: 0;
  max-width: none;
}
.footer-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 25px;
}
.footer-icons img {
  width: 37px;
  height: 37px;
  opacity: 0.9;
  transition: 0.3s;
}
.footer-icons img:hover {
  opacity: 1;
  transform: scale(1.2);
}
.footer-nav {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
}
.footer-nav a {
  font-family: "ふい字";
  text-decoration: none;
  color: #324964;
  font-size: 16px;
  letter-spacing: 0.05em;
  transition: 0.3s;
}
.footer-nav a:hover {
  color:  rgb(190, 230, 250);
}
@media (max-width: 768px) {
  .footer-inner {
    padding: 30px 20px;
    width: 100%;
  }
  .footer-nav {
    gap: 4vw;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .footer-nav a {
  font-size: 13px;
  letter-spacing: 0.03em;
  transition: 0.3s;
  }
  .footer-icons {
    gap: 24px;
    padding-top: 30px;
  }
}
/* *******************/

