/*
共通
*/

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Noto Sans JP", sans-serif, "Helvetica Neue", "Helvetica", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
  letter-spacing: 0.02em;
}

/* モーダル表示時に背景スクロールを止めるためのクラス */
body.nav-open {
  overflow: hidden;
}

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

.sp,
.sp__br {
  display: none;
}

.note {
  font-size: 14px;
  padding-left: 1em;
  text-indent: -1em;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin-top: 8px;
}

.note > li {
  margin-top: 2px;
}

.note--caution {
  color: #ec0000;
}

@media only screen and (max-width: 768px) {
  .pc,
  .pc__br {
    display: none;
  }
  .sp,
  .sp__br {
    display: block;
  }
}

/*
フォーム
*/

input:not([type="radio"]),
textarea,
select {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  padding: 16px 12px;
  line-height: 1;
  border-radius: 8px;
  border: 1px solid #1c1c1c;
  font-size: 16px;
}

input:not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: solid 2px #0017c1;
}

.input__cap {
  font-weight: 500;
  padding-left: 8px;
}

.select__wrap {
  position: relative;
}

.select__wrap::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 28px;
  width: 8px;
  height: 8px;
  border-top: 1px solid #1a1a1a;
  border-left: 1px solid #1a1a1a;
  transform: translateY(-50%) rotate(-135deg);
  pointer-events: none;
}

select {
  -webkit-appearance: none; /* Chrome, Safari, Edge, iOS用 */
  -moz-appearance: none; /* Firefox用 */
  appearance: none; /* 標準仕様 */
}
/* ラジオボタン */

.radio-button {
  position: relative;
  display: block;
  height: 56px;
  cursor: pointer;
}

.radio-button:nth-of-type(n + 2) {
  margin-top: 6px;
}

.radio-button input {
  position: absolute;
  appearance: none;
}

.radio-button span {
  display: flex;
  align-items: center;
  position: relative;
  height: 100%;
  border: 1px solid #1a1a1c;
  border-radius: 8px;
  font-weight: 500;
  padding-left: 54px;
}

@media (hover: hover) {
  .radio-button span:hover {
    background-color: #e8f1fe;
  }
}

.radio-button span {
  font-weight: 500;
  padding-left: 54px; /* 左側のボタン設置スペース確保のための設定 */
}

.radio-button span::before,
.radio-button input:checked + span::before {
  content: "";
  width: 20px; /* 白い丸の横の長さ */
  height: 20px; /* 白い丸の縦の長さ */
  border-radius: 50%; /* 丸くするための設定 */
  border: #1a1a1a 1px solid;
  position: absolute; /* 位置調整の起点をlabelの左上の角とするための設定 */
  top: 50%;
  left: 26px;
  transform: translate(
    -50%,
    -50%
  ); /* topとleftが丸の中心を基準とするための設定 */
}

.radio-button input:checked + span {
  border: 1px solid #0017c1;
  outline: 1px solid #0017c1;
}

.radio-button input:focus + span {
  outline: 2px solid #0017c1;
}

/* キーボード操作時のフォーカス表示（追加） */
.radio-button input:focus-visible + span {
  outline: 3px solid #0017c1;
  outline-offset: 2px;
  border-color: #0017c1;
}
.radio-button input:checked:focus-visible + span {
  background-color: #c5dcff;
  border-color: #0017c1;
}

.radio-button input:checked + span::before {
  border: #0017c1 2px solid;
}

.radio-button input:checked + span::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0017c1;
  position: absolute;
  top: 50%;
  left: 26px;
  transform: translate(-50%, -50%);
}

.radio-button input:checked + span {
  outline: solid 2px #0017c1;
}

/* チェックボックス */

.checkbox__text {
  margin: 4px 0 16px;
}

.checkbox__label {
  display: flex;
  align-items: center;
  padding: 18px;
  cursor: pointer;
  border: 1px solid #1a1a1c;
  border-radius: 8px;
}

@media (hover: hover) {
  .checkbox__label:hover {
    background-color: #e8f1fe;
  }
}

/* キーボード操作時のフォーカス表示（追加） */
.checkbox__label:has(input:focus-visible) {
  outline: 3px solid #0017c1;
  outline-offset: 2px;
}

input[type="checkbox"] {
  width: inherit;
  height: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  padding: inherit;
  border: inherit;
  border-radius: inherit;
  box-sizing: inherit;
  min-width: 20px;
  min-height: 20px;
  accent-color: #0017c1;
  cursor: pointer;
  outline: none;
}

