@charset "utf-8";

/* ===============================
サブサイトテンプレート　スタイル
================================= */
#main_header_wrap {
  position: relative;
}

#container #main_header {
  position: relative;
  background-color: rgba(255, 255, 255, 0.85);
  margin: 0;
  padding: 2.8rem 0;
  z-index: 2;
}

#container #main_header.tpl1_title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 3;
}

.swiper {
  position: relative;
  z-index: 1;
}

#container #main_header h1 {
  color: #333;
  font-size: 3.4rem;
  line-height: 44px;
}

#container #main_header::before {
  display: none;
}


@media all and (max-width:1080px) {
  #container #main_header {
    margin-top: 0;
    padding: 2.4rem 0;
  }

  #container #main_header h1 {
    font-size: 3rem;
    line-height: 4rem;
  }
}

@media all and (max-width:768px) {
  #container #main_header {
    padding: 17px 20px;
  }

  #container #main_header h1 {
    color: #333;
    margin: 0px;
    font-size: 2.4rem;
    width: 100%;
    line-height: 36px;
    padding: 0;
  }
}

/* ===============================
パンくず
================================= */
@media all and (max-width:1080px) {
  .tpl_site #container #mymainback_bg>#pankuzu_wrap {
    background: #fff;
    margin: 7.2rem 0 0;
    padding: 1rem 0.8rem;
    flex-wrap: nowrap;
  }

  .tpl_site #container #mymainback_bg>#pankuzu_wrap .pankuzu {
    margin: 0;
    padding-right: 0.4rem;
  }
}

/* ===============================
スライドショー
================================= */
.swiper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  height: auto;
}

.mySwiper {
  overflow: hidden;
}

.mySwiper .swiper-wrapper {
  display: flex;
}

.mySwiper .free_box {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  position: relative;
  box-sizing: border-box;
  gap: 0;
}

.mySwiper .free_box p {
  width: 100%;
}

.mySwiper .free_box img {
  width: 100% !important;
  max-width: none;
  height: 100%;
  object-fit: cover;
  min-height: 450px;
  background-position: center;
}

/* ページネーション */
.swiper-controls-wrapper {
  display: flex;
  width: fit-content;
  position: absolute;
  right: 1em;
  bottom: 1em;
  gap: 1.5rem;
}

.swiper-pagination {
  display: flex;
  gap: 1.5rem;
}

.swiper-pagination {
  align-items: center;
}

.swiper-pagination-bullet {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 0;
  box-shadow: 0px 0px 6px #fff;
  display: block;
  cursor: pointer;
}

.swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  position: relative;
  box-sizing: border-box;
}

.swiper-pagination-bullet::before {
  content: '';
  width: 24px;
  height: 24px;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.swiper-pagination-bullet-active {
  background: #333;
}

.slide_control_toggle {
  border: none;
  width: 24px;
  height: 24px;
  box-shadow: 0px 0px 6px #fff;
  background: #333;
  background-image: url(/img/top/photo/btn_slide_stop.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
}

.slide_control_toggle.stopped {
  background-image: url(/img/top/photo/btn_slide_play.png);
  background-size: 10px 10px;
}

@media all and (max-width:1080px) {
  .swiper {
    margin-top: 0;
  }

  body .swiper-controls-wrapper {
    flex-direction: row;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
  }

  .swiper-pagination-bullet {
    position: relative;
    width: 18px;
    height: 18px;
  }

  .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 24px;
    height: 24px;
    z-index: -1;
  }
}

@media all and (max-width:768px) {
  .swiper .free_box img {
    object-fit: cover;
    object-position: center center;
  }
}

/* ===============================
ナビメニュー
================================= */
#subsite_tp_wrap .free_box2 {
  border: none;
  border-bottom: 3px solid #B92000;
  margin-bottom: 5rem;
  background-color: #fff;
  display: flex;
  gap: 3rem 6rem;
  padding: 2rem max(2rem, calc((100% - 1200px) / 2));
  justify-content: center;
}

#subsite_tp_wrap .free_box2 p {
  display: flex;
}

#subsite_tp_wrap .free_box2 p a {
  color: #333;
  font-weight: bold;
  font-size: 2rem;
  text-decoration: none;
  transition: .3s all;
  width: 100%;
  display: block;
  position: relative;
}

