/* Toyota TRC /rental/option/ — page content styles */

/* ─── Base ─── */
body.page-options {
  font-family: "Helvetica Neue", "游ゴシック Medium", "Yu Gothic Medium", "YuGothic", "メイリオ", Meiryo, sans-serif;
  color: #323232;
}

/* The root container for the scraped content sections */
.page-options-content {
  display: block;
  width: 100%;
  background: #fff;
  padding-bottom: 50px;
}


/* ─── section.content anchor-offset (Modern scroll-margin approach) ─── */
/* This ensures in-page anchor links land below the sticky header */
body.page-options .un_option section.content {
  scroll-margin-top: 60px;
}

@media screen and (min-width: 768px) {
  body.page-options .un_option section.content {
    scroll-margin-top: 120px;
  }
}

body.page-options .un_option section.content.gray > section {
  background: #f8f8f8;
}

body.page-options .un_option section.content.white > section {
  background: #fff;
}

body.page-options .un_option section.content article {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 15px;
}

/* ─── Headings ─── */
body.page-options .un_option h2 {
  text-align: center;
  font-size: 1.6em;
  font-weight: bold;
  position: relative;
}

body.page-options .un_option h2::after {
  content: "";
  display: block;
  width: 1.5em;
  height: 0;
  border: 3px solid #00af32;
  margin: 0.5em auto 0 auto;
}

body.page-options .un_option h3 {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 25px 0 10px;
}

body.page-options .un_option h3::before {
  content: "●";
  color: #00af32;
  padding-right: 0.5em;
}

@media screen and (min-width: 768px) {
  body.page-options .un_option h3 {
    font-size: 1.8rem;
  }
}

/* ─── Green buttons (a.bt) ─── */
body.page-options .un_option a.bt {
  display: block;
  padding: 1em 3em 1em 1em;
  border-radius: 1em;
  margin: 1em auto;
  position: relative;
  max-width: 420px;
  text-align: center;
  text-decoration: none;
}

