@charset "UTF-8";

/* =============================================
  design tokens
============================================= */
:root {
  --navy: #1a2b5c;
  --red: #cb2218;
  --text: #333333;
  --base1: #f5f6f8;
  --base2: #e8eaed;
  --deco: rgba(176, 184, 193, 0.2);

  /* 中央スクロールカラムの幅 */
  --main-width: 430px;
  /* 左右パネルと中央カラムの間隔 */
  --gutter-gap: 40px;
  /* PC/SP切り替えの閾値（nav + center + cta が収まる幅） */
}

/* =============================================
  base / reset
============================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--navy);
  /* PCではページ自体はスクロールさせない（中央だけスクロール） */
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =============================================
  .p-bg  全画面固定の背景（8秒フェード）
============================================= */
.p-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(333.13deg, #00175b 0%, #015198 73.03%);
}

.p-bg__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.p-bg__image.is-active {
  opacity: 1;
}

/* =============================================
  .l-layout  3カラムの土台
============================================= */
.l-layout {
  position: relative;
  z-index: 1;
  height: 100vh;
}

/* 中央：ここだけスクロールする */
.l-main {
  position: relative;
  z-index: 2;
  width: var(--main-width);
  max-width: 100%;
  height: 100vh;
  margin: 0 auto;
  background: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 左右パネル：中央カラム両脇のガターに固定配置 */
.l-side {
  position: fixed;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  width: calc((100% - var(--main-width)) / 2);
  height: 100vh;
  pointer-events: none;
}
@media screen and (max-width: 1023px) {
  .l-side {
    display: none;
  }
}

/* 767px以下：中央カラムを全幅化。
   中身は 430px 基準のまま zoom（JS）で同比率拡縮する */
@media screen and (max-width: 767px) {
  .l-main {
    width: 100%;
  }

  .l-main__inner {
    width: var(--main-width);
  }
}

.l-side > * {
  pointer-events: auto;
}

.l-side--left {
  left: 0;
  /* justify-content: flex-end; */
  justify-content: center;
  /* padding-right: 113px; */
  padding-left: 24px;
  padding-right: 24px;
}
@media screen and (max-width: 1279px) {
  .l-side--left {

  }
}

.l-side--right {
  right: 0;
  /* justify-content: flex-start; */
  justify-content: center;
  /* padding-left: 89px; */
  padding-left: 24px;
  padding-right: 24px;
}
@media screen and (max-width: 1279px) {
  .l-side--right {

  }
}

/* =============================================
  .p-nav  左ナビ
============================================= */
.p-nav__logo {
  margin-bottom: 42px;
}

.p-nav__logo img {
  width: 234px;
}

.p-nav__list a {
  display: inline-block;
  position: relative;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  padding: 16px 0;
  opacity: 0.6;
  transition: opacity 0.2s;
  margin-left: 24px;
}

.p-nav__list a:hover,
.p-nav__list a.is-current {
  opacity: 1;
}

.p-nav__list a.is-current::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* =============================================
  .p-cta  右CTA
============================================= */
.p-cta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 320px;
  padding: 40px 32px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.p-cta__heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-cta__icon {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.p-cta__icon img {
  width: 23px;
  flex-shrink: 0;
}

.p-cta__title {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.44px;
  color: var(--text);
  line-height: 1.5;
}

.p-cta__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-cta__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.p-cta__list img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* =============================================
  .p-btn  共通ボタン（赤）
============================================= */
.p-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  min-height: 64px;
  padding: 8px 48px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.p-btn:hover .p-btn__arrow-wrapper::before {
  transform: scale(calc(32 / 23));
}

.p-btn__arrow-wrapper {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 23px;
  height: 23px;
}

.p-btn__arrow-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.5s;
  transform-origin: center center;
  backface-visibility: hidden;
}

.p-btn__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 8px;
  display: block;
  transform: translate(calc(-50% + 1px), -50%);
}

.p-btn--sm {
  min-height: 56px;
  font-size: 16px;
  padding-left: 18px;
  padding-right: 18px;
  justify-content: space-between;
}
.p-btn--sm .p-btn__arrow-wrapper {
  width: 20px;
  height: 20px;
  right: 18px;
}
.p-btn--sm:hover .p-btn__arrow-wrapper::before {
  transform: scale(calc(29 / 20));
}

/* =============================================
  共通：セクション / 見出し / 装飾文字
============================================= */
.p-section {
  position: relative;
  overflow: hidden;
  padding: 92px 27px;
}

