@charset "utf-8";
/* megamenu.css */

.wrapper {
  　position: relative;
	overflow-x: hidden;
	overflow-x: clip;
}

@media (min-width: 768px) {
  .wrapper {
    min-width: 1200px;
  }
}

/* ==============================
  Header（ヘッダーまわり）
  - 位置・高さはブレークポイントで切替
  - PC: 120px / SP: 80px
============================== */
.header {
	position: relative; /* 子要素の絶対配置の基準にする */
	z-index: 200;
	width: 100%;
	left: 0px;
	top: 0px;
	right: 0px;
	background-color: #000000;
}

@media (min-width: 768px) {
  .header {
	height: 110px; /* PC高さ */
	position: fixed;
  }
}

@media (max-width: 767px) {
  .header {
	height: 60px; /* SP高さ */
	border-bottom: 1px solid #888888;
	position: fixed;
  }
}

/* ハンバーガー：SPのみ表示。アイコンはspanで描画しopen時に変形 */
.header-hamburger {
  position: absolute;
  right: 8.5px;
  top: 50%;
  width: 45px;
  height: 45px;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .header-hamburger {
    display: none;
  }
}

.header-hamburger button {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  -webkit-appearance: none;
          appearance: none;
  cursor: pointer;
}

/* 3本ライン */
.header-hamburger button > span {
	display: block;
	position: absolute;
	left: 11.5px;
	top: 22px;
	width: 22px;
	height: 1px;
	background-color: #ffffff;
}

/* 上・中・下のバーに変形トランジションを付与 */
.header-hamburger button > span:nth-child(1) {
  transform: translateY(-6px);
  transition: transform 350ms cubic-bezier(.215, .61, .355, 1);
}

.header-hamburger button > span:nth-child(2) {
  transition: opacity 350ms cubic-bezier(.215, .61, .355, 1);
}

.header-hamburger button > span:nth-child(3) {
  transform: translateY(6px);
  transition: transform 350ms cubic-bezier(.215, .61, .355, 1);
}

/* 開いた状態（×アイコン化） */
.header-hamburger button.is-open > span:nth-child(1) {
  transform: rotate(45deg) translateY(0px);
}

.header-hamburger button.is-open > span:nth-child(2) {
  opacity: 0;
}

.header-hamburger button.is-open > span:nth-child(3) {
  transform: rotate(-45deg) translateY(0px);
}

/* グローバルナビ：PCのみ表示。縦中央に配置 */
.header-nav {
	position: absolute;
	top: 60px;
	transform: translateY(-50%);
	left: 0px;
	right: 0px;
	width: 100%;
}

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }
}

.header-nav ul {
	display: flex;
	width: 100%;
	top: 0px;
	position: absolute;
	border-top: 1px solid #888888;
	border-bottom: 1px solid #888888;
	padding-left: 50px;
	padding-right: 50px;
	background-color: #000000;
}

/* ナビ項目：下線アニメ（:before）でアクティブを演出 */
.header-nav ul li button {
    display: block;
    position: relative;
    width: 100%;
    height: 50px;
    margin: 0;
    box-sizing: border-box;
    border: none;
    background-image: none;
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.4em;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    /*transition: color 300ms;*/
    background-color: #000000;
    font-size: 14px;
}

.header-nav ul li button::before {
	content: '';
	display: block;
	position: absolute;
	left: 0px;
	bottom: 0px;
	width: 100%;
	height: 5px;
	background: #1e4e9e;
	transform: scaleX(0);
	transition: transform 350ms cubic-bezier(.215, .61, .355, 1);
}

.header-nav ul li button:hover::before,
.header-nav ul li button:active::before,
.header-nav ul li button.is-active::before {
  transform: scaleX(1);
}

/* ==============================
  Mega Menu（メガメニュー）
  - .mega.is-open でオーバーレイ／本体を表示
  - PC: ヘッダー直下に重ねる
  - SP: パディングを広めに
============================== */

/* 背景オーバーレイ（ぼかし＋半透明）。
   非表示時は visibility/opacity/pointer-events で無効化 */
.mega-overlay {
	position: fixed;
	left: 0;
	top: 110px;
	z-index: 100;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.50);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: visibility 0ms 400ms, opacity 400ms linear;
}
@media (max-width: 767px) {
.mega-overlay {
    top: 60px;
  }
}

/* メガメニュー本体コンテナ。高さアニメはJSで付与 */
.mega-container {
	left: 0;
	z-index: 100;
	width: 100%;
	box-sizing: border-box;
	background: #222;
	overflow: hidden;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: visibility 0ms 400ms, opacity 400ms linear;
	padding-top: 20px;
}

/* PCはヘッダー高に合わせる */
@media (min-width: 768px) {
  .mega-container {
	position: fixed;
    top: 110px;
  }
}

@media (max-width: 767px) {
  .mega-container {
	position: fixed;
	overflow-y: scroll;
	height: 100%;
	top: 60px;
	padding-top: 0;
	-webkit-overflow-scrolling: touch;
	/* [disabled]padding-right: 20px; */
	/* [disabled]padding-left: 20px; */
	padding-bottom: 40px;
	margin-bottom: 40px;
	  background-color: transparent;
  }
}

