/* === 対応エリア：全体構造・共通 === */

.col_dark_orange { color: #d92500;}
.col_customblue { color: #5073aa;}

.area-support_header {
    margin: 0 auto;
    position: relative;
	background: #f0eaf5;
	border-bottom: 1px solid #7C60A0;
}

.area-support_header__inner {
	margin: 0 auto;
	max-width: 1200px;
	padding: 1em 0 1em 0;
    position: relative;

}
.area-support_header__inner h1 {
    font-size: clamp(1.6rem, 1.2rem + 0.5vw, 2.4rem);
    text-align: center;
    padding: 15vh 0 0.5em 0;
}

.area-support_header__inner h1 b {
    background: #9261c1;
    color: #ffffff;
    display: inline-block;
    font-weight: bold;
    margin: 0 5px;
    padding: 0px 10px;
    font-size: clamp(2.4rem, 1.8rem + 1vw, 3.6rem);
}

.area-support_header-title {
    font-size: clamp(1.4rem, 1.1rem + 0.4vw, 2rem);
    padding: 0 0 0.25em 0em;
    font-weight: bold;
    color: #355D9D;

}

.support_area-name {
    text-align: center;
    font-family: source-han-serif-japanese, serif;
    font-weight: 500;
    font-style: italic;
    color: #d92500;
    color: #355D9D;
    font-size: clamp(1.8rem, 1.2rem + 1.5vw, 3rem);
    letter-spacing: .30rem;
    display: block;
    padding: 0em 0 1em 0;
}

.area-support__inner {
  margin: 0 auto;
  position: relative;
}

.area-support__content h2 {
    font-family: source-han-serif-japanese, serif;
    font-weight: 500;
    font-style: normal;
    color: rgb(217, 37, 0);
    font-size: clamp(2rem, 1.2rem + 1.5vw, 2.8rem);
    letter-spacing: .8rem;
    display: block;
    margin: 1em 0px;
}
/* コンテンツ（テキスト部分） */
.area-support__content {
  position: relative;
  z-index: 2; /* ← 文字を上に出す */
}

/* 地図（背景） */
.area-support__map {
  position: absolute;
  top: 30px;
  right: 5%; /* 左ではなく右寄せに変更する方がレスポンシブに安定 */
  width: clamp(200px, 30vw, 360px);
  aspect-ratio: 360 / 362; /* 縦横比を維持 */
  z-index: 1; /* ← テキストより下 */
  background: url(../images/top2/area-japan.png) center/contain no-repeat;
  opacity: 0.8; /* 少し透かして文字と干渉を軽減（任意） */
}



/* === 地域ブロック・見出し === */
.area-support__regions {
    min-height: 220px;
    max-width: 940px;
    position: relative;
    z-index: 0;
    background: rgb(255, 255, 255);
    padding: 1em 2em;
    margin: 3em 0px 0px;
}

.area-region-group {
  margin-bottom: 40px;
}

.area-region-group__title {
  font-size: clamp(1.4rem, 1.1rem + 0.5vw, 2rem);
  margin-bottom: 0.5em;
  font-weight: bold;
  font-family: source-han-serif-japanese, serif;
  font-style: italic;
  color: #5073aa;
  letter-spacing: 0.08em;
  display: block;
}

.sbttit {
  font-size: clamp(1.4rem, 1.1rem + 0.3vw, 2rem);
  font-weight: bold;
  padding-left: 10px;
  color: rgb(110, 94, 84);
  letter-spacing: 0;
  margin: 0px 0 1rem 0;
  padding: 0px 0px 2rem 0;
}

.sbttitem {
  font-size: clamp(1.3rem, 1rem + 0.2vw, 1.6rem);
  margin-left: 10px;
  color: #666;
}
.sbttitem {
    font-family: museo-slab, serif;
    font-weight: 300;
    color: rgb(102, 102, 102);
    font-style: normal;
    margin-top: 0px;
    display: block;
}

.attention {
    font-size: clamp(1.2rem, 0.9rem + 0.2vw, 1.4rem);
    text-align: right;
    padding-bottom: 0.5rem;
}

/* === タブ構造（ボタン） === */
.area-tabs {
  display: flex;
  margin-bottom: 16px;
  position: relative;
  border-bottom: 2px solid #ddd;
}
.area-tab {
  flex: 1;
  text-align: center;
  background: #fff;
  color: #6e5e54;
  border: none;
  border-bottom: none;
  font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.6rem);
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.area-tab.active {
  background: #f3edfa;
  border-bottom: 2px solid #fff;
  font-weight: bold;
}

/* タブインジケーター */
.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 3px;
  background-color: #693fad;
  transition: all 0.3s ease;
}

/* === タブコンテンツ表示 === */
.area-tab-content {
  display: none;
  animation: fadeIn 0.4s ease;
}
.area-tab-content.active {
  display: block;
}

/* === 地域リスト === */
.area-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.area-list li {
  margin: 0.75em 0.5em;
}
.area-list li a {
  text-decoration: none;
  color: #333;
    font-size: clamp(1.2rem, 0.9rem + 0.8vw, 1.6rem);
  padding: 6px 10px;
  background: #f3edfa7a;
  border-radius: 6px;
  transition: background 0.3s;
  border: 1px solid #aa8bcf;
}
.area-list li a:hover {
	background: #5073aa;
    font-weight: bold;
    border: 1px solid #5073aa;
    color: #fff;
}

/* === アニメーション === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.area-tab-wrap {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

.area-tab-viewport {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.area-tab-content-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  width: 200%; /* 2枚分（タブ数に応じて変更） */
}

.area-tab-content {
  width: 100%;
  flex-shrink: 0;
  padding: 20px;
  box-sizing: border-box;
}

.area-tab-content-wrapper.slide-left {
  transition: transform 0.5s ease-in-out;
}
.area-tab-content-wrapper.slide-right {
  transition: transform 0.5s ease-in-out;
}


@media (max-width: 768px) {
.area-support {
    background: #f9f6f2;
    border-top: solid 1px #ddd;
}	
.area-support_header__inner h1 {
    padding: 3vh 0 0.5em 0;
}
  .area-support__map {
    position: absolute;
    top: -50px;
    right: -20px;
    margin: 0;
    width: 80%;
    max-width: 300px;
	z-index: 0;
  }
	.area-support__content p{
		position: relative; 
		z-index: 1;
	}
}



@media (max-width: 425px) {
	.area-support__map {
	  top: -80px;
	  right: -35%;
	  margin-top: 0;
	  width: 30%;
	  max-width: 200px;
	}

	.area-support__regions {
	  position: relative;
	  z-index: 0;
	  margin: 3em 0px 0px;
	  padding: 1rem;
	}
	.area-tab-content {
    padding: 0px;
    }
}
@media (max-width: 375px) {
  .catch_badge {
    position: absolute;
    font-size: clamp(1.3rem, 1.4rem + 2vw, 1.6rem);
    top: -25px;
	left: 55px;
  }
}
@media (max-width: 320px) {
.area-support_header__inner h1 b {
    background: #9261c1;
    color: #ffffff;
    display: inline-block;
    font-weight: bold;
    margin: 0 5px;
    padding: 0px 10px;
    font-size:2.0rem;
}
	.catch_badge {
    position: absolute;
    font-size: clamp(1.3rem, 1.4rem + 2vw, 1.6rem);
    top: -25px;
	left: 25px;
  }
}