@charset "UTF-8";

/**
 * 料金ページ（/fee/ ・ page-fee.php）専用スタイル
 *
 * ■ 設計方針
 * - すべてのセレクタを .pfee 配下にスコープし、既存 assets/css/style.css の
 *   クラス（l- / m- / u- 系）とは一切干渉しない独立スタイルとして作成。
 * - 変数はこのファイル内で --pfee-* として定義（既存の --color__* 等は上書きしない）。
 * - このファイルは page-fee.php からのみ読み込まれるため、他ページには影響しない。
 * - SCSS のビルド対象外（assets/css/style.css を再ビルドしても上書きされない）。
 *
 * ■ ブレークポイント
 * - PC ファースト。SP は max-width: 767px（既存テーマと同じ基準）。
 */

.pfee {
  /* カラー（既存テーマのトーンに合わせた値をこのファイル内で独自定義） */
  --pfee-text: #222222;
  --pfee-white: #ffffff;
  --pfee-yellow: #ffe800;
  --pfee-yellow-light: #fffce2;
  --pfee-yellow-pale: #fffdf2;
  --pfee-orange: #ff6a00;
  --pfee-cream: #f9f6f0;
  --pfee-gray-50: #fcfcfc;
  --pfee-gray-100: #f8f8f8;
  --pfee-gray-200: #f2f2f2;
  --pfee-gray-300: #d9d9d9;
  --pfee-gray-500: #a8a8a8;
  --pfee-gray-700: #7a7a7a;
  --pfee-border: #eaeaea;

  /* タイポ */
  --pfee-font-ja: "Zen Maru Gothic", sans-serif;
  --pfee-font-num: "Montserrat", sans-serif;

  /* レイアウト */
  --pfee-inner: 1112px;
  --pfee-radius: 16px;
  --pfee-duration: 0.3s;

  display: block;
  padding-block: 72px 96px;
  color: var(--pfee-text);
  font-family: var(--pfee-font-ja);
  line-height: 1.8;
}

.pfee *,
.pfee *::before,
.pfee *::after {
  box-sizing: border-box;
}

.pfee__inner {
  width: 100%;
  max-width: calc(var(--pfee-inner) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

/* =========================================
   リード
   ========================================= */
.pfee__lead {
  text-align: center;
}

.pfee__lead-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 2;
}

.pfee__lead-note {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.9;
}

.pfee__lead-caption {
  margin: 12px 0 0;
  font-size: 0.875rem;
  color: var(--pfee-gray-700);
}

.pfee__lead-strong {
  padding-inline: 2px;
  font-weight: 700;
  color: var(--pfee-text);
  background: linear-gradient(transparent 60%, var(--pfee-yellow) 60%);
}

.pfee__br-pc {
  display: inline;
}

/* =========================================
   法人／個人 タブ
   ========================================= */
.pfee-tabs {
  margin-top: 48px;
}

/*
 * タブの実体は name="pfee-tab" のラジオボタン。
 * 見た目は label（.pfee-tabs__btn）、表示切替は :checked ~ .pfee-panel--* で行うため
 * JavaScript を一切使わない。JS 無効・スクリプト読み込み失敗時でも確実に切り替わる。
 */
.pfee-tabs__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}

.pfee-tabs__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}

.pfee-tabs__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 18px 16px;
  border: 2px solid var(--pfee-gray-300);
  border-radius: 999px;
  background-color: var(--pfee-white);
  color: var(--pfee-gray-700);
  font-family: inherit;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  transition:
    background-color var(--pfee-duration),
    border-color var(--pfee-duration),
    color var(--pfee-duration),
    box-shadow var(--pfee-duration);
}

.pfee-tabs__btn-label {
  font-size: 1.25rem;
  font-weight: 700;
}

.pfee-tabs__btn-note {
  font-size: 0.75rem;
}

/* 選択中のタブ */
#pfee-tab-corporate:checked ~ .pfee-tabs__list .pfee-tabs__btn[for="pfee-tab-corporate"],
#pfee-tab-personal:checked ~ .pfee-tabs__list .pfee-tabs__btn[for="pfee-tab-personal"] {
  border-color: var(--pfee-yellow);
  background-color: var(--pfee-yellow);
  color: var(--pfee-text);
  box-shadow: 0 6px 16px rgba(255, 232, 0, 0.35);
}

