#page_service .content_inner {
    margin: 0 auto;
}

body {
  overflow-x: hidden;
}

/* ===== Page Header ===== */
.page_header {
  padding-bottom: 0;
  text-align: center;
}

.page_header__nav {
  display: flex;
  justify-content: center;
}

.page_header__nav_icon img {
  width: 16px;
  height: auto;
  margin-right: 10px;
}

.page_header__nav_item {
  font-size: 20px;
  font-weight: 300;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  width: 25%;
  justify-content: center;
  border-left: .5px solid #d3d3d3;
  color: #1e1e1e;
  padding: 0 15px;
}

.page_header__nav_item:last-child {
  border-right: .5px solid #d3d3d3;
}

a.page_header__nav_item {
  color: #1e1e1e;
}

.page_header__nav_item:hover {
  opacity: .6;
}

/* ===== Service Section (common) ===== */
.service_section {
  padding-top: 80px;
  background: #fff;
}

.service_section__intro {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.service_section__intro--right_image {
  flex-direction: row;
}

.service_section__intro--left_image {
  flex-direction: row;
}

.service_section__text {
  flex: 1;
  min-width: 0;
}

.service_section__image {
  width: calc(50% + 15px);
}

.service_section__image img {
  object-fit: cover;
}

.service_section__number {
  font-size: 30px;
  font-weight: 300;
  color: #2a5c30;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.service_section__number_line {
  display: inline-block;
  width: 20px;
  height: 1px;
  background: #2a5c30;
  vertical-align: middle;
}

.service_section__heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

.service_section__desc {
  font-size: 16px;
  line-height: 28.8px;
  font-weight: 300;
}

/* ===== Subsection title ===== */
.subsection_title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection_title::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: #2a5c30;
  flex-shrink: 0;
}

/* ===== Flow (steps) ===== */
.flow {
  background: #f2f7f3;
  padding: 20px;
  position: relative;
}

.flow__steps {
  display: flex;
  align-items: flex-start;
  position: relative;
}

.flow__steps::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: #3f7d47;
  z-index: 0;
}

.flow__step_group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  width: calc((100% - 160px) / 5);
  align-self: stretch;
}

.flow__step_label {
  font-size: 16px;
  font-weight: 600;
  color: #3f7d47;
  position: relative;
  z-index: 1;
  background: #f2f7f3;
  padding: 0 10px;
  line-height: 1;
  margin-bottom: 20px;
}

.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 150px;
  background: #fff;
  padding: 30px 16px;
}

.flow__step_icon {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon_discussion {
  width: 76px;
  height: 60px;
}

.icon_document {
  width: 64px;
  height: 60px;
}

.icon_processing {
  width: 63px;
  height: 60px;
}

.icon_grave {
  width: 77px;
  height: 60px;
}

.icon_interment {
  width: 80px;
  height: 60px;
}

.icon_temple {
  width: 73px;
  height: 60px;
}

.icon_land {
  width: 60px;
  height: 60px;
}

.icon_new {
  width: 48px;
  height: 60px;
}

.flow__step_text {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
}

.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  flex-grow: 1;
  padding-top: 22px;
  align-self: stretch;
  width: 40px;
}

.flow__arrow img {
  width: 16px;
  height: auto;
}

/* ===== Work Types Section ===== */
.work_types_section {
  background-color: #f5f5f5;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-top: 40px;
  padding-bottom: 40px;
}

.work_types_section__inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 90%;
}

.work_types__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 30px;
}

.work_types__grid--4col .work_types__item {
  width: calc((100% - 90px) / 4);
}

.work_types__item {
  min-width: 0;
}

.work_types__thumb {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 24px;
}

.work_types__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work_types__number {
  font-size: 20px;
  font-weight: 300;
  color: #3f7d47;
  margin-bottom: 16px;
  line-height: 1;
}

.work_types__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1;
}

.work_types__desc {
  font-size: 16px;
  line-height: 28.8px;
  color: #1e1e1e;
  font-weight: 300;
}

/* ===== CTA Section ===== */
.cta {
  background: #3f7d47;
  margin-top: 0;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  display: flex;
  align-items: stretch;
}

