/* ===== 背景（固定・全画面） ===== */
body{
  margin:0;
  background-image:url("../images/bg.png"); 
  background-size:cover;
  background-position:center;
  background-attachment:fixed;
  font-family:"Times New Roman", "YuMincho", "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho",sans-serif;
  color:#685126;
  overflow-x: hidden;
}

/* ==========================================================================
   Page Hero
   ========================================================================== */
.page-hero {
  position: relative;
  height: clamp(300px, 40vh, 420px);
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 8vw, 140px);
  
}

.page-hero__circle {
  position: absolute;
  width: clamp(300px, 50vw, 600px);
  height: clamp(300px, 50vw, 600px);
  border-radius: 50%;
  background: linear-gradient(to bottom right, rgba(255,161,0,.20), rgba(70,221,206,.20));
  top: 60px;
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}

.page-hero__ghost {
  position: absolute;
  top: 40px;
  left: -100px;
  font-size: clamp(100px, 15vw, 320px);
  letter-spacing: .12em;
  line-height: 1;
  color: var(--text-sub);
  opacity: .09;
  z-index: 1;
  margin: 0;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.page-hero__title {
  position: absolute;
  left: clamp(24px, 8vw, 160px);
  bottom: clamp(60px, 12vh, 140px);
  margin: 0;
  font-size: clamp(28px, 3.5vw, 38px);
  letter-spacing: .22em;
  font-weight: 800;
  color: #6f5327;
  z-index: 2;
}

@media (max-width: 900px){
  .page-hero{
    height: 220px;
  }

  .page-hero__circle{
    width: 520px;
    height: 520px;
    left: -260px;
    top: -180px;
    filter: blur(55px);
    opacity: .8;
  }

  .page-hero__ghost{
    top: 58px;
    font-size: clamp(90px, 34vw, 100px);
    letter-spacing: .16em;
  }

  .page-hero__title{
    bottom: 50px;
    font-size: 30px;
    letter-spacing: .20em;
  }
}


/* =========================
  course__piano（白カード）
========================= */
.course__piano{
  /* 左右の余白（160px相当）を画面幅に合わせて可変に */
  width: min(1200px, 100% - clamp(40px, 8vw, 160px));
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  /* カード内の左右パディングを調整（MacBook等で詰まらないように） */
  padding: 20px clamp(20px, 6vw, 100px) 40px clamp(20px, 6vw, 100px);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
  margin-bottom: clamp(100px, 15vw, 200px);
  position: relative;
  box-sizing: border-box;
}

.course__piano .textBlock{
  text-align: center;
}

.course__piano .subTitle{
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.9;
  letter-spacing: .12em;
  color: var(--text);
  font-weight: 1000;
}

.course__piano .textBlock .lead{
  margin: 10px 0 0;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
  letter-spacing: .08em;
  color: var(--text);
  font-weight: 500;
  opacity: .92;
}

.course__line{
  width: 84px;
  height: 1px;
  background: rgba(165,138,87,.7);
  margin: 14px auto 0;
}

.piano__in{
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: clamp(20px, 3.2vw, 40px);
  align-items: start;
  margin-top: clamp(24px, 4vw, 40px);
}

.piano__in img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.course__cautionary{
  width: min(1400px, 100% - clamp(40px, 8vw, 160px));
  margin: -100px auto clamp(80px, 12vw, 200px);
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.8;
  letter-spacing: .08em;
  color: var(--text);
  font-weight: 500;
  opacity: .92;
}

/* =========================
  テーブル（右側）
========================= */

.table__piano{
  width: 100%;
  border-collapse: collapse;
  background: #f4ede3;
  overflow: hidden;
}

.table__piano th,
.table__piano td{
  padding: clamp(10px, 1.2vw, 16px) clamp(8px, 1vw, 14px);
  text-align: center;
  font-size: clamp(13px, 1.4vw, 16px);
  letter-spacing: .08em;
  line-height: 1.8;
  color: #685126;
  border-bottom: 1px solid rgba(63,51,41,.12);
}

.table__piano tr:last-child td{
  border-bottom: none;
}

.table__piano th{
  background: #A58A57;
  color: #fff;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: .08em;
  line-height: 1.8;
}

.table__piano td{
  background: #f4ede3;
}

/* =========================
  下の説明（ベージュ帯）
========================= */
.course__piano > .lead{
  margin: 40px auto 40px;
  width: 100%;
  background: #f4ede3;
  padding: 30px clamp(20px, 4vw, 40px);
  border-radius: 6px;
  box-sizing: border-box;

  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
  letter-spacing: .08em;
  color: var(--text);
  font-weight: 500;
  opacity: .92;
}

/* =========================
  鍵盤バー
========================= */
.course__keys {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: var(--keys-bottom, -30px);
  width: clamp(200px, 45%, 540px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

.keysGroup { display: flex; gap: clamp(5px, 0.8vw, 10px); }
.keyBar { 
  width: clamp(15px, 1.5vw, 25px); 
  height: clamp(50px, 5vw, 70px); 
  background: #A58A57; 
  border-radius: 4px; 
  position: relative; 
}
.keyBar:nth-child(1){ top: 6px; }
.keyBar:nth-child(2){ top: -4px; }
.keyBar:nth-child(3){ top: 10px; }


.course__piano{
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s ease, transform .8s ease;
}

.course__piano.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* =========================
  Responsive
========================= */
@media (max-width: 900px){
  .course__piano{
    width: calc(90% - 32px);
    padding: 18px 16px 28px;
    margin-bottom: 120px;
    border-radius: 14px;
  }

  .piano__in{
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 18px;
  }

  .table__piano thead,
  .table__piano tr:first-child{
    display: none;
  }

  .table__piano{
    background: transparent;
    border-collapse: separate;
    border-spacing: 0;
  }

  .table__piano tr{
    display: block;
    background: #f4ede3;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(63,51,41,.10);
  }

  .table__piano td{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;

    padding: 12px 14px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: .06em;

    border-bottom: 1px solid rgba(63,51,41,.10);
    background: transparent;
    color: #685126;
  }
  .table__piano td:last-child{
    border-bottom: none;
  }

  .table__piano tr td:nth-child(1)::before{ content: "レベル"; }
  .table__piano tr td:nth-child(2)::before{ content: "レッスン時間"; }
  .table__piano tr td:nth-child(3)::before{ content: "月謝"; }
  .table__piano tr td:nth-child(4)::before{ content: "年間回数"; }

  .table__piano td::before{
    font-weight: 600;
    color: rgba(104,81,38,.85);
    padding-right: 10px;
  }

  .table__piano td{
    font-weight: 500;
  }
  .table__piano tr td:nth-child(3),
  .table__piano tr td:nth-child(4){
    font-weight: 700;
  }

  .course__piano > .lead{
    margin: 18px auto 8px;
    width: 90%;
    padding: 16px 14px;
    font-size: 16px;
    line-height: 1.7;
    border-radius: 10px;
    background-color: #fff;
  }

  .course__keys{
    display: none;
  }
  
  .course__cautionary{
   width: 90%;
  }
}

html{
  scroll-behavior: smooth;
}