/* Resets */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--primary);
}

li {
  list-style: none;
}

/* Fonts */
@font-face {
  font-family: "PP Formula Condensed Bold";
  src: url(./assets/fonts/PPFormula-CondensedBlack.otf);
}

@font-face {
  font-family: "PP Formula Condensed Regular";
  src: url(./assets/fonts/PPFormula-NarrowRegular.otf);
}

@font-face {
  font-family: "PP Formula Condensed Light";
  src: url(./assets/fonts/PPFormula-SemiCondensedExtralight.otf);
}

@font-face {
  font-family: "PP Formula Condensed Light Italic";
  src: url(./assets/fonts/PPFormula-SemiCondensedExtralightItalic.otf);
}

/* Variables */
:root {
  --primary-bg: #2d2d2d;
  --primary: #ffffff;
}

/* Base Styles */
.container {
  max-width: 1800px;
  margin: 0 auto;
}

body {
  background-color: var(--primary-bg);
  color: var(--primary);
}

img {
  max-width: 100%;
}

header {
  padding: 24px;
}

main {
  padding: 24px 24px 0;
}

header nav a:nth-child(1) {
  font-family: "PP Formula Condensed Regular";
  font-style: normal;
  font-weight: 400;
  line-height: 4rem;
}
header nav a:nth-child(2) {
  font-family: "PP Formula Condensed Light Italic";
  font-style: normal;
  font-weight: 100;
  line-height: 4rem;
}
header nav a:nth-child(3) {
  font-family: "PP Formula Condensed Light";
  font-style: normal;
  font-weight: 100;
  line-height: 4rem;
}

header nav {
  display: flex;
  justify-content: space-between;
}

header .separator {
  width: 100%;
  height: 6px;
  background-color: var(--primary);
}

main p:nth-child(1),
main p:nth-child(2) {
  font-family: "PP Formula Condensed Bold";
  font-style: normal;
}

main p:last-child {
  font-family: "PP Formula Condensed Regular";
  font-style: normal;
  font-weight: 400;
  text-align: justify;
  text-transform: uppercase;
}

/* Mobile Styles */
.grid {
  display: grid;
  grid-template-columns: [col-start] 1fr 1fr 1fr 1fr [col-end];
  grid-row-gap: 1rem;
}

main > * {
  grid-column: col-start / col-end;
}

main p:nth-child(1),
main p:nth-child(2) {
  font-size: 4rem;
}

main p:last-child {
  font-size: 1rem;
}

main .image {
  justify-self: center;
}

/* Small Tablet styles */
@media screen and (min-width: 690px) {
  .grid {
    grid-template-columns: [col-start] repeat(8, [col-start] 1fr) [col-end];
    grid-row-gap: 0;
  }

  main .image {
    grid-column: col-start / col-start 7;
    grid-row: 3;
  }

  main p:last-child {
    grid-column: col-start 6 / col-end;
    grid-row: 3;
    align-self: end;
  }
}

/* Large Tablet and Laptop Breakpoint */
@media screen and (min-width: 960px) {
  .grid {
    grid-template-columns: [col-start] repeat(12, [col-start] 1fr) [col-end];
  }

  header nav a {
    font-size: 2rem;
  }

  main p:nth-child(1),
  main p:nth-child(2) {
    font-size: 5.75rem;
    z-index: 1;
  }

  main p:nth-child(2) {
    justify-self: end;
  }

  main .image {
    grid-column: col-start 4 / col-start 10;
    margin-top: -4.5rem;
  }

  main p:last-child {
    grid-column: col-start 9 / col-start 12;
    align-self: start;
  }
  main p {
    text-shadow: 5px 5px 10px rgba(255, 208, 0, 0.5);
  }
}

/* desktop */
@media screen and (min-width: 1200px) {
  header nav a {
    font-size: 3rem;
  }

  main p:nth-child(1),
  main p:nth-child(2) {
    font-size: 10.75rem;
  }

  main p:last-child {
    font-size: 1.5rem;
  }

  main .image {
    margin-top: -8.5rem;
  }
}

