/* =========================================================
   W FIVE  style.css  (ステップ2: 土台・ヘッダー・フッター)
   数値の出どころ: Wixライブサイトの実測値(site-info.md)
   ※ 「要確認」と書いた箇所は、Wix版と見比べて調整する
   ========================================================= */

/* ---------- フォント(自前配信・OFLライセンス) ---------- */
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/wix-madefor-text-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Wix Madefor Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/wix-madefor-text-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 200; font-display: swap;
  src: url("../fonts/barlow-latin-200-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }

/* ---------- 色・フォントの定義 ---------- */
:root {
  --black: #000000;
  --white: #ffffff;
  --grey-100: #f0f1f1;       /* 明るいグレー(黒背景上の文字、Our Team背景) */
  --blue: #4783c2;           /* 見出しのアクセント */
  --purple: #7a64ff;         /* メニューの現在ページ・ホバー */
  --orange: #ef6c2c;         /* フッターの法務リンク */
  --label: #c3c1c1;          /* フォームのラベル */
  --line: #3c3c3c;           /* フッターの区切り線など */
  --panel: #1e1e1e;          /* スマホのメニュー枠 */
  --input-line: rgba(240, 241, 241, 0.6);

  --font-text: "Wix Madefor Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-label: "Barlow", "Wix Madefor Text", system-ui, sans-serif;

  --gutter: 57px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--black);
  color: var(--grey-100);
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  padding: 12px 16px; background: var(--white); color: var(--black);
}
.skip-link:focus { left: 0; }

/* 画面外に隠す入力欄(ボット対策。人には見えない) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- セクションの色(ページ作成時に使う) ---------- */
.section { position: relative; }
.section--light { background: var(--white); color: var(--black); }
.section--dark  { background: var(--black); color: var(--grey-100); }
.section--grey  { background: var(--grey-100); color: var(--black); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 32px;
  border: 1.6px solid var(--grey-100); border-radius: 50px;
  font: 700 15px/1 var(--font-label); letter-spacing: 0.6px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.4s, border-color 0.4s, color 0.4s;
}
/* 黒ボタン(CONTACT US) */
.btn--dark { background: var(--black); color: var(--grey-100); }
/* ホバー時(Wix版の実測): 明るいグレーの背景に、黒い文字 */
.btn--dark:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--black); }
/* 明るいボタン(ENTER THE JAPANESE MARKET など。Homeで使用) */
/* ホバー時(Wix版の実測): 紫からピンクへのグラデーションに変わり、文字は黒のまま */
.btn--light { position: relative; overflow: hidden; isolation: isolate; background: var(--grey-100); color: var(--black); border: 0; }
.btn--light::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: linear-gradient(90deg, #7a64ff, #ff3682);
}
.btn--light:hover::before, .btn--light:focus-visible::before { opacity: 1; }
/* SUBSCRIBE */
.btn--subscribe {
  width: clamp(140px, 25vw, 177px); height: 43px; padding: 0;
  border-radius: 100px; background: var(--black); color: var(--grey-100);
  text-transform: none; line-height: 18px;
}
.btn--subscribe:hover { background: var(--grey-100); border-color: var(--grey-100); color: var(--black); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header { position: relative; z-index: 100; background: var(--white); color: var(--black); }

/* 固定ヘッダー(About・法務ページ): 下にスクロールすると透明になって消え、上にスクロールすると現れる */
.site-header--sticky { position: sticky; top: 0; transition: opacity 0.3s, visibility 0s; }
.site-header--sticky.is-hidden { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }

/* スマホ幅(1000px未満): 2段構成(ロゴ+メニューボタン / CONTACT US) 高さ約139px */
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  row-gap: 10px; padding: 12px 31px 14px;
}
.site-header__logo { grid-area: 1 / 1; display: block; width: clamp(160px, 44.8vw, 295px); line-height: 0; color: var(--black); text-decoration: none; }
.site-header__logo-img { width: 100%; height: auto; }
.logo-fallback { font: 700 28px/1 var(--font-label); letter-spacing: 0.04em; }
.menu-toggle { grid-area: 1 / 2; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; background: transparent; cursor: pointer; }
/* Wix版ではボタンの色が背景と同化して見えなかったため、黒にしている */
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after {
  display: block; width: 28px; height: 2px; background: var(--black); content: ""; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before { position: absolute; top: -8px; left: 0; }
.menu-toggle__bars::after  { position: absolute; top: 8px; left: 0; }
.site-header__cta { grid-area: 2 / 1 / 3 / 3; width: 100%; height: 40px; }
.site-nav { display: none; }

/* PC幅(1000px以上): 高さ83px。ロゴ左61px、ボタン右57px、メニュー項目の間隔48px */
@media (min-width: 1000px) {
  .site-header__inner { display: flex; justify-content: space-between; height: 83px; padding: 0 57px 0 61px; }
  .site-header__logo { width: 227px; }
  .menu-toggle { display: none; }
  .site-header__cta { width: auto; min-width: 217px; height: 48px; }
  .site-nav { display: block; position: absolute; left: 33.47%; top: 50%; transform: translateY(-50%); }
  .site-nav__list { display: flex; gap: 48px; margin: 0; padding: 0; list-style: none; }
  .site-nav__link { display: block; font: 400 16px/20px var(--font-text); color: var(--black); text-decoration: none; transition: color 0.2s; }
  .site-nav__link:hover, .site-nav__link[aria-current="page"] { color: var(--purple); }
}

/* ---------- 言語の切り替え(JA | EN)。Wix版にはない、日本語・英語の切り替えのための追加 ---------- */
.site-header__actions { display: contents; }   /* スマホ幅では、CONTACT US の枠をそのまま2段目に置くため、まとめない */
.lang-switch { display: inline-flex; align-items: center; font: 500 14px/1 var(--font-label); letter-spacing: 0.08em; }
.lang-switch__link { padding: 8px 10px; color: var(--black); text-decoration: none; opacity: 0.5; transition: opacity 0.2s, color 0.2s; }
.lang-switch__link + .lang-switch__link { border-left: 1px solid currentColor; }
.lang-switch__link[aria-current="true"] { opacity: 1; }
.lang-switch__link:hover { color: var(--purple); opacity: 1; }
.lang-switch--header { display: none; }
.lang-switch--menu { display: flex; justify-content: center; margin-top: 12px; }
.lang-switch--menu .lang-switch__link { color: var(--grey-100); }
@media (min-width: 1000px) {
  .site-header__actions { display: flex; align-items: center; gap: 24px; }
  .lang-switch--header { display: inline-flex; }
  .lang-switch--menu { display: none; }
}

/* ---------- スマホ用メニュー(全画面) ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 1000; overflow-y: auto; padding: 118px 20px 40px; background: var(--black); }
.mobile-menu[hidden] { display: none; }
@media (min-width: 1000px) { .mobile-menu { display: none !important; } }
.mobile-menu__close { position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mobile-menu__close::before, .mobile-menu__close::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 26px; height: 1.6px; background: var(--grey-100); }
.mobile-menu__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.mobile-menu__close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.mobile-menu__panel { max-width: 606px; margin: 0 auto; padding: 24px 38px;
  background: var(--panel); border: 1.6px solid var(--line); border-radius: 16px; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__item { border-bottom: 1.6px solid var(--line); }
/* Wix版では文字色が背景と同化して読めなかったため、明るい色にしている */
.mobile-menu__link { display: flex; align-items: center; justify-content: center; min-height: 52px;
  font: 400 16px/1.2 var(--font-text); color: var(--grey-100); text-decoration: none; }
.mobile-menu__link:hover, .mobile-menu__link[aria-current="page"] { color: var(--purple); }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--black); color: var(--grey-100); border-top: 1.6px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: 1fr; }

