/* ==========================================================================
   シャープナー LP — common.css
   トークン + shell（帯） + button + section-heading + __inner 余白
   モバイルファースト・帯レイアウト（440px）
   ========================================================================== */

:root {
  /* ---- Brand palette ---- */
  --wms-color-main: #ffffff;
  --wms-color-second: #ffde59;
  --wms-color-third: #ffcc00;
  --wms-color-fourth: #4394ff;
  --wms-color-bg: #176ad8;
  --wms-color-bg-second: #001e52;
  --wms-color-main-accent: #F43030;
  /* ---- Semantic（派生） ---- */
  --wms-color-text: var(--wms-color-main);
  --wms-color-text-muted: rgba(255, 255, 255, 0.8);
  --wms-color-white: var(--wms-color-main);
  --wms-color-accent: #ffde59;
  --wms-color-accent-strong: var(--wms-color-third);
  --wms-color-link: var(--wms-color-fourth);
  --wms-color-bg-muted: rgba(0, 30, 82, 0.35);
  --wms-color-border: rgba(255, 255, 255, 0.25);
  --wms-color-bg-outer: var(--wms-color-bg-second);

  /* ---- Gradients ---- */
  --wms-gradient-brand: linear-gradient(90deg, var(--wms-color-bg) 0%, var(--wms-color-bg-second) 100%);
  --wms-gradient-brand-reverse: linear-gradient(90deg, var(--wms-color-bg-second) 0%, var(--wms-color-bg) 100%);
  --wms-gradient-brand-a50: linear-gradient(90deg, rgba(23, 106, 216, 0.5) 0%, rgba(0, 30, 82, 0.5) 100%);

  /* ---- Font ---- */
  --wms-font-main: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --wms-font-heading: "yu-mincho-pr6n", sans-serif;
  --wms-font-outfit: "Outfit", sans-serif;
  --wms-font-oswald: "Oswald", sans-serif;

  /* ---- Section heading sizes（統一トークン） ---- */
  --wms-font-size-section-heading-title: 1.8rem;
  --wms-font-size-section-heading-lead: 1.2rem;
  --wms-font-size-section-heading-title-sub: 3rem;
  --wms-font-size-section-heading-title-small: 1.2rem;
  --wms-font-size-section-heading-accent: 3rem;
  --wms-font-size-section-label: 5rem;
  --wms-color-section-label: #fff;
  --wms-opacity-section-label: 0.15;

  /* ---- Layout（帯） ---- */
  --wms-layout-band-max: 440px;
  --wms-layout-max-width: 440px;
  --wms-layout-section-padding-inline: 16px;
  --wms-shell-side-gap: 40px;
  --wms-sp-header-height: 76px;

  /* ---- Breakpoints ---- */
  --wms-breakpoint-sp: 440px;
  --wms-breakpoint-pc: 441px;
  --wms-breakpoint-tablet: 1199px;

  /* ---- Outer background image（差し替え可） ---- */
  --wms-bg-outer-image: url("img/pc-bg.webp");
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--wms-font-main);
  color: var(--wms-color-text);
  line-height: 1.7;
  background-color: var(--wms-color-bg-outer);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   shell / band（中央固定帯）
   -------------------------------------------------------------------------- */

.wms-shell {
  position: relative;
  min-height: 100vh;
  background-color: var(--wms-color-bg-outer);
}

.wms-shell__band {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wms-layout-band-max);
  margin: 0 auto;
  overflow-x: hidden;
  background-color: var(--wms-color-bg);
  color: var(--wms-color-text);
}

/* PCサイド：SPでは非表示 */
.wms-shell__logo,
.wms-shell__nav {
  display: none;
}

