/* 山内ピアノ教室 - 最適化CSS */

@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;500;600&family=Noto+Sans+JP:wght@300;400;500;600&family=EB+Garamond:wght@400;500;600&display=swap");

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

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.9;
  color: #2d2d2d;
  background: linear-gradient(
    to right,
    #f5f2ed 0%,
    #ffffff 15%,
    #ffffff 85%,
    #f5f2ed 100%
  );
  min-height: 100vh;
}

/* 全体ラッパー - 縦に分断されない白い背景 */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  min-height: 100vh;
}

/* コンテンツラッパー */
.content-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* 装飾画像 - ランダム配置・大きめサイズ */
.decoration {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  z-index: 1;
  opacity: 0.18;
}

/* 表紙セクションの装飾 */
.decoration-1 {
  width: 280px;
  height: 280px;
  top: -50px;
  left: -80px;
  transform: rotate(-15deg);
}

.decoration-2 {
  width: 200px;
  height: 200px;
  top: 120px;
  right: -60px;
  transform: rotate(25deg);
  opacity: 0.15;
}

.decoration-3 {
  width: 180px;
  height: 180px;
  bottom: 80px;
  left: -50px;
  transform: rotate(12deg);
}

.decoration-4 {
  width: 220px;
  height: 220px;
  bottom: -40px;
  right: -70px;
  transform: rotate(-20deg);
  opacity: 0.2;
}

.decoration-5 {
  width: 160px;
  height: 160px;
  top: 50%;
  left: 50%;
  transform: translate(-300px, -200px) rotate(8deg);
  opacity: 0.12;
}

/* セクション装飾 - 教室の雰囲気 */
.decoration-6 {
  width: 300px;
  height: 350px;
  top: -80px;
  left: -100px;
  transform: rotate(-8deg);
  opacity: 0.15;
}

.decoration-7 {
  width: 250px;
  height: 300px;
  bottom: -60px;
  right: -90px;
  transform: rotate(15deg);
  opacity: 0.18;
}

/* レパートリーセクション装飾 */
.decoration-8 {
  width: 200px;
  height: 200px;
  top: 100px;
  right: -80px;
  transform: rotate(-25deg);
  opacity: 0.14;
}

.decoration-9 {
  width: 240px;
  height: 240px;
  bottom: 150px;
  left: -70px;
  transform: rotate(18deg);
}

/* 講師紹介セクション装飾 */
.decoration-10 {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -60px;
  transform: rotate(-12deg);
  opacity: 0.16;
}

.decoration-11 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: -70px;
  transform: rotate(22deg);
}

/* 動画セクション装飾 */
.decoration-12 {
  width: 220px;
  height: 220px;
  top: 50px;
  left: -85px;
  transform: rotate(-18deg);
  opacity: 0.15;
}

.decoration-13 {
  width: 190px;
  height: 190px;
  bottom: 80px;
  right: -75px;
  transform: rotate(28deg);
}

/* 画像+テキストセクション装飾 */
.decoration-14 {
  width: 160px;
  height: 160px;
  top: 20%;
  right: -60px;
  transform: rotate(-10deg);
  opacity: 0.13;
}

.decoration-15 {
  width: 180px;
  height: 180px;
  top: 60%;
  left: -65px;
  transform: rotate(15deg);
}

/* 表紙 */
.cover {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.cover h1 {
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 4rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 60px;
  color: #1a1a1a;
  position: relative;
  z-index: 2;
}

.cover-subtitle {
  font-family: "Noto Serif JP", serif;
  font-size: 1.4rem;
  letter-spacing: 0.25em;
  margin: 18px 0;
  color: #555;
  font-weight: 400;
  position: relative;
  z-index: 2;
}

.cover-text {
  max-width: 720px;
  margin: 60px auto;
  line-height: 2.3;
  color: #444;
  text-align: left;
  font-size: 1.02rem;
  position: relative;
  z-index: 2;
  letter-spacing: 0.03em;
}

.cover-text p {
  margin-bottom: 28px;
}

/* 表紙画像 - サイズ固定 */
.cover-image {
  width: 100%;
  max-width: 550px;
  max-height: 400px;
  height: auto;
  margin: 60px auto 0;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
  object-fit: cover;
}

section {
  padding: 0px 0;
  position: relative;
}

h2 {
  font-family: "EB Garamond", "Noto Serif JP", serif;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 90px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  position: relative;
  z-index: 2;
}

h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.75rem;
  text-align: center;
  margin: 90px 0 60px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: #2d2d2d;
  position: relative;
  z-index: 2;
}

