/* ========================================
   Crossfor RECRUITMENT - Common Styles
   Design width: 1200px
======================================== */

:root {
  --color-navy: #222363;
  --color-navy-deep: #1a1b4b;
  --color-purple: #6b47a1;
  --color-purple-dark: #5a3a8a;
  --color-red: #8A0034;
  --color-text: #333333;
  --color-text-light: #555555;
  --color-border: #d0d0d0;
  --color-bg-lavender: #e8eaf4;
  --color-bg-soft: #f3f5fb;
  --color-bg-pale: #f7f8fc;
  --color-white: #ffffff;
  --color-black: #111111;
  --font-sans: "source-han-sans-japanese", "Source Han Sans Japanese", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --font-serif: "source-han-serif-jp-subset", "Source Han Serif JP", "Hiragino Mincho ProN", serif;
  --font-en: "cormorant-infant", "Cormorant Infant", "Times New Roman", serif;
  --header-height: 100px;
  --entry-btn-w: 150px;
  --entry-btn-h: 100px;
  --site-width: 1200px;
  --content-width: 1000px;
  --side-gutter: 100px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s var(--ease), color 0.3s var(--ease);
}

a:hover {
  opacity: 0.75;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.inner,
.inner-wide {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 var(--side-gutter);
}

/* ---------- Typography ---------- */
.en-serif {
  font-family: var(--font-en);
  font-weight: 400;
}

.jp-serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

.section-en {
  font-family: var(--font-en);
  font-size: 45px;
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
}

.section-jp {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.08em;
}

.icon-mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url("../images/common/crossfor-logo-icon.png") center / contain no-repeat;
  vertical-align: middle;
}

.kira {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: url("../images/common/kira.png") center / contain no-repeat;
  vertical-align: middle;
}

img.kira {
  background: none;
  object-fit: contain;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 32px;
  pointer-events: none;
}

.site-header > * {
  pointer-events: auto;
}

.site-header.is-solid {
  position: fixed;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 8px rgba(34, 35, 99, 0.08);
  backdrop-filter: blur(8px);
}

.site-header--overlay .header-nav a {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-header--overlay .header-logo .logo-sub {
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.site-header--overlay.is-solid .header-nav a,
.site-header--overlay.is-solid .header-logo .logo-sub {
  color: var(--color-navy);
  text-shadow: none;
}

@media (max-width: 960px) {
  .site-header--overlay .header-logo .logo-sub {
    color: var(--color-navy);
    text-shadow: none;
  }
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.header-logo img {
  height: 43px;
  width: auto;
}

.header-logo .logo-sub {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  margin-top: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-right: calc(var(--entry-btn-w) + 72px);
}

.header-nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.06em;
  position: relative;
  padding: 4px 0;
}

.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-purple);
  transition: width 0.3s var(--ease);
}

.header-nav a:hover::after,
.header-nav a.is-current::after {
  width: 100%;
}

.header-nav a:hover {
  opacity: 1;
}

.header-actions {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: stretch;
  height: var(--header-height);
}

.btn-entry-fixed {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: var(--entry-btn-w);
  height: 100%;
  padding: 0;
  background: var(--color-red);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.btn-entry-fixed img {
  width: 36px;
  height: auto;
}

.btn-entry-fixed:hover {
  opacity: 0.9;
}

.btn-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 56px;
  height: 100%;
  padding: 0;
  border: none;
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-navy);
  color: #fff;
}

.btn-menu .hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.btn-menu .hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.btn-menu .menu-label {
  font-size: 9px;
  letter-spacing: 0.1em;
}

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

.btn-menu.is-open .hamburger span:nth-child(2) {
  opacity: 0;
}

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

/* ---------- Global Menu (SP) ---------- */
.global-menu {
  position: fixed;
  inset: 0;
  z-index: 180;
  background: #fff;
  padding: 82px 22px 0;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}

.global-menu.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.global-menu-section {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 22px;
  margin-bottom: 22px;
}

