.main-visual {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  margin-bottom: var(--space-xxxl);
  overflow: hidden;
}

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

.slider-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-item.active {
  opacity: 1;
}

.main-visual-picture,
.main-visual-picture img {
  display: block;
  width: 100%;
  height: 100%;
}

.main-visual-picture img {
  object-fit: cover;
}

/* ===== Caption on main visual ===== */
.main-visual-caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.main-visual .caption-inner {
  max-width: 1290px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  color: #f3eded;
}

.mv-lead {
  font-size: clamp(14px, 2vw, 18px);
  margin: 0;
}

/* Gantari for English part in title */
.mv-title span {
  font-family: var(--font-family-gantari);
  font-size: 36px;
  font-weight: 300; /* Light */
  color: var(--color-sub-black);
  font-variation-settings: "wght" 300, "opsz" 36;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  margin-bottom: 8px;
}

h1 {
  position: absolute;
  top: 64%;
  left: 0;
  color: var(--color-sub-black);
  z-index: 10;
  font-weight: 400;
  padding: 20px 80px;
  font-size: clamp(24px, 3.5vw, 26px);
  line-height: var(--line-height-normal);
  background: linear-gradient(
    90deg,
    rgba(233, 209, 219, 0.85) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
}

@media (min-width: 1024px) {
  .main-visual {
    padding-left: 160px;
  }
}

@media (max-width: 767px) {
  .mv-title span {
    font-size: 24px;
    line-height: normal;
  }

  h1 {
    padding: 16px;
    line-height: normal;
    font-size: 18px;
  }
	
	.main-visual {
  position: relative;
  width: 100%;
  height: calc(100svh - 70px);
  margin-bottom: var(--space-xxxl);
  overflow: hidden;
}
}

/* 

mission

*/

#mission .container {
  margin-bottom: var(--space-xxxl);
}

#mission .container .text-box {
  position: relative;
  border: 8px solid var(--color-main);
  padding: 60px;
  margin-bottom: 40px;

  background-image: url("/wp-content/uploads/dec-mission-top-left.svg"),
    url("/wp-content/uploads/dec-mission-top-right.svg"),
    url("/wp-content/uploads/dec-mission-bottom-left.svg"),
    url("/wp-content/uploads/dec-mission-bottom-right.svg");
  background-repeat: no-repeat;
  background-position: top left, top right, bottom left, bottom right;
}

#mission .container .text-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, #faf1f1 0%, #ffe0e0 100%);
  z-index: -1;
}

#mission .container h2 {
  background: linear-gradient(90deg, #ff5781 0%, #c94163 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  justify-content: center;
  font-family: var(--font-family-gantari);
  margin-bottom: var(--space-m);
}

#mission .mission-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-l);
  gap: 30px;
  align-items: center;
}

#mission .mission-item .mission-text {
  font-size: 18px;
}

#mission .mission-number {
  font-size: var(--font-size-fixed-xl);
  color: var(--color-main);
  font-family: var(--font-family-gantari);
}

#mission .movie-box {
  width: 100%;
  border-radius: 12px;
  border: 2px solid var(--color-white);
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

#mission .movie-box > div {
  position: relative;
  width: 100%;
  overflow: hidden;
}

#mission .movie-box iframe {
  display: block;
}

@media (max-width: 767px) {
  #mission .mission-item {
    gap: 20px;
    margin-bottom: 30px;
  }

  #mission .mission-number {
    font-size: 34px;
  }

  #mission .mission-text {
    font-size: 16px;
    padding-top: 15px;
  }

  #mission .container .text-box {
    padding: 30px 16px;
  }

  #mission .movie-box {
    border-radius: 4px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  #mission .container h2 {
    font-size: 26px;
  }

  #mission .container .text-box {
      background-size: 120px 120px, 120px 120px, 120px 120px, 120px 120px;
}
}

/* 

works

*/

#works {
  margin-bottom: var(--space-xxxl);
}

#works .title {
  margin-bottom: var(--space-xl);
}

#works .title-en {
  font-weight: 600;
  /* background: linear-gradient(
    90deg,
    var(--color-main) 0%,
    rgba(153, 153, 153, 0.1) 100%
  );
  background: var(
    --gradient02,
    linear-gradient(90deg, #8a2264 0%, #dad8d9 100%)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--font-family-gantari); */
}

