/*!
Theme Name: kirin-music-studio
Theme URI: http://underscores.me/
*/


/* common
--------------------------------------------- */

:root {
  /* --background-color: rgb(253, 242, 180); */
  --background-color: #FFFFF0;
  --font-color: brown;
  --font-color-sub-title: red;
  --border-color:brown;
  --header-footer-background-color: #f7ffef;
  --header-height: 100px;
}

html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	background: var(--background-color);
	/* font-family: 'zen-maru-gothic'; */
	/* font-family:"Yu Gothic", "游ゴシック", "YuGothic", "游ゴシック体"; */
  font-family: "Zen Maru Gothic", "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
}

body {
	text-decoration: none;
}

main {
	position: relative;
}

footer {
	position: relative;
}

/* 非表示 */
.visually-hidden {
  position: absolute;
  left: -9999px;
}

/* a, a:hover, a:visited{
	text-decoration: none;
	color: var(--font-color);
} */

a {
	text-decoration: none;
	color: var(--font-color);
	position: relative; /*アンダーラインの位置を決めるための基準 */
	max-height: var(--header-height)
}



/*	ヘッダ画像がある場合
--------------------------------------------- */
.page-home {
	top:var(--header-height);
}

/*	ヘッダ画像がない場合
--------------------------------------------- */
.page-teacher, .page-lesson, .page-faq, .page-access, .page-contact{
	top:calc(var(--header-height) + 30px);
	margin-bottom: 50px;
}

@media (max-width: 800px) {
	.page-contact iframe {
		height: 2700px;
	}
}


/*  大きい見出し
--------------------------------------------- */
/* h2:first-letter {
  font-size: 150%;
  color: #eb6100;
} */
h2 {
  position: relative;
  padding: 1rem 2rem;
  border-bottom: 6px solid var(--background-color);
}

h2:before {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  content: '';
  background: var(--border-color);
}

h2:first-letter {
    color: var(--border-color);/*文字色（最初の文字）*/
    font-size: 35px;/*文字サイズ（最初の文字）*/
    margin-right: 4px;/*最初の文字の右側余白*/
}

@media (min-width: 800px) {
	h2:before {
		width: 30%;
	}
}
/*	見出し
--------------------------------------------- */
.caption {
	display: flex;
	font-size: x-large;
	margin: 5% 0.5%;
	color: var(--font-color);
	/* background: linear-gradient(transparent 50%, #FFFFCC 70%); */
	/* width: fit-content; */
	/* text-align: center; */
	justify-content: center;

}
.caption::before 
,.caption::after {
	content: '';/*何も入れない*/
	display: inline-block;
	width: 1.1em;/*画像の幅*/
	height: 1.1em;/*画像の高さ*/
	background-image: url(../kirin-music-studio/assets/img/common/onpu_karahuru_pink.png);
	background-size: contain;
	vertical-align: middle;
}

/*	サブタイトル
--------------------------------------------- */
.sub-title {
	justify-content: center;
	font-size: medium;
	font-weight: bold;
    color: var(--font-color);
	margin: 10px 0%;
}
.sub-title::before {
	content: '';/*何も入れない*/
	display: inline-block;
	width: 1.0em;/*画像の幅*/
	height: 1.0em;/*画像の高さ*/
	background-image: url(../kirin-music-studio/assets/img/common/hatibuonpu2_bu.png);
	background-size: contain;
	vertical-align: middle;
	margin-right:5px;
}

/*	本文
--------------------------------------------- */
.body-text {
	font-size: small;
    color: var(--font-color);
	margin-bottom: 10px;
	line-height: 20px;
}


