/*
 Theme Name: Understrap Child
 Template: understrap
 Version: 1.0.0
 Description: Child theme of Understrap
 Author: Your Name
 Text Domain: understrap-child
*/

/* ここからカスタムCSS */

html {
  scroll-behavior: smooth !important;
}

h1 {
	font-size: 1.85rem !important;
}

.section-title {
  display: block;
  margin: 14px 0 1.5em 0;
  font-size: 1.5rem;
  line-height: 1.4;
}

.section-title .label {
  display: block;
  font-size: 0.75em;          /* ラベルは小さめ */
  color: #fff;
  background: linear-gradient(to right, #fa709a 0%, #ffdbbf 100%);        /* 青背景 */
  padding: 0.2em 0.6em;
  border-radius: 4px;
  margin-bottom: 0.3em;       /* 下に余白をつけて本文と分ける */
  width: fit-content;         /* ラベルの幅は文字分だけ */
}

.section-title .text {
  display: block;
  font-weight: bold;
}


h2 {
	font-size: 1.53rem !important;
}

.h2-design {
	border-top: dotted 2px tan;
	border-bottom: dotted 2px tan;
	text-align: center;
    padding: 15px;
}

.heading-15 {
    display: inline-block;
    position: relative;
    padding: .5em 1em;
    border-right: 27px solid #daceb9;
    background-color: #f5f5f5;
    color: #333333;
}

.heading-15::before {
    position: absolute;
    bottom: 2px;
    right: -20px;
    z-index: -1;
    transform: rotate(5deg);
    width: 100%;
    height: 50%;
    background-color: #d0d0d0;
    content: "";
    filter: blur(4px);
}

.heading-18 {
    padding: .5em .7em;
    border: 2px solid #4d4d4d;
    box-shadow: 5px 5px #4d4d4d;
    color: #4d4d4d;
}

.heading-29 {
    display: inline-block;
    position: relative;
    margin: calc(3.5em / 2) 0 calc(3.5em / 4) calc(3.5em / 2);
    color: #333333;
    line-height: 1;
}

.heading-29::before {
    position: absolute;
    bottom: calc(-3.5em / 4);
    left: calc(-3.5em / 2);
    z-index: -1;
    width: 3.5em;
    height: 3.5em;
    border-radius: 50%;
    background: #c7f6ff;
    content: '';
}

.heading-38 {
    position: relative;
    padding: .5em 1.2em;
    color: #333333;
}

.heading-38::before,
.heading-38::after {
    display: inline-block;
    position: absolute;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border: 2px solid #2589d0;
    content: '';
}

.heading-38::before {
    top: calc(50% - 3px);
    left: 0;
}

.heading-38::after {
    top: calc(50% + 3px);
    left: 5px;
}

.heading-27 {
    display: flex;
    align-items: center;
    column-gap: 8px;
    color: #333333;
}

.heading-27::before {
    width: 0.8em;
    height: 0.4em;
    border-bottom: 4px solid #d0ca25;
    border-left: 4px solid #d0ca25;
    transform: rotate(-45deg) translate(2px, -2px);
    content: '';
}

p.oval-line{
  --dot-color: #B8DEFA;   /* 色 */
  --dot-size: 0.85em;      /* 直径（文字サイズに追従） */
  --dot-gap: 0.45em;      /* ドットと文字の間隔 */
  --dot-shift: 0.06em;    /* ベースライン微調整（±で調整） */
}

p.oval-line::before{
  content: "";
  display: inline-block;
  inline-size: var(--dot-size);
  block-size: var(--dot-size);
  margin-inline-end: var(--dot-gap);
  border-radius: 50%;
  background: var(--dot-color);
  vertical-align: baseline;
  transform: translateY(var(--dot-shift)); /* 行の高さに合わせて微調整 */
}

.heading-simple-line {
  position: relative;
  padding: 1rem .5rem;
}

.heading-simple-line:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  content: '';
  background-image: -webkit-gradient(linear, left top, right top, from(#fa709a), to(#F3EFEC));
  background-image: -webkit-linear-gradient(left, #fa709a 0%, #F3EFEC 100%);
  background-image: linear-gradient(to right, #fa709a 0%, #F3EFEC 100%);
}

h3 {
	font-size: 1.6rem !important;
}

.heading-simple-thinline {
  position: relative;
  padding: 1rem .5rem;
}

.heading-simple-thinline:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: '';
  background-image: -webkit-gradient(linear, left top, right top, from(#fa709a), to(#F3EFEC));
  background-image: -webkit-linear-gradient(left, #fa709a 0%, #F3EFEC 100%);
  background-image: linear-gradient(to right, #fa709a 0%, #F3EFEC 100%);
}

.label-simple-thinline {
  position: relative;
  width: 90% !important;
  display: block;
  font-weight: 800;
  padding: 0 10px;
  font-size: 1.2rem;
  /*margin-bottom: -17px;*/
  margin-bottom: 5px;
}

.label-simple-thinline:after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  content: '';
  background-image: -webkit-gradient(linear, left top, right top, from(#fa709a), to(#F3EFEC));
  background-image: -webkit-linear-gradient(left, #fa709a 0%, #F3EFEC 100%);
  background-image: linear-gradient(to right, #fa709a 0%, #F3EFEC 100%);
}

.subsection-title {
  display: flex;              /* 横並び */
  align-items: center;        /* 縦位置を中央に揃える */
  font-size: 1.5rem;
  margin: 1em 0;
}

.subsection-title .label {
  background: #F86E99;        /* ラベル色 */
  color: #fff;
  padding: 0.2em 0.6em;
  font-size: 80%;
  border-radius: 4px;
  margin-right: 0.5em;
  flex-shrink: 0;             /* 幅を縮めない */
}

.subsection-title .text {
  flex: 1;                    /* 残り幅いっぱいに */
  font-size: 1.3rem !important;
}

p {
	font-size: 1.1rem !important;
}

.img-nonpadding {
	margin-top: -30px;
	margin-left: -15px;
	margin-right: -15px;
}

.img-half {
	width: 45%;
}

.fg-box {
    background-color: #f5f8fa;
    padding: 30px 35px 20px;
}

/* 全体ボックス */
.schedule-container {
	padding: 20px;
	margin: 40px auto;
	padding: 60px 50px 20px;
	font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
	color: #333;
	position: relative;
	background-color: #CDC1B8;
}

.schedule-inbox {
	background: #fff;
	padding: 65px 65px 25px;
	font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
	color: #333;
	position: relative;
	background-color: #ffffff;
	z-index: 10;
}

.schedule-badge {
	width: 258px;
	height: 129px;
	margin: 0 auto 15px auto;
	overflow: hidden;
	border-top-left-radius: 129px;
	border-top-right-radius: 129px;
	margin-bottom: -45px;
	z-index: 11;
	position: relative;
	background: #fff;
}

.schedule-badge img {
	display: block;
	width: 70%;
	height: 70%;
	margin: 25px 0px 0px 35px;
}

/* ヘッダー部 */
.schedule-header {
	justify-content: space-between;
	align-items: center;
	background: #fff;
	padding: 10px 0 10px 15px;
	margin-bottom: 29px;
	margin-left: -14px;
	font-weight: bold;

}

.schedule-title {
	background: #BBAEA5; /* グレージュ系 */
	color: #fff;
	padding: 6px 12px;
	white-space: nowrap;
	float: left;
	font-size: 1.2rem;
	text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* ←追加 */
}

.schedule-period {
	font-size: 1.15rem;
	color: #555;
	text-align: right;
	float: right;
	font-weight: 800;
	/*margin-top: 14px;*/
}

/* リスト部分 */
.schedule-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.schedule-list li {
	background: #EFEFED;
	padding: 12px;
	margin-bottom: 10px;
	font-size: 18px;
	line-height: 1.6;
	font-weight: 800;
	text-align: center;
	position: relative;
}

/* テスト部分（青背景） */
.highlight-box {
	background: #C3E8FE;
	color: #000;
	font-weight: bold;
	text-align: center;
	padding: 12px;
	margin-top: 12px;
	border-radius: 6px;
	font-size: 18px;
}

/* プロフィールエリア */
.instructor{
	margin-bottom: 15px;
	border-bottom: dotted #F3EFEC 2px;
}
.instructor .instructor-img{
	width: 100%;
	text-align: center;
}
.instructor .instructor-img img{
	max-width: 530px;
	border-bottom: solid #a0d8ef 10px;
}

.instructor .instructor-prof{
	margin: 5px 0;
}
.instructor .instructor-prof .namebox{
	font-weight: 800;
	font-size: 1.2rem;
}
.instructor .instructor-prof .namebox .name{}
.instructor .instructor-prof .namebox .ename{}
.instructor .instructor-prof .profbox{}
.instructor .instructor-prof .profbox .label{
	font-size: 1.1rem;
	font-weight: 800;
}
.instructor .instructor-prof .profbox .proftext{
	margin-top: 10px;
	font-size: 1rem;
}
.instructor .instructor-prof .profbox .license-label{
	font-size: 12px;
}
.instructor .instructor-prof .profbox .license-text{
	font-size: 0.9rem !important;
}

/* 改行制御 */
.nobr {
	display: none;
}

/* 
.nobr {
	display: contents;
}

*/

.font-smaller {
	font-size: smaller !important;
}

.program-label  {
	text-align: left;
	font-size: 1.3rem;
	margin-bottom :15px;
	border-bottom :solid 1px #eeeeee;
}

.program-delm {}

.faq-box {
	margin: 20px 0;
}
.faq-item {}
.faq-item .faq-label {}
.faq-item .faq-text {}

/* FAQのふきだし*/

/* ===== 基本レイアウト ===== */
.talk{
  --av-size: 48px;             /* アバターの直径 */
  --gap: 12px;                  /* アバターと吹き出しの間隔 */
  --bubble-bg: #F3EFEC;            /* 吹き出しの背景色 */
  --bubble-stroke: #fffff;     /* 吹き出しの枠色 */
  --bubble-radius: 14px;        /* 角丸 */
  --shadow: 0 6px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);

  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  margin: 1rem 0;
}

/* ===== 左の人アイコン（円形） ===== */
.talk .avatar{
  width: var(--av-size);
  height: var(--av-size);
  border-radius: 50%;
  background: #FFFFFF;                 /* 軽いアクセント背景 */
  border: 2px solid var(--bubble-stroke);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
}
.talk .avatar img,
.talk .avatar svg{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ===== 吹き出し（pタグ） ===== */
.talk .bubble{
  position: relative;
  margin: 0; /* pのデフォルト余白を消す */
  padding: .7em 1em;
  background: var(--bubble-bg);
  color: #222;
  border: 2px solid var(--bubble-stroke);
  border-radius: var(--bubble-radius);
  box-shadow: var(--shadow);
  line-height: 1.8;
  max-width: min(70ch, 100%);
}

/* 吹き出しのしっぽ（左向き）— 2層で「枠＋塗り」を再現 */
.talk .bubble::before,
.talk .bubble::after{
  content: "";
  position: absolute;
  top: 18px;
  left: -5px;
  width: 12px; height: 12px;
  transform: rotate(45deg);
  border-radius: 2px;
  pointer-events: none;
}
.talk .bubble::before{ /* 枠レイヤー */
  background: transparent;
  box-shadow: -2px 2px 0 0 var(--bubble-stroke);
}
.talk .bubble::after{  /* 塗りレイヤー */
  left: -5px;          /* 枠の内側に少し寄せる */
  background: var(--bubble-bg);
}

.ajustspace-thinline {
	margin-bottom: -5px;
}

.labelbox {
	background-color: #F86E99;
    color: white;
    padding: 2px 3px 2px 3px;
    border-radius: 6px;
	margin-right: 5px;
}

.voiceitem {
  background: #F3EFEC; /* ライトピンク系 */
  /*border: 1px solid #f7cce3;*/
  border-radius: 16px;
  padding: 20px 20px 5px;
  margin: 20px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.voiceitem:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}

/* タイトル */
.voiceitem .voicetitle {
  font-size: 1.2rem;
  font-weight: bold;
  color: #d86ba3; /* 上品なローズカラー */
  margin-bottom: 10px;
  /*border-left: 5px solid #f48fb1;*/
  padding-left: 10px;
}

/* コメント部分 */
.voiceitem .voicecomment {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  /*border: 1px dashed #f7cce3;*/
  position: relative;
}

.voiceitem .voicecomment::before {
  content: "";
  font-size: 2rem;
  color: #f48fb1;
  position: absolute;
  top: -10px;
  left: 10px;
  opacity: 0.3;
}

/* 投稿者プロフィール */
.voiceitem .voiceprof {
  font-size: 0.9rem;
  color: #B7AAA1;
  text-align: right;
  font-style: italic;
}

/* スケジュールの吹き出しデザイン */
/*
 * balloon-overlay: 基本クラス（必須）
 * balloon-top-right: 右上配置
 * balloon-top-left: 左上配置
 * balloon-top-center: 中央上配置
 * balloon-right: 右側配置
 * balloon-warning: 警告色
 * balloon-info: 情報色
 * balloon-success: 成功色
*/

.schedule-list p{
    margin: 0 !important;
    padding: 0 !important;
    line-height: inherit !important;
    display: inline !important;
}

/* 吹き出しのベースクラス */
.balloon-overlay {
    position: absolute;
    background: #F96E98;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

/* 右上に表示する吹き出し */
.balloon-top-right {
    top: -8px;
    right: -50px;
}

.balloon-top-right::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 55px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #F96E98;
}

/* 左上に表示する吹き出し */
.balloon-top-left {
    top: -8px;
    left: -8px;
}

.balloon-top-left::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 15px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #F96E98;
}

/* 中央上に表示する吹き出し */
.balloon-top-center {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.balloon-top-center::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #F96E98;
}

/* 右側に表示する吹き出し */
.balloon-right {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
}

.balloon-right::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #F96E98;
}

/* アニメーション */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 色バリエーション */
.balloon-warning {
    background: #ffa502;
}

.balloon-warning::before {
    border-top-color: #ffa502;
    border-right-color: #ffa502;
}

.balloon-info {
    background: #3742fa;
}

.balloon-info::before {
    border-top-color: #3742fa;
    border-right-color: #3742fa;
}

.balloon-success {
    background: #2ed573;
}

.balloon-success::before {
    border-top-color: #2ed573;
    border-right-color: #2ed573;
}

/* ホバー時のエフェクト */
.balloon-overlay:hover {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.price {
	margin-bottom: 0px !important;
}

.price span {
	font-weight: 700;
}

.delline {
	text-decoration: line-through;
	color: red;
}

.delline span {
	color: #212529 !important;
}

.floating-buttons {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  z-index: 9999;
}

/* ボタン共通 */
.floating-btn {
  flex: 1; /* スマホでは横幅いっぱいに分割 */
  text-align: center;
  padding: 15px 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}

/* 色分け */
.contact-btn {
  background-color: #6bb8f2; /* ブルー */
}
.contact-btn:hover {
  background-color: #0056b3;
  color: #fff;
}

.reserve-btn {
  background-color: #35cf5f; /* グリーン */
}
.reserve-btn:hover {
  background-color: #1e7e34;
  color: #fff;
}

.img-nonpadding figure {
	text-align: center !important;
}

.img-nonpadding figcaption {
	text-align: center !important;
	font-size: 1.0 rem;
}

/* アンカーのナビボタン */
/* マナビTREEのUIを拝借 */

.c-page-course__nav {
    margin: 10px 0;
    padding-top: 10px;
}

.c-page-course__nav-body {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    margin: 0;
    padding: 0
}

.c-page-course__nav ul {
    list-style: none;
}

.c-page-course__nav li {
/*    margin: -10px;*/
    float: left;
}

.c-page-course__nav li a {
    align-items: center;
    background: #f3f3f3 url(/asset/img/icon-ar-down-pink.svg) no-repeat 13px/9px auto;
    border-radius: 30px;
    color: currentcolor;
    display: flex;
    font-size: 1.3rem;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    padding: 15px 0px 15px 20px;
    text-decoration: none
}

:target {
  outline: none !important;
}

.c-page-course__nav li a span.s_content {
	font-size: 0.7rem;
}

/* YouTube再生Window */
/* レスポンシブ対応 */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
  max-width: 608px;
  margin: 0 auto; /* 中央寄せ */
}

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

.vimeocaption {
  background-color: white;
  text-align: center;
}

/* ===== レスポンシブ対応 ===== */
@media (max-width: 1200px) {

	.img-half {
		width: 55%;
	}
}

@media (max-width: 992px) {

	.img-half {
		width: 65%;
	}
}

@media (max-width: 768px) {
	.nobr {
		display: inline;
	}
	
	.img-half {
		width: 100%;
	}
	
	.schedule-container {
		padding: 40px 35px 20px;
	}
	
	.schedule-badge {
		width: 180px;
		height: 90px;
		margin-bottom: -35px;
	}

	.schedule-badge img {
		margin: 14px 0px 0px 25px;
	}

	.schedule-inbox {
		padding: 30px 40px 25px;
	}

	.schedule-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.schedule-period {
		text-align: left;
		font-size: 1rem;
	}

	.schedule-list li{
		font-size: 14px;
		padding: 12px;
	}

	.highlight-box {
		font-size: 18px;
		padding: 8px;
	}
}
@media (max-width: 650px) {
	.nobr {
		display: inline;
	}
	
	.img-half {
		width: 100%;
	}
	
	.schedule-container {
		padding: 30px
	}

	.schedule-inbox {
		padding: 30px 40px 25px;
	}

	.schedule-header {
		margin-bottom: 20px;
	}

	.schedule-title {
		font-size: 14px;
		padding: 5px 10px;
	}

	.schedule-period {
		font-size: 0.8rem;
	}

	.schedule-list li{
		font-size: 14px;
		padding: 12px;
	}

	.highlight-box {
		font-size: 14px;
		padding: 8px;
	}

	.arc-text {
		width: 160px;
		height: 140px;
	}

	.schedule-icon {
		width: 32px;
		height: 32px;
	}
}
@media (max-width: 480px) {
	.nobr {
		display: inline;
	}
	
	.img-half {
		width: 100%;
	}
	
	.schedule-container {
		padding: 25px
	}

	.schedule-badge {
		width: 110px;
		height: 55px;
		margin-bottom: -20px;
	}

	.schedule-badge img {
		margin: 10px 0px 0px 14px;
	}

	.schedule-inbox {
		padding: 15px 20px 25px;
	}

	.schedule-title {
		font-size: 14px;
		padding: 5px 10px;
	}

	.schedule-period {
		font-size: 0.7rem;
	}

	.schedule-list li{
		font-size: 13px;
		padding: 10px;
	}

	.highlight-box {
		font-size: 14px;
		padding: 8px;
	}

	.instructor .instructor-img{
		text-align: center;
	}
	.instructor .instructor-img img{
		max-width: 100%;
		border-bottom: solid #a0d8ef 10px;
	}
	
	.arc-text {
		width: 160px;
		height: 140px;
	}

	.schedule-icon {
		width: 32px;
		height: 32px;
	}
}