/* セクション（各パネル）
   PCでは重ねて配置し、表示中だけ is-open で見せる */
@media (min-width: 768px) {
  .mega-section {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0ms 400ms, opacity 400ms linear;
  }
}

/* SPではアコーディオンの見切れ線 */
@media (max-width: 767px) {
  .mega-section {
	border-bottom: 1px solid #888888;
	background-color: #222222;
  }
}

/* 見出し（SPのみ表示、アコーディオンのトリガー） */
.mega-header {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .mega-header {
    display: none;
  }
}

.mega-header button {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	height: 65px;
	margin: 0;
	padding: 0 20px;
	border: none;
	background: none;
	color: #FFFFFF;
	font: inherit;
	text-align: left;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

/* 見出し右の＋（span疑似要素で線を描画） */
.mega-header button > span {
  display: block;
  position: absolute;
  right: 20px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
}

.mega-header button > span::before,
.mega-header button > span::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 7px;
  width: 15px;
  height: 1px;
  background: #ffffff;
}

.mega-header button > span::after {
  transform: rotate(90deg);
  transition: transform 350ms cubic-bezier(.215, .61, .355, 1);
}

/* 本文領域（PCは常に表示、SPは閉じておく） */
.mega-body {
  position: relative;
}

@media (min-width: 768px) {
  .mega-body {
    display: block !important;
  }
}

@media (max-width: 767px) {
  .mega-body {
    display: none;
    overflow: hidden;
  }
}

/* 内側余白：PCは左右パディング広め、SPは下マージンのみ */
@media (min-width: 768px) {
  .mega-inner {
	padding-top: 20px;
	padding-right: 5%;
	padding-left: 5%;
	padding-bottom: 10px;
  }
}

@media (max-width: 767px) {
  .mega-inner {
	/* [disabled]padding-bottom: 25px; */
	background-color: #333333;
  }
}

@media (min-width: 768px) {
  .mega-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    /*gap: 30px;*/
  }
}

.mega-thumb {
	position: relative;
	aspect-ratio: 1.6;
	overflow: hidden;
}

@media (max-width: 767px) {
  .mega-thumb {
    display: none;
  }
}

.mega-thumb > img {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms cubic-bezier(.215, .61, .355, 1);
}

@media (min-width: 768px) {
  .mega-text {
	margin-top: 10px;
	font-size: clamp(14px, calc(14px + (18 - 14) * ((100vw - 1215px) / (1615 - 1215))), 18px);
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	color: #FFFFFF;
  }
}

@media (max-width: 767px) {
  .mega-text {
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (min-width: 768px) {
  .mega-text > span {
	display: inline-block;
	position: relative;
	/* [disabled]padding-right: 15px; */
	vertical-align: top;
	font-size: 13px;
	font-weight: 400;
	color: #C8C8C8;
  }
}

/*@media (min-width: 768px) {
  .mega-text > span::before {
    content: '';
    display: block;
    position: absolute;
    right: 0;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -3px;
    box-sizing: border-box;
    border-top: 2px solid #4466ce;
    border-right: 2px solid #4466ce;
    transform: rotate(45deg);
  }
}*/

@media (min-width: 768px) {
  .mega-list > li {
    width: calc(100% / 6);
  }
}

.mega-list > li > a {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: color 350ms cubic-bezier(.215, .61, .355, 1);
}

@media (max-width: 767px) {
  .mega-list > li > a {
	padding-top: 0;
	padding-right: 20px;
	padding-left: 28px;
	padding-bottom: 0;
	color: #FFFFFF;
	background-image: url(../images/common/arrow_01.png);
	background-repeat: no-repeat;
	background-position: 15px center;
	background-size: 6px auto;
  }
}

@media (min-width: 768px) {
  .mega-list > li > a:hover,
  .mega-list > li > a:active {
    color: #4666ce;
  }

  .mega-list > li > a:hover .mega-thumb > img,
  .mega-list > li > a:active .mega-thumb > img {
    transform: scale(1.1);
  }
}

@media (max-width: 767px) {
  /*.mega-list > li:nth-child(n+2) {
    margin-top: 15px;
  }*/
.mega-list > li a {
	display: block;
	padding-top: 15px;
	padding-bottom: 15px;
	color: #B9B9B9;
  }
}

/* SP: 先頭セクションの上線（見切れ調整） */
/*@media (max-width: 767px) {
  .mega-section:first-child {
    border-top: 1px solid #888888;
  }
}*/

/* 表示中のセクション。PCで前面に出し、フェードを有効化 */
.mega-section.is-open {
  position: relative;
  left: auto;
  top: auto;
  width: auto;
  visibility: visible;
  opacity: 1;
  transition: visibility 0ms, opacity 400ms linear;
}

/* アコーディオン展開時は＋を−に変形 */
.mega-section.is-expanded .mega-header button > span::after {
  transform: rotate(0deg);
}

/* メガメニュー表示状態：オーバーレイ／本体の表示をまとめてON */
.mega.is-open .mega-overlay,
.mega.is-open .mega-container {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: visibility 0ms, opacity 400ms linear;
}
