/* =========================
   Base
========================= */

.hm{
  color: var(--hm-ink);
}

/* inner: テーマの .container があればそっちに合わせたいので、最大幅だけ軽く持つ */
.hm-inner{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hm-sec{
  padding: 64px 0;
}

.hm-sec--alt{
  background: var(--hm-alt);
}

/* =========================
   Typo
========================= */

.hm-kicker{
  color: var(--hm-sub);
  font-weight: 700;
  letter-spacing: .06em;
  font-size: 13px;
}

.hm-h2{
  margin: 10px 0 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.25;
}

.hm-lead{
  margin: 18px 0 0;
  color: var(--hm-muted);
  line-height: 1.9;
}

.hm-small{
  margin: 12px 0 0;
  color: var(--hm-muted);
  font-size: 12px;
  line-height: 1.7;
}

.hm-center{
  text-align: center;
}

/* =========================
   HERO
========================= */

.hm-hero{
  background: linear-gradient(180deg, rgba(58,124,165,.10), rgba(58,124,165,.03));
  border-bottom: 1px solid var(--hm-line);
}

.hm-hero__box{
  position: relative;
  margin: 28px 0 0;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  overflow: hidden;
  box-shadow: var(--hm-sh);
  background: #0b1220;
}

/* 背景画像枠（本番はここに background-image を当てる） */
.hm-hero__media{
  min-height: 420px;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(58,124,165,.28), transparent 60%),
    radial-gradient(900px 520px at 90% 30%, rgba(242,166,90,.16), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  position: relative;
}

/* 文字可読性 */
.hm-hero__media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(11,18,32,.55), rgba(11,18,32,.22));
}

.hm-hero__content{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px 16px;
  z-index: 2;
}

.hm-hero__h1{
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(26px, 3.1vw, 42px);
  text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.hm-hero__sub{
  margin: 10px 0 0;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 18px);
  text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.hm-hero__actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   Note
========================= */

.hm-note{
  padding: 20px 0;
}

.hm-note__text {
    margin: 0 auto;
    max-width: 860px;
    background: var(--hm-alt);
    padding: 16px 18px;
    text-align: center;
    line-height: 1.9;
    font-weight: 300;
}

/* =========================
   Buttons
========================= */

.hm-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  border-radius: var(--hm-r);
  padding: 12px 18px;
  border: 1px solid transparent;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  user-select: none;
}

.hm-btn--cta{
  background: var(--hm-cta);
  color: var(--hm-ink);
  border-color: rgba(0,0,0,.06);
}
.hm-btn--cta:hover{
  background: var(--hm-cta-h);
  transform: translateY(-1px);
}

.hm-btn--ghost{
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.22);
}
.hm-btn--ghost:hover{
  background: rgba(255,255,255,.20);
  transform: translateY(-1px);
}

/* light outline button */
.hm-btn--line{
  background: #fff;
  color: var(--hm-ink);
  border-color: var(--hm-line);
}
.hm-btn--line:hover{
  background: var(--hm-bg);
  transform: translateY(-1px);
}

/* =========================
   Grids
========================= */

.hm-grid{
  display: grid;
  gap: 26px;
}

.hm-grid--2{
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.hm-grid--rev > :first-child{ order: 2; }
.hm-grid--rev > :last-child{ order: 1; }

@media (max-width: 900px){
  .hm-grid--2{
    grid-template-columns: 1fr;
  }
  .hm-grid--rev > :first-child,
  .hm-grid--rev > :last-child{ order: initial; }
}

/* =========================
   Cards
========================= */

.hm-cards{
  margin-top: 26px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px){
  .hm-cards{
    grid-template-columns: 1fr;
  }
}

.hm-card{
  background: #fff;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-r);
  box-shadow: var(--hm-sh);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.points_imgwrap{
  margin-top: auto;
}

.hm-card__title{
  margin: 0;
  font-weight: 900;
  font-size: 16px;
  text-align: center;
}

.hm-card__text{
  margin: 10px 0;
  color: var(--hm-muted);
  line-height: 1.9;
  font-size: 14px;
}

/* =========================
   Media placeholder
========================= */

.hm-media{
  display: grid;
  place-items: center;
  text-align: center;
}

.hm-media--wide{ aspect-ratio: 16/9; }
.hm-media--square{ aspect-ratio: 1/1; }

.hm-media-note{
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: 420px;
  border: 1px dashed rgba(255,255,255,.35);
  border-radius: var(--hm-r);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  font-weight: 800;
  line-height: 1.6;
  text-align: left;
}

/* =========================
   Lists
========================= */

.hm-list{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--hm-muted);
  line-height: 1.9;
}

/* spacing helpers */
.hm-mt-lg{ margin-top: 26px; }

/* =========================
   Final CTA
========================= */

.hm-final{
  padding: 64px 0;
  background:
    radial-gradient(900px 520px at 20% 10%, rgba(58,124,165,.28), transparent 60%),
    radial-gradient(900px 520px at 90% 30%, rgba(242,166,90,.16), transparent 60%),
    #0b1220;
  color: #fff;
}

.hm-final__title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(20px, 2.2vw, 30px);
}

