/* ============================================
   EMILAI Corporate Site - Global Stylesheet
   ============================================ */

/* --- Google Fonts loaded via <link> in HTML <head> --- */

/* --- CSS Variables --- */
:root {
  --em-blue: #1E5A9F;
  --em-black: #000000;
  --em-white: #FFFFFF;
  --em-offwhite: #F8F7F6;
  --em-gray-light: #F7F7F7;
  --em-gray: #6E6E6E;
  --em-gray-dark: #666666;
  --em-text: #222222;
  --em-text-secondary: #333333;
  --em-border: #eeeeee;
  --em-red: #CC0000;
  --em-font-en: 'Montserrat', sans-serif;
  --em-font-jp: 'Noto Sans JP', sans-serif;
  --em-header-height: 72px;
  --em-header-padding: 48px;
  --em-max-width: 1200px;
  --em-section-padding: 120px 0;
  --em-transition: 0.3s ease;
}

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

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

[id] {
  scroll-margin-top: calc(var(--em-header-height) + 40px);
}

body {
  font-family: var(--em-font-jp);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8;
  color: var(--em-text);
  background-color: var(--em-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

:focus-visible {
  outline: 2px solid var(--em-blue);
  outline-offset: 2px;
}

.em-hero :focus-visible,
.em-footer :focus-visible,
.em-page-header :focus-visible,
.em-mobile-menu :focus-visible,
.em-contact-cta :focus-visible {
  outline-color: var(--em-white);
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--em-transition);
}

a:hover {
  opacity: 0.7;
}

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--em-font-en);
  font-weight: 700;
  line-height: 1.3;
}

/* --- Skip Link --- */
.em-skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--em-blue);
  color: var(--em-white);
  font-size: 14px;
  border-radius: 0 0 4px 4px;
}

.em-skip-link:focus {
  top: 0;
  opacity: 1;
}

/* --- Container --- */
.em-container {
  max-width: var(--em-max-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* ============================================
   HEADER
   ============================================ */
/* Header appear animation — matches source site (Studio.Design).
   Header starts opacity:0 + translateY(-48px). After 1.4s delay,
   fades in + slides down over 0.8s. Gradient is on the header itself
   and appears simultaneously.
   Safari cannot sample an opacity:0 element → white toolbar.
   CSS animation (compositor-driven) does not trigger Safari re-sampling. */
.em-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.5) 0%, rgba(102, 102, 102, 0) 100%);
  background-size: 100% 168.75px;
  background-repeat: no-repeat;
  z-index: 2;
  padding: var(--em-header-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  animation: em-header-appear 0.8s cubic-bezier(0.4, 0.4, 0, 1) 1.4s both;
}

@keyframes em-header-appear {
  from {
    opacity: 0;
    transform: translateY(-48px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.em-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.em-header__logo {
  display: flex;
  align-items: center;
}

.em-header__logo img {
  width: 200px;
  height: auto;
}

.em-header__nav {
  display: flex;
  align-items: center;
}

.em-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.em-header__nav-item {
  padding: 0 12px;
}

.em-header__nav-link {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.1px;
  line-height: 19.6px;
  color: var(--em-white);
  position: relative;
  transition: color 0.3s ease;
  /* Issue #305: 白背景セクション上でも視認性を確保するため、
     text-shadow を単一のソフト影から「細いダーク・ハロー + ぼかし影」の多重指定に強化。
     これによりヘッダーグラデーションが薄くなる領域（company/careers 等の白背景）でも
     白文字ナビが輪郭を保ち、hover 時（opacity 0.7）でも読み取れる。 */
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35);
}


.em-header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--em-blue);
  transition: width var(--em-transition);
}

.em-header__nav-link:hover::after,
.em-header__nav-link--active::after {
  width: 100%;
}

.em-header__nav-link:hover {
  opacity: 0.7;
  color: inherit;
}

/* Issue #310: cart icon link (replaces OFFICIAL STORE text link at nav end).
   SVG のみを表示する最小限の link。タッチターゲット 44x44 を確保。
   下線アニメーション（nav-link::after）は cart では不要なので非表示にする。 */
.em-header__nav-item--cart {
  padding: 0 4px;
}
.em-header__cart-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--em-white);
  transition: opacity 0.3s ease;
}
.em-header__cart-link::after {
  display: none;
}
.em-header__cart-link:hover {
  opacity: 0.7;
}
.em-header__cart-link:focus-visible {
  outline: 2px solid var(--em-white);
  outline-offset: 2px;
  border-radius: 4px;
}
.em-header__cart-link svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

/* Mobile menu cart item: SVG + text (visibility-first on mobile) */
.em-mobile-menu__link--cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.em-mobile-menu__link--cart svg {
  flex-shrink: 0;
}

/* Dropdown (#310 で使用箇所なし、将来用に保持) */
.em-header__nav-item--dropdown {
  position: relative;
}

.em-header__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.em-header__nav-item--dropdown:hover .em-header__dropdown,
.em-header__nav-item--dropdown:focus-within .em-header__dropdown {
  opacity: 1;
  visibility: visible;
}

.em-header__dropdown-icon {
  font-size: 18px;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.em-header__nav-item--dropdown:hover .em-header__dropdown-icon,
.em-header__nav-item--dropdown:focus-within .em-header__dropdown-icon {
  transform: rotate(180deg);
}

.em-header__dropdown-list {
  list-style: none;
  padding: 8px 0;
  min-width: 140px;
  text-align: center;
}

.em-header__dropdown-link {
  display: block;
  padding: 8px 20px;
  font-family: var(--em-font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--em-white);
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, text-shadow 0.15s ease;
  /* Issue #305: 親ナビと同じ視認性強化。白背景セクションで開いたドロップダウンの
     非ホバー状態（白文字・透明背景）でも読み取れるよう text-shadow を多重指定。 */
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.em-header__dropdown-link:hover {
  background-color: var(--em-white);
  color: var(--em-blue);
  animation: em-ps-blink 1s ease-in-out infinite;
  /* ホバー時は白背景ピル + 青文字になるので text-shadow は不要 */
  text-shadow: none;
}

@keyframes em-ps-blink {
  0%, 100% { color: var(--em-blue); }
  50% { color: rgba(30, 90, 159, 0.5); }
}

/* Hamburger */
.em-header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 28px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  z-index: 1100;
}

.em-header__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--em-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

.em-header__hamburger--active .em-header__hamburger-line {
  background: var(--em-text);
}

.em-header__hamburger--active .em-header__hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.em-header__hamburger--active .em-header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.em-header__hamburger--active .em-header__hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile menu overlay */
.em-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--em-white);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.em-mobile-menu--active {
  display: flex;
}

/* モバイルメニュー閉じるボタン — 右上固定。hamburger は z-index stacking で
   mobile-menu の下にレンダリングされるため、独立した ✕ ボタンで閉じる UI を提供 */
.em-mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--em-text);
  cursor: pointer;
  padding: 0;
  z-index: 1;
  transition: opacity var(--em-transition);
}

.em-mobile-menu__close:hover {
  opacity: 0.6;
}

.em-mobile-menu__close:focus-visible {
  outline: 2px solid var(--em-blue);
  outline-offset: 2px;
}

.em-mobile-menu__close svg {
  display: block;
}

.em-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.em-mobile-menu__link {
  display: inline-block;
  padding: 12px 24px;
  min-height: 44px;
  font-family: var(--em-font-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--em-text);
}

/* ============================================
   HERO
   ============================================ */
