/* ---- 01 TYPOGRAPHY SYSTEM
- FONT SIZE SYSTEM (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- SPACING SYSTEM (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 */

:root {
  --primary-color: #4d7cae;
  --primary-dark-color-1: #4d7cae;
  --primary-tint-color-1: #6a99cb;
  --primary-tint-color-2: #dbdfe4;
  --primary-tint-color-3: #e1e5e9;
  --primary-tint-color-4: #659ad3;
  --color-tertiary: #fff;
  --accent-color-1: #375a7f;
  --accent-color-2: #f3f179;
  --accent-color-3: #eeed8e;
  --accent-color-2-dark: #d3d025;
  --accent-color-3-dark: #b3a600;
  --color-white: #fff;
  --border-radius: 9px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  overflow-x: hidden;
}

body {
  font-family: 'Noto Sans Jp', sans-serif;
  line-height: 1;
  font-weight: 400;
  overflow-x: hidden;
  color: #333;
}

a {
  text-decoration: none;
  color: #333;
}

/* ****************************
Genearl Components
**************************** */
.container {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.heading-primary,
.heading-secondary,
.heading-tertiary {
  font-weight: 700;
  letter-spacing: 1px;
  color: #333;
}

.heading-primary {
  margin-bottom: 3.2rem;
  font-weight: 700;
  letter-spacing: 0.8rem;
  color: var(--accent-color-1);
}

.heading-primary {
  font-size: 4.8rem;
  line-height: 1.4;
  filter: drop-shadow(3px 3px 0px var(--primary-tint-color-2));
  word-break: keep-all;
}

.subheading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  letter-spacing: 0.75px;
  color: #333;
}

.subheading ion-icon {
  font-size: 2.4rem;
}

