/* ============================================================
   header-legacy-embed.css
   Additive stylesheet loaded ONLY by header/header.html and
   header/sp_header.html (via <link> tags inside those files).
   Does not touch or replace any existing stylesheet.

   Source: scoped build of scss/component/_header.scss,
   scss/component/_modal.scss, scss/component/_tab.scss +
   scss/abstract/_root.scss only (excludes abstract/base and
   the reset-old-site partials, which set global html/body
   rules that would affect every page on the site).
   rem units converted to px (10px = 1rem, matching the
   renewal2026 --font-size-root convention) since this file
   intentionally does not set html{font-size} globally.
   ============================================================ */

:root {
  --font-root: 'Noto Sans JP', sans-serif;
  --font-noto-serif: 'Noto Serif JP', serif;
  --font-open-sans: 'Open Sans', sans-serif;
  --font-sort-mill: "Sorts Mill Goudy", serif;
  --font-zen-old-mincho: "Zen Old Mincho", serif;
  --line-height: 1.3;
  --font-weight-root: 400;
  --font-weight-semibold: 600;
  --font-size-root: 10px;
  --font-size: 16px;
  --font-size-h1: 30px;
  --font-size-h2: 26px;
  --font-size-h3: 22px;
  --font-size-h4: 15px;
  --font-size-h5: 14px;
  --font-size-body: 14px;
  --font-size-small: 12px;
  --color-primary: #2567AB;
  --color-link: #333;
  --color-link-hover: #2567AB;
  --color-highlight: #A50319;
  --color-grey: #ccc;
  --color-white: #fff;
  --color-black: #000;
  --bg-footer: #f8f8f8;
  --bg-root: #FAFAFA;
  --bg-hover: #2567AB;
  --color-root: #2C2C2C;
  --color-hover: #2567AB;
  --color-semantic-gray: #D6D6D6;
  --color-star-filled: var(--color-highlight);
  --color-star-empty: #D6D6D6;
  --header-offset: 54px;
  --browser-sidebar: 20px;
}

@media only screen and (min-width: 768px) {
  :root {
    --font-size-h1: 40px;
    --font-size-h2: 30px;
    --font-size-h3: 24px;
    --font-size-h4: 16px;
  }
}

@media only screen and (min-width: 1024px) {
  :root {
    --header-offset: 112px;
  }
}

.site-top-area {
  position: relative;
  z-index: 101;
  width: 100%;
  top: 0;
  transition: transform 0.6s ease;
}

.site-top-area.is-hide {
  transform: translateY(-150%);
  transition: transform 0.3s;
  width: 100%;
}

.site-top-area.is-fixed {
  position: sticky;
  top: 0;
}

.is-menu-open .site-top-area {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  transform: translateY(0);
}

.c-header {
  background-color: var(--color-white);
  padding: 10px 0;
}

.c-header__sticky {
  position: fixed;
  top: 30px;
  z-index: 101;
  width: 100%;
}

.c-header__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.c-header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.c-header__logo {
  width: 93px;
  line-height: 1;
}

.c-header__logo-link {
  line-height: 1;
}

.c-header__logo img {
  width: 100%;
  height: auto;
}

.c-header__control {
  display: flex;
  align-items: center;
  gap: 30px;
}

.c-header__control-item {
  line-height: 1;
}

.c-header__control img {
  width: auto;
  height: 22px;
  object-fit: cover;
  vertical-align: middle;
}

.c-header__control-cart-link {
  position: relative;
  display: inline-block;
}

.c-header__control-cart-count {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  top: -8px;
  right: -10px;
  width: 18px;
  height: 18px;
  background-color: var(--color-highlight);
  color: var(--color-white);
  font-size: 10px;
  font-weight: bold;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
}

.c-header__control-cart-count:not(:empty) {
  display: flex;
}

.c-header__control-search {
  position: relative;
  cursor: pointer;
}

.c-header__control-menu {
  position: relative;
  width: 20px;
  height: 16px;
  cursor: pointer;
  background: none;
  border: none;
}

.c-header__control-menu::before,
.c-header__control-menu::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-root);
  transition: all 0.3s ease;
}

.c-header__control-menu::before {
  top: 0;
}

.c-header__control-menu::after {
  bottom: 0;
}

.c-header__control-menu span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-root);
  transform: translateY(-50%);
}

.c-header__control-menu.active::before {
  transform: rotate(135deg);
  top: 8px;
}

