@charset "UTF-8";
.contents-view {
  background-image: url(../img/page-services.webp);
}

.service_flow {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f3f0e9;
  width: 99%;
  margin: 0 auto;
}

.service_flow ul {
  width: 95%;
  margin: 0;
  padding: 0;
}

.service_flow li {
  list-style-type: none;
}

.service_flow dd {
  margin-left: 20px;
  font-size: 18px;
}

.flow > li {
  padding: 40px 10px;
}

.flow > li:not(:last-child) {
  border-bottom: 3px solid #ff7458;
  position: relative;
}

.flow > li:not(:last-child)::before,
.flow > li:not(:last-child)::after {
  content: "";
  border: solid transparent;
  position: absolute;
  top: 100%;
  left: 15%;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

.flow > li:not(:last-child)::before {
  border-width: 22px;
  border-top-color: #ff7458;
}

.flow > li:not(:last-child)::after {
  border-width: 18px;
  border-top-color: #f3f0e9;
}

.flow > li dl {
  margin: 0;
}

.flow > li dl dt {
  font-size: 1.3em;
  font-weight: 600;
  border-bottom: 2px dotted #878787;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  display: flex;
}

.flow > li dl dt .step {
  font-size: 16px;
  color: #fff;
  background: #e73f3f;
  padding: 5px 25px;
  display: inline-block;
  margin: 0 20px;
}
/* ▼ サービス一覧 + バッジ画像の横並び */
.service-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* スマホ対応用 */
  background-color: #f7f5f0;
  padding: 40px;
}

.service-grid {
  flex: 1 1 70%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 100%;
}

.service-item {
  background-color: white;
  padding: 16px;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.service-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.service-badge img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

/* ▼ 料金表（Flexテーブル風） */
.price-flex-table {
  width: auto;
  min-width: 1200px;
  background-color: #f7f5f0;
  font-size: 18px;
  color: #333;
  padding: 40px;
  margin: 0 auto;
}

.price-header,
.price-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

.price-header {
  font-weight: bold;
  border-bottom: 2px solid #f87254; /* 赤ライン */
}

.price-row:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.price-header > div,
.price-row > div {
  flex: 1;
}
.service-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap; /* スマホ対応なら追加 */
  background-color: #f7f5f0;
  padding: 40px;
}

.service-grid {
  flex: 1 1 70%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 100%;
}

.service-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.service-badge img {
  width: 250px;
  max-width: 100%;
  height: auto;
}

.contact-conteainer {
    display: flex;
}

.contentsbtn-container {
    margin-right: 20px;
}
.office-buy-policy {
    text-align: center;
    background-color: #f3f0e9;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-buy-policy p {
    margin-bottom: 30px;
}

.office-buy-policy img {
    width: 80%;
}
img.sanpai-img {
    width: 850px;
}
@media screen and (max-width: 1200px) {

  .price-flex-table {
      min-width: auto;
  }
  .office-buy-policy img {
    width: 100%;
  }
  img.sanpai-img {
    width: 100%;
}
}
@media screen and (max-width: 800px) {
  .price-flex-table {
    min-width: auto;
    padding: 20px;
    font-size: 16px;
  }

  .price-header {
    display: none;           /* ヘッダーは非表示にして、各rowで見出し表記する */
  }

  .price-row {
    display: block;          /* 縦並び表示に */
    border: 1px solid #ddd;
    margin-bottom: 16px;
    padding: 12px;
  }

  .price-row > div {
    display: flex;
    justify-content: center;
    padding: 4px 0;
    font-size: 18px;
  }

  .price-row > div::before {
    content: attr(data-label); /* 擬似的に見出しを表示 */
    font-weight: bold;
    margin-right: 8px;
  }
  .price-level {
      background: #ff6e54;
      color: white;
      font-size: 22px;
      width: 100%;
  }
  .price-row:not(:last-child) {
    border-bottom:none;
  }
  .price-row {
      padding: 0px 0px 10px 0px;
      margin: 0;
      border: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .price-flex-table {
      padding: 0;
  }
  .price-row span {
    font-weight: bold;
  }
  .service-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .service-item {
    width: 100%;
  }
  .office-buy-policy {
    padding: 15px;
  }
  .flow > li dl dt .step {
    margin: 0px 8px 0px 0px;
    padding: 5px 10px;
  }

  .service_flow dd {
      margin-left: 0;
  }
}

@media screen and (max-width: 600px) {
  .flow > li {
    padding: 25px 10px;
  }

  .flow > li dl dt {
      font-size: 1.1rem;
  }

  .service_flow dd {
      font-size: 16px;
  }
}
