@charset "UTF-8";

/*
 * service.css
 * サービス詳細（service/detail.html）専用スタイル
 */

.page-service-detail {
}
.page-service-detail .page-content {
  padding-top: 100px;
  background: url(../img/service/bg_service.jpg) no-repeat top center #f5fdfd;
  background-size: 100%;
  padding-bottom: 80px;
}

/* ============================================================
   service-hero
   ============================================================ */

.service-hero {
  padding: 0px 30px 10px;
  position: relative;
  overflow: hidden;
}

.service-hero .inner {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  max-width: 1060px;
  min-height: 400px;
}

/* WP: the_title() */
.service-title {
  font-size: 86px;
  font-weight: 900;
  color: #000;
  line-height: 1.1;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 10;
  margin: 0;
}
.service-hero .service-title:first-letter {
  color: #17c6cc;
}

/* WP: the_field('lead') */
.service-lead {
  font-size: 18px;
  color: #4c4b4b;
  width: min(980px, 100%);
  align-self: flex-end;
  position: relative;
  z-index: 1;
  margin-top: -34px;
  padding: 70px 50px 40px 50px;
  font-weight: 700;
  line-height: 2em;
  letter-spacing: 0.09em;
  background: #e1f8f8c7;
  box-sizing: border-box;
}

/* ============================================================
   service-content（コンポーネントテーブル）
   ============================================================ */

/* WP: ACF repeater → .service-group（コンポーネント・カテゴリ・支援内容） */

.service-content {
  padding: 30px 30px 80px;
}
.service-content .inner {
  max-width: 1060px;
  width: 94%;
  background: #fff;
  box-sizing: border-box;
  padding: 30px 30px;
}

/* テーブル列幅定義（PC）：コンポーネント 240px ／ カテゴリ 210px ／ 支援内容 1fr */

/* PCヘッダー行（SP非表示） */
.service-table-head {
  display: grid;
  grid-template-columns: 240px 210px 1fr;
  background: transparent;
}

.service-table-head > div {
  font-size: 17px;
  font-weight: 700;
  color: #b9eef0;
  padding: 0 10px 0;
  letter-spacing: 0.13em;
}

/* グループ */
.service-group {
  display: grid;
  grid-template-columns: 240px 1fr;
  margin-top: 8px;
}

/* コンポーネントセル */
.service-group-component {
  background: #17c6cc;
  color: #fff;
  font-size: 18px;
  border-right: 3px solid #fff;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px;
  line-height: 1.7;
  border-bottom: 3px solid #fff;
}

/* 行エリア */
.service-group-body {
  display: flex;
  flex-direction: column;
}

/* SP用サブヘッダー：PC非表示 */
.service-subhead {
  display: none;
}

/* 各行 */
.service-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  border-bottom: 3px solid #fff;
  align-items: stretch;
}

.service-group-body .service-row:first-of-type {
  border-top: 1px solid #c8ecec;
}

/* カテゴリセル */
.service-row-cat {
  position: relative;
  font-size: 17px;
  font-weight: 500;
  color: #17c6cc;
  padding: 10px 0px 10px 14px;
  border-top: 2px solid #f1fcfc;
  border-bottom: 2px solid #f1fcfc;
  background: #f1fcfc;
  line-height: 1.4;
  letter-spacing: 0.08em;
  overflow: hidden;
  z-index: 0;

  display: grid;
  align-content: center;
}

.service-row-cat::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 18px;
  height: 100%;
  background: #fff;
  clip-path: polygon(100% 0, 100% 0, 0 100%, 100% 100%);
  z-index: -1;
}

/* 支援内容セル */
.service-row-content {
  padding: 12px 20px 12px 10px;
  border-top: 2px solid #f1fcfc;
  border-bottom: 2px solid #f1fcfc;
  border-right: 2px solid #f1fcfc;
  background-color: #fff;

  display: flex;
  align-items: center;
}

.service-row-content ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-row-content li + li {
  margin-top: 6px;
}

.service-row-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.service-row-content li + li {
  margin-top: 6px;
}

.service-row-content li {
  font-size: 17px;
  color: #333;
  line-height: 1.5em;
  padding-left: 1.2em;
  position: relative;
}

.service-row-content li::before {
  content: "●";
  color: #17c6cc;
  font-size: 17px;
  position: absolute;
  left: 0;
  top: 0;
}