#subsite_tp_wrap .free_box2 p a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 3px;
  background-color: #B92000;
  transform: scaleX(0);
  transform-origin: left;
}

#subsite_tp_wrap .free_box2 p a:hover {
  color: #B92000;
}

#subsite_tp_wrap .free_box2 p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#subsite_tp_wrap .free_box2 p a::after {
  transition: transform .3s ease;
  transform-origin: right;
}

.free_box2_btn {
  display: none;
}

@media all and (max-width:1080px) {
  body:not(:has(.free_box2)) .free_box2_btn {
    display: none;
  }

  /* ボタン */
  .free_box2_btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #333;
    cursor: pointer;
    z-index: 100;
    display: block;
    padding: 2px 8px;
  }

  .free_box2_btn span {
    display: block;
    width: 24px;
    height: 4px;
    background-color: #fff;
    margin: 5px 0;
    transition: 0.4s;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }

  /* メニュー */
  .free_box2 {
    display: none;
  }

  .free_box2.open {
    display: block;
  }

  /* × に変形 */
  .free_box2_btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .free_box2_btn.open span:nth-child(2) {
    opacity: 0;
  }

  .free_box2_btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }


  #subsite_tp_wrap .free_box2 {
    position: fixed;
    top: 72px;
    right: 0;
    width: 100%;
    height: auto;
    background: #FCF6F5;
    transform: translateX(100%);
    z-index: 90;
    display: block;
    padding-top: 6rem;
    margin: 0;
  }

  #subsite_tp_wrap .free_box2.open {
    transform: translateX(0);
  }

  #subsite_tp_wrap .free_box2 p a {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    font-size: 1.8rem;
    text-align: center;
    border-bottom: 1px solid #B92000;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  #subsite_tp_wrap .free_box2 p a::after {
    display: none;
  }
}

/* ===============================
自由記入エリア
================================= */
#subsite_tp_wrap #main_body .detail_free h3 {
  position: relative;
  background-color: #F6F6E2;
  max-width: 100%;
  text-align: left;
  padding: 1.2rem 1.5rem 1.2rem 3rem;
  margin: 3rem 0 2rem;
  color: #333;
}

#subsite_tp_wrap #main_body .detail_free h3::before {
  position: absolute;
  display: block;
  content: "";
  width: 10px;
  height: 8px;
  background-color: #B92000;
  top: calc(50% - 16px);
  left: 10px;
}

#subsite_tp_wrap #main_body .detail_free h3::after {
  position: absolute;
  display: block;
  content: "";
  width: 10px;
  height: 22px;
  background-color: #333333;
  top: calc(50% - 8px);
  left: 10px;
}

#mymainback #main_body .detail_free_wrap {
  padding: 0 !important;
}

#main #main_body .detail_free {
  border: none !important;
}

#main_body .detail_free ul>li::before,
body:has(#content_header) #main_body #detail_box .detail_free ul li::before {
  position: absolute;
  content: "";
  background-color: #B92000;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 14px !important;
  transform: translateY(-50%);
  left: -18px;
}

/* ===============================
関連リンク
================================= */
#site_footer #site_footer_box {
  justify-content: flex-start;
  padding: 2rem 6.5rem;
}

#site_footer #site_footer_box p {
  max-width: fit-content;
  max-height: fit-content;
  display: block;
  height: 100%;
  font-size: 0;
}

#site_footer #site_footer_box p::before {
  display: none;
}

#site_footer #site_footer_box p:hover img {
  transform: none;
}

@media all and (max-width:768px) {
  #site_footer #site_footer_box {
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
  }
}

/* ===============================
大メニュー・小メニュー専用ヘッダ
================================= */
#mymainback_bg #mainimg.list_mainimg {
  margin-top: 0;
}

/* 大メニュー、小メニュー画像がない時 */
@media all and (max-width:1080px) {
  #mainimg #mainimg_box:not(:has(img)) {
    height: 150px;
  }
}

@media all and (max-width:768px) {
  #mainimg #mainimg_box:not(:has(img)) {
    height: 100px;
  }
}

