* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #333;
  background: #fffaf6;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    sans-serif;
  line-height: 1.9;
}


/* =========================================================
   ヘッダー
========================================================= */

.terms-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eaded8;
  box-shadow: 0 2px 12px rgba(60, 40, 30, 0.06);
}

.terms-header-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.terms-site-title {
  color: #4b3c38;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.terms-home-link {
  flex-shrink: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 42px;
  padding: 8px 20px;

  color: #ffffff;
  background: #a64f68;

  border-radius: 999px;

  text-decoration: none;
  font-size: 14px;
  font-weight: 700;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.terms-home-link:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}


/* =========================================================
   約款全体
========================================================= */

.terms-page {
  width: 100%;
  padding: 70px 20px 100px;
}

.terms-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}


/* =========================================================
   ページタイトル
========================================================= */

.terms-heading {
  margin-bottom: 50px;
  text-align: center;
}

.terms-kicker {
  margin: 0 0 8px;

  color: #8b6a60;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.terms-heading h1 {
  position: relative;

  display: inline-block;

  margin: 0;
  padding: 0 24px 18px;

  color: #473934;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.terms-heading h1::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: 0;

  width: 56px;
  height: 3px;

  background: #a64f68;
  border-radius: 3px;

  transform: translateX(-50%);
}


/* =========================================================
   目次
========================================================= */

.terms-toc {
  margin-bottom: 55px;
  padding: 30px 34px;

  background: #ffffff;

  border: 1px solid #eaded8;
  border-radius: 14px;

  box-shadow: 0 6px 24px rgba(70, 45, 35, 0.05);
}

.terms-toc h2 {
  margin: 0 0 22px;

  color: #4b3c38;
  font-size: 22px;
  text-align: center;
}

.terms-toc ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 36px;

  margin: 0;
  padding-left: 28px;
}

.terms-toc li {
  padding: 3px 0;

  color: #765a51;
  font-size: 15px;
}

.terms-toc a {
  color: #50413c;
  text-decoration: none;
  border-bottom: 1px dotted #baa39a;
}

.terms-toc a:hover {
  color: #a64f68;
  border-bottom-color: #a64f68;
}


/* =========================================================
   各項目
========================================================= */

.terms-section {
  scroll-margin-top: 30px;

  margin-bottom: 34px;
  padding: 36px 40px;

  background: #ffffff;

  border: 1px solid #eaded8;
  border-radius: 14px;

  box-shadow: 0 5px 20px rgba(70, 45, 35, 0.04);
}

.terms-section h2 {
  margin: 0 0 28px;
  padding: 14px 18px;

  color: #ffffff;
  background: #5b4841;

  border-left: 6px solid #b65d78;
  border-radius: 5px;

  font-size: 22px;
  line-height: 1.6;
}

.terms-section h3 {
  margin: 32px 0 15px;
  padding-left: 13px;

  color: #4d3e39;

  border-left: 4px solid #b65d78;

  font-size: 19px;
  line-height: 1.6;
}

.terms-section h4 {
  margin: 30px 0 16px;

  color: #694e45;
  font-size: 18px;
  line-height: 1.6;
}

.terms-section h5 {
  margin: 0 0 12px;

  color: #4d3e39;
  font-size: 17px;
}

.terms-section p {
  margin: 0 0 18px;

  font-size: 16px;
  line-height: 2;
}

.terms-section ul,
.terms-section ol {
  line-height: 1.9;
}

.terms-section li {
  margin-bottom: 8px;
}


/* =========================================================
   インデント・リスト
========================================================= */

.terms-indent {
  margin-left: 24px;
}

.terms-indent ul {
  margin-top: 6px;
  margin-bottom: 18px;
}

.terms-bullet-list {
  margin: 0 0 20px;
  padding-left: 25px;
}

.terms-number-list {
  margin: 0;
  padding-left: 28px;
}

.terms-number-list > li {
  margin-bottom: 15px;
}


/* =========================================================
   小項目
========================================================= */

.terms-subsection {
  margin: 28px 0;
  padding: 24px 26px;

  background: #fff8f5;

  border: 1px solid #ecdcd5;
  border-radius: 10px;
}

.terms-subsection h3,
.terms-subsection h4 {
  margin-top: 0;
}


/* =========================================================
   注意事項
========================================================= */

.terms-note {
  margin: 24px 0;
  padding: 20px 24px;

  background: #f7f2ef;

  border-left: 5px solid #8e7167;
  border-radius: 5px;
}

.terms-note p:last-child {
  margin-bottom: 0;
}

.terms-note-important {
  background: #fff3f5;
  border-left-color: #b64f6b;
}

.terms-caution {
  margin-top: 24px !important;
  padding: 18px 22px;

  color: #6a3c47;
  background: #fff1f4;

  border: 1px solid #edcbd3;
  border-radius: 8px;

  font-weight: 600;
}


/* =========================================================
   表
========================================================= */

.terms-table-block {
  margin: 22px 0 34px;
}