.cta__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin: 58px 20px 58px 0;
  padding-left: calc((100vw - 90%) / 2);
  
  /* 1210px以上になったら固定値に切り替え */
  @media (min-width: 1211px) {
    padding-left: calc((100vw - 1100px) / 2);
  }
}

.cta__label {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 24px;
  line-height: 1;
}

.cta__desc {
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 28.8px;
  color: #ffffff;
  margin-bottom: 40px;
}

.cta__button {
  display: inline-block;
  padding: 25px 54px;
  border: 1px solid #fff;
  font-family: "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 300;
  color: #ffffff;
  line-height: 1;
  border-radius: 0;
  transition: background 0.2s, color 0.2s;
}

.cta__button:hover {
  background: #fff;
  color: #4a6b2a;
}

.cta__image {
  flex-shrink: 0;
  width: 50%;
}

.cta__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Civil Section ===== */
#civil {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===== SP (959px以下) ===== */
@media screen and (max-width: 959px) {
 /* 1. ナビゲーション：縦並び */
  .page_header__nav {
    flex-direction: column;
  }

  .page_header__nav_item {
    width: 100%;
    justify-content: flex-start;
    border-left: none;
    border-top: 0.5px solid #d3d3d3;
    padding: 16px;
  }

  .page_header__nav_item:last-child {
    border-right: none;
    border-bottom: 0.5px solid #d3d3d3;
  }
}

/* ===== SP (769px以下) ===== */
@media screen and (max-width: 769px) {
  .service_section {
  padding-top: 70px;
  }

  .service_section__number {
    font-size: 28px;
  }

  .service_section__heading,
  .subsection_title,
  .work_types__number,
  .cta__label {
    font-size: 18px;
  }

  .service_section__desc,
  .flow__step_label,
  .flow__step_text,
  .work_types__name,
  .work_types__desc {
    font-size: 14px;
  }

  .service_section__desc,
  .work_types__desc {
      line-height: 25.2px;
  }

  .subsection_title::before {
    width: 12px;
    height: 12px;
  }

  /* 2. サービスセクション（右画像）：縦並び・画像下 */
  .service_section__intro.service_section__intro--right_image {
    flex-direction: column;
  }

  /* 3. サービスセクション（左画像）：縦並び・画像下 */
  .service_section__intro.service_section__intro--left_image {
    flex-direction: column;
  }

  .service_section__intro {
    margin-bottom: 40px;
    gap: 30px;
  }

  .service_section__image {
    width: 100%;
    order: 1;
  }

  .service_section__text {
    order: 0;
  }

  /* 4. フローステップ：縦並び */
  .flow__steps {
    flex-direction: column;
    align-items: center;
  }

  .flow__step_group:not(:last-child) .flow__step {
    margin-bottom: 20px;
  }

  .flow__steps::before {
    display: none;
  }

  .flow__step_group {
    width: 100%;
  }

  .flow__step_label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .flow__step_label::before,
  .flow__step_label::after {
    content: "";
    flex: 1;
    border-top: 0.5px solid #2A5C30;
  }

  /* 5. 矢印を90度回転 */
  .flow__arrow {
    width: auto;
    padding-top: 0;
    margin-bottom: 20px;
  }

  .flow__arrow img {
    transform: rotate(90deg);
  }

  /* 6. グリッド：1カラム */
  .work_types__grid,
  .work_types__grid--4col .work_types__item {
    width: 100%;
  }

  .work_types__grid {
    flex-direction: column;
    gap: 30px;
  }

  .work_types__item:not(:last-child) {
    padding-bottom: 20px;
    border-bottom: 1px solid #d3d3d3;
  }

  /* 7. CTA：縦並び＋order制御 */
  .cta {
    flex-direction: column;
    align-items: stretch;
  }

  .cta__body {
    display: contents;
  }

  .cta__label {
    order: 1;
    padding: 30px 20px 0;
  }

  .cta__image {
    width: 100%;
    margin-right: 0;
    order: 2;
  }

  .cta__desc {
    order: 3;
    padding: 0 20px;
    margin-top: 24px;
    font-size: 14px;  
    line-height: 25.2px;
  }

  .cta__button {
    order: 4;
    margin: 0 auto 30px;
    max-width: 335px;
    text-align: center;
  }
}