@charset "UTF-8";
html {
	scroll-behavior: smooth;
	scroll-padding-top: 120px; /* PC版ヘッダーの高さ分、スクロール位置を下にずらします */
}

html,
body {
	margin: 0;
	padding: 0;
}

* {
    box-sizing: border-box;
}



#introduction,.profile,.plan,.faq,.inquiry{
	padding: 40px 86.9px 56px 86.9px;
}
#header {
	background-color: #ffffff;
	height: 120px;
	display: flex;
	align-items: center; 
	justify-content: flex-start;
	gap: 24px;
	padding-right: 32px;
	position: fixed;
	top: 0;
	left: 0;
    width: 100%; 
	z-index: 100; /* スクロール時に他の要素がヘッダーの上に被らないように前面へ配置します */
}

.section-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.pc-only{
	display: block;
}

.sp-only{
	display: none;
}


/** -----------------------------------
    テキスト
-------------------------------------**/
h1.large {
	color: #e7ab7b;
    font-weight: bold;
    font-size: 42px;
	letter-spacing: 0.03em;

}


h2.medium {
	color: #e7ab7b;
    font-weight: bold;
    font-size: 40px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin-top: 30px;
	margin-bottom: 30px;
	text-align:center;
}

h3.medium {
	color: #e7ab7b;
    font-weight: bold;
    font-size: 18px;
    line-height: 16px;
    letter-spacing: -0.075em;
	padding: 0.5em 1em;
    margin: 1em auto 1em;
	background: #f5e9dc;
	border-radius:8px;
    width: 218px;
    height: 32px;
	text-align: center;
}

p.small {
	color: #5d4b3c;
    font-weight: medium;
    font-size: 15px;
	width: 314px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin: 30px;
	text-align: left;
	margin-right: auto;
    margin-left: auto;
    text-align: left; 
	
}

p.small::first-letter {
    font-size: 30px;  
    font-weight: bold;   
}

p.usually {
	color: #5d4b3c;
    font-size: 15px;
	width: 400px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    margin: 40px;
	text-align: left;
	
}

p.place{
	color: #e7ab7b;
    font-weight: bold;
    font-size: 20px;
	line-height: 1.5;
	letter-spacing: 0.03em;


}


/** -----------------------------------
    レイアウト
-------------------------------------**/
.col-3 {
	display: grid;
    grid-template-columns: repeat(3, 1fr);
	gap: 80px;

	max-width: 1440px; /* 3列全体の最大幅 */
    margin: 0 auto;
}

.col-3 .item {
	width: auto; 
}


/** -----------------------------------
    ヘッダー
-------------------------------------**/
#menu-button {
    display: none;
}
.uemurapiano{
	margin-left: 20px;
	position: relative;
	display: inline-block;
	
}
.logo{ 
	display: inline-block;
}

.gnav-pc-wrap {
	display: flex;
	align-items: center;
    margin-left: auto; /* ヘッダーの右端へ寄せる */
    gap: 40px;
}

.gnav-pc{
	display: flex;
    align-items: center;
    gap: 32px;         /* メニュー項目どうしの間隔 */
    margin: 0;
    padding: 0;
    list-style: none;
}

.gnav-pc li{
	margin: 0; 
	
}

.gnav-pc li a {
	color: #e7ab7b;
    font-size: 20px;
    font-weight: bold;
	text-decoration: none;
    white-space: nowrap;
}

.button-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 360px;
    height: 80px;

    background-color: #e7ab7b;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-decoration: none;

    border-radius: 999px; /* 両端を丸くする */
    transition: opacity 0.3s;

}

.button-small:hover {
    opacity: 0.75;
}

ul.gnav-pc li a:hover {
	opacity: 0.75;
}


/** -----------------------------------
    メインビジュアル
-------------------------------------**/
#mainvisual {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	min-height: 620px;
	
}

#mainvisual_left{
    display: inline-block;
	margin-top: 120px;
	width: auto;
}

#mainvisual_right{
	display: grid;
	text-align:center;
	width: calc(50vw - 10px);
	margin-top: 0px;
	overflow: hidden;
	place-items: center;
    padding: 48px 24px;
}

#mainvisual_right img {
	max-width: 100%;
	height: auto;
}


.copy{
	color: #e7ab7b;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}


#main_piano {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 500px;
	object-fit: cover;
	}


/** -----------------------------------
    教室の紹介 
-------------------------------------**/
#introduction{
	background-color: #ffffff;	
	height: 900px;
}

.item{
	display: flex;	
}

.card{
	display: flex;
	flex-flow: column;
}

.block{
	text-align:center;
	
}




/** -----------------------------------
    講師の紹介 
-------------------------------------**/

