@charset "utf-8";

body.terms {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  body.terms {
    scroll-behavior: auto;
  }
}

body.terms{
    color: #3F3F3F;
}

body.terms .margin_b_16px{
  margin-bottom: 16px;
}

body.terms .margin_b_64px{
  margin-bottom: 64px;
}


body.terms .toc-accordion {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.terms .toc-group {
  border-bottom: 1px solid #e2e2e2;
}

body.terms .toc-group-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 12px 24px 12px 8px;
  cursor: pointer;
  position: relative;
  color: #3F3F3F;
}


body.terms .toc-group-btn::after {
  content: "＋";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: normal;
}

body.terms .toc-group-btn[aria-expanded="true"]::after {
  content: "－";
}

body.terms .toc-group-btn--sub {
  font-size: 0.8125rem;
  padding-left: 16px;
}


body.terms .toc-single-link {
  display: block;
  font-weight: bold;
  font-size: 0.75rem;
  padding: 12px 8px;
  color: #3F3F3F;
  text-decoration: none;
}

body.terms .toc-single-link:hover {
  background: #f5f7fa;
}

body.terms .toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

body.terms .toc-sublist.is-open {
  max-height: 1000px; 
}

body.terms .toc-sublist li a {
  display: block;
  padding: 8px 8px 8px 20px;
  font-size: 0.75rem;
  text-decoration: none;
  color: #3F3F3F;
}

body.terms .toc-sublist li a:hover {
  background: #f5f7fa;
}

body.terms .toc-sublist--nested {
  padding-left: 8px;
}

body.terms .toc-subgroup {
  border-top: 1px dashed #e2e2e2;
}


body.terms .toc-toggle {
  display: none;
}

body.terms .toc-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 20px;
  flex-shrink: 0;
}

body.terms .toc-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  transition: transform 0.3s, opacity 0.3s;
}

body.terms .toc-toggle[aria-expanded="true"] .toc-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
body.terms .toc-toggle[aria-expanded="true"] .toc-toggle-icon span:nth-child(2) {
  opacity: 0;
}
body.terms .toc-toggle[aria-expanded="true"] .toc-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.terms .toc-toggle-label {
  font-size: 0.875rem;
  color: #333;
}


body.terms .toc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

body.terms .toc-overlay.is-open {
  display: block;
}



body.terms main.content{
    max-width: 1200px;
    margin: 72px auto;
    padding: 0 16px;
}

body.terms main h1{
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #001F5A;
    margin-bottom: 72px;
}

body.terms .column_section{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap:34px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 16px;
}

body.terms .main_wrap{
    width: 75%;
}

body.terms .sub_wrap{
    width: 25%;
    background-color: #F4F6F8;
    border-radius: 12px;
    padding: 40px 15px;
}

body.terms .sub_wrap h2{
  font-size: 0.875rem;
  padding-left: 8px;
  font-weight: bold;
  margin-bottom: 8px;
}