/* 画像リンクのコンテナ */
.image-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* 個々の画像リンク */
.image-link {
  margin: 0.5rem;
}

.image-link img {
  max-width: 100%;
  height: auto;
}

/* 小さい画面ではリンクを縦に並べる */
@media (max-width: 767px) {
  .image-links {
    flex-direction: column;
    align-items: center;
  }
}
/* 予約したいクラスを選択してくださいの文字を中央寄せ */
.image-links-container {
  text-align: center;
}
.image-links-container p {
  font-size: 1.5rem; /* 適切なサイズに変更してください */
  font-family: "PP Formula Condensed Bold";
  src: url(./assets/fonts/PPFormula-CondensedBlack.otf);
}
.image-links-container a {
  text-decoration: underline; /* 下線を付ける */
  color: #ff9900; /* リンク色を設定 (オレンジ色の例) */
}
.image-links-container a:hover {
  color: #ffcc00; /* ホバー時の色を設定 (黄色の例) */
}

/* tableの代わりにグリッドレイアウトを使う */
.instructor-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.instructor-info img {
  width: 100%;
  height: auto;
}

/* タブレット以上の画面サイズ */
@media (min-width: 768px) {
  .instructor-info {
    grid-template-columns: 1fr 2fr;
  }
}
/* デスクトップ画面サイズ */
@media (min-width: 1024px) {
  .instructor-info {
    max-width: 800px; /* 適切な幅を設定 */
    margin: 0 auto; /* 中央揃え */
    grid-template-columns: 200px 1fr; /* 画像と文章の比率を調整 */
  }
}

main {
  padding: 24px 24px 0;
  /* 既存のスタイル */
}

.divider {
  width: 80%;
  border: none;
  border-top: 1px solid white; /* 線の色を変更可能 */
  margin: 24px auto; /* 上下のマージンを24pxに、左右を自動で中央寄せ */
}

/* SNSリンクの画像サイズを調整 */
.sns-link img {
  max-width: 1.2em; /* 文字より少し大きいサイズ */
  vertical-align: middle; /* 画像を文字の中央に揃える */
}

.section {
  background-color: #333; /* 背景色 */
  padding: 1rem; /* 余白 */
  border-radius: 5px; /* 角を丸める */
  margin-bottom: 2rem; /* 下部の余白 */
}
.section a {
  text-decoration: underline; /* 下線を付ける */
  color: #ff9900; /* リンク色を設定 (オレンジ色の例) */
}

.section a:hover {
  color: #ffcc00; /* ホバー時の色を設定 (黄色の例) */
}

/* フォームの中央寄せとサイズ調整 */
form {
  max-width: 600px; /* 適切な幅を設定してください */
  margin: 0 auto; /* 中央揃え */
  padding: 2rem; /* 余白 */
  background-color: #444; /* 背景色 */
  border-radius: 5px; /* 角を丸める */
}

/* 入力フィールドとテキストエリアのサイズ調整 */
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ラベルのスタイル */
label {
  font-weight: bold;
}

/* 送信ボタンのスタイル */
input[type="submit"] {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background-color: #ff9900;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #ffcc00;
}

footer {
  padding: 24px;
  text-align: center;
}

.sns-links {
  display: flex;
  justify-content: center;
  align-items: center;
}

.sns-link {
  margin: 0 10px;
}
.sns-link img {
  max-width: 2.4em; /* 文字の2倍のサイズ */
  height: auto; /* 画像の縦横比を維持する */
  vertical-align: middle; /* 画像を文字の中央に揃える */
}

.image-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.image-container a {
  width: 60%;
  margin: 0 10px;
}

.image-container img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .image-container {
    flex-direction: column;
    align-items: center;
  }

  .image-container a {
    width: 100%;
    margin: 10px 0;
  }
}