#profile {
	background-color:#f5e9dc ;
	height: 900px;
}	

.block2 {
    display: flex;
	justify-content: space-around;
	text-align: center;
	
}

.item2 {
	text-align: center;
	margin-top: 20px;
	}


.sns_icon	{
padding-right: 30px;
padding-left:  30px;
}

.note_introduce {
	margin: 80px 5px 20px;


}
.mynote-grid {
    display: flex;
	justify-content: space-between;
	text-align: center;
}
    
.card {
    text-align: center;
}

/** -----------------------------------
    料金
-------------------------------------**/


#plan {
	background-color: #ffffff;
	height: 900px;
}

.plan-introduction{
	color: #5d4b3c;
    font-size: 18px;
    line-height: 1.5;
    letter-spacing: 0.03em;
    text-align: center;
    padding: 0px;
}

.plan-top{
	display: flex;
	justify-content: space-around;
	text-align: center;
	margin-top: 40px;
	margin-bottom: 40px;
}

.plan-bottom{
	display: flex;
	justify-content: space-around;
	text-align: center;
}


.plan-month{
	color: #5d4b3c;
    font-size: 18px;
	font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.03em;

}

.plan-group{
	margin: 20px;

	
}

.plan-free{
	color: #5d4b3c;
    font-size: 18px;
	font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.03em;

}

.free-group{
	margin: 20px;
	
}


.plan-onelesson{
	color: #5d4b3c;
    font-size: 18px;
	font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.03em;

}

.onelesson-group{
	margin: 20px;
	
}

.onelesson-image img{
	width: 305px;
    height: auto;
}
.application-group{
	max-width: 300px;
	margin: 20px;
	align-self: center;
}

/* 画面左下に固定するLINE予約ボタン */
.line-reservation {
    position: fixed;
	z-index: 1000;
	left: 40px;
	bottom: 14px;

	width: 174px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: #06c755;

	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 16px;

	color: #fff;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
	transition: transform .2s, opacity .2s;
}

.line-reservation:hover {
	justify-content: center;
    gap: 0;
}


.line-reservation-text {
	font-size: 30px;
	font-weight: bold;
	line-height: 1.15;
}


/** -----------------------------------
    FAQ
-------------------------------------**/


#faq {
	background-color:#f5e9dc ;
	height: 920px;
}
.faq-large{
	color: #5d4b3c;
    font-size: 20px;
	font-weight: bold;
	

}
.faq-small{
	color: #5d4b3c;
    font-size: 15px;
	font-weight: medium;
    line-height: 1.5;
    letter-spacing: 0.03em;
	}

.faq-question{
	margin: 20px 40px ;
	padding-left: 0;
	display: flex;
	position: relative;
	align-items: center;
	gap: 24px;
	
}

.faq-question::before{
	content: url(../images/q1.png);
	position: static;
	left:0;
	flex: 0 0 auto;  
}

.faq-answer{
	margin: 20px 40px;
	padding-left: 0;
	display: flex;
	align-items: center;
	gap: 24px;
	position: relative;
    

}

.faq-answer::before{
	content: url(../images/a1.png);
	position: static;
	left:0;
	flex: 0 0 auto;  
}

.faq-group {
    border-bottom: 1px dashed #b8a99b; /* 横の点線 */
    padding-bottom: 0;
    margin-bottom: 16px;
}

.faq-group:last-child {
  border-bottom: none; /* 最後だけ線を消す場合 */
}




#inquiry{
	background-color: #ffffff;
	height: 1200PX;
}
#footer {
	background-color:#ffffff;
	height: 200PX;
}

.footer-grid{
	text-align: center;
}

.copyright{
	color: #e7ab7b;
    font-size: 28px;
	font-weight: bold;
	text-align: center;
	margin: 20px;
	letter-spacing: 0.03em;
	
}

.example {
	font-size: 50px;
	color: #99293D;
}