.hm-final__lead{
  margin: 14px 0 0;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
}

.hm-actions{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hm-actions--center{
  justify-content: center;
}

.hm-small--on-dark{
  color: rgba(255,255,255,.65);
}

/* Top: theme adjustment */
.top #content{
  padding-top: 0;
}

/* =========================
   上位都道府県チップ
========================= */

.hm-topchips{
  margin: 16px 0 12px;
}

.hm-topchips__label{
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hm-topchips__list{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hm-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f3f8fc;
  border: 1px solid #dbe7f3;
  color: #1f4e79;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hm-chip:hover{
  background: #1f4e79;
  color: #fff;
  border-color: #1f4e79;
  text-decoration: none;
}

.hm-chip__icon{
  font-size: 12px;
  opacity: .55;
  transition: transform .2s ease, opacity .2s ease;
}

.hm-chip:hover .hm-chip__icon{
  transform: translateX(3px);
  opacity: 1;
}

@media (max-width: 480px){
  .hm-chip{
    padding: 10px 14px;
    font-size: 14px;
  }
}

/* =========================
   エリア（アコーディオン + 県ボタン）
========================= */

.hm-area{
  margin-top: 20px;
}

/* アコーディオン トグル */
.hm-area__toggle{
  background: #fff;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  margin-bottom: 6px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  transition: background .2s ease, border-color .2s ease;
}

.hm-area__toggle:hover{
  background: #f9f9f9;
}

/* 開いたブロックの薄背景 */
.hm-area__section.is-open .hm-area__toggle{
  background: #f3f8fc;
  border-color: #dbe7f3;
}

/* ＋ / − アイコン（CSS描画） */
.hm-area__icon{
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.hm-area__icon::before,
.hm-area__icon::after{
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  transition: opacity .2s ease;
}

/* 横線 */
.hm-area__icon::before{
  left: 3px;
  right: 3px;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

/* 縦線（＋用） */
.hm-area__icon::after{
  top: 3px;
  bottom: 3px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

/* 開いたら縦線を消して「−」に */
.hm-area__section.is-open .hm-area__icon::after{
  opacity: 0;
}

/* パネル：heightアニメ（JSでheightを付与する前提） */
.hm-area__panel{
  height: 0;
  overflow: hidden;
  padding: 0;
  transition: height .22s ease;
}

.hm-area__section.is-open .hm-area__panel{
  padding: 8px 0 16px; /* 開いた時だけ余白 */
}

/* 県リスト */
ul.hm-area__list{
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 8px;
}

li.hm-area__item{
  list-style: none;
  margin: 0;
}

/* 県リンク（ボタン風） */
.hm-area__link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 6px;
  background: #3a7ca5;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: transform .12s ease, filter .2s ease;
}

.hm-area__link:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
  text-decoration: none;
}

.hm-area__link:active{
  transform: translateY(0);
  filter: brightness(0.98);
}

.hm-area__link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.hm-link-wrap {
	margin-top: 20px;
}

.hm-link {
	display: inline-block;
	font-size: 14px;
	color: #2f6f95;
	text-decoration: none;
	border-bottom: 1px solid #2f6f95;
	padding-bottom: 2px;
	transition: 0.2s ease;
}

.hm-link:hover {
	opacity: 0.7;
}

.p-mainVisual {
    margin-bottom: 20px;
}