.heading-secondary {
  display: inline-block;
  font-size: 3.5rem;
  word-wrap: break-word;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 9.6rem;
  margin-bottom: 6.4rem;
  background-image: linear-gradient(
    to right,
    var(--primary-dark-color-1),
    var(--primary-tint-color-1)
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.heading-tertiary {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3.2rem;
  color: #555;
}

.paragraph {
  font-size: 1.8rem;
  line-height: 1.8;
}

.paragraph-2 {
  font-size: 1.8rem;
  line-height: 1.2;
}

.margin-right-sm {
  margin-right: 1.6rem !important;
}

.margin-bottom-sm {
  margin-bottom: 1.6rem !important;
}

.margin-top-sm-minus {
  margin-top: -1.6rem;
}

.margin-top-md-minus {
  margin-top: -3.2rem;
}

.margin-top-sm {
  margin-top: 1.6rem !important;
}

.margin-top-md {
  margin-top: 4.8rem !important;
}

.margin-top-lg {
  margin-top: 7.2rem !important;
}

.margin-bottom-sm {
  margin-bottom: 1.6rem !important;
}

.margin-bottom-md {
  margin-bottom: 4.8rem !important;
}

.top-border {
  padding-top: 1.6rem;
  border-top: 1px solid #b3b1b1;
}

.center-text {
  text-align: center !important;
}

.d-flex {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

.nav-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

a.btn.d-flex {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  line-height: 1;
}

.d-flex-sm {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.d-flex-end {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  align-items: center;
}

/* Grid Component */
.grid {
  display: grid;
  column-gap: 2.8rem;
  row-gap: 4.8rem;
}

.grid:not(:last-child) {
  margin-bottom: 9.6rem;
}

.grid--2-cols {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3-cols {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4-cols {
  grid-template-columns: repeat(4, 1fr);
}

.grid--center-v {
  align-items: center;
}

/* Button Components */
.btns {
  display: flex;
  gap: 1.8rem;
}

.badge,
.btn,
.btn:link,
.btn:visited {
  display: inline-block;
  font-size: 1.8rem;
  color: #333;
  text-decoration: none;
  padding: 1.6rem 3.2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.7s;

  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.badge {
  cursor: auto;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btns ion-icon {
  font-size: 2.2rem;
}

.btn--full:link,
.btn--full:visited {
  display: inline-block;
  background-color: var(--accent-color-2);
  box-shadow: inset 0 0 0 3px var(--primary-dark-color-1);
}

.btn--full:hover,
.btn--full:active {
  background-color: var(--primary-color-tint-color-2);
  box-shadow: inset 0 0 0 3px var(--accent-color-1);
}

.btn--outline:link,
.btn--outline:visited {
  display: inline-block;
  background: #fff;
  color: #333;
  box-shadow: inset 0 0 0 3px var(--primary-color-dark);
}

.btn--outline,
.btn--outline:hover,
.btn--outline:active {
  background-color: var(--primary-color-tint);
  box-shadow: inset 0 0 0 3px var(--color-white);
}

.badge--full {
  display: inline-block;
  background-color: var(--accent-color-2);
  color: #333;
  border: solid 1px var(--primary-color);
}

.btn-container {
  text-align: center;
}

.btn--signup:link,
.btn--signup:visited {
  display: inline-block;
  background: var(--primary-tint-color-4);
  color: var(--color-white);
}

.btn--signup:hover,
.btn--signup:active {
  background-color: var(--color-white);
  color: var(--primary-color);
  box-shadow: inset 0 0 0 3px var(--primary-color);
}

.btn-nav:link,
.btn-nav:visited {
  display: inline-block;
  background: var(--primary-color);
  color: var(--color-white);
  font-size: 1.6rem;
  border-radius: 100px;
  padding: 0.8rem 1.6rem;
  transition: all 0.3s;
}

.btn-nav:hover,
.btn-nav:active {
  background-color: var(--color-white);
  color: var(--primary-color);
  box-shadow: inset 0 0 0 3px var(--primary-color);
}

/* CRUDボタンの共通スタイル　*/
.btn-form,
.btn-admin {
  padding: 1.2rem 2.4rem;
  font-size: 1.6rem;
  font-weight: bold;
  border-radius: 0.6rem;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
}

.btn--round {
  border-radius: 50px;
}

/* 新規登録ボタン用 */
.btn--create {
  background-color: #0077cc;
}

/* 新規登録ボタン用 */
.btn--nav-create,
.btn--cancel {
  background-color: #ce800aec;
}

.btn--nav-create:hover,
.btn--cancel:hover {
  background-color: #bd770eec;
}

.btn--create:hover {
  background-color: #005fa3;
}

/* 削除ボタン用 */
.btn--delete {
  background-color: #cc0000;
}
.btn--delete:hover {
  background-color: #990000;
}

/* 編集ボタン用 */
.btn--edit {
  background-color: #28a745;
}
.btn--edit:hover {
  background-color: #218838;
}

/** btn サイズ調整　*/
.btn--sm {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

/* admin button */
.admin-btn-group {
  display: flex;
  gap: 0.8rem;
}

/* クラスカテゴリー用のボタン　*/
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 4.8rem;
}

.category-btn {
  font-size: 1.7rem;
  padding: 0.8rem 1.6rem;
  margin: 0.4rem;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 1rem;
  transition: all 0.3s ease;

  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  line-height: 1;
}

.category-btn:hover {
  background-color: var(--primary-tint-color-4);
  color: #fff;
  cursor: pointer;
}

.category-btn--selected {
  background-color: var(--primary-tint-color-4);
  color: #fff;
  border-color: transparent;
}

.category-btn ion-icon {
  font-size: 2.5rem;
}

/** スピナー */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(90deg);
  }
  50% {
    transform: rotate(180deg);
  }
  75% {
    transform: rotate(270deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }

  from {
    opacity: 0;
    transform: translateY(2rem);
  }
}

/** メッセージボックス　*/
.message {
  padding: 1.2rem 1.6rem;
  margin: 1.6rem 0;
  border-radius: 0.6rem;
  font-size: 1.6rem;
  line-height: 1.5;
  font-weight: bold;
  border: 1px solid #c3e6cb;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: opacity 0.5s ease, max-height 0.5s ease, margin 0.5s ease,
    padding 0.5s ease;
  max-height: 50rem;
  overflow: hidden;
}

.message--success {
  color: #155724;
  background-color: #d4edda;
}

.message--error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

/* 非表示用のクラス */
.message--fadeout {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
}

*:focus {
  outline: none;
  box-shadow: 0 0 0 0.8rem var(--primary-color-dark);
}

.page-top {
  opacity: 0;
  width: 5.5rem;
  height: 5.5rem;
  background-color: var(--primary-tint-color-1);
  border: none;
  border-radius: 50%;

  position: fixed;
  bottom: 2rem;
  right: 2rem;
  transition: all 0.2s;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);

  display: flex;
  justify-content: center;
  align-items: center;
}

.page-top::before {
  content: '';
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  border-top: solid 3px var(--color-white);
  border-right: solid 3px var(--color-white);
  transform: rotate(-45deg);
  margin-top: 0.3rem;
}

.page-top:hover,
.page-top:active {
  transform: scale(1.1);
  background-color: var(--primary-dark-color-1);
}

.is-hide {
  pointer-events: none;
}

/* vacancy */
.vacancy {
  display: inline-block;
  background: #333;
  padding: 0.3rem 1rem;
  vertical-align: middle;
  margin-left: 0.5rem;
  margin-bottom: 0.2rem;
  color: var(--color-white);
  font-size: 1.5rem;
  border-radius: 7px;
  text-align: center;
  letter-spacing: 1px;
}

.vacancy--stop {
  background: red;
}

/* エラーメッセージ用のスタイル */
.error-message {
  background-color: #f8d7da; /* 薄い赤色 */
  color: #721c24; /* ダークレッドの文字色 */
  border: 1px solid #f5c6cb; /* 薄い赤の境界線 */
  padding: 1rem;
  border-radius: 5px; /* 角を丸く */
  font-size: 14px;
}

.error-message strong {
  font-weight: bold; /* エラー強調 */
}

/* ****************************** */
/*  Header */
/* ****************************** */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 7rem;
  padding: 0 4.8rem;
  background-color: #fff;
  box-shadow: 0 1.2rem 3.2rem 0.8rem rgba(0, 0, 0, 0.08);
}

.logo {
  height: 4rem;
}

/* ****************************** */
/*  Navigation */
/* ****************************** */

.main-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 3.2rem;
}

.main-nav-list span {
  font-size: 1.6rem;
}

.main-nav-link:link,
.main-nav-link:visited {
  color: #222;
  font-size: 1.7rem;
  transition: all 0.3s;
  position: relative;
}

.main-nav-btn {
  color: #222;
  font-family: inherit;
  font-size: 1.7rem;
  transition: all 0.3s;
  border: none;
  background-color: transparent;
}

.main-nav-link:hover,
.main-nav-link:active {
  color: var(--accent-color-1);
}

.main-nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.8rem;
  width: 0;
  height: 0.2rem;
  background-color: var(--primary-color);
  transition: 0.3s all;
}

.main-nav-link:hover::after {
  width: 100%;
}

/* Mobile */
.btn-mobile-nav {
  border: none;
  background: none;
  cursor: pointer;
  display: none;
}

.icon-mobile-nav {
  height: 4.8rem;
  width: 4.8rem;
  color: #333;
}

.icon-mobile-nav[name='close-outline'] {
  display: none;
}

/* ****************************** */
/*  Hero Section */
/* ****************************** */

.section-hero {
  height: 90vh;
  padding: 4.8rem 0 9.6rem 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  background-image: linear-gradient(
      to right bottom,
      rgb(135, 206, 235, 0.8),
      rgb(216, 245, 251, 0.8)
    ),
    url(../images/main/hero-1200w.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 9.6rem;
  max-width: 130rem;
  padding: 0 3.2rem;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.hero-description {
  font-size: 1.8rem;
  line-height: 1.6;
  letter-spacing: 1.5px;
  color: #111;
}

.hero-img-box {
  position: relative;
  height: 40rem;
}

.hero-img {
  width: 100%;
}

/* ****************************** */
/*  Composition */
/* ****************************** */
.composition {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.composition-photo {
  width: 55%;
  box-shadow: 0 1.5rem 4rem rgb(55, 90, 127, 0.4);
  border-radius: 10px;
  position: absolute;
  z-index: 10;
  transition: all 0.2s;
  outline-offset: 2rem;
}

.composition-photo:hover {
  transform: scale(1.05) translateY(-0.5rem);
  z-index: 20;
}

.composition:hover .composition-photo:not(:hover) {
  transform: scale(0.9);
}

.composition-photo--p1 {
  left: 5%;
  top: -2.5rem;
}

.composition-photo--p2 {
  right: 0;
  top: 2rem;
}

.composition-photo--p3 {
  left: 25%;
  top: 10rem;
}

/* ****************************** */
/*  Workshops */
/* ****************************** */
.section-workshops {
  padding: 9.6rem 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  grid-gap: 6vh calc(2rem + 1vw);
}

.card {
  font-size: 1.8rem;
  border-radius: 1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.2);
  overflow: hidden;
  padding-bottom: 5rem;
  display: flex;
  flex-direction: column;
}

.card-picture {
  background-size: cover;
  background-repeat: no-repeat;
  height: 27rem;
  position: relative;
}

.vacancy-msg::after {
  content: '満席';
  position: absolute;
  display: inline-block;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(223, 59, 59, 0.86);
  padding: 1rem 2.5rem;
  color: #fff;
  border-radius: 10rem;
  letter-spacing: 2px;
}

.card-content {
  padding: 1.4rem 1.5rem 3.2rem;
  display: flex;
  flex-direction: column;
}

.card-heading {
  line-height: 1.4;
  margin-bottom: 1.6rem;
  font-size: 2rem;
}

.card-title {
  font-size: 2rem;
  color: #444;
  word-break: keep-all;
}

.number {
  font-family: rubic, sans-serif;
  font-size: 4.8rem;
  font-weight: 600;
  color: var(--primary-tint-color-1);
}

.card-description {
  font-size: 1.6rem;
  line-height: 1.6;
}

.card-details {
  font-size: 1.6rem;
}

.card-details table th {
  vertical-align: top;
  white-space: nowrap;
}

.card-details table th,
.card-details table td {
  padding: 0.5rem 0;
}

.card-details table td,
.card-details table th {
  line-height: 1.4;
}

/* ****************************** */
/*  Access */
/* ****************************** */
.section-access {
  padding: 7.2rem 0 7.2rem;
}

.access-imgbox {
  text-align: center;
}

.access-imgbox img {
  width: 80%;
}

.access-place {
  font-size: 2rem;
  line-height: 1.4;
}

.access-note {
  list-style: none;
}

.access-note li {
  font-size: 1.6rem;
  line-height: 1.6;

  display: flex;
  gap: 1.2rem;
  align-items: start;
}

.access-note span {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background-color: currentColor;
  margin-top: 1rem;
}

/* ****************************** */
/*  Workshop Hero Page */
/* ****************************** */

/* bread list */
.bread {
  margin: 2.5rem 0 2.5rem 0;
}

.bread ol {
  display: flex;
  list-style: none;
}

.bread li {
  font-size: 1.4rem;
}

.bread li:not(:last-child)::after {
  margin: 0 1.5rem 0;
  content: '\003e';
}

.bread-link:link,
.bread-link:visited {
  transition: all 0.3s;
}

.bread-link:hover,
.bread-link:active {
  color: var(--primary-color);
}

/* 詳細ページのトップセクション　*/
.workshop-hero-section {
  padding: 0 0 4.8rem;
}

.workshop-hero {
  display: flex;
  gap: 1.6rem;
  margin-top: 3rem;
}

.workshop-hero-text-box {
  flex: 2;
  padding: 0 calc(0.3rem + 1vw);
}

.workshop-title {
  padding: 2rem 4rem;
  font-size: 2rem;
  letter-spacing: 1.2px;
  color: var(--color-white);
  background-image: linear-gradient(
    to right,
    var(--primary-dark-color-1),
    var(--primary-tint-color-1)
  );
  border-radius: var(--border-radius);
  word-break: keep-all;
}

.workshop-hero-description {
  font-size: 1.7rem;
  line-height: 1.4;
}

.workshop-hero-image-box {
  flex: 2;
  min-width: 0;
  padding: 1rem;
  height: 45vh;
}

.workshop-hero-image-box .swiper {
  width: 100%;
  height: 100%;
}

.workshop-hero-image-box .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.workshop-hero-image-box .workshop-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: solid 1px var(--accent-color-3-dark);
  border-radius: var(--border-radius);
}

.workshop-hero-image-box .swiper-button-next,
.workshop-hero-image-box .swiper-button-prev {
  color: var(--accent-color-1);
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.6;
  width: 4rem;
  height: 4rem;
  z-index: 10;

  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
  opacity: 1;
  pointer-events: auto;
}

.workshop-hero-image-box .swiper-button-next:hover,
.workshop-hero-image-box .swiper-button-prev:hover {
  opacity: 1;
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.workshop-hero-image-box .swiper-button-next::after,
.workshop-hero-image-box .swiper-button-prev::after {
  font-size: 2rem;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.5));
}

.workshop-hero-image-box .swiper-pagination {
  display: flex !important;
  justify-content: center;
  gap: 2rem;

  background-color: #fff;
  opacity: 0.8;
  padding: 1rem;

  width: auto;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  border-radius: 1rem;
}

.workshop-hero-image-box .swiper-pagination-bullet {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--accent-color-1);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.workshop-hero-image-box .swiper-pagination-bullet-active {
  background: var(--accent-color-2-dark);
  opacity: 1;
}

/* サムネイルスライダー */
.workshop-hero-image-box .thumb-swiper {
  margin-top: 1rem;
  height: 6rem;
  box-sizing: border-box;
  padding: 0 1rem;
}

/* サムネイルの個々のスライド */
.workshop-hero-image-box .thumb-swiper .swiper-slide {
  width: 10rem;
  height: 100%;
  opacity: 0.4;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.workshop-hero-image-box .thumb-swiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid var(--accent-color-2);
}

/* サムネイル内の画像　*/
.workshop-hero-image-box .thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 2px solid transparent;
}

.workshop-hero-image-box .thumb-swiper .swiper-slide-thumb-active img {
  border-color: var(--accent-color-1);
}

.workshop-heading {
  font-size: 1.8rem;
  border-top: 3px solid var(--primary-tint-color-1);
  border-bottom: 3px solid var(--primary-tint-color-1);
  padding: 0.7rem;
  letter-spacing: 2px;
}

/* レッスン日時（class_session） */
.class-sessions-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 1.7rem;
  background-color: #fff;
}

.class-sessions-table th {
  padding: 1.6rem 1.5rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #333;
  text-align: left;
}

.class-sessions-table tr {
  height: 2.5rem;
  vertical-align: middle;
}

.class-sessions-table td {
  padding: 0.6rem 0.8rem;
  vertical-align: top;
}

.class-sessions-table td:first-child {
  white-space: nowrap;
}

.class-sessions-table select {
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 1.4rem;
  background: #e6f0f8;
}

/* ****************************** */
/*  Workshop Detail Table Section */
/* ****************************** */
.workshop-table-section {
  padding: 3.2rem 0;
}

.workshop-table {
  /* width: 100%; */
  width: 95%;
  font-size: 1.8rem;
  margin: 2rem auto;
  /* background-color: yellow; */
}

.workshop-table th {
  background-color: var(--primary-tint-color-1);
  letter-spacing: 0.2rem;
  width: 20%;
  color: #333;
}

.workshop-table th,
.workshop-table td {
  padding: 1rem;
  line-height: 1.4;
}

.workshop-table td {
  background-color: var(--primary-tint-color-3);
}

/* ****************************** */
/*  Back to workshops menu  */
/* ****************************** */
.section-back-to-workshops {
  padding: 1.6rem 0 3.2rem;
}

.back-to-workshops-link:link,
.back-to-workshops-link:visited {
  font-size: 1.7rem;
  transition: all 0.5s;
}

.section-back-to-workshops ion-icon {
  font-size: 2rem;
}

.back-to-workshops-link:hover,
.back-to-workshops-link:active {
  color: var(--primary-color);
}

/* ****************************** */
/*  Footer */
/* ****************************** */

.footer {
  padding: 4.8rem 0 9.6rem;
  background: var(--primary-tint-color-2);
}

.footer-logo {
  display: block;
}

.footer-link:link,
.footer-link:visited {
  font-size: 1.6rem;
  color: #333;
  transition: all 0.3s;
}

.footer-link:hover,
.footer-link:active {
  color: #555;
}

.logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
}