/* キーボード操作時のフォーカス表示（ラジオは非表示のため label 側に出す） */
#pfee-tab-corporate:focus-visible ~ .pfee-tabs__list .pfee-tabs__btn[for="pfee-tab-corporate"],
#pfee-tab-personal:focus-visible ~ .pfee-tabs__list .pfee-tabs__btn[for="pfee-tab-personal"] {
  outline: 3px solid var(--pfee-orange);
  outline-offset: 2px;
}

@media (any-hover: hover) {
  .pfee-tabs__btn:hover {
    border-color: var(--pfee-yellow);
    background-color: var(--pfee-yellow-light);
    color: var(--pfee-text);
  }
}

/* =========================================
   パネル（選択中のタブに対応するものだけ表示）
   ========================================= */
.pfee-panel {
  display: none;
  margin-top: 48px;
}

#pfee-tab-corporate:checked ~ .pfee-panel--corporate,
#pfee-tab-personal:checked ~ .pfee-panel--personal {
  display: block;
}

/* =========================================
   プラン見出し
   ========================================= */
.pfee-plan + .pfee-plan {
  margin-top: 64px;
}

.pfee-plan__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.pfee-plan__dot {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--pfee-yellow);
}

.pfee-plan__sub {
  padding: 4px 12px;
  border-radius: 999px;
  background-color: var(--pfee-cream);
  color: var(--pfee-gray-700);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* =========================================
   料金表
   ========================================= */
.pfee-table__scroll {
  overflow-x: auto;
  border-radius: var(--pfee-radius);
  background-color: var(--pfee-white);
  box-shadow: 0 2px 12px rgba(34, 34, 34, 0.06);
  -webkit-overflow-scrolling: touch;
}

.pfee-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9375rem;
}

.pfee-table__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pfee-table__th,
.pfee-table__td,
.pfee-table__sales {
  padding: 16px 12px;
  border-bottom: 1px solid var(--pfee-border);
  text-align: center;
  vertical-align: middle;
}

