@charset "UTF-8";
/* ============================================================
 * /include/common/css/common-pc.css
 * 静的ページ共通ヘッダー・フッター（PC）
 *
 * 新サイト common-pc.css から、ヘッダー・フッター・検索モーダルに
 * 必要なルールのみを抽出したもの。
 * 旧ページ本文のレイアウトを崩さないよう、グローバルリセットは含めず
 * .l-header / .l-footer / .p-search-modal 配下にスコープしています。
 * ============================================================ */

/* --- Variables（新サイトと同値） --- */
:root {
  --text-primary: #303336;
  --text-brand-primary: #1d2088;
  --text-on-surface: #ffffff;
  --surface-base: #ffffff;
  --surface-brand-primary: #1d2088;
  --surface-brand-primary-hover: #262ab1;
  --border-subtle: #e5e6e7;
  --border-brand-primary: #1d2088;
  --icon-on-surface: #ffffff;
  --radius-m: 8px;
  --radius-l: 16px;
  --shadow-lv1: 0 1px 4px 0 rgba(0, 0, 0, 0.10);
  --spacing-xxs: 4px;
  --spacing-xs: 8px;
  --spacing-s: 12px;
  --spacing-m: 16px;
  --font-base: 'Noto Sans JP', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* --- 差し込み前のプレースホルダー（読み込み完了時のレイアウトずれ防止） --- */
.c-include {
  display: block;
}

.c-include--header {
  height: 64px;
  background: var(--surface-base);
  box-shadow: var(--shadow-lv1);
}

.c-include--footer {
  min-height: 200px;
}

/* --- 旧CSS（global_common.css / global_header_footer.css 等）の干渉打ち消し --- */
/* 旧固定ヘッダー用の余白を解除（global_parts.css: #wrapper / 各local.css: body） */
body:has(> .l-header),
body:has(> .c-include--header),
body:has(#wrapper > .l-header),
body:has(#wrapper > .c-include--header),
#wrapper:has(> .l-header),
#wrapper:has(> .c-include--header) {
  padding-top: 0 !important;
}

.l-header,
.l-header *,
.l-header *::before,
.l-header *::after,
.l-footer,
.l-footer *,
.l-footer *::before,
.l-footer *::after,
.p-search-modal,
.p-search-modal *,
.p-search-modal *::before,
.p-search-modal *::after {
  box-sizing: border-box;
}

.l-header,
.l-footer,
.p-search-modal {
  font-family: var(--font-base);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

.l-header p,
.l-footer p,
.p-search-modal p {
  margin: 0;
}

.l-header img,
.l-footer img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* ============================================================
 * Header
 * ============================================================ */
.l-header {
  position: sticky;
  top: 0;
  left: auto;
  z-index: 210;
  width: 100%;
  min-width: 0;
  height: 64px;
  margin: 0;
  padding: 0;
  background: var(--surface-base);
  filter: none;
  box-shadow: var(--shadow-lv1);
}

.l-header::after {
  content: none;
}

.l-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  margin: 0 auto;
  max-width: 960px;
}

.l-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.l-header__logo img {
  width: 106px;
  height: 40px;
}

.l-header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
}

/* ============================================================
 * Button / Icon
 * ============================================================ */
.l-header .c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xxs);
  height: 40px;
  margin: 0;
  padding: 0 var(--spacing-m);
  border: none;
  border-radius: var(--radius-m);
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.l-header .c-btn--primary {
  background-color: var(--surface-brand-primary);
  color: var(--text-on-surface);
}

.l-header .c-btn--primary:hover {
  background-color: var(--surface-brand-primary-hover);
}

.l-header .c-btn--sm {
  height: 32px;
  padding: 0 var(--spacing-s);
  font-size: 12px;
  font-weight: 500;
}

.l-header .c-btn--icon-left {
  padding-inline: var(--spacing-s);
}

.l-header .c-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.l-header .c-icon,
.p-search-modal .c-icon {
  display: inline-block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  background-color: currentColor;
  pointer-events: none;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.l-header .c-icon--xs,
.p-search-modal .c-icon--xs {
  width: 16px;
  height: 16px;
}

.l-header .c-icon--lg,
.p-search-modal .c-icon--lg {
  width: 32px;
  height: 32px;
}

.c-icon--search {
  -webkit-mask-image: url(/img/common/icons/icon-search.svg);
  mask-image: url(/img/common/icons/icon-search.svg);
}

.l-header .c-icon--search {
  background-color: var(--icon-on-surface);
}

.c-icon--close {
  -webkit-mask-image: url(/img/common/icons/icon-close.svg);
  mask-image: url(/img/common/icons/icon-close.svg);
}

.c-icon--train {
  -webkit-mask-image: url(/img/common/icons/icon-train.svg);
  mask-image: url(/img/common/icons/icon-train.svg);
}

.c-icon--area-solid {
  -webkit-mask-image: url(/img/common/icons/icon-area-solid.svg);
  mask-image: url(/img/common/icons/icon-area-solid.svg);
}

/* ============================================================
 * Search Modal
 * ============================================================ */
.p-search-modal {
  display: none;
}

.p-search-modal.is-open {
  display: block;
}

.p-search-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background-color: rgba(0, 0, 0, .4);
}

.p-search-modal__container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  max-width: 980px;
  margin: 0 auto;
}

.p-search-modal__panel {
  position: absolute;
  top: 56px;
  right: 0;
  width: 344px;
  background-color: var(--surface-base);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-lv1);
  padding: var(--spacing-m);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-m);
}

.p-search-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.p-search-modal__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
}

.p-search-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-m);
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.p-search-modal__buttons {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.p-search-modal__btn-row {
  display: flex;
  gap: var(--spacing-xs);
}

.p-search-modal__btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--surface-base);
  border: 1px solid var(--border-brand-primary);
  border-radius: var(--radius-m);
  padding: var(--spacing-s) var(--spacing-m);
  text-decoration: none;
  color: var(--text-brand-primary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.p-search-modal__btn:link,
.p-search-modal__btn:visited,
.p-search-modal__btn:hover {
  color: var(--text-brand-primary);
  text-decoration: none;
}

.p-search-modal__btn--tall {
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.p-search-modal__btn-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* ============================================================
 * Footer
 * ============================================================ */
.l-footer {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 28px 0;
  background-color: var(--surface-base);
}

.l-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.l-footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.l-footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.l-footer__nav-link,
.l-footer__nav-link:link,
.l-footer__nav-link:visited {
  color: #303236;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.l-footer__nav-link:hover {
  color: #303236;
  text-decoration: underline;
}

.l-footer__nav-link + .l-footer__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.l-footer__nav-link + .l-footer__nav-link::before {
  content: "";
  width: 1px;
  height: 16px;
  background-color: #494c51;
  flex-shrink: 0;
}

.l-footer__brands {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.l-footer__brand-link,
.l-footer__brand-link:link,
.l-footer__brand-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #303236;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

.l-footer__brand-link:hover {
  color: #303236;
  text-decoration: underline;
}

.l-footer__brand-link::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url(/img/common/icons/icon-external.svg);
  mask-image: url(/img/common/icons/icon-external.svg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.l-footer__copyright {
  font-size: 10px;
  font-weight: 400;
  line-height: 1.75;
  color: #303236;
  text-align: center;
  margin: 0;
}

.l-footer__copyright small {
  font-size: inherit;
}
