@charset "utf-8";

/* ===============================
   フォーム本体
   =============================== */
.contact-form {
    max-width: 840px;
    margin: 64px auto 80px;
    padding: 42px 44px 52px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 0% 0%, rgba(120, 220, 180, 0.18), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(50, 150, 110, 0.16), transparent 55%),
      linear-gradient(145deg, rgba(246,251,248,0.98) 0%, rgba(233,243,237,0.99) 34%, rgba(247,251,249,1) 100%);
    box-shadow:
      0 34px 96px rgba(11, 53, 38, 0.26),
      0 0 0 1px rgba(255, 255, 255, 0.95) inset;
    border: 1px solid rgba(169, 197, 186, 0.9);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.contact-form::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px dashed rgba(178, 210, 197, 0.32);
    pointer-events: none;
}

.contact-form::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -72px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.32), transparent 68%);
    pointer-events: none;
    mix-blend-mode: screen;
}

.contact-form h2 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 36px 0 26px;
    font-size: 20px;
    font-weight: 700;
    color: #164f33;
    letter-spacing: 0.1em;
}

.contact-form h2:first-of-type {
    justify-content: center;
    font-size: 30px;
    margin-top: 2px;
    margin-bottom: 34px;
}

.contact-form h2:first-of-type::before {
    content: "CONTACT";
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #0f3b29;
    padding: 6px 16px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, rgba(224, 244, 232, 1), rgba(210, 236, 222, 0.96));
    border: 1px solid rgba(56, 142, 107, 0.4);
    margin-right: 14px;
    text-transform: uppercase;
    box-shadow: 0 10px 22px rgba(27, 83, 59, 0.22);
}

.contact-form h2:not(:first-of-type)::before,
.contact-form h2:not(:first-of-type)::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(32, 92, 58, 0.42));
}

.contact-form h2:not(:first-of-type)::after {
    background: linear-gradient(to left, transparent, rgba(32, 92, 58, 0.42));
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #263238;
    font-weight: 600;
    font-size: 15px;
}

.contact-form .label-note {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: #78909c;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 13px 17px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 1px solid rgba(176, 190, 197, 0.92);
    font-size: 15px;
    color: #263238;
    background: rgba(255, 255, 255, 0.99);
    box-sizing: border-box;
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background-color 0.2s ease,
        transform 0.09s ease,
        filter 0.18s ease;
}

.contact-form .form-row {
    display: flex;
    gap: 22px;
}

.contact-form .form-col {
    flex: 1 1 0;
}

