@charset "utf-8";

/* ============================================================
   policy.css — Policy group pages
   (個人情報保護方針, 個人情報の取り扱い, 情報セキュリティ方針)
   Shared styles are in components.css
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; overflow-x: hidden; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #1a1a1a;
  overflow-x: clip;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #06617f; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #30a1af; }
ul, ol { list-style: none; }

.container {
  width: 100%;
  max-width: 68.75rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */

.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8125rem;
  color: #646464;
}
.breadcrumb a { color: #30a1af; }
.breadcrumb a:hover { color: #06617f; }
.breadcrumb__sep {
  margin: 0 0.5rem;
  color: #cacaca;
}

/* ============================================================
   PAGE HEADER (teal banner)
   ============================================================ */

.page-header {
  background: #30a1af;
  padding: 3.5rem 0;
}
.page-header__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1875rem);
  font-weight: normal;
  border-left: 0.3125rem solid #fff;
  padding-left: 1.875rem;
}
.page-header__sub {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
  font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", sans-serif;
}

/* ============================================================
   PAGE NAV (sub-navigation bar)
   ============================================================ */

.page-nav {
  background: #06617f;
}
.page-nav__list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-nav__item {
  flex: 1;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.page-nav__item:last-child { border-right: none; }

.page-nav__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  color: #fff;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  transition: background .2s;
  min-height: 5rem;
}
.page-nav__link:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ============================================================
   SECTION
   ============================================================ */

.section-pad { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 3.75rem;
  height: 0.1875rem;
  background: #30a1af;
  margin: 0.75rem auto 0;
  border-radius: 0.125rem;
}

/* ============================================================
   PRIVACY POLICY PAGE (個人情報保護方針)
   ============================================================ */

.privacy-content {
  max-width: 52rem;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.8;
  letter-spacing: 0.03em;
}
.privacy-content__date {
  text-align: right;
  margin-bottom: 2.5rem;
}
.privacy-content__end {
  text-align: right;
  margin: 2rem 0;
}

.privacy-logo {
  text-align: center;
  margin-top: 3rem;
}
.privacy-logo img {
  display: inline-block;
}
.privacy-logo a:hover {
  opacity: 0.7;
}

/* ============================================================
   HANDLING PAGE (個人情報の取り扱い)
   ============================================================ */

