/*-- Google Font 'Crimson Text' の読み込み『西暦年数のフォントに採用』
---------------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,600&display=swap');

main h2{
    display: flex;
}

main h2 span{
   flex: 1;
}

.digest h2{
	background: none;	/*-- グラデーション解除 --*/
	border-bottom: none;	/*-- 下線解除 --*/
	border-image: none;
	border-image-slice: 0;
	color: #000000; /*色を黒に*/
	padding: 0;	/*-- h2タグ内の余白。注意！メディアクエリ１０００以上でも設定あり --*/
	margin: 0 0 10px;			/*-- h2タグの外側にとるスペース。上、左右、下の順。 --*/

    font-size: 1.2em;	/*-- 文字サイズを少しだけ大きめに --*/
	font-weight: normal;	/*-- 文字の太さを標準に --*/
}

/*-- モバイル単用の 『詳しく見る』 ボタン --*/
.mobile-visible{
    display: none;
}



.link-bar {     /*-- 幅と左側の位置は main-enkaku.js で設定 --*/
    position: fixed;
    background-color: #ffffff;
    padding: 10px;
    margin-top: 8px;
    font-family: 'Crimson Text', serif;

    z-index: 5;    /*-- menubar は 100、menubarよりも下の重なりにする。--*/
    /*border: solid #bc0000 1px;*/
}
  
.link-bar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;

    display: flex; /*-- 親要素をフレックスコンテナにする --*/
    flex-direction: row; /*-- 要素を横方向に配置する --*/
    width: 100%;
}

