/* ===================================================
 * プライバシーポリシー（law）デザインスタイル
 * =================================================== */

/* 全体コンテナ */
.l-p.law {
  width: 100%;
  color: #333333;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.9;
  background-color: #ffffff;
  box-sizing: border-box;
}

.l-p.law * {
  box-sizing: border-box;
}

.law__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 20px 100px;
}

/* ---------------------------------------------------
 * 大見出し (h3)
 * --------------------------------------------------- */
.law__inner h3 {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  color: #2b8256; /* コーポレートグリーン */
  letter-spacing: 0.05em;
  margin: 0 0 45px 0;
  line-height: 1.4;
}

/* 見出し下の英語サブタイトルを疑似要素で自動表示 */
.law__inner h3::after {
  content: "Privacy policy";
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #3da871;
  letter-spacing: 0.12em;
  margin-top: 8px;
}

/* クッキー見出し */
.law__inner h3.privacy_title02 {
  margin-top: 80px;
}

.law__inner h3.privacy_title02::after {
  content: "Cookie";
}

/* ---------------------------------------------------
 * 本文・リード文
 * --------------------------------------------------- */
.law__inner .privacy-p {
  margin-bottom: 35px;
  line-height: 1.9;
  text-align: justify;
}

/* ---------------------------------------------------
 * 各セクションブロック & 中見出し (h4)
 * --------------------------------------------------- */
.law__inner__block {
  margin-bottom: 40px;
}

.law__inner__block h4 {
  font-size: 18px;
  font-weight: 700;
  color: #222222;
  padding-bottom: 10px;
  margin: 0 0 18px 0;
  border-bottom: 1px solid #e0e0e0; /* 見出し下の薄いグレー線 */
  line-height: 1.5;
}

.law__inner__block p {
  margin: 0 0 16px 0;
  line-height: 1.9;
}

/* ---------------------------------------------------
 * リスト (ol / ul)
 * --------------------------------------------------- */
/* 番号付きリスト */
.law__inner__block ol {
  padding-left: 1.6em;
  margin: 0 0 20px 0;
  list-style-type: decimal;
}

.law__inner__block ol > li {
  margin-bottom: 16px;
  padding-left: 4px;
}

.law__inner__block ol > li:last-child {
  margin-bottom: 0;
}

/* 中小丸リスト */
.law__inner__block ul {
  padding-left: 1.5em;
  margin: 12px 0 20px 0;
  list-style-type: disc;
}

.law__inner__block ul > li {
  margin-bottom: 8px;
  padding-left: 4px;
}

.law__inner__block ul > li:last-child {
  margin-bottom: 0;
}

/* ---------------------------------------------------
 * クッキー拒否方法（ブラウザ別リンクブロック）
 * --------------------------------------------------- */
.law__inner__block-last ul {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

/* 各ブラウザの帯枠 */
.law__inner__block-last ul > li {
  background-color: #edf1f6; /* 薄いグレーブルー背景 */
  border-left: 4px solid #2b8256; /* 左端のグリーンアクセント線 */
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}

.law__inner__block-last ul > li .strong {
  display: block;
  font-weight: 700;
  color: #222222;
  margin-bottom: 4px;
  font-size: 14px;
}

.law__inner__block-last ul > li a {
  color: #2b8256;
  text-decoration: underline;
  word-break: break-all;
  font-size: 13.5px;
  transition: opacity 0.2s ease;
}

.law__inner__block-last ul > li a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* 最後の補足注記（※上記以外の〜）のみ枠線を外す */
.law__inner__block-last ul > li:last-child {
  background-color: transparent;
  border-left: none;
  padding: 8px 0 0;
  margin-bottom: 0;
  font-size: 13px;
  color: #666666;
}

/* ---------------------------------------------------
 * スマホ表示用（レスポンシブ対応）
 * --------------------------------------------------- */
@media screen and (max-width: 768px) {
  .law__inner {
    padding: 40px 16px 60px;
  }

  .law__inner h3 {
    font-size: 21px;
    margin-bottom: 30px;
  }

  .law__inner h3.privacy_title02 {
    margin-top: 55px;
  }

  .law__inner h3::after {
    font-size: 12px;
  }

  .law__inner__block h4 {
    font-size: 16px;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }

  .l-p.law,
  .law__inner .privacy-p,
  .law__inner__block ol > li,
  .law__inner__block ul > li {
    font-size: 14px;
  }

  .law__inner__block-last ul > li {
    padding: 10px 14px;
  }
}



/* ヘッダー全体 */
body.page-id-31 header,
body.page-template-page-privacy header {
  position: relative;
  z-index: 9999;
  background: transparent;
  width: 100%;
}
body.page-id-31 header nav ul {
    width: auto;
    max-width: 530px;
}

/* PC：横並びレイアウト */
body.page-id-31 #main-nav,
body.page-template-page-privacy #main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* max-width: 1140px; */
  margin: 0 auto;
  padding: 20px 20px;
}

