#domestic_idea_search {
    margin-top: 25px;
    margin-bottom: 10px;
}

/* domestic_idea_search内の.asw-buttonの距離を詰める */
#domestic_idea_search .asw-button {
    margin-bottom: 15px;
}
@media (max-width: 1024px) {
  #domestic_idea_search {
    margin-bottom: 30px;
  }
  .asw-layout-grid[data-sp-column="1"] > .asw-layout-grid__inner > .asw-layout-grid__item:not(:first-child) {
    margin-top: 20px;
  }
  #domestic_idea_search .asw-button {
    margin-bottom: 0;
  }
}

/* ボタンの横幅を設定 */
#domestic_idea_search .asw-button__link {
    width: 100%;
    max-width: 370px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#domestic_idea_search .asw-button__link span {
  margin: 0 10px;
}
@media (max-width: 767px) {
  #domestic_idea_search .asw-button__link span {
    margin: 0 5px;
  }
}

#domestic_idea_search .asw-button__link span .txt {
  font-size: 1.1rem;
}

@media (max-width: 767px) {
  #domestic_idea_search .asw-button__link span .txt {
    font-size: 1.0rem;
  }
}

#domestic_idea_search .asw-text {
    text-align: center;
}

#domestic_idea_search .asw-button__item {
  display: flex;
}

/* モーダルスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-overlay .modal-body {
  padding: 0 56px 20px;
}

.modal-content {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  width: min(92vw, 1100px);
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  display: block;
}

.modal-header {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px 56px 0 56px;
  border-bottom: none;
}

.modal-header h2 {
  margin: 0;
  color: #111827; /* near black */
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 9999px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280; /* gray-500 */
}

.modal-close:hover {
  background: rgba(0,0,0,0.06);
  color: #111827;
}

.modal-body {
  padding: 24px 56px 56px;
}