@media (min-width: 441px) {
  .wms-shell {
    background-color: var(--wms-color-bg-outer);
    background-image: var(--wms-bg-outer-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
  }

  .wms-shell__band {
    box-shadow: 0 0 32px rgba(0, 0, 0, 0.35);
  }
}

/* 左中央ロゴ / 右中央メニュー（帯端から固定距離・画面幅に依存しない） */
@media (min-width: 1200px) {
  .wms-shell__logo {
    position: fixed;
    top: 30%;
    left: calc(50% - (var(--wms-layout-band-max) / 2) - var(--wms-shell-side-gap));
    z-index: 50;
    display: block;
    transform: translate(-100%, -50%);
    line-height: 0;
  }

  .wms-shell__logo img {
    display: block;
    width: 260px;
    height: auto;
    object-fit: contain;
  }

  .wms-shell__nav {
    position: fixed;
    top: 50%;
    left: calc(50% + (var(--wms-layout-band-max) / 2) + var(--wms-shell-side-gap));
    right: auto;
    width: fit-content;
    z-index: 50;
    display: block;
    transform: translateY(-50%);
  }

  .wms-shell__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    text-orientation: mixed;
  }
  .wms-shell__menu li {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1rem 2rem 1rem 1.2rem;
    width: 100%;
    box-sizing: border-box;
  }

  /* 右端：下向き＞（border 図形） */
  .wms-shell__menu li::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.6rem;
    width: 7px;
    height: 7px;
    box-sizing: border-box;
    border-right: 1.5px solid var(--wms-color-main);
    border-bottom: 1.5px solid var(--wms-color-main);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
  }
  .wms-shell__menu-link {
    display: inline-block;
    font-family: var(--wms-font-main);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    width: 100%;
    line-height: 1.4;
    color: var(--wms-color-main);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
  }

  .wms-shell__menu-link:hover {
    opacity: 0.75;
  }

  .wms-shell__menu-link--cta {
    padding: 0.65em 0.35em;
    color: var(--wms-color-bg-second);
    background-color: var(--wms-color-second);
    border-radius: 999px;
  }

  .wms-shell__menu-link--cta:hover {
    opacity: 0.9;
  }
}

/* --------------------------------------------------------------------------
   SPハンバーガーメニュー（menu.html）
   左ロゴ / 右ハンバーガー、開いたメニューは全画面・上から下へ
   -------------------------------------------------------------------------- */

.wms-sp-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wms-layout-band-max);
  height: var(--wms-sp-header-height);
  padding: 0 12px;
  box-sizing: border-box;
  transform: translateX(-50%);
  background-color: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* 開いている間は固定ヘッダーを隠し、menu.html 側のヘッダーのみ表示（二重防止） */
html.is-sp-menu-open .wms-sp-header {
  visibility: hidden;
  pointer-events: none;
}

.wms-sp-header__logo {
  display: block;
  width: 65%;
  line-height: 0;
  box-sizing: border-box;
}

.wms-sp-header__logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wms-sp-menu-btn {
  position: relative;
  z-index: 81;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background-color: transparent;
  cursor: pointer;
}

.wms-sp-menu-btn__bar {
  display: block;
  width: 30px;
  height: 1px;
  background-color: var(--wms-color-main);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.wms-sp-menu-btn.is-open .wms-sp-menu-btn__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.wms-sp-menu-btn.is-open .wms-sp-menu-btn__bar:nth-child(2) {
  opacity: 0;
}

.wms-sp-menu-btn.is-open .wms-sp-menu-btn__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.wms-sp-menu-mount {
  position: relative;
  z-index: 70;
}

.wms-sp-menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  visibility: hidden;
  pointer-events: none;
}

.wms-sp-menu.is-open {
  z-index: 90;
  visibility: visible;
  pointer-events: auto;
}

.wms-sp-menu__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wms-sp-menu.is-open .wms-sp-menu__backdrop {
  opacity: 1;
}

.wms-sp-menu__panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: 100%;
  background-image: url("img/sp-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--wms-color-main);
  box-shadow: none;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
  overflow-y: auto;
}

.wms-sp-menu.is-open .wms-sp-menu__panel {
  transform: translateY(0);
}

.wms-sp-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.wms-sp-menu__logo {
  display: block;
  line-height: 0;
  width: 65%;
}

.wms-sp-menu__logo img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wms-sp-menu__close {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.wms-sp-menu__close-icon,
.wms-sp-menu__close-icon::before,
.wms-sp-menu__close-icon::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 1px;
  background-color: var(--wms-color-main);
}

.wms-sp-menu__close-icon {
  background-color: transparent;
  transform: translate(-50%, -50%);
}

.wms-sp-menu__close-icon::before,
.wms-sp-menu__close-icon::after {
  content: "";
}