.em-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background-color: var(--em-black);
  overflow: hidden;
}

/* Hero inner container */
.em-hero__inner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
}

/* Hero title variants */
.em-hero__title {
  margin-bottom: 148px;
}

.em-hero__title,
.em-hero__title-main,
.em-hero__title-sub {
  /* 英語タイトルは ja-contracts の auto-phrase / anywhere を打ち消し、単語単位で折る */
  word-break: normal;
  overflow-wrap: normal;
}

.em-hero__title-main {
  display: block;
  font-family: var(--em-font-en);
  font-size: 96px;
  font-weight: 600;
  letter-spacing: 9.6px;
  line-height: 105.6px;
  color: var(--em-white);
}

.em-hero__title-sub {
  display: block;
  font-family: var(--em-font-en);
  font-size: 96px;
  font-weight: 600;
  letter-spacing: 9.6px;
  line-height: 105.6px;
  color: var(--em-white);
}

.em-hero__subtext {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
  margin-bottom: 48px;
}

.em-hero__body {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 25.6px;
  color: var(--em-white);
  margin-bottom: 48px;
  max-width: 727px;
}

.em-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--em-white);
  background: var(--em-black);
  padding: 12px 48px;
  border-radius: 10px;
}

.em-hero__cta .material-icons {
  font-size: 20px;
}

.em-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/hero/hero-bg.webp');
  background-size: cover;
  background-position: 50% 0%;
  filter: brightness(0.9) saturate(1.6);
  z-index: 0;
}

/* Top gradient overlay (replaces header ::before to avoid Safari toolbar darkening) */
/* .em-hero::after gradient removed — now on .em-header background-image */

.em-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  padding: 192px 48px 96px;
  margin-left: auto;
  margin-right: auto;
  color: var(--em-white);
}

.em-hero__scroll {
  position: absolute;
  right: 48px;
  top: 585px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  color: var(--em-white);
}

.em-hero__scroll-text {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.1px;
  line-height: 19.6px;
  writing-mode: vertical-rl;
}

.em-hero__scroll-line {
  width: 1px;
  height: 218px;
  background: linear-gradient(to bottom, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 100%);
}

/* ============================================
   SECTIONS - Common
   ============================================ */
.em-section {
  padding: var(--em-section-padding);
}

/* ============================================
   WHAT WE DO (HOME)
   ============================================ */
.em-whatwedo {
  padding: 104px 0 192px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.81) 71%, rgb(0, 0, 0) 100%),
    url('../images/hero/hero-bg.webp') 50% 0% / cover no-repeat fixed;
}

.em-whatwedo__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.em-whatwedo__header {
  margin-bottom: 0;
  width: 100%;
}

.em-whatwedo__title {
  font-family: var(--em-font-en);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 67.2px;
  color: var(--em-white);
  text-align: center;
  margin-bottom: 0;
}

.em-whatwedo__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  color: var(--em-white);
  text-align: center;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  max-width: 70%;
  margin: 0 auto 64px;
}

.em-whatwedo__content {
  max-width: 70%;
}

.em-whatwedo__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-white);
  text-align: justify;
  margin-bottom: 24px;
}

.em-whatwedo__text:last-child {
  margin-bottom: 0;
}

/* ============================================
   PORTFOLIO (HOME)
   ============================================ */
.em-portfolio {
  padding: 192px 48px;
  background: var(--em-offwhite);
  color: var(--em-black);
}

.em-portfolio__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.em-portfolio__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 96px;
}

.em-portfolio__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
}

.em-portfolio__viewmore {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--em-black);
  display: inline-flex;
  align-items: center;
}

.em-portfolio__list {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.em-portfolio__card {
  display: flex;
  flex-direction: row;
  height: 520px;
}

.em-portfolio__card--reverse {
  flex-direction: row-reverse;
}

.em-portfolio__card-image {
  width: 60%;
  flex-shrink: 0;
  overflow: hidden;
}

.em-portfolio__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-portfolio__card-body {
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 48px;
}

.em-portfolio__card--reverse .em-portfolio__card-body {
  padding-left: 0;
  padding-right: 48px;
}

.em-portfolio__card-title {
  font-family: var(--em-font-en);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 67px;
  margin-bottom: 24px;
}

.em-portfolio__card-text {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  margin-bottom: 48px;
}

.em-portfolio__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  align-self: flex-end;
}

/* ============================================
   CTA Link (Arrow)
   ============================================ */
.em-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--em-font-jp);
  font-size: 14px;
  font-weight: 500;
  transition: gap var(--em-transition);
}

.em-cta-link:hover {
  gap: 12px;
  opacity: 1;
}

.em-cta-link .material-icons {
  font-size: 18px;
}

.em-cta-link--blue {
  color: var(--em-blue);
}

/* ============================================
   CONTACT CTA (HOME)
   ============================================ */
.em-contact-cta {
  background: var(--em-blue);
  color: var(--em-white);
  padding: 96px;
}

.em-contact-cta__inner {
  max-width: 1248px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.em-contact-cta__title {
  font-family: var(--em-font-jp);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.em-contact-cta__text {
  font-size: 16px;
  font-weight: 700;
  max-width: 640px;
}

.em-contact-cta__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--em-black);
  background: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  flex-shrink: 0;
}

/* ============================================
   NEWS (HOME)
   ============================================ */
.em-news {
  padding: 192px 48px;
  background: var(--em-offwhite);
  color: var(--em-black);
}

.em-news__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.em-news__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 76px;
}

.em-news__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
}

.em-news__viewmore {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: normal;
  color: var(--em-black);
  display: inline-flex;
  align-items: center;
}

.em-news__archive {
  margin-top: 48px;
  text-align: right;
}

.em-news__archive-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--em-text-secondary);
}

.em-news__archive-link .material-icons {
  font-size: 20px;
}

/* --- NEWS Card Grid (note.com RSS) --- */
.em-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.em-news__card {
  background: var(--em-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 20px;
  transition: box-shadow 0.6s cubic-bezier(0.4, 0.4, 0, 1),
              transform 0.6s cubic-bezier(0.4, 0.4, 0, 1);
  display: flex;
  flex-direction: column;
  color: var(--em-text);
}

.em-news__card:hover {
  box-shadow: rgba(0, 0, 0, 0.08) 0px 0px 0px;
  transform: translate(6px, 12px);
}

.em-news__card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--em-gray-light);
  flex-shrink: 0;
}

.em-news__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-news__card:hover .em-news__card-image img {
  transform: scale(1.1);
}

.em-news__card-image--empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.em-news__card-image--empty .material-icons {
  font-size: 48px;
  color: var(--em-border);
}

.em-news__card-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.em-news__card-date {
  font-family: var(--em-font-en);
  font-size: 12px;
  font-weight: 500;
  color: var(--em-gray);
  margin-bottom: 8px;
}

.em-news__card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--em-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.em-news__loading {
  text-align: center;
  padding: 64px 24px;
  color: var(--em-gray);
  font-size: 14px;
}

.em-news__error {
  text-align: center;
  padding: 64px 24px;
  color: var(--em-gray);
  font-size: 14px;
}

/* ============================================
   CAREERS (HOME section)
   ============================================ */
.em-careers {
  padding: 0 48px 85px;
  background: var(--em-offwhite);
}

.em-careers__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: row-reverse;
  gap: 48px;
}

.em-careers__image {
  width: 768px;
  flex-shrink: 0;
  height: 520px;
  overflow: hidden;
}

.em-careers__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-careers__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.em-careers__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 90px;
  margin-bottom: 24px;
}

