@charset "UTF-8";

* , *::before , *::after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}


html {
   font-size: 100%;
}

body {
    width: 100%;
    margin: 0 auto;
    font-family: "ヒラギノ丸ゴ Pro W4","Hiragino maru Gothic Pro",sans-serif;
	  color: #000;
	  background-color:#fff
}

a {
  text-decoration: none;
}

img {
  pointer-events: none;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}


/*新header*/
#header {
  position: fixed;
  height: 30px;
  width:100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background:rgba(19, 27, 74, 0.5);
  color:#fff;
  padding: 20px;
}

#header a:hover {
  color: #0bd;
}

nav ul{
  list-style: none;
  display: flex;
  justify-content: center;
}

nav ul li a{
  display: block;
  text-decoration: none;
  color: #fff;
  padding:10px 12px;
  transition:all 0.3s;
  font-size: 0.8rem;
}

/*ヘッダー上動作*/
#header.UpMove{
  position: fixed;
  width:100%;
  animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime{
  from {
    opacity: 1;
  transform: translateY(0);
  }
  to {
    opacity: 0;
  transform: translateY(-100px);
  }
}

/*ヘッダー下動作*/
#header.DownMove{
  position: fixed;
  width:100%;
  animation: DownAnime 0.5s forwards;
}
@keyframes DownAnime{
  from {
    opacity: 0;
  transform: translateY(-100px);
  }
  to {
    opacity: 1;
  transform: translateY(0);
  }
}

/*ハンバーガ押下後メニュ表示*/
.ham_nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  transform: translateX(-100%);
  background-color: #fff;
  opacity: 0.95;
  z-index: 5;
  transition: all 0.6s;
}

.nav_menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0;
}

.nav_item p {
  color: #193278;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 18px;
  margin-bottom: 8px;
}

.nav_item {
  color: #080808;
  width: 100%;
  display: block;
  text-align: center;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.nav_item:last-child {
  margin-bottom: 0;
} 


/*ハンバーガ*/ 
.header_ham {
  width: 25px;
}

.ham{
  background-color: transparent;
  border-color: transparent;
  z-index: 6;
  position: fixed;
  top: 10px;
  right: 10px;
  display: none;
}


/*ハンバーガアイコン*/
.ham span{
  width: 100%;
  height: 2px;
  background-color: #aaa;
  position: relative;
  transition: ease .4s;
  display: block;
}

.ham span:nth-child(1){
  top: 0;
}

.ham span:nth-child(2){
  margin: 8px 0;
}

.ham span:nth-child(3){
  top: 0;
}


/*ハンバーガ変化用*/
.ham_nav.active{
  transform: translateX(0);
  position: fixed;
}

.ham.active span:nth-child(1){
  top: 5px;
  transform: rotate(45deg);
}

.ham.active span:nth-child(2){
  opacity: 0;
}

.ham.active span:nth-child(3){
  top: -15px;
  transform: rotate(-45deg);
}

/*ハンバーガレスポンシブ*/
@media screen and (max-width: 768px){
.ham{
      display: block;
  }
}


/*Newメイン画像スライドショー240804より*/
.top_new {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
}

.top_image {
  background-position: center 60%;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: slider-1 24s linear infinite;
}

/*函館本線表紙*/
#hakodate .top_image:nth-child(1) {
  background-image: url("../img/hakodate-01.jpg");
  animation-delay: -2s;
}

#hakodate .top_image:nth-child(2) {
  background-image: url("../img/hakodate-02.JPG");
  animation-delay: 6s;
}

#hakodate .top_image:nth-child(3) {
  background-image: url("../img/hakodate-03.jpg");
  animation-delay: 14s;
}

/*宗谷本線表紙*/
#soya .top_image:nth-child(1) {
  background-image: url("../img/soya-01.jpg");
  animation-delay: -2s;
}

#soya .top_image:nth-child(2) {
  background-image: url("../img/soya-02.jpg");
  animation-delay: 6s;
}

#soya .top_image:nth-child(3) {
  background-image: url("../img/soya-03.jpg");
  animation-delay: 14s;
}

/*日高本線表紙*/
#hidaka .top_image:nth-child(1) {
  background-image: url("../img/hidaka-01.jpg");
  animation-delay: -2s;
}

#hidaka .top_image:nth-child(2) {
  background-image: url("../img/hidaka-02.jpg");
  animation-delay: 6s;
}

#hidaka .top_image:nth-child(3) {
  background-image: url("../img/hidaka-03.jpg");
  animation-delay: 14s;
}

