body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #4a2c2a;
  background: #fffaf8;
}

header {
  background-image: url("/img/top.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
/* モバイル用画像に切り替え */
@media (max-width: 600px) {
  header {
    background-image: url("/img/top_mobile.png");
  }
  .pop-banner {
    width: 90%;
    max-width: 320px;
    top: 10px;
  }
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(217 90 90 / 20%);
  z-index: 1;
}

header h1,
header p {
  position: relative;
  z-index: 2;
}

header h1 {
  font-family: "Parisienne", cursive;
  font-size: 4em;
  margin: 0;
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

header p {
  font-size: 1.4em;
  margin-top: 0.5em;
}

.pop-banner {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  z-index: 10;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  opacity: 0;
}

.pop-banner:nth-child(2) {
  top: 38%;
  animation: fadeInUp 1.2s ease forwards 0.5s;
}

.pop-banner:nth-child(3) {
  top: 55%;
  max-width: 320px; /* 小さめのサイズに設定 */
  animation: fadeInUp 1.2s ease forwards 0.8s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

section {
  max-width: 800px;
  margin: 3em auto;
  padding: 0 1em;
}

h2 {
  font-family: "Parisienne", cursive;
  font-size: 2.5em;
  color: #a94d4d;
  margin-bottom: 0.3em;
}

.highlight {
  font-weight: bold;
  color: #c03c3c;
}

.info-box {
  background: #fff5f2;
  padding: 1.5em;
  border-left: 5px solid #d88d8d;
  margin-top: 1.5em;
  line-height: 1.8;
  border-radius: 5px;
}

footer {
  background: #f6e9e7;
  text-align: center;
  padding: 2em 1em;
  font-size: 0.95em;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.social-icons {
  margin-top: 10px;
}

.copyright {
  margin-top: 10px;
  font-size: 0.85em;
  color: #8a6665;
}

.instagram-icon {
  color: #d62976;
  transition: transform 0.3s ease, color 0.3s ease;
  display: inline-block;
}

.instagram-icon:hover {
  transform: scale(1.1);
  color: #bc2a8d;
}

a.button {
  display: block;
  width: fit-content;
  margin: 1.5em auto;
  background: #a94d4d;
  color: white;
  padding: 0.8em 1.5em;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: background 0.3s ease;
  text-align: center;
}

a.button:hover {
  background: #812d2d;
}

iframe {
  width: 100%;
  height: 300px;
  border: 0;
  margin-top: 2em;
  border-radius: 10px;
}

.free-trial-badge {
  position: absolute;
  bottom: 5%;
  left: 5%;
  background-color: white;
  color: #a94d4d;
  padding: 15px;
  border-radius: 50%;
  border: 1px solid #a94d4d;
  font-size: 1.5em;
  line-height: 1.2;
  text-align: center;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-10deg);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0;
  animation: pulseLeft 2s ease infinite, fadeIn 1s ease forwards 1s;
}

/* PC画面では右下に配置 */
@media (min-width: 601px) {
  .free-trial-badge {
    left: auto;
    right: 5%;
    transform: rotate(10deg);
    animation: pulseRight 2s ease infinite, fadeIn 1s ease forwards 1s;
  }
}

@keyframes pulseLeft {
  0% {
    transform: rotate(-10deg) scale(1);
  }
  50% {
    transform: rotate(-10deg) scale(1.05);
  }
  100% {
    transform: rotate(-10deg) scale(1);
  }
}

@keyframes pulseRight {
  0% {
    transform: rotate(10deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.05);
  }
  100% {
    transform: rotate(10deg) scale(1);
  }
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2.5em;
  }
  header p {
    font-size: 1.1em;
  }
  h2 {
    font-size: 2em;
  }
  .free-trial-badge {
    width: 80px;
    height: 80px;
    font-size: 1.2em;
    padding: 10px;
  }
  .pop-banner:nth-child(2) {
    max-width: 320px; /* モバイルでの1枚目の画像サイズ */
  }
  .pop-banner:nth-child(3) {
    max-width: 260px; /* モバイルでの2枚目の画像サイズ */
    top: 50%;
  }
}

.center {
  text-align: center;
}

/* 地図のスタイル */
#map {
  width: 100%;
  height: 400px;
  border: none;
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(211, 90, 158, 0.2);
}

/* カスタムマーカースタイル */
.ballet-marker {
  background: transparent;
  border: none;
}

/* ポップアップのスタイル */
.custom-popup {
  font-family: 'Noto Sans JP', sans-serif;
}

.custom-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(211, 90, 158, 0.3);
}

.custom-popup .leaflet-popup-tip {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 6px rgba(211, 90, 158, 0.2);
}

.location-popup {
  text-align: center;
}

.location-popup h3 {
  margin: 0 0 10px 0;
  color: #d35a9e;
  font-family: 'Parisienne', cursive;
  font-size: 1.5em;
}

.location-popup p {
  margin: 5px 0;
  font-size: 0.9em;
}

.location-popup a {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background-color: #d35a9e;
  color: white;
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85em;
  transition: all 0.3s ease;
}

.location-popup a:hover {
  background-color: #b94b86;
  transform: scale(1.05);
}

/* プロフィールセクションのスタイル */
#profile {
  background-color: #fff5f2;
  padding: 3em 1em;
  margin: 4em auto;
  position: relative;
  max-width: 800px;
}