.em-careers__subtitle {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

.em-careers__content {
  margin-bottom: 48px;
}

.em-careers__text {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
}

.em-careers__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.7px;
  color: var(--em-white);
  background: var(--em-black);
  padding: 12px 48px;
  border-radius: 10px;
  align-self: flex-start;
}

/* ============================================
   FOOTER
   ============================================ */
.em-footer {
  background: var(--em-black);
  color: var(--em-white);
}

.em-footer--no-cta {
  padding-top: 20px;
}

/* Footer CTA — full-width offwhite bg, grid inside */
.em-footer__cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0 128px 80px;
  background: var(--em-offwhite);
}

.em-footer__cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  background: var(--em-white);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 2px 20px 0px;
  position: relative;
  color: var(--em-black);
}

.em-footer__cta-card::after {
  content: 'keyboard_arrow_right';
  font-family: 'Material Icons';
  font-size: 48px;
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--em-black);
}

.em-footer__cta-card-subtitle {
  font-size: 12px;
  font-weight: 700;
  color: var(--em-white);
  background: var(--em-blue);
  padding: 6px 12px;
  border-radius: 80px;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.em-footer__cta-card:hover {
  opacity: 1;
}

.em-footer__cta-card-title {
  font-family: var(--em-font-en);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: normal;
  margin-bottom: 12px;
  color: var(--em-blue);
}

.em-footer__cta-card-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--em-black);
}

/* Footer nav row — single line: company name + all links */
.em-footer__nav-row {
  display: flex;
  align-items: center;
  padding: 0 128px;
  margin-top: 48px;
}

.em-footer__company {
  font-family: var(--em-font-jp);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--em-white);
  margin-right: auto;
  white-space: nowrap;
}

.em-footer__nav {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
}

.em-footer__nav-link {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 2.1px;
  word-spacing: 1px;
  color: var(--em-white);
  padding: 12px;
}

.em-footer__nav-link:hover {
  opacity: 0.5;
}

/* Footer bottom — PRESS KIT / PRIVACY POLICY centered */
.em-footer__bottom {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.em-footer__bottom-link {
  font-family: var(--em-font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--em-white);
  padding: 12px;
}

/* Footer social links */
.em-footer__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
}

.em-footer__social-link {
  color: var(--em-white);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-footer__social-link:hover {
  opacity: 0.5;
}

.em-footer__social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.em-footer__copyright {
  font-family: var(--em-font-en);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--em-white);
  text-align: center;
  margin-top: 24px;
  padding-bottom: 24px;
}

/* ============================================
   PAGE HEADER (Subpages)
   ============================================ */
.em-page-header {
  position: relative;
  padding-top: calc(var(--em-header-height) + 80px);
  padding-bottom: 48px;
  background: var(--em-black);
  color: var(--em-white);
}

/* Subpage ::after gradients removed — now on .em-header background-image */

.em-page-header__title {
  font-family: var(--em-font-en);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.em-page-header__subtitle {
  font-family: var(--em-font-jp);
  font-size: 14px;
  opacity: 0.6;
}

/* --- 404 Page --- */
.em-404__content {
  text-align: center;
  padding: 80px 40px;
}

.em-404__message {
  font-size: 18px;
  margin-bottom: 32px;
}

/* --- Company Section flush variant --- */
.em-company-section--flush {
  padding-bottom: 0;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.em-breadcrumb {
  padding: 16px 0;
  background: var(--em-offwhite);
}

.em-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.em-breadcrumb__link {
  color: var(--em-blue);
}

.em-breadcrumb__separator {
  font-size: 16px;
  opacity: 0.4;
}

.em-breadcrumb__current {
  opacity: 0.7;
}

/* ============================================
   ACCORDION (Contact page)
   ============================================ */
.em-accordion {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  overflow: hidden;
  background: var(--em-white);
}

.em-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 48px;
  padding: 0 12px;
  font-family: var(--em-font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--em-text-secondary);
  text-align: left;
  background: var(--em-white);
  transition: background var(--em-transition);
}

.em-accordion__header:hover {
  background: var(--em-offwhite);
}

.em-accordion__icon {
  font-size: 24px;
  transition: transform var(--em-transition);
}

.em-accordion--active .em-accordion__icon {
  transform: rotate(180deg);
}

.em-accordion--active .em-accordion__body {
  visibility: visible;
  transition: max-height 0.4s ease, visibility 0s 0s;
}

.em-accordion__body {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.4s ease, visibility 0s 0.4s;
}

.em-accordion__content {
  padding: 12px 12px 24px;
  font-size: 14px;
  line-height: 1.8;
}

.em-accordion__content a {
  color: var(--em-blue);
  text-decoration: underline;
}

/* ============================================
   COMPANY PAGE
   ============================================ */

/* --- Company Hero (overrides .em-page-header) --- */
.em-company-hero {
  position: relative;
  height: 525px;
  padding: 192px 48px 96px;
  color: var(--em-white);
  background:
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/company/company-hero.webp') 50% 50% / cover no-repeat fixed;
}

.em-company-hero .em-container {
  padding: 0;
  max-width: none;
}

.em-company-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 72px;
  color: var(--em-white);
  margin-bottom: 24px;
}

.em-company-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
}

/* --- Company Sections (shared) --- */
.em-company-section {
  padding: 96px 48px;
  background: var(--em-offwhite);
}

.em-company-section .em-container {
  padding: 0;
  max-width: none;
}

.em-company-section__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-company-section__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 48px;
}

/* --- OUR MISSION --- */
.em-mission__lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  margin-bottom: 48px;
  color: var(--em-black);
  text-align: center;
}

.em-mission__image {
  width: 896px;
  height: 520px;
  margin: 0 auto 48px;
  overflow: hidden;
}

.em-mission__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-mission__text {
  max-width: 896px;
  margin: 0 auto;
}

.em-mission__text p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: justify;
  margin-bottom: 24px;
}

.em-mission__text p:last-child {
  margin-bottom: 0;
}

/* --- PHILOSOPHY --- */
.em-philosophy__lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  margin-bottom: 48px;
  color: var(--em-black);
  text-align: center;
}

.em-philosophy__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 592px));
  gap: 48px;
  justify-content: center;
}

.em-philosophy__card {
  text-align: left;
  padding: 48px;
  background: var(--em-white);
  border-radius: 10px;
  box-shadow: 30px 40px 30px 0 rgba(0, 0, 0, 0.1);
}

.em-philosophy__kanji {
  font-family: var(--em-font-jp);
  font-size: 36px;
  font-weight: 700;
  color: var(--em-blue);
  margin-bottom: 12px;
  line-height: 36px;
}

.em-philosophy__reading {
  font-size: 16px;
  font-weight: 700;
  color: var(--em-black);
  opacity: 1;
  margin-bottom: 16px;
  line-height: 25.6px;
}

.em-philosophy__desc {
  font-size: 14px;
  font-weight: 700;
  line-height: 22.4px;
  color: var(--em-black);
}

/* --- OUR VALUE header --- */
.em-company-section__title--ls {
  letter-spacing: 3.2px;
}

/* --- OUR VALUE items --- */
.em-value__item {
  padding: 96px 48px;
  background: var(--em-offwhite);
  border-bottom: none;
}

.em-value__item .em-container {
  padding: 0;
  max-width: none;
}

.em-value__item-title {
  font-family: var(--em-font-jp);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: 1.8px;
  line-height: 36px;
  margin-bottom: 24px;
  color: var(--em-black);
  text-align: center;
}