/*留萌本線表紙*/
#rumoi .top_image:nth-child(1) {
  background-image: url("../img/rumoi-01.jpg");
  animation-delay: -2s;
}

#rumoi .top_image:nth-child(2) {
  background-image: url("../img/rumoi-02.jpg");
  animation-delay: 6s;
}

#rumoi .top_image:nth-child(3) {
  background-image: url("../img/rumoi-03.jpg");
  animation-delay: 14s;
}

/*室蘭本線表紙*/
#muroran .top_image:nth-child(1) {
  background-image: url("../img/muroran-01.jpg");
  animation-delay: -2s;
}

#muroran .top_image:nth-child(2) {
  background-image: url("../img/muroran-02.jpg");
  animation-delay: 6s;
}

#muroran .top_image:nth-child(3) {
  background-image: url("../img/muroran-03.jpg");
  animation-delay: 14s;
}

/*札沼線表紙*/
#sassho .top_image:nth-child(1) {
  background-image: url("../img/sassho-01.jpg");
  animation-delay: -2s;
}

#sassho .top_image:nth-child(2) {
  background-image: url("../img/sassho-02.jpg");
  animation-delay: 6s;
}

#sassho .top_image:nth-child(3) {
  background-image: url("../img/sassho-03.jpg");
  animation-delay: 14s;
}

@keyframes slider-1 {
  /* 非表示状態からフェードインを開始する */
  0% {
    opacity: 0;
    transform: scale(1); /* ズームのための指定 */
  }
  /* フェードインを完了し完全表示する */
  4.16% {
    opacity: 1;
  }
  /* ここまで完全表示を維持したらフェードアウトを開始する */
  33.33% {
    opacity: 1;
  }
  /* フェードアウトを完了し非表示にする */
  41.66% {
    opacity: 0;
    transform: scale(1.2); /* ズームのための指定 */
  }
  100% {
    opacity: 0;
  }
}

.main_title_new  {
  position: absolute;
  top: 7.5%;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  color: #fff;
  display:  inline-block;
  font-size: 1.25rem;
}


.main_title_new h1 {
  border-bottom: solid #fff 1px;
}

.main_title_new p {
  margin-left: 5%;
}


/*静止画メイン背景画像240804まで*/
.top {
  background-image: url("../img/230514-ikutoraeki (1).jpg"); /* 幾寅駅固定 */
  background-size: cover;
  background-position: center 80%;
  min-height: 41vh;
}

.main-title  {
  color: #000;
  display:  inline-block;
  padding-left: 20px;
}

.main-title h1 {
  border-bottom: solid #000 1px;
  margin-top: 1.5em;
}

/*topロゴ*/
.top_logo {
  position: fixed;
  top: 5px;
  left: 5px;
  z-index: 6;
  display: none;
}

.top_logo a {
  display: block;
}


/*ヘッダーレスポンシブ（ノートPC小）*/
@media screen and (max-width:1400px){
  nav ul li a{
    font-size: 0.7rem;
    padding: 10px;
  }
}

/*ヘッダーレスポンシブ（タブレット）*/
@media screen and (max-width:1280px){
.main-title {
    text-align: center;
    font-size: 11px;
  }

nav ul li a{
    font-size: 0.60rem;
    padding: 10px 2.5px;
  }

.main_title p {
  font-size: 11px;
}

#header {
  width: 100%;
  padding: 1px;
  }


.main_title_new h1 {
  font-size: 11px;
  border-bottom: solid #fff 1px;
}

.main_title_new p {
  margin-left: 0;
  font-size: 11px;
}
}


/*ヘッダーレスポンシブ（モバイル）*/
@media screen and (max-width:768px){
  #header {
  display: none;
}

  .top_new {
    text-align:  center;    /* 文字中央寄せ */
    max-height: 300px;
  }
  
  .main_title_new {
    font-size: 0.75rem;
  }

}


/*本文*/
.main-contents {
  display: flex;
  margin: 2em auto;
}

/*パンくずリスト*/
.bread ul {
  margin:  0 0.625em;
  padding: 0.625em;
  font-size: 0.95em;
  list-style: none;
  overflow: hidden;
  display: flex;
  list-style: none;
}

.bread.mokuji ul {
  margin:  0;
  padding: 0.625em 0;
  font-size: 0.95em;
  list-style: none;
  overflow: hidden;
  display: flex;
  list-style: none;
}

.bread li a {
  padding: 5px;
  text-decoration: none;
}

.bread li a:hover {
  color: #0bd;
}

