:root {
  --warm-beige: #f5e6d3;
  --soft-yellow: #fff8dc;
  --light-gold: #f4e4bc;
  --medium-gold: #e6d08a;
  --dark-gold: #d4af37;
  --brown-text: #8b4513;
  --dark-brown: #654321;
  --white: #ffffff;
  --light-gray: #f0f0f0;
  --text-dark: #333333;
  --text-light: #666666;
  --accent-blue: #4a6fa5;
  --circle-gold: #f5d76e;
  --circle-brown: #b8860b;
  --accent-orange: #ff6b35;
  --orange: #ffa500;
  --green: #4caf50;
  --pink: #ff69b4;
  --blue: #1e90ff;
  --purple: #f74df7;

  /* 研修バッジの色 */
  --training-badge-april: #e91e63;
  --training-badge-april-light: #f8bbd9;
  --training-badge-may: #2196f3;
  --training-badge-may-light: #bbdefb;
  --training-badge-june: #4caf50;
  --training-badge-june-light: #c8e6c9;
  --training-badge-october: #ff9800;
  --training-badge-october-light: #ffe0b2;

  /* outline用の追加変数 */
  --table-border-color: #e8e0d1;
  --table-border-color-light: #f0ebe3;
  --table-header-bg: #f8f5f0;
}

/* フォントサイズの階層設定 */
:root {
  /* セクションタイトル */
  --font-size-section-title: 7rem; /* "技術力" */

  /* 小見出し */
  --font-size-section-title--small: 5rem; /* "梅田を中心に展開するかがやきの店舗" */

  /* セクション内の段落タイトル */
  --font-size-paragraph-title: 3.6rem; /* "幅広い知識・技術が学べる！"*/

  /* サブタイトル */
  --font-size-subtitle: 3.2rem; /* "背骨矯正×筋肉調整"  "ゲストを輝かせる" */

  /* リスト項目 */
  --font-size-list-item: 2rem; /* "リスト項目" */

  /* 本文 */
  --font-size-body: 1.6rem; /* 通常の説明文 */

  /* キャプション */
  --font-size-caption: 1.4rem; /* キャプション */

  /* セクションの説明文 */
  --font-size-section-description: 1.8rem; /* セクションの説明文 */

  /* 番号・ラベル */
  --font-size-number: 4.8rem; /* "01", "02" の大きな数字 */
  --font-size-label: 0.6rem; /* "REASON" などのラベル */
}

@media screen and (max-width: 750px) {
  :root {
    --font-size-section-title: 5rem;
    --font-size-section-title--small: 3rem;
    --font-size-paragraph-title: 2.4rem;
    --font-size-subtitle: 2rem;
    --font-size-list-item: 1.8rem;
    --font-size-body: 1.4rem;
    --font-size-caption: 1.2rem;
    --font-size-section-description: 1.6rem;
    --font-size-number: 3.6rem;
    --font-size-label: 0.5rem;
  }
}

.pc {
  display: inherit;
}

.sp {
  display: none;
}

@media screen and (max-width: 750px) {
  .pc {
    display: none;
  }

  .sp {
    display: inherit;
  }
}

a {
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-gold);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

li {
  list-style: none;
}