.em-value__item-lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  margin-bottom: 48px;
  color: var(--em-black);
  text-align: center;
}

.em-value__item-body {
  max-width: 896px;
  margin: 0 auto;
}

.em-value__item-body p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: justify;
  margin-bottom: 24px;
}

.em-value__item-body p:last-child {
  margin-bottom: 0;
}

.em-value__separator {
  display: block;
  text-align: left;
  font-size: 16px;
  color: var(--em-gray);
  margin: 24px 0;
}

.em-value__sub-title {
  font-family: var(--em-font-jp);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--em-black);
  line-height: 28px;
}

/* --- ABOUT --- */
.em-about {
  padding: 75px 80px;
  background: var(--em-offwhite);
}

.em-about .em-container {
  padding: 0;
  max-width: none;
}

.em-about__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-about__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 48px;
}

.em-about__content {
  display: flex;
  gap: 48px;
  align-items: stretch;
}

.em-about__info {
  flex: 1;
}

.em-about__right {
  width: 520px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.em-about__image {
  width: 100%;
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
}

.em-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-about__table {
  width: 100%;
  border-collapse: collapse;
}

.em-about__table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.em-about__table th {
  font-weight: 700;
  font-size: 16px;
  padding: 20px 24px 20px 0;
  vertical-align: top;
  width: 120px;
  text-align: left;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

.em-about__table td {
  font-size: 16px;
  font-weight: 700;
  padding: 20px 0;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

.em-about__maps {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--em-border);
}

.em-about__maps .em-about__map-item {
  flex: 1;
}

.em-about__map-label {
  font-family: var(--em-font-en);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.em-about__map-address {
  font-size: 14px;
  color: var(--em-gray-dark);
  margin-bottom: 12px;
  line-height: 1.6;
}

.em-about__map-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 75%;
  overflow: hidden;
  border-radius: 4px;
}

.em-about__map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- PARTNERS (取引先一覧) --- */
.em-partners {
  padding: 80px 48px;
  background: var(--em-offwhite);
  text-align: center;
}

.em-partners__title {
  font-family: var(--em-font-en);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 67.2px;
  color: var(--em-black);
  margin-bottom: 8px;
}

.em-partners__subtitle {
  font-family: var(--em-font-jp);
  font-size: 16px;
  color: var(--em-gray);
  margin-bottom: 32px;
}

.em-partners__featured {
  font-size: 13px;
  color: var(--em-gray);
  line-height: 2;
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.em-partners__accordion {
  border-top: 1px solid var(--em-border);
  padding-top: 20px;
}

.em-partners__trigger {
  background: none;
  border: none;
  font-family: var(--em-font-jp);
  font-size: 13px;
  color: var(--em-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  transition: opacity 0.3s ease;
}

.em-partners__trigger:hover {
  opacity: 0.7;
}

.em-partners__trigger:focus-visible {
  outline: 2px solid var(--em-blue);
  outline-offset: 4px;
  border-radius: 2px;
}

.em-partners__trigger .material-icons {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.em-partners__trigger[aria-expanded="true"] .material-icons {
  transform: rotate(180deg);
}

.em-partners__content {
  overflow: hidden;
  max-height: 0;
  visibility: hidden;
  transition: max-height 0.5s ease, visibility 0s 0.5s;
}

.em-partners__content--open {
  max-height: 2000px;
  visibility: visible;
  transition: max-height 0.5s ease, visibility 0s 0s;
}

.em-partners__list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px 32px;
  font-size: 13px;
  color: var(--em-text);
  line-height: 2.2;
  text-align: left;
  padding-top: 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* --- English Page: Categorized Brands --- */
.em-en-brands {
  padding: 96px 0;
  background: var(--em-white);
}

.em-en-brands__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 4px;
  text-align: center;
  margin-bottom: 8px;
}

.em-en-brands__subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--em-gray-dark);
  margin-bottom: 64px;
}

.em-en-brands__category {
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.em-en-brands__category:last-child {
  margin-bottom: 0;
}

.em-en-brands__category-label {
  font-family: var(--em-font-en);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--em-blue);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(30, 90, 159, 0.15);
}

.em-en-brands__logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 24px;
}

.em-en-brands__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--em-offwhite);
  border-radius: 8px;
  padding: 0;
  aspect-ratio: 2 / 1;
}

.em-en-brands__logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* EN brand logo link */
.em-en-brands__logo a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.em-en-brands__logo a img {
  transition: opacity 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-en-brands__logo a:hover img {
  opacity: 0.7;
}

/* --- English ABOUT Section (full-width image background) --- */
.em-en-about {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.em-en-about__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.em-en-about__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-en-about__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.em-en-about__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 96px 64px;
  color: var(--em-white);
}

.em-en-about__title {
  font-family: var(--em-font-en);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.em-en-about__subtitle {
  font-family: var(--em-font-en);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
}

.em-en-about__body {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.em-en-about__body p {
  margin-bottom: 16px;
}

.em-en-about__body p:last-child {
  margin-bottom: 0;
}

.em-en-about__stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.em-en-about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.em-en-about__stat-number {
  font-family: var(--em-font-en);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 1px;
}

.em-en-about__stat-label {
  font-family: var(--em-font-en);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.em-en-about__info {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.em-en-about__info-row {
  display: flex;
  gap: 16px;
  padding: 8px 0;
}

.em-en-about__info-row dt {
  flex: 0 0 120px;
  font-family: var(--em-font-en);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}

.em-en-about__info-row dd {
  font-family: var(--em-font-en);
  font-size: 14px;
  color: var(--em-white);
  margin: 0;
}

.em-en-about__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding: 14px 32px;
  background: var(--em-blue);
  color: var(--em-white);
  font-family: var(--em-font-en);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.3s cubic-bezier(0.4, 0.4, 0, 1), transform 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-en-about__cta:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.em-en-about__cta .material-icons {
  font-size: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-en-about__cta:hover .material-icons {
  transform: translateX(4px);
}

.em-en-about__map {
  position: absolute;
  right: 0;
  height: 80%;
  top: 10%;
  z-index: 2;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-en-about__map.em-animate--visible {
  opacity: 0.75;
}

.em-en-about__map-inner {
  position: relative;
  display: inline-block;
  height: 100%;
}

.em-en-about__map-inner img {
  height: 100%;
  width: auto;
}

.em-en-about__map-pin {
  position: absolute;
  width: 44px;
  height: 44px;
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
}

.em-en-about__map-pin--tokyo {
  left: 63.3%;
  top: 64.0%;
}

.em-en-about__map-pin--osaka {
  left: 40.6%;
  top: 70.2%;
}

.em-en-about__map-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: var(--em-white);
  padding: 12px 16px;
  border-radius: 6px;
  font-family: var(--em-font-en);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-en-about__map-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.85);
}

.em-en-about__map-pin:hover .em-en-about__map-tooltip,
.em-en-about__map-pin:focus-visible .em-en-about__map-tooltip {
  opacity: 1;
  pointer-events: auto;
}

.em-en-about__map-tooltip strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.em-en-about__map-tooltip-link {
  display: block;
  margin-top: 8px;
  color: #6DB3F2;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.em-en-about__map-pin:hover .em-en-about__map-tooltip-link,
.em-en-about__map-pin:focus-visible .em-en-about__map-tooltip-link {
  text-decoration: underline;
}

/* ============================================
   CAREERS PAGE
   ============================================ */

/* --- Careers Hero --- */
.em-careers-hero {
  position: relative;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  background:
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/careers/careers-hero.webp') 50% 50% / cover no-repeat fixed;
}

.em-careers-hero .em-container {
  padding: 0;
  max-width: none;
}

.em-careers-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 72px;
  color: var(--em-white);
  margin-bottom: 24px;
}

.em-careers-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
}

/* --- Careers Sections (shared) --- */
.em-careers-section {
  padding: 96px 48px;
  background: var(--em-offwhite);
}

.em-careers-section .em-container {
  padding: 0;
  max-width: none;
}

.em-careers-section__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-careers-section__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 48px;
}

/* --- JOIN OUR TEAM --- */
.em-join__lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 48px;
}

.em-join__image {
  width: 896px;
  height: 520px;
  margin: 0 auto 48px;
  overflow: hidden;
}

.em-join__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-join__text {
  max-width: 768px;
  margin: 0 auto;
}

.em-join__text p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: justify;
  margin-bottom: 24px;
}

.em-join__text p:last-child {
  margin-bottom: 0;
}

/* --- DISCOVER EMILAI --- */
.em-discover__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 592px));
  gap: 48px;
  justify-content: center;
}