.pfee-table__th {
  background-color: var(--pfee-yellow-light);
  color: var(--pfee-text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pfee-table__th--sales {
  width: 15%;
  background-color: var(--pfee-yellow);
}

.pfee-table__th--highlight {
  background-color: #ffe08a;
}

.pfee-table__sales {
  background-color: var(--pfee-gray-100);
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.pfee-table__td {
  color: var(--pfee-text);
}

.pfee-table__td--highlight {
  background-color: var(--pfee-yellow-pale);
  font-weight: 700;
}

.pfee-table__amount {
  font-family: var(--pfee-font-num);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pfee-table__td--highlight .pfee-table__amount {
  color: var(--pfee-orange);
  font-weight: 700;
}

.pfee-table__row:last-child .pfee-table__td,
.pfee-table__row:last-child .pfee-table__sales {
  border-bottom: 0;
}

.pfee-table__row:nth-child(even) .pfee-table__td {
  background-color: var(--pfee-gray-50);
}

.pfee-table__row:nth-child(even) .pfee-table__td--highlight {
  background-color: var(--pfee-yellow-pale);
}

.pfee-table__scroll-hint {
  display: none;
  margin: 8px 0 0;
  color: var(--pfee-gray-500);
  font-size: 0.75rem;
  text-align: right;
}

/* 表が収まりきらない中間幅のみスクロール案内を出す */
@media (min-width: 768px) and (max-width: 1160px) {
  .pfee-table__scroll-hint {
    display: block;
  }
}

/* =========================================
   注意事項
   ========================================= */
.pfee-notes {
  margin: 32px 0 0;
  padding: 24px 28px;
  list-style: none;
  border-radius: var(--pfee-radius);
  background-color: var(--pfee-gray-100);
}

.pfee-notes__item {
  position: relative;
  padding-left: 1.5em;
  color: var(--pfee-gray-700);
  font-size: 0.875rem;
  line-height: 1.9;
}

.pfee-notes__item + .pfee-notes__item {
  margin-top: 6px;
}

.pfee-notes__item::before {
  content: "※";
  position: absolute;
  top: 0;
  left: 0;
}

/* =========================================
   料金についての考え方
   ========================================= */
.pfee-included {
  margin-top: 80px;
}

.pfee-included__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.pfee-included__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.pfee-included__card {
  padding: 28px 24px;
  border: 1px solid var(--pfee-border);
  border-radius: var(--pfee-radius);
  background-color: var(--pfee-white);
}

.pfee-included__card-title {
  position: relative;
  margin: 0 0 12px;
  padding-bottom: 12px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.6;
}

.pfee-included__card-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--pfee-yellow);
}

.pfee-included__card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.9;
}

/* =========================================
   お見積りについて
   ========================================= */
.pfee-estimate {
  margin-top: 48px;
  padding: 32px 40px;
  border-radius: var(--pfee-radius);
  background-color: var(--pfee-cream);
}

.pfee-estimate__title {
  margin: 0 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.pfee-estimate__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.9;
}

/* =========================================
   SP（max-width: 767px）
   表はカード型に組み替えて横スクロールを不要にする
   ========================================= */
@media (max-width: 767px) {
  .pfee {
    padding-block: 40px 56px;
  }

  .pfee__inner {
    padding-inline: 20px;
  }

  .pfee__lead-text {
    font-size: 0.9375rem;
    text-align: left;
  }

  .pfee__lead-caption {
    text-align: left;
  }

  .pfee__br-pc {
    display: none;
  }

  .pfee-tabs {
    margin-top: 32px;
  }

  .pfee-tabs__list {
    gap: 10px;
  }

  .pfee-tabs__btn {
    padding: 12px 8px;
    border-radius: 16px;
  }

  .pfee-tabs__btn-label {
    font-size: 1.0625rem;
  }

  .pfee-tabs__btn-note {
    font-size: 0.6875rem;
  }

  .pfee-panel {
    margin-top: 32px;
  }

  .pfee-plan + .pfee-plan {
    margin-top: 48px;
  }

  .pfee-plan__title {
    margin-bottom: 16px;
    font-size: 1.1875rem;
  }

  .pfee-plan__sub {
    font-size: 0.75rem;
  }

  /* テーブル → カード */
  .pfee-table__scroll {
    overflow-x: visible;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
  }

  .pfee-table,
  .pfee-table__body,
  .pfee-table__row,
  .pfee-table__sales,
  .pfee-table__td {
    display: block;
    width: 100%;
  }

  .pfee-table {
    table-layout: auto;
  }

  .pfee-table__head {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  .pfee-table__row {
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--pfee-white);
    box-shadow: 0 2px 10px rgba(34, 34, 34, 0.06);
  }

  .pfee-table__row + .pfee-table__row {
    margin-top: 16px;
  }

  .pfee-table__sales {
    padding: 12px 16px;
    border-bottom: 0;
    background-color: var(--pfee-yellow);
    font-size: 1rem;
    text-align: left;
  }

  .pfee-table__sales::before {
    content: "売上 ";
    font-size: 0.75rem;
    font-weight: 500;
  }

  .pfee-table__td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--pfee-border);
    text-align: right;
  }

  .pfee-table__td::before {
    content: attr(data-label);
    flex-shrink: 0;
    color: var(--pfee-gray-700);
    font-size: 0.8125rem;
    font-weight: 500;
    text-align: left;
  }

  .pfee-table__row:nth-child(even) .pfee-table__td {
    background-color: var(--pfee-white);
  }

  .pfee-table__row .pfee-table__td--highlight,
  .pfee-table__row:nth-child(even) .pfee-table__td--highlight {
    border-bottom: 0;
    background-color: var(--pfee-yellow-pale);
  }

  .pfee-table__td--highlight::before {
    color: var(--pfee-text);
    font-weight: 700;
  }

  .pfee-table__amount {
    font-size: 1rem;
  }

  .pfee-notes {
    margin-top: 24px;
    padding: 20px 18px;
  }

  .pfee-notes__item {
    font-size: 0.8125rem;
  }

  .pfee-included {
    margin-top: 56px;
  }

  .pfee-included__title {
    margin-bottom: 20px;
    font-size: 1.1875rem;
  }

  .pfee-included__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .pfee-included__card {
    padding: 20px 18px;
  }

  .pfee-estimate {
    margin-top: 32px;
    padding: 24px 20px;
  }
}

/* =========================================
   アニメーション低減設定への配慮
   ========================================= */
@media (prefers-reduced-motion: reduce) {
  .pfee-tabs__btn {
    transition: none;
  }
}
