/* --------------------------------------------------
   tokutei
-------------------------------------------------- */

body .container {
   padding-top: 140px !important;
}

.container h1.btm_title {
   border: #33ad43 1px solid;
   text-align: center;
   padding: 55px 0;
   margin-bottom: 50px;
   font-size: 38px;
   color: #33ad43;
   font-family: "RyuminPro Medium-83pv-RKSJ-H", serif;
   font-weight: normal;

}
.tokutei_wrap {
  color: #000;
}
.tokutei_wrap table {
   width: 100%;
   text-align: left;
}
.tokutei_wrap table tr {
   border-bottom: 1px solid #000;
}
.tokutei_wrap table tr th {
   width: 17em;
}

.tokutei_wrap table tr th,
.tokutei_wrap table tr td {
   padding: 10px 0;
   font-weight: normal;
}
:root {
  /* 実際のヘッダー高さに合わせて調整 */
  --header-height: 120px;
}

html {
  scroll-behavior: smooth;           /* スムーズスクロールさせたい場合 */
  scroll-padding-top: var(--header-height);
}
@media (max-width: 768px) {
  body .container {
     padding-top: 80px !important;
     padding-left: 20px;
     padding-right: 20px;
  }
  .container h1.btm_title {
     padding: 30px 0;
     margin-bottom: 50px;
     font-size: 17px;
  }
  .tokutei_wrap table tr th {
     width: 7em;
     padding-right: 1em;
  }
  :root {
    /* 実際のヘッダー高さに合わせて調整 */
    --header-height: 90px;
  }
  .tokutei_wrap table tr td {
    text-align: justify;
  }
}

/* --------------------------------------------------
   privacy
-------------------------------------------------- */

/* 全体コンテナ */
#privacy {
  background-color: #f0f7ec;
  border-radius: 9999px 0 0 9999px;  /* 左が半円、右は直線 */
  padding: 24px 32px 24px 60px;
  display: flex;
  align-items: center;               /* 縦中央揃え */
  margin-bottom: 50px;
  line-height: 1.2;
}

#privacy h2 {
  display: flex;
  flex-direction: column;     /* 子要素を縦に並べる */
  justify-content: center;    /* 高さがあれば中央寄せ */
  align-items: flex-start;    /* 左揃え／中央揃えにするなら center */
  margin: 0 24px 0 0;
  padding: 0;
  color: #22ac38;
  font-size: 15px;
  height: auto;
}
#privacy h2 span {
   font-size: 13px;
}

/* サブタイトルはブロック要素化して確実に下に落とす */
#privacy h2 span {
  display: block;
  margin-top: 4px;            /* 行間の余白 */
  font-size: 14px;
  color: #22ac38;
}

/* 本文 */
#privacy p {
  /* 右に縦仕切り線 */
  border-left: 2px solid #22ac38;
  padding-left: 20px;
  margin: 0;
  font-size: 14px;
  color: #332d2b;
  flex: 1;
}

/* 狭い画面時に縦並びにするなら */
@media (max-width: 768px) {
  #privacy {
    border-radius: 0;  /* 左が半円、右は直線 */
    padding: 24px 32px;
    display: block;
    align-items: center;               /* 縦中央揃え */
    margin-bottom: 50px;
  }

  #privacy h2 {
    display: block;
    text-align: center;
    margin: 0 0 20px 0;
    padding: 0;
  }
  #privacy h2 span {
     font-size: 13px;
  }

  /* サブタイトルはブロック要素化して確実に下に落とす */
  #privacy h2 span {
    display: block;
    margin-top: 4px;            /* 行間の余白 */
    font-size: 14px;
    color: #80C783;
  }

  /* 本文 */
  #privacy p {
    /* 右に縦仕切り線 */
    border-left: none;
    border-top: 2px solid #80C783;
    padding-left: 0px;
    padding-top: 20px;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: justify;
  }
}

.privacy_txt {
   margin-bottom: 30px;
   color: #000;
}
.security_right,
.privacy_address,
.privacy_right {
   color: #000;
}