#works .title-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

#works .title-main {
  font-weight: bold;
  color: var(--color-sub-black);
  margin: 0;
  line-height: 1.3;
}

#works .title-sub {
  font-size: var(--font-size-fixed-sm);
}

#works .title-line {
  font-weight: bold;
  font-size: 18px;
  line-height: 1;
  margin-right: 8px;
}

#works .text-container {
  padding: 30px 0px 30px 60px;
  position: relative;
}

#works .text-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 120px;
  bottom: 0;
  background: linear-gradient(90deg, #ffc9d6 0%, #f15e74 100%);
  z-index: -1;
}

#works .text-box {
  background-color: var(--color-light-pink);
  padding: 30px;
}

#works .text-wrapper .text-item {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-sub-black);
  padding: 30px;
}

#works .text-wrapper .text-item:first-child {
  border-top: 2px solid var(--color-sub-black);
}

#works .text-wrapper .text-item .text-item-02 {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 70%;
}

#works .text-wrapper .text-item .text-item-02 p {
  width: calc((100% - 30px) * 0.9);
}

#works .text-wrapper .text-item .text-item-02 .btn-works {
  width: 65px;
  height: 65px;
  flex-shrink: 0;
}

#works .text-wrapper .text-item .text-item-02 .btn-works a {
  display: inline-block;
  transition: transform 0.3s ease;
}

#works .text-wrapper .text-item .text-item-02 .btn-works a:hover {
  transform: translateX(5px);
}

#works .title-with-period {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 30%;
width: 30%;
}

#works .period {
  font-weight: 400;
  color: var(--color-main);
  opacity: 0.8;
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  #works .works-title-en {
    font-size: 20px;
  }

  #works .works-title-container {
    gap: 8px;
  }

  #works .works-title-main {
    font-size: 24px;
  }

  #works .works-title-sub {
    font-size: 24px;
  }

  #works .text-wrapper .text-item {
    display: flex;
    flex-direction: column;
  }

  #works .text-wrapper .text-item .text-item-02 {
    display: flex;
    flex-direction: column;
    gap: 0px;
  }

  #works .title-with-period {
    width: 100%;
  }

  #works .text-wrapper .text-item .text-item-02 {
    width: 100%;
    align-items: end;
  }

  #works .text-wrapper .text-item .text-item-02 p {
    width: 100%;
  }

  #works .text-wrapper .text-item {
    padding: 30px 0px;
  }

  #works .text-wrapper .text-item .text-item-02 .btn-works {
    width: 65px;
    height: 65px;
  }

  #works .title {
    margin-bottom: var(--space-l);
  }

  #works .title-sub {
    font-size: 16px;
  }
}

/* 

reason

*/

#reason {
  margin-bottom: var(--space-xxxl);
}

#reason .text-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
  margin-bottom: var(--space-xxl);
}

#reason .item {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
  background-color: var(--color-light-pink);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#reason .number-with-images {
  display: flex;
  align-items: center;
}

#reason .reason-left,
#reason .reason-right {
  display: inline-block;
}

#reason .reason-left img,
#reason .reason-right img {
  width: auto;
  height: 60px;
  display: block;
}

.gallery-wrapper {
  width: 100%;
  position: relative;
  padding: 30px 0;
  overflow: hidden;
}

.gallery-wrapper::before {
  content: "";
  position: absolute;
  bottom: -30px;
  right: 0;
  height: 50%;
  width: 100%;
  background-color: var(--color-light-pink);
  z-index: -1;
}

.gallery {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

.gallery-track {
  display: flex;
  animation: scroll 30s linear infinite;
  padding: 60px;
}

/* ギャラリーアイテム */
.gallery-item {
  flex: 0 0 auto;
  width: 400px;
  margin-right: 20px;
}

/* 画像（上下にフワフワ動く） */
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  animation: float 4.8s ease-in-out infinite;
  will-change: transform;
}

/* ずらして自然に見せる */
.gallery-item:nth-child(2n) img {
  animation-duration: 5.6s;
}
.gallery-item:nth-child(3n) img {
  animation-duration: 6.2s;
}

/* 横スクロール（ループ） */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 上下ゆらぎ（フワッと動く） */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px); /* 振れ幅：大きくしたいときは-25pxなどに */
  }
}