.em-discover__card {
  background: var(--em-white);
  border-radius: 10px;
  padding: 48px;
  box-shadow: 30px 40px 30px 0 rgba(0, 0, 0, 0.1);
}

.em-discover__card-label {
  font-family: var(--em-font-jp);
  font-size: 36px;
  font-weight: 700;
  color: var(--em-blue);
  margin-bottom: 12px;
  line-height: 36px;
}

.em-discover__card-title {
  font-family: var(--em-font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--em-black);
  opacity: 1;
  margin-bottom: 16px;
  line-height: 25.6px;
}

.em-discover__card-text {
  font-size: 14px;
  font-weight: 700;
  line-height: 22.4px;
  color: var(--em-black);
}

/* --- MEET THE TEAM --- */
.em-meet-section {
  padding: 96px;
  background: var(--em-offwhite);
}

.em-meet-section .em-container {
  padding: 0;
  max-width: none;
}

.em-meet__text {
  max-width: 60%;
  margin: 0 auto 48px;
}

.em-meet__text p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-meet__text p:last-child {
  margin-bottom: 0;
}

/* Staff profile cards */
.em-team__grid {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.em-team__card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.em-team__card--reverse {
  flex-direction: row-reverse;
}

.em-team__photo {
  width: 749px;
  height: 420px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--em-gray-light);
  border-radius: 0;
}

.em-team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-team__info {
  flex: 1;
  padding-top: 48px;
}

.em-team__role {
  font-size: 20px;
  font-weight: 600;
  color: var(--em-blue);
  margin-bottom: 12px;
  line-height: 28px;
}

.em-team__name {
  font-family: var(--em-font-jp);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--em-black);
  line-height: 33.6px;
}

.em-team__bio {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  margin-bottom: 24px;
}

.em-team__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.em-team__link .material-icons {
  font-size: 18px;
}

/* --- 募集一覧 --- */
.em-recruitment {
  padding: 96px;
  background: var(--em-offwhite);
}

.em-recruitment .em-container {
  padding: 0;
  max-width: none;
}

.em-recruitment__title {
  font-family: var(--em-font-jp);
  font-size: 64px;
  font-weight: 600;
  color: var(--em-blue);
  text-align: center;
  margin-bottom: 24px;
  line-height: 64px;
}

.em-recruitment__intro {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.em-recruitment__intro p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

.em-recruitment__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 998px;
  margin: 0 auto 48px;
}

.em-recruitment__card {
  background: var(--em-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 20px;
}

.em-recruitment__card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.em-recruitment__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.em-recruitment__card-body {
  padding: 24px;
}

.em-recruitment__card-number {
  font-family: var(--em-font-en);
  font-size: 14px;
  font-weight: 700;
  color: var(--em-blue);
  margin-bottom: 8px;
}

.em-recruitment__card-title {
  font-family: var(--em-font-jp);
  font-size: 20px;
  font-weight: 700;
  color: var(--em-black);
  line-height: 1.5;
  margin-bottom: 12px;
}

.em-recruitment__card-text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--em-text);
}

@media (max-width: 767px) {
  .em-recruitment__grid {
    grid-template-columns: 1fr;
  }
}

.em-recruitment__empty {
  max-width: 998px;
  margin: 0 auto 48px;
  background: var(--em-border);
  border-radius: 10px;
  padding: 48px;
  text-align: center;
}

.em-recruitment__empty-title {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 400;
  color: var(--em-text-secondary);
  margin-bottom: 24px;
  line-height: 44.8px;
}

.em-recruitment__empty-text {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: var(--em-text-secondary);
}

.em-recruitment__back {
  text-align: center;
  margin-top: 48px;
}

.em-recruitment__back .em-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.em-recruitment__back .em-cta-link .material-icons {
  font-size: 18px;
}

/* ============================================
   NEWS PAGE
   ============================================ */
.em-news-hero {
  position: relative;
  isolation: isolate;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  overflow: hidden;
}

.em-news-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/careers/careers-hero.webp') 50% 50% / cover no-repeat fixed;
  z-index: -1;
}

.em-news-hero .em-container {
  max-width: none;
  padding: 0;
}

.em-news-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  line-height: 72px;
  color: var(--em-white);
}

.em-news-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  line-height: 44.8px;
  letter-spacing: 1.4px;
  color: var(--em-white);
  margin-top: 24px;
}

.em-news-section {
  background: var(--em-offwhite);
  padding: 96px 48px;
}

.em-news-section .em-container {
  max-width: none;
  padding: 0;
}

.em-news-section__heading {
  font-family: var(--em-font-jp);
  font-size: 36px;
  font-weight: 600;
  color: var(--em-blue);
  text-align: center;
  margin-bottom: 24px;
}

.em-news-section__filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 80px;
}

.em-news-filter__btn {
  font-size: 14px;
  font-weight: 900;
  color: var(--em-blue);
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px 16px;
  font-family: inherit;
}

.em-news-filter__btn--active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
/* --- Contact Hero --- */
.em-contact-hero {
  position: relative;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  background:
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/hero/hero-bg.webp') 50% 50% / cover no-repeat fixed;
}

.em-contact-hero .em-container {
  padding: 0;
  max-width: none;
}

.em-contact-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 72px;
  color: var(--em-white);
  margin-bottom: 24px;
}

.em-contact-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
}

/* --- Contact Section --- */
.em-contact-section {
  padding: 96px 48px;
  background: var(--em-offwhite);
}

.em-contact-section .em-container {
  padding: 0;
  max-width: none;
}

/* --- White Card --- */
.em-contact__card {
  max-width: 1184px;
  margin: 0 auto;
  background: var(--em-white);
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.1) 40px 50px 30px 0px;
  padding: 96px;
}

.em-contact__heading {
  font-family: var(--em-font-jp);
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-contact__btn-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.em-contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.2) 20px 20px 30px 0px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.em-contact__btn .material-icons {
  font-size: 20px;
}

.em-contact__intro {
  font-size: 14px;
  font-weight: 700;
  color: var(--em-black);
  text-align: center;
  margin-bottom: 24px;
}

.em-contact__body {
  max-width: 640px;
  margin: 0 auto 48px;
}

.em-contact__body--terminal {
  margin-top: 88px;
}

.em-contact__body-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--em-text);
}

.em-contact__body p {
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  color: var(--em-text-secondary);
  margin-bottom: 16px;
}

.em-contact__body p:last-child {
  margin-bottom: 0;
}

