:root {
  --tariff-ink: #151515;
  --tariff-muted: #5d6267;
  --tariff-line: #dce1e4;
  --tariff-soft: #f1f4f5;
  --tariff-white: #fff;
  --tariff-width: 1120px;
  --tariff-serif: Georgia, "Times New Roman", serif;
  --tariff-sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { color: var(--tariff-ink); background: var(--tariff-white); }

body {
  min-width: 320px;
  margin: 0;
  background: var(--tariff-white);
  font-family: var(--tariff-serif);
}

.tariff-page--jp {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

a { color: inherit; }

.tariff-header {
  background: var(--tariff-white);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}

.tariff-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--tariff-width), calc(100% - 64px));
  min-height: 118px;
  margin-inline: auto;
}

.tariff-header__logo { display: block; width: 202px; }
.tariff-header__logo img { display: block; width: 100%; height: auto; }

.tariff-header__actions { display: flex; align-items: center; gap: 26px; }
.tariff-header__social { text-decoration: none; font-family: var(--tariff-sans); font-size: 24px; font-weight: 700; line-height: 1; }
.tariff-header__social--facebook { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: var(--tariff-white); background: var(--tariff-ink); font-size: 16px; }

.tariff-header__menu {
  display: grid;
  width: 36px;
  gap: 6px;
  padding: 5px;
  border: 0;
  background: transparent;
  opacity: 1;
}
.tariff-header__menu span { display: block; height: 2px; background: var(--tariff-ink); }

.tariff-breadcrumb { background: var(--tariff-soft); font-family: var(--tariff-sans); }
#v2022 > .tariff-breadcrumb { margin-top: 80px; }

.tariff-page--en #v2022 header h1 img {
  width: 270px;
  max-width: none;
  height: auto;
}
.tariff-breadcrumb ol {
  display: flex;
  gap: 13px;
  align-items: center;
  width: min(var(--tariff-width), calc(100% - 64px));
  min-height: 44px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.tariff-breadcrumb li + li::before { content: ">"; margin-right: 13px; color: var(--tariff-muted); }
.tariff-breadcrumb a { text-decoration: none; }

.tariff-main {
  width: min(var(--tariff-width), calc(100% - 64px));
  min-height: 610px;
  margin-inline: auto;
  padding: 46px 0 110px;
}

.tariff-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  margin-bottom: 42px;
  padding: 0 18px;
  border: 1px solid var(--tariff-line);
  background: var(--tariff-soft);
  font-size: 19px;
}

.tariff-title-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.tariff-main h1 {
  margin: 0;
  font-size: clamp(42px, 4.6vw, 58px);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.025em;
}

/* 公式サイトの外部CSSによる見出しの中央寄せを、このページ内だけ解除 */
#v2022 .tariff-main .tariff-title-row > h1 {
  width: auto;
  margin: 0;
  text-align: left;
}

.tariff-page--en #v2022 .tariff-main .tariff-title-row > h1 {
  font-family: "Noto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
  font-feature-settings: "kern" 1, "liga" 1;
}

.tariff-language {
  display: grid;
  grid-template-columns: repeat(2, minmax(105px, 1fr));
  min-width: 230px;
  margin-top: 8px;
  border: 1px solid #aeb4b8;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--tariff-sans);
}
.tariff-language a {
  padding: 11px 16px;
  text-align: center;
  text-decoration: none;
}
.tariff-language a + a { border-left: 1px solid #aeb4b8; }
.tariff-language a[aria-current="page"] { background: var(--tariff-soft); font-weight: 700; }
.tariff-language a:hover { background: #e3e7e9; }
.tariff-language a:focus-visible { outline: 3px solid var(--tariff-ink); outline-offset: -3px; }

.tariff-list { margin: 0; padding: 0; list-style: none; }
.tariff-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 73px;
  border-bottom: 1px solid var(--tariff-line);
  font-size: 22px;
}
.tariff-list li > span { min-width: 0; overflow-wrap: anywhere; }
.tariff-list a,
.tariff-overview a {
  min-width: 136px;
  padding: 12px 24px;
  border: 1px solid #6d7378;
  border-radius: 4px;
  color: var(--tariff-ink);
  background: var(--tariff-white);
  font-family: var(--tariff-sans);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.tariff-list a:hover,
.tariff-overview a:hover { color: var(--tariff-white); background: var(--tariff-ink); }
.tariff-list a:focus-visible,
.tariff-overview a:focus-visible { outline: 3px solid var(--tariff-ink); outline-offset: 3px; }

.tariff-footer { border-top: 1px solid var(--tariff-line); background: var(--tariff-soft); }
.tariff-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(var(--tariff-width), calc(100% - 64px));
  min-height: 110px;
  margin-inline: auto;
}
.tariff-footer img { display: block; width: 150px; height: auto; }
.tariff-footer small { color: var(--tariff-muted); font-family: var(--tariff-sans); }

@media (max-width: 700px) {
  #v2022 > .tariff-breadcrumb { margin-top: 60px; }

  .tariff-page--en #v2022 header h1 img { width: 210px; }

  .tariff-header__inner,
  .tariff-breadcrumb ol,
  .tariff-main,
  .tariff-footer__inner { width: min(100% - 32px, 520px); }

  .tariff-header__inner { min-height: 88px; }
  .tariff-header__logo { width: 195px; }
  .tariff-header__actions { gap: 17px; }
  .tariff-header__social { display: none; }
  .tariff-header__menu { width: 31px; }

  .tariff-breadcrumb ol { gap: 8px; min-height: 48px; font-size: 11px; }
  .tariff-breadcrumb li { min-width: 0; overflow-wrap: anywhere; }
  .tariff-breadcrumb li + li::before { margin-right: 8px; }

  .tariff-main { min-height: 570px; padding: 32px 0 80px; }
  .tariff-overview { min-height: 64px; gap: 12px; margin-bottom: 30px; padding: 0 12px; font-size: 15px; }
  .tariff-overview a { min-width: 84px; padding: 10px 12px; font-size: 12px; }
  .tariff-title-row { align-items: stretch; flex-direction: column; gap: 18px; margin-bottom: 26px; }
  .tariff-main h1 { font-size: clamp(30px, 9.2vw, 38px); line-height: 1.03; overflow-wrap: anywhere; }
  .tariff-page--en #v2022 .tariff-main .tariff-title-row > h1 {
    font-size: clamp(32px, 9.4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.04em;
  }
  .tariff-language { width: 100%; min-width: 0; margin-top: 0; font-size: 14px; }
  .tariff-list li { min-height: 66px; gap: 12px; font-size: 16px; }
  .tariff-list a { min-width: 84px; padding: 10px 12px; font-size: 12px; }

  .tariff-footer__inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .tariff-footer small { font-size: 11px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .tariff-list a { transition: none; }
}