#reason .reason-number {
  color: var(--color-main);
  font-family: var(--font-family-gantari);
  font-size: 36px;
}

@media (max-width: 768px) {
  .gallery-wrapper::before {
    content: "";
    position: absolute;
    bottom: 96px;
    right: 0;
    height: 25%;
    width: 100%;
    background-color: var(--color-light-pink);
    z-index: -1;
}

.gallery-track {
  padding: 60px 0px 0px 60px;
}

.gallery-item {
  width: 300px;
}

#reason  {
  margin-bottom: 0px;
}

  #reason .text-wrapper {
    grid-template-columns: 1fr;
  }

  #reason .item {
    padding: 30px 16px;
  }

  #reason .gallery-track {
    gap: 0px;
  }

  #reason .gallery-item {
    width: 250px;
    height: 300px;
  }

  #reason .text-wrapper {
    margin-bottom: 0px;
  }
}

/* 

recommend

*/

#recommend {
  background-color: var(--color-light-pink);
  padding: var(--space-l);
  margin-bottom: var(--space-xxxl);
}

#recommend .wrapper .item {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
  padding: 30px;
  background-color: var(--color-white);
  margin-bottom: 24px;
}

#recommend .wrapper .item {
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
  padding: var(--space-l);
}

#recommend .wrapper .item-01 {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 12px;
}

#recommend .wrapper .item-01 .img-box {
  width: calc(15% - 7px);
}

#recommend .wrapper .item-01 p {
  width: calc(85% - 41px);
}

#recommend .wrapper .item-02 h3 {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  #recommend .wrapper .item-01 {
    gap: 24px;
  }

  #recommend .wrapper .item-01 .img-box {
    width: 245px;
  }

  #recommend .wrapper .item-01 p {
    width: 100%;
  }

  #recommend {
    padding: 40px 16px;
  }

  #recommend .wrapper .item {
    padding: 40px 16px;
}
  
}

/* 

INSTRUCTOR

*/

#instructor {
  background: linear-gradient(
    to bottom,
    #ffffff 0 50%,
    var(--color-light-pink) 50% 100%
  );
  padding: 30px;
  margin-bottom: 80px;
}

#instructor .wrapper .item-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

#instructor .wrapper {
  display: flex;
  gap: 180px;
  align-items: stretch;
}

#instructor .wrapper .tawada {
  display: flex;
  gap: 60px;
  align-items: center;
}

#instructor .wrapper .kaneko {
  display: flex;
  gap: 60px;
  align-items: center;
}

#instructor .wrapper .name {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

#instructor .wrapper .name p:nth-child(2) {
  font-size: 20px;
}

@media (max-width: 768px) {
  #instructor .wrapper {
    flex-direction: column;
    padding: 30px 0px;
    gap: 90px;
  }

  #instructor {
    background: linear-gradient(
      to bottom,
      #ffffff 0 20%,
      var(--color-light-pink) 0% 100%
    );
	  padding: 30px 16px;
  }

  #instructor .wrapper .tawada {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  #instructor .wrapper .kaneko {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  #instructor .wrapper .name {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

/* 

img

*/

#img {
  margin-bottom: var(--space-xxxl);
}

#img img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  #img img {
    height: 400px;
    object-fit: cover;
  }
}

/* 

REVIEW

*/

#review {
  margin-bottom: var(--space-xxxl);
}

#review .container .movie-box {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

#review .container .movie-item {
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  width: calc(50% - 10px);
}

#review .container .movie-item .youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

#review .container .movie-item .youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#review .container .text-box .text-item {
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

#review .container .text-box .img-box {
  display: flex;
  align-items: center;
  gap: 48px;
  margin-bottom: 12px;
}

#review .container .text-box .img-box .img-item {
  width: calc(8% - 4px);
}

#review .container .text-box .img-box p {
  width: calc(92% - 44px);
}

#review .container .text-box .review-text {
  color: var(--color-navy);
  margin-bottom: 12px;
  font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
  #review .container .movie-box {
    flex-direction: column;
  }

  #review .container .movie-item {
    padding: 24px;
    width: 100%;
  }

  #review .container .text-box .img-box {
    gap: 24px;
  }

  #review .container .text-box .img-box .img-item {
    width: calc(30% - 7px);
  }

  #review .container .text-box .img-box p {
    width: calc(70% - 17px);
  }
}

