/*--------------------

single-youtube-movie-text.css

--------------------*/
#container{
	margin-top:50px;
}
@media screen and (max-width:810px) {
	#container{
	margin-top:clamp(40px,10vw,100px);
}
}
.content-in{
    display: block;
}
.post-template-single-base-youtube-movie-text.no-sidebar .content-in{
    max-width: 100%;
}
.wrap{
    width: auto;
}
#main{
    padding: 0;
}
.main{
    width: auto;
}
ul {
    padding-inline-start: 2em;
}
.footer {
    margin-top: 0;
}
:root{
    --header-height:7vh;
    --column-width: clamp(400px, 45vw, 1024px);
    --area-one-height: calc(var(--column-width) * 9 / 16);
    --footer-height: 5vh;
    --area-three-height: calc(93vh - var(--area-one-height) - var(--footer-height));
  }
.layout{
    display: grid;
    grid-template-areas: "area-one area-two"
                         "area-three area-two"
                         "area-footer area-two";
    grid-template-columns: var(--column-width) minmax(400px, 1fr);
/*     grid-template-rows: var(--area-one-height) var(--area-three-height) var(--footer-height); */
	grid-template-rows:auto;
    overflow: hidden;
    margin: 0 auto;
    max-width: 2048px;
}
.area-one{
    grid-area: area-one;
    overflow-y: hidden;
    height: auto;
    aspect-ratio: 16 / 9;
    padding: 2em;
}
.area-two{
    grid-area: area-two;
    overflow-y: auto;
    min-height: 100vh;
}
.area-three{
    grid-area: area-three;
    height: auto;
    overflow-y: hidden;
}
.appeal{
    height: auto;
}
.about{
    height: 100%;
}
@media screen and (max-width: 1024px) {
    .area-one{
        padding: 0;
    }
}
@media screen and (min-width: 865px) {
	/* ===== PC時：左カラム（動画+目次）を固定、右カラムだけスクロール ===== */

	/*
	 * 
	 *   grid-template-rows: auto のままだと、area-two の長いコンテンツに合わせて
	 *   グリッド全体が縦に伸び、ページ全体がスクロールしてしまう。
	 *   → 左カラム（動画+目次）も一緒にスクロールされてしまう。
	 *
	 *   グリッドを 100vh に固定することで：
	 *   - 左カラムはビューポートに収まり固定される
	 *   - area-two だけが内部スクロール（overflow-y: auto）する
	 *   - area-three（目次）は動画の下の残りスペースを使い、
	 *     目次が長い場合は目次エリア内でスクロールする
	 */

	/* グリッド全体をビューポートの高さに固定する */
	.layout {
		height: 100vh;
		/* auto = area-one（動画の高さ）、1fr = area-three（残り全部）、auto = footer */
		grid-template-rows: auto 1fr auto;
	}

	/* area-two の min-height: 100vh を解除する
	   （100vhのままだとグリッドを引き伸ばしてしまうため） */
	.area-two {
		min-height: unset;
	}

	/* area-three（目次）: 残りの高さを使い、目次が長ければ内部スクロール
	   （base CSSでは overflow-y: hidden なので auto に上書き） */
	.area-three {
		overflow-y: auto;
	}
	
}
@media screen and (max-width: 864px) {
    .layout{
        grid-template-areas: "area-one"
                             "area-three"
			                 "area-two"
                             "area-footer";
        grid-template-columns: 100%;
        grid-template-rows: auto;
        overflow: auto;
        height: auto;
    }
    .area-two{
        height: auto;
    }
    .area-one{
        height: auto;
        overflow-y: auto;
        aspect-ratio: auto;
    }
    .area-three{
        height: auto;
        overflow-y: auto;
    }
    .header{
        height: auto;
    }
    .appeal{
        height: auto;
    }
    .about{
        height: auto;
    }
    .information-area{
        height: auto;
    }
    .recommend{
        height: auto;
    }

}
.appeal{
    background-color: var(--base-light-gray-color);
}
.about{
    background-color: var(--base-light-gray-color);
}
.area-two-main{
    background-color: var(--base-white-color);
}
.information-area{
    background-image: linear-gradient(0deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px)),
    linear-gradient(90deg, transparent calc(100% - 1px), #f0f0f0 calc(100% - 1px));
    background-size: 32px 32px;
    background-repeat: repeat;
    background-position: center center;
}
.recommend{
    background: var(--base-white-color);
}

