@charset "utf-8";

/* ============================================================================
 * File: assets/css/common.css
 * Role: サイト共通スタイル（テーマ変数・リセット・ヘッダー・フッター・ドロワー）
 * ========================================================================== */

/* --- Google Fonts --- */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* =====================================================
 * 1. テーマ変数（切替はここだけ！）
 * ===================================================== */

:root {
  /* ===== テーマA：ダークネイビー + ゴールド（現在使用中）===== */
  --theme-bg-dark: #0d1b2a;
  --theme-accent: #c9a84c;
  --theme-accent-hover: #d4b65e;
  --theme-accent-rgb: 201, 168, 76;

  /* ===== テーマB：チャコール + ティールグリーン =====
  --theme-bg-dark: #1a1a2e;
  --theme-accent: #26c8c4;
  --theme-accent-hover: #2ee0db;
  --theme-accent-rgb: 38, 200, 196;
  */

  /* ===== テーマC：ダークネイビー + ローズゴールド =====
  --theme-bg-dark: #0f1923;
  --theme-accent: #b76e79;
  --theme-accent-hover: #cf8a94;
  --theme-accent-rgb: 183, 110, 121;
  */

  /* --- 共通カラー（テーマ変更不要）--- */
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #999999;
  --color-bg-light: #f5f5f5;
  --color-border: #e0e0e0;

  /* --- フォント --- */
  --font-en: "Montserrat", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-main: var(--font-jp);

  /* --- ヘッダー高さ --- */
  --header-height: 70px;

  /* --- トランジション --- */
  --transition-base: 0.3s ease;
}

/* =====================================================
 * 2. リセット ＆ ベーススタイル
 * ===================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base);
}

ul,
ol {
  list-style: none;
}

/* =====================================================
 * 3. ヘッダー
 * ===================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition-base);
}

/* スクロール前（透過）*/
.site-header--transparent {
  background: transparent;
}

/* スクロール後（背景あり）*/
.site-header--scrolled {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

/* --- ロゴ --- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo__main {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.site-logo__sub {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--theme-accent-hover);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 0 8px rgba(var(--theme-accent-rgb), 0.4);
}

/* --- PCナビゲーション --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav__link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-white);
  transition: width var(--transition-base);
}

.site-nav__link:hover::after,
.site-nav__link--active::after {
  width: 100%;
}

/* カスタムドロップダウン (採用情報用) */
.site-nav__item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.site-nav__dropdown {
  position: absolute;
  top: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 100;
}

/* リンクとドロップダウンの間の隙間でホバーが途切れないようにする透明な橋 */
.site-nav__dropdown::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  height: 30px;
}

.site-nav__dropdown-inner {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  padding: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.site-nav__item--has-dropdown:hover .site-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.site-nav__dropdown-link {
  display: block;
  padding: 12px 25px;
  color: #333;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.25s;
  text-align: left;
  position: relative;
}

.site-nav__dropdown-link:hover {
  background: rgba(var(--theme-accent-rgb, 201, 168, 76), 0.1);
  color: var(--theme-accent, #c9a84c);
  padding-left: 30px;
  padding-right: 20px;
}

.site-nav__dropdown-link::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--theme-accent, #c9a84c);
  transition: width 0.2s;
}

.site-nav__dropdown-link:hover::before {
  width: 8px;
}

/* ヘッダースクロール時のテキスト色反転対応 */
.site-header--scrolled .site-nav__dropdown-inner {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* --- ハンバーガーボタン --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  position: absolute;
  left: 0;
  transition: all var(--transition-base);
}

.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

/* 開いた時のアニメーション */
.hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* =====================================================
 * 4. ドロワーメニュー（スマホ用）
 * ===================================================== */

.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: var(--theme-bg-dark);
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: var(--header-height) 30px 40px;
}

.drawer.is-open {
  right: 0;
}

/* ×閉じるボタン */
.drawer__close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  z-index: 10;
}

.drawer__close-btn:hover {
  background: var(--theme-accent);
  color: var(--theme-bg-dark);
  transform: rotate(90deg);
}

.drawer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__nav-link {
  display: block;
  padding: 16px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: color var(--transition-base);
}

.drawer__nav-link:hover {
  color: var(--theme-accent);
}

/* 背景暗幕 */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base);
}

.drawer-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --- ドロワー内：運営ブランドセクション --- */
.drawer__brands {
  margin-top: 28px;
}

.drawer__brands-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, rgba(201, 168, 76, 0.18) 0%, rgba(201, 168, 76, 0.04) 100%);
  border-left: 3px solid var(--theme-accent);
  border-radius: 0 6px 6px 0;
  margin-bottom: 6px;
}

