/* ========== 共通スタイル ========== */
body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* 上部に配置 */
  min-height: 100vh; /* 画面全体を使う */
  border-top: 8px solid #000;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

input::placeholder {
  font-weight: normal;
}

/* ========== 大枠 ========== */
.area-search {
  background-color: #ffffff;
  width: 100%;
  max-width: 910px;
  box-sizing: border-box;
}

/* ========== ヘッダ ========== */
.header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100px;
  margin-bottom: 27px;
  border-bottom: 8px solid #d9d9d9;
  @media (min-width: 980px) {
    margin-bottom: 13px;
  }
}

.header__logo {
  margin-right: 15px;
}

.header__logo img {
  height: 40px;
  width: auto;
}

.header__title {
  color: #333;
  font-size: 24px;
  font-weight: bold;
  margin: 0;
}

/* ========== 検索入力コンポーネント ========== */
.lead {
  font-size: 20px;
  line-height: 1.5;
  margin: 30px 30px;
  @media (min-width: 980px) {
    font-size: 24px;
    margin-inline: 0;
  }
  .lead__search-zip {
    font-size: 16px;
    display: block;
    margin-top: 8px;
    @media (min-width: 980px) {
      font-size: 20px;
      margin-inline: 0;
    }
  }
}

.search-form {
  position: relative;
  margin-bottom: 17px;
  margin-inline: 30px;
  box-sizing: border-box;
  @media (min-width: 980px) {
    margin-bottom: 33px;
    margin-inline: 0;
  }
}

.search-form__input {
  width: 100%;
  height: 56px;
  padding: 0 30px 0 10px; /* クリアボタンのスペースを確保 */
  border: 1px solid #8F8F8F;
  box-sizing: border-box; /* パディングを幅に含める */
  font-size: 24px;
  font-weight: bold;
  &:placeholder-shown {
    padding-right: 10px;
  }
  @media (min-width: 601px) {
    padding: 0 30px 0 27px;
  }
}

.search-form__clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 20px;
  color: #999;
  border: none;
  background: none;
  /* display: none; を削除してVueのv-showに制御を任せる */
}

.search-form__clear-btn:hover {
  color: #333;
}

/* ========== 検索結果件数表示 ========== */
.search-count {
  margin-bottom: 27px;
  font-size: 16px;
  text-align: center;
  @media (min-width: 980px) {
    text-align: left;
    margin-bottom: 13px;
  }
}

/* ========== 検索結果表示エリア ========== */
.search-results {
  padding-bottom: 100px;
}

.search-results__no-results {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin: 40px 0;
}

.search-results__item {
  background-color: #F3FBFF;
  padding: 46px 46px 56px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  @media (min-width: 601px) {
    border-radius: 10px;
    padding: 26px 24px 34px;
  }
}

/* 住所表示部分 */
.address-detail {
  font-size: 24px !important;
  font-weight: bold !important;
  margin-top: 0 !important;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* テーマ(s_hikari.css)の #container-box h2 を打ち消す（詳細度対策で !important を使用） */
  background-color: transparent !important;
  border-left: none !important;
  padding: 0 !important;
  @media (min-width: 980px) {
    font-size: 21px !important;
    margin-bottom: 26px;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 0.5em;
  }
}

/* プラン結果表示部分 */
.plans {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 24px;
  justify-content: center; /* 中央寄せ */
  @media (min-width: 601px) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 27px 39px;
  }
}

.plan {
  border-radius: 10px;
  container-type: inline-size;
  @media (min-width: 601px) {
    flex: 1 1 calc(50% - 20px); /* 2列表示、gapを考慮 */
  }
}

.plan__inner {
  padding: 20px 0;
  min-height: 208px;
  box-sizing: border-box;
  @container (min-width: 350px) {
    min-height: 188px;
  }
}

/* 提供可否のスタイル */
.plan--available {
  box-sizing: border-box;
  background: #FFFDED;
  border: 1px solid #E9E9E9;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.plan--unavailable {
  box-sizing: border-box;
  background: #E6E6E6;
  border: 1px solid #B2B2B2;
}

/* プラン名 */
.plan__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 20px;
  line-height: 1.15;
  font-weight: bold !important;
  column-gap: 0.3em;
  margin: 0 !important;
  /* テーマ(s_hikari.css)の #container-box h3 を打ち消す */
  color: #333333 !important;
  border-left: none !important;
  padding: 0.75em 0 !important;
  @container (min-width: 350px) {
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
  }
  em {
    font-style: normal;
    font-size: 40px;
    margin-right: 0.1em;
  }
}

/* プランが利用不可能時のテキスト */
.plan__unavailable-text {
  text-align: center;
  font-size: 18px;
  margin: 32px 0 0;
}

/* ========== プラン内ボタン（検索結果用） ========== */
.plan__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(85% ,272px);
  height: 43px;
  text-align: center;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  border: none;
  /* テーマのaタグのcolor指定を打ち消す */
  &:link, &:visited, &:hover, &:active { color: #ffffff; }
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  transform: translateY(0px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);

  &:hover {
    transform: translateY(2px);
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0.15);
  }
}

/* 申し込みボタン（赤） */
.plan__btn--apply {
  background-color: #E80000;
}

/* サポートボタン（オレンジ/黄色） */
.plan__btn--support {
  background-color: #FFB700;
}