/*================================================
    スマホ専用の上書き用スタイル（768px以下）
================================================*/
@media screen and (max-width: 768px) {
  html {
    scroll-padding-top: 85px; /* スマホ版ヘッダーの高さ(85px)分、スクロール位置を下にずらします */
  }

  /* --- 共通・レイアウト調整 --- */
  .section-inner {
    padding: 0 24px;
    max-width: 550px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* セクションの見出し（h2.medium）をスマホ向けに最適化 */
  h2.medium {
    font-size: 24px; /* 40px からコンパクトな 24px に変更します */
    margin-top: 20px;
    margin-bottom: 20px;
  }

  /* --- ヘッダー・ナビゲーションの調整（CSS Grid & display: contents を使用） --- */
  /* ヘッダー全体を Grid レイアウトにし、2行の構成を綺麗に収めます */
  #header {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    grid-template-rows: auto auto;
    height: 85px; /* 高さを少し広げて住所とロゴを収めます */
    padding: 8px 16px;
    gap: 4px 8px; /* 行間 4px、列間 8px */
    box-sizing: border-box;
    align-content: center;
    z-index: 1000; /* 重なり順を一番手前にして、画像やテキストが上に被るのを防ぎます */
  }

  /* display: contents を使うことで、中身の h1 と p を直接ヘッダーの Grid アイテムにします */
  #header .uemurapiano {
    display: contents;
  }

  /* 教室名を 1行目・1列目に配置 */
  #header h1.large {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    line-height: 1.2;
    margin: 0;
    align-self: center;
  }

  /* ロゴ画像を 1行目・2列目に配置（教室名のすぐ右隣） */
  #header .logo {
    grid-column: 2;
    grid-row: 1;
    display: block;
    align-self: center;
  }

  #header .logo img {
    width: 28px;
    height: auto;
    display: block;
  }

  /* 住所（サブタイトル）を 2行目の 1〜3列目を結合して配置（教室名とロゴの下） */
  #header .uemurapiano p.place {
    grid-column: 1 / span 3;
    grid-row: 2;
    display: block;
    font-size: 11px;
    color: #8a7b6e;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* PC用のナビゲーションを初期状態で非表示にする */
  #header .gnav-pc-wrap {
    display: none;
  }

  /* ハンバーガーメニューボタンを右端に配置（1行目と2行目を結合して縦中央） */
  #header #menu-button {
    grid-column: 4;
    grid-row: 1 / span 2;
    display: block;
    width: 50px;
    height: 45px;
    padding: 8px;
    margin-left: auto;
    align-self: center;
    flex-shrink: 0;
  }

  #header .menu-button-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
  }

  #header .menu-button-inner span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 0;
    background-color: #e7ab7b;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
  }

  /* --- ハンバーガーメニューの開閉とアニメーション --- */
  /* メニューが開いたときのドロワーメニューのスタイル */
  #header .gnav-pc-wrap.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 85px; /* ヘッダーの高さ(85px)に合わせます */
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background-color: rgba(255, 255, 255, 0.98); /* 白背景で少し透過 */
    z-index: 999;
    padding: 40px 24px;
    gap: 32px;
    align-items: center;
    overflow-y: auto;
  }

  /* ドロワー内のナビゲーションを縦並びに */
  #header .gnav-pc-wrap.is-open .gnav-pc {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  #header .gnav-pc-wrap.is-open .gnav-pc li a {
    font-size: 22px;
    color: #e7ab7b;
  }

  /* ドロワー内のボタンをスマホサイズに */
  #header .gnav-pc-wrap.is-open .button-small {
    display: inline-flex;
    width: 100%;
    max-width: 280px;
    height: 60px;
    font-size: 20px;
  }

  /* メニューが開いているとき（.gnav-pc-wrapに.is-openがついているとき）の三本線を「×」に変形するCSSマジック */
  #header .gnav-pc-wrap.is-open ~ #menu-button .menu-button-inner span:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* gap(6px)+span(3px) = 9px で中央に重ねます */
  }

  #header .gnav-pc-wrap.is-open ~ #menu-button .menu-button-inner span:nth-child(2) {
    opacity: 0;
  }

  #header .gnav-pc-wrap.is-open ~ #menu-button .menu-button-inner span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* --- メインビジュアルの調整 --- */
  #mainvisual {
    position: relative;
    display: block; /* gridを解除 */
    width: 100%;
    height: 360px;
    margin-top: 85px; /* ヘッダーの高さ(85px)に合わせる */
    overflow: hidden;
  }

  #mainvisual_left {
    width: 100%;
    height: 100%;
    margin-top: 0; /* PC版の margin-top: 120px をリセットしてヘッダーのすぐ下に表示させます */
  }

  #main_piano {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #mainvisual_right {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 16px;
    width: 100%;
    max-width: 100% !important; /* 幅制限を解除して画面いっぱいに広げます */
    padding: 0 16px;
    background: transparent;
    box-sizing: border-box;
  }

  /* テキストとロゴを包む内側のdivを右寄せにします */
  #mainvisual_right > div {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* 右寄せ */
    text-align: right;
    width: 100%;
    position: relative;
  }

  /* goforit.png（ロゴ）を右寄せにします */
  #mainvisual_right img[src*="goforit"] {
    display: block;
    margin-left: auto;
    margin-right: 0;
  }

  /* キャッチコピーを右揃えにします */
  #mainvisual_right .copy {
    text-align: right;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    font-size: clamp(20px, 5vw, 28px);
    color: #fff; /* 背景が写真なので白の方が見やすいです */
  }

  /* グランドピアノのイラストだけを、絶対配置で画面の左下に配置します */
  #mainvisual_right img[src*="grandpiano"] {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    max-width: 90px; /* スマホ用に少しコンパクトに */
    height: auto;
    filter: brightness(0) invert(1); /* 白塗りを維持 */
  }

  /* goforit.png と grandpiano.png の画像をスマホの時だけ真っ白にする魔法のフィルター */
  #mainvisual_right img[src*="goforit"],
  #mainvisual_right img[src*="grandpiano"] {
    filter: brightness(0) invert(1);
  }

  /* --- 全体セクションの高さ自動化 --- */
  /* PC版で設定されている高さ固定（height: 900px等）を解除し、コンテンツに合わせて自動で伸び縮みするようにします */
  #introduction, #profile, #plan, #faq, #inquiry {
    height: auto;
    padding: 60px 16px 40px;
  }

  /* --- 教室の紹介セクションの調整 --- */
  /* 3カラム（横並び）から1カラム（縦並び）へ変更 */
  #introduction .col-3 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* HTMLをいじらずに「画像を上、テキストを下」に並び替えるCSSマジック！ */
  #introduction .block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #introduction .block img {
    order: -1; /* これで画像がテキストより上に移動します */
    width: 100%;
    max-width: 260px; /* スマホ画面で大きすぎないサイズに調整 */
    height: auto;
    margin-top: 16px;
  }

  /* PC版の固定幅（314px）を解除して、スマホの画面幅に合わせます */
  #introduction p.small {
    width: 100%;
    max-width: 100%;
    margin: 16px 0 0 0;
    font-size: 13px;
    line-height: 1.75;
  }

  /* 見出しの固定幅と文字サイズをスマホ向けに調整 */
  #introduction h3.medium {
    width: 100%;
    max-width: 240px;
    font-size: 16px; /* 18px から少し小さく 16px に調整します */
    height: auto; /* 高さを自動（auto）にして、2行になっても文字がはみ出ないようにします */
    line-height: 1.4;
    padding: 8px 12px;
  }

  /* --- 講師の紹介セクションの調整 --- */
  /* 横並びから縦並びに変更 */
  #profile .block2 {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  /* プロフィール文の固定幅（400px）を解除 */
  #profile p.usually {
    width: 100%;
    max-width: 100%;
    margin: 16px 0;
    text-align: left;
  }

  /* SNSアイコンの中央寄せ */
  #profile .insta-grid {
    justify-content: center;
    gap: 16px;
  }

  #profile .sns_icon {
    padding: 0 10px; /* PC版の広い余白をリセット */
  }

  /* note紹介画像の縦並び化 */
  #profile .mynote-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px; /* SNSアイコンとの間に40pxの適切な余白を作ります */
  }

  #profile .mynote-grid a {
    width: 100%;
    max-width: 280px;
  }

  #profile .note_introduce {
    width: 100%;
    height: auto;
    margin: 0;
  }

  /* --- 料金セクションの調整 --- */
  /* 横並びから縦並びに変更 */
  #plan .plan-top, 
  #plan .plan-bottom {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0;
  }

  #plan .plan-group, 
  #plan .free-group, 
  #plan .onelesson-group, 
  #plan .application-group {
    margin: 10px 0;
  }

  /* 料金プランの説明文（オンラインレッスン〜）の下に十分な余白を作成 */
  #plan .plan-introduction {
    margin-bottom: 40px;
  }

  /* 料金プランのテキスト見出しと画像カードの間に余白を作成 */
  #plan .plan-month, 
  #plan .plan-free, 
  #plan .plan-onelesson {
    margin-bottom: 12px;
  }

  /* 画像の幅をスマホ向けにフィットさせます */
  #plan .month-image img, 
  #plan .free-image img, 
  #plan .onelesson-image img, 
  #plan .application-group img {
    width: 100%;
    max-width: 280px;
    height: auto;
  }

  /* --- FAQセクションの調整 --- */
  /* 左右の広い余白をスマホ用に狭めて、文字が窮屈にならないようにします */
  #faq .faq-question, 
  #faq .faq-answer {
    margin: 16px 0;
    gap: 12px;
  }

  #faq .faq-large {
    font-size: 16px;
  }

  #faq .faq-small {
    font-size: 13px;
  }

  /* --- LINE予約ボタンの調整 --- */
  .line-reservation {
    left: 16px;
    bottom: 16px;
    width: 120px;
    gap: 10px;
  }

  .line-reservation-text {
    font-size: 21px;
  }

  .line-logo {
    transform: scale(.8);
  }

  /* --- フッターの調整 --- */
  #footer .footer-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
  }

  #footer .sns_icon {
    padding: 0 10px;
  }
}
