/*
Theme Name: railway
*/
body {
	font-family: 'Noto Sans JP', sans-serif;
	color: #333;
	margin: 0;
	padding: 0;
}
a {
	color: #333;
	text-decoration: none;
	cursor: pointer;
}
a:hover {
	text-decoration: underline;
}

img{
	max-width: 100%;
	max-height: 100%;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px;
}
.card {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
	margin-bottom: 20px;
	overflow: hidden;
}
.card img {
	width: 100%;
	height: auto;
}
.card-content {
	padding: 15px;
}
.card-title {
	font-size: 1.4rem;
	margin-bottom: 10px;
}
.card-excerpt {
	color: #666;
	font-size: 0.95rem;
}


/* single */
.single p{
	line-height: 1.7;
}
.single img{
	margin: 15px 0;
}
article.single{
	width: 90%;
	max-width: 900px;
	margin: 0 auto;
}
article.single a{
	text-decoration: underline;
}
article.single h1{
	font-size: 30px;
	margin-bottom: 30px;
}
article.container{
	max-width: 1000px;
}

article.container h1{
	text-align: center;
}

.two-column {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.main-content {
	flex: 1 1 70%;
	min-width: 300px;
}

.sidebar {
	flex: 1 1 25%;
	min-width: 250px;
	background: #fff;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget {
	margin-bottom: 20px;
}

.widget-title {
	font-size: 1.2rem;
	margin-bottom: 10px;
	border-bottom: 2px solid #0073aa;
	padding-bottom: 5px;
}



/* ------------------------------- */
/* 共通 */
/* ------------------------------- */
.container{
	max-width: 1400px;
	margin: 0 auto;
	display: block;
}


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




/* ------------------------------- */
/* header */
/* ------------------------------- */
header{
	/* 	height: 60px;
	overflow: hidden; */
}
header .container{
	display: flex;
	justify-content: space-between;
	border-bottom: solid 2px #ccc;
}
header ul{
	display: flex;
	list-style: none;
}
header p{
	margin: 0;
	line-height: 1.5;
}
header p.title{
	font-size: 26px;
	font-weight: 700;
}
header p.catchphrase{
	font-size: 14px;
}
header li{
	margin: 0 20px;
}


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


/* ------------------------------- */
/* footer */
/* ------------------------------- */
footer{
	text-align: center;
	padding: 30px 0;
	border-top: solid 1px #ccc;
}
.footer-top-menu{
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	margin-bottom: 40px;
}
.footer-top-menu li{
	margin: 0 15px;
}
@media screen and (max-width: 768px) {
	footer{
		text-align: center;
		padding: 60px 0;
	}
}

/* ------------------------------- */
/* トップ */
/* ------------------------------- */
.none {
	color: #ccc;
	pointer-events: none;
}
.none a{
	color: #ccc;
}

/* セクション全体の高さ制御 */
.top .fv {
	height: 60vh;
	height: 60svh; /* スマホの表示領域対応 */
	max-height: 800px;
	overflow: hidden;
	position: relative;
	padding: 0;
	border-bottom: none !important;
}
@media screen and (max-width: 1000px) {
	.top .fv {
		height: 60vh;
		height: 60svh;
	}
}
.fv-slider{
	height: 100%;
}
/* Slick全体 */
.fv-slider .slider {
	height: 100%;
}
/* 各スライド */
.fv-slider .slide {
	position: relative;
	height: 100%;
	/*   transform: scale(0.9); */
	transition: transform 0.3s ease;
	padding: 0 10px; /* スライド間の余白 */
	box-sizing: border-box;
}
/* 中央のスライドを拡大表示 */
.fv-slider .slick-center {
	/*   transform: scale(1); */
	z-index: 2;
}
/* スライド内画像 */
.fv-slider .slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
/* タイトル（画像の上に重ねる） */
.fv-slider .slide h3 {
	position: absolute;
	bottom: 10px;
	left: 10px;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	padding: 6px 12px;
	font-size: 1rem;
	border-radius: 4px;
	margin: 0;
}
/* Slickの矢印調整（お好みで） */
.fv-slider .slick-prev,
.fv-slider .slick-next {
	z-index: 3;
}
.slick-list{
	height: 100%;
}
.slick-track{
	height: 100%;
}


.top section{
	border-bottom: 1px solid #ddd;
	padding: 50px 0;
}
.top section.feature{
	padding-top: 0;
}

.top h2{
	font-size: 30px;
	text-align: center;
	padding-top: 60px;
	margin-top: 0;
	position: relative;
}
.top h2:before{
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translatex(-50%);
	content: "";
	width: 60px;
	height: 5px;
	background-color: #87CEEB;
}
.news-item {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 20px 0;
	list-style: none;
}
.news-item a {
	display: flex;
	gap: 20px;
	text-decoration: none;
	color: inherit;
}
.news-item .img_gr {
	flex-shrink: 0;
	width: 240px;
	height: 160px;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.news-item .img_gr img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.news-item .text_gr {
	flex: 1;
}
.news-item .meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 5px;
	font-size: 14px;
	color: #8A8A8A;
}
.news-item .meta time {
	font-weight: 400;
}
.news-item .meta .cat span {
	background: #87CEEB;
	color: #55212d;
	padding: 2px 8px;
	font-size: 13px;
	border-radius: 999px;
	color: #000;
	margin-right: 10px;
}
.news-item .title {
	font-size: 20px;
	font-weight: 500;
	margin: 0;
}
.news-item p.title{
	font-size: 22px;
	font-weight: 700;
}
@media screen and (max-width: 768px) {
	.news-item a{
		width: 100%;
	}
	.news-item .img_gr{
		min-width: 130px;
		width: 40%;
		height: fit-content;
		aspect-ratio: 130 / 85;
	}
	.news-item a p.title{
		font-size: 18px;
		display: -webkit-box;
		-webkit-line-clamp: 2; /* 2行まで表示 */
		-webkit-box-orient: vertical;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

.top section.area{
	border-bottom: none;
}
.area .gr ul{
	padding: 0;
}
.area .gr ul ul{
	list-style: none;
	display: flex;
	gap: 15px;
	padding: 0;
	margin-bottom: 20px;
}
.area .gr ul ul li{
	margin: 10px 0;
}


.to_train{
	background-color: #eee;
}
.top-slider {
	padding: 40px 0;
	overflow: hidden; /* これを忘れるとチラ見えしない */
	/* 	background: #f5f5f5; */
	max-width: 1000px;
	margin: 0 auto;
}
.to_train .slider .slide {
	position: relative;
	transform: scale(0.8);
	transition: transform 0.3s ease;
	padding: 0 10px; /* スライド間余白 */
}
.to_train .slider .slick-center {
	transform: scale(1); /* 中央スライドだけ大きく */
	z-index: 2;
}
.to_train .slide img {
	width: 100%;
	border-radius: 10px;
	display: block;
}
.to_train .slide-title {
	position: absolute;
	bottom: 10px;
	left: 10px;
	color: #fff;
	background: rgba(0, 0, 0, 0.6);
	padding: 5px 10px;
	font-size: 1em;
	border-radius: 5px;
}
.to_train .slick-dots{
	bottom: -35px;
}




/* ------------------------------- */
/* archive */
/* ------------------------------- */
.archive .fv{
	height: 40vh;
	height: 40svh;
	max-height: 600px;
	position: relative;
}
.archive .fv:before{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.6);
}
.archive .fv img{
	width: 100%;
	object-fit: cover;
	height: 100%;
}
.archive .fv h1{
	color: #fff;
	font-size: 40px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}
.all_tag p.title{
	font-weight: 700;
	font-size: 18px;
	position: relative;
	padding-left: 10px;
}
.all_tag p.title:before{
	left: 0;
	top: 0;
	height: 100%;
	width: 5px;
	background-color: #87CEEB;
	position: absolute;
	content: "";
}
.all_tag ul{
	display: flex;
	padding: 30px;
	gap: 15px;
	border: solid 1px #ccc;
	list-style: none;
}
@media screen and (max-width: 768px) {}



/* 鉄道と観光 */
.archive .top-slider{
	width: 100%;
	max-width: initial;
}
.to_train p.title{
	font-weight: 700;
	font-size: 18px;
	position: relative;
	padding-left: 10px;
}
.to_train p.title:before{
	left: 0;
	top: 0;
	height: 100%;
	width: 5px;
	background-color: #87CEEB;
	position: absolute;
	content: "";
}



/* 記事内 css */
ul.kankou_spot{
	display: flex;
	gap: 15px;
	list-style: none;
	margin-bottom: 30px;
}
ul.kankou_spot li{
	width: calc(33.3% - 10px);
}

ul.kankou_spot h3{
	margin: 10px 0;
}
ul.kankou_spot li img{
	margin: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
	object-position: center;
}
ul.kankou_spot li dd{
	margin: 0;
}

/* ↓↓↓ ここから観光用CSSを追加 ↓↓↓ */
.tbl-st1 td:first-child {
  background: #fbf5f5;
}
@media screen and (max-width: 750px) {
  .tbl-st1 {
    width: 80%;
  }
  .tbl-st1 .thead {
    display: none;
  }
  .tbl-st1 tr {
    width: 100%;
  }
  .tbl-st1 td {
    display: block;
    text-align: right;
    width: 100%;
  }
  .tbl-st1 td:first-child {
    background: #808080;
    color: #fff;
    font-weight: bold;
    text-align: center;
  }
  .tbl-st1 td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    margin-right: 10px;
  }
}


/* contact form */
.wpcf7{
	max-width: 600px;
    margin: 0 auto;
}
.wpcf7 input, .wpcf7 textarea{
	width: 100%;
	box-sizing: border-box;
}
.wpcf7 input.wpcf7-submit{
	width: 200px;
	margin: 0 auto;
	display: block;
}

/* 目次 */
.toc-005 {
    margin-bottom: 30px;
    border-radius: 3px;
    background-color: #ffffff;
}

.toc-005 div {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    background-color: #2589d0;
    color: #fff;
    font-weight: 600;
    font-size: 1.1em;
}

.toc-005 div::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

.toc-005 label::after {
    margin-left: 7px;
    font-weight: 500;
    font-size: .7em;
    color: #fff;
    content: "[開く]";
    cursor: pointer;
}

.toc-005:has(:checked) label::after {
    content: "[閉じる]";
}

.toc-005 input {
    display: none;
}

.toc-005 ol {
    list-style-type: disc;
    margin: 0;
    overflow: hidden;
}

.toc-005 > ol {
    height: 0;
}

.toc-005:has(:checked) > ol {
    height: auto;
    padding: 1em 1em 1em 3em;
}

.toc-005 ol ol {
    margin-top: 5px;
    padding-left: 1.1em;
}

.toc-005 li {
    padding: 5px 0;
    font-weight: 600;
}

.toc-005 ol ol li {
    font-weight: 500;
    font-size: .9em;
}

.toc-005 a {
    color: #333;
    text-decoration: none;
}

/* ↓↓↓ ここから観光用ボタンCSSを追加 ↓↓↓ */

.button-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 250px;
    margin:0 auto;
    padding: .9em 2em;
    border: none;
    border-bottom: solid 5px #0059a0;
    border-radius: 25px;
    background-color: #2589d0;
    color: #fff;
    font-weight: 600;
    font-size: 1em;
    transition: .5s ease;
}

.button-4::after {
    transform: rotate(45deg);
    width: 5px;
    height: 5px;
    margin-left: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    content: '';
}

.button-4:hover {
    transform: translateY(3px);
    border-bottom-width: 2px;
}

/* ↓↓↓ ここから駅時刻表用リストを追加 ↓↓↓ */

.link-btn> a, .link-btn> ul> li> a{
	min-height: 3em;
    display: block;
    margin: 2rem auto;
    padding: .5em 1em;
    border-radius: 5px;
    position: relative;
    border: 1px solid #e4e4e4;
    border-right: 1px solid #d5d5d5;
    border-bottom: 2px solid #c5c5c5;
}