@charset "utf-8";
/* ===================================
   レスポンシブ表示制御クラス
   PC: 1025px以上
   Tablet: 751px～1024px  
   SP: 750px以下
=================================== */

/* PC表示用 (1025px以上で表示) */
.show-pc {
  display: block !important;
}

.show-pc-inline {
  display: inline !important;
}

.show-pc-inline-block {
  display: inline-block !important;
}

.show-pc-flex {
  display: flex !important;
}

.show-pc-inline-flex {
  display: inline-flex !important;
}

.show-pc-grid {
  display: grid !important;
}

.show-pc-table {
  display: table !important;
}

.show-pc-table-row {
  display: table-row !important;
}

.show-pc-table-cell {
  display: table-cell !important;
}

/* Tablet表示用 (751px～1024pxで表示) */
.show-tab,
.show-tab-inline,
.show-tab-inline-block,
.show-tab-flex,
.show-tab-inline-flex,
.show-tab-grid,
.show-tab-table,
.show-tab-table-row,
.show-tab-table-cell {
  display: none !important;
}

/* SP表示用 (750px以下で表示) */
.show-sp,
.show-sp-inline,
.show-sp-inline-block,
.show-sp-flex,
.show-sp-inline-flex,
.show-sp-grid,
.show-sp-table,
.show-sp-table-row,
.show-sp-table-cell {
  display: none !important;
}

/* 非表示クラス */
.hide-pc {
  display: none !important;
}

.hide-tab {
  display: block !important;
  /* デフォルトはblock */
}

.hide-sp {
  display: block !important;
  /* デフォルトはblock */
}

/* ===================================
   WordPressの管理バー（Admin Bar）を削除
=================================== */

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

body {
  padding-top: 0 !important;
}


/* ===================================
   Tablet範囲 (751px～1024px)
=================================== */
@media (max-width: 1024px) {

  /* PC用を非表示 */
  .show-pc,
  .show-pc-inline,
  .show-pc-inline-block,
  .show-pc-flex,
  .show-pc-inline-flex,
  .show-pc-grid,
  .show-pc-table,
  .show-pc-table-row,
  .show-pc-table-cell {
    display: none !important;
  }

  /* Tablet用を表示 */
  .show-tab {
    display: block !important;
  }

  .show-tab-inline {
    display: inline !important;
  }

  .show-tab-inline-block {
    display: inline-block !important;
  }

  .show-tab-flex {
    display: flex !important;
  }

  .show-tab-inline-flex {
    display: inline-flex !important;
  }

  .show-tab-grid {
    display: grid !important;
  }

  .show-tab-table {
    display: table !important;
  }

  .show-tab-table-row {
    display: table-row !important;
  }

  .show-tab-table-cell {
    display: table-cell !important;
  }

  /* 非表示制御 */
  .hide-pc {
    display: initial !important;
    /* 元のdisplay値を復元 */
  }

  .hide-tab {
    display: none !important;
  }
}

/* ===================================
   SP範囲 (750px以下)
=================================== */
@media (max-width: 750px) {

  /* Tablet用を非表示 */
  .show-tab,
  .show-tab-inline,
  .show-tab-inline-block,
  .show-tab-flex,
  .show-tab-inline-flex,
  .show-tab-grid,
  .show-tab-table,
  .show-tab-table-row,
  .show-tab-table-cell {
    display: none !important;
  }

  /* SP用を表示 */
  .show-sp {
    display: block !important;
  }

  .show-sp-inline {
    display: inline !important;
  }

  .show-sp-inline-block {
    display: inline-block !important;
  }

  .show-sp-flex {
    display: flex !important;
  }

  .show-sp-inline-flex {
    display: inline-flex !important;
  }

  .show-sp-grid {
    display: grid !important;
  }

  .show-sp-table {
    display: table !important;
  }

  .show-sp-table-row {
    display: table-row !important;
  }

  .show-sp-table-cell {
    display: table-cell !important;
  }

  /* 非表示制御 */
  .hide-sp {
    display: none !important;
  }
}

/* ---------------------------
    基本設定
----------------------------- */
/* html {
  font-size: 0.694444vw !important;
} */
html {
  width: 100%;
  font-size: 10px !important;
  -webkit-text-size-adjust: 100%;
  /* iOS対策 */
  -webkit-tap-highlight-color: transparent;
  /* タップ時のハイライト消去 */
  background-color: var(--color-bg);
}

@media (max-width: 750px) {
  html {
    font-size: 2.5641025641vw !important;
  }
}