body.terms .main_wrap h2{
    font-weight: bold;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

body.terms .main_wrap h3{
    font-size: 0.75rem;
}

body.terms .main_wrap section{
    margin-bottom: 37px;
}

body.terms .main_wrap section p,
body.terms .main_wrap section ol li{
    font-size: 0.75rem;
    line-height: 160%;
}

body.terms .main_wrap .kaiteibi{
    font-size: 0.75rem;
}

body.terms .main_wrap .kiyaku{
    margin-bottom: 88px;
}

body.terms .main_wrap .besshi{
  margin-bottom: 88px;
}

body.terms .main_wrap .besshi .sub_title{
    font-size: 1rem;
}


body.terms .device-table {
  width: 100%;
  max-width: 496px;
  table-layout: fixed;
  font-size: 0.75rem; 
}

body.terms .device-table th,
body.terms .device-table td {
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  text-align: center;
  vertical-align: middle;
}

body.terms .device-table thead th {
  font-weight: bold;
}

body.terms .device-table tbody td {
  width: 50%;
  font-weight: normal;
}

body.terms .insurance-table {
  width: 100%;
  max-width: 720px;
  table-layout: fixed;
  font-size: 0.75rem; 
}

body.terms .insurance-table th,
body.terms .insurance-table td {
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  text-align: center;
  vertical-align: middle;
}

body.terms .insurance-table thead th {
  font-weight: bold;
}

body.terms .insurance-table tbody td {
  font-weight: normal;
}

body.terms .insurance-table th:nth-child(1),
body.terms .insurance-table td:nth-child(1) {
  width: calc(100% / 3);
}

body.terms .insurance-table th:nth-child(2),
body.terms .insurance-table td:nth-child(2) {
  width: calc(100% / 3);
}

body.terms .insurance-table th:nth-child(3),
body.terms .insurance-table td:nth-child(3) {
  width: calc(100% / 3);
}

body.terms .table-title {
  font-size: 0.75rem;
  font-weight: bold;
  margin-bottom: 8px;
}

body.terms .documents-table {
  width: 100%;
  max-width: 720px;
  table-layout: fixed;
  font-size: 0.75rem; 
}

body.terms .documents-table th,
body.terms .documents-table td {
  border: 1px solid #ccc;
  padding: 0.75em 1em;
  vertical-align: middle;
}

body.terms .documents-table thead th {
  text-align: center;
  font-weight: bold;
}

body.terms .documents-table tbody td {
  font-weight: normal;
}

body.terms .documents-table tbody td.col-category {
  text-align: center;
  border-bottom-style: solid;
}

body.terms .documents-table tbody td.col-doc {
  text-align: left;
}

body.terms .documents-table th:first-child,
body.terms .documents-table td.col-category {
  width: 20%;
}

body.terms .documents-table tbody td.col-doc {
  border-top-style: dashed;
  border-bottom-style: dashed;
}

body.terms .documents-table tbody tr:first-child td.col-doc {
  border-top-style: solid;
}

body.terms .documents-table tbody tr.group-end td.col-doc {
  border-bottom-style: solid;
}

body.terms .documents-table tbody tr.group-end + tr td.col-doc {
  border-top-style: solid;
}

body.terms .documents-table tbody tr:last-child td.col-doc {
  border-bottom-style: solid;
}


@media (max-width: 1024px) {
  body.terms .toc-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: #eef1f6;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  body.terms .column_section {
    flex-direction: column;
    padding: 16px 16px 0;
  }

  body.terms .main_wrap {
    width: 100%;
  }

  body.terms .sub_wrap {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    max-height: 0;
    overflow-y: auto;
    background: #fff;
    z-index: 1000;
    padding: 0 16px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 0;
  }

  body.terms .sub_wrap.is-open {
    padding: 16px 16px 24px;
  }

  body.terms .documents-table th:first-child,
body.terms .documents-table td.col-category {
    width: 29%;
  }

  body.terms .device-table th,
body.terms .device-table td {
    padding: 0.75em 0;
}

body.terms .insurance-table th:nth-child(1),
body.terms .insurance-table td:nth-child(1) {
  padding: 0.75em 0;
  font-size: 0.625rem;
}

body.terms .insurance-table th:nth-child(2),
body.terms .insurance-table td:nth-child(2){
  padding: 0.75em 0;
}

body.terms .insurance-table th:nth-child(3),
body.terms .insurance-table td:nth-child(3){
  padding: 0.75em 0;
}

  
  body.terms section[id] {
    scroll-margin-top: 60px;
  }

}


@media (min-width: 1025px) {
  body.terms .sub_wrap {
    position: sticky;
    top: 24px;
    align-self: flex-start;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
  }
}


body.terms .page_top_btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #12335fd6;
    color: #fff;
    text-decoration: none;
    font-size: 24px;
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

body.terms .page_top_btn.is_show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


@media (max-width: 767px) {
    body.terms .page_top_btn {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
    }
    body.terms .sp_none{
    display: none;
}
}