body.page-id-31 #main-nav h1,
body.page-template-page-privacy #main-nav h1 {
  margin: 0;
  flex-shrink: 0;
}

body.page-id-31 #main-nav h1 img,
body.page-template-page-privacy #main-nav h1 img {
  height: 48px;
  width: auto;
  display: block;
}

body.page-id-31 #main-nav ul,
body.page-template-page-privacy #main-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* PC：メニュー文字色（白背景で見えるように緑色に設定） */
body.page-id-31 #main-nav ul li a,
body.page-template-page-privacy #main-nav ul li a {
  color: #0aab8a !important; /* トップページのグリーン */
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

body.page-id-31 #main-nav ul li a:hover,
body.page-template-page-privacy #main-nav ul li a:hover {
  opacity: 0.7;
}

/* PC時はハンバーガーボタンを非表示 */
body.page-id-31 header nav button.hamburger,
body.page-template-page-privacy header nav button.hamburger {
  display: none;
}

/* ---------------------------------------------------
 * スマホ・タブレット用（992px以下）ハンバーガーメニュー
 * --------------------------------------------------- */
@media (max-width: 992px) {
  body.page-id-31 #main-nav,
  body.page-template-page-privacy #main-nav {
    padding: 12px 20px;
  }

  /* メニュー展開エリア（全画面緑背景） */
  body.page-id-31 #main-nav ul,
  body.page-template-page-privacy #main-nav ul {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    /* background: #0aab8a !important; */
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 99998 !important;
    margin: 0 !important;
    padding: 80px 20px 40px !important;
    box-sizing: border-box !important;
    max-width: none;
  }

  /* メニューが開いた時 */
  body.page-id-31 #main-nav.open ul,
  body.page-template-page-privacy #main-nav.open ul {
    display: flex !important;
  }

  body.page-id-31 #main-nav ul li,
  body.page-template-page-privacy #main-nav ul li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    text-align: center !important;
  }

  /* 開いたメニュー内の文字は白 */
  body.page-id-31 #main-nav ul li a,
  body.page-template-page-privacy #main-nav ul li a {
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: bold !important;
    display: block !important;
    padding: 8px 0 !important;
    white-space: normal !important;
  }

  /* ハンバーガーボタン本体 */
  body.page-id-31 header nav button.hamburger,
  body.page-template-page-privacy header nav button.hamburger {
    display: block !important;
    position: fixed !important;
    right: 15px !important;
    top: 12px !important;
    z-index: 99999 !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #0aab8a !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    outline: none !important;
  }

  body.page-id-31 header nav button.hamburger::before,
  body.page-id-31 header nav button.hamburger::after,
  body.page-template-page-privacy header nav button.hamburger::before,
  body.page-template-page-privacy header nav button.hamburger::after {
    display: none !important;
    content: none !important;
  }

  /* ボタン内の3本線 */
  body.page-id-31 header nav button.hamburger span,
  body.page-template-page-privacy header nav button.hamburger span {
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    width: 22px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
    transform: translateX(-50%) !important;
    pointer-events: none !important;
  }

  body.page-id-31 header nav button.hamburger span:nth-child(1),
  body.page-template-page-privacy header nav button.hamburger span:nth-child(1) { top: 13px !important; }
  body.page-id-31 header nav button.hamburger span:nth-child(2),
  body.page-template-page-privacy header nav button.hamburger span:nth-child(2) { top: 21px !important; }
  body.page-id-31 header nav button.hamburger span:nth-child(3),
  body.page-template-page-privacy header nav button.hamburger span:nth-child(3) { top: 29px !important; }

  /* 開いた時のバツ印アニメーション */
  body.page-id-31 #main-nav.open button.hamburger span:nth-child(1),
  body.page-template-page-privacy #main-nav.open button.hamburger span:nth-child(1) {
    top: 21px !important;
    transform: translateX(-50%) rotate(45deg) !important;
  }
  body.page-id-31 #main-nav.open button.hamburger span:nth-child(2),
  body.page-template-page-privacy #main-nav.open button.hamburger span:nth-child(2) {
    opacity: 0 !important;
  }
  body.page-id-31 #main-nav.open button.hamburger span:nth-child(3),
  body.page-template-page-privacy #main-nav.open button.hamburger span:nth-child(3) {
    top: 21px !important;
    transform: translateX(-50%) rotate(-45deg) !important;
  }
}