.handling-content {
  max-width: 52rem;
  margin: 0 auto;
  text-align: justify;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.handling-dl dt {
  font-weight: 700;
  color: #30a1af;
  padding-left: 0.5rem;
  margin-top: 2.5rem;
}
.handling-dl dt:first-child {
  margin-top: 0;
}
.handling-dl dd {
  margin: 0.75rem 0 0 1.25rem;
}
.handling-dl__sub {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}
.handling-dl__bullets {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.handling-dl__bullets li {
  margin-bottom: 0.5rem;
}
.handling-dl__note {
  font-size: 0.875rem;
  color: #646464;
}

.handling-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.handling-table th {
  background: #e9f8fa;
  text-align: center;
  font-weight: 600;
  padding: 0.625rem 1rem;
  border: 1px solid #30a1af;
}
.handling-table td {
  padding: 0.625rem 1rem;
  border: 1px solid #30a1af;
  line-height: 1.6;
}
.handling-table__cat {
  background: #e9f8fa;
}
.handling-table__disc {
  text-align: center;
  letter-spacing: 0.7em;
}
.handling-table__section {
  background: #f0f0f0;
  font-weight: 600;
}

.handling-note {
  margin: 1.5rem 0;
}
.handling-note__list {
  list-style: decimal;
  padding-left: 1.5rem;
  margin-top: 0.75rem;
}
.handling-note__list li {
  margin-bottom: 0.75rem;
}

/* ============================================================
   SECURITY POLICY PAGE (情報セキュリティ方針)
   ============================================================ */

.certificate-area {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 2.5rem 0 1.5rem;
}
.certificate-area img {
  max-width: 45%;
  height: auto;
}

.certificate-overview {
  text-align: left;
  line-height: 1.8;
}
.certificate-overview p {
  margin-bottom: 1.5rem;
}

.certificate-dl dt {
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.certificate-dl dd {
  margin: 0 0 1rem 0;
}
.certificate-dl ul {
  list-style: none;
  padding-left: 1.5rem;
}
.certificate-dl ul li {
  padding-left: 1.25rem;
  text-indent: -1.25rem;
  margin-bottom: 0.25rem;
}
.certificate-dl ul li::before {
  content: '• ';
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 48rem) {
  .section-pad { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }

  .page-header { padding: 2.5rem 0; }
  .page-header__title { font-size: 1.5rem; padding-left: 1rem; }

  .page-nav__link { font-size: 0.8125rem; padding: 0.75rem 0.25rem; min-height: 4rem; }

  .certificate-area {
    flex-direction: column;
    align-items: center;
  }
  .certificate-area img {
    max-width: 80%;
  }
}

@media (max-width: 30rem) {
  .section-pad { padding: 2.5rem 0; }

  .page-nav { display: none; }

  /* スマホでは3列テーブルを「1行＝1カード」に積み替え、
     各セルに項目名ラベルを付けてどの列の値か分かるようにする。 */
  .handling-table { border: none; }
  .handling-table thead { display: none; }
  .handling-table tbody,
  .handling-table tr,
  .handling-table td {
    display: block;
    width: 100%;
  }
  .handling-table tr {
    border: 1px solid #30a1af;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    overflow: hidden;
  }
  .handling-table td {
    border: none;
    border-bottom: 1px solid #cdeaee;
    padding: 0.625rem 1rem;
  }
  .handling-table tr td:last-child { border-bottom: none; }
  /* 各セルの先頭に列名を表示（区分見出し行 __section には付けない） */
  .handling-table__cat::before,
  .handling-table__cat + td::before,
  .handling-table__disc::before {
    font-weight: 700;
    color: #06617f;
    margin-right: 0.35rem;
  }
  .handling-table__cat::before { content: "分類："; }
  .handling-table__cat + td::before { content: "利用目的："; }
  .handling-table__disc::before { content: "開示区分："; }
  .handling-table__disc {
    text-align: left;
    letter-spacing: normal;
  }
  .handling-table__section {
    border-bottom: 1px solid #30a1af;
  }
}

/* ============================================================
   PAGE HERO (下層ページ共通のティールヒーロー)
   ※ PR #218(Nagato) のデザインに合わせて移植
   ============================================================ */

.page-hero {
  background: var(--c-teal);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}
.page-hero__label::before {
  content: '';
  display: inline-block;
  width: 3rem;
  height: 0.25rem;
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.page-hero__title {
  font-size: clamp(1.25rem, 3.2vw, 2.375rem);
  font-weight: 700;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 1rem;
}
.page-hero__desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 40rem;
}
.page-hero__deco {
  position: absolute;
  border-radius: 50%;
  border: 2.5rem solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.page-hero__deco--br {
  width: 24rem;
  height: 24rem;
  bottom: -5rem;
  right: -5rem;
}

/* ============================================================
   POLICY LAYOUT (サイドバー + 本文)  ※スクロール式
   ============================================================ */

.policy-layout {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
}

/* ---- サイドバー（PC: 左固定 / スマホ: 上部追従バー） ---- */
.policy-sidebar {
  position: sticky;
  top: 6rem;
  flex: 0 0 16rem;
  background: var(--c-teal);
  border-radius: 0.75rem;
  padding: 0.5rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.08);
}
.policy-sidebar__heading {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem 0.5rem;
}
.policy-sidebar__list { list-style: none; margin: 0; padding: 0; }
.policy-sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  border-radius: 0.5rem;
  transition: background .2s, color .2s;
}
.policy-sidebar__link .material-symbols-outlined { font-size: 1.25rem; flex-shrink: 0; }
.policy-sidebar__link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.policy-sidebar__link.active {
  background: #fff;
  color: #06617f;
}

/* ---- サイドバー：グループ見出し（親）＋サブ項目（子）の階層表示 ---- */
.policy-sidebar__link--group {
  font-weight: 800;
  letter-spacing: 0.03em;
}
.policy-sidebar__group:not(:first-child) {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.policy-sidebar__link--sub {
  padding-left: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.policy-sidebar__link--sub .material-symbols-outlined { font-size: 1.125rem; }

.policy-main { flex: 1 1 auto; min-width: 0; }

/* ============================================================
   POLICY ARTICLE CARD  ※PR #218(Nagato) のデザインに合わせる
   ============================================================ */

.policy-article {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(208, 208, 208, 0.3);
  padding: 3rem;
  box-shadow: 0 0.0625rem 0.25rem rgba(0, 0, 0, 0.06);
  scroll-margin-top: 6rem; /* 追従ヘッダー分のオフセット */
}
.policy-article + .policy-article { margin-top: 2.5rem; }
.policy-article__lead {
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.75rem;
}

.policy-list { list-style: none; padding: 0; }
.policy-list__item {
  border-left: 0.25rem solid #30a1af;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.policy-list__title {
  font-weight: 700;
  font-size: 1.125rem;
  color: #06617f;
  margin-bottom: 0.375rem;
}
.policy-list__text { color: #646464; }

.policy-contact-box {
  background: #f7fbfc;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.policy-contact-box__title {
  font-weight: 700;
  color: #06617f;
  margin-bottom: 0.5rem;
}
.policy-contact-box__text {
  font-size: 0.875rem;
  color: #646464;
}

.policy-cert-highlight {
  background: rgba(6, 97, 127, 0.05);
  border: 1px solid rgba(6, 97, 127, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 2rem 0;
}
.policy-cert-highlight__icon {
  font-size: 2rem;
  color: #06617f;
  flex-shrink: 0;
}
.policy-cert-highlight__title {
  font-weight: 700;
  color: #06617f;
  margin-bottom: 0.375rem;
}
.policy-cert-highlight__text {
  font-size: 0.875rem;
  color: #646464;
  line-height: 1.7;
}

/* card 内では section-title を左寄せにして見出しらしく */
.policy-article .section-title {
  text-align: left;
  margin-bottom: 2rem;
}
.policy-article .section-title::after { margin-left: 0; }

/* ============================================================
   POLICY レスポンシブ（≤768px: サイドバーを上部追従バーに）
   ============================================================ */

@media (max-width: 48rem) {
  .policy-layout {
    display: block;
  }
  /* スマホではサイドバー目次を非表示にし、本文を全幅で表示 */
  .policy-sidebar { display: none; }
  .policy-article {
    padding: 2rem;
    scroll-margin-top: 4.5rem; /* 追従バー分 */
  }
}

@media (max-width: 30rem) {
  .policy-article { padding: 1.5rem; }
}

/* ============================================================
   ワイド画面（≥1504px）: サイドバーをコンテンツ枠の外（左余白）へ
   レイアウト全体を左にずらし、本文はコンテナ全幅を使う。
   ============================================================ */
@media (min-width: 94rem) {
  .policy-layout {
    margin-left: -16.5rem; /* サイドバー幅(15rem)+gap(1.5rem) 分だけ左へ */
    gap: 1.5rem;
  }
  .policy-sidebar { flex: 0 0 15rem; }
}
