/* =========================================================
  TOP / HERO まるごと（SP基準 + 1025pxでPC）
  - c-thumbnail::before で “高さ＝座標の基準面” を作る
  - title / icon はその基準面の上に absolute で配置
========================================================= */

/* ===== アクセス情報DL ===== */
.accessBox{
  font-size: 14px;
  line-height: 1.8;
  color: #2f3b4a;
}

/* 見出し */
.accessBox h3{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 700;
}

/* DL全体 */
.accessBox dl{
  margin: 0;
  padding: 0;
}

/* 各行 */
.accessBox dt{
  position: relative;
  font-weight: 700;
  margin-top: 14px;
  padding-left: 14px;
}

/* 緑ライン */
.accessBox dt::before{
  content:"";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 2px;
  background: #79a87b; /* 緑 */
}

/* 値 */
.accessBox dd{
  margin: 2px 0 0 14px;
  color: #444;
}

/* 最初だけ上余白なし */
.accessBox dt:first-of-type{
  margin-top: 0;
}



/* フルワイド地図（左右余白ゼロ） */
.mapFullWide{
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;

  /* 上下余白は好み */
  margin-top: 24px;
  margin-bottom: 0;
}

.mapFullWide iframe{
  display: block;
  width: 100%;
  height: min(70vw, 520px); /* 好みで調整 */
  border: 0;
}



/* ---------- 0) サムネ比率を作る土台（重要） ---------- */
.c-thumbnail{
  display: block;
  position: relative;
}

/* デフォは1:1（各コンポーネント側で上書きする） */
.c-thumbnail::before{
  content: "";
  display: block;
  padding-top: 100%;
}

/* ---------- 1) HERO土台 ---------- */
.p-hero{
  position: relative;
  margin-top: -4px; /* 必要なら調整 */
}

.p-hero__image{
  position: relative; /* title/icon の基準にする */
}

/* “地図背景の面” */
.p-hero__thumbnail{
  background: url(/img/home/mv_bg_sp.png) center / cover no-repeat;
}

/* SPの縦長比率（あなたが送ってくれた値） */
.p-hero__thumbnail::before{
  padding-top: 266.6666667%;
}

/* ---------- 2) タイトル（SP/PC共通） ---------- */
.p-hero__title{
  position: absolute;
  top: 4%;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.p-hero__title img{
  width: min(520px, 78%);
  height: auto;
  display: inline-block;
}

/* ---------- 3) アイコン配置の基準面 ---------- */
/* サムネの“面”全体を座標面にする */
.p-hero__icon{
  position: absolute;
  inset: 0;          /* top/right/bottom/left:0 */
  z-index: 3;
  pointer-events: none; /* ulの空白をクリック不可に */
}

/* 100%高さを持つ座標面 */
.p-hero__icon ul{
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

/* liを絶対配置（SP） */
.p-hero__icon li{
  position: absolute;
  width: 48%;
  pointer-events: auto; /* liはクリック可能に */
}

.p-hero__icon li img{
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- 4) hoverで画像切替（PCのみ） ---------- */
.heroIcon{
  position: relative;
  display: block;
  text-decoration: none;
}

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

/* hover用画像は上に重ねて透明スタート */
.heroIcon__img.is-hover{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}




/* SPは hover しない想定なので hover画像は隠す */
@media (max-width: 1024px){
  .heroIcon__img.is-hover{ display: none; }
}

/* PCだけ hover で切替 */
@media (min-width: 1025px){
  .heroIcon__img.is-default{ transition: opacity .18s ease; }

  .heroIcon:hover .heroIcon__img.is-hover{ opacity: 1; }
  .heroIcon:hover .heroIcon__img.is-default{ opacity: 0; }

  /* PCでは hover画像も表示 */
  .heroIcon__img.is-hover{ display: block; }
}



/* ---------- 5) SP 座標（あなたの値そのまま） ---------- */
.p-hero__icon li:nth-of-type(1){ top: 16%; left: 6%; }
.p-hero__icon li:nth-of-type(2){ top: 28%; left: 46%; }
.p-hero__icon li:nth-of-type(3){ top: 40%; left: 8%; }
.p-hero__icon li:nth-of-type(4){ top: 54%; left: 46%; }
.p-hero__icon li:nth-of-type(5){ top: 68%; left: 4%; }
.p-hero__icon li:nth-of-type(6){ top: 80%; left: 52%; }

/* ---------- 6) PC（背景・比率・幅・座標） ---------- */
@media (min-width: 1025px){
	
	
	

  .p-hero{
    position: relative;

    left: 50%;
    right: 50%;
    width: 100vw;

    margin-left: -50vw;
    margin-right: -50vw;
  }
	
	
  /* PC背景 */
  .p-hero__thumbnail{
    background-image: url(/img/home/mv_bg.png);
  }

  /* PC比率（あなたが送ってくれた値） */
  .p-hero__thumbnail::before{
    padding-top: 50%;
  }

  /* PCは小さく6つ並べる想定 */
  .p-hero__icon li{
    width: 16%;
  }

  /* PC座標（あなたの値そのまま） */
  .p-hero__icon li:nth-of-type(1){ top: 30%; left: 6%; }
  .p-hero__icon li:nth-of-type(2){ top: 60%; left: 22%; }
  .p-hero__icon li:nth-of-type(3){ top: 30%; left: 38%; }
  .p-hero__icon li:nth-of-type(4){ top: 60%; left: 54%; }
  .p-hero__icon li:nth-of-type(5){ top: 30%; left: 70%; }
  .p-hero__icon li:nth-of-type(6){ top: 64%; left: 80%; }
}


/* ===== ヘッダー：ロゴ左 / 右にヘッダー内部ウィジェット ===== */
@media (min-width:1025px){

  /* ヘッダーの中身を横並びにして左右に分ける */
  header.l-header .l-header__inner{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }

  /* ロゴは左固定 */
  header.l-header .l-header__logo{
    flex: 0 0 auto;
  }

  /* 右側（ヘッダー内部ウィジェット）を右寄せ */
  header.l-header .l-header__inner .w-header{
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
  }

  /* 右画像リンク */
  .headerContact{
    display: inline-flex;
    align-items: center;
    text-decoration: none;
  }
  .headerContact img{
    height: 60px;  /* 好みで調整 */
    width: auto;
    display: block;
  }
}

/* SPは「ヘッダー内部」自体が非表示なので基本不要だが念のため */
@media (max-width:1024px){
  .headerContact img{ height: 48px; }
}