.privacy_txt h3 {
   border-bottom: #ddd solid 1px;
   margin-bottom: 5px;
   font-weight: normal;
}

.tokutei_wrap ol,
.privacy_txt ol {
  list-style: none;        /* デフォルトの番号を消す */
  counter-reset: item;     /* カウンターをリセット */
  margin-left: 1.5em;
}

/* １階層目の li のみをカウントアップ */
.tokutei_wrap ol > li,
.privacy_txt ol > li {
  counter-increment: item;
  position: relative;      /* ::before の基点 */
}

/* １階層目の li のみに括弧付き番号を付与 */
.tokutei_wrap ol > li::before {
  content: "" counter(item) ". ";
  position: absolute;
  left: -1.5em;            /* 本文との間隔調整 */
  width: 1.5em;
  text-align: right;
}
.privacy_txt ol > li::before {
  content: "(" counter(item) ") ";
  position: absolute;
  left: -1.5em;            /* 本文との間隔調整 */
  width: 1.5em;
  text-align: right;
}

/* ── ネストされた ul の設定 ── */
/* ul 自体は余白だけ調整 */
.tokutei_wrap ol > li ul,
.privacy_txt ol > li ul {
  list-style: none;        /* デフォルトのマーカーを消す */
  margin-left: 1.5em;
}

/* ネストされた ul > li に “・” を付ける */
.tokutei_wrap ol > li ul > li,
.privacy_txt ol > li ul > li {
  position: relative;      /* ::before の基点 */
  overflow-wrap: break-word;    /* CSS3 推奨 */
  word-wrap: break-word;        /* 旧仕様の互換 */
  /* 単語の途中でも強制改行 */
  word-break: break-all;        /* 英語にも日本語にも有効 */
  /* ハイフネーションが使える環境なら自動でハイフン挿入 */
  hyphens: auto;
}

.tokutei_wrap ol > li ul > li::before,
.privacy_txt ol > li ul > li::before {
  content: "・ ";
  position: absolute;
  left: -1.5em;            /* 本文との間隔調整 */
  width: 1.5em;
}

.privacy_address {
   padding-left: 290px;
   margin: 20px 0;
}

.privacy_right {
   text-align: right;
}

.privacy_security {
  display: flex;
  align-items: center;        /* ─── ここを flex-start から center に変更 */
  border: 1px solid #ddd;
  padding: 20px;
  box-sizing: border-box;
  background-color: #fff;
}

.privacy_security .security_left {
  flex-shrink: 0;
  margin: 0 40px 0 20px;
}

.privacy_security .security_left img {
  display: block;
  width: 80px;
  height: auto;
}

.privacy_security .security_right {
  flex: 1;
}

.privacy_security .security_right h4 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
}

.privacy_security .security_right p {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
}
.privacy_security .security_right p.s_txt {
  font-size: 0.8rem;
}

.privacy_security .security_right p a {
  color: #0066cc;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .privacy_txt li,
  .privacy_txt p {
    text-align: justify;
  }
   .privacy_address {
      padding-left: 0;
      padding-top: 30px;
      padding-bottom: 20px;
   }
   .privacy_security {
     display: block;
     align-items: center;        /* ─── ここを flex-start から center に変更 */
     box-sizing: border-box;
     background-color: #fff;
   }

   .privacy_security .security_left {
     flex-shrink: 0;
     margin-right: 0;
     text-align: center;
   }

   .privacy_security .security_left img {
     display: block;
     width: 80px;
     height: auto;
     /* 青く見せるフィルタ (例) */
     margin: 0 auto 20px auto;
   }

   .privacy_security .security_right {
     flex: 1;
   }

   .privacy_security .security_right h4 {
     margin: 0 0 12px;
     font-size: 1.1rem;
     font-weight: bold;
     line-height: 1.4;
     text-align: center;
   }

   .privacy_security .security_right p {
     margin: 0 0 10px;
     font-size: 0.9rem;
     line-height: 1.6;
     color: #333;
   }

   .privacy_security .security_right p a {
     color: #0066cc;
     text-decoration: underline;
   }
}