.bread li:after {
  content: '\003e'; /* 「>」を要素間の区切り文字として表示 */
  margin-left: 10px; /* 区切り文字と要素の間隔を調整 */
  margin-right: 10px; /* 区切り文字と要素の間隔を調整 */
  color: #888888; /* 区切り文字の文字色 */
 }

.bread li:last-child:after {
  content: '';
}

.bread img {
  width: 13px;
}

/*パンくずレスポンシブ対応*/
@media (max-width: 768px) {
.bread ul {
  margin:  0;
}
}



/*article*/
article {
  width: 80%; /*横並び2列の設定*/
}

/*各線目次テーブル用*/
.container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-right: 50px;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,td {
  border: solid 1px;
  padding: 5px;
  font-size: 0.85em;
}

th {
  background-color: darkgrey;
}

td a:hover {
  color:#0bd;
}

.c-01 {
  width: 40%; /*駅名の幅*/
}

.c-02 {
  width: 18%; /*存廃の幅*/
}

.c-03 {
  width: 42%; /*備考欄の幅*/
}

.haishi {
  color: red; /*廃止の赤文字*/
}

/*各線目次テーブルレスポンシブ*/
@media (max-width: 1280px) {
  .container {
    margin-right: 0;
  }
}


@media (max-width: 768px) {
  .container {
    display: flex;
    flex-direction: column;
    margin-right: 0;
    margin-bottom: 3.125em;
  }

  table {
    width: 91%;
    margin: 0 20px;
  }
}


/*大きな駅写真*/
.top-photo {
  text-align: center;
  margin-bottom: 3.125em;
  margin-right: 2.5em;
  margin-left: 2.5em;
  }

.top-photo img {
  width: 100%;
}

.setsumei {
  text-align: left;
  margin: 1em 10% 0 10%;
  display: block;
  text-indent: 1em;
}

.setsumei_head {
  text-indent: 0;
  margin-top: 1em;
}

.setsumei_rekishi {
  text-indent: 0;
  margin-left: 1em;
}

.shutten {
  text-align: right;
  margin: 0 15% 1em 10%;
  display: block; 
}

.outline {
  text-align: center;
  margin: 1.25em 0;
}

/*大きな駅写真ダウンロードロゴ*/
.dli-box-in {
  display: inline-block;
  vertical-align: middle;
  color: #333;
  line-height: 1;
  position: relative;
  width: 1.15em;
  height: 1.15em;
}

.dli-box-in::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0.46em;
  border: 0.1em solid currentColor;
  border-top: 0;
  border-radius: 0 0 0.15em 0.15em;
  box-sizing: border-box;
}

.dli-box-in > span {
  position: relative;
  width: 0.1em;
  height: 0.625em;
  background: currentColor;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.353em;
  margin: auto;
}

.dli-box-in > span::before {
  content: '';
  width: 0.40625em;
  height: 0.40625em;
  border: 0.1em solid currentColor;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
  transform-origin: bottom left;
  position: absolute;
  left: 50%;
  bottom: -0.05em;
  box-sizing: border-box;
}


/*駅写真左右互い違い*/
.archive {
  display: flex;
  align-items: center;
  padding: 1.25em;
  border-top: 1px solid #e7e7e7;
}

.archive-reverse {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  padding: 1.25em;
  border-top: 1px solid #e7e7e7;
}

.archive-photo {
  position: relative;
  transition: .3s;
  width: 50%;
  margin: 0 1.25em;
  flex-shrink: 0;
}