@media (min-width: 800px) {
	/* main {
		top:var(--header-height);
	} */

	/*	見出し
	--------------------------------------------- */
	.caption {
		font-size: 2.5em;
		margin: 2% 0.5rem 2%;
	}
	.caption::before 
	,.caption::after {
		width: 1.2em;/*画像の幅*/
		height: 1.2em;/*画像の高さ*/
	}

	/*	サブタイトル
	--------------------------------------------- */
	.sub-title {
		font-size: x-large;
		/* font-size: 1.2rem; */
		font-weight: bold;
		margin: 10px 0%;
	}
	.sub-title::before {
		width: 1.1em;/*画像の幅*/
		height: 1.1em;/*画像の高さ*/
		margin-right:10px;
	}

	/*	本文
	--------------------------------------------- */
	.body-text {
		font-size: 1rem;
		color: var(--font-color);
		margin-bottom: 10px;
		line-height: 40px;
	}
}


/*	コンテンツ
--------------------------------------------- */
.concept-single {
	display: block;
	margin: 0% 5% 5%;
}

.concept {
	display: grid;
	margin: 0% 5% 5%;
}
.concept img {
	width: 100%;
	max-height: 100%;
	border: 5px solid #FFFFCC;
	box-shadow: 0 0 5px #999;
}

@media (max-width: 800px) {
	.concept-left {
		margin-bottom: 5%;
	}
}

@media (min-width: 800px) {
	.concept {
		display: flex;
		margin: 3% 0;
		width: 80%;
	}
	.concept-reverse {
		flex-direction: row-reverse;
	}
	.concept-left {
		flex:2;
		width: 100%;
		height: 100%;
		margin-left: 5%;
	}
	.concept-right {
		flex:1;
		width: 100%;
		height: 100%;
		margin-left: 5%;
		flex-direction: row-reverse; 
	}
}

/*	リスト
--------------------------------------------- */
.page-lesson li {
	list-style: none;
}

/*	画像
--------------------------------------------- */
@media (max-width: 800px) {
	.page-lesson ul {
		display: grid;
		grid-template-columns: repeat(1, 1fr);
		margin-bottom: 15%;
	}	
	.img-deg01 {
		margin-top: 10%;
		margin-left: 10%;
		transform: rotate(10deg);
		max-width: 80%;
		height: auto;
		transform-origin: top left;
		border-radius: 30px;
	}
	.img-deg-01 {
		margin-top: 10%;
		margin-left: 10%;
		transform: rotate(-10deg);
		max-width: 80%;
		height: auto;
		/* transform-origin: top left; */
	}
	.img-deg-02 {
		margin-top: 40%;
		transform: rotate(5deg);
		max-width: 100%;
		transform-origin: top left;
		height: auto;
		/* transform-origin: top left; */
	}
}
@media (min-width: 800px) {
	.img-deg01 {
		margin-top: 10%;
		transform: rotate(10deg);
		max-width: 100%;
		height: auto;
		transform-origin: top left;
		border-radius: 30px;
	}
	.img-deg-01 {
		margin-top: 10%;
		transform: rotate(-10deg);
		max-width: 100%;
		height: auto;
		/* transform-origin: top left; */
	}
	.img-deg-02 {
		margin-top: 40%;
		transform: rotate(-5deg);
		max-width: 100%;
		height: auto;
		/* transform-origin: top left; */
	}
}

/* --------------------------------------------------------------------------------------------------
   page-home.php
-------------------------------------------------------------------------------------------------- */

.home-menu {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	/* grid-template-rows: 20%; */
	gap: 5px 20px;
	justify-content: center;
	margin: 0px 5% 5%;
}

.home-menu .item {
	color: var(--font-color);
}

.item-img {
	width     : 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 10px;
}

.menu-title {
	font-size: medium;
	font-weight: bold;
	margin: 10px 0%;
	text-align: center;
}

@media (min-width: 800px) {

	.home-menu {
		grid-template-columns: repeat(auto-fit, 250px);
		justify-content: space-between;
	}
	.item-img {
		max-height: 20vh;
	}
	.menu-title {
		font-size: x-large;
	}

}

/* --------------------------------------------------------------------------------------------------
   page-teacher.php
-------------------------------------------------------------------------------------------------- */