/* --------------------------------------------------
   guide
-------------------------------------------------- */

.guide_wrap_bottom {
  color: #000;
}
#guide_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #4caf50;
  padding: 20px 24px;
  box-sizing: border-box;
  background-color: #fff;
  margin-bottom: 50px;
}

#guide_title h1 {
  /* 左側コンテナを右アイコンから引き伸ばす */
  flex: 1;
  margin: 0;
  /* 左揃えを明示 */
  text-align: left;
  font-size: 1.75rem;
  font-weight: normal;
  color: #4caf50;
  line-height: 1.2;
  border: none;
  padding: 30px 0;
}

#guide_title h1 span {
  display: block;
  margin: 4px 0 0;    /* 日本語タイトルとの隙間 */
  /* 左寄せの念押し */
  text-align: left;
  font-size: 1rem;
  color: #4caf50;
  font-weight: 300;
  letter-spacing: 0.05em;
}

#guide_title p {
  margin: 0;
  flex-shrink: 0;
}

#guide_title p img {
  display: block;
  width: 48px;
  height: auto;
}

.guide_box {
   margin-bottom: 30px;
}
.guide_box h2 {
  display: flex;
  align-items: center;        /* アイコンとテキストを上下中央揃え */
  margin: 0;
  font-size: 1.125rem;        /* お好みで調整 */
  color: #4caf50;             /* 緑色 */
  margin-bottom: 10px;
}
.guide_box h2 img {
  display: block;
  width: 24px;                /* アイコン幅 */
  height: auto;
  margin-right: 8px;          /* アイコンとテキストの間隔 */
}
#anchor03 h2 img {
  width: 30px !important;                /* アイコン幅 */
}

.guide_box h2::after {
  content: "";
  flex: 1;                    /* 残り幅をすべて埋める */
  height: 1px;
  background-color: #4caf50;  /* 線の色 */
  margin-left: 12px;          /* テキストとの間隔 */
}
.guide_box p {
  margin-bottom: 10px;
}
.guide_box p.mb30 {
  margin-bottom: 30px;
}
.guide_box p .red {
  color: #b75858;
  font-weight: bold;
}



/* guide_box 内でのみ効くように詳細度を上げ、!important で上書き */
.guide_box .pconly {
  display: block !important;
}
.guide_box .sponly {
  display: none !important;
  margin: 0 auto;
}

/* SP（767px 以下）の場合に切り替え */
@media screen and (max-width: 767px) {
  .guide_box .pconly {
    display: none !important;
  }
  .guide_box .sponly {
    display: block !important;
  }
  #anchor01 img.sponly,
  #anchor04 img.sponly {
    max-width: 250px;
  }
  #anchor04 .order_right img.sponly {
    max-width: 100%;
  }
  #anchor04 img.sponly {
    margin-bottom: 20px;
  }
  #guide_title {
    padding: 10px 24px;
    box-sizing: border-box;
    background-color: #fff;
    margin-bottom: 50px;
  }
  #guide_title h1 {
    /* 左側コンテナを右アイコンから引き伸ばす */
    flex: 1;
    margin: 0;
    /* 左揃えを明示 */
    text-align: left;
    font-size: 21px;
    font-weight: normal;
    color: #4caf50;
    line-height: 1.2;
    border: none;
    padding: 10px 0;
  }

  #guide_title h1 span {
    display: block;
    margin: 4px 0 0;    /* 日本語タイトルとの隙間 */
    /* 左寄せの念押し */
    text-align: left;
    font-size: 12px;
    color: #4caf50;
    font-weight: 300;
    letter-spacing: 0.05em;
  }
  #guide_title p img {
    width: 40px;
  }
  .guide_box .order_left p {
    margin-bottom: 0;
  }
}