body.page-options .un_option a.bt.white { background: #fff; }
body.page-options .un_option a.bt.green { background: #00af32; color: #fff; }
body.page-options .un_option a.bt.gray  { background: #f8f8f8; }

body.page-options .un_option a.bt:hover {
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(32, 33, 36, 0.15);
}

body.page-options .un_option a.bt:hover::before {
  right: 0.8em;
}

body.page-options .un_option a.bt.blank::after {
  content: "";
  display: inline-block;
  margin-left: 0.5em;
  width: 1.2em;
  height: 1.2em;
  background: url("https://www.toyotarentacar.net/cms/wp-content/themes/trc/img/rental/flow/ico_blank_link_wh.png") center right no-repeat;
  background-size: contain;
  vertical-align: middle;
}

body.page-options .un_option a.bt::before {
  content: "";
  display: block;
  width: 2em;
  height: 2em;
  background: url("https://www.toyotarentacar.net/cms/wp-content/themes/trc/img/rental/flow/arrow_wh.png") center right no-repeat;
  background-size: contain;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 1em;
  margin: auto 0;
  transition: 0.2s ease-in-out;
}

/* ─── Body text ─── */
body.page-options .un_option p.cap {
  padding-bottom: 1em;
  line-height: 1.65;
}

body.page-options .un_option p.itemtitle {
  font-weight: bold;
  font-size: 1.5rem;
  padding-top: 1em;
}

@media screen and (min-width: 768px) {
  body.page-options .un_option p.itemtitle {
    font-size: 1.7rem;
  }
}

/* ─── .item tables ─── */
body.page-options .un_option table.item {
  width: 100%;
  border-collapse: separate;
  border-radius: 1em;
  border: 1px solid #323232;
  overflow: hidden;
  margin: 1em 0;
}

body.page-options .un_option table.item th,
body.page-options .un_option table.item td {
  padding: 1em;
  text-align: center;
  vertical-align: middle;
}

body.page-options .un_option table.item th {
  width: 40%;
  background: #fff;
}

body.page-options .un_option table.item th img {
  display: block;
  margin: 0 auto;
}

body.page-options .un_option table.item th img#img_navi   { width: 90%; max-width: 150px; }
body.page-options .un_option table.item th img#img_etc    { width: 80%; max-width: 130px; }
body.page-options .un_option table.item th img#img_card   { width: 70%; margin-bottom: 0.5em; max-width: 130px; }
body.page-options .un_option table.item th img#img_jaf    { margin-bottom: 0.5em; }
body.page-options .un_option table.item th img#img_baby   { width: 60%; padding: 0.5em 0; max-width: 100px; }
body.page-options .un_option table.item th img#img_child  { width: 60%; padding: 0.5em 0; max-width: 100px; }
body.page-options .un_option table.item th img#img_junior { width: 60%; max-width: 100px; }

body.page-options .un_option table.item td {
  background: #fffce6;
  color: #00af32;
}

/* ol inside td */
body.page-options .un_option table.item td ol {
  display: table;
  table-layout: fixed;
  width: 100%;
}

body.page-options .un_option table.item td ol li {
  display: table-cell;
  vertical-align: middle;
}

body.page-options .un_option table.item td .black  { color: #000; }
body.page-options .un_option table.item td .left   { text-align: left; padding-left: 1em; }
body.page-options .un_option table.item td .mbottom{ margin-bottom: 0.5em; }

body.page-options .un_option table.item td .f20pt        { font-size: 2.4rem; font-weight: bold; line-height: 1em; }
body.page-options .un_option table.item td .f20pt span   { font-size: 1.44rem; line-height: 1em; }
body.page-options .un_option table.item td .f11pt        { font-size: 1.2rem; margin-top: 5px; }
body.page-options .un_option table.item td .f12pt        { font-size: 1.44rem; font-weight: bold; }
body.page-options .un_option table.item td .f13pt        { font-size: 1.6rem; font-weight: bold; }
body.page-options .un_option table.item td .f15pt        { font-size: 1.8rem; font-weight: bold; }

@media screen and (min-width: 768px) {
  body.page-options .un_option table.item td .f20pt      { font-size: 3.2rem; }
  body.page-options .un_option table.item td .f20pt span { font-size: 1.8rem; }
  body.page-options .un_option table.item td .f11pt      { font-size: 1.6rem; }
  body.page-options .un_option table.item td .f12pt      { font-size: 1.6rem; text-align: center; }
  body.page-options .un_option table.item td .f13pt      { font-size: 2rem; }
  body.page-options .un_option table.item td .f15pt      { font-size: 2.2rem; }
}

/* Row borders */
body.page-options .un_option table.item tr th,
body.page-options .un_option table.item tr td {
  border: 0 solid #323232;
}

body.page-options .un_option table.item tr:nth-of-type(1) th     { border-width: 0 1px 0 0; }
body.page-options .un_option table.item tr:nth-of-type(1) td     { border-width: 0 0 0 0; }
body.page-options .un_option table.item tr:nth-of-type(n+2) th   { border-width: 1px 1px 0 0; }
body.page-options .un_option table.item tr:nth-of-type(n+2) td   { border-width: 1px 0 0 0; }

/* ._column — stacked on mobile, side-by-side on desktop (JAF card) */
body.page-options .un_option table.item._column          { display: block; }
body.page-options .un_option table.item._column tbody,
body.page-options .un_option table.item._column tr,
body.page-options .un_option table.item._column th,
body.page-options .un_option table.item._column td       { display: block; }
body.page-options .un_option table.item._column tr:nth-of-type(1) th { border-width: 0 0 1px 0; }
body.page-options .un_option table.item._column th       { width: 100%; }

@media screen and (min-width: 768px) {
  body.page-options .un_option table.item._column         { display: table; }
  body.page-options .un_option table.item._column tbody   { display: table-row-group; }
  body.page-options .un_option table.item._column tr      { display: table-row; }
  body.page-options .un_option table.item._column tr:nth-of-type(1) th { border-width: 0 1px 0 0; }
  body.page-options .un_option table.item._column th      { display: table-cell; width: 40%; }
  body.page-options .un_option table.item._column td      { display: table-cell; }
}

/* ─── Notes lists ─── */
body.page-options .un_option ol.notes {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-options .un_option ol.notes li {
  padding: 0.1em 0 0.1em 1em;
  font-size: 1.4rem;
  position: relative;
}

body.page-options .un_option ol.notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}

/* ─── #head — Jump-link section (above ナビ/ETC/JAF) ─── */
body.page-options .un_option #section_1 {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 15px 20px;
}

/* Pill buttons — 2 per row mobile, 4 per row desktop */
body.page-options .un_option #section_1 ol {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 2%;
  margin-bottom: 10px;
  padding: 0;
  list-style: none;
}

body.page-options .un_option #section_1 ol li {
  width: 49%;
  list-style: none;
}

body.page-options .un_option #section_1 ol li a {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00af32;
  border: 1px solid #00af32;
  text-align: center;
  height: 100%;
  min-height: 44px;
  padding: 10px;
  line-height: 1.2;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

body.page-options .un_option #section_1 ol li a:hover {
  color: #fff;
  background: #00af32;
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  body.page-options .un_option #section_1 ol {
    justify-content: center;
    gap: 10px 1%;
  }

  body.page-options .un_option #section_1 ol li {
    width: 24%;
  }
}

/* Notice text under pills */
body.page-options .un_option #section_1 dl {
  padding: 1em 0;
}

body.page-options .un_option #section_1 dl dt {
  font-weight: bold;
  font-size: 1.5rem;
}

@media screen and (min-width: 768px) {
  body.page-options .un_option #section_1 dl * {
    text-align: center;
  }

  body.page-options .un_option #section_1 dl dt {
    font-size: 1.8rem;
  }
}

/* ─── One-way map image ─── */
body.page-options .un_option #oneway img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
}

/* ─── Misc ─── */
body.page-options .un_option .hp_mb20 {
  margin-bottom: 20px;
}