.contact-form select {
    appearance: none;
    background-image:
      linear-gradient(45deg, transparent 50%, #78909c 50%),
      linear-gradient(135deg, #78909c 50%, transparent 50%);
    background-repeat: no-repeat;
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 6px 6px, 6px 6px;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #2d7a50;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.98),
        0 0 0 3px rgba(45, 122, 80, 0.26);
    outline: none;
    transform: translateY(-1px);
    background-color: #ffffff;
    filter: saturate(1.02);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #b0bec5;
    font-size: 14px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 18px;
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(176, 190, 197, 0.98);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(120, 144, 156, 0.18);
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.08s ease,
        color 0.18s ease;
    font-size: 13px;
    color: #37474f;
}

.chip-text {
    pointer-events: none;
}

.chip-input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.chip:hover {
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(120, 144, 156, 0.28);
    transform: translateY(-1px);
}

label.chip:has(.chip-input:checked) {
    background: linear-gradient(135deg, #2d7a50, #3ba06d);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(45, 122, 80, 0.7);
    transform: translateY(-1px);
}

.chip-input:checked + .chip-text {
    font-weight: 600;
}

.error-inline {
    margin-top: -2px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #e53935;
}

.input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 2px rgba(229, 57, 53, 0.18);
}

.error-global {
    max-width: 820px;
    margin: 0 auto 22px;
    padding: 12px 18px;
    border-radius: 16px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid rgba(229, 57, 53, 0.25);
    list-style: disc inside;
    font-size: 14px;
    box-shadow: 0 18px 42px rgba(229, 57, 53, 0.14);
}

.area-alert {
  max-width: 820px;
  margin: 0 auto 22px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.7;
  background: rgba(255, 245, 245, 0.99);
  color: #c53030;
  border: 1px solid rgba(229, 62, 62, 0.45);
  display: none;
  align-items: center;
  box-shadow: 0 18px 40px rgba(229, 62, 62, 0.2);
}

.area-alert::before {
  content: "!";
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: bold;
}

.area-alert.area-alert--visible {
  display: flex;
  animation: areaAlertFadeIn 0.22s ease-out;
}

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

.contact-detail-group {
    margin-top: 10px;
    margin-bottom: 14px;
    padding: 14px 18px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(176, 190, 197, 0.88);
    box-shadow: 0 10px 26px rgba(120, 144, 156, 0.2);
}

.is-hidden {
    display: none;
}

.contact-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 0;
    margin-top: 24px;
    background: radial-gradient(circle at 0% 0%, #52b788 0%, #2d7a50 40%, #1b4332 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.15s ease;
    box-shadow: 0 20px 46px rgba(45, 122, 80, 0.62);
}

.contact-form button::after {
    content: "→";
    font-size: 15px;
    transform: translateX(0);
    transition: transform 0.16s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(45, 122, 80, 0.74);
}

.contact-form button:hover::after {
    transform: translateX(4px);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 14px 30px rgba(45, 122, 80, 0.42);
}

.contact-form button.btn-disabled,
.contact-form button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    background: linear-gradient(135deg, #9eaba4, #7f8c86);
}

.contact-form .success {
    color: #1b5e20;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    border-radius: 16px;
    border: 1px solid rgba(129, 199, 132, 0.82);
    box-shadow: 0 18px 36px rgba(76, 175, 80, 0.24);
}

@media screen and (max-width: 900px) {
    .contact-form {
        margin: 42px 16px 50px;
        padding: 28px 20px 34px;
        border-radius: 24px;
    }

    .contact-form::before {
        inset: 12px;
        border-radius: 22px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form h2:first-of-type {
        font-size: 24px;
        margin-bottom: 26px;
    }

    .contact-form h2 {
        font-size: 18px;
        margin: 28px 0 20px;
    }
}

@media screen and (max-width: 520px) {
    .contact-form {
        margin: 32px 10px 40px;
        padding: 24px 14px 28px;
        border-radius: 22px;
    }

    .contact-form h2:first-of-type {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .contact-form h2 {
        font-size: 17px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea,
    .contact-form select {
        font-size: 14px;
        padding: 11px 13px;
    }

    .chip {
        font-size: 12px;
        padding: 6px 14px;
    }

    .area-alert {
        border-radius: 14px;
        font-size: 13px;
    }
}

/* ===============================
   確認画面スタイル
   =============================== */
.confirm-wrapper {
    max-width: 960px;
    margin: 0 auto 3rem;
    padding: 2.5rem 1.75rem;
    background: #f7fafc;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.confirm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.confirm-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: #2563eb;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    margin-bottom: 0.75rem;
}

.confirm-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.confirm-lead {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.7;
}

.confirm-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .confirm-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.confirm-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.confirm-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    border-left: 4px solid #2563eb;
    padding-left: 0.6rem;
    margin: 0 0 1rem;
}

.confirm-list {
    margin: 0;
}

.confirm-row {
    display: grid;
    grid-template-columns: minmax(0, 36%) minmax(0, 64%);
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.confirm-row:last-child {
    border-bottom: none;
}

.confirm-row dt {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.confirm-row dd {
    margin: 0;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.6;
    word-break: break-all;
}

.confirm-row dd br {
    line-height: 1.4;
}

/* ボタンエリア */
.confirm-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .confirm-buttons {
        flex-direction: row;
        justify-content: flex-end;
    }
}

.confirm-buttons .btn-back,
.confirm-buttons .btn-send {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.18s ease;
    min-width: 180px;
}

/* 戻るボタン */
.confirm-buttons .btn-back {
    background: #ffffff;
    color: #374151;
    border: 1px solid #cbd5f5;
}

.confirm-buttons .btn-back:hover {
    background: #eef2ff;
}

/* 送信ボタン */
.confirm-buttons .btn-send {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.confirm-buttons .btn-send:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

/* ===============================
   ページヘッダー
   =============================== */
.page-header {
    max-width: 960px;
    margin: 40px auto 32px;
    padding: 24px 24px 28px;
    border-radius: 16px;
    background: linear-gradient(135deg, #e6f4ff 0%, #f5fbff 40%, #ffffff 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

/* 背景アクセント */
.page-header::before {
    content: "";
    position: absolute;
    right: -60px;
    top: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 171, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 200, 83, 0.16), transparent 60%);
    pointer-events: none;
}

/* タイトル */
.page-title {
    position: relative;
    margin: 0 0 16px;
    padding-left: 14px;
    font-size: 1.6rem;
    line-height: 1.5;
    font-weight: 700;
    color: #114267;
    letter-spacing: 0.04em;
}

/* タイトル左の縦ライン */
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(to bottom, #00a0e9, #00c853);
}

/* リード文 */
.page-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.9;
    color: #35505f;
}

/* スマホでの調整 */
@media (max-width: 768px) {
    .page-header {
        margin: 24px 16px 24px;
        padding: 18px 16px 22px;
        border-radius: 12px;
    }

    .page-title {
        font-size: 1.3rem;
        padding-left: 10px;
    }

    .page-lead {
        font-size: 0.9rem;
    }
}

/* ===============================
   page-header 内の ベネフィット（POINT）
   =============================== */
.page-header .page-benefits {
  margin-top: 18px;
  padding: 14px 18px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(144, 202, 249, 0.45);
  box-shadow: 0 10px 24px rgba(13, 71, 161, 0.12);
}

.page-header .page-benefits h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #12523a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* POINT バッジ */
.page-header .page-benefits h2::before {
  content: "POINT";
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #1976d2;
  border: 1px solid rgba(25, 118, 210, 0.35);
}

.page-header .page-benefits ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.page-header .page-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 4px;
  font-size: 0.92rem;
  color: #29434e;
  line-height: 1.7;
}

.page-header .page-benefits li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4caf50, #1b5e20);
  box-shadow: 0 0 0 3px rgba(165, 214, 167, 0.7);
}

/* スマホ調整 */
@media (max-width: 768px) {
  .page-header .page-benefits {
    margin-top: 14px;
    padding: 12px 12px 4px;
  }

  .page-header .page-benefits li {
    font-size: 0.9rem;
  }
}

/* ===============================
   FAQ セクション
   =============================== */
.faq {
  max-width: 960px;
  margin: 0 auto 72px;
  padding: 26px 22px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.faq > h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq > h2::before {
  content: "FAQ";
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  padding: 5px 11px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.4);
}

.faq-item {
  position: relative;
  padding: 14px 14px 14px 40px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.8);
  box-shadow: 0 10px 26px rgba(148, 163, 184, 0.18);
  margin-bottom: 12px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.75;
}

/* Q の丸アイコン */
.faq-item::before {
  content: "Q";
  position: absolute;
  left: 12px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .faq {
    margin: 0 16px 48px;
    padding: 20px 14px 22px;
  }

  .faq-item {
    padding: 12px 10px 12px 36px;
  }

  .faq > h2 {
    font-size: 1.05rem;
  }

  .faq-item h3 {
    font-size: 0.95rem;
  }

  .faq-item p {
    font-size: 0.88rem;
  }
}

/* ================================
   太陽光発電・蓄電池おすすめセクション
   .page-recommend
================================ */
.page-recommend {
    max-width: 960px;
    margin: 3rem auto 0;
    padding: 2.5rem 2rem;
    background: #f5fbff;           /* 薄いブルー系（お好みで変更OK） */
    border-radius: 12px;
    border: 1px solid #e0edf7;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.page-recommend h2 {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.8rem;
    line-height: 1.6;
    color: #1a365d;                /* 少し濃いめの青（変更可） */
}

/* リストのベース */
.page-recommend ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 各項目 */
.page-recommend li {
    position: relative;
    padding: 0.85rem 0.75rem 0.85rem 2rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: #ffffff;
    border-radius: 999px;          /* pill型 */
    border: 1px solid #d6e4f0;
}

/* 先頭アイコン（●） */
.page-recommend li::before {
    content: "✔";
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #0d9488;                /* エメラルド系（エコ感） */
}

/* 最後の要素だけ余白を少し調整 */
.page-recommend li:last-child {
    margin-bottom: 0;
}

/* -----------------------
   スマホ向け微調整
------------------------ */
@media (max-width: 767px) {
    .page-recommend {
        margin-top: 2.5rem;
        padding: 2rem 1.25rem;
    }

    .page-recommend h2 {
        font-size: 1.2rem;
        text-align: left;
    }

    .page-recommend li {
        font-size: 0.9rem;
        white-space: normal;       /* 折り返し優先 */
    }
}

/* -----------------------
   PCで2カラム風にしたい場合
   （好みでON/OFFしてください）
------------------------ */
/*
@media (min-width: 768px) {
    .page-recommend ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 1.25rem;
    }

    .page-recommend li {
        margin-bottom: 0;
    }
}
*/
