@charset "UTF-8";

/* ==============================================================
   1. 変数定義（カラーパレット・フォント）
   ============================================================== */
:root {
  --bcart-blue: #1e40af;
  --hojo-teal: #33a89b;
  --hojo-teal-hover: #2a8f83;
  --hojo-accent: #ed6c6c;
  --hojo-blue-belt: #2da8ed;

  --bg-light: #f3f8fb;
  --bg-gray: #f6f6f6;
  --bg-charm: #f1f6ff;

  --text-main: #333333;
  --text-muted: #666666;

  --font-base: 'Noto Sans JP', sans-serif;
  --arrow-color: #dcdcdc;
}

/* ==============================================================
   2. ベーススタイル
   ============================================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-base);
  color: var(--text-main);
  line-height: 1.6;
  background-color: #ffffff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* ==============================================================
   3. 共通ユーティリティクラス
   ============================================================== */
.section-padding { padding: 80px 0; }
@media (max-width: 768px) { .section-padding { padding: 50px 0; } }

.bg-light-blue { background-color: var(--bg-light); }
.bg-light-gray { background-color: var(--bg-gray); }
.bg-charm      { background-color: var(--bg-charm); }
.text-bcart-blue { color: var(--bcart-blue) !important; }
.text-hojo-teal  { color: var(--hojo-teal) !important; }
.text-main       { color: var(--text-main); }

/* 見出し共通 */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .section-title { font-size: 1.5rem; margin-bottom: 2rem; }
}