.c-header__control-menu.active::after {
  transform: rotate(-135deg);
  bottom: 6px;
}

.c-header__control-menu.active span {
  opacity: 0;
}

.c-header__nav--scroll {
  height: calc(100vh - 55px);
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.c-header__nav-list {
  padding: 30px 0px;
}

.c-header__nav-link {
  font-size: 16px;
  flex-grow: 1;
  color: var(--color-root);
  text-decoration: none;
}

.c-header__nav-dropdown {
  position: relative;
}

.c-header__nav-dropdown::before,
.c-header__nav-dropdown:after {
  content: "";
  position: absolute;
  background: var(--color-highlight);
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
  border-radius: 4px;
}

.c-header__nav-dropdown:before {
  width: 14px;
  height: 1px;
}

.c-header__nav-dropdown:after {
  width: 1px;
  height: 14px;
  right: 26px;
}

.c-header__nav-dropdown.is-expanded:after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.c-header__nav-bottom-sp {
  background-color: var(--color-root);
  padding: 40px 30px 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-header__nav-bottom-sp a {
  color: var(--color-white);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
}

.c-header__single-link {
  display: block;
  padding: 4px 0px;
  font-size: 16px;
  padding-right: 20px;
  position: relative;
  text-decoration: none;
  color: var(--color-root);
}

.c-header__single-link:after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5px;
  width: 4px;
  height: 8px;
  background: url(/img/renewal2026/common/icon-arrow-right.svg) no-repeat 50% 50%;
  background-size: cover;
}

.c-header__single-link {
  transition: color 0.3s ease;
}

.c-header__single-link:hover {
  color: var(--color-highlight);
}

.c-header__dropdown {
  display: none;
  padding: 20px 20px 20px 30px;
  background-color: #FAFAFA;
}

.c-header__dropdown-content {
  text-align: left;
}

.c-header__dropdown-sectitle {
  padding: 16px 0;
  font-size: 16px;
  cursor: pointer;
}

.c-header__dropdown-sectitle:before {
  right: 0px;
}

.c-header__dropdown-sectitle:after {
  right: 6px;
}

.c-header__dropdown-seccontent {
  display: none;
  padding: 12px 0 12px 16px;
}

.c-header__dropdown-sidebar {
  display: none;
}

.c-header__item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-header__item-list a {
  color: var(--color-root);
  text-decoration: none;
  font-size: 14px;
}

.c-header__item-list+.c-header__item-list {
  margin-top: 16px;
}

.c-header__line-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.c-header__line-item {
  width: calc((100% - 16px) / 3);
  text-align: center;
  font-size: 12px;
  text-decoration: none;
  color: var(--color-root);
}

.c-header__line-item img {
  width: 100%;
  height: auto;
  margin-bottom: 4px;
}

@media only screen and (max-width: 1023px) {
  .c-header__sticky {
    top: 43px;
  }

  /* .c-header__nav (open menu panel) is position:fixed with no z-index, so it
     paints over the header row: it swallows taps on the close (hamburger)
     button and lets the panel / its menu text show through behind the logo
     and control icons. The panel is a descendant of .c-header, so .c-header's
     own background can't cover it - paint a full-width opaque layer above the
     panel, then lift the logo / controls above that layer. Matches the static
     pages. */
  .c-header {
    position: relative;
  }

  .c-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--color-white);
    z-index: 1;
    pointer-events: none;
  }

  .c-header__logo,
  .c-header__control {
    position: relative;
    z-index: 2;
    background-color: var(--color-white);
  }

  .c-header__nav {
    position: fixed;
    top: calc((var(--header-offset, 55px)) - 3px);
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    border-top: 1px solid #ECECEC;
    transition: opacity 0.3s ease;
    visibility: hidden;
    opacity: 0;
  }

  .c-header__nav.active {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  .c-header__nav-heading {
    padding: 8px 16px;
  }

  .c-header__nav-dropdown {
    padding-right: 40px;
  }
}

