/* Importing Google Fonts for Noto Sans JP */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base styles (Mobile-first) */
body {
  font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem; /* Slightly smaller for mobile */
  /* color: #333; */
  /* background: #fff0f6; */
  line-height: 1.5; /* Tighter line height for mobile */

  background: linear-gradient(180deg, #fff7fb 0%, #fff0f6 60%, #fff7fb 100%);
  /* font-family: "Noto Sans JP", sans-serif; */
  color: #333;
}

a {
  color: #333;
  transition: color 0.3s ease;
  text-decoration: none;
}

a:hover {
  color: #d808b6;
  text-decoration: underline;
}

/* Header */
header {
  background-color: #f6e1f9;
  color: #333;
  padding: 0.8rem;
  text-align: center;
}

.logo {
  font-size: 1.3rem; /* Slightly smaller for mobile */
  font-weight: 700;
}

.logomark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  list-style: none;
  margin-top: 12px;
  flex-wrap: wrap;
}

nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.85rem; /* Adjusted for mobile */
}

nav a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #f6e1f9;
  padding: 0.8rem;
  color: #333;
  text-align: center;
  font-size: 0.8rem;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 0.8rem 0;
}

.sns-links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
}

.sns-links img {
  width: 22px;
  height: 22px;
}

.sns-links a:hover,
footer p a:hover {
  text-decoration: underline;
  text-decoration-color: #d808b6;
  color: #d808b6;
}

/* Hero Section */
.hero {
  position: relative;
  text-align: center;
}

.hero-image {
  width: 100%;
  height: 200px; /* Smaller height for mobile */
  object-fit: cover;
}

.catchphrase {
  font-size: 0.95rem; /* Adjusted for mobile */
  font-weight: 700;
  color: #d808b6;
  margin: 0.8rem 0;
}

.hero p {
  max-width: 300px;
  margin: 0 auto 0.8rem;
  font-size: 0.9rem;
}

/* Link Cards */
.links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 0.8rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: background-color 0.3s, color 0.3s;
}

.link-card:hover {
  background-color: #f6e1f9;
  color: #d808b6;
}

.link-card img {
  width: 100%;
  height: 180px; /* Adjusted for mobile */
  object-fit: cover;
}

.link-card h3 {
  padding: 0.8rem;
  font-size: 0.95rem;
}

/* Content Section */
.content {
  padding: 0.8rem;
  max-width: 95%; /* Slightly wider for mobile */
  margin: 0 auto;
}

.content h2 {
  font-size: 1.1rem;
  color: #d32f2f;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.content-image {
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.content h3 {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.content h4 {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 550;
}

.content ul {
  padding-left: 1.2rem;
}

.content li {
  margin-top: 0.3rem;
  color: #d808b6;
  list-style-type: disc;
}

.content dd {
  text-indent: 0;
  padding-left: 1.2rem;
  color: #5d5b5c;
}

.content dt {
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0;
  display: block;
  overflow-x: auto;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 0.4rem;
  text-align: left;
}

table th {
  background-color: #f6e1f9;
  color: #d808b6;
}

/* Pricing table: Keep "料金" column nowrap */
.content h3:where(:nth-of-type(1)) + table th:nth-child(2),
.content h3:where(:nth-of-type(1)) + table td:nth-child(2) {
  white-space: nowrap;
}

/* Lesson schedule: Allow wrapping for "日時" column */
.content h3:where(:nth-of-type(2)) + table th:nth-child(2),
.content h3:where(:nth-of-type(2)) + table td:nth-child(2) {
  white-space: normal;
}

/* Contact Form */
.contact-form {
  padding: 0.8rem;
  max-width: 95%;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.4rem;
  margin-bottom: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

.contact-form button {
  background-color: #f6e1f9;
  color: #d808b6;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.contact-form button:hover {
  background-color: #e1bee7;
}

/* Tablet Layout (min-width: 640px) */
@media screen and (min-width: 640px) {
  body {
    font-size: 1rem;
    line-height: 1.6;
  }

  header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav a {
    font-size: 1rem;
  }

  .hero-image {
    height: 300px;
  }

  .catchphrase {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 400px;
  }

  .links {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .link-card h3 {
    font-size: 1.1rem;
  }

  .content, .contact-form {
    max-width: 700px;
  }

  .content h2 {
    font-size: 1.4rem;
  }

  .content h3 {
    font-size: 1.2rem;
  }

  .contact-form label,
  .contact-form input,
  .contact-form textarea,
  .contact-form button {
    font-size: 1rem;
  }
}

/* Desktop Layout (min-width: 1024px) */
@media screen and (min-width: 1024px) {
  body {
    font-size: 1.05rem;
  }

  .hero-image {
    height: 400px;
  }

  .catchphrase {
    font-size: 1.6rem;
  }

  .links {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
  }

  .content, .contact-form {
    max-width: 1000px;
  }

  .content h2 {
    font-size: 1.6rem;
  }

  .content h3 {
    font-size: 1.3rem;
  }
}
/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  font-size: 20px;
  color: #6c63ff; /* 矢印色（T-STYLE YOGAの紫系に近い） */
  border: 2px solid #6c63ff;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  box-shadow: none;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

/* スクロール後に表示 */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ホバー時（色を反転） */
.back-to-top:hover {
  background-color: #6c63ff;
  color: #fff;
}