.global-menu-section__title {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.global-menu-section__sub {
  grid-column: 2;
  grid-row: 1;
  font-size: 15px;
  color: var(--color-text);
  margin: 0;
}

.global-menu-section__line {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 1px;
  margin: 5px 0 12px;
  background-image: radial-gradient(circle, var(--color-purple) 1.2px, transparent 1.2px);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: center;
}

.global-menu-section__links {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.global-menu-section__links a {
  font-size: 13px;
  color: #666;
  padding-left: 12px;
  position: relative;
}

.global-menu-section__links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #999;
}

.global-menu-section--single .global-menu-section__links {
  grid-template-columns: 1fr;
}

.global-menu-sns {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 12px -22px 0;
  padding: 22px;
  background: var(--color-bg-lavender);
}

.global-menu-sns img {
  width: 28px;
  height: 28px;
}

/* ---------- Page Hero ---------- */
.page-hero {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #f5f6fa;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/common/tl-bg.jpg") right center / cover no-repeat;
}

.page-hero__photo {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: min(100%, 900px);
  object-fit: cover;
  object-position: left center;
  z-index: 1;
}

.page-hero__title {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-en);
  font-size: 50px;
  font-weight: 400;
  color: #141a8a;
  letter-spacing: 0.02em;
  z-index: 2;
  white-space: nowrap;
}

.page-subnav {
  text-align: center;
  padding: 70px var(--side-gutter) 0;
}

.page-subnav__title {
  font-family: var(--font-serif);
  font-size: 35px;
  font-weight: 500;
  color: #000;
  margin-bottom: 42px;
}

.page-subnav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 95px;
}

.page-subnav__list a {
  position: relative;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-text);
  padding-bottom: 20px;
  letter-spacing: 0.06em;
}

.page-subnav__list a br {
  display: none;
}

.page-subnav__list a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: #141a8a;
}

.page-subnav__list a:hover {
  opacity: 0.7;
}

/* ---------- ENTRY Section ---------- */
.entry-section {
  position: relative;
  padding: 55px var(--side-gutter) 50px;
  text-align: center;
  background: #ccd2ec url("../images/common/bg-entry.jpg") center / cover no-repeat;
  overflow: hidden;
}

.entry-section .icon-mark {
  margin-bottom: 12px;
}

.entry-section__en {
  font-family: var(--font-en);
  font-size: 45px;
  font-weight: 400;
  color: var(--color-navy);
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.entry-section__jp {
  font-family: var(--font-serif);
  font-size: 35px;
  font-weight: 500;
  color: var(--color-text);
  margin: 6px 0 28px;
  letter-spacing: 0.04em;
}

.entry-section__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 50px;
  background: #fff;
  border: 1px solid var(--color-purple);
  border-radius: 25px;
}

.entry-section__btn img {
  height: 38px;
  width: auto;
}

.entry-section__note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #fff;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 28px var(--side-gutter);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 43px;
  width: auto;
}

.footer-logo .logo-sub {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-navy);
  margin-top: 4px;
}

.footer-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.footer-nav__links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 60px;
  min-height: 60px;
  padding: 8px 24px;
  background: #d3d7eb;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.footer-links > a img {
  width: 15px;
  height: 15px;
}

.footer-sns {
  display: flex;
  gap: 24px;
  margin-left: 0;
}

.footer-sns img {
  width: 20px;
  height: 20px;
}

.footer-copy {
  background: #000;
  color: #fff;
  text-align: center;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 16px;
}

/* ---------- Shared section helpers ---------- */
.heading-with-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--color-navy);
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}

.heading-with-icons .icon-mark {
  flex-shrink: 0;
}