/* フェードインアニメーション */
.fade-in {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ローディングアニメーション */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--warm-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading__spinner {
  width: 4rem;
  height: 4rem;
  border: 0.4rem solid var(--light-gold);
  border-top: 0.4rem solid var(--dark-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 共通のセクションスタイル */
.section {
  padding: 8rem 2rem;
}

.section-head {
  width: 100%;
}

.grid-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, minmax(80px, calc((100vh - 6rem) / 8)));
  gap: 0;
  min-height: 640px;
  height: max(640px, calc(100vh - 6rem));
}

.section-head__text-wrap {
  padding: clamp(1.5rem, 4vw, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
}

.section-subtitle {
  font-size: clamp(2rem, var(--font-size-subtitle), 4rem);
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
}

.section-title {
  font-size: clamp(3rem, var(--font-size-section-title), 8rem);
  letter-spacing: 0.2em;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    #8282e7 0%,
    #d8bfd8 25%,
    #948cd4 50%,
    #daced9 75%,
    #a1bfc5 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  position: relative;
  display: inline-block;
  margin-bottom: clamp(0.5rem, 1rem, 2rem);
  white-space: nowrap;
}

.section-title::after {
  content: "";
  display: block;
  width: calc(100% + 4rem);
  height: 2px;
  margin-left: calc(-4vw - 2rem);
  background-color: var(--text-dark);
  margin-top: clamp(1rem, 3rem, 2rem);
}

.section-head__text {
  font-size: clamp(1.4rem, var(--font-size-section-description), 2rem);
  color: var(--text-dark);
  line-height: 1.6;
}

.grid-text {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
}

.grid-img--img01 {
  grid-column: 4 / 7;
  grid-row: 1 / 5;
  clip-path: polygon(25% 0, 100% 0, 75% 100%, 0 100%);
}

.grid-img--img02 {
  grid-column: 6 / 9;
  grid-row: 1 / 3;
  clip-path: polygon(37% 0, 100% 0, 100% 100%, 24% 100%);
}

.grid-img--img03 {
  grid-column: 1 / 7;
  grid-row: 5 / 9;
  clip-path: polygon(0% 3%, 87% 3%, 76% 100%, 0 100%);
}

.grid-img--img04 {
  grid-column: 5 / 9;
  grid-row: 3 / 9;
  clip-path: polygon(42% 2%, 100% 2%, 100% 100%, 15.5% 100%);
}

.section-head__grid-img {
  overflow: hidden;
  position: relative;
}

.section-head__grid-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-paragraph-title {
  font-size: clamp(2rem, var(--font-size-paragraph-title), 4rem);
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 3rem;
  display: flex;
  align-items: center;
}

.section-paragraph-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 48%;
  transform: translateY(-50%) rotate(45deg);
  width: 2rem;
  height: 2rem;
  background: linear-gradient(
    135deg,
    var(--dark-gold) 0%,
    var(--medium-gold) 50%,
    var(--light-gold) 100%
  );
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section__paragraph-text {
  font-size: clamp(1.6rem, var(--font-size-body), 2.4rem);
  line-height: 1.6;
  color: var(--text-dark);
}

/* レスポンシブ対応 */
@media (max-width: 750px) {
  .section-head__text {
    text-align: justify;
  }

  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: auto;
    gap: 1rem;
  }

  .grid-text,
  .grid-img--img01,
  .grid-img--img02,
  .grid-img--img03,
  .grid-img--img04 {
    grid-column: 1;
    grid-row: auto;
    clip-path: none;
    height: 250px;
    margin-bottom: 0;
  }

  .grid-text {
    height: auto;
    min-height: 280px;
    padding: 2rem;
  }

  .grid-text::after,
  .grid-img--img01::after,
  .grid-img--img02::after,
  .grid-img--img03::after,
  .grid-img--img04::after {
    display: none;
  }
}

/* section styles グリッド2つ */
.education .grid-container,
.beauty .grid-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(4, minmax(80px, calc((100vh - 6rem) / 8)));
  gap: 0;
  min-height: 320px;
  height: auto;
}

.education .grid-text,
.beauty .grid-text {
  grid-column: 1 / 5;
  grid-row: 1 / 5;
  z-index: 2;
  position: relative;
}

.education .grid-img--img01,
.beauty .grid-img--img01 {
  grid-column: 4 / 9;
  grid-row: 1 / 5;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
}

/* タブレット向けの中間サイズ対応 */
@media screen and (max-width: 1024px) and (min-width: 751px) {
  .education .grid-container,
  .beauty .grid-container {
    grid-template-columns: repeat(6, 1fr);
  }

  .education .grid-img--img01,
  .beauty .grid-img--img01 {
    grid-column: 3 / 7;
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
  }
}

@media screen and (max-width: 750px) {
  .education .grid-container,
  .beauty .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: auto;
    gap: 2rem;
  }

  .education .grid-text,
  .beauty .grid-text {
    grid-column: 1;
    grid-row: 1;
    order: 1;
    z-index: auto;
  }

  .education .grid-img--img01,
  .beauty .grid-img--img01 {
    grid-column: 1;
    grid-row: 2;
    clip-path: none;
    height: 200px;
    order: 2;
    z-index: auto;
  }
}

/* map,faqの見出し */
.section__title-sub {
  position: absolute;
  top: -9rem;
  left: 0;
  font-size: var(--font-size-list-item);
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin: 4rem 0 2rem 0;
  line-height: 1.4;
}

.section__title-sub::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: -50vw;
  right: 0;
  height: 1px;
  background-color: var(--text-dark);
}

.section__title-sub span {
  font-size: 0.7em;
  margin-left: 0.5rem;
}