@media screen and (max-width:864px) {

    .appeal{
        height: auto;
    }
    .appeal .youtubearea{
        position: fixed;
        top: 52px;
        z-index: 9999;
        width: 100%;
    }
    .area-two{
        padding-top: 55vw;
    }
}
@media screen and (max-width:480px) {
    .area-two{
        padding-top: 60vw;
    }
}
.area-two .container{
    max-width: 1024px;
    margin-left: 0;
    margin-right: auto;
}
@media screen and (max-width: 864px) {
    .area-two-main .container{
        border-left: 0;
        border-right: 0;
    }
}
.appeal .container{
    padding: 0;
}
.appeal .youtube{
    width: 100%;
    aspect-ratio: 16 / 9;
}
.appeal .youtube iframe{
    width: 100%;
    height: 100%;
    vertical-align: bottom;
}
.appeal .titlearea .container{
    width: 100%;
    margin: 0 auto;
    padding: 1vh 20px;
}
.area-two-main .container{
    padding: 2em;
}
.area-two-main .maintitle{
    margin-bottom: 0;
    font-size: 20px;
    font-size: clamp(20px, 3vw, 24px);
    min-height: 0vw;
    font-weight: 900;
}

.area-two-main .description{
    padding-bottom: 0.1em;
    border-bottom: 1px solid var(--base-black-color);
    font-size: 14px;
    font-size: clamp(12px, 2vw, 14px);
    min-height: 0vw;
    align-items: center;
}
.area-two-main .description .date time{
    margin: 0;
    font-weight: 400;
    font-size: 12px;
    font-size: clamp(12px, 2vw, 14px);
    min-height: 0vw;
}
.area-two-main .content{
    padding-top: 2em;
}
.area-two-main ul{
    padding-inline-start: 2em;
}
.area-two-main .png-img{
    width: 65%;
}
.information-area .container{
    padding: 2em;
}
.recommend .container{
    padding: 2em 2em 4em;
}
.recommend .articlelayout{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
    max-width: 700px;
    margin: 0 auto;

}
.recommend .articlelayout .articletitle{
    font-size: 12px;
    font-size: clamp(12px, 2vw, 14px);
    min-height: 0vw;
    font-weight: 600;
}
.recommend .articlelayout .article{
    width: clamp(200px, 25vh, 350px);
}
.recommend .articlelayout .article img{
    width: 100%;
}
.area-three .about .container{
    padding-left: 2em;
    padding-right: 2em;
}
.area-three .about .steps .titlearea{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}
.area-three .about .steps .titlearea h2{
    font-size: 10px;
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 0vw;
}
.area-three .about .steps .titlearea .favorite-button a{
    font-size: 8px;
    font-size: clamp(8px, 1vw, 10px);
    min-height: 0vw;
    position: relative;
    padding-left: 1.2em;
    text-decoration: none;
}
.area-three .about .steps .titlearea .favorite-button a::before{
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url('../images/icon/star-white.svg');
    background-size: cover;
}
.area-three .about .steps .contentarea ul{
    list-style: none;
    font-size: 10px;
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 0vw;
    padding-left: 0;
}
.area-three .about .steps .contentarea li{
    padding: 0.5em 1em;
    border:1px solid var(--base-black-color);
    margin-bottom: 1em;
}
.area-three .about .steps .contentarea li .check-button{
    padding: 0.3em;
    border:1px solid var(--base-black-color);
    margin-right: 2em;
    font-size: 8px;
    font-size: clamp(8px, 1vw, 10px);
    min-height: 0vw;
}
.area-three .about .next-nav{
    background-color: var(--quaternary-color);
    padding: 1em 2em;
    border-radius: 10px;
}
.area-three .about .next-nav h3{
    font-size: 10px;
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 0vw;
    text-align: center;
}
.area-three .about .next-nav h3 a{
    font-size: 10px;
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 0vw;
}
.area-three .about .next-nav .attention-button{
    padding: 0.5em 0;
}

