/* ==========================================================================
   ファイルパス: /css/components.css
   内容: ボタン、カード、バッジ等の共通コンポーネント (BEM設計)
   ========================================================================== */

/* --------------------------------------
   Button (ボタン)
-------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  font-weight: var(--weight-bold);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

/* Primary Button (メインアクション) */
.btn--primary {
  background-color: var(--color-brand-green);
  color: var(--color-text-white);
  height: 56px;
  padding: 0 40px;
  box-shadow: 0 2px 8px rgba(68, 169, 59, 0.15);
}

.btn--primary:hover {
  background-color: #4ed142; /* 少し明るく変化 */
  box-shadow: 0 4px 12px rgba(68, 169, 59, 0.2);
  transform: translateY(-2px);
}

/* Secondary Button (サブアクション) */
.btn--secondary {
  background-color: var(--color-base-white);
  color: var(--color-brand-green);
  border: 2px solid var(--color-brand-green);
  height: 56px;
  padding: 0 40px;
}

.btn--secondary:hover {
  background-color: #f0faf0; /* 薄いグリーンに変更 */
  transform: translateY(-2px);
}

/* スモールサイズ (ヘッダー用など) */
.btn--sm {
  height: 48px;
  padding: 0 24px;
  font-size: 0.875rem;
}

/* ==========================================================================
   ファイルパス: /css/components.css (追記)
   内容: JSアニメーション用クラス、動的生成される実績カード(Works)
   ========================================================================== */

/* --------------------------------------
   スクロールフェードアップ (js-fade-up)
-------------------------------------- */
.js-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

/* JSによって is-active が付与されたら表示 */
.js-fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------
   実績カード (JSで動的生成される要素)
-------------------------------------- */
.reviews__card {
  display: block;
  background-color: var(--color-base-white);
  border: 1px solid var(--color-sub-lightgray);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-base);
}

.reviews__card:hover {
  box-shadow: var(--shadow-light);
  border-color: var(--color-brand-green);
}

.reviews__card-image {
  width: 100%;
  height: 180px;
  margin-bottom: 0;
  background-color: var(--color-sub-lightgray);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.reviews__card-content {
  padding: 24px;
}

.reviews__card-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
  background-color: rgba(68, 169, 59, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.reviews__card-title {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
  line-height: 1.4;
}

.reviews__card-text {
  font-size: 1rem;
  color: var(--color-text-sub);
}

/* ==========================================================================
   ファイルパス: /css/components.css (追記)
   内容: SERVICEページ - パッケージ商品セクション
   （service.html のインラインstyleをクラス化したもの）
   ========================================================================== */

.package-item {
  background-color: var(--color-base-white);
  border-radius: var(--radius-card);
  margin-bottom: 48px;
  border: 1px solid var(--color-brand-green);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  padding: 48px;
}

.package-item__desc {
  flex: 1;
}

.package-item__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-brand-green);
  background-color: var(--color-sub-lightgray);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.package-item__title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.package-item__lead-text {
  font-size: 1.125rem;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.package-item__desc-text {
  font-size: 1.125rem;
  color: var(--color-text-sub);
}

.package-item__price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-brand-green);
  margin-top: 16px;
}

.package-item__action {
  flex-shrink: 0;
}

.package-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.package-card {
  position: relative;
  overflow: hidden;
  background-color: var(--color-base-white);
  padding: 48px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-sub-lightgray);
  min-height: 320px;
}

.package-card__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 0;
}

.package-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    var(--color-base-white) 1%,
    rgba(255, 255, 255, 0) 100%
  );
}

.package-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-card__content {
  position: relative;
  z-index: 1;
  max-width: 52%;
}

.package-card__title {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
}

.package-card__price {
  font-size: 18px;
  font-weight: bold;
  color: var(--color-brand-green);
  margin-bottom: 20px;
}

.package-card__price-note {
  font-size: 1rem;
  font-weight: normal;
  color: var(--color-text-sub);
}

.package-card__label {
  display: block;
  font-size: 0.8rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-brand-green);
  border: 1px solid var(--color-brand-green);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 24px;
}