.wms-sp-menu__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.wms-sp-menu__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.wms-sp-menu__list {
  padding: 0;
  margin: 0 auto;
  width: 90%;
  list-style: none;
}
.wms-sp-menu__nav{
  padding-top: 2rem;
}
.wms-sp-menu__list > li {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.wms-sp-menu__list > li:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}
.wms-sp-menu__list > li:not(.wms-sp-menu__cols)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border-right: 1.5px solid var(--wms-color-main);
  border-bottom: 1.5px solid var(--wms-color-main);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.wms-sp-menu__cols {
  border-bottom: none;
  padding: 0;
}

.wms-sp-menu__cols-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wms-sp-menu__cols-list li {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.wms-sp-menu__cols-list li:nth-child(2n) {
  border-right: none;
}

.wms-sp-menu__cols-list li::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 7px;
  height: 7px;
  box-sizing: border-box;
  border-right: 1.5px solid var(--wms-color-main);
  border-bottom: 1.5px solid var(--wms-color-main);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.wms-sp-menu__cols-list .wms-sp-menu__link {
  font-size: 0.875rem;
}

.wms-sp-menu__link {
  display: block;
  padding: 1rem 2rem 1rem 1.2rem;
  font-family: var(--wms-font-main);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--wms-color-main);
  text-decoration: none;
}

.wms-sp-menu__link--cta {
  display: block;
  padding: 0;
  margin: 0;
  margin-top:3rem;
  text-align: center;
  color: var(--wms-color-bg-second);
  background: none;
  border-radius: 0;
}

.wms-sp-menu__link--cta:not(.wms-bar-cta) {
  line-height: 0;
}

.wms-sp-menu__link--cta.wms-bar-cta {
  position: relative;
  line-height: normal;
  text-align: left;
  color: var(--wms-color-main);
  overflow: visible;
}

.wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__lead {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  color: #0044B8;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
}

.wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__rule {
  display: none;
}

.wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__action {
  justify-content: center;
  width: 100%;
  text-align: center;
}

.wms-sp-menu__link--cta > img {
  display: block;
  width: 100%;
  height: auto;
}

.wms-sp-menu__list li:has(.wms-sp-menu__link--cta)::after {
  content: none;
}

.wms-sp-menu__list li:has(.wms-sp-menu__link--cta) {
  border-bottom: none;
}

/* menu.html 単体表示 */
.wms-menu-page {
  margin: 0;
  min-height: 100vh;
  background-color: var(--wms-color-bg-second);
}

.wms-menu-page .wms-sp-menu {
  visibility: visible;
  pointer-events: auto;
}

.wms-menu-page .wms-sp-menu__backdrop {
  display: none;
}

.wms-menu-page .wms-sp-menu__panel {
  position: relative;
  width: 100%;
  max-width: var(--wms-layout-band-max);
  margin-inline: auto;
  transform: none;
  box-shadow: none;
}

@media (min-width: 1200px) {
  .wms-sp-header,
  .wms-sp-menu-mount {
    display: none !important;
  }
}

/* SPヘッダー分だけ帯を下げ、FVが隠れないようにする */
@media (max-width: 1199px) {
  html {
    scroll-padding-top: var(--wms-sp-header-height);
  }

  .wms-shell__band {
    padding-top: var(--wms-sp-header-height);
  }
}

/* --------------------------------------------------------------------------
   bar-cta（FV / 追従CTA 共通）
   -------------------------------------------------------------------------- */

.wms-bar-cta {
  container-type: inline-size;
  container-name: bar-cta;
  display: grid;
  grid-template-columns: 0.7fr 1fr;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  color: var(--wms-color-main);
  text-decoration: none;
  background: var(--wms-gradient-brand);
}

.wms-bar-cta__media {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.wms-bar-cta__img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: cover;
}

.wms-bar-cta__body {
  display: grid;
  grid-template-columns: max-content;
  justify-content: start;
  justify-items: stretch;
  flex: 1;
  align-content: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
  container-name: bar-cta-body;
}

.wms-bar-cta__lead {
  font-size: clamp(0.6rem, 6.5cqw, 0.78rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.wms-bar-cta__lead-accent {
  color: #ff8d1b;
}

.wms-bar-cta__rule {
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.35);
}

.wms-bar-cta__action {
  font-size: clamp(0.68rem, 8.9cqw, 1.3rem);
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.2cqw, 0.5rem);
  letter-spacing: 0.02em;
  text-align: left;
  white-space: nowrap;
}

.wms-bar-cta__action img {
  flex-shrink: 0;
  width: clamp(1rem, 4.4cqw, 1.2rem);
  height: auto;
}

