/* =============================================
   service-page.css — 業務内容ページ固有スタイル
   デザイントークンは css/variables.css から継承
   ============================================= */


/* ===== セクション共通：左右padding ===== */

.page-header,
.estimation,
.flow,
.automation {
  padding-left: max(180px, calc((100vw - 1400px) / 2 + 120px));
  padding-right: max(180px, calc((100vw - 1400px) / 2 + 120px));
  box-sizing: border-box;
}

@media (max-width: 1400px) {
  .page-header,
  .estimation,
  .flow,
  .automation {
    padding-left: 120px;
    padding-right: 120px;
  }
}

@media (max-width: 1024px) {
  .page-header,
  .estimation,
  .flow,
  .automation {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 600px) {
  .page-header,
  .estimation,
  .flow,
  .automation {
    padding-left: 24px;
    padding-right: 24px;
  }
}


/* ===== ページヘッダー ===== */

.page-header {
  padding-top: 36px;
  padding-bottom: 36px;
  text-align: center;
  background-color: var(--color-bg-warm);
  border-bottom: 1px solid var(--color-border);
}

.page-header__title-ja {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.4;
}

.page-header__title-en {
  font-family: var(--font-family-en);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  color: var(--color-accent);
  margin-top: 8px;
  letter-spacing: 0.08em;
}


/* ===== 追従固定CTAボタン ===== */




.service-page-content{
 display: flex;
 justify-content:center;
}

/* ===== 建築積算代行セクション ===== */

.estimation {
  padding-top: 80px;
  padding-bottom: 80px;
  background: transparent;
}

.estimation__heading {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 24px;
}

.estimation__building {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.estimation__building-text {
  flex: 0 0 50%;
  width: 50%;
}

.estimation__building-lead {
  font-size: var(--font-size-body);
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.7;
}

.estimation__building-category {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-top: 16px;
  margin-bottom: 8px;
}

.estimation__building-list {
  list-style: disc;
  padding-left: 1.4em;
  margin-bottom: 8px;
}

.estimation__building-list li {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.7;
}

.estimation__building-note {
  font-size: var(--font-size-body-sm);
  color: var(--color-text);
  margin-top: 16px;
  line-height: 1.7;
}

/* 右側：511×379コンテナを中央寄せで配置 */
.estimation__building-photos {
  flex: 0 0 50%;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 511×379の写真コンテナ */
.estimation__photos-inner {
  position: relative;
  width: 100%;
  max-width: 511px;
  height: 379px;
  flex-shrink: 0;
}

.estimation__photo--back {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 214px;
  height: 180px;
  object-fit: cover;
}

.estimation__photo--front {
  position: absolute;
  right: 0;
  top: 0;
  width: 327px;
  height: 250px;
  object-fit: cover;
}

.estimation__scope {
  padding-top: 60px;
}

.estimation__building-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 32px;
}

.estimation__scope-title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 32px;
}

.estimation__scope-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 32px;
}