.contacts {
  font-style: normal;
  font-size: 1.6rem;
  line-height: 1.6;
}

.contacts a {
  display: block;
}

.copyright {
  font-size: 1.4rem;
  line-height: 1.6;
}

/* ****************************** */
/*  Error */
/* ****************************** */
.section-error {
  padding: 9.6rem 0 9.6rem;
}

.back-to {
  display: block;
  margin-top: 1.6rem;
  font-size: 1.5rem;
  color: #ad3a3a;
}

/* ****************************** */
/*  Form */
/* ****************************** */
.section-create,
.section-edit,
.section-login {
  padding: 9.6rem 0 9.6rem;
  font-size: 1.5rem;
}

/* ****************************** */
/*  Form Component */
/* ****************************** */

.form-base {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
  max-width: 85rem;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 4rem;
  border-radius: 1.2rem;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.05);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

label {
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: #333;
}

.image-label {
  display: block;
  margin-bottom: 1rem;
  border: 1px solid #ddd;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #fafafa;
}

.form-control {
  padding: 1rem;
  font-size: 1.8rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  background-color: #fff;
}

input[type='file'] {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
}

.form-image-upload .form-control {
  font-size: 1.5rem;
}

.form-group.image-upload .form-image-upload:first-of-type {
  border: 2px solid #e0cad3;
  background-color: #fae4ed;
  /*border: 2px solid var(--primary-tint-color-1); /* #6a99cb */
  /*background-color: var(--primary-tint-color-2); /* #dbdfe4 */
  padding: 1rem;
  border-radius: 0.5rem;
  display: block;
  font-weight: bold;
}

