/* ===== 共通 ===== */
.contentsTiikiBlock {
  background: #DBEEF2;
}

section{
 padding: 10px 0 10px;
}

h1,h2,h3{
 line-height:1.4;
}

h2{
  color: #005BAA;
  text-align: center;
  font-size: clamp(24px, 3vw, 34px) !important;
  padding-bottom: 1%;
  height: auto !important;  
}

/* ===== ファーストビュー ===== */

.hero{
 color:#005BAA;
 text-align:center;
 padding:20px 20px 3%;
}

.hero .header {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 2%;
}

.hero .header h1{
 font-size:clamp(30px,4vw,48px);
 font-weight:800;
 margin-bottom:25px;
 text-shadow: 0.4vw 0.4vw #fff;
 width: 75%;
 white-space:nowrap;
 z-index: 2;
}
.hero .txt{
  text-align: left;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero .header img {
  width: 20%;
  min-width: 100px;
  margin-bottom: 25px;
}

.lead{
 max-width:760px;
 margin:auto;
 font-size:18px;
}

.cta{
 margin-top:35px;
}

.btn{
 display:inline-block;
 border: 3px #1b6fb8 solid;
 color: #1b6fb8 !important;
 background:white;
 padding:14px 10px;
 border-radius:8px;
 text-decoration:none;
 font-weight:700;
 margin:8px;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover{
 border: 3px #fff solid;
 color: #fff !important;
 background:#1b6fb8;
 transform: translateY(-3px);
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-journal{
 display:inline-block;
 border: 3px #ffffff solid;
 color: #ffffff !important;
 background:#e20d0d;
 padding:14px 10px;
 border-radius:8px;
 text-decoration:none;
 font-weight:700;
 margin:8px;
 transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-journal:hover{
 border: 3px #e20d0d solid;
 color: #e20d0d !important;
 background:#ffffff;
 transform: translateY(-3px);
 box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* ===== レスポンシブ PC表示では消える===== */

@media(min-width:768px){
.hidden_pc{
  display: none;
}
}

/* ===== レスポンシブ ===== */
@media(max-width:767px){

  .hero .header{
    display: block;
  }
  .hero .header h1{
    width: 100%;
  }
  .hero .header img{
    width: 50%;
  }
  .btn{
    margin: 5px;
  }
  .btn-journal{
    margin: 5px;
  }
}

/* ===== 人物＋吹き出し ===== */

.talk-area{
 background:var(--lightblue);
}

.talk{
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 10px 10px 50px;
}

.talk.reverse{
 flex-direction:row-reverse;
}

.person img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: center top;
}

.balloon{
 background:white;
 border-radius:18px;
 padding:22px;
 position:relative;
 box-shadow:0 6px 18px rgba(0,0,0,.08);
 max-width:620px;
}

.balloon h3 a{
  color: #005BAA;
}

.balloon h3 a:hover{
  color: #005BAA;
}

.balloon:after{
 content:"";
 position:absolute;
 left:-16px;
 top:30px;
 border:16px solid transparent;
 border-right-color:white;
}

.talk.reverse .balloon:after{
 left:auto;
 right:-16px;
 border-right-color:transparent;
 border-left-color:white;
}

.balloon h3{
 color:#005BAA;
 margin-top:0;
}

.hover-comment {
  /* position: absolute;
  top: -10px;
  left: 0;
  transform: translateY(-100%);
   */
  display: inline-block;
  background: #005BAA;
  color: #fff;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 10px;
  pointer-events: none;
}


/* ホバーで表示 */
.balloon:hover .hover-comment {
  opacity: 1;
}

/* ===== 税制 ===== */

.tax-card{
 background:#f7fbff;
 padding:26px;
 border-radius:14px;
 margin-bottom:22px;
}

.tax-card h3{
 margin-top:0;
 color:#005BAA;
}

/* ===== ワンストップ ===== */

.center{
 text-align:center;
}

/* ===== スクロールアニメーション ===== */

.fade{
 opacity:0;
 transform:translateY(30px);
 transition:opacity .6s ease, transform .6s ease;
}

.fade.show{
 opacity:1;
 transform:none;
}

/* アニメーション配慮（JIS） */
@media (prefers-reduced-motion: reduce){
 .fade{
  transition:none;
  opacity:1;
  transform:none;
 }
}

/* ===== レスポンシブ ===== */

@media(max-width:767px){
 .talk{
  flex-direction:column;
  align-items:center;
  text-align:left;
 }

 .talk.reverse{
  flex-direction:column;
 }

 .balloon:after{
  display:none;
 }

 .person img{
  width:120px;
 }

 .hero .header h1{
   text-wrap-mode: wrap;
 }

 .contentsTiikiBlock h2{
  height: auto !important;  
 }

}
/* ===== 日本地図（パネル型） ===== */


/*凡例*/
.legend-section{
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
}

.legend{
  position:relative;
  cursor:help;
}

.legend-dot{
  display:inline-block;
  width:14px;
  height:14px;
  border-radius:50%;
  margin-right:6px;
}

.legend-kaigyo{ background:#ff8c3a;}
.legend-koyo{ background:#2bb673;}
.legend-jinzai{ background:#ff3a95;}

/* ツールチップ */
.map-wrapper{
 cursor:pointer;
}

.legend-tooltip{
  position:absolute;
  bottom:130%;
  left:0;
  background:#333;
  color:#fff;
  padding:8px 12px;
  border-radius:6px;
  font-size:13px;
  width:260px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:10;
}

/* ホバーで表示 */

.legend:hover .legend-tooltip{
  opacity:1;
}

.map-section{
background:#f4f9fd;
}

.map-layout{
display:grid;
grid-template-columns: 1.1fr 1fr;
gap:40px;
align-items:start;
}

.map-wrapper{
position:relative;
}

.map-wrapper img{
width:100%;
height:auto;
display:block;
}

/* ピン */

.pin{
  position:absolute;
  width:20px;
  height:20px;
  border-radius:50%;
  border:3px solid white;
  cursor:pointer;
  transform:translate(-50%,-50%);
  opacity:0.7;
  transition:transform .15s, opacity .2s;
  animation:pinPulse 3s infinite;
}

.pin::after{
 content:attr(data-label);
 position:absolute;
 top:-28px;
 left:50%;
 transform:translateX(-50%);
 background:#333;
 color:#fff;
 font-size:12px;
 padding:3px 8px;
 border-radius:6px;
 white-space:nowrap;
 opacity:0;
 pointer-events:none;
 transition:.2s;
 box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.pin:hover::after{
 opacity:1;
}

/* ピン バリエーション */
 .pin-kaigyo{ background:#ff8c3a; }
 .pin-koyo{ background:#2bb673; }
 .pin-jinzai{ background:#ff3a95;}


/* ピンホバー時の挙動 */
.pin:hover{
transform:translate(-50%,-50%) scale(1.25);
opacity: 1;
z-index: 1;
}

/* ピンフォーカス時の挙動 */
.pin:focus,
.pin-koyo:focus,
.pin-jinzai:focus{
 outline:2px solid #000;
}

@keyframes pinPulse{
 0%{ box-shadow:0 0 0 0 rgba(0,0,0,0.2)}
 70%{ box-shadow:0 0 0 8px rgba(0,0,0,0)}
 100%{ box-shadow:0 0 0 0 rgba(0,0,0,0)}
}

/* 凡例ホバー時 */
.legend-section[data-active="kaigyo"] ~ .map-layout .pin-kaigyo,
.legend-section[data-active="koyo"] ~ .map-layout .pin-koyo,
.legend-section[data-active="jinzai"] ~ .map-layout .pin-jinzai{
 opacity:1;
 transform:translate(-50%,-50%) scale(1.4);
 z-index:2;
}

.label{
 background:#e8f3ff;
 color:#1b6fb8;
 padding:3px 7px;
 border-radius:6px;
 font-size:13px;
 margin-right:4px;
}

.highlight{
 color:#d84a1b;
 font-weight:700;
}


/* 施設カード */
/* 基本 */
.facility-panel{
  background:#ffffff;
  border-radius:16px;
  padding:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.08);
  border:4px solid #d9e6f2;
  transition:.25s ease;
}

/* 開業ワンストップセンター */
.facility-panel.theme-kaigyo{
  border-color:#fd6900;
  background:#fff7ef;
}

.facility-panel.theme-kaigyo h3{
  color:#ff8c3a;
}

.facility-panel .badge{
  background: #D1EDF0;
  border: 2px solid #0067B3;
  color: #0067B3;
  padding: 4px 30px;
  border-radius: 20px;
}

/* 雇用労働相談センター */
.facility-panel.theme-koyo{
  border-color:#2bb673;
  background:#eefaf4;
}

.facility-panel.theme-koyo h3{
  color:#1f8956;
  font-weight: 600;
}

/* 人材流動化センター */
.facility-panel.theme-jinzai{
  border-color:#ff3a95;
  background:#fff6fa;
}

.facility-panel.theme-jinzai h3{
  color:#ff3a96cc;
  font-weight: 600;
}

.facility-panel img{
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  max-height: 150px;
  object-fit: contain;
  object-position: center;
}

.facility-panel h3{
  color:#1b6fb8;
  margin-top:0;
}

.facility-panel h3 .kaigyo{ color:#ff8c3a;}
.facility-panel h3 .koyo{ color:#2bb673;}
.facility-panel h3 .jinzai{ color:#ff3a95;}

.facility-panel a{
display:inline-block;
margin-top:12px;
font-weight:700;
color:#1b6fb8;
text-decoration:none;
}

/* スマホ */

@media(max-width:850px){
.map-layout{
grid-template-columns:1fr;
}
.facility-panel{
margin-top:20px;
}
}  

/* ===== 特例メニュー（解説型） ===== */

.special-menu{
 background:#ffffff;
}

.menu-block{
 margin-bottom:40px;
 padding:28px;
 border-radius:16px;
 background:#f7fbff;
 border-left:6px solid #1b6fb8;
}

.menu-block h3{
 margin-top:0;
 color:#1b6fb8;
 font-size:22px;
}

.menu-block p{
 margin:12px 0;
}

.menu-note{
 font-size:14px;
 color:#444;
 background:#fff;
 border-radius:10px;
 padding:14px;
 margin-top:12px;
 border:1px solid #dfeaf5;
}

.menu-note-badge {
  background: #005BAA;
  color: #fff;
  padding: 4px 20px;
  border-radius: 19px;
  line-height: 2;
}

.menu-note-index{
  color: #005BAA;
}

/* ===== とっくまコメント ===== */

.tokkuma{
 display:flex;
 gap:18px;
 align-items:center;
 margin:0 0 30px;
}

.tokkuma img{
 width:110px;
 height:auto;
}

.tokkuma-balloon{
 background:#fff8e6;
 border-radius:16px;
 padding:18px;
 position:relative;
 border:2px solid #ffd27a;
 max-width:650px;
}

.tokkuma-balloon p{
 margin-top: 0;
 margin-bottom: 0;
}
.tokkuma-balloon p a:hover{
  color: #005BAA;
}

/* スマホ */
@media(max-width:768px){

 .tokkuma{
  flex-direction:column;
  align-items:center;
  text-align:left;
 }
 .tokkuma-balloon:before,
 .tokkuma-balloon:after{
  display:none;
 }
}