/*
button {
  background-color: var(--accent-color);
  font-size: calc(var(--font-size-base) * 1.1);
}
*/

@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
	--main-color: #23429a;
	--sub-color: #14297B;
	--accent-color: #00B0F0;
	--text-color: #2E2E2E;
	--bg-color: #BCC6E0;
	
	--grad-front: linear-gradient(153deg, transparent 0%, transparent 55%, #23429AEE 100%);
	--grad-back: linear-gradient(200deg, #FFFFFF 0%, #FFFFFFDC 12%, #FFFFFFEE 70%, #707070EE 100%);
	--grad-bar: transparent linear-gradient(267deg, #00B3EC 0%, #004DA0 100%);
	--grad-bg: linear-gradient(153deg, transparent 0%, transparent 55%, #23429A50 100%), linear-gradient(200deg, #FFFFFF 0%, #FFFFFF30 12%, #FFFFFF40 70%, #70707050 100%);
	--grad-bg2: linear-gradient(150deg, #23429A20 0%, transparent 25%), linear-gradient(210deg, #70707077 0%, transparent 25%);
}

html, body {
	background: var(--grad-bg);
	background-repeat: no-repeat;
	background-size: cover;
	font-size: 14px;
	font-family: "Zen Old Mincho", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: var(--text-color);
	scroll-behavior: smooth; /* スムーズスクロールを有効化 */
}
h1, h2, h3, .zen-antique {
	font-family: "Zen Antique";
}
.noto {
	font-family: "Noto Sans JP";
}
.text-main {
	color: var(--main-color);
}
.text-sub {
	color: var(--sub-color);
}
.text-accent {
	color: var(--accent-color);
}

a, a:hover, a:visited {
	color: inherit;
	text-decoration: none;
}
a {
	cursor: pointer;
	transition: all .2s;
}
a:hover {
	opacity: 0.7;
}

img {
	width: 100%;
}

rt {
	font-size: 0.7em;
}

span.aks {
  /* あんまり改行 されたくない */
	display: inline-block;
}

/* header */
.site-header {
	position: sticky;
	transition: all .5s; /* アニメーション効果を追加 */
	z-index: 999;
}
.site-title {
	line-height: 1rem; 
}
.site-title img {
    width: calc(100vw - 12rem);
    max-width: 300px;
    height: auto;
}
/*.title100:hover {
	opacity: 1;
	color: #14297B99;
}*/
.closer {
	letter-spacing: -0.2em;
}
.to-map, .to-timeline {
    background: var(--main-color);
    color: var(--wp--preset--color--white);
    width: 4rem;
    font-size: 75%;
    height: 4rem;
    border-radius: 0 0 1rem 1rem;
}
.to-map:hover, .to-timeline:hover, .to-map:visited, .to-timeline:visited {
	color: var(--wp--preset--color--white)
}
.to-timeline {
    background: var(--sub-color);
}
.to-map i.bi, .to-timeline i.bi {
    font-size: 1.8rem;
    line-height: 1;
}

/* main */
.page {
	margin-bottom: 0;
}
div#page:before {
    content: '';
    display: block;
    background: var(--grad-bg2);
    width: 100%;
    height: 50vh;
    position: absolute;
    z-index: -1;
}
.entry-content {
	margin-top: 0;
}

/* footer */
.copyright {
	color: var(--main-color);
}

/* top */
.top-contents {
	/*width: 100%;*/
	height: calc(100vh - 90px);
}
.top-contents .col-lg-8 {
	flex: 1 1 auto;  /* 左カラムは伸縮可能 */
	min-height: 0;   /* 必須: overflow防止 */
}
.top-contents img {
	object-position: center bottom;
}
.top-contents .col-lg-4 {
	background-image: 
		linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.9)),
		linear-gradient(160deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0.7)),
		url('./img/bg_img.webp');
	background-size: cover;
	background-position: left bottom;
	background-repeat: no-repeat;
}
.top-contents h2 {
    text-shadow: 0 0 5px var(--text-color);
}
.top-contents h2 span:first-child {
	font-size: max(4vw, 2.3rem);
}
.top-contents h2 span:last-child {
	font-size: max(2.3vw, 1.1rem);
}
.top-contents .links a {
	transition: all .4s;
}
.top-contents .links a:hover {
	/*color: var(--main-color);
	border-color:  var(--main-color)!important;*/
}