/* スマホ幅: 2つの塊を縦に積む */
.site-footer__brand { padding: 20px 31px 24px; }
.site-footer__news { padding: 28px 31px 36px; border-top: 1.6px solid var(--line); }
.site-footer__logo { display: inline-block; line-height: 0; text-decoration: none; }
/* 要確認: フッターのロゴ画像は余白つきの正方形なので、257x81で中央を切り抜いて表示している */
.footer-logo { width: clamp(220px, 55.3vw, 364px); aspect-ratio: 257 / 81; object-fit: cover; object-position: center; }
.site-footer__copy { margin: 16px 0 0; font: 400 16px/25.6px var(--font-text); }
.site-footer__legal { margin: 0; font: 400 16px/25.6px var(--font-text); }
.site-footer__legal a { color: var(--orange); text-decoration: underline; }

.newsletter__title { margin: 0; font: 400 13px/normal var(--font-text); color: var(--grey-100); }
.newsletter-form { display: flex; align-items: flex-end; gap: 24px; margin: 24px 0 0 16px; }
.newsletter__field { display: flex; flex: 1 1 auto; flex-direction: column; max-width: 378px; min-width: 0; }
.newsletter__label { font: 400 14px/19.6px var(--font-text); color: var(--label); }
.newsletter__input {
  width: 100%; height: 37px; padding: 0; border: 0; border-bottom: 1.6px solid var(--input-line); border-radius: 0;
  background: var(--black); color: var(--grey-100); font: 400 14px/19.6px var(--font-text); appearance: none; }
.newsletter__input:focus-visible { outline: 2px solid var(--purple); outline-offset: 4px; }
.newsletter__status.is-error { color: #ff8a65; }
.btn--subscribe:disabled { opacity: 0.6; cursor: progress; }
.newsletter__status { min-height: 1.4em; margin: 12px 0 0 16px; font: 400 14px/1.4 var(--font-text); color: var(--label); }

/* PC幅: 左右2列(同じ幅)+中央の縦線。高さ216px */
@media (min-width: 1000px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; min-height: 216px; }
  .site-footer__brand { padding: 33px 57px 24px; }
  .site-footer__news { padding: 38px 57px 24px 43px; border-top: 0; border-left: 1.6px solid var(--line); }
  .footer-logo { width: 257px; }
  .newsletter__title { font-size: 16px; }
  .newsletter-form { margin: 44px 0 0 24px; }
  .newsletter__status { margin-left: 24px; }
}

/* ---------- 作成中のページ用(各ページを作る段階で置き換える) ---------- */
.placeholder { min-height: 60vh; padding: 120px var(--gutter) 160px; }
.placeholder h1 { margin: 0 0 16px; font: 400 42px/1.2 var(--font-text); }
.placeholder p { margin: 0; font-size: 16px; line-height: 1.7; }
.placeholder--tall { min-height: 100vh; }