.single-base-movie-text .area-three .items{
    display: flex;
    column-gap: 1em;
    justify-content: space-between;
}
@media screen and (max-width: 2177px) {
    .single-base-movie-text .area-three .items{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .single-base-movie-text .area-three .blogcard{
        max-width: 650px;
}
}
.single-base-movie-text .area-three .blogcard-snippet {
    display: none;
}
.single-base-movie-text .area-three .blogcard-footer{
    display: none;
}
.single-base-movie-text .area-three .course-navigation h3{
    line-height: 1.2em;
    font-size: 12px;
    font-size: clamp(12px, 1.6vw, 16px);
    min-height: 0vw;
}
.attention-button a{
    padding: 1em 2em;
    padding-right: 4em;
    background-color: var(--primary-color);
    color: var(--base-white-color);
    font-size: 10px;
    font-size: clamp(10px, 1.2vw, 12px);
    min-height: 0vw;
    max-width: 350px;
    margin: 0 auto;
}
.attention-button a::after{
    content: '';
    position: absolute;
    right: 1.5em;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    background-image: url('../images/icon/checkbox-icon.svg');
    background-size: cover;
}
.area-three .small-btn-group{
    display: flex;
    gap: 2em;
}
.footer .container{
    padding: 1vh 20px;
}
@media (orientation: landscape) and (max-width: 864px){
body, html {
    height: 100%;
    margin: 0;
}

.header {
    position: fixed;
    top: -52px;
    width: 100%;
    height: 52px;
    transition: top 0.3s;
    z-index: 1000;
}

.appeal {
    width: 100%;
    height: 100vh;
    background-color: var(--base-black-color);
    z-index: 999;
}
.area-two{
    padding-top: 0;
}


body.scrolled .header {
    top: 0;
}
    
    .appeal .container{
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .appeal .youtubearea{
        position: static;
        max-width: 80%;
        max-height: 100%;
        margin: 0 auto;
    }
    
    .appeal .youtubearea iframe{
        max-height: 100vh;
    }
    }
.post-template-single-base-youtube-movie-text #main{
    position: relative;
}
.post-template-single-base-youtube-movie-text .content > .is-provider-youtube{
    position: fixed;
    top: 80px;
    left: 0;
    padding-left: 2em;
    padding-right: 2em;
    z-index: 9999999999;
    width: clamp(400px, 45vw, 1024px);
}
.post-template-single-base-youtube-movie-text .content > .is-provider-youtube .video-container{
    max-width: 100%;
}
@media screen and (max-width: 864px) {
    .post-template-single-base-youtube-movie-text .content > .is-provider-youtube{
        position: fixed;
        top: 34px;
        left: 0;
        padding-left: 0;
        padding-right: 0;
        z-index: 99998;
        width: 100%;
        margin-block-start: 0;
    margin-block-end: 0;
    margin-inline-start: 0;
    margin-inline-end: 0;
    vertical-align: top;
    }   
}
@media screen and (max-width: 480px) {
    .post-template-single-base-youtube-movie-text .content > .is-provider-youtube{
        top: 30px;
    }   
}

/*
 公式サイト調整
*/
body {
	background-color:#fff;
}
#content {
    padding-top: 0px;
}
.area-two-main .maintitle {
	border:0;
}
.related-entry-card-content .related-entry-card-title{
	border:0;
	font-size: clamp(12px,2vw,20px);
}
.area-two-main .content {
    padding-top: 0;
}

@media screen and (max-width: 480px) {
	.area-two-main .container {
    padding-top: 0.5em;
}
    .article h3 {
        margin-left:0;
    }
}

#footer{
	background-color:#efefef;
	color:#333;
	margin-top: clamp(20px, 5vw, 100px);
}
.footer-bottom {
    margin-top:0;
}
#footer, #footer a:not(.sns-button), .footer-title {
    color:#333;
	padding:0;
}

/*動画を閉じる開くボタン*/
/* デスクトップではボタン非表示 */
@media screen and (min-width: 865px) {
  #toggle-button {
    display: none !important;
  }
}