/* 

お知らせ

*/

#news {
  background-color: var(--color-light-pink);
  padding: 60px 0;
  margin-bottom: var(--space-xxxl);
}

#news .wrappre {
  display: flex;
  gap: 30px;
}

#news .wrappre .title {
  width: calc(30% - 9px);
}

#news .wrappre .container {
  width: calc(70% - 21px);
}

#news .title-container {
  display: flex;
  align-items: baseline;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

#news .news-item {
  border-bottom: 1px solid var(--color-black);
  border-top: 1px solid var(--color-black);
  padding: 20px 0;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  transition: background-color 0.3s ease;
}

#news .news-item:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#news .news-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

#news .news-date {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

#news .news-category {
  background-color: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 4px 12px;
  font-size: 12px;
  color: #333;
  text-align: center;
  min-width: 80px;
}

#news .news-text {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

/* NEWS: 横並び用 */
#news .news-content {
  flex: 1 1 auto;
}

#news .news-thumbnail {
  width: 340px;
  aspect-ratio: 1 / 1.414; /* A4縦（幅:高さ） */
  flex: 0 0 auto;
}

#news .news-thumbnail img,
#news .news-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  #news .news-wrapper {
    background-color: var(--color-light-pink);
    padding: 0px 0px 40px 0px;
  }

  #news .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  #news .news-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1.414; 
  }

  #news .wrappre {
    flex-direction: column;
  }

  #news .wrappre .title {
    width: 100%;
}

#news .wrappre .container {
  width: 100%;
}

#news {
  padding: 30px 0;
}
}

/* 

メディア

*/

#media {
  margin-bottom: var(--space-xxxl);
}

#media .media-wrapper {
  padding: 0px 0px 40px 40px;
}

#media .media-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-black);
  padding: 30px 0;
  gap: 30px;
  transition: background-color 0.3s ease-in-out;
  text-decoration: none;
  color: inherit;
}
/* フロントページのメディアアイテム用のより具体的なセレクター */
body.home section#media .container .media-wrapper a.media-item:hover {
  background-color: #f8f9fa;
  opacity: 0.9;
}

#media .media-item:first-child {
  border-top: 1px solid var(--color-black);
}

#media .media-content {
  flex: 1;
}

#media .media-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

#media .media-date {
  font-size: 14px;
  color: #8d8d8d;
  font-weight: 500;
}

#media .media-category {
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
  text-align: center;
  min-width: 100px;
  color: #000000;
  font-weight: 500;
}

/* メディアカテゴリーごとの色設定 */
#media .media-category.newspaper {
  background-color: #b7d6ff; /* 青系 - 新聞・雑誌掲載 */
}

#media .media-category.tv-radio {
  background-color: #50c878; /* 緑系 - テレビ・ラジオ出演 */
}

#media .media-category.seminar {
  background-color: #ff6b6b; /* 赤系 - セミナー情報 */
}

#media .media-category.other {
  background-color: #ffa500; /* オレンジ系 - その他 */
}

/* デフォルトの色（カテゴリーが設定されていない場合） */
#media
  .media-category:not(.newspaper):not(.tv-radio):not(.seminar):not(.other) {
  background-color: #b7d6ff;
  color: var(--color-sub-black);
}

#media .media-text {
  font-size: 16px;
  color: #333;
  margin: 0;
  line-height: 1.5;
}

#media .media-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 767px) {
  #media .media-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  #media .media-thumbnail {
    width: 100%;
  }

  #media .media-header {
    gap: 12px;
  }

  #media .media-category {
    font-size: 11px;
    padding: 3px 8px;
    min-width: 80px;
  }
}

/* 


YouTube

*/
#youtube {
  margin-bottom: var(--space-xxxl);
}

#youtube .container .movie-box {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 40px;
}

#youtube .container .movie-item {
  padding: 40px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  width: calc(50% - 10px);
}

#youtube .container .movie-item .youtube-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

#youtube .container .movie-item .youtube-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  #news .news-wrapper {
    background-color: var(--color-light-pink);
    padding: 0px 0px 40px 0px;
  }

  #youtube .container .movie-box {
    flex-direction: column;
  }

  #youtube .container .movie-item {
    width: 100%;
    padding: 24px;
  }
}
