/* ========================================
   CSS VARIABLES（全ページ共通の正本）
======================================== */
:root {
  /* --- 基本カラー --- */
  --bg:          #343330;
  --surface:     #403E3A;
  --accent:      #FFD600;
  --text:        #F0EFE8;
  --muted:       #A8A69E;
  --border:      #535149;
  --footer-bg:   #2C2B28;
  --white:       #FFFFFF;

  /* --- セクションアクセント（5色システム・全ページ共通の正本） --- */
  --blue:        #4A86E8;  /* 会社概要 */
  --teal:        #00C8B8;  /* 働く環境 */
  --purple:      #A56EFF;  /* 社員インタビュー */
  --red:         #FF5A5F;  /* NEWS・情熱/チャレンジ系 */

  /* --- 角丸スケール --- */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   40px;
  --radius-pill: 999px;

  /* --- レイアウト --- */
  --header-h:       72px;
  --hero-photo-gap: 60px;
  --hero-h-tablet:  45vh;
  --hero-photo-ratio: 1.6;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Murecho', sans-serif;
  font-size: 16px;
  font-weight: 500;
  overflow-x: hidden;
}

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

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Murecho', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 12px 28px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-pill { border-radius: var(--radius-pill); }
.btn-lg   { font-size: 16px; padding: 16px 36px; }

.btn-accent {
  background: var(--accent);
  color: #2A2925;
}
.btn-accent:hover { opacity: 0.9; }

.header-entry-btn {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 8px 20px;
  overflow: hidden;
}

.btn-dark {
  background: #2A2925;
  color: #fff;
}
.btn-dark:hover { opacity: 0.85; }

.btn-white {
  background: #fff;
  color: #0D0D0D;
  align-self: flex-start;
}
.btn-white:hover { opacity: 0.85; }

.btn-arrow {
  font-style: normal;
  transition: transform 0.2s;
}
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ========================================
   HEADER
======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.header.is-scrolled {
  background: rgba(42, 41, 37, 0.95);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
}

.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-logo-sub {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  line-height: 1;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}

.header-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  font-family: 'Murecho', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius-pill);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  padding: 24px 40px;
  overflow-y: auto;
}

.mobile-nav.is-open { display: block; }

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-list a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s;
}
.mobile-nav-list a:hover { color: var(--accent); }

/* ========================================
   FOOTER
======================================== */
.footer {
  background: var(--footer-bg);
  padding: 0;
}

.footer-divider {
  height: 1px;
  background: var(--border);
}

.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: center;
}

.footer-nav-list a {
  font-size: 12px;
  color: var(--text);
  transition: color 0.2s;
}
.footer-nav-list a:hover { color: var(--accent); }

.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  margin-left: auto;
}

/* ========================================
   RESPONSIVE（ヘッダー・フッターの共通調整のみ）
======================================== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  .header-inner > .btn {
    display: none;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .header-inner > .btn {
    display: inline-flex;
    margin-left: auto;
  }
  .hamburger {
    margin-left: -24px;
  }
}

/* --- mobile (≤768px) --- */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
    gap: 16px;
  }
  .header-logo-sub {
    display: none;
  }
  .header-inner > .btn {
    display: inline-flex;
    margin-left: auto;
    font-size: 14px;
    padding: 6px 14px;
  }
  .hamburger {
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 6vw;
    text-align: center;
  }
  .footer-nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
  }
  .footer-copy {
    margin-left: 0;
  }
}

/* ========================================
   COOKIE CONSENT
======================================== */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.cookie-consent.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
}

.cookie-consent__text {
  flex: 1;
  min-width: 240px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}

.cookie-consent__link {
  color: var(--text);
  text-decoration: underline;
}

.cookie-consent__button {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .cookie-consent {
    padding: 16px 20px;
  }
}

/* ========================================
   BACK TO TOP
======================================== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #2A2925;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  /* モバイルはUniweb(アクセシビリティウィジェット)アイコンと重なるため位置を上げる */
  .back-to-top {
    bottom: 96px;
    right: 16px;
  }
}