.estimation__scope-item {
  margin-bottom: 32px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.estimation__scope-number {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

.estimation__scope-body {
  flex: 1;
}

.estimation__scope-item-title {
  font-size: var(--font-size-body-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
}

.estimation__scope-item-text {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .estimation__building {
    flex-direction: column;
  }

  .estimation__building-text {
    width: 100%;
    flex: none;
  }

  .estimation__building-photos {
    width: 100%;
    flex: none;
    /* margin-top: 40px; */
  }
}

@media (max-width: 600px) {
  .estimation__photos-inner {
    width: 100%;
    height: 284px;
  }

  .estimation__photo--back {
    width: 160px;
    height: 135px;
  }

  .estimation__photo--front {
    width: 245px;
    height: 188px;
  }
}

@media (max-width: 599px) {
  .estimation__building {
    flex-direction: column-reverse;
  }
}


/* ===== 積算業務の流れセクション ===== */

.flow {
  padding-bottom: 80px;
  background: transparent;
}

.flow__title {
  font-family: var(--font-family-base);
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: 16px;
}

.flow__lead {
  font-size: var(--font-size-body);
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 48px;
}

/* グリッドレイアウト（デスクトップ・タブレット：2列×3行） */
.flow__list {
  display: grid;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* モバイル（600px以下）：1列 */
@media (max-width: 600px) {
  .flow__list {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 32px;
  }
  .flow__item {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* タブレット（601px〜1024px）：2列・gap調整 */
@media (min-width: 601px) and (max-width: 1024px) {
  .flow__list {
    grid-template-columns: 1fr;
    column-gap: 40px;
    row-gap: 40px;
  }

  .flow__item-body {
    flex-direction: column;
    max-width: 100%;
    height: auto;
  }

  .flow__item-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 242 / 169;
  }

  .flow__item-text {
    padding-left: 0;
    padding-top: 12px;
  }
}

@media (min-width: 1024px) {
  .flow__list {
   grid-template-columns: repeat(2, 1fr);
  column-gap: 50px;
  row-gap: 64px;
}
}

/* カード */
.flow__item {
  width: 100%;
}

/* カード上部：番号＋タイトル */
.flow__item-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.flow__item-number {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
}

.flow__item-title {
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  line-height: 1.4;
}

/* カード本体：写真（左40%）＋テキスト（右60%）横並び */
/* ベース */
.flow__item-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  padding: 12px 14px;
  background: transparent;
  box-sizing: border-box;
  width: 100%;
  max-width: 591px;
  height: 211px;
}

.flow__item-photo {
  flex: 0 0 40%;
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.flow__item-text {
  flex: 1;
  font-size: 16px;
  line-height: 1.6;
  padding-left: 20px;
  color: var(--color-text-dark);
  margin: 0;
}

/* タブレット（max-width: 1024px） */
@media (max-width: 1024px) {
  .flow__item-body {
    width: 100%;
    height: auto;
  }

  .flow__item-photo {
    flex: 0 0 40%;
    width: 40%;
    height: auto;
    aspect-ratio: 242 / 169;
  }
}

/* モバイル（max-width: 900px） */
@media (max-width: 900px) {
  .flow__item-body {
    width: 100%;
    height: auto;
  }

  .flow__item-photo {
    flex: 0 0 40%;
    width: 40%;
    height: auto;
    aspect-ratio: 242 / 169;
  }
}

/* モバイル（max-width: 600px） */
@media (max-width: 600px) {
  .flow__item-body {
    flex-direction: column;
  }

  .flow__item-photo {
    width: 100%;
  }

  .flow__item-text {
    padding-top: 12px;
    padding-left: 0;
  }
}

/* ===== 事務作業効率化サポートセクション ===== */

.automation {
  padding-top: 120px;
  padding-bottom: 120px;
  background: transparent;
}

.automation__title {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin: 0 0 24px;
}

.automation__lead {
  font-size: var(--font-size-body);
  line-height: 1.8;
  color: var(--color-text-dark);
  margin: 0 0 48px;
}

.automation__block {
  margin-bottom: 48px;
}

.automation__block-inner {
  display: flex;
  flex-direction: column; /* モバイルは縦積み */
  gap: 24px;
}

.automation__block-title {
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-dark);
  margin: 0 0 16px;
}

.automation__block-text {
  font-size: var(--font-size-body);
  line-height: 1.8;
  color: var(--color-text-dark);
  margin: 0 0 12px;
}

.automation__block-label {
  font-size: var(--font-size-body);
  color: var(--color-text-dark);
  margin: 0 0 8px;
}

/* 箇条書き：丸ドット8px・テキストと同色 */
.automation__list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.automation__list-item {
  font-size: var(--font-size-body);
  line-height: 1.8;
  color: var(--color-text-dark);
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.automation__list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text-dark);
}


/* 動画サムネイルエリア */

.automation__movie {
  position: relative;
  width: 100%;
  max-width: 607px;
}

.automation__movie::after {
  content: 'COMING SOON';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-family: var(--font-family-en);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.1em;
  pointer-events: none;
}

.automation__movie video {
  pointer-events: none;
  width: 100%;
  display: block;
}

.automation__movie-thumb {
  width: 100%;
  max-width: 607px;
  height: auto;
  aspect-ratio: 607 / 366;
  object-fit: cover;
  display: block;
}

.automation__movie-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automation__movie-play {
  color: white;
  font-size: 18px;
  margin-left: 3px;
}

/* タブレット以上：横並び */
@media (min-width: 751px) {
  .automation__block-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }

  .automation__block-content {
    flex: 1;
  }

  .automation__movie {
    flex: 0 0 45%;
    max-width: 607px;
  }
}

/* モバイル：縦積み */
@media (max-width: 750px) {
  .automation__block-inner {
    flex-direction: column;
  }

  .automation__movie {
    width: 100%;
    max-width: 100%;
  }

  .automation__movie-thumb {
    max-width: 100%;
  }
}