/* --- Contact Guide Box --- */
.em-contact__guide {
  margin-top: 32px;
  padding: 24px;
  background: var(--em-gray-light);
  border-radius: 8px;
  font-size: 14px;
}

.em-contact__guide-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--em-text);
}

.em-contact__guide-list {
  padding-left: 20px;
  line-height: 2;
  color: var(--em-text);
}

.em-contact__guide-sublist {
  list-style: disc;
  padding-left: 20px;
  margin-top: 4px;
  line-height: 1.8;
}

.em-contact__guide-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--em-gray);
}

/* --- Accordions --- */
.em-contact__accordions {
  max-width: 640px;
  margin: 0 auto 48px;
}

.em-contact__email {
  margin-top: 16px;
}

.em-contact__restriction {
  margin-top: 24px;
  padding: 20px;
  background: var(--em-offwhite);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.8;
}

.em-contact__restriction-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.em-contact__restriction-list {
  padding-left: 20px;
  margin-bottom: 12px;
  list-style: disc;
}

/* --- Notice Box --- */
.em-contact__notice {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  background: var(--em-border);
  border-radius: 10px;
}

.em-contact__notice-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--em-red);
  margin-bottom: 12px;
}

.em-contact__notice-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 19.6px;
  color: var(--em-text-secondary);
  margin-bottom: 8px;
}

.em-contact__notice-text:last-child {
  margin-bottom: 0;
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.em-privacy-hero {
  position: relative;
  isolation: isolate;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  overflow: hidden;
}

.em-privacy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/hero/hero-bg.webp') 50% 50% / cover no-repeat fixed;
  z-index: -1;
}

.em-privacy-hero .em-container {
  max-width: none;
  padding: 0;
}

.em-privacy-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  line-height: 72px;
  color: var(--em-white);
}

.em-privacy-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  line-height: 44.8px;
  letter-spacing: 1.4px;
  color: var(--em-white);
  margin-top: 24px;
}

.em-privacy-section {
  background: var(--em-offwhite);
  padding: 96px 0;
}

.em-privacy-section .em-container {
  max-width: none;
  padding: 0 96px;
}

.em-privacy__card {
  max-width: 1248px;
  margin: 0 auto;
  background: var(--em-white);
  border-radius: 10px;
  padding: 96px 96px 96px 124px;
  box-shadow: 40px 50px 30px 0 rgba(0, 0, 0, 0.2);
}

.em-privacy__card > p {
  font-size: 16px;
  font-weight: 400;
  color: var(--em-text-secondary);
  line-height: 22.4px;
  margin-bottom: 10px;
}

.em-privacy__card h2 {
  font-family: var(--em-font-jp);
  font-size: 32px;
  font-weight: 700;
  color: var(--em-text-secondary);
  line-height: 44.8px;
  margin-top: 48px;
  margin-bottom: 10px;
}

.em-privacy__card h3 {
  font-family: var(--em-font-jp);
  font-size: 16px;
  font-weight: 700;
  color: var(--em-text-secondary);
  line-height: 22.4px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.em-privacy__card ul,
.em-privacy__card ol {
  list-style: none;
  padding-left: 20px;
  margin-bottom: 10px;
}

.em-privacy__card ul li {
  font-size: 16px;
  font-weight: 400;
  color: var(--em-text-secondary);
  line-height: 22.4px;
  margin-bottom: 10px;
}

.em-privacy__card a {
  color: var(--em-blue);
}

/* 条項番号（warranty.html 等）— 本文内の （1）〜（10） を視覚的に強調 */
.em-privacy__number {
  display: inline-block;
  color: var(--em-blue);
  font-weight: 700;
  margin-right: 4px;
}

/* 改定日 — 本文から弱めて右寄せ */
.em-privacy__card .em-privacy__revision-date {
  margin-top: 40px;
  text-align: right;
  font-size: 14px;
  color: var(--em-gray);
}

.em-privacy-breadcrumb {
  background: var(--em-offwhite);
  padding: 24px 0;
}

.em-privacy-breadcrumb .em-container {
  max-width: none;
  padding: 0;
}

.em-privacy-breadcrumb__text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 128px;
}

.em-privacy-breadcrumb__text a {
  font-size: 12px;
  font-weight: 600;
  color: var(--em-gray);
  text-decoration: none;
  line-height: 16.8px;
}

.em-privacy-breadcrumb__text .material-icons {
  font-size: 16px;
  color: var(--em-blue);
}

.em-privacy-breadcrumb__current {
  font-size: 12px;
  font-weight: 600;
  color: var(--em-blue);
  line-height: 16.8px;
}

/* ============================================
   STAFF PROFILE PAGE
   ============================================ */

/* --- Staff Hero --- */
.em-staff-hero {
  position: relative;
  height: 525px;
  padding: 192px 128px 96px;
  color: var(--em-white);
  background:
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%),
    url('../images/hero/hero-bg.webp') 50% 50% / cover no-repeat fixed;
}

.em-staff-hero .em-container {
  padding: 0;
  max-width: none;
}

.em-staff-hero__title {
  font-family: var(--em-font-en);
  font-size: 72px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 72px;
  color: var(--em-white);
  margin-bottom: 24px;
}

.em-staff-hero__subtitle {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-white);
}

/* --- YOUR SOUND JOURNEY Intro --- */
.em-staff-intro {
  padding: 96px 48px;
  background: var(--em-offwhite);
}

.em-staff-intro .em-container {
  padding: 0;
  max-width: none;
  text-align: center;
}

.em-staff-intro__title {
  font-family: var(--em-font-en);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 64px;
  color: var(--em-black);
  margin-bottom: 24px;
}

.em-staff-intro__lead {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 44.8px;
  color: var(--em-black);
  margin-bottom: 48px;
}

.em-staff-intro__body {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

/* --- Profile Card --- */
.em-staff-card {
  background: var(--em-white);
  padding: 96px;
}

.em-staff-card .em-container {
  padding: 0;
  max-width: none;
}

.em-staff-card__profile-title {
  font-family: var(--em-font-jp);
  font-size: 48px;
  font-weight: 600;
  color: var(--em-blue);
  text-align: center;
  margin-bottom: 48px;
}

.em-staff-card__content {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 1056px;
  margin: 0 auto;
}

.em-staff-card__photo {
  width: 625px;
  height: 441px;
  flex-shrink: 0;
  overflow: hidden;
}

.em-staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.em-staff-card__info {
  flex: 1;
  padding-top: 24px;
}

.em-staff-card__role {
  font-size: 20px;
  font-weight: 600;
  color: var(--em-blue);
  margin-bottom: 12px;
  line-height: 28px;
}

.em-staff-card__name {
  font-family: var(--em-font-jp);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--em-black);
  line-height: 33.6px;
}

.em-staff-card__bio {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
}

/* --- Interview Sections --- */
.em-staff-interview {
  padding: 96px 48px;
  background: var(--em-offwhite);
}

.em-staff-interview .em-container {
  padding: 0;
  max-width: none;
}

.em-staff-interview__quote {
  font-family: var(--em-font-jp);
  font-size: 28px;
  font-weight: 700;
  line-height: 44.8px;
  color: var(--em-black);
  max-width: 800px;
  margin: 0 auto 48px;
}

.em-staff-interview__body {
  max-width: 672px;
  margin: 0 auto;
}

.em-staff-interview__body p {
  font-size: 16px;
  font-weight: 700;
  line-height: 25.6px;
  letter-spacing: 0.8px;
  color: var(--em-black);
  text-align: justify;
  margin-bottom: 24px;
}