.link-bar li {
    line-height: 11px;
    font-size: 25px;
    padding: 0;
    background: linear-gradient(#808080, #666666 49%, #555555 50%);
    
    /*-- 
    矢じりのスタイリングをclip-pathで設定する。
    clip-path は CSS のプロパティで、
    要素のどの部分を表示するかを設定するクリッピング領域を作ります。
    具体的には、領域の内部の部分は表示され、外側の部分は非表示になります。 
    https://developer.mozilla.org/ja/docs/Web/CSS/clip-path
    --*/
    clip-path: polygon(
        10% 50%,  
        0 0,
        90% 0,
        100% 50%,
        90% 100%,
        0 100%
    );

    width: 20%;
    height: 40px;

    margin: auto 0;
}

 
.link-bar a {
    text-decoration: none;
    color: rgb(252, 253, 255); /*-- リンクの色を指定 --*/
    display: block;

    /*--リスト内の文字（年数）をクリップパスの上下左右中央に配置 --*/
    display: block;
    text-align: center; /*-- テキストを中央揃えにする --*/
    line-height: 40px; /*-- 行の高さを親要素の高さに合わせる --*/
}

.link-bar a:hover{
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.link-current{
    background: linear-gradient(#404d77, #313f6e 49%, #293765 50%);

    width: 100%;
    height: 40px;
}

.timeline {
    list-style: none;
    margin-top: 53px;   /*-- 別途、指定箇所があるので上書きされる。（指定を消した時に有効） --*/
}
.timeline > li {
    margin-bottom: 60px;
}
.timeline h3{
    margin-top: 20px;     
}

.timeline h3::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -23px;
    margin-top: -12px;
    border: 12px solid transparent;
    border-right: 12px solid #f7f7f7;
    z-index: 2;
}

.timeline h3::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -26.7px;
    margin-top: -14px;
    border: 14px solid transparent;
    border-right: 14px solid #e5e5e5;
    z-index: -1;
}

/*-- 文字の色を変更する --*/
.point1{
    color: brown;
}

/*-- .point1クラスが存在する場合に.timeline-content:beforeのスタイル（色）も変更する--*/
.point1 + .timeline-content:before {
    background: #bc0000 !important;
}



.digest{
    margin-top: 68px;
    padding: 0;  
    /*border: 1px solid #ccc;	   /*-- 枠線の幅、線種、色 --*/
}


.each-container {
	display: flex;					/*-- flexボックスを使う指定 --*/
	flex-wrap: wrap;				/*-- 折り返す指定 --*/
    margin: 50px 0;
    height: auto;
    /*background: #ffffff;*/
	flex-direction: column;			/*-- 子要素を縦並びにする --*/
    /*border: 1px solid #ccc;	   /*-- 枠線の幅、線種、色 --*/
    /*box-shadow: 2px 2px 5px rgba(0,0,0,0.1);/*ボックスの影。右へ、下へ、ぼかし幅の順。0,0,0は黒の事で0.1は色が10%出た状態。*/

    border-bottom: 1px solid #ccc; /* グレーの線を引く */
    margin-top: 100px; /* 上の間隔 */
    margin-bottom: 100px; /* 線と次の要素の間隔を調整 */
    padding-bottom: 20px; /* 線の下の余白を調整 */

}

/*-- 最後の .each-container にのみ適用 下のボーダーを消す。--*/
.border-bottom-none{
    border-bottom: none;
}


.each-container .l-list, .each-container .r-list {
	display: flex;					/*-- flexボックスを使う指定 --*/
	flex-direction: column;			/*-- 子要素を縦並びにする --*/
    height: 100%;                   /*-- 要素の高さを100%に設定 --*/
    /*border: 1px solid #ccc;	   /*-- 枠線の幅、線種、色 --*/
	padding: 16px;					/*-- ボックス内の余白 --*/
    margin-bottom: 50px;
	/*background: rgba(255, 255, 255, 0.8);		   /*背景色。*/
	/*box-shadow: 2px 2px 5px rgba(0,0,0,0.1);/*ボックスの影。右へ、下へ、ぼかし幅の順。0,0,0は黒の事で0.1は色が10%出た状態。*/
}

/*-- l-listには文字、r-listには画像 
nth-of-type(even)　で l と r を左右交互に入れ替える。--*/
.each-container .l-list {
    flex-basis: 45%; /*-- 幅を40%に固定 --*/
    /*border: 1px solid #ccc;*/
    height: auto;
    padding: 0 30px;
}

.each-container .r-list {
    flex-basis: 55%; /*-- 幅を60%に固定 --*/
    overflow: hidden;   /*-- ズームではみ出た画像は非表示 --*/
    padding: 0;
    /*border: 1px solid #ccc;*/
}


.each-container:nth-of-type(even) {
    flex-direction: row-reverse; /*-- 偶数番目の要素の子要素の並び順を逆にする --*/
    order: 1; /*-- 偶数番目の要素の表示順序を逆にする --*/
}

.digest span{
    font-family: 'Crimson Text', serif; 
    font-size: 45px;
    margin-top: -25px;
}

.l-list .btn a {
	display: block;		/*-- 幅一杯にとる --*/
	margin-top: 20px;	/*-- ボタンの上に空けるスペース --*/
}


/*-- スライド画像上でのマウスポインタ―の指定 --*/
.digest-slick{
	cursor: pointer; /*追記*/
}

/*追記2023/02/21　フェードインでslidkの一瞬縦並びごまかし改善(なくてもよい？)*/
.digest-slick{
  opacity: 0;
  transition: opacity .3s linear;
}
.digest-slick.slick-initialized{
  opacity: 1;
}




.digest-slick:active {
    cursor: grabbing; /* クリックしたときのマウスポインターの形状を指定 */
}


/*-- Slickスライドに関する設定　ここから -----------
クラスの指定は slick.min.js を参照　-----------------*/
ul.slick-dots li {
    /*--トップページと共通であるが、あえて明示 --*/
	margin: 0 5px;
    width: 25px;    /*-- ドットの間隔（デフォルトが20pxみたい） --*/
}

/*丸いページナビボタン全体を囲むブロック*/
ul.slick-dots {
	position: absolute;
	bottom: 20px;		/*ボタンの上下位置　ここでは画像の外にすると表示されない。*/
}

/*buttonタグ*/
ul.slick-dots li button {
	border: none;
    padding: 0;
	width: 11px;		/*ボタンの幅*/
	height:11px;		/*ボタンの高さ*/
	border-radius: 50%;	/*丸くする指定*/
	background: #f8f8f8;	/*背景色。白→白鼠に変更。*/	
}

/*buttonのアクティブ時（現在表示されている画像を示すボタン）*/
ul.slick-dots li.slick-active button {
	background: #901b1b;	/*背景色*/
}
/*--------------------- Slickスライドに関する設定　ここまで --*/


/*-- 画像の大きさ、表示に関する設定 --*/
.digest-slick > div{
    max-width: 100%; /*-- 最大幅を100%に設定 --*/
    max-height: 100%; /*-- 高さを自動調整 --*/

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block; /*-- インライン要素としてではなく、ブロック要素として表示 --*/
}

.d1900-1{
    content: url(../images/enkaku/digest/1900-1.jpg);
}
.d1900-2{
    content: url(../images/enkaku/digest/1900-2.jpg);
}
.d1900-3{
    content: url(../images/enkaku/digest/1900-3.jpg);
}



.d1930-1{
    content: url(../images/enkaku/digest/1930-1.jpg);
}
.d1930-2{
    content: url(../images/enkaku/digest/1930-2.jpg);
}
.d1930-3{
    content: url(../images/enkaku/digest/1930-3.jpg);
}
.d1930-4{
    content: url(../images/enkaku/digest/1930-4.jpg);
}



.d1962-1{
    content: url(../images/enkaku/digest/1962-1.jpg);
}
.d1962-2{
    content: url(../images/enkaku/digest/1962-2.jpg);
}
.d1962-3{
    content: url(../images/enkaku/digest/1962-3.jpg);
}
.d1962-4{
    content: url(../images/enkaku/digest/1962-4.jpg);
}
.d1962-5{
    content: url(../images/enkaku/digest/1962-5.jpg);
}



.d1982-1{
    content: url(../images/enkaku/digest/1982-1.jpg);
}
.d1982-2{
    content: url(../images/enkaku/digest/1982-2.jpg);
}
.d1982-3{
    content: url(../images/enkaku/digest/1982-3.jpg);
}
.d1982-4{
    content: url(../images/enkaku/digest/1982-4.jpg);
}



.d2001-1{
    content: url(../images/enkaku/digest/2001-1.jpg);
}
.d2001-2{
    content: url(../images/enkaku/digest/2001-2.jpg);
}
.d2001-3{
    content: url(../images/enkaku/digest/2001-3.jpg);
}
.d2001-4{
    content: url(../images/enkaku/digest/2001-4.jpg);
}
.d2001-5{
    content: url(../images/enkaku/digest/2001-5.jpg);
}
.d2001-6{
    content: url(../images/enkaku/digest/2001-6.jpg);
}




/*------------------------------------------------
ダイジェストの画像に適用
画像を格納するコンテナを一定の大きさにして、はみ出した部分は非表示--*/
.zoom-out-image {
	width: 100%; /*-- 親要素に対して100%の幅を持つように指定 --*/
	height: 100%; /*-- 親要素に対して100%の高さを持つように指定 --*/
	object-fit: contain; /*-- アスペクト比を保ちながら親要素に収めるように指定 --*/
	transform-origin: center center;
	transform: scale(1.05) translateY(10px); /*v translateYでY方向に移動、10pxは調整可能 --*/
	/* filter: blur(1000px); /*-- 初期のぼかしを設定 */
	transition: transform 0.8s, opacity 1s; /*-- 透明度の変更もアニメーションに追加 --*/
	opacity: 0; /*-- 初期の透明度を0に設定 --*/
}

.zoom-out-image.visible {
	transform: scale(1) translateY(0); /*-- 表示された時に元の位置に戻す --*/
	opacity: 1; /*-- 表示された時の透明度を1に設定 --*/
	/*-- filter: blur(0); /* アニメーション後のぼかしを解除 --*/
}






/*-- for Desktop スマートフォンは別途指定 --*/
@media ( min-width : 640px ){
    .timeline {
        margin-top: 90px;
    }

    .timeline > li {
    overflow: hidden;
    margin: 0;
    position: relative;
    /*border: solid 1px #00245d;*/
    }
    
    .timeline-date {
    width: 80px;
    float: left;
    margin-top: 5px;
    font-family: 'Crimson Text', serif;
    font-size: xx-large;
    }

    .timeline-content {
    width: 75%;
    float: left;
    border-left: 3px #e5e5d1 solid; /*--左のボーダーを色指定して年表の軸にする--*/
    padding-left: 30px;
    }

    /*--疑似要素でドット〇を表現--*/
    .timeline-content:before {
    content: '';
    z-index: 1; /*--無指定では標示されない--*/
    width: 12px;
    height: 12px;
    background: #00245d;
    position: absolute; /*--位置を決める--*/
    left: -7.3px;   /*--位置を決める--*/
    top: 31px;  /*--位置を決める--*/
    border-radius: 100%;
    }
    
    .each-container {
        flex-direction: row;	/*子要素を横並びにする*/
    }
    
    /*listボックス。１個あたりのボックスの指定です。*/
    .each-container .l-list {
        width: 50%;	/*ボックスの幅*/
    } 
    .each-container .r-list {
        width: 50%;	/*ボックスの幅*/
    }  
}


/* for Mobile スマートフォン向けのスタイル*/
@media (max-width: 639px) {
    .timeline {
        margin-top: 70px;
    }

    .each-container {
        display: flex;					/*flexボックスを使う指定*/
        flex-wrap: wrap;				/*折り返す指定*/
        padding: 0px;
        margin-top: 0; /* 上の間隔 */
        height: auto;
        /*background: #ffffff;*/
        flex-direction: row;			/*子要素を縦並びにする*/
    }

    .each-container .l-list {
        flex-basis: 100%; /* 幅を100%に固定 */
        padding: 0;
        margin-bottom: 20px;
    }
    
    .each-container .r-list {
        flex-basis: 100%; /* 幅を100%に固定 */
        margin-bottom: 50px;
    }

    .pc-visible{
        display: none;
    }

    .mobile-visible{
        display: block;
        width: 98vw;
        margin-top: 10px;
    }

    .btn a,
    .btn input {
        display: block; /* ブロック要素に変更 */
        width: 100%; /* 親要素の幅に合わせる */
        margin-right: auto;
        margin-left: auto;
    }

    .link-bar li {
        height: 30px;
    }

    .link-bar a {
        padding: 0;
        text-decoration: none;
        font-size: 15px;
        line-height: 30px;  /* 行の高さを親要素の高さに合わせる */
    }

    .timeline > li {
        margin-bottom: 0;
        margin-left: -40px !important;
        overflow: hidden;
        position: relative;
        display: flex;
        flex-direction: row;
        /*border: solid 1px #00245d;*/
    }

    .timeline-date {
        width: 20vw;
        text-align: center;
        margin: 5px;
        margin-top: -15px;
        font-family: 'Crimson Text', serif;
        font-size: xx-large;
    }

    .timeline-content {
        flex: 1;
        position: relative;
        text-align: left;
        padding-left: 20px;
        border-left: 3px #e5e5d1 solid;
    }

    .timeline-content:before {
        content: "";
        z-index: 1;
        width: 12px;
        height: 12px;
        background: #00245d;
        position: absolute;
        left: -8px;
        top: 12px;
        border-radius: 100%;
    }


    .timeline-content h3 {
        padding-left: 5px;
        margin-top: 0;
    }

    .timeline-content p{
        margin-left: 5px;
        padding-left: 0;
    }

    /*--画像が縦並びになったとき間隔をあける--*/
    .digest img, .timeline img{ 
        max-width: 100vw;
        margin-bottom: 10px;    
    }
        
}

/*--標示アニメーションの設定--*/
.timeline-content:before {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.timeline-content {
    opacity: 0;
    transform: translateY(10px); /* 初期状態では少し上に移動 */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-content.appear:before {
    opacity: 1;
}

.timeline-content.appear {
    opacity: 1;
    transform: translateY(0); /* スクロールで表示されたときに元の位置に移動 */
}