/* ===================================
    CSS変数（カスタムプロパティ）
=================================== */
:root {
  /* カラー */
  /* --color-main: #43658F; */
  --color-light: #FFF;
  --color-dark: #0C1B2D;
  --color-base: #0C1B2D;
  --color-blue: #002F68;
  --color-text: #0C1B2D;
  --color-bg: #F8F4F1;
  --color-border: #002F68;
  /* --color-error: #d32f2f;
  --color-success: #388e3c;
  --color-warning: #f57c00; */

  /* フォント */
  --font-main: "EB Garamond", sans-serif;
  --font-strong: "Shippori Mincho B1", serif;

  /* サイズ */
  --container-width: 120.3rem;
  --container-padding: 1.5rem;
  --header-height-pc: 21.9rem;
  --header-height-sp: 16rem;

  /* 余白 */
  --spacing-xs: 0.8rem;
  --spacing-sm: 1.6rem;
  --spacing-md: 2.4rem;
  --spacing-lg: 3.2rem;
  --spacing-xl: 4.8rem;
  --spacing-xxl: 6.4rem;

  /* z-index */
  --z-background: -999;
  --z-background-section: -999;
  --z-graphic-behind: -1;
  --z-content-base: 1;
  --z-content: 2;
  --z-spotlight: 10;
  --z-sticky-content: 100;
  --z-navigation: 999;
  --z-back-button: 9999;
  --z-header: 99999;
  --z-cursor: 999999;

  /* トランジション */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===================================
    body設定
=================================== */
body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.75;
  letter-spacing: 0.07rem;
  width: 100%;
  overflow-x: hidden;
  word-break: break-word;
  /* break-allより自然な改行 */
  -webkit-font-smoothing: antialiased;
  /* フォント滑らか表示 */
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
  /* カーニング */
}

.font-strong {
  font-family: var(--font-strong);
}

@media screen and (max-width: 750px) {
  body {
    font-size: 1.4rem;
    line-height: 1.65;
    letter-spacing: 0.07rem;
  }
}

/* ===================================
    ユーティリティクラス
=================================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-strong {
  font-family: var(--font-strong);
}

.main {
  margin-top: var(--header-height-pc);
  position: relative;
  width: 100%;
  z-index: 2;
}

@media screen and (max-width: 750px) {
  .main {
    margin-top: var(--header-height-sp);
  }
}

/* ---------------------------
    header
----------------------------- */
.header {
  height: var(--header-height-pc);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  pointer-events: none;
  transition: 0.3s ease-in-out;
  color: var(--color-dark);
  background-color: var(--color-bg);
}

.header.header__hidden {
  transform: translateY(-100%);
}

.header__inner-sp {
  display: none;
}

.hamburger__nav {
  display: none;
}

.header__inner-pc {
  position: relative;
  z-index: 999;
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  pointer-events: all;
  border-bottom: 1px solid var(--color-border);
}