.p-heading {
  position: relative;
  z-index: 1;
  font-weight: 700;
}

.p-heading--navy {
  color: var(--navy);
}

.p-heading--white {
  color: #fff;
}

.p-heading--navy,
.p-heading--white {
  font-size: 34px;
  letter-spacing: 0.69px;
  line-height: 1.4;
}

.p-heading--sm {
  font-size: 25px;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* 見出しのスクロールフェード（下からふわっと＋ぼかし解除）
   参考: Kao Osolo の jsFade up / jsScrollIn */
.js .p-heading {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(50px);
  transition: opacity 1000ms ease, filter 1000ms ease, transform 1000ms ease;
  will-change: opacity, filter, transform;
}

.js .p-heading.is-inview {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js .p-heading {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

.p-deco {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(-50% + 45px), 0) rotate(90deg);
  transform-origin: center;
  font-family: "Shippori Mincho", serif;
  font-weight: 700;
  font-size: 103px;
  line-height: 1;
  letter-spacing: 1.15px;
  color: var(--deco);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.p-deco--right {
  left: auto;
  right: 0;
  transform: translate(calc(50% - 30px), -50%) rotate(90deg);
}

/* セクション内のコンテンツは装飾文字より前面に */
.p-section > *:not(.p-deco) {
  position: relative;
  z-index: 1;
}

/* =============================================
  KV / HERO
============================================= */
.p-kv {
  position: relative;
  aspect-ratio: 430 / 1027;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.p-kv__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.p-kv__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 27px 157px;
}

.p-kv__header {
  padding: 27px 0;
  margin: 0 -27px;
}

.p-kv__logo {
  width: 146px;
  margin-left: 27px;
}

.p-kv__lead {
  margin-top: 28px;
  padding-left: 11px;
  border-left: 2px solid var(--red);
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.p-kv__title {
  margin-top: 14px;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: 0.69px;
  line-height: 1.4;
}

.p-kv__text {
  margin-top: 18px;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.p-kv .p-btn {
  margin-top: auto;
}

/* 767px以下：KVを画面の高さいっぱいに（zoom倍率を相殺して 100vh 相当に） */
@media screen and (max-width: 767px) {
  .p-kv {
    aspect-ratio: auto;
    height: calc(100vh / var(--scale, 1));
    height: calc(100dvh / var(--scale, 1));
  }

  .p-kv__inner {
    padding-bottom: 80px;
  }
}

/* =============================================
  ABOUT
============================================= */
.p-section--about {
  background: #fff;
}

.p-section--about .p-deco {
  top: 154px;
}

.p-about__body {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.p-about__text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.p-about__photos {
  position: relative;
  height: 226px;
}

.p-about__photo {
  position: absolute;
  object-fit: cover;
}

.p-about__photo--circle {
  top: 0;
  right: 0;
  width: 189px;
  height: 189px;
  border-radius: 8px;
}

.p-about__photo--rect {
  left: 40px;
  bottom: 0;
  width: 169px;
  height: 112px;
  border-radius: 8px;
}

/* =============================================
  FEATURES
============================================= */
.p-section--features {
  background: var(--base1);
}

.p-section--features .p-deco {
  top: 314px;
}

.p-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.p-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding: 27px 23px;
  background: #fff;
  border: 1px solid var(--base2);
  border-radius: 5px;
}

.p-feature__media {
  position: relative;
}

.p-feature__media img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  border-radius: 4px;
}

.p-feature__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translateY(50%);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.15px;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 0 5px 5px 5px;
}

.p-feature__text {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* =============================================
  AMEX PAYMENT
============================================= */
.p-section--payment {
  background: linear-gradient(-50.56deg, #00175b 19%, #015198 56%);
  color: #fff;
}

.p-section--payment .p-deco {
  top: 236px;
}

.p-section--payment .p-heading {
  margin-bottom: 32px;
}

.p-payment__photo img {
  width: 100%;
  border-radius: 15px;
}

.p-payment__text {
  margin: 32px 0;
}

.p-payment__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.p-payment__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.p-payment__list li {
  position: relative;
  padding-left: 17px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.p-payment__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
}

.p-payment__note-mark {
  font-size: 10px;
  transform: translate(0, -6px);
  display: inline-block;
}

.p-payment__note {
  margin-top: 9px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* =============================================
  VEHICLES
============================================= */
.p-section--vehicles {
  background: #fff;
}

.p-section--vehicles .p-deco {
  top: 306px;
}

.p-vehicles {
  margin-top: 32px;
}

.p-vehicles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.p-vehicle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 18px 8px;
  background: #fff;
  border: 1px solid var(--base2);
  border-radius: 5px;
}

.p-vehicle img {
  width: 72px;
  height: 46px;
  object-fit: contain;
}

.p-vehicle img.is-other {
  width: 37px;
}

.p-vehicle span {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}

.p-vehicles__note {
  margin-top: 23px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* =============================================
  FLOW
============================================= */
.p-section--flow {
  background: var(--base1);
}

.p-section--flow .p-deco {
  top: 120px;
}

.p-flow {
  margin-top: 32px;
}

.p-flow__step {
  position: relative;
  display: flex;
  gap: 18px;
  padding-bottom: 20px;
}

.p-flow__step:last-child {
  padding-bottom: 0;
}

.p-flow__num {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}

.p-flow__step:not(:last-child) .p-flow__num::after {
  content: "";
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 32px;
  background: var(--navy);
}

.p-flow__body {
  padding-top: 9px;
}

.p-flow__title {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.15px;
  color: var(--navy);
}

.p-flow__text {
  margin-top: 5px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

/* =============================================
  CONTACT
============================================= */
.p-section--contact {
  background: var(--navy);
  color: #fff;
}

.p-section--contact .p-deco {
  top: 281px;
}

.p-contact__heading {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 32px;
}

.p-contact__lead {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.p-contact__body {
  position: relative;
}

.p-contact__required {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.p-contact__required span {
  color: var(--red);
}

.p-form {
  margin-top: 19px;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.p-form__row {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p-form__label {
  font-size: 16px;
  color: #fff;
}

.p-form__label span {
  margin-left: 4px;
  font-size: 14px;
  color: var(--red);
}

.p-form__hint {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.p-form__input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 5px;
  color: #fff;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.7;
}

.p-form__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.p-form__input:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.p-form__textarea {
  height: 115px;
  resize: vertical;
}

.p-form__zip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.p-form__input--zip {
  width: 78px;
  text-align: center;
}

.p-form__zip-sep {
  color: rgba(255, 255, 255, 0.6);
}

/* ---- Contact Form 7 対応 ---- */
/* CF7 は入力を span.wpcf7-form-control-wrap で包むため、全幅項目はブロック化 */
.p-form__row > .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* 送信ボタン（[submit]）に矢印アイコンを付与 */
.p-form__submit-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 13px;
}

.p-form__submit-wrapper::before,
.p-form__submit-wrapper::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 20px;
  width: 23px;
  height: 23px;
  transform: translateY(-50%);
  pointer-events: none;
}

.p-form__submit-wrapper::after {
  z-index: 1;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.5s;
  transform-origin: center center;
  backface-visibility: hidden;
}

.p-form__submit-wrapper:hover::after {
  transform: translateY(-50%) scale(calc(32 / 23));
}

.p-form__submit-wrapper::before {
  z-index: 2;
  background: url(../img/arrow.svg) no-repeat calc(50% + 1px) center / 8px auto;
}

.wpcf7-spinner {
  position: absolute !important;
}

/* エラー時の入力欄（CF7 が .wpcf7-not-valid を付与） */
.p-section--contact .p-form__input.wpcf7-not-valid {
  background: rgba(203, 34, 24, 0.2);
  border-color: var(--red);
}

/* バリデーションメッセージ */
.p-section--contact .wpcf7-not-valid-tip {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  color: #d67670;
}

/* 住所（zip-1 / zip-2 / your-address）を 1つに統合したエラー文言 */
.p-section--contact .p-form__addr-error {
  margin-top: 0;
}

/* zip-1 / zip-2 のネイティブのエラー文言は常に非表示（横並びの崩れ防止）。
   文言は JS が拾って your-address の下に統合表示する */
.p-section--contact .p-form__zip .wpcf7-not-valid-tip {
  display: none !important;
}

/* CF7 のスクリーンリーダー用サマリー（視覚的には隠す／支援技術には伝える） */
.p-section--contact .screen-reader-response {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* 送信後などの応答メッセージ */
.p-section--contact .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 14px;
  color: #fff;
  display: none !important;
}

/* 送信成功時はモーダルで完結するため非表示（エラー・失敗時は表示） */
.p-section--contact .wpcf7-form.sent .wpcf7-response-output {
  display: none;
}

.p-section--contact .wpcf7-spinner {
  margin: 12px auto 0;
}

/* =============================================
  送信完了モーダル
============================================= */
.p-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility .3s ease;
}

.p-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.p-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 92, 0.5);
}

.p-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 320px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 34px 24px;
  background: #fff;
  border-radius: 12px;
  transform: translateY(12px);
  transition: transform .3s ease;
}

.p-modal.is-open .p-modal__dialog {
  transform: translateY(0);
}

.p-modal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.p-modal__body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.p-modal__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.p-modal__icon {
  display: block;
  width: 56px;
  height: 56px;
  margin-bottom: 10px;
  line-height: 0;
}

.p-modal__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.44px;
  color: #333;
  text-align: center;
}

.p-modal__lead {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  text-align: center;
}

.p-modal__text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.p-modal__notes {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  background: var(--base1, #f5f6f8);
  border-radius: 8px;
}

.p-modal__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 14px;
  letter-spacing: -0.02em;
  line-height: 1.7;
  color: var(--navy);
}

.p-modal__note-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  line-height: 0;
}

.p-modal__caution {
  font-size: 12px;
  line-height: 1.5;
  color: #333;
}

.p-modal__btns {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.p-modal__btn {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(51, 51, 51, 0.5);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s ease;
}

button.p-modal__btn {
  transform: translate(0, 1px);
}

.p-modal__btn:hover {
  color: var(--navy);
}

/* =============================================
  FOOTER
============================================= */
.p-footer {
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding: 92px 27px;
  background: #fff;
}

.p-footer__amex {
  width: 60px;
  height: 60px;
  margin-bottom: 14px;
}

.p-footer__logo {
  width: 168px;
  margin-bottom: 14px;
}

.p-footer__name {
  margin-bottom: 9px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.p-footer__addr {
  font-size: 16px;
  color: var(--text);
  line-height: 1.7;
}

.p-footer__links {
  display: flex;
  gap: 23px;
}

.p-footer__links a {
  position: relative;
  font-size: 14px;
  color: rgba(51, 51, 51, 0.5);
  padding-bottom: 3px;
  transition: color 0.3s ease;
}

/* 常時表示のうっすらした下線 */
.p-footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(51, 51, 51, 0.2);
}

/* ホバーで左から伸びる赤い下線 */
.p-footer__links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 1;
}

.p-footer__links a:hover {
  color: var(--red);
}

.p-footer__links a:hover::before {
  transform: scaleX(1);
}

.p-footer__copy {
  padding-top: 19px;
  border-top: 1px solid rgba(51, 51, 51, 0.2);
  text-align: center;
  font-size: 14px;
  color: rgba(51, 51, 51, 0.5);
}

/* =============================================
  追従ハンバーガーメニュー（PC/SP共通）
============================================= */
/* 右下追従の丸ボタン（中央カラムの右下に配置） */
.p-menu-btn {
  position: fixed;
  right: max(16px, calc((100% - var(--main-width)) / 2 + 20px));
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(111deg, #00175b 0%, #015198 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: none;
}

@media screen and (max-width: 1023px) {
  .p-menu-btn {
    display: flex;
  }
}

/* 767px以下：起点を固定pxにし、JSのzoomで大きさ・位置とも同比率に拡縮 */
@media screen and (max-width: 767px) {
  .p-menu-btn {
    right: 16px;
    bottom: 24px;
  }
}

.p-menu-btn__bars {
  position: relative;
  display: block;
  width: 21px;
  height: 9px;
}

.p-menu-btn__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 10px;
  background: #fff;
  transition: top 0.3s ease, bottom 0.3s ease, transform 0.3s ease;
}

.p-menu-btn__bars span:nth-child(1) {
  top: 0;
}

.p-menu-btn__bars span:nth-child(2) {
  bottom: 0;
}

/* 開いている時は × に変形 */
.is-menu-open .p-menu-btn__bars span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.is-menu-open .p-menu-btn__bars span:nth-child(2) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* メニューパネル（右からスライドイン） */
.p-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(-83.2deg, #00175b 0%, #015198 100%);
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.72, 0.05, 0, 1);
  overflow-y: auto;
}

.is-menu-open .p-menu {
  transform: translateX(0);
}

.p-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 80px 40px;
}

.p-menu__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.p-menu__list li {
  width: 100%;
}

.p-menu__list a {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  transition: opacity 0.2s;
  display: block;
  text-align: left;
}

.p-menu__list a:hover {
  opacity: 0.7;
}

.p-menu__cv {
  width: 200px;
}

/* 背景オーバーレイ */
.p-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.is-menu-open .p-menu-overlay {
  opacity: 1;
  visibility: visible;
}
