@charset "UTF-8";
/* CSS Document
   サービスページ共通（succession.html / retreat.html）
   モバイルファースト：基本＝スマホ → 769px以上＝タブレット → 1025px以上＝PC
   ※PCの見た目は layout.css / company.css を踏襲
*********************************************************************/

/* ================================================================
   基本（スマホ）
================================================================ */
html body .is-pc {
  display: none;
}
html body .is-sp {
  display: block;
}

/* 枠 */
.contents {
  padding: 80px 10px 30px;
  margin-bottom: 0;
}
.wrapper {
  padding: 32px 18px 40px;
}

/* 文節で改行（<wbr> の位置でだけ折り返す） */
.contents h2,
.contents h3,
.contents h4,
.lead,
.lead_s,
.point_box,
ul.check_list li,
ul.grid_list li,
.plan_box .name,
.plan_box .goal {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
}
table th,
table td.label {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
}
/* 本文も文節で改行・行頭禁則を厳しめに・最終行の1文字残りを防ぐ */
.contents p,
.contents li {
  word-break: keep-all;
  overflow-wrap: anywhere;
  line-break: strict;
  text-wrap-style: pretty;
}
.contents td {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap-style: pretty;
}

/* 見出し */
.contents h2 {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  line-height: 1.4;
  margin-bottom: 56px;
}
.contents h2::after {
  position: absolute;
  top: 58px;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  content: attr(data-en);
  display: block;
  text-align: center;
  font-size: 12px;
  letter-spacing: 2px;
  white-space: nowrap;
  color: #f08300;
}
.contents h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  padding: 12px 14px;
  margin-top: 48px;
  margin-bottom: 20px;
}
.contents h4 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-top: 32px;
  margin-bottom: 16px;
}
.contents p + p {
  margin-top: 1em;
}
.mb {
  margin-bottom: 20px;
}
.mt {
  margin-top: 20px;
}

/* リード文 */
.lead {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 16px;
}
.lead_s {
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.8;
}

/* 強調ボックス */
.point_box {
  border-left: #f08300 solid 5px;
  background: #FFF6EC;
  padding: 16px 18px;
  margin: 24px 0;
  font-weight: bold;
}

/* チェックリスト */
ul.check_list {
  list-style: none;
  margin: 20px 0;
}
ul.check_list li {
  position: relative;
  padding-left: 1.8em;
  margin-bottom: 8px;
}
ul.check_list li::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
  position: absolute;
  left: 0;
  color: #f08300;
}

/* グリッド（スマホは1列） */
ul.grid_list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 20px 0;
}
ul.grid_list li {
  width: 100%;
  border: solid 1px #CCCCCC;
  padding: 10px 14px;
  margin-bottom: 8px;
}

/* プランカード（スマホは縦積み） */
.plan_box {
  display: flex;
  flex-direction: column;
  margin: 30px 0;
}
.plan_box .item {
  width: 100%;
  border: solid 1px #CCCCCC;
  padding: 24px 18px 20px;
  margin-bottom: 30px;
  position: relative;
}
.plan_box .item.recommend {
  border: solid 2px #f08300;
}
.plan_box .badge {
  position: absolute;
  top: -14px;
  left: 18px;
  background: #f08300;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 2px 12px;
  line-height: 1.8;
}
.plan_box .term {
  color: #f08300;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
}
.plan_box .name {
  font-size: 1.2rem;
  font-weight: bold;
  border-bottom: #f08300 solid 1px;
  padding-bottom: 8px;
  margin: 8px 0 12px;
}
.plan_box .goal {
  margin-top: 12px;
  font-weight: bold;
}

/* 表（company.css と同じ見た目） */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
}
table th {
  background-color: #F7F7F7;
  padding: 0.6rem 0.7rem;
  line-height: 1.8;
  text-align: center;
}
table td {
  padding: 0.6rem 0.7rem;
  line-height: 1.8;
  text-align: left;
  vertical-align: top;
}
table th, table td {
  border: solid 1px #CCCCCC
}
table td a {
  text-decoration: underline;
}
/* 見出し列：中身の幅だけ取る */
table td.label {
  width: 1%;
  white-space: nowrap;
}
/* 見出し列が長い表：スマホでは見出しを上、内容を下に積む */
table.tbl_stack thead {
  display: none;
}
table.tbl_stack tr,
table.tbl_stack td {
  display: block;
  width: 100%;
}
table.tbl_stack tr {
  border: solid 1px #CCCCCC;
  margin-bottom: -1px;
}
table.tbl_stack td {
  border: none;
}
table.tbl_stack td.label {
  white-space: normal;
  background-color: #F7F7F7;
  font-weight: bold;
}

/* 3〜4列の表：スマホは横スクロール */
.table_scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table_scroll table {
  min-width: 640px;
}
.scroll_note {
  display: block;
  font-size: 12px;
  color: #888;
}

/* 料金 */
.price {
  font-size: 1.3rem;
  font-weight: bold;
  color: #f08300;
}

/* ================================================================
   タブレット（769px〜）
================================================================ */
@media all and (min-width: 769px) {
  html body .is-pc {
    display: block;
  }
  html body .is-sp {
    display: none;
  }
  .contents {
    padding: 100px 3% 100px;
    margin-bottom: 80px;
  }
  .wrapper {
    padding: 80px 3% 100px;
  }
  .contents h2 {
    font-size: 2rem;
    letter-spacing: 10px;
    line-height: inherit; /* 会社案内と同じ（28.8px） */
    margin-bottom: 100px;
  }
  .contents h2::after {
    top: 55px;
    font-size: 16px;
    letter-spacing: 5px;
  }
  .contents h3 {
    font-size: 1.5rem;
    padding: 16px 24px;
    margin-top: 60px;
    margin-bottom: 30px;
  }
  .contents h4 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  .lead {
    font-size: 24px;
  }
  .lead_s {
    font-size: 1.1rem;
  }
  .point_box {
    padding: 20px 24px;
    margin: 30px 0;
  }
  ul.grid_list li {
    width: 49%;
    padding: 12px 16px;
    margin-bottom: 10px;
  }
  .plan_box {
    flex-direction: row;
    justify-content: space-between;
    margin: 20px 0 30px;
  }
  .plan_box .item {
    width: 32%;
    margin-bottom: 0;
    padding: 24px 20px;
  }
  .plan_box .badge {
    left: 20px;
  }
  table th,
  table td {
    padding: 1rem 1rem;
    line-height: 2;
  }
  table.tbl_stack thead {
    display: table-header-group;
  }
  table.tbl_stack tr {
    display: table-row;
    border: none;
  }
  table.tbl_stack td {
    display: table-cell;
    width: auto;
    border: solid 1px #CCCCCC;
  }
  table.tbl_stack td.label {
    width: 1%;
    white-space: nowrap;
    background-color: transparent;
    font-weight: normal;
  }
  .scroll_note {
    display: none;
  }
  .price {
    font-size: 1.5rem;
  }
}

/* ================================================================
   PC（1025px〜）
================================================================ */
@media all and (min-width: 1025px) {
  .contents {
    padding: 100px 0 0;
  }
  .wrapper {
    padding: 80px 100px 80px;
  }
  .contents h2 {
    letter-spacing: 30px;
  }
  .contents h2::after {
    left: -26px;
  }
}