.package-card__text {
  font-size: 1.125rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.package-card__sub-note {
  font-size: 1rem;
  color: var(--color-text-note);
}

.package-card__caption {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
  border: 1px solid var(--color-brand-green);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.package-card__btn {
  position: absolute;
  right: 48px;
  bottom: 48px;
  z-index: 2;
}

/* --------------------------------------
   単発サービス一覧セクション
-------------------------------------- */
.single-services__lead {
  max-width: 900px;
  margin: 0 auto 56px;
  padding: 24px;
  border: 1px solid var(--color-brand-green);
  background-color: var(--color-sub-lightgray);
  border-radius: var(--radius-card);
  text-align: center;
}

.single-services__lead-title {
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
  margin-bottom: 8px;
}

.single-services__lead-text {
  font-size: 1rem;
  line-height: 1.6;
}

.single-table-wrapper {
  margin-bottom: 56px;
}

.single-table-title {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid var(--color-brand-green);
}

.single-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-base-white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.single-table thead tr {
  background-color: var(--color-sub-lightgray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: left;
}

.single-table th {
  padding: 16px 24px;
  font-weight: var(--weight-bold);
}

.single-table th:nth-child(1) {
  width: 30%;
}

.single-table th:nth-child(2) {
  width: 20%;
}

.single-table tbody tr {
  border-bottom: 1px solid var(--color-sub-lightgray);
}

.single-table tbody tr:last-child {
  border-bottom: none;
}

.single-table td {
  padding: 20px 24px;
}

.single-table td:nth-child(1) {
  font-weight: var(--weight-bold);
}

.single-table td:nth-child(3) {
  color: var(--color-text-sub);
}

.single-table__note {
  color: var(--color-brand-green);
  font-weight: var(--weight-bold);
  font-size: 0.75rem;
  margin-top: 8px;
}

.single-table__sub-note {
  font-size: 0.75rem;
  color: var(--color-text-note);
}

.single-services__cta {
  text-align: center;
  margin-top: 56px;
}

.single-services__cta .btn {
  padding: 0 56px;
}

/* --------------------------------------
   申し込みフォームセクション
-------------------------------------- */
.booking-form {
  scroll-margin-top: 100px;
}

.booking-form__wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-base-white);
  padding: 48px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-sub-lightgray);
  box-shadow: var(--shadow-light);
}

.form__checkbox-group {
  margin-top: 16px;
  margin-bottom: 24px;
}

.form__checkbox-group:last-child {
  margin-bottom: 0;
}

.form__checkbox-group-title {
  font-size: 0.875rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--color-sub-lightgray);
  padding-bottom: 4px;
}

.form__checkbox-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 10px;
  cursor: pointer;
}

.form__checkbox-input {
  margin-right: 8px;
}

.form__item--spaced {
  margin-top: 32px;
}

.form__submit {
  text-align: center;
}

.form__submit-btn {
  width: 100%;
  max-width: 320px;
}

/* --------------------------------------
   共通リード文の中央寄せバリエーション
-------------------------------------- */
.section__lead--center {
  text-align: center;
  margin-bottom: 48px;
}

/* --------------------------------------
   ヘッダーナビ：現在地(アクティブ)表示
   （全ページ共通で使用）
-------------------------------------- */
.header__nav-link--active {
  color: var(--color-brand-green);
}

/* --------------------------------------
   TOPページ：共感セクション（Section02）
   （index.html の <style> 直書きから移設）
-------------------------------------- */
.empathy__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.empathy__text {
  text-align: left;
}

.value__card-caption {
  display: block;
  font-size: 0.8rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-brand-green);
  border: 1px solid var(--color-brand-green);
  padding: 4px 8px;
  border-radius: 4px;
  text-align: center;
  margin: 0 auto;
  margin-bottom: 24px;
}
/* --------------------------------------
   TOPページ：サービス紹介セクション
   （index.html のインラインstyleから移設）
-------------------------------------- */
.service__free-kit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 48px;
  border-radius: var(--radius-card);
  margin-bottom: 48px;
  border: 1px solid var(--color-sub-lightgray);
  overflow: hidden;
  background-color: var(--color-sub-lightgray);
  background-image: url('../images/sampleimage.jpg');
  background-size: 100% auto;
  background-position: center;
  background-repeat: no-repeat;
}

.service__free-kit::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-color: rgba(255, 255, 255, 0.9);
}

.service__free-kit-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.service__free-kit-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-brand-green);
  background-color: var(--color-base-white);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-light);
}

.service__free-kit-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.service__free-kit-text {
  font-size: 1.125rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.service__free-kit-price {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
}

.service__free-kit-action {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* --------------------------------------
   事業整理・設計キット（背景画像なし・従来スタイル）
-------------------------------------- */
.service__intro-kit {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  background-color:var(--color-base-white);
  padding: 48px;
  border-radius: var(--radius-card);
  margin-bottom: 48px;
  border: 1px solid var(--color-sub-lightgray);
}

.service__intro-kit-content {
  flex: 1;
}

.service__intro-kit-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--color-brand-green);
  background-color: var(--color-base-white);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-light);
}

.service__intro-kit-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  margin-bottom: 12px;
}

.service__intro-kit-text {
  font-size: 1.125rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.service__intro-kit-price {
  font-size: 1.25rem;
  font-weight: var(--weight-bold);
  color: var(--color-brand-green);
}

.service__intro-kit-action {
  flex-shrink: 0;
}

.service__card-caption {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.02em;
  color: var(--color-brand-green);
  border: 1px solid var(--color-brand-green);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.service__extra-info {
  text-align: center;
  margin-top: 40px;
  padding: 48px;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-sub-lightgray);
  background-color: var(--color-sub-lightgray);
}

.service__extra-info-title {
  font-size: 0.9375rem;
  font-weight: var(--weight-bold);
  margin-bottom: 8px;
}

.service__extra-info-text {
  font-size: 1.125rem;
  color: var(--color-text-main);
  margin-bottom: 16px;
}

.service__card-link {
  font-weight: var(--weight-bold);
}
