/* ============================================================
   FEE STRUCTURE Page
   ============================================================ */

/* Hero は共通 .page-hero を使用（main.css） */

/* ============================================================
   共通
   ============================================================ */
.fee-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter-width);
}

/* ============================================================
   説明テキスト
   ============================================================ */
.fee-intro {
  padding: 80px var(--gutter-width);
}

.fee-intro__text {
  max-width: 790px;
  margin: 0 auto;
}

.fee-intro__text p {
  font-size: 16px;
  font-family: var(--font-ja);
  font-weight: var(--font-weight-medium);
  line-height: 28px;
  letter-spacing: 0.12em;
}

/* ============================================================
   完全成功報酬制
   ============================================================ */
.fee-complete {
  padding: 0 0 100px;
}

.fee-complete__box {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 60px;
}

.fee-complete__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 40px;
  color: #145393;
  text-align: center;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
  line-height: 56px;
}

.fee-complete__lead {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 33px;
  margin-bottom: 30px;
}

.fee-complete__zero {
  font-weight: 600;
  font-size: 44px;
  margin-left: 4px;
  line-height: 33px;
  letter-spacing: 0.16em;
}

.fee-complete__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.fee-complete__item {
  position: relative;
  background: #fff;
  border-radius: 6px;
  padding: 32px;
  box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.fee-complete__item-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 80px;
  pointer-events: none;
}

.fee-complete__item-title {
  font-family: var(--font-ja);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-right: 80px;
}

.fee-complete__item-desc {
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.04em;
}

/* ============================================================
   成功報酬の算出方法
   ============================================================ */
.fee-calc {
  padding: 80px var(--gutter-width);
}

.fee-calc .fee-inner {
  max-width: 1055px;
}

.fee-calc__title {
  font-family: var(--font-ja);
  font-weight: 700;
  font-size: 28px;
  color: #222;
  text-align: center;
  letter-spacing: 0.16em;
  margin-bottom: 56px;
}

.fee-calc__wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.fee-calc__desc {
  max-width: 980px;
  margin: 0 auto 28px;
}

.fee-calc__desc p {
  font-size: 14px;
  line-height: 28px;
  color: #333;
  letter-spacing: 0.08em;
}

.fee-calc__desc p + p {
  margin-top: 24px;
}

/* 計算例 */
.fee-calc__example {
  padding: 30px 28px;
  background-color: #ffffff;
  border: 1px solid #145393;
  height: 100%;
  width: 100%;
}

.fee-calc__example-title {
  font-family: var(--font-ja);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  padding-bottom: 15px;
  letter-spacing: 0.16em;
  border-bottom: 1px dashed #e0e0e0;
  color: #145393;
}

.fee-calc__example-content {
  display: flex;
  flex-direction: column;
}

.fee-calc__example-row {
  display: grid;
  grid-template-columns: 160px auto auto 100px;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding-block: 10px;
  border-bottom: 1px dashed #e0e0e0;
}

.fee-calc__example-row:last-child {
  border-bottom: 0;
}

.fee-calc__example-row--total {
  padding-top: 10px;
  font-weight: 700;
}

.fee-calc__example-label {
  text-align: left;
}

.fee-calc__example-formula {
  font-family: var(--font-en);
  letter-spacing: 0.04em;
  min-width: 40px;
  text-align: left;
}

.fee-calc__example-eq {
  color: #888;
}

.fee-calc__example-result {
  text-align: right;
}

/* 料率テーブル */
.fee-calc__table-wrapper {
  height: 100%;
  width: 100%;
}

.fee-calc__table-column,
.fee-calc__example-column {
  display: flex;
  width: 100%;
}

.fee-calc__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px;
  border-radius: 3px;
  overflow: hidden;
}

.fee-calc__table thead th {
  padding: 14px 20px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #6a818f;
  text-align: center;
  letter-spacing: 0.16em;
}

.fee-calc__table tbody td {
  padding: 12px 20px;
  font-family: var(--font-ja);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 24px;
}

.fee-calc__table tbody td:last-child {
  text-align: center;
  width: 180px;
}

.fee-calc__table tbody tr:nth-child(odd) td {
  background: #e1e5e8;
}

.fee-calc__table tbody tr:nth-child(even) td {
  background: #d5e7f0;
}

.fee-calc__notes p {
  font-size: 13px;
  line-height: 22px;
  color: #555;
  letter-spacing: 0.04em;
}

.fee-calc__notes {
  margin-top: 14px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
  .fee-intro {
    padding: 48px 0 40px;
  }

  .fee-intro__text p {
    font-size: 14px;
  }

  .fee-complete {
    padding: 0;
  }

  .fee-complete__box {
    padding: 32px 0;
  }

  .fee-complete__title {
    font-size: 24px;
  }

  .fee-complete__zero {
    font-size: 28px;
  }

  .fee-complete__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fee-complete__item {
    padding: 24px;
  }

  .fee-complete__item-badge {
    width: 60px;
    height: 60px;
  }

  .fee-complete__item-title {
    font-size: 18px;
    padding-right: 60px;
    margin-bottom: 12px;
  }

  .fee-complete__item-desc {
    font-size: 13px;
    line-height: 22px;
  }

  .fee-calc {
    padding: 60px 0;
  }

  .fee-calc__title {
    font-size: 22px;
    margin-bottom: 32px;
  }

  .fee-calc__wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .fee-calc__desc p {
    line-height: 24px;
  }

  .fee-calc__desc p + p {
    margin-top: 16px;
  }

  .fee-calc__example {
    padding: 20px;
  }

  .fee-calc__example-title {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .fee-calc__example-row {
    grid-template-columns: 140px auto auto 80px;
    font-size: 13px;
    gap: 6px;
  }

  .fee-calc__example-formula {
    min-width: 0;
  }

  .fee-calc__table-wrapper {
    padding: 16px 0;
  }

  .fee-calc__notes {
    margin-top: 12px;
  }

  .fee-calc__table thead th,
  .fee-calc__table tbody td {
    padding: 10px 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
  }

  .fee-calc__table thead th:last-child {
    width: 80px;
  }

  .fee-calc__table tbody td:last-child {
    width: 120px;
  }

  .fee-calc__notes p {
    font-size: 12px;
    line-height: 20px;
  }
}
