.radial-section {
  height: 1000px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* セクション全体に広げる */
  z-index: -10;  /* コンテンツの下に配置 */


  /* 放射状グラデーション */
  background: radial-gradient(
    circle at 20% 40%,       /* 中心位置: 横20%、縦50% */
    rgba(0, 128, 0, 0.6),    /* 中心: 緑色 */
    rgba(0, 128, 0, 0) 30%   /* 端に向かって透明 */
  );
}

/* 全体の設定*{
  border: solid 1px red;
} */

html{
    scroll-behavior: smooth;
    overflow-x: hidden; /* 横スクロール禁止 */
}
body {
  background-color: #dfdfdf;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Zen Kaku Gothic New', sans-serif;  
  overflow-x: hidden; /* 横スクロール禁止 */
}

/* セクション全体 */
.section--piano {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 0;
}
/* 背景本体 */
.piano-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 70vw;  
  aspect-ratio: 13/11;

  /* グラデーション背景 */
  background: linear-gradient(
    to bottom,
    rgba(22, 122, 22, 0.6) 0%,
    rgba(65, 150, 65, 0.3) 40%,
    rgba(255, 255, 255, 0) 60%
  );

  /* SVGのclip-pathを適用 */
  clip-path: url(#pianoClip2);

  z-index: -1;

  /* ← 常時表示にする */
  opacity: 1;
  transform: scale(1);
}
@media screen and (max-width: 768px){
  .piano-bg{
    width: 80vw;
      
    background: linear-gradient(
    to bottom,
    rgba(22, 122, 22, 0.6) 0%,
    rgba(65, 150, 65, 0.3) 40%,
    rgba(255, 255, 255, 0) 60%
  );

  }
}
.section {
  padding: 0 5%;
  margin-bottom: 30vh;
}
@media screen and (max-width: 768px){
  .section{
    margin-bottom: 10vh;
  }
}
/*h2タイトル*/
.section-title {
  display: block; /* 文字幅ではなく全幅にする場合は block */
  font: italic bold 10rem/1.5 serif;
  border-bottom: solid 1px #fff;
  width: 50vw;
  margin: 0 0 2rem 0;
  letter-spacing: 0.5rem;

  color: transparent;                     /* 文字自体は透明 */
  -webkit-text-stroke: 3px #fff;         /* 文字の輪郭線 */
  -webkit-text-fill-color: transparent;  /* Chrome系で透過 */
  text-stroke: 2px #fff;                 /* 一応互換用 */  text-align: left; /* 必要に応じて調整 */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-title.show {
  opacity: 1;
  transform: translateY(0);
}
@media screen and (max-width: 767px){
  .section-title{
      font: italic bold 3rem/1.5 serif;
      -webkit-text-stroke: 1px #fff;         /* 文字の輪郭線 */
      letter-spacing: 0.2rem;
      margin: 1.5rem 0;
  }
}
/* ナビ */
.piano-nav {/* 初期位置、動作後の形 */
  position: fixed;
  top: 4rem;
  right: 0;
  opacity: 1;
  transform: translateX(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
}
.piano-nav.hide {/* スクロール制御で隠す用 */
  transform: translateX(200px);
  opacity: 0;
}
@media screen and (max-width: 768px){
  .piano-nav{
    display: none;
  }
}
.black-key {/* 基本の黒鍵スタイル */
  display: flex;
  justify-content: center;
  align-items: center;  
  width: 180px;
  height: 50px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font: italic bold 18px/1 'Playfair Display', serif;
  border-radius: 5px 0 0 5px;
  transform-origin: center;
  position: relative;
  transform-origin: right center; /* 右端を基準に拡大 */

  opacity: 0;
  transform: translateX(50px) scale(1); /* scaleは1で初期 */
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.4s;
}
.black-key.show { /* JSで表示時に追加 */
  transform: translateX(0) scale(1);
  opacity: 1;
}
.black-key:hover {/* CSSホバーアニメーション */
  transform: translateX(0) scale(1.1); /* translateXは残してscaleだけ大きく */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.black-key span {/* 親要素に反応 */
  pointer-events: none;
}
.key-1 { margin-top: 0; }/* 各黒鍵の縦位置を微調整して鍵盤ぽく */
.key-2 { margin-top: 40px; }
.key-3 { margin-top: 90px; }
.key-4 { margin-top: 40px; }
.key-5 { margin-top: 40px; }
.key-6 { margin-top: 90px; }
.key-7 { margin-top: 40px; }


/* ヒーロー */
.hero-title{
  position: absolute;
  top: -6%;
  left: 5%;
  z-index: 1;
  font-size: 5rem;  
  font-family: 'Klee One', sans-serif;
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}
@media screen and (max-width: 768px){
  .hero-title{
    font-size: 2.5rem;
    top: -6%;
  }
}
.gradient-text{
  position: absolute;
  top: 10%;
  left: 5%;  
  z-index: 2;

  font-size: 9rem;
  font-family: 'Pinyon Script', cursive;
  background: linear-gradient(
    to right,
  rgba(0, 80, 0, 0.6) 0%,    /* 左: やや濃い緑（白背景用） */
  rgba(180, 255, 180, 0.4) 100% /* 右: 明るめ緑（グレー背景用） */  );

  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;

  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1s ease, transform 1s ease;
}
@media screen and (max-width: 768px){
  .gradient-text{
    font-size: 4rem;
    top: 6%;
    left: 5%;
  }
}
.hero {
  position: relative; /* 擬似要素の基準にする */
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12rem;
}
@media screen and (max-width: 768px){
  .hero{
    height: 50vh;
    margin-bottom: 2rem;
  }
}
.hero-line {
  position: absolute;
  top: 10%; 
  right: 0;
  width: 120%;   /* 画面を超えすぎると見えにくいので調整 */
  height: 1px;   /* 少し太めにして見やすく */
  background: linear-gradient(to right, #00ff00, #006400); /* 明るい緑に変更 */
  transform: rotate(-25deg);
  transform-origin: top right;
  z-index: -1;
  opacity: 0;
  animation: feadin 4s ease forwards;
}
@keyframes feadin{
  from{opacity: 0;}
  to{opacity: 1;}
}
.piano-shape {
  width: 60vw;  
  aspect-ratio: 13/11;
  background: url(images/hero2.jpg) no-repeat left/cover;
  clip-path: url(#pianoClip);
  margin-top: 2rem;
  z-index: 0;

  opacity: 0;
  transform: scale(0.95); /* 少し縮めてふわっと感 */
  transition: opacity 1s ease, transform 1s ease;
}
@media screen and (max-width: 768px){
  .piano-shape{
    width: 90vw;
    margin-top: 0;
  }
}
/* ハンバーガーアイコン */
.hamburger {
  display: none; /* PCは非表示 */
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 20;
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.hamburger span {
  display: block;
  height: 4px;
  background-color: #114809;
  border-radius: 2px;
}

/* スマホ用ナビ */
.mobile-nav {
  display: none; /* 初期非表示 */
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;
  height: 60%;
  background-color: #cbdbcf;
  padding: 3rem 1rem;
  flex-direction: column;
  gap: 2rem;
  box-shadow: -2px 0 10px rgba(0,0,0,0.2);
  z-index: 15;
}
.mobile-nav-container{
  position: fixed;
  top: 0;
  right: 0;
}
.black-key2 {/* 基本の黒鍵スタイル */
  display: flex;
  justify-content: center;
  align-items: center;  
  width: 160px;
  height: 40px;
  background: #333;
  color: #fff;
  text-decoration: none;
  font: italic bold 18px/1 'Playfair Display', serif;
  border-radius: 2px 0 0 2px;
}
.black-key2:hover {/* CSSホバーアニメーション */
  transform: translateX(0) scale(1.1); /* translateXは残してscaleだけ大きく */
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.key-2-1 { margin-top: 4rem; }/* 各黒鍵の縦位置を微調整して鍵盤ぽく */
.key-2-2 { margin-top: 20px; }
.key-2-3 { margin-top: 50px; }
.key-2-4 { margin-top: 20px; }
.key-2-5 { margin-top: 20px; }
.key-2-6 { margin-top: 50px; }

/* スマホ表示時 */
@media screen and (max-width: 768px){
  .hamburger { display: flex; }
  .piano-nav { display: none; } /* 元の黒鍵ナビ非表示 */
}

.mobile-nav.open {
  display: flex;
}

/* profile */
.profile-content {
  display: flex;
  gap: 5rem;
  padding: 1rem;
  justify-content: left;
  max-width: 1140px;
}
@media screen and (max-width: 768px){
  .profile-content{
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
  }
}
.profile-img {
  flex: 1;  
  width: 100%;
  aspect-ratio: 2/3;
  background: url(images/profile.jpg) no-repeat center/cover;
  overflow: hidden;
  border-radius: 170px 170px 0 0;
}
@media screen and (max-width: 768px){
  .profile-img{
    flex: none;
    width: 70vw;
    margin: 0 auto;
    aspect-ratio: 1/1.2;
    background: url(images/profile.jpg) no-repeat top/cover;
    border-radius: 10px;
  }
}
.profile-text {
  flex: 2 ;  
  line-height: 2;
  background-color: rgba(255, 255, 255, 0.2); /* 0.0〜1.0で透明度を調整 */
  padding: 2rem;    /* 文字と背景の余白 */
  border-radius: 30px;
}
@media screen and (max-width: 768px){
  .profile-text p{
    display: -webkit-box;        /* 縦方向ボックスにする */
    -webkit-box-orient: vertical;/* 縦方向に並べる */
    -webkit-line-clamp: 6;       /* 表示する行数 */
    overflow: hidden;            /* はみ出た部分を隠す */
    text-overflow: ellipsis;     /* …で省略表示 */
  }
}
.read-more{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 3rem;
}
.read-more a{
  text-decoration: none;
  color: #333;
}
.circle-button{
    border: #000 solid 1px;
    border-radius: 100%;
    padding: 1rem;
    aspect-ratio: 1/1;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.5s;
    margin-bottom: 1rem;
}
.circle-button:hover{
    transform: scale(1.2);
}

/* active */
.carousel {
  position: relative;
  width: 70vw;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 10px;
  transition: transform 0.5s ease; /* translateX移動用 */  
}

.carousel-item {
  flex: 0 0 500px;
  aspect-ratio: 1/1.4;
  overflow: hidden;
}
@media screen and (max-width: 768px){
  .carousel-item{
    flex: 0 0 200px;
  }
}
.carousel-item img{
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}
.carousel-button.prev,
.carousel-button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scaleY(1.5);
  z-index: 10;
  cursor: pointer;

  background: none;
  border: none;
  padding: 0;
  font-size: 3rem; /* 大きさは好みで調整 */
  font-weight: bold;
  color: #114809;
}
@media screen and (max-width: 768px){
  .carousel-button.prev,
  .carousel-button.next{
    font-size: 1.5rem;
  }
  }

.carousel-button.prev {
  left: 20px;
}

.carousel-button.next {
  right: 20px;
}
/* 左右のボヤ */
.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;       /* ボヤの幅 */
  height: 100%;
  z-index: 5;        /* ボタンより下、画像より上 */
  pointer-events: none;
}
@media screen and (max-width: 768px){
  .carousel::before,
  .carousel::after {
    width: 60px;
  }

}
.carousel::before {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.7), rgba(255,255,255,0));
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 70vw;
  margin-inline: auto;
  grid-auto-rows: 300px; /* 基準の行高さ */
}
@media screen and (max-width: 768px){
  .gallery-grid{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
    gap: 0.5rem;
  }
}
.gallery-item {
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-item.wide {/* 横2カラム */
  grid-column: span 2;
}
.gallery-item.big {/* 横2×縦2 */
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item.tall {/* 縦2 */
  grid-row: span 2;
}
.gallery-item.hover-effect {
  transform: scale(1.02);
}
.modal {/*モーダル*/
  display: none; /* 非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/* news */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 70vw;
  margin: 0 auto;
}
.news-item {
  display: flex;
  gap: 2rem;
  border-bottom: #aaa solid 0.5px;
  padding-bottom: 1rem;
}
@media screen and (max-width: 768px){
  .news-item{
    gap: 0.5rem;
    padding: 0;
  }
}
.news-img {
  flex: 1;
  aspect-ratio: 1/1.4; 
  overflow: hidden; 
}
.news-img img{
  width: 100%;
  object-fit: cover;
  display: block;
}
.news-text {
  flex: 3; 
  padding: 2rem;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.2); /* 0.0〜1.0で透明度を調整 */
}
@media screen and (max-width: 768px){
  .news-text{
    flex: 2;
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}
/* contact */
.contact-text {
  text-align: center;
  max-width: 45vw;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}
@media screen and (max-width: 768PX){
  .contact-text p,
  .attention{
    font-size: 0.8em;
  }
}
.cta-title{
  font: normal bold 2rem/1 'Zen Kaku Gothic New', sans-serif;
  color: #0f3d08;
  margin: 3rem;
  white-space: nowrap;
}
@media screen and (max-width: 768PX){
  .cta-title{
  font: normal bold 1.2rem/1 'Zen Kaku Gothic New', sans-serif;
  margin: 1.5rem;
  }
}
.contact-btns {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn {
  display: inline-block;
  background: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  color: #000;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: #000 solid 0.5px;
}
.btn:hover{
  background: #333;
  color: #fff;
}
.sns{
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
}
.sns a img{
  width: 50px;
  height: 50px;
}
/* footer */
footer{
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background-color: #8fc48f;
  position: relative;
  z-index: 0;
}
.footer-nav{
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 3rem;
  z-index: 2;
}
@media screen and (max-width: 768px){
  .footer-nav{
    display: none;
  }
}
.footer-nav a{
  font-size: 1.6rem;
  font-family: serif;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
  margin: 2rem 0;
}
.gradient-text2{
  font-size: 6rem;
  font-family: 'Pinyon Script', cursive;
  background: linear-gradient(
    to top,
    rgba(52, 132, 52, 0.9) 0%,
    rgba(67, 156, 67, 0.3) 80% /* 白っぽい透明 */
  );

  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
}
@media screen and (max-width: 768px){
  .gradient-text2{
    font-size: 3rem;
    text-align: center;      /* 念のため中央寄せ */
  }
}
.copy{
  position: absolute;
  font-size: 0.8rem;
  right: 0.5rem;
  bottom: 0.5rem;
  color: #333;
}
@media screen and (max-width: 768px){
  .copy{
    font-size: 0.5rem;
  }
}
/* profileページ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.profile-img2{
  aspect-ratio: 5/3;
  background: url(images/profile3.jpg) no-repeat top/cover;
  overflow: hidden;
  object-fit: cover;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.profile-container{
  width: 70vw;
  position: relative;
  margin: 0 auto;
}
@media screen and (max-width: 768px){
  .profile-container{
    width: 90vw;
  }
}
.profile-name{
  font: normal bold 3rem/1 'Klee One';
  color: #686868;
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translate(50%, -50%); /* ← 中心補正 */
  z-index: 2;
}
@media screen and (max-width: 768px){
  .profile-name{
    font: normal bold 1.5rem/1 'Klee One';
  }
}
.profile-name-bg {
  font: italic 100 7rem/1 'Pinyon Script';
  position: absolute;
  top: 50%;
  right: 30%;
  transform: translate(50%, -50%);
  z-index: 1;
  padding: 1rem;

  /* グラデーション */
  background: linear-gradient(
    to bottom,
    rgba(201, 201, 201, 0.4) 0%,
    rgba(80, 80, 80, 0.2) 100%
  );

  /* テキストにグラデーションを適用する魔法 */
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent; /* Safari/Chrome */
          color: transparent;            /* 他ブラウザ */
}
@media screen and (max-width: 768px){
  .profile-name-bg{
    font: italic 100 2rem/1 'Pinyon Script';
  }
}
.about{
  display: flex;
  justify-content: center;
  gap: 4rem;
}
@media screen and (max-width: 768px){
  .about{
    gap: 1rem;
  }
}
.about-me{
  writing-mode: vertical-rl; /* 縦書き（右から左） */
  text-orientation: upright; /* 文字を縦向きに */
  font: normal bold 4rem/1 'Zen Kaku Gothic New', sans-serif;
}
@media screen and (max-width: 768px){
  .about-me{
    font: normal bold 2rem/1 'Zen Kaku Gothic New';
  }
}
/* アニメーション */
.typewriter span {
  display: inline-block;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.typewriter span.show {
  transform: translateY(0);
  opacity: 1;
}

.about-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-container-item{
  text-align: left;
  max-width: 600px;
  line-height: 2;
}
.about-container-item h4{
  font: italic bold 24px/1 'Playfair Display', serif;
}
.about-container-item p{
  padding: 0 2em;
}
@media screen and (max-width: 768px){
  .about-container-item p{
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

.important-title{/* 強み */
  font: normal bold 4rem/2 'Zen Kaku Gothic New', sans-serif;
  border-bottom: #aaa solid 0.5px;
}
@media screen and (max-width: 768px){
    .important-title{
      font: normal bold 2rem/2 'Zen Kaku Gothic New', sans-serif;
    }
}
.important-container {/* 強みの親コンテナ */
  display: flex;
  flex-direction: column; /* 1列ずつ縦に並べる */
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}


.important-item {/* 各アイテム */
  display: flex;
  gap: 2rem;
  align-items: flex-start; /* 左上揃え */
  width: 100%;             /* 横幅いっぱいに */
}


.section-title-number {/* 数字 */
  flex: 1; /* 幅固定（必要に応じて調整） */
  font: italic bold 7rem/1 'Playfair Display', serif;
  color: transparent;                    
  -webkit-text-stroke: 2px #7ebb8b;         
  -webkit-text-fill-color: transparent;  
  text-stroke: 2px #7ebb8b;                 
  text-align: center; 
  margin-top: 0;

  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section-title-number.show {
  opacity: 1;
  transform: translateY(0);
}


.important-item-text {/* テキスト */
  flex: 2; /* 残り幅を使う */
  text-align: left;
  padding: 1rem;
}
@media screen and (max-width: 768px){
  .important-item-text p{
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* お問い合わせページ */
.form-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  max-width: 30vw;
  margin: 0 auto;
  background-color: #eff4ef;
  border-radius: 30px;
  padding: 4rem;
}
@media screen and (max-width: 768px){
  .form-container{
    max-width: 60vw;
    padding: 2rem;
  }
}
.form-group {
  margin-bottom: 1.5rem; /* 各項目の間隔 */
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}
.contact-button{
  width: 5vw;
  background-color: #316a31;
  color: #fff;
  border-color: #fff;
  padding: 0.5rem;
}
@media screen and (max-width: 768px){
  .contact-button{
    width: 20vw;
  }
}
.sns-text{
  text-align: center;
  line-height: 2;
  max-width: 40vw;
  margin: 3rem auto;
}
/* googleform */
.form-wrapper {
  width: 60vw;       /* 幅を画面の60%に */
  height: 800px;     /* 高さ固定（必要に応じて調整） */
  margin: 0 auto;    /* 中央寄せ */
}

.form-wrapper iframe {
  width: 100%;       /* 親に合わせる */
  height: 100%;      /* 親に合わせる */
  border: none;      /* 枠線を消す */
}
@media (max-width: 768px) {
  .form-wrapper {
    width: 90vw;     /* 幅を画面の90%に */
    height: 1200px;  /* 高さをフォームに合わせて調整 */
  }
}