@charset "UTF-8";

/* ===== 利用規約ページ専用スタイル ===== */

/* ===== スクロール動作の改善（コーポレートサイト向け） ===== */
/* 基本設定 */
html {
  scroll-behavior: smooth;
  overflow-y: auto;
  height: 100%;
}

body.term-business-page {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  height: auto;
}

/* ヘッダーを固定（必要に応じて） */
.term-business-page .header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

/* スクロールバーのスタイリング（Webkit系ブラウザ） */
.term-business-page ::-webkit-scrollbar {
  width: 8px;
}

.term-business-page ::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.term-business-page ::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.term-business-page ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* ヘッダーデザイン - coding-test_260123_fitfull (1)のデザインを踏襲 */
.term-business-page .header {
  width: 100%;
  background: #fff;
}

.term-business-page .header-inner {
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.term-business-page .header-logo {
  flex: 0 0 auto;
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* 利用規約スタイル */
.term-business-page section.terms {
  background-color: #f8f8f8;
  padding: 9% 4%;
  line-height: 1.8;
}

.term-business-page .terms-container {
  max-width: 100%;
  margin: 0 auto;
}

.term-business-page .terms-title {
  position: relative;
  font-size: 35px;
  font-weight: 700;
  color: #333;
  text-align: center;
  padding-bottom: 20px;
}

/* 下線（オレンジバー） */
.term-business-page .terms-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: #f28c28; /* オレンジ */
  border-radius: 2px;
}

.term-business-page .chapter {
  font-size: 24px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 20px;
  color: #555; /* Gray */
  border-bottom: 2px solid #ff821d; /* Orange */
  padding-bottom: 10px;
  line-height: 1.4;
  border-top: none;
}

.term-business-page .article {
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ff821d; /* Orange */
  line-height: 1.5;
  border: none;
}

.term-business-page .article:after {
  border: none;
}
.term-business-page .paragraph {
  font-size: 16px;
  margin-bottom: 12px;
  color: #666; /* Gray */
  line-height: 1.8;
  text-align: justify;
}

/* ===== フッター - coding-test_260123_fitfull (1)のデザインを踏襲 ===== */
.term-business-page .site-footer {
  background: #2f2a2a;
  color: #fff;
}

.term-business-page .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 250px;
}

@media (max-width: 1400px) {
  .term-business-page .footer-inner {
    gap: clamp(50px, calc(31.65vw - 193.1px), 250px);
  }
}

@media (max-width: 920px) {
  .term-business-page .footer-inner {
    padding: 50px 40px;
  }
}

/* 左：ロゴ */
.term-business-page .footer-left {
  flex: 0 0 auto;
  display: inline-block;
}

.term-business-page .footer-logo {
  width: 225px;
  height: auto;
  display: block;
}

@media (max-width: 920px) {
  .term-business-page .footer-logo {
    width: 180px;
    height: auto;
    display: block;
  }
}

/* 右：リンク */
.term-business-page .footer-right {
  flex: 1;
  min-width: 0;
}

.term-business-page .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto auto;
  gap: 18px 80px;
  justify-content: end;
}

@media (max-width: 920px) {
  .term-business-page .footer-list {
    gap: 18px 40px;
  }
}

.term-business-page .footer-list li {
  margin: 0;
}

.term-business-page .footer-list a {
  display: flex;
  align-items: flex-start;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.2;
  opacity: 0.85;
}

.term-business-page .footer-list a::before {
  content: "-";
  flex: 0 0 12px;
  margin-right: 6px;
  text-align: center;
  opacity: 0.85;
}

.term-business-page .footer-list a:hover {
  opacity: 1;
}

/* ===== PC版レスポンシブ対応 ===== */
@media screen and (min-width: 768px) {
  /* PC版でのスクロール動作を改善 */
  html {
    overflow-y: auto;
    overscroll-behavior-y: auto;
  }
  
  body.term-business-page {
    overflow-x: hidden;
    overflow-y: visible;
    overscroll-behavior-y: auto;
    -webkit-overflow-scrolling: auto;
    scroll-behavior: smooth;
  }

  /* ヘッダー PC版 - coding-test_260123_fitfull (1)のデザインを踏襲 */
  .term-business-page .header-inner {
    max-width: none;
  }

  /* 利用規約スタイル PC版 */
  .term-business-page section.terms {
    padding: 3% 5%;
  }

  .term-business-page .terms-container {
    max-width: 900px;
    margin: 0 auto;
  }

  .term-business-page .terms-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .term-business-page .chapter {
    font-size: 28px;
    margin-top: 50px;
    margin-bottom: 25px;
  }

  .term-business-page .article {
    font-size: 22px;
    margin-top: 35px;
    margin-bottom: 18px;
  }

  .term-business-page .paragraph {
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 2;
  }
}

/* ===== SP対応 ===== */
@media screen and (max-width: 767px) {
  /* ヘッダー SP版 - coding-test_260123_fitfull (1)のデザインを踏襲 */
  .term-business-page .header-inner {
    max-width: none;
    width: 100%;
    padding: 10px 12px;
    gap: 15px;
  }

  .term-business-page .header-logo {
    height: 22px;
    max-width: 100%;
  }

  .term-business-page .terms-title {
    font-size: 26px;
    margin-bottom: 25px;
    padding-bottom: 12px;
  }

  .term-business-page .terms-title::after {
    width: 60px;
    height: 4px;
  }

  .term-business-page .chapter {
    font-size: 20px;
    margin-top: 5px;
    margin-bottom: 15px;
  }

  .term-business-page .article {
    font-size: 18px;
    margin-top: 25px;
    margin-bottom: 12px;
  }

  .term-business-page .paragraph {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
  }

  /* フッター SP版 - coding-test_260123_fitfull (1)のデザインを踏襲 */
  .term-business-page .footer-inner {
    padding: 60px 30px 80px;
    flex-direction: column;
    gap: 30px;
  }

  .term-business-page .footer-logo {
    width: 170px;
    max-width: 100%;
  }

  .term-business-page .footer-list {
    grid-template-columns: 1fr;
    gap: 15px;
    justify-content: start;
  }

  .term-business-page .footer-list a {
    font-size: 16px;
  }

  /* スマホでのスクロール動作を確保 */
  html {
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    position: relative;
  }

  body.term-business-page {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    position: relative;
    height: auto;
    min-height: 100vh;
  }

  /* コンテンツエリアのスクロールを確保 */
  .term-business-page section.terms {
    overflow: visible;
  }

  .term-business-page .terms-container {
    overflow: visible;
  }
}