/* guide_order を左右に並べつつ上揃え */
.guide_box .guide_order {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

/* 左右コンテナを等分に */
.guide_box .order_left,
.guide_box .order_right {
  flex: 1;
}
.guide_box .order_left {
    white-space: nowrap;
}

.guide_box .order_right {
   text-align: right;
}

.guide_box .order_right img {
  display: block;
  margin-left: auto;
}

.tokutei_wrap ul,
.guide_box ul {
  /* マーカーをインライン扱いにして、内部に収める */
  list-style: disc inside !important;
  padding: 0 !important;
  margin: 0 0 1.2em !important;
}
.tokutei_wrap ul.mb0 {
  margin-bottom: 0 !important;
}


/* li の先頭行にだけマーカーがあり、それ以降は揃える設定 */
.tokutei_wrap ul > li,
.guide_box ul > li {
  margin-left: 1.2em;
  text-indent: -1.2em;
  text-align: justify;
}


/* テーブル全体 */
.guide_box table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;               /* 上下に余白 */
}

/* th（左列）のスタイル */
.guide_box table th {
  width: 130px;                /* 固定幅はお好みで */
  background-color: #f4f0e4;   /* 薄いベージュ */
  color: #665449;
  font-weight: normal;         /* 見出しっぽくしない */
  text-align: center;
  vertical-align: middle;
  padding: 16px;
  border-top: 1px solid #fff;  /* 上罫線 */
  font-size: 15px;
}
.guide_box table th.p_none {
  padding: 0 16px;
}
.guide_box table th img {
  display: inline-block;
}
.guide_box table td.free_deli span {
   font-weight: bold;
}
/* td 内のアイコン＋テキストを中央揃え */
.guide_box table td a img {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  width: 24px;   /* アイコンサイズ */
  height: auto;
}

#deli_free {
  display: flex;
  align-items: center;            /* アイコンとテキストを上下中央揃え */
  justify-content: center;        /* 全体を左右中央寄せ */
  background-color: #b75858;      /* お好みの赤色に */
  color: #fff;                    /* 文字色を白に */
  border-radius: 999px;           /* ぎゅっと丸く */
  padding: 8px 24px;             /* 縦横の余白 */
  margin: 24px 0;               /* 上に余白、左右ゼロ */
  width: 100%;                    /* 親幅いっぱい */
  box-sizing: border-box;         /* パディング込みで幅100% */
  font-size: 16px;
  font-weight: bold;             /* テキストサイズ */
  line-height: 1.4;
}

/* アイコン調整 */
#deli_free img {
  display: inline-block;
  vertical-align: middle;
  width: 30px;                    /* アイコン幅 */
  height: auto;
  margin-right: 8px;              /* アイコンとテキストの間 */
}

/* 右列：td */
.guide_box table td {
  padding: 16px 30px;
  vertical-align: middle;
  border-top: 1px solid #332d2b;  /* 上罫線 */
}
.guide_box table td.border_none {
  border-top: none;  /* 上罫線 */
}
.guide_box table td.border_btm {
  border-bottom: 1px solid #332d2b;  /* 上罫線 */
}

/* td 内の上部テキスト */
.guide_box table td.free_deli > span {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #665449;
}