/* スマホ画面でのマージン調整 */
@media (max-width: 768px) {
  #profile {
    margin: 0 auto; /* 上下マージンを小さく */
    padding: 2em 1em; /* パディングも少し調整 */
  }
}

.profile-container {
  display: flex;
  flex-direction: column; /* モバイルではデフォルトで縦並び */
  gap: 30px;
  margin-top: 1.5em;
  align-items: center; /* モバイルでは中央揃え */
}

/* デスクトップ表示では横並びレイアウト */
@media (min-width: 769px) {
  .profile-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .profile-image {
    flex: 0 0 35%; /* 固定幅を維持 */
    margin-right: 30px; /* 右側のテキストとの間隔 */
  }
  
  .profile-text {
    flex: 1; /* 残りのスペースを埋める */
  }
}

.profile-image {
  max-width: 300px;
  width: 100%;
}

.profile-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 5px solid white;
  transition: transform 0.3s ease;
}

.profile-image img:hover {
  transform: scale(1.02);
}

.profile-text {
  width: 100%; /* モバイル表示で幅いっぱいに */
}

.profile-text h3 {
  font-size: 1.8em;
  color: #a94d4d;
  margin-bottom: 0.2em;
  border-bottom: 1px solid #f0d0d0;
  padding-bottom: 0.3em;
}

.profile-title {
  font-size: 0.6em;
  color: #888;
  font-weight: normal;
  margin-left: 10px;
}

.profile-subtitle {
  font-size: 1.1em;
  color: #d88d8d;
  margin-top: 0;
  margin-bottom: 1em;
}

.profile-description {
  line-height: 1.8;
  margin-bottom: 1.5em;
}

.profile-description p {
  margin-bottom: 0.8em;
}

.profile-qualifications {
  background-color: rgba(255, 255, 255, 0.7);
  padding: 1em;
  border-radius: 8px;
  border-left: 3px solid #d88d8d;
}

.profile-qualifications h4 {
  margin-top: 0;
  color: #a94d4d;
  font-size: 1.1em;
}

.profile-qualifications ul {
  padding-left: 1.2em;
  margin-bottom: 0;
}

.profile-qualifications li {
  margin-bottom: 0.5em;
}

.profile-message {
  text-align: center;
  margin-top: 2em;
  font-style: italic;
}

.profile-message .highlight {
  font-size: 1.2em;
  position: relative;
  display: inline-block;
}

.profile-message .highlight::before,
.profile-message .highlight::after {
  content: "\201C";
  font-family: "Parisienne", cursive;
  font-size: 1.5em;
  color: #d88d8d;
  position: absolute;
  opacity: 0.7;
}

.profile-message .highlight::before {
  left: -15px;
  top: -5px;
}

.profile-message .highlight::after {
  content: "\201D";
  right: -15px;
  bottom: -5px;
}

/* レスポンシブ対応（細かい調整） */
@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    gap: 15px; /* ギャップも調整 */
  }
  
  .profile-image {
    max-width: 250px;
    margin-bottom: 1em; /* 上下の間隔を小さく */
    margin-right: 0; /* モバイルでは右マージンを削除 */
  }
  
  .profile-text h3 {
    text-align: center;
    font-size: 1.5em;
  }
  
  .profile-subtitle {
    text-align: center;
  }
  
  .profile-message {
    margin-top: 1.5em; /* メッセージ部分の余白も調整 */
  }
}

@media (max-width: 480px) {
  .profile-image {
    max-width: 200px;
  }
  
  .profile-qualifications {
    padding: 0.8em;
  }
  
  .profile-message .highlight {
    font-size: 1em;
  }
}