@media only screen and (min-width: 1024px) {
  .c-header {
    padding: 22px 0 0;
  }

  .c-header__wrapper {
    gap: 2%;
    align-items: flex-start;
  }

  .c-header__logo {
    width: 186px;
    min-width: 186px;
  }

  .c-header__control {
    margin-bottom: 20px;
    justify-content: flex-end;
    gap: 40px;
  }

  .c-header__control img {
    height: 26px;
  }

  .c-header__control-menu {
    display: none;
  }

  .c-header__content {
    width: 100%;
  }

  .c-header__nav-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 17px;
    padding: 0;
  }

  .c-header__nav-link {
    color: var(--color-root);
    font-size: 13px;
    transition: opacity 0.3s ease;
    text-decoration: none;
  }

  .c-header__nav-item:hover .c-header__nav-heading {
    border-bottom-color: var(--color-highlight);
  }

  .c-header__nav-item:hover .c-header__nav-link {
    color: var(--color-highlight);
  }

  .c-header__nav-item:hover .c-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .c-header__nav-heading {
    padding: 0px 0 20px 0;
    border-bottom: 3px solid transparent;
    transition: border 0.3s ease;
    cursor: pointer;
  }

  .c-header__nav-heading::before,
  .c-header__nav-heading::after {
    content: none;
  }

  .c-header__nav--scroll {
    height: auto;
    display: block;
    overflow: unset;
  }

  .c-header__nav-bottom-sp {
    display: none;
  }

  .c-header__nav-dropdown:after,
  .c-header__nav-dropdown:before {
    content: none;
  }

  .c-header__dropdown {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    border-top: 1px solid #ECECEC;
    padding: 0;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
  }

  .c-header__dropdown-inner {
    display: flex;
  }

  .c-header__dropdown-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: url(/img/renewal2026/common/header/bg-nav-menu.png) no-repeat 50% 50%;
    background-size: cover;
    min-width: 23%;
  }

  .c-header__dropdown-sidebar h2 {
    font-family: var(--font-noto-serif);
    font-size: 20px;
    font-weight: 400;
  }

  .c-header__dropdown-sidebar--cleansing {
    background: url(/img/renewal2026/common/header/01_menu_cleansing.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--skincare {
    background: url(/img/renewal2026/common/header/02_menu_skincare.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--bodycare {
    background: url(/img/renewal2026/common/header/03_menu_bodycare.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--makeup {
    background: url(/img/renewal2026/common/header/04_menu_makeup.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--supplement {
    background: url(/img/renewal2026/common/header/05_menu_supplement.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--fashion {
    background: url(/img/renewal2026/common/header/06_menu_fasion.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--service {
    background: url(/img/renewal2026/common/header/07_menu_service.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-sidebar--campaign {
    background: url(/img/renewal2026/common/header/08_menu_campaign.webp) no-repeat 50% 50%/cover;
  }

  .c-header__dropdown-content {
    flex: 1;
    padding: 50px 36px;
  }

  .c-header__dropdown-content>*:not(:last-child) {
    margin-bottom: 40px;
  }

  .c-header__dropdown-section {
    display: flex;
    gap: 30px;
  }

  .c-header__dropdown-seccontent {
    display: block !important;
    padding: 0;
  }

  .c-header__dropdown-fashion ul {
    margin-bottom: 20px;
  }

  .c-header__dropdown-sectitle {
    min-width: 160px;
    display: block;
    padding: 0;
    cursor: default;
  }

  .c-header__line-grid {
    gap: 16px;
  }

  .c-header__line-item {
    font-size: 14px;
    min-width: 140px;
    width: calc((100% - 60px) / 5);
    max-width: 140px;
    transition: color 0.3s ease;
  }

  .c-header__line-item:hover {
    color: var(--color-highlight);
  }

  .c-header__item-list {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 44px;
    row-gap: 20px;
  }

  .c-header__item-list a:hover {
    color: var(--color-highlight);
  }

  .c-header__single-link {
    display: inline-block;
    padding-top: 0;
    padding-bottom: 0;
  }
}

@media only screen and (min-width: 1280px) {
  .c-header__wrapper {
    gap: 4%;
  }

  .c-header__nav-list {
    gap: 43px;
  }

  .c-header__nav-link {
    font-size: 14px;
  }

  .c-header__dropdown-content {
    padding: 50px 64px;
  }

  .c-header__dropdown-section {
    gap: 40px;
  }
}

@media only screen and (min-width: 1536px) {
  .c-header__wrapper {
    gap: 9%;
  }

  .c-header__nav-list {
    gap: 50px;
  }
}

/* ---- search modal (Fancybox target, matches inc/search-modal.html) ---- */
@charset "UTF-8";

:root {
  --font-root: 'Noto Sans JP', sans-serif;
  --font-noto-serif: 'Noto Serif JP', serif;
  --font-open-sans: 'Open Sans', sans-serif;
  --font-sort-mill: "Sorts Mill Goudy", serif;
  --font-zen-old-mincho: "Zen Old Mincho", serif;
  --line-height: 1.3;
  --font-weight-root: 400;
  --font-weight-semibold: 600;
  --font-size-root: 10px;
  --font-size: 16px;
  --font-size-h1: 30px;
  --font-size-h2: 26px;
  --font-size-h3: 22px;
  --font-size-h4: 15px;
  --font-size-h5: 14px;
  --font-size-body: 14px;
  --font-size-small: 12px;
  --color-primary: #2567AB;
  --color-link: #333;
  --color-link-hover: #2567AB;
  --color-highlight: #A50319;
  --color-grey: #ccc;
  --color-white: #fff;
  --color-black: #000;
  --bg-footer: #f8f8f8;
  --bg-root: #FAFAFA;
  --bg-hover: #2567AB;
  --color-root: #2C2C2C;
  --color-hover: #2567AB;
  --color-semantic-gray: #D6D6D6;
  --color-star-filled: var(--color-highlight);
  --color-star-empty: #D6D6D6;
  --header-offset: 54px;
  --browser-sidebar: 20px;
}

@media only screen and (min-width: 768px) {
  :root {
    --font-size-h1: 40px;
    --font-size-h2: 30px;
    --font-size-h3: 24px;
    --font-size-h4: 16px;
  }
}

@media only screen and (min-width: 1024px) {
  :root {
    --header-offset: 112px;
  }
}

.fancybox__container {
  --fancybox-backdrop-bg: rgba(0, 0, 0, .3);
}

.fancybox__slide.has-html {
  padding-left: 30px;
  padding-right: 30px;
}

.fancybox__viewport.is-draggable {
  cursor: unset;
}

.f-button:hover:not([aria-disabled]) {
  color: var(--color-root);
}

html.with-fancybox body.hide-scrollbar {
  margin-right: 0;
  overflow: unset !important;
  overscroll-behavior-y: unset;
}

.fancybox__container,
.fancybox__viewport,
.c-modal-content {
  overflow-anchor: none;
}

.c-modal {
  position: relative;
  display: none;
  max-width: 960px;
  padding: 65px 24px 24px;
}

.c-modal .f-button {
  position: absolute;
  top: 20px;
  right: 20px;
  --f-button-color: var(--color-black);
}

.c-modal-content__box {
  padding: 24px;
  border: 1px solid #ACACAC;
}

.c-modal-content__box:not(:last-child) {
  margin-bottom: 16px;
}

.c-modal-content__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-modal__title {
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

.c-modal__link {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 30px;
}

.c-modal__link a {
  text-decoration: none;
  color: var(--color-root);
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.c-modal__link a:hover {
  opacity: 0.7;
}

.c-modal__input {
  border-bottom: 1px solid var(--color-root);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.c-modal__input input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-root);
  background: transparent;
}

.c-modal__input input::placeholder {
  color: #A9A9A9;
}

.c-modal .e-input__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-root);
  cursor: pointer;
}

.c-modal .e-input__checkbox input {
  position: relative;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #D6D6D6;
  border-radius: 3px;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  background-color: var(--color-white);
}

.c-modal .e-input__checkbox input:before {
  content: "";
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}

.c-modal .e-input__checkbox input:checked {
  border-color: var(--color-highlight);
  background-color: var(--color-highlight);
}

.c-modal .e-input__checkbox input:checked:before {
  opacity: 1;
}

.c-modal__submit-btn {
  display: inline-block;
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  padding: 16px;
  border-radius: 4px;
  background-color: var(--color-root);
  border: 0;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .c-modal-content__box {
    padding: 40px;
  }

  .c-modal-content__box:not(:last-child) {
    margin-bottom: 24px;
  }

  .c-modal-content__wrapper {
    flex-direction: row;
    gap: 50px;
  }

  .c-modal__title {
    text-align: left;
    min-width: 160px;
  }

  .c-modal__title--short {
    min-width: 120px;
  }

  .c-modal__input {
    margin-bottom: 30px;
  }

  .c-modal__link {
    row-gap: 30px;
    column-gap: 30px;
  }

  .c-modal__submit-btn {
    margin-top: 40px;
    margin-left: auto;
    width: 240px;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .c-modal__submit-btn:hover {
    opacity: 0.7;
  }
}

@media only screen and (min-width: 1024px) {
  .c-modal {
    width: 960px;
  }
}

/* ==========================================
   モーダル全体（オーバーレイ & ウィンドウ）
   ========================================== */
.c-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  /* 初期表示：非表示（JSで .is-open を付与して表示） */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.c-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.c-modal-window {
  position: relative;
  background-color: var(--color-white);
  width: 100%;
  max-width: 960px;
  padding: 35px 20px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media only screen and (min-width: 768px) {
  .c-modal-window {
    padding: 40px 30px 35px;
  }
}

/* 閉じるボタン (×) */
.c-modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.c-modal-close-btn__icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.c-modal-close-btn__icon::before,
.c-modal-close-btn__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background-color: var(--color-root);
}

.c-modal-close-btn__icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.c-modal-close-btn__icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ==========================================
   モーダルコンテンツ部 (.c-modal-content 内)
   ========================================== */
.c-modal {
  position: relative;
  display: none;
  max-width: 960px;
  padding: 65px 24px 24px;
}

.c-modal .f-button {
  position: absolute;
  top: 20px;
  right: 20px;
  --f-button-color: var(--color-black);
}

.c-modal-content__box {
  padding: 24px;
  border: 1px solid #ACACAC;
}

.c-modal-content__box:not(:last-child) {
  margin-bottom: 16px;
}

.c-modal-content__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-modal__title {
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: var(--color-root);
  padding-bottom: 24px;
  border-bottom: 1px solid #ACACAC;
  margin-bottom: 24px;
}

.c-modal__subtext {
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--color-root);
  margin-bottom: 24px;
}

.c-modal__list {
  margin: 0;
  padding-left: 1.2em;
  list-style-type: disc;
}

.c-modal__list-item {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-root);
}

.c-modal__list-item:not(:last-child) {
  margin-bottom: 8px;
}

.c-modal__link {
  display: flex;
  flex-wrap: wrap;
  row-gap: 16px;
  column-gap: 30px;
}

.c-modal__link a {
  text-decoration: none;
  color: var(--color-root);
  font-size: 14px;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}

.c-modal__link a:hover {
  opacity: 0.7;
}

.c-modal__input {
  border-bottom: 1px solid var(--color-root);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.c-modal__input input {
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--color-root);
  background: transparent;
  width: 100%;
}

.c-modal__input input::placeholder {
  color: #A9A9A9;
}

.c-modal .e-input__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-root);
  cursor: pointer;
}

.c-modal .e-input__checkbox input {
  position: relative;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid #D6D6D6;
  border-radius: 3px;
  display: grid;
  place-content: center;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  background-color: var(--color-white);
}

.c-modal .e-input__checkbox input:before {
  content: "";
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}

.c-modal .e-input__checkbox input:checked {
  border-color: var(--color-highlight);
  background-color: var(--color-highlight);
}

.c-modal .e-input__checkbox input:checked:before {
  opacity: 1;
}

.c-modal__submit-btn {
  display: inline-block;
  margin-top: 25px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  padding: 16px;
  border-radius: 4px;
  background-color: var(--color-root);
  border: 0;
  width: 100%;
}

@media only screen and (min-width: 768px) {
  .c-modal-content__box {
    padding: 40px;
  }

  .c-modal-content__box:not(:last-child) {
    margin-bottom: 24px;
  }

  .c-modal-content__wrapper {
    flex-direction: row;
    gap: 50px;
  }

  .c-modal__title {
    font-size: 16px;
    text-align: left;
    min-width: 160px;
  }

  .c-modal__title--short {
    min-width: 120px;
  }

  .c-modal__subtext,
  .c-modal__list-item {
    font-size: 14px;
  }

  .c-modal__input {
    margin-bottom: 30px;
  }

  .c-modal__link {
    row-gap: 30px;
    column-gap: 30px;
  }

  .c-modal__submit-btn {
    margin-top: 40px;
    margin-left: auto;
    width: 240px;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .c-modal__submit-btn:hover {
    opacity: 0.7;
  }
}

@media only screen and (min-width: 1024px) {
  .c-modal {
    width: 960px;
  }
}

.c-tab {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.c-tab-modal__item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: calc((100% - 5px) / 2);
  padding: 12px 8px;
  border-radius: 4px;
  border: 1px solid #D6D6D6;
  text-decoration: none;
  font-size: 12px;
  color: var(--color-root);
  transition: opacity 0.3s ease;
}

.c-tab-modal__item.active {
  border-color: var(--color-highlight);
  color: var(--color-highlight);
}

.c-tab-modal__item:hover {
  opacity: 0.7;
}

.c-tab-content {
  position: relative;
}

.c-tab-box {
  position: absolute;
  inset: 0;
  width: 100%;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.c-tab-box.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media only screen and (min-width: 768px) {
  .c-tab {
    margin-bottom: 24px;
  }

  .c-tab-modal__item {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

#tab-box01 {
  position: relative;
}

.js-handle-tab {
  cursor: pointer;
}

/* ============================================================
   Legacy include integration additions
   (header/header.html, header/sp_header.html only)
   ============================================================ */

/* The component build above assumes the site-wide box-sizing:border-box
   reset normally provided by abstract/base + reset-old-site, which this
   scoped build intentionally excludes (see file header). Re-apply it,
   scoped to just the injected header (and the search modal, which sits
   alongside it in the same file), so width/padding combinations compute
   as intended without affecting any other element on the page. */
.site-top-area,
.site-top-area *,
.site-top-area *::before,
.site-top-area *::after,
.c-search-modal,
.c-search-modal *,
.c-search-modal *::before,
.c-search-modal *::after {
  box-sizing: border-box;
}

/* css/pc_common.css / css/sp_common_forpc.css set a fixed/centered layout
   on #header for the old markup; the new header's height is content-driven
   and left-aligned, so undo just that for this element. */
#header {
  height: auto !important;
  text-align: left;
}

.c-header {
  font-family: var(--font-root);
}

/* ------------------------------------------------------------
   Legacy-page viewport compatibility
   ------------------------------------------------------------
   This header is built at a 390px canvas (matching --font-size-root,
   same as inc/header.html on pages using width=device-width). Many of
   the legacy pages that load header/sp_header.html instead use a fixed
   design-width viewport (width=750/980/720, or no viewport meta at all)
   for their own (unrelated) content. Reproduces the .viewport-* /
   .site-top-area__wrapper scale compensation from
   reset-old-site/_reset-common.scss (minus the global html/body rules
   in that file) so the header renders at a consistent on-screen size
   regardless of the host page's viewport convention. The .viewport-*
   class on <body> is set by detectViewport() in
   js/renewal2026/script-legacy.js. No-ops on real desktop viewports. */
@media only screen and (max-width: 1023px) {

  .viewport-750 .site-top-area__wrapper,
  .viewport-980 .site-top-area__wrapper,
  .viewport-720 .site-top-area__wrapper,
  .viewport-default .site-top-area__wrapper {
    width: 390px;
    transform-origin: top left;
    max-height: max-content;
  }

  .viewport-750 .site-top-area__wrapper {
    transform: scale(calc(750 / 390));
  }

  .viewport-980 .site-top-area__wrapper {
    transform: scale(calc(980 / 390));
  }

  .viewport-720 .site-top-area__wrapper {
    transform: scale(calc(720 / 390));
  }

  .viewport-default .site-top-area__wrapper {
    transform: scale(calc(980 / 390));
  }

  .viewport-750 .site-top-area,
  .viewport-980 .site-top-area,
  .viewport-720 .site-top-area,
  .viewport-default .site-top-area {
    height: auto;
    margin-bottom: 20px;
  }

  /* .viewport-750 .site-top-area {
    padding-bottom: calc(var(--header-offset, 0px) * (750 / 390)) !important;
  }

  .viewport-980 .site-top-area {
    padding-bottom: calc(var(--header-offset, 0px) * (980 / 390)) !important;
  }

  .viewport-720 .site-top-area {
    padding-bottom: calc(var(--header-offset, 0px) * (720 / 390)) !important;
  }

  .viewport-default .site-top-area {
    padding-bottom: calc(var(--header-offset, 0px) * (980 / 390)) !important;
  } */

  /* The fixed mobile-menu panel is sized with 100vh, which on these scaled
     pages resolves against the enlarged (width=N) layout viewport, so the
     panel ends up roughly N/390x taller than the physical screen. That makes
     .c-header__nav--scroll far taller than its content, so it never overflows
     and never scrolls, and its lower part (incl. .c-header__nav-bottom-sp)
     stays permanently below the fold. Rescale the height back to one screen. */
  .viewport-750 .c-header__nav {
    height: calc(100vh * (390 / 750));
  }

  .viewport-720 .c-header__nav {
    height: calc(100vh * (390 / 720));
  }

  .viewport-980 .c-header__nav,
  .viewport-default .c-header__nav {
    height: calc(100vh * (390 / 980));
  }

  .viewport-750 .c-header__nav--scroll {
    height: calc(100vh * (390 / 750) - ((var(--header-offset, 55px)) - 3px));
  }

  .viewport-720 .c-header__nav--scroll {
    height: calc(100vh * (390 / 720) - ((var(--header-offset, 55px)) - 3px));
  }

  .viewport-980 .c-header__nav--scroll,
  .viewport-default .c-header__nav--scroll {
    height: calc(100vh * (390 / 980) - ((var(--header-offset, 55px)) - 3px));
  }
}

/* ------------------------------------------------------------
   Legacy-page viewport compatibility - search modal
   ------------------------------------------------------------
   Fancybox relocates #search-modal to <body>
   (.fancybox__dialog > .fancybox__container > .fancybox__carousel >
   .fancybox__viewport > .fancybox__slide > #search-modal), so unlike the
   header it never sits inside .site-top-area__wrapper and gets none of the
   scale compensation above. On these fixed-width-viewport pages that
   leaves the modal's type and spacing at roughly half their intended
   physical size, and where the layout viewport is >= 768px (width=980, or
   no viewport meta -> ~980) the min-width:768 media query additionally
   selects the desktop two-column layout.

   Fix: pin the >= 768 pages back to the SP (single-column) layout, then
   zoom the modal box up to the 390px canvas at the same ratios as
   .site-top-area__wrapper. zoom (not transform) so .fancybox__viewport's
   scroll height tracks the scaled box and tall tab content is not clipped;
   width is divided back out so the zoomed box still fits the slide instead
   of overflowing it horizontally. Gated on <body>.viewport-* (set by the
   tagger at the top of header/sp_header.html), so width=device-width /
   full-renewal pages are untouched. */
@media only screen and (max-width: 1023px) {

  /* width=980 / no viewport meta: undo the min-width:768 desktop layout */
  .viewport-980 #search-modal .c-modal-content__box,
  .viewport-default #search-modal .c-modal-content__box {
    padding: 24px;
  }

  .viewport-980 #search-modal .c-modal-content__box:not(:last-child),
  .viewport-default #search-modal .c-modal-content__box:not(:last-child) {
    margin-bottom: 16px;
  }

  .viewport-980 #search-modal .c-modal-content__wrapper,
  .viewport-default #search-modal .c-modal-content__wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .viewport-980 #search-modal .c-modal__title,
  .viewport-980 #search-modal .c-modal__title--short,
  .viewport-default #search-modal .c-modal__title,
  .viewport-default #search-modal .c-modal__title--short {
    text-align: center;
    min-width: 0;
  }

  .viewport-980 #search-modal .c-modal__input,
  .viewport-default #search-modal .c-modal__input {
    margin-bottom: 24px;
  }

  .viewport-980 #search-modal .c-modal__link,
  .viewport-default #search-modal .c-modal__link {
    row-gap: 16px;
  }

  .viewport-980 #search-modal .c-modal__submit-btn,
  .viewport-default #search-modal .c-modal__submit-btn {
    display: inline-block;
    width: 100%;
    margin-top: 25px;
    margin-left: 0;
  }

  .viewport-980 #search-modal .c-tab,
  .viewport-default #search-modal .c-tab {
    margin-bottom: 16px;
  }

  .viewport-980 #search-modal .c-tab-modal__item,
  .viewport-default #search-modal .c-tab-modal__item {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Scale the modal box up to the physical SP canvas (same ratios as
     .site-top-area__wrapper); divide width back out so the zoomed box
     still fits .fancybox__slide. */
  .viewport-750 #search-modal.c-search-modal {
    zoom: 1.9231;
    max-width: calc(960px / 1.9231);
  }

  .viewport-720 #search-modal.c-search-modal {
    zoom: 1.8462;
    max-width: calc(960px / 1.8462);
  }

  .viewport-980 #search-modal.c-search-modal,
  .viewport-default #search-modal.c-search-modal {
    zoom: 2.5128;
    max-width: calc(960px / 2.5128);
  }

  #header {
    margin-bottom: 100px !important;
  }


}
