/**
 * 事業内容ページ (`page-service.php`) スタイル
 *
 * ページ全体のレイアウト、各セクション共通のスタイルを定義
 *
 * @package ito-moku
 */

/* ページコンテナ */
.service-container {
  /* .inner クラスに依存するが、念のため設定 */
  padding-top: 60px;
  /* セクション間の上部マージンと重複しないように調整 */
  padding-bottom: 80px;
  max-width: 1920px;
  margin: 0 auto;
}

/* 各サービスセクション共通 */
.service-section {
  width: fit-content;
  margin: clamp(3.438rem, 3.077rem + 1.6vw, 5rem) clamp(0.938rem, -1.01rem + 8.65vw, 9.375rem) 0;
}

.service-section:first-child {
  margin-top: 0;
  /* 最初のセクションの上部マージンは不要 */
}

/* セクションヘッダー (template-parts/section-header) との連携 */
/* 必要に応じて、セクションヘッダーのマージン調整など */

/* =============================
 * 伐採・集材セクション（Figma準拠）
 * 画像に角丸なし
 * ============================= */
.service-logging__content {
  display: flex;
  gap: 60px;
  /* Figmaの余白に合わせて拡大 */
  margin-top: 56px;
  align-items: center;
  justify-content: center;
}

.service-logging__image-wrapper {
  max-width: 800px;
  /* 最大幅をFigmaに合わせて調整 */
}

.service-logging__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  /* 角丸は不要 */
}

.service-logging__text {
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0.05em;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-logging__text p {
  margin-bottom: 1.5em;
}

.service-logging__text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .service-logging__content {
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
  }

  .service-logging__image-wrapper,
  .service-logging__text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .service-logging__text {
    font-size: 18px;
  }

  .service-logging__text p {
    font-size: 18px;
  }
}

/* =============================
 * 架線集材とは？セクション（Figma準拠・縦並び）
 * ============================= */
.service-cableway {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  margin-top: 56px;
}

.service-cableway__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: #000;
  letter-spacing: 0.05em;
  margin: 0 0 8px 0;
}

.service-cableway__lead p {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.44;
  color: #000;
  letter-spacing: 0.05em;
  margin: 0;
}

.service-cableway__video-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.service-cableway__video {
  width: clamp(18.75rem, 5.357rem + 59.52vw, 50rem);
  height: auto;
}

.service-cableway__desc p {
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.44;
  color: #000;
  letter-spacing: 0.05em;
  margin: 0;
}

@media (max-width: 991px) {

  .service-cableway__title {
    font-size: 32px;
  }

  .service-cableway__lead p,
  .service-cableway__desc p {
    font-size: 20px;
  }
}

/* =============================
 * 立木買取セクション（Figma準拠）
 * 画像左・テキスト右、BEM命名、レスポンシブ対応
 * ============================= */
.service-purchase__content {
  display: flex;
  gap: 64px;
  /* Figmaの余白に合わせて拡大 */
  margin-top: 56px;
  align-items: center;
  justify-content: center;
}

.service-purchase__image-wrapper {
  max-width: 600px;
}

.service-purchase__image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  /* 角丸なし */
}

.service-purchase__text {
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.service-purchase__text p {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 400;
  color: #333;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.service-purchase__note {
  margin-top: 2em;
  font-size: clamp(1.25rem, 0.929rem + 1.43vw, 2rem);
  color: #333;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  line-height: 1.7;
  width: fit-content;
  margin: 50px auto 0;
}

@media (max-width: 991px) {
  .service-purchase__content {
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
  }

  .service-purchase__image-wrapper,
  .service-purchase__text {
    max-width: 100%;
    flex: 1 1 100%;
  }

  .service-purchase__text {
    font-size: 18px;
    gap: 1.5em;
  }

  .service-purchase__text p {
    font-size: 18px;
  }
}

/* --- 活動エリア (Activity Area) --- */
.service-area__content {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
  /* 中央揃え（必要に応じて変更） */
}

.service-area__text {
  flex: 1 1 50%;
}

.service-area__text p {
  /* テキストのスタイル */
  font-size: clamp(1rem, 0.893rem + 0.48vw, 1.25rem);
  /* 仮 */
  line-height: 1.8;
}

.service-area__map-wrapper {
  flex: 1 1 50%;
}

.service-area__map-placeholder {
  /* 地図プレースホルダーのスタイル */
  background-color: #eaf3e5;
  /* 仮の背景色 (淡い緑) */
  aspect-ratio: 4 / 3;
  /* 地図のアスペクト比（仮） */
  display: flex;
  justify-content: center;
  align-items: center;
  color: #888;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #ccc;
}

/* --- 立木買取までの流れ (Purchase Flow) --- */
.service-flow {
  margin: 0 auto;
  padding-top: 60px;
  display: flex;
  align-items: flex-start;
  gap: 100px;
}

.service-flow__steps {
  list-style: none;
  padding-left: 0;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 41px;
}

.service-flow__step {
  /* 各ステップのコンテナ */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-flow__step-header {
  display: flex;
  align-items: center;
  gap: clamp(0.625rem, 0.25rem + 1.67vw, 1.5rem);
}

.service-flow__step-number {
  font-family: 'Protest Strike';
  font-size: 48px;
  font-weight: 600;
  color: #1FAF38;
  letter-spacing: 0.05em;
  min-width: 60px;
  text-align: left;
}

.service-flow__step-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 1.269rem + 1.03vw, 2.5rem);
  font-weight: 700;
  color: #333;
  letter-spacing: 0.05em;
  margin: 0;
}

.service-flow__step-description {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1.44;
  letter-spacing: 0.05em;
  margin: 0 0 0 84px;
  /* 番号+gap分インデント */
}

/* =============================
 * お問い合わせ誘導（CTA）セクション（Figma準拠）
 * 背景画像・ボタン装飾・ホバーアクション
 * ============================= */
.service-contact-cta {
  position: relative;
  padding: 100px 15px;
  margin-top: 100px;
  overflow: hidden;
}

.service-contact-cta__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../images/cta-footer-purchase.png');
  background-size: cover;
  background-position: center;
  z-index: -1;
  /* 黒半透明オーバーレイ */
}

.service-contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.service-contact-cta__inner {
  position: relative;
  z-index: 1;
}

.service-contact-cta__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.service-contact-cta__text {
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 0.571rem + 1.9vw, 2rem);
  font-weight: 700;
  line-height: 1.44;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

/* ここから各セクション固有のスタイルを追加していく */
/* ここから各セクション固有のスタイルを追加していく */