@charset "utf-8";

/* ==========================================
   1. 共通・スマホ基準スタイル (ベース)
   ========================================== */

header, .Breadcrumb{
  width:100%;
  position: relative;
  padding: 5px 10px;
}

header::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(51, 51, 51, 0.6) 15%, 
    rgba(51, 51, 51, 0.6) 85%, 
    rgba(255, 255, 255, 0) 100%
  );
}

h1 {
  line-height: 1;
}

h1 img {
  width: 175px;
  height: auto;
}

/* --- メニュー周り（スマホ標準：横スクロール） --- */
.menu_wrapper {
  position: relative;
  width: 100%;
  margin: 10px 0 5px 0;
}

.main_menu {
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.main_menu::-webkit-scrollbar {
  display: none;
}

/* スクロール検知用（番兵） */
.scroll_trigger {
  width: 1px;
  height: 1px;
  flex-shrink: 0;
  background: transparent;
}

.main_menu ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.main_menu li {
  display: inline-block;
  width: fit-content;
  padding: 5px 15px;
  border-left: 1px solid #ccc;
}

/* 番兵の隣、および先頭の枠線を消す */
.main_menu li:first-child,
.main_menu li:nth-child(2) {
  border-left: none;
}

.main_menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.main_menu a:hover {
  opacity: 0.7;
}

/* スクロール矢印インジケーター */
.arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  background-color: #fff;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.arrow_left  { left: 0; }
.arrow_right { right: 0; }
.arrow.is_show { opacity: 1; }

/* --- その他コンテンツ・フッター（スマホ標準） --- */
.top_container, .container {
 /* width: 100%; */
  margin: 0 15px;
}

.bottom_menu {
  display: none; /* スマホでは非表示 */
}

footer {
    width: 100%;
    position: relative;
    background-color: #ffffff;
    margin-bottom:80px;
}

footer::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
    to right, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(51, 51, 51, 0.6) 15%, 
    rgba(51, 51, 51, 0.6) 85%, 
    rgba(255, 255, 255, 0) 100%
    );
}

.copyright {
  width: 100%;
  margin: 0 auto;
  text-align: right;
  line-height: 1.5;
}

.container{
  text-align: left;
}
.info {
  width: calc(100% - 20px);
  margin: 10px auto;
  padding: 10px;
  color: #FF0606;
  border: 2px solid #FF0606;
  border-radius: 5px;
  box-sizing: border-box;
}

.notice{
  text-align:left;
  margin:0 10px;
}

.notics h2{
  font-size:1rem
}

.msg_box {
  width: 100%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 5px;
  box-sizing: border-box;
}

#to-top {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  transition-duration: 0.5s;
  visibility: visible;
}

#to-top img {
  cursor: pointer;
}


/* ==========================================
   2. PC専用スタイル (756px以上で上書き)
   ========================================== */
@media (min-width: 756px) {

  h1, .Breadcrumb, .top_container {
    margin: auto;
    width: 100%;
    padding: 5px 10px 10px;
    max-width: 1500px;
  }

  /* 矢印・番兵を非表示 */
  .arrow, .scroll_trigger {
    display: none !important;
  }

  /* メニューをスクロールなしの中央寄せに切替 */
  .menu_wrapper {
    margin: 0;
  }

  .main_menu {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow-x: visible;
  }

  .main_menu ul {
    width: auto;
    margin: 0 auto;
  }

  .main_menu li {
    padding: 0 15px;
    border-left: 1px solid #333;
  }

  .main_menu ul li:nth-child(2) {
    border-left: none;
  }

  .bottom_menu{
    display: block;
    margin-bottom:10px;
  }

  /* 情報ボックス・メッセージボックスをPCサイズへ修正 */
  .info {
    width: fit-content;
    padding: 5px 15px;
  }

  .notice{
    width:100%;
    max-width:900px;
    margin:30px auto;
  }

  .msg_box {
    width: 600px;
  }

  .container {
    width:calc(100% - 15px);
    max-width:1120px;
    margin: 0 auto;
  }

  .copyright {
  width: 100%;
  margin: 0 auto;
  text-align: center;
  line-height: 1.5;
  }

}