.dotted-line {
  height: 1px;
  background-image: radial-gradient(circle, #666 1px, transparent 1px);
  background-size: 4px 2px;
  background-repeat: repeat-x;
  margin: 8px 0 14px;
}

.tag-ribbon {
  --ribbon-notch: 28px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 35px;
  background: linear-gradient(90deg, #9678be 0%, #481c8b 100%);
  color: #fff;
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 0 calc(var(--ribbon-notch) + 8px) 0 10px;
  clip-path: polygon(0 0, calc(100% - var(--ribbon-notch)) 0, 100% 100%, 0 100%);
}

.tag-ribbon .kira {
  width: 30px;
  height: 30px;
  filter: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --side-gutter: 40px;
  }

  .header-nav {
    display: none;
  }

  .btn-menu {
    display: flex;
  }

  .header-actions {
    top: 10px;
    right: 10px;
    height: 48px;
    gap: 8px;
  }

  .btn-entry-fixed {
    width: 48px;
    height: 48px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    gap: 4px;
  }

  .btn-entry-fixed img {
    width: 24px;
    height: auto;
  }

  .btn-menu {
    width: 48px;
    height: 48px;
    gap: 4px;
  }

  .btn-menu .hamburger {
    width: 24px;
    gap: 4px;
  }

  .btn-menu .hamburger span {
    height: 2px;
  }

  .btn-menu .menu-label {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
  }

  .btn-menu.is-open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .btn-menu.is-open .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-header {
    height: 68px;
    padding: 0 12px 0 20px;
  }

  .global-menu {
    padding-top: 78px;
  }

  .header-logo img {
    height: 31px;
  }

  .header-logo .logo-sub {
    font-size: 10px;
    margin-top: 4px;
  }

  .page-hero {
    height: 120px;
    margin-top: 68px;
  }

  .page-hero__title {
    font-size: 32px;
    left: 55%;
  }

  .page-hero__photo {
    max-width: 75%;
  }

  .section-en {
    font-size: 40px;
  }

  .entry-section {
    padding: 70px var(--side-gutter);
  }

  .entry-section__en {
    font-size: 40px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 20px;
    padding: 28px var(--side-gutter);
  }

  .footer-nav__links {
    justify-content: center;
    gap: 16px 20px;
  }

  .footer-links {
    gap: 14px 20px;
  }
}

@media (max-width: 600px) {
  :root {
    --side-gutter: 20px;
  }

  .tag-ribbon .kira {
    width: 21px;
    height: 21px;
  }

  .page-subnav {
    padding: 28px 16px 14px;
  }

  .page-subnav__title {
    font-size: 28px;
    margin-bottom: 18px;
  }

  .page-subnav__list {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    align-items: end;
    column-gap: 28px;
    row-gap: 18px;
  }

  .page-subnav__list a {
    font-size: 16px;
    padding-bottom: 14px;
    text-align: center;
    line-height: 1.35;
  }

  .page-subnav__list a.page-subnav__link--wrap br {
    display: block;
  }

  .page-subnav__list a:nth-child(4) {
    grid-column: 1;
  }

  .page-subnav__list a::after {
    width: 40px;
    height: 3px;
  }

  .heading-with-icons {
    font-size: 18px;
    gap: 10px;
  }

  .section-en {
    font-size: 32px;
  }

  .entry-section {
    padding: 32px 20px 38px;
  }

  .entry-section__en {
    font-size: 32px;
  }

  .entry-section__jp {
    font-size: 24px;
    margin: 4px 0 22px;
  }

  .entry-section__btn {
    width: 210px;
    height: 35px;
    border-radius: 18px;
  }

  .entry-section__btn img {
    height: 26px;
  }

  .footer-nav {
    align-items: flex-start;
    gap: 20px;
    padding: 40px 40px 32px;
  }

  .footer-logo {
    align-self: center;
  }

  .footer-nav__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 30px;
    width: 100%;
  }

  .footer-nav__links a {
    line-height: 1.5;
  }

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    justify-items: start;
    column-gap: 20px;
    row-gap: 12px;
    padding: 18px 40px 16px;
  }

  .footer-links a {
    letter-spacing: 0;
    white-space: nowrap;
    font-size: 13px;
    gap: 6px;
  }

  .footer-links > a img {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
  }

  .footer-sns {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 4px;
  }

  .footer-sns img {
    width: 20px;
    height: 20px;
  }
}

/* body menu lock */
body.is-menu-open {
  overflow: hidden;
}

body.is-menu-open .site-header {
  position: fixed;
  z-index: 190;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.is-menu-open .header-logo {
  z-index: 1;
}