.image-upload .form-image-upload {
  background-color: #e5e6e8;
  border: 1px solid #e1e5e9;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-group .form-image-upload:first-of-type label {
  display: flex;
  align-items: center;
}

.form-group.image-upload .form-image-upload:first-of-type label::after {
  content: '代表画像';
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--color-white);
  font-size: 1.2rem;
  padding: 0.4rem 1rem;
  border-radius: 0.75rem;
  margin-left: 0.5rem;
}

.preview-container {
  position: relative;
  display: none;
  margin-top: 0.8rem;
  width: 10rem;
  height: auto;
  border-radius: 0.25rem;
}

.preview-image {
  display: none;
  max-width: 10rem;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  padding: 0.25rem;
  max-height: 12rem;
  object-fit: cover;
  border: 1px solid #ccc;
}

.remove-image-btn {
  padding: 0.3rem;
  font-size: 1.3rem;
  color: #a33;
  background-color: #fff;
  border-radius: 9999px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s;

  position: absolute;
  top: -3px;
  right: -6px;
}

.remove-image-btn:hover {
  background-color: #f8d4d4;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.1);
}

.remove-image-btn ion-icon {
  font-size: 1.5rem;
  color: inherit;
}

.file-size {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.2rem;
  color: #555;
}

/* 編集フォーム（プレビュー画像） */