/* モバイル/タブレット：ボタンを固定表示 */
@media screen and (max-width: 864px) {
  #toggle-button {
    display: block !important;
    position: fixed;
    right: 0;
    /* top は JS で動的にセット */
    padding: 3px 5px;
    background-color: #07387f;
    color: #fff;
    border: none;
    border-radius: 0 0 0 5px;
    font-size: clamp(10px,1.2vw,12px);
    cursor: pointer;
    z-index: 99999!important;
  }
	/* ボタンのアイコン */
   /* デフォルトは「下向きキャレット」 */
	#toggle-button::before {
		font-family: "FontAwesome";
		content: "\f0d7"; /* fa-caret-down */
		margin-right: 0.25em;
	}

	/* open＝閉じる状態（上向きキャレットに） */
	#toggle-button.open::before {
		content: "\f0d8"; /* fa-caret-up */
	}

	/* closed＝動画非表示状態（下向きキャレットに） */
	#toggle-button.closed::before {
		content: "\f0d7"; /* fa-caret-down */
	}
}
/* ===== 動画目次（ms-douga-mokuji-area） ===== */
.ms-douga-mokuji-area{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 0;
  padding: clamp(14px, 2.5vw, 20px);
  box-shadow: 2px 4px 14px rgba(0,0,0,.06);
  margin-top: clamp(16px, 3vw, 24px);
  border-radius: clamp(10px,1.2vw,12px);
}

/* summary をボタン風に（デフォルトの三角を消す） */
.ms-douga-mokuji-area .title-area {
  list-style: none;
  cursor: pointer;
  user-select: none;
  padding-right: 28px;
  position: relative;
  outline: none;
	width:100%;
}
.ms-douga-mokuji-area .title-area::-webkit-details-marker { display: none; }

/* 右側の開閉インジケータ（▶ / ▼ 風） */
.ms-douga-mokuji-area .title-area::after{
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: clamp(6px,0.8vw,8px);
	height: clamp(6px,0.8vw,8px);
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: translateY(-50%) rotate(-45deg);
  opacity: .8;
  transition: transform .2s ease;
}
.ms-douga-mokuji-area[open] .title-area::after{
  transform: translateY(-50%) rotate(45deg);
}

.ms-douga-mokuji-area .mokuji-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 1.4vw, 14px);
  margin: 0;
  color: #333;
}

.mokuji-title .mokuji-icon {
  width: clamp(10px, 1.2vw, 12px);
	height: clamp(10px, 1.2vw, 12px);
  display: inline-block;
}

.ms-douga-mokuji-area .annotation{
  font-size: clamp(10px,1.2vw,12px);
  color: #6b7280;
}

/* アコーディオンの中身（detailsのデフォルト挙動） */
#PlayerIndex{
  margin-top: 8px;
}

@media screen and (min-width: 863px) {
/* アコーディオンの中身をスクロール可能にする */
.ms-douga-mokuji-area #PlayerIndex {
  margin-top: 8px;
  max-height: 300px;   /* 好きな高さに調整 */
  overflow-y: scroll;
  padding-right: 6px;  /* スクロールバーと文字が重ならないように */
}
}
/* リスト */
.ms-douga-mokuji-area #PlayerIndex ul{
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
@media (min-width: 768px){
  .ms-douga-mokuji-area #PlayerIndex ul{ /* 必要なら2列化に戻せます */
    /* display: grid; grid-template-columns: 1fr 1fr; gap: 6px; */
  }
}
.ms-douga-mokuji-area #PlayerIndex li{
  margin: 0;
	line-height:1.3;
}

.ms-douga-mokuji-area #PlayerIndex a{
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(4px,0.8vw,8px);
  width: 100%;
  text-decoration: none;
  padding: 3px 12px;
  color: #333;
  transition: opacity 0.2s, transform .08s ease;
  position: relative;
  font-size: clamp(10px,1.2vw,12px);
  cursor: pointer;
}

.ms-douga-mokuji-area #PlayerIndex a .timecode{
  font-variant-numeric: tabular-nums;
  font-size: clamp(10px,1.2vw,12px);
  color: #6b7280;
  justify-self: end;
}

.ms-douga-mokuji-area #PlayerIndex a:hover{ opacity: 0.8; }
.ms-douga-mokuji-area #PlayerIndex a:active{ transform: translateY(1px); }

/* 任意：現在位置の強調用クラス（シーク連動時に付与） */
.ms-douga-mokuji-area #PlayerIndex a.is-active{
  background: #e0e7ff;
  border-radius: 8px;
}

/* フォーカス可視化 */
.ms-douga-mokuji-area .title-area:focus-visible,
.ms-douga-mokuji-area #PlayerIndex a:focus-visible{
  outline: 3px solid rgba(37,99,235,.35);
  outline-offset: 2px;
  border-radius: 6px;
}

/* マーカー（下半分黄色） */
.annotation.marker {
  background: linear-gradient(transparent 70%, #ffff00 70%);
}