/* td を flex コンテナ化 */
.guide_box table td {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* フリーダイヤル画像 */
.guide_box table td img[src*="freedaial"] {
  vertical-align: middle;
  margin-right: 8px;
}

/* ボタン全体 */
.guide_box .btn a {
  position: relative;               /* 子要素を絶対配置できるように */
  display: inline-flex;             
  align-items: center;
  justify-content: center;
  width: 390px;                     /* 幅は共通 */
  padding: 3px 24px;                /* 上下8px／左右はアイコン＋テキスト＋矢印分を考慮 */
  padding-left: 44px;               /* 左アイコン分のスペース(アイコン幅20px＋左右マージン) */
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #332d2b;
  border-radius: 999px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

/* 左アイコンを絶対配置 */
.guide_box .btn a img:first-child {
  position: absolute;
  top: 50%;
  left: 100px;                       /* ボタン左端からの位置 */
  transform: translateY(-50%);
  width: 20px;
  height: auto;
  margin: 0;                        /* 元のマージンはリセット */
}

/* 右矢印はそのまま擬似要素で */
.guide_box .btn a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  background: url("../img/guide/btn_arrow.png") no-repeat center/contain;
  transform: translateY(-50%);
}

.guide_box .btn a:hover {
  opacity: 0.6; 
}

/* 全体の td は flex で上下中央揃え */
.guide_box table td {
  display: flex;
  align-items: center;
  /* 既存の space-between は削除または上書き */
  justify-content: flex-start;
  gap: 8px;            /* アイコンとテキストの間隔 */
}

/* LINE／メール行だけ右のボタンを端に寄せたい場合 */
/* 2行目以降は space-between に */
.guide_box table tr:nth-child(n+2) td {
  justify-content: space-between;
}

/* もし 1行めだけに絞るならこうでもOK */
.guide_box table tr:first-child td {
  justify-content: flex-start !important;
  line-height: 30px;
}

@media (max-width: 768px) {
  .guide_box table tr:first-child td {
    line-height: 19px;
  }
   .guide_box table td.free_deli img {
      width: 30px;
      display: inline-block;
      margin-right: 10px;
   }
   .guide_box table th {
    width: 100px;
    font-size: 100%;
   }
   .guide_box table td {
    align-items: center;
    display: flex;
    vertical-align: middle;
    font-size: 100%;
   }
   .guide_box table td img,
   .guide_box table td span {
    white-space: nowrap;
    vertical-align: middle;
  }
   .guide_box table td img.mb10 {
    margin-bottom: 10px;
  }
  .guide_box table td.free_deli > span{
        margin-bottom: 0;
    }
   .guide_box .btn a {
     position: relative;               /* 子要素を絶対配置できるように */
     display: block;             
     align-items: center;
     justify-content: center;
     width: 100%;                     /* 幅は共通 */
     padding: 0;                /* 上下8px／左右はアイコン＋テキスト＋矢印分を考慮 */
     padding-left: 44px;               /* 左アイコン分のスペース(アイコン幅20px＋左右マージン) */
     box-sizing: border-box;
     background-color: #fff;
     border: 1px solid #ddd;
     border-radius: 999px;
     color: #333;
     text-decoration: none;
     font-size: 100%;
     white-space: nowrap;
     margin-top: 5px;
   }

   /* 全体の td は flex で上下中央揃え */
   .guide_box table td {
     display: block;
     align-items: center;
     /* 既存の space-between は削除または上書き */
     justify-content: flex-start;
     gap: 8px;            /* アイコンとテキストの間隔 */
     padding: 16px 16px;
   }
  body .guide_box .order_left {
    white-space: normal;
    }
  .guide_box .guide_order {
    flex-direction: column;
    gap: 0;
  }
  .guide_box .guide_order .order_right,
  .guide_box .guide_order .order_left {
    width: 100%;
  }
  .guide_box .guide_order .order_left {
    margin-bottom: 15px;
  }
  .guide_box .guide_order .order_right img.sponly,
  .guide_box .guide_order .order_left img.sponly {
    margin: 0 auto;
  }
  .guide_box .order_right img.pconly {
    display: none;
  }
  .guide_box .order_right img.sponly {
    display: block;
    margin-left: auto;
  }
  /* 左アイコンを絶対配置 */
  .guide_box .btn a img:first-child {
    position: absolute;
    top: 50%;
    left: 15px;                       /* ボタン左端からの位置 */
    transform: translateY(-50%);
    width: 15px;
    height: auto;
    margin: 0;                        /* 元のマージンはリセット */
  }

  /* 右矢印はそのまま擬似要素で */
  .guide_box .btn a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 12px;
    height: 16px;
    background: url("../img/guide/btn_arrow.png") no-repeat center/contain;
    transform: translateY(-50%);
  }
}