.checkbox__label__text {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding-left: 16px;
}

@media only screen and (max-width: 768px) {
  .checkbox__label {
    padding: 15px 20px;
  }

  .checkbox__label__text {
    font-size: 16px;
  }
}

/* タブ - 全体 */

.tab-container {
  margin: 0 auto;
}

/* タブ - ボタン */

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #ccc;
}

.tab-btn {
  flex: 0 0 50%;
  padding: 16px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.4;
  background: #fff;
  border-bottom: 3px solid transparent;
  text-align: center;
}

.tab-btn:not(.active):hover {
  background: #f2f2f2;
}

.tab-btn.active {
  border-bottom: 3px solid #fa8200;
  color: #fa8200;
  cursor: default;
}

/* タブ - 中身 */

.tab-content {
}

.tab-content-item {
  display: none;
}

.tab-content-item.active {
  display: block;
}

.tab-heading {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 24px;
  margin-bottom: 4px;
}

.tab-text {
  margin-bottom: 16px;
}

/* バッジエリア (あと1分で完了！) */
.badge {
  padding: 40px;
  margin: 0 auto;
}
.badge__wrap {
  max-width: 544px;
  margin: 0 auto;
  text-align: center;
}

.badge__inner {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid #fdba74; /* オレンジの薄い枠 */
  border-radius: 9999px;
  background-color: #fff7ed;
  color: #ea580c;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.badge svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  stroke: #f97316;
}

.badge .highlight {
  font-size: 15px;
  margin: 0 4px;
}

/* ステッパー本体 */

.stepper {
  padding: 0 40px;
  margin: 0 auto;
}
.stepper__wrap {
  position: relative;
  max-width: 544px;
  margin: 0 auto;
  text-align: center;
}

/* 背景のグレーの線 */
.progress-bg {
  position: absolute;
  top: 20px; /* アイコンの高さの半分 */
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e5e7eb;
  z-index: 0;
  transform: translateY(-50%);
}

/* 進捗を示す緑の線 */
.progress-bar {
  position: absolute;
  top: 20px;
  left: 0;
  height: 2px;
  background-color: #10b981;
  z-index: 0;
  transform: translateY(-50%);
  /* widthはHTMLのインラインスタイルで制御、または各ページごとのCSSで指定 */
  transition: width 0.4s ease;
}

/* ステップのリスト */
.steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1; /* 線より上に表示 */
  list-style: none;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

/* 丸いアイコン部分 */
.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: #9ca3af;
  transition: all 0.3s ease;
  position: relative;
}

/* 状態: 完了 (緑) */
.step-item.completed .step-circle {
  background-color: #10b981;
  border-color: #10b981;
  color: white;
}

/* 状態: アクティブ (青) */
.step-item.active .step-circle {
  background-color: #2563eb;
  border-color: #2563eb;
  color: white;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* アクティブ時の外側のリング（パルス用） */
.step-item.active .step-circle::after {
  content: "";
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.2);
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}

/* ラベルテキスト */
.step-label {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: bold;
  /* 修正: color: transparent をやめ、visibilityで制御 */
  color: #2563eb;
  visibility: hidden; /* 領域は確保しつつ非表示 */
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

/* アクティブな時だけラベルを表示（色をつける） */
.step-item.active .step-label {
  /* color: #2563eb; */
  visibility: visible;
  opacity: 1;
}
/* アイコンSVG用 */
/* CSSでも指定しますが、HTML側の属性(fill="none"等)が優先して適用されるようにします */
.icon-check {
  width: 20px; /* 修正: 20px -> 20px (サイズを縮小) */
  height: 16px; /* 修正: 20px -> 16px (サイズを縮小) */
  display: block; /* レイアウト崩れ防止 */
}

/* ノティス */

.form__notice {
  padding: 16px;
  border: solid 3px #d52103;
  border-radius: 12px;
  margin-bottom: 40px;
}
.form__notice__heading {
  font-size: 17px;
  font-weight: 700;
}
.form__notice__heading::before {
  content: url("../images/form-notice-img1.svg"); /* アイコン画像を指定 */
  display: inline-block;
  width: 24px; /* アイコンのサイズ */
  height: 24px;
  margin-right: 8px; /* 見出しとの間隔 */
  vertical-align: -5px; /* 2px 上に調整 */
}
.form__notice__text {
  margin-top: 8px;
}
.form__notice__error {
  font-weight: 700;
  color: #ec0000;
  background-color: #fef2f2;
  padding: 16px 24px;
}
.form__notice__error--row {
  display: flex;
}

/* 
入力（共通）
*/

/* バリデーションエラー */

.error-message {
  display: block;
}

.formError {
  z-index: 1 !important;
}

form#form .formErrorContent {
  min-width: initial;
  color: #ec0000;
  font-size: 14px;
  padding: 0;
  margin-top: 8px;
  background-color: initial;
  cursor: auto;
}