.slot-title-wrapper {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding: 0.8rem;
}

.btn-reset-image {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.2rem;
  padding: 0.2rem 0.4rem;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-reset-image ion-icon {
  font-size: 1.4rem;
}

.btn-reset-image:hover {
  background-color: #e0e0e0;
  color: #000;
}

.class-group-image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1rem;
}

.edit-image-preview {
  width: 15rem;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  padding: 0.8rem;
  background-color: #f9f9f9;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.1);

  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.edit-image-preview.empty-slot {
  border: 2px dashed #ccc;
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  text-align: center;
  font-size: 1.4rem;
  position: relative;
}

.edit-image-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

.image-preview-actions {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
}

.edit-image-preview .btn-delete-image,
.edit-image-preview .btn-replace-image,
.edit-image-preview .btn-add-image {
  background: #f0f0f0;
  border: none;
  padding: 0.4rem 0.6rem;
  margin: 0.4rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.edit-image-preview .btn-delete-image:hover,
.edit-image-preview .btn-replace-image:hover,
.edit-image-preview .btn-add-image:hover {
  background: #e0e0e0;
}

.btn-replace-image ion-icon,
.btn-delete-image ion-icon,
.btn-add-image ion-icon {
  font-size: 2rem;
  color: #333;
}

.btn-upload-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  background-color: var(--accent-color-3);
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 2.4rem;
  margin-top: 1.2rem;
}

.btn-upload-icon:hover {
  background-color: var(--accent-color-2);
}

/* プレビュー画像の表示番号 */
.edit-image-preview .order-num {
  position: absolute;
  top: 0.2rem;
  left: 0.5rem;
  background-color: #6bcb77;
  color: #fff;
  padding: 0.4rem 0.7rem;
  font-size: 1.4rem;
  border-radius: 99rem;
  font-weight: bold;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.edit-image-preview:first-child .order-num {
  background-color: #ff6f61;
}

/*　プレビュー画像のアップロードボタン　*/

textarea {
  resize: vertical;
}

input[type='checkbox'] {
  margin-right: 0.8rem;
}

form > div > div label {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
}

.form-group-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.8rem;
}

.form-group-row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* 差し替え用ファイルを入力 */
.input-replace-image {
  margin-top: 1rem;
  font-size: 1.4rem;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.5rem;
  border-radius: 0.4rem;
  width: 100%;
}

/* 削除ボタン */
.btn-delete-image {
  margin-top: 0.6rem;
  background-color: #ffe5e5;
  border: none;
  color: #a33;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-delete-image ion-icon {
  font-size: 1.6rem;
  color: #a33;
  transition: color 0.2s;
}

.btn-delete-image:hover ion-icon {
  color: #d00;
}

/* スロットへのドラッグ＆ドロップ効果　*/
.dragging {
  opacity: 0.5;
}

.drag-over {
  outline: 2px dashed #00aaff;
}

/* 新規画像追加のドラッグ＆ドロップエリア */
.upload-container {
  position: relative;
}

.upload-title-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.btn-clear-images {
  background-color: #e2796d;
  color: #fff;
  border: none;
  border-radius: 0.8rem;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.2 ease;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-clear-imags:hover {
  background-color: #c0392b;
}

.btn-clear-images ion-icon {
  font-size: 1.5rem;
}

.drop-area {
  border: 2px dashed #ccc;
  border-radius: 0.8rem;
  padding: 2rem;
  text-align: center;
  background-color: #fafafa;
  cursor: pointer;
  transition: background-color 0.3s;
}

.drop-area:hover {
  background-color: #f0f0f0;
}

.drop-area.dragover {
  background-color: #e0f7fa;
  border: 2px dashed #00bcd4;
}

/* 新規画像のプレビュー表示*/
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  /* gap: .6rem; */
  margin-top: 1rem;
}

.preview-grid .preview-item {
  position: relative;
  width: 9rem;
  height: 9rem;
  border: 1px solid #ccc;
  border-radius: 0.6rem;
  /* overflow: hidden; */
  background-color: #fff;
  cursor: pointer;
}

.preview-grid .preview-item .btn-delete-image {
  position: absolute;
  top: -1.5rem;
  right: -0.5rem;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  padding: 0;
  width: 1.6rem;
  height: 1.6rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.preview-grid .preview-item .btn-delete-image:hover {
  background-color: rgba(255, 0, 0, 0.8);
}

.preview-grid .preview-item .btn-delete-image:hover ion-icon {
  color: #fff;
}

.preview-grid .preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #666;
  font-style: italic;
  font-size: 1.4rem;
  height: 10rem;
  background-color: #f0f0f0;
  border: 1px dashed #ccc;
  margin-bottom: 0.8rem;
}

.spinner {
  width: 4rem;
  height: 4rem;
  border: 4px solid #ccc;
  border-top-color: #4aa3df;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 1rem auto;
}

.grid-multi-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1rem;
}