@media (max-width: 800px) {
	.concept-teacher {
		display: grid;
	}
	.concept-teacher img {
		width: 100%;
		max-height: 100%;
		border-radius: 10%;
	}
	.concept-left-teacher {
		margin: 0% 5% 5%;
	}
	.concept-teacher img {
		max-width: 100%;
		max-height: 100%;
	}
	.concept-right-teacher {
		margin: 0% 5% 5%;
	}
	.concept-single {
		text-align: left;
	}
}

@media (min-width: 800px) {
	.concept-teacher {
		display: flex;
		margin: 3% 0;
    	/* width: 80%; */
		/* justify-content: right; */
	}
	.concept-teacher img {
		width: 100%;
		height: 100%;
		border-radius: 10%;
	}
	.concept-reverse {
		flex-direction: row-reverse; /*左右入れ替え*/		
	}
	.concept-left-teacher {
		flex:1;
		/* width: 100%;
		height: 100%; */
		margin-left: 5%;
		text-align: right;
	}
	.concept-right-teacher {
		flex:1;
		margin-left: 5%;
		flex-direction: row-reverse; 
	}
	.concept-single {
		text-align: center;
		/* justify-content: center; */
	}
}

/* --------------------------------------------------------------------------------------------------
   page-lesson.php
-------------------------------------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  margin: 0 5% 5% 0;
  padding: 0;
  table-layout: fixed;
  color: var(--font-color);
}

table tr {
  padding: .35em;
  border-bottom: 1px solid var(--border-color);
}
thead tr th:first-child {
    color: var(--font-color-sub-title);
	font-size: larger;
}
table thead{
  border-bottom: 2px solid var(--border-color);
}
table th,
table td {
  padding: 1em 10px 1em 1em;
  /* border-right: 1px solid #bbb; */
}
@media (max-width: 800px) {
	table {
		border: 0;
		width: auto;
		margin: 0 0 10% 0;
		font-size: small;
		font: normal;
	}
	table th:first-child {
		width: 35%;
	}
	table th:nth-child(2) {
		width: 30%;
	}
	thead tr th:first-child {
		font-size: small;
	}
}

/* --------------------------------------------------------------------------------------------------
   page-access.php
-------------------------------------------------------------------------------------------------- */
@media (max-width: 800px) {
	.map iframe{
		max-width: 100%;
		max-height: 100%; 
	}
}

@media (min-width: 800px) {
}

/* --------------------------------------------------------------------------------------------------
   header.php
-------------------------------------------------------------------------------------------------- */

#header {
	position: fixed;
	z-index: 10000;
	justify-content: center;
	/* white-space: nowrap; */
	align-items: center;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
	background-color: var(--header-footer-background-color);
	height: var(--header-height);

}
/* #header img {
	max-height:100%;
} */

#header-title {
	display: flex;
	justify-content: center;
}

.logo {
	mix-blend-mode: multiply;
}

#header .item {
	margin-right: 2em;
	display       : block;
	font-size     : 13pt;
	text-align    : center;
	padding       : 0px 5px;
	font-weight: bold;
}

#header .item .under-item {
	display: block;
    color: var(--font-color);
    font-size: 13px;
    line-height: 2;
    text-align: center;
    letter-spacing: 0.1em;
}