/* 教室の雰囲気 - サイズ固定 */
.atmosphere-image {
  width: 100%;
  max-width: 750px;
  max-height: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
  object-fit: cover;
}

/* レパートリー */
.repertoire-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 65px;
  margin-bottom: 110px;
  position: relative;
  z-index: 2;
}

.repertoire-images {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* レパートリー画像 - サイズ固定 */
.repertoire-images img {
  width: 100%;
  max-width: 280px;
  max-height: 200px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.12);
}

.repertoire-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 35px;
  align-content: start;
}

.repertoire-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
  color: #555;
  border-bottom: 1px solid #e5e5e5;
  letter-spacing: 0.02em;
}

.piece-title {
  font-weight: 500;
  color: #2d2d2d;
}

.piece-composer {
  color: #999;
  font-size: 0.86rem;
  margin-left: 18px;
  white-space: nowrap;
}

/* 動画セクション */
.video-section {
  text-align: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 50px auto;
  padding-bottom: 47.8%;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
  background: #000;
  z-index: 2;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 講師紹介 */
.profile-simple {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 90px;
  position: relative;
  z-index: 2;
}

/* 講師写真 - サイズ固定 */
.profile-simple img {
  width: 100%;
  max-width: 340px;
  max-height: 450px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.profile-credentials {
  text-align: center;
  font-size: 0.88rem;
  line-height: 2;
  color: #666;
  margin-top: 25px;
  letter-spacing: 0.03em;
}

/* 画像+テキスト */
.image-text-section {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 70px;
  align-items: center;
  margin-bottom: 90px;
  position: relative;
  z-index: 2;
}

.image-text-section.reverse {
  grid-template-columns: 1fr 400px;
}

/* 画像+テキストセクションの画像 - サイズ固定 */
.image-text-section img {
  width: 100%;
  max-width: 400px;
  max-height: 300px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.image-text-section p {
  line-height: 2.4;
  color: #444;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* 最終セクション */
.final-address {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 70px;
  align-items: center;
  padding: 0px 0;
  position: relative;
  z-index: 2;
}

/* 最終セクションの画像 - サイズ固定 */
.final-address img {
  width: 100%;
  max-width: 400px;
  max-height: 350px;
  height: auto;
  object-fit: cover;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.address-info {
  line-height: 2.6;
  color: #444;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.address-info h2 {
  text-align: left;
  margin-bottom: 45px;
  font-size: 2.4rem;
}

.address-info p {
  margin: 18px 0;
}

.address-info a {
  color: #2d2d2d;
  text-decoration: none;
  border-bottom: 1px solid #b8a186;
  transition: all 0.3s;
}

.address-info a:hover {
  color: #b8a186;
}

/* フォーム */
.contact-form {
  max-width: 620px;
  margin: 90px auto;
  padding: 65px;
  background: #fdfcfa;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.form-group {
  margin-bottom: 32px;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 500;
  color: #2d2d2d;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}

.required {
  color: #c85555;
  margin-left: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #d4cfc4;
  background: #fff;
  font-size: 1.02rem;
  font-family: inherit;
  transition: border-color 0.3s;
  letter-spacing: 0.02em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #b8a186;
}

.form-group textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.8;
}

.submit-btn {
  width: 100%;
  padding: 19px;
  background: #2d2d2d;
  color: #fff;
  border: none;
  font-size: 1.12rem;
  cursor: pointer;
  letter-spacing: 0.12em;
  transition: all 0.3s;
  font-weight: 500;
}

.submit-btn:hover {
  background: #4a4a4a;
}

.submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
}

.form-message {
  margin-top: 28px;
  padding: 16px;
  text-align: center;
  display: none;
  border-radius: 4px;
  font-size: 0.95rem;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  display: block;
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
  display: block;
}

/* フッター */
footer {
  background: #1a1a1a;
  color: #fff;
  padding: 40px 0;
  text-align: center;
  margin-top: 120px;
}

footer p {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

/* TOPに戻る */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: #2d2d2d;
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.25);
  transition: all 0.3s;
  z-index: 1000;
}

.back-to-top.visible {
  display: flex;
}

.back-to-top:hover {
  background: #4a4a4a;
  transform: translateY(-4px);
}

/* タブレット対応 */
@media (max-width: 1300px) {
  .main-wrapper {
    margin: 0 20px;
  }
}

@media (max-width: 1100px) {
  .content-wrapper {
    padding: 0 30px;
  }

  /* タブレットでは装飾を小さく */
  .decoration {
    opacity: 0.12;
  }

  .decoration-1,
  .decoration-6 {
    width: 200px;
    height: 200px;
  }

  .decoration-2,
  .decoration-7 {
    width: 150px;
    height: 150px;
  }

  .decoration-3,
  .decoration-4,
  .decoration-8,
  .decoration-9,
  .decoration-10,
  .decoration-11,
  .decoration-12,
  .decoration-13,
  .decoration-14,
  .decoration-15 {
    width: 120px;
    height: 120px;
  }
}

/* スマホ対応 - 768px以下で完全に縦並び */
@media (max-width: 768px) {
  body {
    background: #f5f2ed;
  }

  .main-wrapper {
    margin: 0;
    box-shadow: none;
    max-width: 100%;
  }

  .content-wrapper {
    padding: 0 20px;
  }

  /* 表紙 */
  .cover {
    min-height: auto;
    padding: 60px 0 50px;
  }

  .cover h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 0.08em;
  }

  .cover-subtitle {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    margin: 12px 0;
  }

  .cover-text {
    margin: 40px auto;
    font-size: 0.95rem;
    line-height: 2;
  }

  .cover-text p {
    margin-bottom: 20px;
  }

  .cover-image {
    max-width: 100%;
    max-height: 300px;
    margin: 40px auto 0;
  }

  /* 装飾画像非表示 */
  .decoration {
    display: none;
  }

  /* セクション */
  section {
    padding: 0px 0;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 50px;
    letter-spacing: 0.05em;
  }

  h3 {
    font-size: 1.4rem;
    margin: 50px 0 35px;
    letter-spacing: 0.08em;
  }

  /* 教室の雰囲気 */
  .atmosphere-image {
    max-width: 100%;
    max-height: 350px;
  }

  /* レパートリー - 完全縦並び */
  .repertoire-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .repertoire-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .repertoire-images img {
    max-width: 100%;
    max-height: 250px;
  }

  .repertoire-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .repertoire-item {
    font-size: 0.88rem;
    padding: 10px 0;
    flex-direction: column;
    gap: 5px;
  }

  .piece-composer {
    margin-left: 0;
    font-size: 0.82rem;
  }

  /* 動画 */
  .video-container {
    margin: 35px auto;
    padding-bottom: 56.25%;
  }

  /* 講師紹介 - 縦並び */
  .profile-simple {
    grid-template-columns: 1fr;
    gap: 35px;
    margin-bottom: 60px;
  }

  .profile-simple img {
    max-width: 100%;
    max-height: 400px;
  }

  .profile-credentials {
    font-size: 0.85rem;
    margin-top: 20px;
  }

  /* 画像+テキスト - 縦並び */
  .image-text-section,
  .image-text-section.reverse {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
  }

  .image-text-section img {
    max-width: 100%;
    max-height: 280px;
  }

  .image-text-section p {
    font-size: 1rem;
    line-height: 2.2;
  }

  /* 最終セクション - 縦並び */
  .final-address {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 60px 0;
  }

  .final-address img {
    max-width: 100%;
    max-height: 280px;
  }

  .address-info {
    font-size: 0.98rem;
    line-height: 2.3;
  }

  .address-info h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
  }

  /* フォーム */
  .contact-form {
    padding: 40px 25px;
    margin: 60px auto;
  }

  .contact-form h2 {
    margin-bottom: 30px;
    font-size: 1.6rem;
  }

  .form-group {
    margin-bottom: 25px;
  }

  .form-group label {
    font-size: 0.92rem;
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 0.95rem;
  }

  .form-group textarea {
    min-height: 150px;
  }

  .submit-btn {
    padding: 16px;
    font-size: 1rem;
  }

  /* フッター */
  footer {
    margin-top: 80px;
    padding: 35px 20px;
  }

  footer p {
    font-size: 0.82rem;
  }

  /* TOPに戻る */
  .back-to-top {
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
}

/* 極小スマホ対応 */
@media (max-width: 375px) {
  .content-wrapper {
    padding: 0 15px;
  }

  .cover h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .contact-form {
    padding: 30px 20px;
  }
}

/* パンフレットセクション レスポンシブ */
@media (max-width: 768px) {
  .pamphlet-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .pamphlet-section h2 {
    font-size: 2rem !important;
  }
  .atmosphere-section h2 {
    font-size: 1.8rem !important;
  }
  .atmosphere-text {
    font-size: 1rem !important;
  }
}