.em-staff-interview__body p:last-child {
  margin-bottom: 0;
}

/* --- Back Button --- */
.em-staff-back {
  padding: 48px;
  background: var(--em-offwhite);
}

.em-staff-back .em-container {
  padding: 0;
  max-width: none;
}

.em-staff-back__wrap {
  text-align: center;
}

.em-staff-back__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--em-black);
  color: var(--em-white);
  padding: 12px 48px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.em-staff-back__btn .material-icons {
  font-size: 18px;
}

/* --- Staff Breadcrumb --- */
.em-staff-breadcrumb {
  padding: 24px 128px;
  background: var(--em-offwhite);
}

.em-staff-breadcrumb .em-container {
  padding: 0;
  max-width: none;
}

.em-staff-breadcrumb__text {
  font-size: 12px;
  font-weight: 600;
  color: var(--em-blue);
}

.em-staff-breadcrumb__text a {
  color: var(--em-blue);
  text-decoration: none;
}

/* --- Staff Page Responsive --- */
@media (max-width: 1023px) {
  .em-staff-card__content {
    flex-direction: column;
  }

  .em-staff-card__photo {
    width: 100%;
    height: 300px;
  }
}

@media (max-width: 767px) {
  .em-staff-hero {
    padding: 120px 24px 48px;
    height: auto;
  }

  .em-staff-hero__title {
    font-size: 36px;
    line-height: 40px;
  }

  .em-staff-intro__title {
    font-size: 32px;
    line-height: 40px;
  }

  .em-staff-card {
    padding: 48px 24px;
  }

  .em-staff-card__profile-title {
    font-size: 28px;
  }

  .em-staff-card__photo {
    width: 100%;
    height: 250px;
  }

  .em-staff-interview {
    padding: 48px 24px;
  }

  .em-staff-interview__quote {
    font-size: 20px;
    line-height: 32px;
  }
}