@media (max-width: 800px) {

	#header {
		width: 100%;
		height: var(--header-height);
		top: 0px;
	}

	.logo {
		max-width: 100%;
	}

	/* .header-img {
		top:var(--header-height);
	} */

	.menu {
		list-style: none;
		position: absolute;
		width: 100%;
		height: auto;
		top:var(--header-height);
		padding: 0 0 10px 0;
		clear: both;
		background: var(--background-color);
		transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
		transform: scale(1, 0);
		transform-origin: top;
	}

	/*	ハンバーガーメニュー start
	--------------------------------------------- */
	.menu-btn:checked ~ .menu {
		transform: scale(1, 1);
		transform-origin: top;
		transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
	}

	.menu a {
		text-decoration: none;
		font-weight: 500;
		letter-spacing: 2px;
		font-size: 16px;
		text-transform: capitalize;
		color: var(--font-color);
		opacity: 0;
		transition: 0.5s;
	}

	.menu li {
		border-top: 1px solid var(--border-color);
		padding: 15px 0;
		margin: 0 54px;
		opacity: 0;
		transition: 0.5s;
	}

	.menu-btn:checked ~ .menu a,
	.menu-btn:checked ~ .menu li {
		opacity: 1;
		transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.2s;
	}

	.menu-btn {
		display: none;
	}

	.menu-icon {
		display: inline-block;
		position: relative;
		cursor: pointer;
		padding: 24px 14px;
		-webkit-tap-highlight-color: brown;
	}

	.navicon {
		background: brown;
		display: block;
		height: 3px;
		width: 26px;
		position: relative;
		transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
	}

	.navicon:before,
	.navicon:after {
		content: "";
		display: block;
		height: 100%;
		width: 100%;
		position: absolute;
		background: brown;
		transition: 0.3192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
	}

	.navicon:before {
		top: 9px;
	}

	.navicon:after {
		bottom: 9px;
	}

	/* Hamburger Menu Animation Start */
	.menu-btn:checked ~ .menu-icon .navicon:before {
		transform: rotate(-45deg);
	}

	.menu-btn:checked ~ .menu-icon .navicon:after {
		transform: rotate(45deg);
	}

	.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before {
		top: 0;
	}
	.menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
		bottom: 0;
	}

	.menu-btn:checked ~ .menu-icon .navicon {
		background: rgba(0, 0, 0, 0);
		transition: 0.2192s cubic-bezier(0.04, 0.04, 0.12, 0.96) 0.1008s;
	}

	.navtext-container {
		width: 100%;
		height: var(--header-height);
		position: absolute;
		box-sizing: border-box;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.navtext {
		position: absolute;
		text-transform: uppercase;
		color: var(--font-color);
		letter-spacing: 4px;
		font-size: 20px;
	}

	/*	ハンバーガーメニュー end
	--------------------------------------------- */

}
@media (min-width: 800px) {
	#header {
		display: flex;
		justify-content: space-between;
		top: 0px;
		width: 100%;
		/* height: var(--header-height); */
	}

	/* .header-img {
		top:var(--header-height);
	} */
	#header input {
		/* ハンバーガーメニューを非表示 */
		display: none;
	}

	.menu {
		justify-content: center;
		gap: 2rem;
		font-size: 1.5rem;
		list-style: none;
		display: flex;
		/* top:var(--header-height); */
	}

	.item {
		position: relative; /*アンダーラインの位置を決めるための基準 */
	}

	.item::after {
		position: absolute;
		left: 0;
		content: '';
		width: 100%;
		height: 2px;
		background: brown;
		bottom: -5%;               /*アンダーラインがaタグの下端から現れる*/
		transform: scale(0, 1);     /*アンダーラインの縮尺比率。ホバー前はx方向に0*/
		transform-origin: translateY(-5px); /*変形（アンダーラインの伸長）の原点がaタグ（各メニュー）の左端*/
		transition: .5s; /*変形の時間*/
	}

	.item:hover::after {
		transform: scale(1, 1);     /*ホバー後、x軸方向に1（相対値）伸長*/
	}
}

/* ------------------------------------------- */
.marquee-right {
	overflow: hidden;
}
.marquee-right ul {
	animation: marquee-right 50s linear infinite;
	display: flex;
	margin: 0;
	padding: 0;
	width: max-content;
}
.marquee-right ul li {
	list-style: none;
	padding: 0 5px;
	width: calc(100vw / 1.8);
	max-width: 100%;
}
.marquee-right img {
	display: block;
	max-width: 100%;
}
@keyframes marquee-right {
	from {
		transform: translateX(0%);
	}
	to {
		transform: translateX(-50%);
	}
}
@media (max-width: 800px) {
.marquee-right ul li {
	list-style: none;
	padding: 0 5px;
	width: 100vw;
	max-width: 100%;
}
}