.drawer__brands-title-en {
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--theme-accent);
  text-transform: uppercase;
  line-height: 1;
}

.drawer__brands-title-ja {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
}

.drawer__brands-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.drawer__brands-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px 13px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.25s, padding-left 0.25s, background 0.25s;
  border-radius: 4px;
}

.drawer__brands-link:hover {
  color: var(--theme-accent);
  padding-left: 20px;
  background: rgba(201, 168, 76, 0.07);
}

.drawer__brands-link .external-icon {
  flex-shrink: 0;
  opacity: 0.5;
  transition: opacity 0.25s, transform 0.25s;
  margin-left: 6px;
}

.drawer__brands-link:hover .external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* =====================================================
 * 5. フッター
 * ===================================================== */

.site-footer {
  background: var(--theme-bg-dark);
  color: var(--color-white);
  margin-top: auto;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 20px;
}

/* --- フッターロゴ --- */
.site-footer__logo {
  text-align: center;
  margin-bottom: 30px;
}

.site-footer__logo-main {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 4px;
}

.site-footer__logo-sub {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--theme-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* --- フッターナビ --- */
.site-footer__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.site-footer__nav-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-base);
}

.site-footer__nav-link:hover {
  color: var(--theme-accent);
}

/* --- コピーライト --- */
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

/* =====================================================
 * 6. メインコンテンツ
 * ===================================================== */

.main-content {
  flex: 1;
}

/* ヘッダー分のスペースを確保（透過ヘッダー以外のページ用） */
.main-content--with-header-space {
  padding-top: var(--header-height);
}

/* =====================================================
 * 7. ユーティリティ
 * ===================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-accent {
  color: var(--theme-accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* =====================================================
 * 8. レスポンシブ（768px以下 = スマホ）
 * ===================================================== */

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  /* PCナビ非表示 → ハンバーガー表示 */
  .site-nav {
    display: none;
  }
  .hamburger {
    display: block;
  }

  /* ロゴサイズ縮小 */
  .site-logo__main {
    font-size: 1.1rem;
  }

  /* フッターナビ：2列グリッド */
  .site-footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    text-align: center;
  }

  /* フッター最下部縦積み */
  .site-footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* =====================================================
 * 9. ページトップへ戻るボタン（追加）
 * ===================================================== */

.page-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  background: var(--theme-accent);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(var(--theme-accent-rgb), 0.4);
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.page-top-btn svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.page-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top-btn:hover {
  background: var(--theme-accent-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(var(--theme-accent-rgb), 0.6);
}

@media (max-width: 768px) {
  .page-top-btn {
    bottom: calc(var(--bottom-nav-height) + 12px);
    right: 12px;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 769px) {
  .page-top-btn {
    bottom: calc(var(--bottom-nav-height) + 20px);
  }
}

/* =====================================================
 * 10. ボトム固定ナビゲーション（応募ボタン）
 * ===================================================== */

/* ナビ高さ変数 */
:root {
  --bottom-nav-height: 54px;
}

/* bodyにナビ分のpadding（フッター背景が隙間にならないよう0にして別途footer側で吸収） */
body {
  padding-bottom: var(--bottom-nav-height);
}

/* footerの下余白をナビ分だけ確保しコンテンツが隠れないようにする */
.site-footer {
  padding-bottom: 0;
  overflow: hidden; /* 余分な隙間をカット */
}

.bottom-cta-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  display: flex;
  z-index: 950;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bottom-cta-nav.is-visible {
  transform: translateY(0);
}

.bottom-cta-nav__item {
  flex: 1;
  display: flex;
  flex-direction: row;        /* アイコンとテキストを横並び */
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: filter 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.bottom-cta-nav__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.bottom-cta-nav__item:hover::before {
  background: rgba(255, 255, 255, 0.12);
}

.bottom-cta-nav__item:active {
  transform: scale(0.97);
}

/* LINE: グリーン */
.bottom-cta-nav__item--line {
  background: linear-gradient(135deg, #00b900 0%, #00c300 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* 電話: テーマアクセント */
.bottom-cta-nav__item--tel {
  background: linear-gradient(135deg, var(--theme-accent) 0%, var(--theme-accent-hover) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

/* メール: ダークネイビー */
.bottom-cta-nav__item--mail {
  background: linear-gradient(135deg, #1a3a5c 0%, #0d1b2a 100%);
}

.bottom-cta-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.bottom-cta-nav__label {
  line-height: 1;
  white-space: nowrap;
}

/* スマホ: アイコン少し小さめ */
@media (max-width: 768px) {
  .bottom-cta-nav__item {
    font-size: 0.75rem;
    gap: 6px;
  }
}