/* JavaScript無効時 */
.message__section {
  padding: 0 24px;
  margin-top: 40px;
}

.message__wrap {
  max-width: 544px;
  margin: 0 auto;
  color: #ec0000;
  font-weight: 700;
  background-color: #ffdada;
  padding: 24px;
}

#js-form__button--submit {
  display: none;
}

/* 電力会社名（#power_name）のエラー吹き出しを強制非表示にする */
.power_nameformError {
  display: none !important;
}

.power_name_error_msg {
  display: none;
  min-width: initial;
  color: #ec0000;
  font-size: 14px;
  padding: 0;
  margin-top: 8px;
  background-color: initial;
  cursor: auto;
}

/* フォーム */

.form__section {
  padding: 0 24px;
  margin-top: 40px;
}
.form__wrap {
  max-width: 544px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.form__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 40px 0 24px;
}

.form__list__item {
  margin-bottom: 32px;
}

.form__list__item__label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 2px;
}

.form__list__item__label > span {
  font-size: 16px;
  font-weight: 500;
  padding-left: 8px;
  color: #ec0000;
}

.form__button--return {
  margin-top: 24px;
}

/* モーダル用リンク */

.form__list__text-link__wrap {
  text-align: right;
  margin-top: 4px;
}

.form__list__text-link {
  font-size: 14px;
  color: #0017c1;
  text-decoration: none;
  text-align: right;
  /* button化のためのリセット */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  display: inline;
}

.form__list__text-link::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 3px;
  background-image: url("../images/form-info.svg");
  background-position: center;
  background-size: contain;
  vertical-align: -2px;
}

.form__button--submit {
  margin-top: 48px;
}

@media only screen and (max-width: 768px) {
  .form__section {
    padding: 0 16px;
  }
  .form__heading {
    font-size: 20px;
  }

  .form__list__item {
    margin-bottom: 28px;
  }

  .form__list__item__label {
    margin-bottom: 4px;
  }

  .form__button--submit {
    margin-top: 40px;
  }
}

/* --- モーダル基本構造 --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}

.modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 544px;
  border-radius: 40px;
  padding: 50px 40px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease-in-out;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-close-top {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: #cccccc;
  transition: color 0.2s;
}
.modal-close-top:hover {
  color: #999999;
}

.modal-header {
  margin-bottom: 40px;
}

.modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333333;
}

.modal-description {
  font-size: 15px;
  color: #666666;
  line-height: 1.8;
  margin: 0 auto;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 5px;
}

/* --- FAQリストスタイル --- */
.o-o-faq-list {
  border-top: 1px solid #f2f2f2;
}

.o-o-faq-list:has(.o-o-faq-list_item:first-child .is-open) {
  border-top: none;
}