/* --------------------------------------------------------------------------------------------------
   footer.php
-------------------------------------------------------------------------------------------------- */

#footer {
	top:var(--header-height);
	display: block;
	justify-content: center;
	/* background-color: #f0eeebd5; */
	background-color: var(--header-footer-background-color);;
	padding-bottom: 1%;
}



@media (max-width: 800px) {
	.footer-menu {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
		gap: 0px auto;
		justify-content: space-between;
		/* padding-top: 5px; */
	}

	.footer-menu li {
		text-align: center;
		border-bottom: 2px solid brown;
		margin: 20px 15%;
		padding-bottom: 10px;
		list-style: none;
	}


	#footer p {
		text-align: center;
	}

	.copyright {
		font-size: x-small;
	}
}

@media (min-width: 800px) {
	.footer-logo {
		display: flex;
		justify-content: center;
	}

	.footer-menu {
		display: flex;
		justify-content: center;
		margin-top: 2%;
		gap: 2rem;
		font-size: 1.5rem;
		list-style: none;
		width: 100%;
	}

	.footer-menu .item {
		margin-right: 2em;
		display       : block;
		font-size     : 13pt;
		text-align    : center;
		padding       : 0% 5px 5%;
		font-weight: bold;
	}

	.address {
		margin-top: 2%;
	}

	#footer p {
		text-align: center;
		line-height: 1.5em;
	}

	.copyright {
		margin: 2%;
		font-size: small;
	}
}

/* --------------------------------------------------------------------------------------------------
   other
-------------------------------------------------------------------------------------------------- */
/* .grecaptcha-badge {
bottom: 10px;
right: 10px;
transform: scale(0.85);
opacity: 0.6;
} */




/* ------------------------------------------------------------------------------- */
/* 生徒さんの声 */
  /* レイアウト */
  .gallery {
    max-width: 720px;
    margin: 2% auto 5%;
    text-align: center;
	background-color: var(--background-color);
  }

  .viewer {
    position: relative;
    width: 100%;
    /* height: 420px; */
    background:#f3f3f3;
    border-radius:8px;
    overflow: hidden;
    display:flex;
    align-items:center;
    justify-content:center;
  }

  .viewer img {
    max-width:100%;
    max-height:100%;
    display:none;            /* 非表示にして active のものだけ表示 */
    object-fit:contain;
  }
  .viewer img.active { display:block; }

  /* サムネイル横並び */
  .thumbs {
    margin-top:12px;
    display:flex;
    gap:8px;
    overflow-x:auto;
    padding:8px 4px;
    justify-content:center;
  }
  .thumbs img {
    width:88px;
    height:56px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    opacity:0.6;
    transition:opacity .15s, transform .12s;
    border:2px solid transparent;
  }
  .thumbs img:hover { opacity:0.9; transform:translateY(-2px); }
  .thumbs img.selected {
    opacity:1;
    border-color:#3b82f6; /* 選択ハイライト */
  }

  /* ドット（ページネーション） */
  .dots {
    margin-top:14px;
    display:flex;
    justify-content:center;
    gap:8px;
  }
  .dot {
    width:12px;
    height:12px;
    border-radius:50%;
    background:#d1d5db;
    border:0;
    padding:0;
    cursor:pointer;
    transition:transform .12s, background .12s;
  }
  .dot[aria-current="true"] {
    background:#1f2937;
    transform:scale(1.15);
  }

  /* スマホ対応：小さくする */
  @media (max-width:420px){
    .viewer { height:260px; }
    .thumbs img { width:64px; height:44px; }
  }
  /* ------------------------------------------------------------------------------- */