/* timeline */
.site-header .category, .site-header .type-wrapper {
	transition: all .4s;
}
.site-header.only-year .category, .site-header.only-year .type-wrapper {
	transition: all .4s;
    transform: translateY(-120px);
    opacity: 0;
    pointer-events: none;
	height: 0;
}
.timeline_year a.current {
    font-size: max(140%, 2.2vw);
    line-height: 1;
}
.timeline_year {
    background: var(--grad-bar);
	max-width: 1200px;
}

.category {
    max-width: 600px;
}
.category a {
	background-color: var(--accent-color);
	width: 23%;
}
.category a.current {
    background: var(--grad-bar);
}

.type-scroll {
	overflow-x: auto;                 /* はみ出したら横スクロール */
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;           /* Firefoxでスクロールバー非表示 */
	cursor: grab;
}
.type-scroll::-webkit-scrollbar {
	display: none;                   /* Chrome/Safariでスクロールバー非表示 */
}
.scroll-left, .scroll-right {
	display: flex;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;	
	border: none;
	color: var(--main-color);
	font-size: 2.5rem;
	height: 100%;
}
.scroll-left {
	left: 0;
	background: linear-gradient(270deg, transparent 0%, #bfc0c4 100%);
}
.scroll-right {
	right: 0;
	background: linear-gradient(90deg, transparent 0%, #bfc0c4 100%);;
}
.bi-chevron-left::before, .bi-chevron-right::before {
	font-weight: 900!important;
	text-shadow: 0 0 6px rgba(255,255,255,0.7);
}
.type a {
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	white-space: nowrap;
	background: var(--sub-color);
}
.type a.current {
    background: var(--grad-bar);
}
/* 調整 */
@media (min-width: 630px) and (max-width: 767px) {
	.type {
		justify-content: center;
	}
}
@media (min-width: 924px) {
	.type {
		justify-content: center;
	}
}

.category_desc {
	max-width: min(96%, 700px);
}
.timeline {
    max-width: 960px;
    border-left: var(--accent-color) 4px solid;
	margin-left: calc(1rem + 2px); /* 丸の半分が左にはみ出すため */
}
.timeline-event, .timeline-event * {
	transition: all .4s;
}
.timeline-event:before {
    content: '';
    display: block;
    width: 2rem;
    height: 2rem;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    left: calc(-1rem - 2px);
}
.timeline-event .event_year {
	line-height: 1;
}
.timeline-event:hover {
    cursor: pointer;
	transform: translateY(-10px);
}
.timeline-event:hover * {
	opacity: 0.9;
}
.timeline-event:hover img {
	transform: scale(1.1);
}
.timeline-event.no-modal:hover {
	cursor: initial;
	transform: none;
}
.timeline-event.no-modal:hover * {
	opacity: 1;
}
.timeline article:last-child .timeline-event {
    padding-bottom: 0!important;
}

/* WebKit系ブラウザ用のスクロールバーカスタマイズ */
.modal-body::-webkit-scrollbar {
  width: 12px; /* スクロールバーの幅 */
}
.modal-body::-webkit-scrollbar-track {
  background: transparent; /* トラックの背景を透明にする */
  border-radius: 12px;
}
.modal-body::-webkit-scrollbar-thumb {
  background-color: #ccc; /* スクロールバーのつまみの色 */
  border-radius: 16px;
  border: 2px solid white; /* つまみの周りに余白を作る */
}

.modal-content.no-slide {
    max-width: 800px;
    margin: 0 auto;
}
button.btn-close {
    font-size: 2rem;
    opacity: 0.9;
}
button.btn-close:focus {
	outline: none;
	box-shadow: none;
}
.bg-blue {
	background-color: var(--bg-color);
	color: var(--main-color);
}
.slide-arrow {
	font-size: 1.5rem;
	top: 0;
	color: var(--bg-color);
}
.slide-arrow.prev-arrow {
	left: -1.5rem;
}
.slide-arrow.next-arrow {
	right: -1.5rem;
}
.slick-dots li button::before {
	font-size: 0.75rem;
	color: var(--main-color);
}
.slick-dots li.slick-active button::before {
	color: var(--main-color);
}

.item {
    word-break: break-all;
}

.archive .site-footer .copyright {
    padding-top: 0!important;
}
.pagetop {
	background: var(--text-color);
    position: sticky;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    bottom: 1rem;
    right: 1rem;
	margin-left: auto;
    font-size: 40px;
	line-height: 60px;
    color: var(--wp--preset--color--white);
	opacity: 0.4;
}
.pagetop .bi-chevron-up::before {
    font-weight: 900!important;
    vertical-align: -0.02em;
}

/* map */
iframe {
    width: 100%;
    height: 80vh;
}

/* motion */
.motion {
  //transition: all 1s;
  //transform: translateY(100px);
  opacity: 0;
}
.motion.active {
  //transition: all 1s;
  //transform: translateY(0);
  animation: fadeInZoom 1.2s ease-out forwards;
}

@keyframes fadeInZoom {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fade-in-zoom {
  animation: fadeInZoom 1.2s ease-out forwards;
}

/***************
 * responsive
 ***************/
 @media all and (max-width: 575px) {
	/* xs */
}

@media all and (min-width: 576px) {
	/* sm */
}

@media all and (min-width: 768px) {
	/* md */
	html, body {
  		font-size: 16px;
	}
	a[href^="tel:"] {
			pointer-events: none;
	}
	
	/* header */
	.title100 h2 {
		font-size: min(3.9vw, 3rem);
	}
	
	/* top */
	.top-contents {
		height: max(341px, calc(100vh - 105px));
	}
	
	/* timeline */
	.timeline_year a, .category a, .type a {
		font-size: 120%;
	}
	.type a {
		flex: 0 0 100px;
		width: 100px;
		height: 100px;
	}
	.timeline {
		max-width: 960px;
		border-left: var(--accent-color) 5px solid;
		margin-left: calc(1.5rem + 2.5px); /* 丸の半分が左にはみ出すため */
	}
	.timeline-event:before {
		content: '';
		display: block;
		width: 3rem;
		height: 3rem;
		background-color: var(--accent-color);
		border-radius: 50%;
		position: absolute;
		left: calc(-1.5rem - 2.5px);
	}
	.timeline-event .event_year {
		line-height: 1.5;
	}
}

@media all and (min-width: 992px) {
	/* lg */
	.top-contents .col-lg-8 {
		height: 100%;
	}
	.top-contents .col-lg-4 {
		background-image: 
			linear-gradient(135deg, rgba(0,0,0,0.2), rgba(0,0,0,0.9)), /* 上から下にグラデーション */
			linear-gradient(120deg, rgba(255,255,255,1) 20%, rgba(255,255,255,0.7)),
			url('./img/bg_img.webp'); /* 下に敷く画像 */
	}
	.timeline-modal .modal-dialog {
		max-width: 90%;
		margin: 0 5%;
	}
}

@media all and (min-width: 1200px) {
	/* xl */
	.timeline-modal .modal-dialog {
		max-width: 1140px;
		margin: 0 auto;
	}
}

@media all and (min-width: 1400px) {
	/* xxl */
	.top-contents {
		height: max(390px, calc(100vh - 114px));
	}
}