/* ハンバーガーメニュー内CTA：iPad区間は帯幅に合わせてテキスト列幅基準で可変 */
@media (min-width: 441px) and (max-width: 1199px) {
  .wms-sp-menu__link--cta.wms-bar-cta {
    width: 100%;
    max-width: var(--wms-layout-band-max);
    margin-inline: auto;
  }

  .wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__lead {
    font-size: clamp(0.45rem, 5.8cqw, 0.8rem);
    letter-spacing: 0;
  }

  .wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__action {
    font-size: clamp(0.55rem, 8.5cqw, 1.2rem);
    letter-spacing: 0;
  }

  .wms-sp-menu__link--cta.wms-bar-cta .wms-bar-cta__action img {
    width: clamp(0.7rem, 4.2cqw, 1rem);
  }
}

/* --------------------------------------------------------------------------
   追従CTA（FV通過後・PC/SP共通）
   -------------------------------------------------------------------------- */

.wms-sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 65;
  width: 100%;
  max-width: var(--wms-layout-band-max);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  transform: translateX(-50%) translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s ease, visibility 0.3s ease;
}

.wms-sticky-cta.is-visible {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.wms-sticky-cta .wms-fv__cta {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  transform: none;
  margin-inline: auto;
  margin-bottom: 0;
}

html.is-sp-menu-open .wms-sticky-cta.is-visible {
  visibility: hidden;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   __inner 横余白（全セクション共通）
   -------------------------------------------------------------------------- */

[class$="__inner"] {
  width: 100%;
  max-width: var(--wms-layout-max-width);
  margin-inline: auto;
  padding-inline: var(--wms-layout-section-padding-inline);
}

/* --------------------------------------------------------------------------
   section-heading
   日本語見出しサイズは :root トークン
   英字ラベルは各セクション側の ::after（style.css）で個別指定
   -------------------------------------------------------------------------- */

.wms-section-heading {
  position: relative;
  text-align: center;
}

.wms-section-heading--left {
  text-align: left;
}

.wms-section-heading--right {
  text-align: right;
}

.wms-section-heading > * {
  position: relative;
  z-index: 1;
}

.wms-section-heading__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--wms-font-main);
  font-size: var(--wms-font-size-section-heading-title);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--wms-color-main);
}

.wms-section-heading__title-sub {
  font-size: var(--wms-font-size-section-heading-title-sub);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--wms-color-main);
}

.wms-section-heading__title-small {
  font-size: var(--wms-font-size-section-heading-title-small);
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--wms-color-main);
}

.wms-section-heading__title-accent {
  font-size: var(--wms-font-size-section-heading-accent);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--wms-color-main-accent);
}

/* --------------------------------------------------------------------------
   button
   -------------------------------------------------------------------------- */

.wms-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 32px;
  font-family: var(--wms-font-main);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--wms-color-bg-second);
  background-color: var(--wms-color-second);
  border: 2px solid var(--wms-color-second);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.wms-button:hover {
  opacity: 0.85;
}

.wms-button--outline {
  color: var(--wms-color-main);
  background-color: transparent;
  border-color: var(--wms-color-main);
}

.wms-button--accent {
  color: var(--wms-color-bg-second);
  background-color: var(--wms-color-third);
  border-color: var(--wms-color-third);
}

.wms-button--block {
  display: flex;
  width: 100%;
}

.wms-button__arrow {
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Color / font utilities
   -------------------------------------------------------------------------- */

.wms-color-main { color: var(--wms-color-main); }
.wms-color-second { color: var(--wms-color-second); }
.wms-color-third { color: var(--wms-color-third); }
.wms-color-fourth { color: var(--wms-color-fourth); }
.wms-color-accent,
.wms-accent { color: var(--wms-color-accent) !important;font-weight: 700; }
.wms-bg-main { background-color: var(--wms-color-bg); }
.wms-bg-second { background-color: var(--wms-color-bg-second); }
.wms-bg-accent { background-color: var(--wms-color-accent); }
.wms-font-main { font-family: var(--wms-font-main); }
.wms-font-heading { font-family: var(--wms-font-heading); }
.wms-font-outfit {
  font-family: var(--wms-font-outfit);
  font-optical-sizing: auto;
  font-style: normal;
}
.wms-font-oswald {
  font-family: var(--wms-font-oswald);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}