.o-o-faq-list_item {
  border-bottom: 1px solid #f2f2f2;
  position: relative;
  transition:
    background-color 0.3s ease-in-out,
    border-radius 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

/* アイテムが開いている時のスタイル */
.o-o-faq-list_item:has(.is-open) {
  background-color: #fff6eb;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

.o-o-faq-list_item:has(.is-open):not(:first-child) {
  margin-top: 0.75rem;
}

.o-o-faq-list_q button {
  column-gap: 1.5rem;
  display: grid;
  font-weight: 500;
  grid-template-columns: 1.5em 1fr;
  padding: 24px 3rem 24px 10px; /* 右側にアイコン用の余白を確保 */
  position: relative;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #333333;
  font-size: 16px;
  -webkit-tap-highlight-color: transparent;
}

.o-o-faq-list_q-head {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

/* プラスアイコンのスタイル */
.o-o-faq-list_q button svg {
  background-color: #f59e0b; /* オレンジ */
  border-radius: 9999px;
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.625rem;
  height: 1.625rem;
  transition: background-color 0.3s ease-in-out;
}

.o-o-faq-list_q button svg .line {
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* 開いている時のアイコンの変化 */
.o-o-faq-list_q button.is-open svg {
  background-color: #000;
}

.o-o-faq-list_q button.is-open svg .line:nth-child(2) {
  transform: rotate(90deg); /* 垂直線を回転させてマイナスにする */
}

.o-o-faq-list_a {
  display: none;
}
.o-o-faq-list_a.is-visible {
  display: block;
}

.o-o-faq-list_a-inner {
  align-items: start;
  column-gap: 1.5rem;
  display: grid;
  grid-template-columns: 1.5em 1fr;
  padding: 0 3rem 24px 10px;
}

.o-o-faq-list_a-head {
  font-family: Arial, sans-serif;
  color: #f08300;
  font-size: 18px;
  text-align: center;
}

.o-o-faq-list_a-body {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
}

/* --- ページ下部のボタン --- */
.btn-footer {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.btn-inquiry {
  display: block;
  width: 100%;
  max-width: 380px;
  padding: 20px;
  background-color: #26bdc8;
  color: #ffffff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 10px 25px rgba(38, 189, 200, 0.25);
  transition:
    transform 0.2s,
    background-color 0.2s;
}

.btn-inquiry:hover {
  background-color: #1eaeb9;
  transform: translateY(-1px);
}

.btn-inquiry:active {
  transform: scale(0.98);
}

/* 
入力 4
*/

.important__text {
  margin-top: -8px;
  margin-bottom: 24px;
}

.important__list {
  margin-bottom: 40px;
}

.important__button {
  margin-top: 12px;
  line-height: 1.5;
}

/*
確認
*/

.confirm__section {
  padding: 0 24px;
  margin-top: 40px;
}
.confirm__wrap {
  max-width: 544px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.confirm__heading {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 42px 0 32px;
}

.confirm__list {
  color: #000;
}

.confirm__list__item {
  margin-bottom: 24px;
}

.confirm__list__item:has(p:empty, a:empty) {
  padding-bottom: 52px;
}

.confirm__label {
  font-weight: 500;
}

.confirm__value {
  font-size: 17px;
  font-weight: 500;
  margin-top: 2px;
}

.confirm__list__item__mail {
  font-size: 24px !important;
  word-break: break-all;
}

@media only screen and (max-width: 768px) {
  .confirm__section {
    padding: 0 16px;
  }

  .confirm__heading {
    margin: 42px 0 24px;
  }

  .confirm__list {
    margin-bottom: 40px;
  }
}

/* アコーディオン */

.o-confirm-accordion {
  border-top: 1px solid #f2f2f2;
}

/* 最初のアイテムが開いている時は上の線を消す */
.o-confirm-accordion:has(.o-confirm-accordion_item:first-child .is-open) {
  border-top: none;
}

.o-confirm-accordion_item {
  border-bottom: 1px solid #f2f2f2;
  position: relative;
  transition:
    background-color 0.3s ease-in-out,
    border-radius 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
}

/* アイテムが開いている時のスタイル */
.o-confirm-accordion_item:has(.is-open) {
  background-color: #fff6eb;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-bottom: none;
}

.o-confirm-accordion_item:has(.is-open):not(:first-child) {
  margin-top: 0.75rem;
}

/* ヘッダーボタン部分 */
.o-confirm-accordion_header button {
  display: block; /* FAQのgridレイアウトから変更 */
  width: 100%;
  position: relative;
  padding: 24px 60px 24px 24px; /* アイコン分の右余白を確保 */
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  -webkit-tap-highlight-color: transparent;
}

/* タイトル */
.o-confirm-accordion_title {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  /* text-align centerは削除し、左寄せに */
}

/* プラスアイコンのスタイル */
.o-confirm-accordion_header button svg {
  background-color: #f59e0b; /* オレンジ */
  border-radius: 9999px;
  position: absolute;
  right: 1.5rem; /* 位置調整 */
  top: 50%;
  transform: translateY(-50%);
  width: 1.625rem;
  height: 1.625rem;
  transition: background-color 0.3s ease-in-out;
}

.o-confirm-accordion_header button svg .line {
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* 開いている時のアイコンの変化 */
.o-confirm-accordion_header button.is-open svg {
  background-color: #000;
}

.o-confirm-accordion_header button.is-open svg .line:nth-child(2) {
  transform: rotate(90deg);
}

/* コンテンツ部分（初期非表示） */
.o-confirm-accordion_body {
  display: none;
}

.o-confirm-accordion_body.is-visible {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.o-confirm-accordion_body-inner {
  padding: 0 24px 40px 24px;
  /* FAQにあったgridレイアウト（Q/A配置用）は削除 */
}

/* モーダル */

/* --- モーダルのスタイル --- */
.m-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  /* フレックスボックスで中央配置 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.m-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.m-modal-content {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

.m-modal-overlay.is-active .m-modal-content {
  transform: translateY(0);
}

.m-modal-header {
  padding: 24px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-modal-title {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.m-modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.m-modal-close-btn:hover {
  background-color: #f5f5f5;
}
.m-modal-close-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #999;
  position: relative;
  transform: rotate(45deg);
}
.m-modal-close-btn span::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #999;
  transform: rotate(90deg);
}

.m-modal-body {
  padding: 32px 24px;
}

/* --- カレンダーUIのスタイル --- */
.calendar-card {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  margin-top: 8px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.month-title {
  font-size: 1.125rem;
  font-weight: 700;
}

.nav-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.nav-btn:hover {
  background-color: #f3f4f6;
}

.calendar-grid {
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 0;
  color: #6b7280;
}

.weekday.sun {
  color: #ef4444;
}
.weekday.sat {
  color: #3b82f6;
}

.day {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.day:hover:not(:disabled) {
  background-color: #eff6ff;
  color: #2563eb;
}

.day:disabled {
  color: #e5e7eb;
  cursor: not-allowed;
}

.day.selected {
  background-color: #2563eb !important;
  color: white !important;
  font-weight: 700;
}

.day.sun:not(:disabled):not(.selected) {
  color: #ef4444;
}
.day.sat:not(:disabled):not(.selected) {
  color: #3b82f6;
}

.calendar-footer {
  padding: 12px 16px;
  background-color: #f9fafb;
  display: flex;
  justify-content: flex-end;
}

.close-btn {
  color: #f97316;
  background: none;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 8px;
}

.close-btn:hover {
  background-color: #fff7ed;
}

/* オーバーレイ */
#calendar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 90;
}

.custom-input-wrapper {
  position: relative;
  width: 100%;
}

/*
完了画面
*/

.thanks__section {
  padding: 0 24px;
  margin-top: 40px;
}

.thanks__wrap {
  max-width: 544px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.thanks__heading {
  padding: 40px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: #fa8200;
  background-color: #fff6e8;
  margin-bottom: 24px;
}

.thanks__text > p {
  margin-bottom: 16px;
}

@media only screen and (max-width: 768px) {
  .thanks__section {
    padding: 0 16px;
    margin-top: 48px;
  }
}

/* --- 電力エリア表モーダル (.power-area-dialog) 専用スタイル --- */
/* dialog要素自体にスタイルを当てる */
.power-area-dialog {
  /* リセットは上の dialog で済んでいるので調整のみ */
  width: 90%;
  max-width: 800px;
  height: auto;
  max-height: 90vh; /* 画面からはみ出さない */
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  color: #333;
  background-color: #fff;
  overflow: hidden;
  margin: auto;
  inset: 0;
}

.dialog-inner {
  padding: 30px;
  overflow-y: auto;
  max-height: 90vh;
  box-sizing: border-box;
}

.dialog-close-wrap {
  position: absolute;
  top: 10px;
  right: 15px;
  z-index: 10;
}

.dialog-close-btn {
  background: none;
  border: none;
  font-size: 32px; /* 少し大きく */
  color: #666;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.dialog-close-btn:hover {
  color: #333;
}

/* モーダル内のテーブル */
.modal__juryo__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.modal__juryo__table th,
.modal__juryo__table td {
  border: 1px solid #ccc;
  padding: 12px 8px;
  text-align: left;
}

.modal__juryo__table th {
  background: #f0f0f0;
  width: 30%;
  font-weight: 700;
}

.meter-sample-area {
  /* 【修正】初期状態をCSSでも非表示にする */
  display: none;

  margin-top: 20px;
  padding: 20px;
  background-color: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
  max-width: 544px;
}

.meter-sample-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #ccc;
}

.meter-sample-icon {
  font-size: 20px;
  margin-right: 8px;
}

.meter-sample-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 0;
  line-height: 1.4;
}

.meter-sample-company {
  color: #fa8200;
}

.meter-sample-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.meter__button {
  flex: 1;
  padding: 16px;
  font-size: 14px;
}

.meter__button.is-active {
  background-color: #fa8200;
  color: #fff;
}

.meter-sample-body {
  text-align: center;
  border-radius: 4px;
}

.meter-sample-img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: opacity 0.2s ease;
  opacity: 1;
}

.meter-sample-img.fade-out {
  opacity: 0.5;
}

.meter-sample-note {
  margin-top: 12px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
  text-align: left;
}