/* ===== スマホ最適化（添付デザイン準拠） ===== */
@media (max-width: 767px) {
  .modal-content {
    width: 96vw;
    border-radius: 16px;
    padding: 0;
  }
  .modal-header {
    padding: 20px 16px 0 16px;
  }
  .modal-header h2 {
    font-size: 24px;
    text-align: center;
  }
  .modal-close {
    top: 10px;
    right: 10px;
  }
  .modal-body {
    padding: 0;
  }
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.area-item {
    text-align: center;
}

.area-link {
    display: block;
    padding: 15px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #293E8D;
    font-weight: bold;
    transition: all 0.3s ease;
}

.area-link:hover {
    background-color: #293E8D;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}




/* モーダルcss */

.hd-areamap {
  position: relative;
  text-align: right;
  background: #fff;
  padding: 42px 0;
}
.hd-areamap__inner {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  padding: 0 4%;
}
@media (max-width: 768px) {
.hd-areamap__inner {
  padding: 0 0;
}
}
.hd-areamap__title {
  font-weight: 600;
  font-size: 2.4rem;
  letter-spacing: 0%;
  text-align: center;
  margin: 0 0 32px;
}
/* モーダルヘッダーにタイトルがあるため本文内タイトルは非表示 */
.modal-body .hd-areamap__title { display: none; }
.hd-areamap__japan-map {
  position: relative;
  padding: 1% 0 12% 22%;
  /* SVGが高さ0に潰れるのを防止 */
  min-height: 320px;
}
@media (min-width: 401px) {
  .hd-areamap__japan-map {
    position: relative;
    padding: 1% 0 10% 19%;
  }
}
@media (min-width: 768px) {
  .hd-areamap {
    padding: 30px 0;
  }
  .hd-areamap__inner {
    max-width: 660px;
    width: 660px;
    padding: 0;
  }
  .hd-areamap__title {
    font-size: 3.2rem;
    margin: 0 0 36px;
  }
  .hd-areamap__japan-map {
    padding: 0 104px 0 94px;
    /* デスクトップでの最低高さ */
    min-height: 380px;
  }
}

/* スマホ時は本文側の淡いブルーを見せるため背景を透過 */
@media (max-width: 767px) {
  .hd-areamap { background: transparent; }
}
.hd-areamap__svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block; /* インラインSVGの隙間や高さ崩れ対策 */
  position: relative;
  z-index: 1;
}
.hd-areamap__svg path {
  /* 他CSSからのfill:none等の上書きを回避し、地図の塗り潰しを保証 */
  fill: #CBD4EA;
}
.hd-areamap__svg > g:hover > path {
  transition: all 0.2s ease;
  fill: #0a318f;
}
.hd-areamap__svg-path-hover > path {
  transition: all 0.2s ease;
  fill: #0a318f;
}
.hd-areamap__link-btn {
  display: inline-block;
  line-height: 34px;
  height: 36px;
  border: 1px solid #dcdfe5; /* subtle gray */
  border-radius: 18px;
  padding: 0 14px;
  position: absolute;
  font-size: 1.4rem;
  cursor: pointer;
  background: #fff;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #111827; /* darker text */
  z-index: 2; /* SVGより前面に */
}
.hd-areamap__link-btn--arrow {
  padding-left: 4px;
}
.hd-areamap__link-btn:hover {
  color: #fff;
  background: #00146e;
  transition: 0.1s stroke ease;
}
.hd-areamap__link-btn:hover path {
  stroke: #fff;
  transition: 0.1s stroke ease;
}
.hd-areamap__link-btn--hover {
  color: #fff;
  background: rgb(0, 20, 110);
  transition: 0.1s stroke ease;
}
.hd-areamap__link-btn--hover path {
  transition: 0.1s stroke ease;
  stroke: #fff;
}

/* スマホ時はボタンを青アウトライン＋青文字に（添付デザイン準拠） */
@media (max-width: 767px) {
  .hd-areamap__link-btn {
    border-color: #00146E;
    color: #00146E;
  }
  .hd-areamap__link-btn .hd-areamap__link-btn--arrow path { stroke: #00146E; }
  .hd-areamap__link-btn--hover {
    color: #fff;
    background: rgb(0, 20, 110);
    transition: 0.1s stroke ease;
}
  /* ホバー時/--hover時は矢印を白に */
  .hd-areamap__link-btn:hover .hd-areamap__link-btn--arrow path,
  .hd-areamap__link-btn--hover .hd-areamap__link-btn--arrow path {
    stroke: #fff;
  }
}
@media (min-width: 768px) {
  .hd-areamap__link-btn {
    font-size: 1.6rem;
    line-height: 46px;
    height: 48px;
    border-radius: 24px;
    padding: 0 24px;
  }
}
.hd-areamap__link-btn--hokkaido {
  top: 0%;
  right: 20%;
}
.hd-areamap__link-btn--tohoku {
  top: 14%;
  right: 30%;
}
.hd-areamap__link-btn--tokai {
  top: 29%;
  right: 30%;
}
.hd-areamap__link-btn--kanto {
  top: 72%;
  right: 1%;
}
.hd-areamap__link-btn--kansai {
  top: 36%;
  right: 68%;
}
.hd-areamap__link-btn--shikoku {
  top: 88%;
  right: 26%;
}
.hd-areamap__link-btn--kyushu {
  top: 51%;
  left: 1%;
}
.hd-areamap__link-btn--okinawa {
  top: 66%;
  left: 1%;
}
@media (min-width: 768px) {
  .hd-areamap__link-btn--hokkaido {
    top: 16px;
    right: 220px;
  }
  .hd-areamap__link-btn--tohoku {
    top: 160px;
    right: 0;
  }
  .hd-areamap__link-btn--tokai {
    top: 160px;
    right: 274px;
  }
  .hd-areamap__link-btn--kanto {
    top: 354px;
    right: 62px;
  }
  .hd-areamap__link-btn--kansai {
    top: 214px;
    right: 440px;
  }
  .hd-areamap__link-btn--shikoku {
    top: auto;
    bottom: 10px;
    right: 254px;
  }
  .hd-areamap__link-btn--kyushu {
    top: 272px;
    left: 0;
  }
  .hd-areamap__link-btn--okinawa {
    top: 338px;
    left: 0;
  }
}
.hd-areamap__kenkyo {
  fill: none !important;
}

/* 表示切り替えユーティリティ */
.only-pc { display: none !important; }
.only-sp { display: flex !important; }
@media (min-width: 768px) {
  .only-pc { display: flex !important; }
  .only-sp { display: none !important; }
}