.header__inner-top {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  gap: clamp(1.5rem, 2vw, 4.8rem);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.header__tagline {
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.42;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  margin: 2.7rem auto 1.3rem;
  color: #002F68;
}

/* ---------------------------
    翻訳
----------------------------- */

/* ===================================
   Language Selector - PC (Default)
=================================== */
.language {
  position: relative;
  height: auto;
}

.language__title {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  height: 2.7rem;
  color: var(--color-base);
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.33;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  border-bottom: 0.1rem solid var(--color-base);
  margin-top: 1.3rem;
  margin-bottom: 2.1rem;
  padding: 0 1.8rem 0.7rem 1.8rem;
}

.language__title:hover {
  opacity: 0.9;
}

/* Dropdown List - PC */
.language__list {
  display: none;
  position: absolute;
  top: calc(100% - 2.1rem);
  left: 0;
  width: 100%;
  background-color: var(--color-base);
  list-style: none;
  z-index: 1000;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

/* Active state for dropdown */
.language__list.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.language__list-item {
  position: relative;
  color: var(--color-bg);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.33;
}

.language__list-item a {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  color: var(--color-bg);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.language__list-item a:hover {
  color: var(--color-base);
  background-color: var(--color-bg);
}

.language__list-item:last-child::after {
  display: none;
}

.language__list-item img {
  display: none;
}

/* ===================================
   Language Selector - Mobile (750px以下)
=================================== */
@media screen and (max-width: 750px) {
  .language {
    margin: auto;
  }

  /* Hide dropdown trigger on mobile */
  .language__title {
    display: none !important;
  }



  .language__list-item {
    margin: 0;
    padding: 0;
    position: relative;
    color: var(--color-light);
  }

  .language__list-item a {
    padding: 0 !important;
    color: var(--color-base);
    font-size: 1.5rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
    padding-bottom: 0.5rem;
  }

  .language__list-item a:hover {
    opacity: 0.7;
    background-color: transparent !important;
  }


  .hamburger__nav .language__list-item.active a {
    border-bottom: 2px solid var(--color-light);
    opacity: 1;
  }
}



.header__contact {
  background-color: var(--color-base);
  padding: 1.4rem clamp(2rem, 4.6rem, 7.7rem);
  color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: fit-content;
  transition: 0.3s ease;
}

.header__contact:hover {
  opacity: 0.5;
}

.header__nav {
  max-width: 88.2rem;
  padding: 0 1rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.header__list {
  max-width: 25.5rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  transition: transform 0.3s, opacity 0.3s ease-in-out;
  margin: 1.6rem 0 2.2rem;
  height: auto;
  max-width: 6.8rem;
  width: 100%;
  object-fit: cover;
}

.header__logo:hover {
  opacity: 0.5;
}


.header__listIn {
  transition: 0.3s ease;
  font-size: 1.5rem;
}

.header__listIn:hover {
  opacity: 0.5;
}

.header__menu {
  display: none;
}

@media screen and (max-width: 750px) {
  .header {
    height: var(--header-height-sp);
  }

  .header__inner-pc {
    display: none;
  }

  .header__inner-sp {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
  }

  .header__menu {
    pointer-events: all;
    cursor: pointer;
    display: block;
    background-color: var(--color-base);
    padding: 2.1rem 1.8rem;
    color: var(--color-light);
    position: absolute;
    top: 0;
    right: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header__logo {
    max-width: 5.65rem;
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 2.7rem auto 4.16rem;
  }
}

/* ===================================
   Hamburger Navigation
=================================== */
@media screen and (max-width: 750px) {
  .hamburger__nav {
    pointer-events: all;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100dvh;
    align-items: center;
    flex-direction: column;
    background-color: var(--color-base);
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  .hamburger__nav.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .hamburger__inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-light);
  }

  .hamburger__nav__wrapper {
    display: flex;
    flex-direction: column;
    margin: auto;
    align-items: center;
    width: 100%;
    max-width: 100%;
    max-width: 26.2rem;
  }

  .hamburger__nav__links {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin: 6rem auto 4rem;
    color: var(--color-light);
    list-style: none;
  }

  .hamburger__nav__link {
    align-items: center;
    text-align: center;
    transition: 0.3s ease;
  }

  .hamburger__nav__link:hover {
    opacity: 0.5;
  }

  .hamburger__contact {
    max-width: 26.2rem;
    width: 100%;
    background-color: var(--color-light);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.53;
    padding: 2.05rem 4.6rem;
    margin: 0 auto 7.3rem;
    box-sizing: border-box;
    text-align: center;
  }

  /* ===================================
    Language Selector in Hamburger Menu
  =================================== */
  .hamburger__nav__wrapper .language {
    width: 100%;
    margin: 4rem auto 0;
  }

  .hamburger__nav__wrapper .language__list {
    display: flex !important;
    flex-direction: row;
    gap: 3rem;
    position: static !important;
    background-color: transparent !important;
    list-style: none;
    margin: 0 auto 6rem;
    padding: 0;
    justify-content: center;
    width: 100%;
  }

  .hamburger__nav__wrapper .language__list-item {
    margin: 0;
    padding: 0;
    position: relative;
  }

  .hamburger__nav__wrapper .language__list-item a {
    padding: 0 1.8rem 0.7rem !important;
    color: var(--color-light);
    font-size: 1.5rem;
    text-decoration: none;
    display: block;
  }

  .hamburger__nav__wrapper .language__list-item.active a {
    border-bottom: 1px solid var(--color-light);
    color: var(--color-light);
  }
}

/* ---------------------------
    footer
----------------------------- */
.footer {
  position: relative;
  width: 100%;
  pointer-events: all;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  color: var(--color-base);
  padding: 4.8rem 0 0;
  background-color: var(--color-bg);
  margin: auto;
  z-index: 2;
}

.footer__inner-pc {
  display: flex;
  flex-direction: row;
  pointer-events: all;
  align-items: center;
  position: relative;
  padding: 0 1rem;
}

.footer__inner-sp {
  display: none;
}


.footer__contact {
  max-width: 19.7rem;
  width: 100%;
  background-color: var(--color-dark);
  padding: 1.4rem 4.6rem;
  color: var(--color-light);
  flex-shrink: 1;
}

.footer__nav {
  max-width: 88.6rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: 0 auto;
  align-items: center;
}

.footer__list {
  max-width: 28.1rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer__list:first-child {
  justify-self: start;
}

.footer__list.footer__list-r {
  max-width: 33rem;
  justify-self: end;
}

.footer__logo img {
  height: auto;
  max-width: 6.8rem;
  width: 100%;
  object-fit: cover;
  justify-self: center;
}

.footer__logo {
  margin: 1.6rem 0 2.2rem;
  grid-column: 2;
  transition: 0.3s ease;
}

.footer__logo:hover {
  opacity: 0.5;
}


.footer__listIn a {
  transition: 0.3s ease;
  font-size: 1.5rem;
}

.footer__listIn a:hover {
  opacity: 0.7;
}

.footer__copyright {
  padding: 1.4rem 1.43rem;
  text-align: end;
  opacity: 0.5;
}

@media screen and (max-width: 750px) {
  .footer {
    margin: 0 auto;
    padding: 0;
  }

  .footer__pc {
    display: none;
  }

  .footer__inner-sp {
    display: flex;
    flex-direction: column;
    padding: 5.9rem 3rem 2rem;
  }

  .footer__logo {
    margin: 0 auto 7rem;
    position: relative;
  }

  .footer__contact {
    max-width: 26.2rem;
    width: 100%;
    margin: 3rem auto 6rem;
    padding: 2.05rem 4.6rem;
    text-align: center;
  }


  .footer__list {
    max-width: none;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }

  .footer__list-top {
    margin-bottom: 3rem;
  }

  .footer__copyright {
    margin: 0 auto;
  }
}

/* ===================================
    background-layer
=================================== */
.background-layer {
  aspect-ratio: 339/1024;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-background);
  pointer-events: none;
  background-image: url(../images/pc/bg/bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media screen and (max-width: 750px) {
  .background-layer {
    aspect-ratio: 65/682;
    background-image: url(../images/sp/bg/bg.webp);
  }
}


/* ===================================
   Custom Cursor Styles
=================================== */
.cursor-spotlight {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 20rem;
  height: 20rem;
  border-radius: 100%;
  background-color: #78A0CE;
  filter: blur(3rem);
  transition: all 3.5ms ease-out;
  position: fixed;
  pointer-events: none;
  left: 0;
  top: 0;
  transform: translate(calc(-50% + 15px), -50%);
  z-index: var(--z-cursor);
  mix-blend-mode: hard-light;
}

.cursor-spotlight.active {
  opacity: 1;
}

@media (max-width: 750px) {
  .cursor-spotlight {
    display: none;
  }
}


.main {
  position: relative;
  z-index: var(--z-content);
}

.footer {
  position: relative;
  z-index: var(--z-content);
}

.header {
  position: fixed;
  z-index: var(--z-header);
}

/* ===================================
   言語別フォント設定
=================================== */

/* 中国語 - 全体に適用 */
:lang(zh) {
  font-family: var(--font-strong);
}
/* 中国語（簡体字・繁体字両方対応） */
:lang(zh) .fv__title,
:lang(zh) .fv__title-l,
:lang(zh) .fv__title-sub,
:lang(zh) .front-about__heading,
:lang(zh) .front-business__heading,
:lang(zh) .front-record__heading ,
:lang(zh) .front-company__heading,
:lang(zh) .front-recruit__heading,
:lang(zh) .read-more ,
:lang(zh) .front-tagline,
:lang(zh) .header,
:lang(zh) .footer{
  font-family: var(--font-strong);
}

/* 英語 - 全体に適用 */
:lang(en) {
  font-family: var(--font-main);
}

/* 英語 - 個別に上書きされている要素も強制適用 */
:lang(en) .fv__title,
:lang(en) .fv__title-l,
:lang(en) .fv__title-sub,
:lang(en) .front-about__heading,
:lang(en) .front-about__title,
:lang(en) .front-about__text,
:lang(en) .front-business__heading,
:lang(en) .front-business__title,
:lang(en) .front-business__text,
:lang(en) .front-record__heading,
:lang(en) .front-record__title,
:lang(en) .front-record__text,
:lang(en) .front-news__title,
:lang(en) .front-company__heading,
:lang(en) .front-company__text,
:lang(en) .front-recruit__heading,
:lang(en) .front-recruit__text,
:lang(en) .read-more,
:lang(en) .read-more-cercle {
  font-family: var(--font-main);
}