/* ****************************** */
/*  Instructors */
/* ****************************** */
.instructors-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  grid-gap: 1vh calc(2rem + 1vw);
  max-width: 75rem;
  margin-inline: auto;
}

.instructor-card {
  font-size: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  padding: 2rem 2rem 2rem;
}

.instructor-img-box {
  width: 20rem;
  height: 20rem;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid var(--primary-tint-color-1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.instructor-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.instructor-name {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-weight: 600;
  color: var(--primary-dark-color-1);
}

.name-jpn {
  display: block;
  font-size: 2rem;
  line-height: 1.2;
}

.name-eng {
  display: block;
  font-size: 1.4rem;
  color: var(--accent-color-3-dark);
  font-style: italic;
  margin-top: 0.3rem;
}

.instructor-profile-link button {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 1.5rem;
  border: 1px solid var(--primary-dark-color-1);
  border-radius: 999px;
  background-color: transparent;
  color: var(--primary-dark-color-1);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.instructor-profile-link button:hover {
  background-color: var(--accent-color-1);
  color: #fff;
}

/* ****************************** */
/*  Modal */
/* ****************************** */

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;

  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  display: block;
}

/* 既存設定のモーダル（スマホ画面用）*/
.modal {
  position: fixed;
  background: #fff;
  z-index: 99999;

  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  transform: translateX(100%);
  transition: transform 0.5s ease-in;
  overflow-y: auto;
}

.modal-inner {
  overflow-y: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 2rem;
}

.modal.show {
  transform: translateX(0);
}

/**********************
Modal Content - Base（スマホ用）
**********************/

.modal-content {
  text-align: center;
  position: relative;
  padding: 2rem;
}

.modal-image img {
  width: 20rem;
  height: 20rem;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  border: 3px solid var(--accent-color-1);
  margin-bottom: 1.5rem;
}

.modal-name .name-jpn {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 0.8rem 0 0.8rem;
}

.modal-name .name-eng {
  font-size: 1.8rem;
  font-style: italic;
  color: var(--accent-color-3-dark);
}

.modal-bio {
  margin-top: 2.5rem;
  font-size: 1.9rem;
  line-height: 1.6;
  text-align: left;
}

.modal-close {
  position: absolute;
  top: -2rem;
  right: -0.8rem;
  font-size: 5rem;
  border: none;
  background: none;
  color: var(--primary-dark-color-1);
  cursor: pointer;
}

.text-close-btn {
  display: inline-block;
  background: none;
  border: none;
  color: var(--accent-color-1);
  font-size: 1.8rem;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.text-close-btn:hover {
  opacity: 1;
}

/* PC画面用　*/
@media screen and (min-width: 768px) {
  .modal {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    pointer-events: none;
    opacity: 0;
    overflow-y: auto;
    max-width: 70rem;
    width: 100%;
    max-height: 75vh;
    overflow: hidden;
    border-radius: 1.2rem;
    padding: 1rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .modal-inner {
    /* max-height: 70vh; */
    max-height: 100%;
    min-height: auto;
    overflow: auto;
    display: block;
    padding: 2rem 4rem;
  }

  .modal-close {
    font-size: 4.5rem;
    top: -3rem;
    right: -4rem;
  }

  .modal.show {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
    visibility: visible;
    pointer-events: auto;
  }

  .modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .modal-content {
    padding: 2rem 4rem;
  }

  .modal-image img {
    width: 18rem;
    height: 18rem;
    margin-bottom: 1rem;
  }

  .modal-name .name-jpn {
    font-size: 1.8rem;
  }

  .modal-name .name-eng {
    font-size: 1.4rem;
  }

  .modal-bio {
    font-size: 1.6rem;
    margin-top: 1.5rem;
    overflow-y: auto;
    max-height: 40vh;
  }

  .text-close-btn {
    font-size: 1.4rem;
  }

  /* 編集フォーム */
  .upload-container {
    display: flex;
    gap: 2rem;
  }

  .drop-area {
    flex: 1;
    max-width: 30rem;
  }

  .preview-grid {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
}
