/* CH-514 対応できること（page-services.php）の CSS。事例のページ（詳細と一覧）も、この上に assets/css/fsc-cases.css を足して使う。
   assets/css/fsc-home.css（トップと同じ色・字・ヘッダー・フッター・ボタン）のあとに読む。
   前は黒のデザイン（assets/css/fsc-top.css）だった。 */

/* ---- ヘッダー（ブログ・プロフィールと同じ。assets/css/fsc-blog.css の「共通」と同じ形） ---- */
.fsc .fsc-nav a[aria-current="page"] {
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--fsh-green);
}

.fsc-header {
  border-bottom: 1px solid var(--fsh-line);
}

/* ---- ページの頭 ---- */
.fsc-page-head__inner {
  padding-top: 64px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.fsc-page-head .fsc-hero__eyebrow {
  font-family: var(--fsh-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fsc-page-head__title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.3;
  font-weight: 900;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fsc-page-head__note {
  font-size: 14px;
  color: var(--fsh-mute);
  max-width: 46em;
}

.fsc-page-head__promise {
  margin-top: 4px;
  padding: 16px 20px;
  border: 1px solid var(--fsh-line);
  border-left: 4px solid var(--fsh-green);
  border-radius: 12px;
  background: var(--fsh-white);
  font-size: 15px;
  font-weight: 500;
  color: var(--fsh-ink);
  max-width: 100%;
}

.fsc .fsc-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--fsh-green);
  color: #fff;
  font-family: var(--fsh-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  vertical-align: middle;
}

.fsc .fsc-draft {
  background: transparent;
  border: 1px dashed var(--fsh-green);
  color: var(--fsh-green);
}

/* ---- まとまりのカード ---- */
.fsc-page-head + .fsc-section {
  padding-top: 0;
  padding-bottom: 0;
}

.fsc-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fsc-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  border: 1.5px solid var(--fsh-line);
  border-radius: 18px;
  background: var(--fsh-white);
}

.fsc-group.is-new {
  grid-column: 1 / -1;
  border-color: var(--fsh-green);
}

.fsc-group__icon {
  display: block;
  margin-bottom: 14px;
  color: var(--fsh-green);
  line-height: 0;
}

.fsc-group > .fsc-eyebrow {
  font-family: var(--fsh-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--fsh-mute);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.fsc .fsc-group__title {
  margin: 6px 0 10px;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.45;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fsc-group__when {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--fsh-sub);
}

.fsc-group__when-label,
.fsc-featured__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fsh-green);
  letter-spacing: 0.04em;
}

.fsc-group__when-label {
  display: block;
  margin-bottom: 2px;
}

/* 費用と期間の目安 */
.fsc .fsc-spec {
  margin: 0;
  padding: 4px 20px;
  border-radius: 12px;
  background: var(--fsh-card);
  border: 1px solid var(--fsh-line);
}

.fsc-spec__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 0;
}

.fsc-spec__row + .fsc-spec__row {
  border-top: 1px dashed var(--fsh-dash);
}

.fsc .fsc-spec dt {
  font-size: 14px;
  color: var(--fsh-mute);
}

.fsc .fsc-spec dd {
  margin: 0;
  font-family: var(--fsh-mono);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fsh-ink);
  text-align: right;
}

/* よくある依頼 */
.fsc-featured {
  margin-top: 16px;
}

.fsc-featured__label {
  margin-bottom: 2px;
}

.fsc-featured__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  font-size: 15px;
  color: var(--fsh-text);
}

.fsc-featured__price {
  flex: none;
  font-family: var(--fsh-mono);
  font-weight: 600;
  color: var(--fsh-ink);
}

/* 事例を見る（トップのボタンと同じ緑） */
.fsc .fsc-case-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-top: 20px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid var(--fsh-green);
  background: var(--fsh-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.fsc .fsc-case-btn:hover {
  background: var(--fsh-green-dark);
  border-color: var(--fsh-green-dark);
  color: #fff;
}

/* 詳細を見る（押すと開く・トップの枠線のボタンと同じ形） */
.fsc .fsc-acc {
  margin-top: 12px;
  font-size: 15px;
}

.fsc .fsc-acc__summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--fsh-ink);
  border-radius: 999px;
  color: var(--fsh-ink);
  font-size: 15px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.fsc .fsc-acc__summary::-webkit-details-marker {
  display: none;
}

.fsc .fsc-acc__summary::after {
  content: '+';
  font-family: var(--fsh-mono);
  font-size: 20px;
  line-height: 1;
}

.fsc .fsc-acc[open] .fsc-acc__summary::after {
  content: '−';
}

.fsc .fsc-acc__summary:hover {
  background: var(--fsh-ink);
  color: #fff;
}

.fsc .fsc-acc__summary:focus-visible {
  outline: 3px solid var(--fsh-green);
  outline-offset: 3px;
}

.fsc .fsc-acc .fsc-group__desc {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--fsh-text);
}

.fsc .fsc-acc .fsc-examples__title {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fsh-green);
}

.fsc .fsc-examples,
.fsc .fsc-group__list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
}

.fsc-examples__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--fsh-dash);
  color: var(--fsh-text);
}

.fsc-examples__price {
  flex: none;
  font-family: var(--fsh-mono);
  font-weight: 600;
  color: var(--fsh-ink);
}

.fsc-group__item {
  border-bottom: 1px dashed var(--fsh-dash);
}

.fsc .fsc-acc .fsc-group__item a,
.fsc .fsc-acc .fsc-group__item > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
}

.fsc .fsc-acc .fsc-group__item > span {
  color: var(--fsh-text);
}

.fsc .fsc-group__item a {
  color: var(--fsh-green);
  font-weight: 500;
  text-decoration: none;
}

.fsc .fsc-group__item a:hover {
  color: var(--fsh-green-dark);
  text-decoration: underline;
}

.fsc-group__arrow {
  flex: none;
}

/* ---- 金額の行の小見出し・説明・期間・下の行（CH-514 #7871） ---- */
.fsc .fsc-examples__heading {
  margin: 18px 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--fsh-ink);
}

.fsc .fsc-examples__text {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--fsh-sub);
}

.fsc-examples__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 14em;
}

.fsc-examples__note,
.fsc-examples__term {
  font-size: 13px;
  color: var(--fsh-mute);
}

.fsc .fsc-examples__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.fsc .fsc-examples--sub {
  flex: 1 1 100%;
  margin: 4px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--fsh-line);
}

.fsc .fsc-examples--sub .fsc-examples__item:last-child {
  border-bottom: 0;
}

.fsc-examples__item.is-total {
  font-weight: 700;
  color: var(--fsh-ink);
}

/* ページの頭の税込・インボイス */
.fsc-page-head__tax {
  font-size: 14px;
  color: var(--fsh-sub);
}

.fsc .fsc-page-head__tax-main {
  font-weight: 700;
  color: var(--fsh-ink);
}

/* ---- 幅のせまい画面 ---- */
@media (max-width: 860px) {
  .fsc-groups {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .fsc-page-head__inner {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .fsc-group {
    padding: 22px;
  }

  .fsc .fsc-spec {
    padding: 2px 16px;
  }

  .fsc .fsc-spec dd {
    font-size: 19px;
  }
}