/* プライマリボタン共通 */
.btn-hojo-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--hojo-teal);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 10px rgba(51, 168, 155, 0.3);
  transition: all 0.3s ease;
}
.btn-hojo-main:hover {
  background-color: var(--hojo-teal-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(51, 168, 155, 0.4);
}

/* ==============================================================
   4. ヘッダー & ヒーロー（FV）セクション
   ============================================================== */
.hojo-header {
  padding: 12px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-logo img {
  height: 34px;
}
.header-nav .nav-link {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 18px;
  white-space: nowrap;
}
.btn-hojo-nav {
  background-color: var(--hojo-teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 6px;
  white-space: nowrap;
}

/* HEROエリア */
.hojo-hero {
  background-color: #f3fbff;
  padding-top: 100px;
  padding-bottom: 0;
}
.hero-text-block {
  position: relative;
  z-index: 10;
}
.hero-sub-title {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 5px;
}
.hero-main-title {
  color: var(--bcart-blue);
  font-size: 3.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-old-name {
  color: var(--bcart-blue);
  font-weight: 700;
  font-size: 1.8rem;
}
.hero-lead {
  font-size: 1.3rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-img-container {
  max-width: 850px;
  margin: 0 auto;
  line-height: 0;
}
.hero-illustration { width: 100%; }

/* FVバッジ（被り対策） */
@media (min-width: 992px) {
  .hero-badge-wrap {
    position: absolute;
    top: -65px;
    right: -80px;
    z-index: 20;
  }
  .hero-badge-img {
    width: 160px;
    opacity: 0;
    animation: badgeFlyIn 1.2s ease-out 0.8s forwards;
  }
}
@keyframes badgeFlyIn {
  0%   { opacity: 0; transform: translate(50px, -50px) scale(0.5); }
  70%  { opacity: 1; transform: translate(-5px, 5px) scale(1.1); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* 青帯メッセージ */
.bg-blue-belt {
  background-color: var(--hojo-blue-belt);
  color: #fff;
  padding: 30px 0;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* HEROレスポンシブ */
@media (max-width: 991px) {
  .hojo-hero { padding-top: 60px; }
  .hero-sub-title, .hero-main-title { font-size: 1.6rem; }
  .hero-old-name { font-size: 1.1rem; }

  .hero-badge-wrap {
    position: absolute;
    top: -45px;
    right: 0;
    z-index: 20;
  }
  .hero-badge-img { width: 70px; }
  .bg-blue-belt { font-size: 1rem; padding: 20px 10px; }

  .hojo-hero .row .mb-5 { justify-content: center; display: flex; }
  .btn-hojo-main { font-size: 1rem; padding: 10px 25px; width: auto; }
}
@media (max-width: 375px) {
  .hero-sub-title, .hero-main-title { font-size: 1.4rem; }
  .hero-badge-img { width: 60px; }
}

/* ==============================================================
   5. お悩みセクション
   ============================================================== */
.trouble-main-title {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.title-underline {
  width: 120px;
  height: 4px;
  background-color: var(--hojo-blue-belt);
  margin: 15px auto 0;
}
.trouble-img {
  height: 120px;
  object-fit: contain;
}
.trouble-text-box {
  background-color: #f0f4f8;
  padding: 15px 10px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 視線誘導アニメーション */
.down-arrow-animated {
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 25px solid var(--bcart-blue);
  margin: 0 auto;
  animation: bounceDown 2s infinite ease-in-out;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(15px); }
}

/* まるごと解決ボックス */
.solution-box {
  background-color: #e9f8ff;
  border-radius: 20px;
  padding: 40px 50px;
}
.solution-text {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.marker-yellow {
  background: linear-gradient(transparent 60%, #fffcd4 60%);
  padding-bottom: 2px;
}
.solution-person-img {
  width: 90%;
  max-width: 210px;
  margin-top: -60px;
  margin-bottom: -40px;
}

/* 補助金説明 */
.about-title {
  color: var(--bcart-blue);
  font-size: 1.5rem;
  font-weight: 900;
}
.about-text { font-size: 0.95rem; line-height: 1.8; }
.about-note { font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); }
.text-hojo-blue-belt { color: var(--hojo-blue-belt); text-decoration: underline; }

@media (max-width: 991px) {
  .trouble-main-title { font-size: 1.6rem; }
  .trouble-img { height: 90px; }
  .trouble-text-box { font-size: 0.85rem; padding: 10px 5px; }
  .solution-box { padding: 30px 20px 0; }
  .solution-text { font-size: 1.6rem; margin-bottom: 20px !important; }
  .solution-person-img { margin-top: 0; margin-bottom: 0; width: 170px; }
}

/* ==============================================================
   6. 3つの魅力セクション
   ============================================================== */
.charm-title {
  color: var(--bcart-blue);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.charm-text {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
}
.charm-summary-wrap { width: 100%; }

/* アニメーションバッジ */
.charm-badge-img {
  position: absolute;
  width: 170px;
  z-index: 10;
  opacity: 0;
  transform: scale(0.5);
}

@media (min-width: 992px) {
  .charm-badge-img {
    top: 15%;
    right: 5%;
    transform: translate(50px, -50px) scale(0.5);
  }
}
.charm-badge-img.is-active {
  animation: badgeFlyInScroll 0.8s ease-out forwards;
}
@keyframes badgeFlyInScroll {
  0%   { opacity: 0; transform: translate(50px, -50px) scale(0.5); }
  70%  { opacity: 1; transform: translate(-5px, 5px) scale(1.1); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* 支援ボックス */
.support-box {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 40px 50px;
  width: 100%;
}
.support-text {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.6;
}
.support-person-img {
  width: 90%;
  max-width: 210px;
  margin-top: -60px;
  margin-bottom: -40px;
}

@media (max-width: 991px) {
  .charm-title { font-size: 1.1rem; }
  .charm-badge-img {
    width: 65px;
    top: -15px;
    right: -10px;
    bottom: auto;
    transform: translate(50px, -50px) scale(0.5);
  }
  .support-box { padding: 30px 20px 0; }
  .support-text { font-size: 1.6rem; margin-bottom: 20px !important; }
  .support-person-img { margin-top: 0; margin-bottom: 0; width: 170px; }
}

/* ==============================================================
   7. 主な流れ（Step）セクション
   ============================================================== */
.step-card {
  background-color: #f4f8fc;
  border-radius: 12px;
  padding: 30px 20px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--bcart-blue);
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}
.step-icon { height: 70px; margin-bottom: 20px; }
.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.step-desc { font-size: 0.85rem; line-height: 1.6; font-weight: 700; margin-bottom: 0; }

/* フロー矢印制御 */
@media (min-width: 992px) {
  .step-col:not(:nth-child(3n)) .step-card::after {
    content: '';
    position: absolute;
    top: 110px;
    right: -34px;
    transform: translateY(-50%);
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 18px solid var(--arrow-color);
    z-index: 10;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .step-col:not(:nth-child(2n)) .step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-left: 12px solid var(--arrow-color);
    z-index: 10;
  }
}
@media (max-width: 767px) {
  .step-col:not(:last-child) .step-card::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--arrow-color);
    z-index: 10;
  }
}

/* ==============================================================
   8. フォームセクション
   ============================================================== */
.btn-checker-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
.btn-checker-link:hover { background-color: #f8f9fa; border-color: #ccc; }

.contact-form-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 50px 60px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.badge-required {
  background-color: #1a73e8;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.form-control-lg {
  font-size: 0.95rem;
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #dce1e6;
}
.form-control-lg:focus {
  border-color: var(--hojo-blue-belt);
  box-shadow: 0 0 0 0.25rem rgba(45, 168, 237, 0.25);
}
.form-control-lg::placeholder { color: #adb5bd; }

.form-check-input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  border-color: #b0b8c1;
}
.form-check-input:checked {
  background-color: #1a73e8;
  border-color: #1a73e8;
}
.check-large {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.1rem;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .contact-form-card { padding: 30px 20px; }
}

/* ==============================================================
   9. スケジュール＆フッター
   ============================================================== */
.w-30 { width: 30%; }
.w-70 { width: 70%; }

.schedule-table {
  border-color: #dee2e6;
  font-size: 0.95rem;
}
.schedule-table th, .schedule-table td { border-color: #dee2e6; }

.hojo-footer { background-color: #555555; color: #ffffff; }
.footer-cta { padding: 80px 0; }
.footer-cta-title { font-size: 2.4rem; letter-spacing: 0.05em; }

.btn-footer-dl {
  border-radius: 50px !important;
  padding: 18px 40px;
  font-size: 1.5rem;
  color: var(--bcart-blue) !important;
  transition: all 0.3s ease;
}
.btn-footer-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2) !important;
}
.footer-divider { border-top: 1px solid rgba(255, 255, 255, 0.2); }
.footer-bottom { padding: 40px 0 60px; }
.footer-logo img { height: 45px; }

@media (max-width: 991px) {
  .footer-cta-title { font-size: 1.6rem; }
  .btn-footer-dl {
    padding: 15px 25px;
    font-size: 1.1rem;
    width: 90%;
  }
}
@media (max-width: 768px) {
  .schedule-table { font-size: 0.85rem; }
}

/* ==============================================================
   10. 補助対象セクション（3費目カード・補助額シミュ）
   ============================================================== */

/* ===== 3費目カード ===== */
.subsidy-cost-card {
  background-color: #e9f8ff;
  border-radius: 16px;
  padding: 0 24px 18px;
  position: relative;
  margin-top: 26px;
}
.subsidy-cost-head-wrap {
  background-color: #e9f8ff;
  width: 70%;
  margin: 0 auto;
  padding: 14px 10px 12px;
  border-radius: 16px;
  position: relative;
  top: -26px;
  margin-bottom: -14px;
  text-align: center;
}
.subsidy-cost-head {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.3rem;
  display: inline-block;
  padding-bottom: 10px;
  border-bottom: 3px solid #fffcd4;
}
.subsidy-cost-body {
  padding-top: 4px;
  text-align: center;
}
.subsidy-cost-catch {
  color: var(--bcart-blue);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 14px;
}
.subsidy-cost-note {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 16px;
}
.subsidy-cost-note--nowrap {
  font-size: 0.92rem;
}
.subsidy-cost-tag {
  display: inline-block;
  background-color: var(--hojo-blue-belt);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  padding: 10px 26px;
  border-radius: 999px;
}
.subsidy-cost-tag sup { font-size: 0.55em; }

/* ===== 補助額イメージ 見出し ===== */
.subsidy-sim-lead {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}
.subsidy-sim-sub {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== シミュカード ===== */
.subsidy-sim-title {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--bcart-blue);
}
.subsidy-sim-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 30px 34px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

/* 凡例 */
.subsidy-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.subsidy-legend span { display: inline-flex; align-items: center; }
.subsidy-swatch {
  width: 16px; height: 12px;
  border-radius: 2px;
  margin-right: 6px;
  display: inline-block;
}
.swatch-hojo { background-color: var(--bcart-blue); }
.swatch-self { background-color: #c7cdd4; }

/* バー */
.subsidy-bar-row { margin-bottom: 20px; }
.subsidy-bar-row:last-of-type { margin-bottom: 0; }
.subsidy-bar-label {
  font-size: 1.05rem;        /* 0.9rem → 大きく */
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}
.subsidy-bar-label span {
  font-size: 0.85rem;        /* 少し大きく */
  font-weight: 500;
  color: var(--text-muted);
}

.subsidy-bar-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.subsidy-bar {
  display: flex;
  height: 40px;               /* 32px → 太く */
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.subsidy-bar-hojo { background-color: var(--bcart-blue); height: 100%; }
.subsidy-bar-self { background-color: #c7cdd4; height: 100%; }
.subsidy-bar-amount {
  font-size: 1.1rem;          /* 0.95rem → 大きく */
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  white-space: nowrap;
}
.subsidy-bar-amount strong { color: var(--bcart-blue); font-size: 1.15rem; }

.subsidy-bar-flex--full {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* バー全体の最大幅をコンテナ比率で固定（200万=100%・100万=50%・47.5万=24%） */
.subsidy-bar-outer-200 { width: 100%; }
.subsidy-bar-outer-100 { width: 50%; }
.subsidy-bar-outer-47  { width: 24%; }

/* ===== レスポンシブ ===== */
@media (max-width: 991px) {
  .subsidy-cost-catch { font-size: 1rem; }
  .subsidy-sim-lead { font-size: 1.15rem; }
  .subsidy-sim-title { font-size: 1.05rem; }
  .subsidy-sim-card { padding: 22px 16px; }
  .subsidy-legend { gap: 16px; font-size: 0.8rem; }

  .subsidy-bar-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .subsidy-bar-amount { font-size: 0.85rem; white-space: normal; }
}
@media (max-width: 575px) {
  .subsidy-bar { min-width: 120px; }
}