.terms-table-scroll {
  width: 100%;
  margin: 12px 0 28px;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.terms-table {
  width: 100%;
  min-width: 720px;

  border-collapse: collapse;

  background: #ffffff;

  font-size: 14px;
}

.terms-table th,
.terms-table td {
  padding: 13px 12px;

  border: 1px solid #d9cdc8;

  vertical-align: middle;
  text-align: center;
  line-height: 1.7;
}

.terms-table th {
  color: #ffffff;
  background: #6b544c;

  font-weight: 700;
}

.terms-table thead tr:nth-child(2) th {
  background: #80675e;
}

.terms-table tbody tr:nth-child(even) {
  background: #fcf8f6;
}

.terms-table tbody tr:hover {
  background: #fff3f5;
}

.terms-table td:first-child {
  font-weight: 600;
}

.terms-benefit-table {
  min-width: 780px;
}

.terms-table-message td {
  color: #6c404b;
  background: #fff2f4 !important;

  font-weight: 600;
}

.terms-table-heading td {
  color: #55423d;
  background: #f0e7e3 !important;

  font-weight: 700;
}


/* =========================================================
   免責事項
========================================================= */

.terms-exemption-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;

  margin-top: 30px;
}

.terms-exemption-box {
  padding: 26px;

  background: #faf7f5;

  border: 1px solid #e4d9d4;
  border-radius: 10px;
}

.terms-exemption-box h3 {
  margin-top: 0;
  margin-bottom: 20px;

  color: #59443d;
}


/* =========================================================
   ページ上部へ戻る
========================================================= */

.terms-back-top {
  margin-top: 50px;
  text-align: center;
}

.terms-back-top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  min-height: 48px;
  padding: 10px 28px;

  color: #ffffff;
  background: #5b4841;

  border-radius: 999px;

  text-decoration: none;
  font-size: 15px;
  font-weight: 700;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.terms-back-top a:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}


/* =========================================================
   タブレット
========================================================= */

@media screen and (max-width: 900px) {

  .terms-page {
    padding-top: 50px;
  }

  .terms-section {
    padding: 30px 28px;
  }

  .terms-toc ol {
    grid-template-columns: 1fr;
  }

  .terms-exemption-grid {
    grid-template-columns: 1fr;
  }

}


/* =========================================================
   スマートフォン
========================================================= */

@media screen and (max-width: 600px) {

  body {
    line-height: 1.8;
  }

  .terms-header-inner {
    width: calc(100% - 28px);
    min-height: auto;
    padding: 14px 0;

    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .terms-site-title {
    font-size: 15px;
    line-height: 1.6;
  }

  .terms-home-link {
    min-height: 38px;
    padding: 6px 16px;

    font-size: 13px;
  }


  /* ページ全体 */

  .terms-page {
    padding: 38px 14px 70px;
  }

  .terms-heading {
    margin-bottom: 34px;
  }

  .terms-kicker {
    font-size: 13px;
    line-height: 1.7;
  }

  .terms-heading h1 {
    font-size: 30px;
  }


  /* 目次 */

  .terms-toc {
    margin-bottom: 34px;
    padding: 22px 20px;

    border-radius: 10px;
  }

  .terms-toc h2 {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .terms-toc ol {
    gap: 4px;
    padding-left: 24px;
  }

  .terms-toc li {
    font-size: 14px;
    line-height: 1.7;
  }


  /* 本文 */

  .terms-section {
    margin-bottom: 22px;
    padding: 24px 18px;

    border-radius: 10px;
  }

  .terms-section h2 {
    margin-bottom: 22px;
    padding: 12px 13px;

    border-left-width: 5px;

    font-size: 18px;
    line-height: 1.6;
  }

  .terms-section h3 {
    margin-top: 26px;

    font-size: 17px;
  }

  .terms-section h4 {
    margin-top: 24px;

    font-size: 16px;
  }

  .terms-section h5 {
    font-size: 16px;
  }

  .terms-section p {
    margin-bottom: 16px;

    font-size: 14px;
    line-height: 1.9;
  }

  .terms-section li {
    font-size: 14px;
    line-height: 1.9;
  }

  .terms-indent {
    margin-left: 10px;
  }


  /* 小項目 */

  .terms-subsection {
    margin: 22px 0;
    padding: 18px 16px;
  }


  /* 注意事項 */

  .terms-note {
    padding: 16px;
  }

  .terms-caution {
    padding: 15px;
  }


  /* 表 */

  .terms-table-scroll {
    position: relative;

    margin-right: -4px;
    padding-bottom: 7px;
  }

  .terms-table-scroll::after {
    content: "← 横にスクロールできます →";

    display: block;

    margin-top: 7px;

    color: #8a746c;
    font-size: 11px;
    text-align: center;
  }

  .terms-table {
    min-width: 680px;

    font-size: 12px;
  }

  .terms-table th,
  .terms-table td {
    padding: 10px 8px;
  }

  .terms-benefit-table {
    min-width: 720px;
  }


  /* 免責事項 */

  .terms-exemption-grid {
    gap: 18px;
  }

  .terms-exemption-box {
    padding: 19px 16px;
  }


  /* ページ上部 */

  .terms-back-top {
    margin-top: 36px;
  }

  .terms-back-top a {
    width: 100%;
    max-width: 300px;
  }

}