/* ========================================
   TOPページ　吹き出し用
======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.topbanner {
  position: relative;
  width: 100%;
}

.topbanner__image {
  display: block;
  width: 100%;
  height: auto;
}


/* ========================================
   PC用ナビ
   画像上の既存3ボタンに透明領域を重ねる
======================================== */

.banner-nav-pc {
	position: absolute;
	z-index: 99;
	top: initial;
  /*
	topbanner_02.jpg の右下3ボタン位置
	必要に応じて微調整してください
  */
  left: 55.95%;
  right: 2.35%;
  bottom: 4.25%;
  height: 7.5%;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45%;
}

.banner-nav-pc__item {
  position: relative;
  width: 100%;
  height: 100%;
}


/*
  画像上の既存ボタンを使うため、
  クリック・hover領域は透明
*/
.banner-nav-pc__trigger {
  display: block;

  width: 100%;
  height: 100%;

  background: transparent;

  text-decoration: none;
  cursor: pointer;
}


/* ========================================
   PC用吹き出し
======================================== */

.banner-nav-pc__balloon {
	position: absolute;
	left: 0;
	bottom: calc(100% + 16px);
	width: 400px;
	max-width: 38vw;
	padding: 20px 24px;
	background: #e1eeff;
	box-shadow:
	0 8px 24px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition:
	opacity 0.2s ease,
	visibility 0.2s ease,
	transform 0.2s ease;
	z-index: 50;
	border-radius: 10px;
}


/* 吹き出し三角 */
.banner-nav-pc__balloon::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 38px;
	width: 0;
	height: 0;
	border-left: 11px solid transparent;
	border-right: 11px solid transparent;
	border-top: 14px solid #fff;
}


/*
  PC：
  item全体にhoverしたら表示

  吹き出し内にマウスを移動しても
  itemのhover状態が続くので消えません
*/
.banner-nav-pc__item:hover
.banner-nav-pc__balloon {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* キーボード操作対応 */
.banner-nav-pc__item:focus-within
.banner-nav-pc__balloon {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transform: translateY(0);
}


/* ========================================
   吹き出し内リンク
======================================== */

.banner-nav-pc__balloon ul,
.banner-nav-sp__balloon ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.banner-nav-pc__balloon li + li,
.banner-nav-sp__balloon li + li {
  margin-top: 8px;
}

.banner-nav-pc__balloon a,
.banner-nav-sp__balloon a {
  position: relative;

  display: block;

  padding: 3px 0 3px 16px;

  color: #222;

  font-size: 15px;
  line-height: 1.6;

  text-decoration: none;
}

.banner-nav-pc__balloon a::before,
.banner-nav-sp__balloon a::before {
  content: "・";

  position: absolute;
  left: 0;
  top: 3px;
}

.banner-nav-pc__balloon a:hover,
.banner-nav-sp__balloon a:hover {
  color: #c84646;
  text-decoration: underline;
}


/* ========================================
   2番目の吹き出し
   中央寄せ
======================================== */

.banner-nav-pc__item:nth-child(2)
.banner-nav-pc__balloon {
  left: 50%;

  transform:
	translate(-50%, 8px);
}

.banner-nav-pc__item:nth-child(2):hover
.banner-nav-pc__balloon,
.banner-nav-pc__item:nth-child(2):focus-within
.banner-nav-pc__balloon {
  transform:
	translate(-50%, 0);
}

.banner-nav-pc__item:nth-child(2)
.banner-nav-pc__balloon::after {
  left: 50%;
  transform: translateX(-50%);
}


/* ========================================
   3番目の吹き出し
   右寄せ
======================================== */

.banner-nav-pc__item:nth-child(3)
.banner-nav-pc__balloon {
  left: auto;
  right: 0;
}

.banner-nav-pc__item:nth-child(3)
.banner-nav-pc__balloon::after {
  left: auto;
  right: 38px;
}

/* ========================================
ボタンと吹き出しの間に
透明なhover領域を作る
======================================== */

.banner-nav-pc__balloon::before {
content: "";

position: absolute;

left: 0;
top: 100%;

width: 100%;
height: 18px;

background: transparent;
}


/* ========================================
   スマホ用
   初期状態では非表示
======================================== */

.banner-nav-sp {
  display: none;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 767px) {

  /*
	PC用の透明hover領域は非表示
  */
  .banner-nav-pc {
	display: none;
  }


  /*
	スマホ用ナビを表示
  */
  .banner-nav-sp {
	display: block;

	width: 100%;

	padding: 12px;

	background: #f5f5f5;
  }


  /* details */
  .banner-nav-sp__item {
	width: 100%;

	margin-bottom: 10px;

	background: #fff;

	border: 1px solid #d85a5a;
	border-radius: 8px;

	overflow: hidden;
  }

  .banner-nav-sp__item:last-child {
	margin-bottom: 0;
  }


  /* summary */
  .banner-nav-sp__button {
	position: relative;

	display: flex;
	align-items: center;

	min-height: 56px;

	padding: 12px 48px 12px 18px;

	list-style: none;

	color: #c84646;

	font-size: 16px;
	font-weight: 500;

	cursor: pointer;

	background: #fff;
  }

  .banner-nav-sp__button::-webkit-details-marker {
	display: none;
  }


  /* 右矢印 */
  .banner-nav-sp__button::after {
	content: "＋";

	position: absolute;

	top: 50%;
	right: 18px;

	transform: translateY(-50%);

	font-size: 20px;
  }

  .banner-nav-sp__item[open]
  .banner-nav-sp__button::after {
	content: "−";
  }


  /* 開いている時 */
  .banner-nav-sp__item[open]
  .banner-nav-sp__button {
	background: #c84646;
	color: #fff;
  }


  /* 吹き出し */
  .banner-nav-sp__balloon {
	padding: 16px 18px 18px;

	background: #fff;
  }


  .banner-nav-sp__balloon a {
	font-size: 14px;
  }
}


/* ========================================
   アクセシビリティ
======================================== */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

  border: 0;
}


/* ========================================
   テキスト
======================================== */

.fukidashi_txt {
		background: rgb(69,115,164,0.8 );
		padding: 1.5rem;
		color: #fff;
		line-height: 1.5;
		width: 100%;
		position: relative;
		font-size: 90%;
	}
	
@media (min-width: 768px) {
.fukidashi_txt {
		background: rgb(69,115,164,0.8 );
		padding: 1rem;
		color: #fff;
		line-height: 1.3;
		width: 42%;
		position: absolute;
		right: 1.5rem;
		top: 30%;
		font-size: 80%;
	}
}

@media (min-width: 992px) {
.fukidashi_txt {
		padding: 1.5rem;
		line-height: 1.5;
		width: 40%;
		font-size: 90%;
	}
}

@media (min-width: 1200px) {
	.fukidashi_txt {
		line-height: 1.8;
		top: 35%;
	}
}