/* ===============================
最終ページ_専用ヘッダ
================================= */
#mymainback_bg #mainimg {
  position: relative;
  margin: 0;
  max-width: 100%;
  width: 100%;
}

#mymainback_bg #mainimg:has(.site_name + img)::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  height: 100%;
  width: 100%;
  z-index: 1;
}

#mainimg #mainimg_box .site_name {
  position: absolute !important;
  max-width: 1240px;
  background: none;
  padding: 0 2rem;
  margin: 0 auto;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  font-size: 5rem;
  color: #333;
}



.detail_free img {
  /*max-width: 800px;*/
  max-width: 100%;
  height: auto !important;
}

@media all and (max-width:1080px) {
  #mainimg #mainimg_box .site_name {
    font-size: 2rem;
  }

  #mainimg #mainimg_box .site_name {
    background: transparent;
    color: #333;
    transform: none;
    padding: 5px 20px;
    z-index: 2;
	transform: translate(0, -50%);
	width: max-content;
	left: 0;
	right: auto;
	text-shadow: 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff, 0px 0px 3px #ffffff;
  }
  #mainimg #mainimg_box .site_name::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-color: #fff;
  }

  #mainimg #mainimg_box a:not(:has(img)) .site_name {
    position: absolute !important;
    max-width: 1240px;
    background: none;
    padding: 0 2rem;
    margin: 0 auto;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    font-size: 5rem;
    color: #333;
    font-size: 2rem;
  }
}

@media all and (max-width:768px) {

  #mainimg #mainimg_box .site_name,
  #mainimg #mainimg_box a:not(:has(img)) .site_name {
    font-size: 1.8rem;
  }
}

/* ===============================
サイドバー
================================= */
.mymainback_detail {
  display: flex;
  align-items: flex-start;
  max-width: 1200px;
  gap: 0 5rem;
  margin: 9rem auto 0;
  width: 100%;
}

#subsite_menu_wrap .subsite_menu {
  display: block;
  margin-bottom: 0;
  cursor: pointer;
  align-self: flex-start !important;
  width: 100%;
}

#mymainback #sidebar1 {
  max-width: 240px;
  min-width: 240px;
  width: 100%;
}

.subsite_menu .subsite_menu_list>.link_ichiran {
  display: block;
  padding: 0;
  border-top: 1px solid #ccc;
}

/* 閉じたときに一覧を見るが消えるように */
.subsite_menu.is-closed .subsite_menu_list>.link_ichiran {
  display: none;
}

.subsite_menu .subsite_menu_list>.link_ichiran a {
  background: #fff;
  font-weight: bold;
  text-align: left;
}

/* テンプレート1と4 共用 */
#subsite_menu_wrap .subsite_menu .subsite_menu_ttl {
  text-align: left;
  position: relative;
  background: #1A3967;
  padding: 2.2rem 4rem 2.2rem 1.8rem;
  pointer-events: all;
  overflow: hidden;
}

#subsite_menu_wrap .subsite_menu.is-closed .subsite_menu_ttl::before {
  display: block;
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background-image: repeating-linear-gradient(to right,
      #bbb 0,
      #bbb 1px,
      transparent 1px,
      transparent 5px);
}

#subsite_menu_wrap .subsite_menu.is-closed:last-child .subsite_menu_ttl::before {
  content: none;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_ttl::before {
  display: none;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_ttl span {
  color: #fff;
}

/* ボタン */
.subsite_menu_ttl .sidemenu-btn {
  position: absolute;
  top: 50%;
  right: 24px;
  background: url(/img/common/sidemenu-icon.png) no-repeat;
  width: 15px;
  height: 15px;
  border: none;
  z-index: 10;
  transform: translateY(-50%) rotate(360deg);
  transition: transform 0.3s ease;
}

.subsite_menu .subsite_menu_list {
  height: auto;
  overflow: hidden;
  border-left: 2px solid #1A3967;
  border-right: 2px solid #1A3967;
  display: block;
}

.subsite_menu.is-closed .subsite_menu_list {
  display: none;
}

/* 開いてるとき（回転なし） */
.subsite_menu.is-closed .sidemenu-btn {
  transform: translateY(-50%) rotate(270deg);
}

#subsite_menu_wrap .subsite_menu a:hover {
  text-decoration: underline;
}