/* ============================================================
   service-cta
   ============================================================ */

.service-cta {
  padding: 20px 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

/* ボタンアイコン（img差し替え前提） */
.service-btn-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

/* 資料ダウンロードボタン（塗り） */
.service-btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #17c6cc;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
  padding: 16px 48px;
  border-radius: 50px;
  width: 400px;
  transition: opacity 0.25s;
}

.service-btn-download:hover {
  opacity: 0.85;
  color: #fff;
}

/* お問い合わせボタン（枠線） */
.service-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 2px solid #17c6cc;
  color: #17c6cc;
  font-size: 22px;
  font-weight: 500;
  padding: 16px 48px;
  border-radius: 50px;
  width: 400px;
  transition: opacity 0.25s;
}

.service-btn-contact:hover {
  background: #17c6cc;
  color: #fff;
}

.service-btn-contact:hover .service-btn-icon {
  filter: brightness(0) invert(1);
}

.service-group-component-subhead-sp {
  display: none;
}

/* ============================================================
   SP（max-width: 767px）
   ============================================================ */

@media screen and (max-width: 767px) {
  .page-service-detail .page-content {
    padding-top: 60px;
    background: url(../img/service/bg_service_sp.jpg) no-repeat top center;
    background-size: 100%;
    padding-bottom: 45px;
  }

  /* service-hero */
  .service-hero {
    padding: 0 0 10px 18px;
  }

  .service-hero .inner {
    min-height: 0;
  }

  .service-title {
    line-height: 1.05;
    font-size: 41px;
  }

  .service-lead {
    font-size: 12px;
    width: calc(100% - 36px);
    margin-top: -18px;
    padding: 30px 16px 30px 31px;
    line-height: 1.7em;
  }

  .service-group-component-subhead-sp {
    font-size: 9px;
    font-weight: 500;
    color: #b9eef0;
    padding: 0 0 0 7px;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 5px;
  }

  /* service-content */
  .service-content {
    padding: 0 20px 30px;
  }
  .service-content .inner {
    width: 100%;
    background: #fff;
    box-sizing: border-box;
    padding: 0px 15px 15px;
  }

  /* PCヘッダー行を非表示 */
  .service-table-head {
    display: none;
  }

  /* グループ：縦積み */
  .service-group {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  /* コンポーネント：全幅ヘッダー */
  .service-group-component {
    padding: 5px 12px;
    font-size: 10px;
    text-align: center;
    justify-content: center;
    line-height: 1.5;
  }

  /* SP用サブヘッダーを表示 */
  .service-subhead {
    display: grid;
    grid-template-columns: 2fr 3fr;
    background: #fff;
    padding: 0px 8px 2px;
  }

  .service-subhead span {
    font-size: 9px;
    color: #17c6cc;
    font-weight: 700;
  }

  /* 2つ目以降のコンポーネントでは見出し行を非表示 */
  .service-group ~ .service-group .service-subhead {
    display: none;
  }

  /* 各行：2カラム */
  .service-row {
    grid-template-columns: 120px 1fr;
  }

  .service-row-cat {
    font-size: 9px;
    padding: 10px 6px 10px 8px;
    border-top: 1px solid #f1fcfc;
    border-bottom: 1px solid #f1fcfc;
  }

  .service-row-content {
    padding: 4px 8px 4px 0px;
    border-top: 1px solid #f1fcfc;
    border-bottom: 1px solid #f1fcfc;
    border-right: 1px solid #f1fcfc;
  }

  .service-row-cat::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: #fff;
    clip-path: polygon(100% 0, 100% 0, 0 100%, 100% 100%);
    z-index: -1;
  }
  .service-row-content li + li {
    margin-top: 3px;
  }

  .service-row-content li {
    font-size: 9px;
  }
  .service-row-content li::before {
    content: "●";
    color: #17c6cc;
    font-size: 9px;
    position: absolute;
    left: 0;
    top: 0;
  }

  /* service-cta */
  .service-cta {
    padding: 0 20px 6px;
    gap: 16px;
  }

  .service-btn-download,
  .service-btn-contact {
    padding: 6px 3px;
    width: 50%;
    font-size: 14px;
  }
  .service-btn-download .service-btn-icon,
  .service-btn-contact .service-btn-icon {
    width: 16px;
  }
}