.archive-photo img {
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.archive-photo.tate img {
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
  width: calc(200%/3);
  margin: 0 auto
}

.archive-body {
  flex-grow: 1;
  width: calc(50%-1.25em);
}

.archive-title {
   font-weight: bold;
   padding-left: 1em;
   padding-right: 1.25em;
}

.archive-text {
  margin-top: 1em;
  padding-left: 2em;
  padding-right: 1.25em;
}


/*駅写真サムネイル*/
.other {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.25em;
  padding: 2.5em;
  border-top: 1px solid #e7e7e7;
}

.other-photo img {
  display: block;
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
}

.other-photo {
  text-align: center;
}

.other-photo.tate img {
  display: block;
  aspect-ratio: 2/3;
  object-fit: cover;
  width: calc(200%/3);
  margin: 0 auto;
}


@media screen and (max-width:1280px){
  /*もろもろの写真レスポンシブ（タブレット）*/
.setsumei {
  margin: 1em 2% 0 2%;
}

}


@media (max-width: 768px) {
  /*もろもろの写真レスポンシブ*/
  .archive,.archive-reverse {
    display: flex;
    flex-direction: column;
    text-align: center;
    border-top: 1px solid #e7e7e7;
    padding: 0;
  }
  
  .top-photo {
    margin-left: 0;
    margin-right: 0;
  }
  
  .archive-photo {
    width: 100%;
  }
  
  .archive-title  {
    display:  none;
  }
  
  .archive-text {
    margin-top: 0;
    margin-bottom: 1em;
  }
  
  .other {
    grid-template-columns: 1fr;
    text-align: center;
    border-top: 1px solid #e7e7e7;
    padding: 0; 
  }
  
  .other-photo {
    width: 100%;
  }
  }


/*googleマップ*/
.map {
  position: relative;
  max-width: 600px;
  margin: auto;
  aspect-ratio: 16/9;
  text-align: center;
}

.map iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.map_p {
  text-align: center;
}


/*googleマップレスポンシブ*/
@media (max-width: 768px) {
  .map {
    margin-top: 3.125em;
    margin-bottom: 3.125em;
  }

  .map_p {
    display: none;
  }
}


/*次駅案内*/
.next {
  text-align: center;
  margin-top: 1em;
}

.small {
  font-size: 0.75rem;
}

/*次駅案内レスポンシブ*/
@media (max-width: 768px) {
  .next {
    margin-bottom: 3.125em;
  }
}


/*aside*/
aside {
  width: 20%; /*横並び2列の設定*/
}

.aside-top {
  border-bottom: 3px solid #6fa9ff;
  padding-bottom: 10px;
  padding-top: 0.75em;
}

ul {
  list-style: none;
}

.line-menu li {
  border-bottom: 1px #ddd solid;
}

.line-menu a {
  color: #432;
  padding: 0.625em;
  display: block;
}

.line-menu a:hover {
  color: #0bd;
}

/*サイト内検索*/
.kensaku {
  padding-top: 2em;
}

.gsc-control-cse.gsc-control-cse-ja {
  padding-top: 30px;
}

.kensaku th,.kensaku td {
 border: none;
 padding: 5px 9px 4px 9px;
}

/*広告*/
.ad a {
  display: block;
}

/*topへ戻る動くボタン*/
#pagetop {
  width: 35px;
  height: 35px;
  position: fixed;
  right: 0;
  bottom: 0;
  background: #3fefee;
  opacity: 0.6;
  border-radius: 5px;
}
#pagetop a {
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#pagetop a::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f062';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: 5px;
  left: 7px;
}

i.fas.fa-arrow-up::before {
  display: none;
}

td#gs_tti50.gsid_a {
  width:100%;
}

/*広告用*/
.ad a {
  display: block;
}


/*80%20%レスポンシブ対応*/
@media (max-width: 1280px) {
  article {
    width: 100%;
  }
   
  aside {
    display: none;
  }
}  


 /*footer*/
 .footer-menu {
  color: #808080;
  background: #e5e5e5;
  padding: 0.3125em;
  text-align: center;
 }

.footer-menu a {
  color: #808080;
  text-decoration: none;
 }

.footer-menu a:hover {
  color: #0bd;
 }

.footer-menu .footer-text {
  margin: 0;
  padding: 0;
  font-size: 0.75em;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
 }

.footer-menu .footer-text li {
  margin: 0;
  padding: 0 1em;
  border-left: 1px #808080 solid;
 }
 
.footer-menu .footer-text li:first-child {
  border: none;
 }

.footer-copy {
  background-color: #000;
  padding: 0.3125em;
 }

.footer-copy p {
  color: #fff;
  font-size: 0.875em;
  text-align: center;
 }

@media (max-width: 768px) {
/*footerレスポンシブ*/ 
.footer-menu {
  display: none;
}
}

/*お問い合わせフォーム*/
form {
  width: 650px;
  margin: 2em auto;
}


h1 {
  text-align: center;
}

input {
  height: 45px;
  width: 100%;
  margin: 0 0 20px;
  background-color: #fff;
  border: solid 1px #888;
  padding: 10px;
  border-radius: 6px;
}

textarea {
  height: 350px;
  width: 100%;
  margin: 0 0 20px;
  background-color: #fff;
  border: solid 1px #888;
  padding: 10px;
  border-radius: 6px;
  resize: none;
}

input[type=submit] {
  background-color: blue;
  color: #fff;
}

input[type=submit]:hover {
  background-color: #fff;
  color: blue;
}

/*メールフォームレスポンシブ*/
@media screen and (max-width: 768px){
  form {
    width: 97%;
    margin: 0 10px;
  }
  
  }