.subsite_menu:last-child .subsite_menu_list {
  border-bottom: 2px solid #1A3967;
}

.subsite_menu .subsite_menu_list ul {
  background: #fff;
  padding: 0;
  min-height: 0;
}

.subsite_menu .subsite_menu_list ul li {
  position: relative;
  list-style: none;
  padding: 1.8rem;
  margin-bottom: 0;
  border-bottom: none;
}

.subsite_menu .subsite_menu_list ul li:not(:last-of-type)::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: #bbb;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span {
  display: block;
  height: 100%;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span a, #subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span strong {
  text-decoration: underline;
  color: #333;
  width: 100%;
  height: 100%;
  display: flex;
  font-size: 1.6rem;
  align-items: center;
  gap: 1rem;
  font-weight: bold;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span a:hover, #subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span strong:hover {
  text-decoration: none;
}

#subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span a::before, #subsite_menu_wrap .subsite_menu .subsite_menu_list ul li span strong::before {
  display: inline-block;
  content: "";
  width: 3px;
  height: 14px;
  background: #B92000;
  flex-shrink: 0;
}

@media all and (max-width:1080px) {
  #mymainback #sidebar1 {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 4rem;
  }

  #mymainback #main_body {
    margin: 0 auto 4rem;
  }

  #mymainback #main_body.top_tpl_body {
    margin-top: 4rem;
  }
}

/* ===============================
最終ページメイン
================================= */
#main.detail_main {
  margin-top: -48px;
}

.detail_main .content_header_wrap {
  padding: 0;
}

/* タイトル */
#main.detail_main #main_header.detail_title1 {
  position: relative;
  width: 100%;
  background: #1A3967;
  padding: 4.3rem 0;
  margin: 0;
}

#main.detail_main #main_header.detail_title1::before {
  position: absolute;
  content: "";
  display: block;
  width: 100%;
  height: 41px;
  background: url(/img/common/h1-icon.png) repeat-x;
  bottom: 0;
  left: 0;
  top: auto;
}

#main.detail_main #main_header.detail_title1 h1 {
  color: #fff;
  background: none;
  padding: 0;
  padding: 0 2rem;
  font-size: 3rem;
}

.detail_main #main_body {
  margin: 0 auto 10rem;
  width: 100%;
}

@media all and (max-width:1080px) {
  .mymainback_detail {
    display: block;
    padding: 0 1.5rem;
    margin-top: 0;
  }

  .sp_table_wrap2 {
    overflow-x: auto !important;
    width: 100% !important;
  }

  #main_body .sp_table_wrap {
    overflow-x: auto !important;
    display: block !important;
  }

  #main_body .sp_table_wrap table {
    border-collapse: collapse;
  }
}

@media all and (max-width:768px) {
  #main.detail_main #main_header.detail_title1 h1 {
    font-size: 2.4rem;
  }

  .detail_main #main_body.tpl1_detail_body #main_header {
    margin-bottom: 2rem;
  }
}

@media all and (max-width:1080px) {
  .link_to_subsitemenu {
    position: relative;
  }

  #subsite_menu_wrap {
    scroll-margin-top: 72px;
  }
}

#main_body .detail_free ul>li::before,
body:has(#content_header) #main_body #detail_box .detail_free ul li::before {
  position: absolute;
  content: "";
  background-color: #B92000;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  top: 14px !important;
  transform: translateY(-50%);
  left: -18px;
}

/* 条件に関係なく常に適用されるので、条件自体を消す */
#subsite_tp_wrap #main_list-tpl #main_a #main_body {
  margin-top: 4rem;
}

/* ③ JSで付与した「no-free_box2」クラスがある時だけ適用 */
#subsite_tp_wrap.no-free_box2 #mymainback #main_body.top_tpl_body {
  margin-top: 4rem;
}

@media all and (max-width:1080px) {
  #subsite_tp_wrap #main_list-tpl #main_a #main_body {
    margin-top: 2rem;
  }

  #subsite_tp_wrap.no-free_box2 #mymainback #main_body.top_tpl_body {
    margin-top: 2rem;
  }
}

/* 新着情報の一覧ボタン */
@media all and (max-width:768px) {
  .section_information_list div.link_box {
    margin-top: 2rem;
  }
}