/* --- Reduced Motion (non-animation elements) --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .em-header {
    transition: none;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1023px) {
  .em-container {
    padding: 0 24px;
  }

  .em-header__inner {
    padding: 0 24px;
  }

  .em-header__nav {
    display: none;
  }

  /* iOS Safari does not support background-attachment: fixed */
  .em-whatwedo,
  .em-company-hero,
  .em-careers-hero,
  .em-news-hero::before,
  .em-contact-hero,
  .em-privacy-hero::before,
  .em-staff-hero {
    background-attachment: scroll;
  }

  .em-header__hamburger {
    display: flex;
  }

  .em-hero__content {
    padding: 192px 48px 96px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  /* Tablet: ヒーロータイトル縮小（PC 96px → 72px）。
     768px 幅では content 幅 672px に対し PC サイズの 96px だと
     scrollWidth 881px で 209px overflow する。72px が overflow なく
     収まる最大値（2026-04-21 計測）。
     PC 96px / Mobile 32px の中間に位置する。 */
  .em-hero__title-main,
  .em-hero__title-sub {
    font-size: 72px;
    letter-spacing: 7.2px;
    line-height: 79.2px;
  }

  .em-whatwedo__title {
    font-size: 48px;
    line-height: 67.2px;
  }

  .em-philosophy__grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .em-company-hero {
    padding: 120px 48px 48px;
    height: auto;
  }

  .em-mission__image {
    width: 100%;
    height: 300px;
  }

  .em-about__content {
    flex-direction: column;
  }

  .em-about__right {
    width: 100%;
  }

  .em-about__image {
    width: 100%;
    height: 200px;
  }

  .em-about__maps {
    gap: 24px;
  }

  .em-en-brands {
    padding: 64px 0;
  }

  .em-en-brands__title {
    font-size: 36px;
  }

  .em-en-brands__subtitle {
    margin-bottom: 40px;
  }

  .em-en-brands__logos {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
  }

  .em-en-brands__logo {
    padding: 0;
  }

  .em-en-about {
    min-height: 500px;
  }

  .em-en-about__map {
    height: 70%;
    top: 15%;
  }

  .em-en-about__map-tooltip {
    font-size: 11px;
    padding: 10px 12px;
  }

  .em-en-about__content {
    padding: 72px 48px;
    max-width: 600px;
  }

  .em-en-about__title {
    font-size: 44px;
  }

  .em-en-about__subtitle {
    font-size: 16px;
  }

  .em-en-about__stats {
    gap: 32px;
  }

  .em-en-about__stat-number {
    font-size: 28px;
  }

  .em-en-about__info-row {
    flex-direction: column;
    gap: 2px;
  }

  .em-en-about__info-row dt {
    flex: none;
  }

  .em-careers-hero {
    padding: 120px 48px 48px;
    height: auto;
  }

  .em-careers-section {
    padding: 64px 24px;
  }

  .em-portfolio__title,
  .em-news__title,
  .em-careers__title {
    font-size: 48px;
    line-height: 48px;
  }

  .em-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .em-partners {
    padding: 64px 24px;
  }

  .em-partners__list {
    grid-template-columns: 1fr 1fr;
  }

  .em-footer__cta-row {
    grid-template-columns: 1fr;
    padding: 0 24px 48px;
  }

  /* Privacy / Warranty の本文コンテナ — desktop 0 96px のままで mobile で card が細すぎる問題対策 */
  .em-privacy-section .em-container {
    padding: 0 24px;
  }

  .em-contact-cta__inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .em-footer__nav-row {
    flex-direction: column;
    padding: 0 24px;
    gap: 16px;
  }

  .em-footer__company {
    margin-right: 0;
  }

  .em-footer__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }

  .em-contact__card {
    padding: 64px 48px;
  }

  .em-privacy__card {
    padding: 64px 48px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --em-section-padding: 80px 0;
    --em-header-height: 60px;
  }

  .em-container {
    padding: 0 24px;
  }

  /* Issue #290: ヘッダーロゴを左上に詰める（モバイル） */
  .em-header {
    padding: 16px 16px;
  }

  .em-header__inner {
    padding: 0;
  }

  .em-header__logo img {
    width: 160px;
  }

  /* Issue #294: ヘッダー（高さ約 90px）とタイトル被り解消。10px マージン確保 */
  .em-hero__content {
    padding: 100px 24px 0;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .em-hero__title-main,
  .em-hero__title-sub {
    font-size: 32px;
    letter-spacing: 3.2px;
    line-height: 36px;
  }

  /* モバイルで主要 CTA（hero 黒ボタン）のみ中央寄せ。本文/タイトルは左寄せ維持 */
  .em-hero__cta {
    display: flex;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    margin-top: 32px;
  }

  /* Issue #295: WHAT WE DO 本文の左右余白 20px */
  .em-whatwedo {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Issue #296: Contact / Careers セクションの左右マージン適正化 (96px/48px → 20px) */
  .em-contact-cta {
    padding-left: 20px;
    padding-right: 20px;
  }

  .em-careers {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Issue #303: HOME NEWS セクションの左右マージンを CONTACT/CAREERS と揃える (48px → 20px) */
  .em-news {
    padding-left: 20px;
    padding-right: 20px;
  }

  .em-hero__title {
    margin-bottom: 80px;
  }

  .em-hero__subtext {
    font-size: 18px;
    letter-spacing: 0.9px;
    line-height: 28.8px;
  }

  .em-hero__body {
    font-size: 14px;
    line-height: 22.4px;
  }

  .em-whatwedo__title {
    font-size: 32px;
    line-height: 44.8px;
  }

  .em-portfolio__card {
    flex-direction: column;
    height: auto;
  }
  .em-portfolio__card--reverse {
    flex-direction: column;
  }
  .em-portfolio__card-image,
  .em-portfolio__card-body {
    width: 100%;
  }
  .em-portfolio__card-image {
    height: 300px;
  }
  .em-portfolio__card-body {
    padding: 24px 0 0;
  }
  .em-portfolio__card--reverse .em-portfolio__card-body {
    padding: 24px 0 0;
  }

  .em-philosophy__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0;
  }

  .em-company-hero {
    padding: 80px 24px 32px;
    height: auto;
  }

  .em-company-hero__title {
    font-size: 40px;
    line-height: 40px;
  }

  .em-company-hero__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .em-company-section {
    padding: 48px 24px;
  }

  .em-company-section__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-company-section__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .em-mission__lead,
  .em-philosophy__lead,
  .em-value__item-lead {
    font-size: 18px;
    line-height: 28px;
  }

  .em-value__item {
    padding: 48px 24px;
  }

  .em-value__item-title {
    font-size: 22px;
    line-height: 28px;
  }

  .em-partners {
    padding: 48px 24px;
  }

  .em-partners__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-partners__list {
    grid-template-columns: 1fr;
  }

  .em-about {
    padding: 48px 24px;
  }

  .em-about__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-about__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .em-mission__image {
    width: 100%;
    height: 200px;
  }

  .em-about__image {
    width: 100%;
    height: 180px;
  }

  .em-about__maps {
    flex-direction: column;
  }

  .em-about__table th {
    display: block;
    width: 100%;
    padding-bottom: 4px;
  }

  .em-about__table td {
    display: block;
    padding-top: 0;
  }

  .em-en-about {
    min-height: auto;
  }

  .em-en-about__map {
    display: none;
  }

  .em-en-about__content {
    padding: 64px 24px;
    max-width: none;
  }

  .em-en-about__title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .em-en-about__subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .em-en-about__body {
    font-size: 14px;
  }

  .em-en-about__stats {
    gap: 24px;
    margin-top: 32px;
    padding-top: 24px;
  }

  .em-en-about__stat-number {
    font-size: 24px;
  }

  .em-en-about__stat-label {
    font-size: 11px;
  }

  .em-en-about__cta {
    margin-top: 32px;
    padding: 12px 24px;
    font-size: 14px;
  }

  .em-discover__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Issue #309: DISCOVER EMILAI カードの内部余白をモバイルで縮小 (48px → 24px) */
  .em-discover__card {
    padding: 32px 24px;
    box-shadow: 8px 8px 16px 0 rgba(0, 0, 0, 0.1);
  }

  .em-discover__card-label {
    font-size: 24px;
    line-height: 32px;
  }

  .em-team__card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Issue #308: チームメンバー顔写真をモバイルで縮小（749x420 → 100%幅 x 250px、ヒーロー下画像と同サイズ） */
  .em-team__grid {
    gap: 48px;
  }

  .em-team__photo {
    width: 100%;
    height: 250px;
  }

  /* Issue #309: MEET THE TEAM 〜 募集一覧のテキスト幅を統一 + フォント縮小 */
  .em-meet-section {
    padding: 48px 20px;
  }

  .em-meet__text {
    max-width: none;
  }

  .em-team__info {
    padding: 24px 0 0;
    width: 100%;
  }

  .em-team__bio {
    max-width: none;
  }

  .em-recruitment {
    padding: 48px 20px;
  }

  .em-recruitment__title {
    font-size: 28px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .em-recruitment__empty {
    padding: 32px 24px;
  }

  .em-recruitment__empty-title {
    font-size: 20px;
    line-height: 32px;
  }

  .em-recruitment__empty-text {
    font-size: 16px;
    line-height: 25.6px;
  }

  .em-careers-hero {
    padding: 80px 24px 32px;
    height: auto;
  }

  .em-careers-hero__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-careers-hero__subtitle {
    font-size: 18px;
    line-height: 28.8px;
  }

  /* Issue #309: JOIN OUR TEAM / DISCOVER EMILAI の左右余白を CTA/CAREERS と揃える */
  .em-careers-section {
    padding: 48px 20px;
  }

  .em-careers-section__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-news-hero {
    padding: 80px 24px 32px;
    height: auto;
  }

  .em-news-hero__title {
    font-size: 40px;
    line-height: 44px;
  }

  .em-news-hero__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .em-news-section {
    padding: 48px 24px;
  }

  .em-news-section__filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .em-contact-hero {
    padding: 80px 24px 32px;
    height: auto;
  }

  .em-contact-hero__title {
    font-size: 40px;
    line-height: 44px;
  }

  .em-contact-hero__subtitle {
    font-size: 18px;
    line-height: 28px;
  }

  .em-contact-section {
    padding: 48px 24px;
  }

  .em-whatwedo__content {
    max-width: 100%;
  }

  .em-whatwedo__subtitle {
    max-width: 100%;
  }

  .em-portfolio__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-news__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-news__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .em-news__header {
    margin-bottom: 40px;
  }

  .em-careers__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-careers__inner {
    flex-direction: column;
  }

  .em-careers__image {
    width: 100%;
    height: 300px;
  }

  .em-join__image {
    width: 100%;
    height: 250px;
  }

  .em-contact-cta__title {
    font-size: 28px;
    line-height: 28px;
  }

  .em-hero__scroll {
    right: 24px;
  }

  .em-hero__scroll-text {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .em-footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .em-footer__cta-card {
    padding: 32px 24px;
  }

  .em-page-header {
    padding-top: calc(var(--em-header-height) + 48px);
    padding-bottom: 32px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .em-page-header__title {
    font-size: 40px;
    line-height: 44px;
  }

  .em-contact__card {
    padding: 48px 24px;
  }

  .em-privacy__card {
    padding: 48px 24px;
  }

  /* Privacy / Warranty hero — mobile 折り返し崩れ対策 */
  .em-privacy-hero {
    height: auto;
    min-height: 280px;
    padding: 120px 24px 48px;
  }

  .em-privacy-hero__title {
    font-size: 40px;
    line-height: 48px;
  }

  .em-privacy-hero__subtitle {
    font-size: 18px;
    line-height: 27px;
    letter-spacing: 0.9px;
    margin-top: 12px;
  }

  /* Breadcrumb mobile — padding-left: 128px が画面外にはみ出すため縮小 */
  .em-privacy-breadcrumb__text {
    padding-left: 24px;
  }
}

/* --- Language Banner (non-Japanese visitors) --- */
.em-lang-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background: var(--em-blue);
  color: var(--em-white);
  font-family: var(--em-font-en);
  font-size: 14px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0.4, 0, 1);
}

.em-lang-banner--visible {
  transform: translateY(0);
}

.em-lang-banner__inner {
  max-width: var(--em-max-width);
  margin: 0 auto;
  padding: 12px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.em-lang-banner__text {
  font-weight: 500;
  letter-spacing: 0.3px;
}

.em-lang-banner__link {
  color: var(--em-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--em-transition);
}

.em-lang-banner__link:hover {
  opacity: 0.7;
}

.em-lang-banner__close {
  background: none;
  border: none;
  color: var(--em-white);
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
  line-height: 1;
  font-size: 20px;
  opacity: 0.7;
  transition: opacity var(--em-transition);
}

.em-lang-banner__close:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .em-lang-banner__inner {
    padding: 12px 24px;
    gap: 12px;
    font-size: 13px;
  }
}
