
/*
Theme Name: MAYBACS LP Theme
Theme URI: https://maybacs.jp/
Author: MAYBACS
Description: MAYBACS専用の1ページLPテーマ
Version: 2.0
*/

/* ------------------------------
   ベース変数
------------------------------ */
:root {
  --color-bg-dark: #0b1020;
  --color-bg-light: #ffffff;
  --color-accent: #f4b300;
  --color-text-main: #111111;
  --color-text-light: #f7f7f7;
  --max-width: 1120px;
}

/* ------------------------------
   リセット
------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "YuGothic",
    "游ゴシック", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
  color: var(--color-text-main);
  background: var(--color-bg-light);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}

.pc-only {
  display: none;
}

/* ------------------------------
   レイアウト
------------------------------ */
#lp-main {
  margin-top: 64px;
}

.section {
  padding: 80px 20px;
}
.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}
.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 12px;
}
.section__title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
}
.section__lead {
  font-size: 16px;
  margin-bottom: 24px;
}

/* ------------------------------
   固定ヘッダー（スマホのみ）
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(11,16,32,0.95);
  color: #fff;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.site-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}
.site-logo span {
  display: block;
  font-size: 10px;
  opacity: 0.7;
}

.hamburger {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}
.hamburger span {
  background: #fff;
  height: 2px;
  transition: 0.2s;
}
.hamburger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ------------------------------
   左スライドナビ（SP）
------------------------------ */
.site-nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  width: 80vw;
  max-width: 320px;
  background: #050814;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 998;
}
.site-nav-mobile.is-open {
  transform: translateX(0);
}
.site-nav-mobile__logo {
  display: none;
}
.site-nav-mobile__list {
  list-style: none;
  padding: 20px 20px 32px;
}
.site-nav-mobile__item + .site-nav-mobile__item {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.site-nav-mobile__link {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  color: #fff;
}

body.menu-open {
  overflow: hidden;
}

/* ------------------------------
   KV
------------------------------ */
.kv {
  height: 100vh;
  min-height: 480px;
  background: #050814;
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.kv::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0,0,0,0.1), rgba(5,8,20,0.95));
}
.kv__inner {
  position: relative;
}
.kv__title {
  font-size: 36px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kv__subtitle {
  font-size: 13px;
  opacity: 0.8;
  text-transform: uppercase;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
  padding: 120px 20px 80px;
  background: radial-gradient(circle at top, #1b264a 0, #050814 45%, #050814 100%);
  color: #fff;
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.hero__title {
  font-size: 30px;
  font-weight: 700;
}
.hero__subtitle {
  max-width: 640px;
  font-size: 15px;
}

/* ------------------------------
   Cards
------------------------------ */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}
.section--dark .card {
  background: rgba(255,255,255,0.06);
}
.card__title {
  font-size: 18px;
  font-weight: 600;
}

/* ------------------------------
   NUMBERS
------------------------------ */
.numbers {
  display: grid;
  gap: 16px;
}
.number-card {
  background: rgba(5,8,20,0.95);
  padding: 18px 20px;
  border-radius: 12px;
  color: #fff;
}

/* ------------------------------
   COMPANY TABLE
------------------------------ */
.company-table {
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
}
.company-table th {
  font-weight: 600;
  width: 32%;
}

/* ------------------------------
   PCレイアウト
------------------------------ */
@media (min-width: 1024px) {

  /* スマホヘッダーは削除 */
  .site-header {
    display: none !important;
  }

  /* 左固定メニュー（常時表示） */
  .site-nav-mobile {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    transform: none !important;
    width: 260px !important;
    max-width: none !important;
    background: #050814;
    padding-top: 24px;
  }

  /* メニュー内ロゴを表示 */
  .site-nav-mobile__logo {
    display: block;
    padding: 0 20px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.12em;
  }
  .site-nav-mobile__logo span {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 4px;
  }

  /* メインコンテンツを右側に押し出す */
  #lp-main {
    margin-left: 260px !important;
    margin-top: 0 !important;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .numbers {
    grid-template-columns: repeat(3, 1fr);
  }

  .pc-only {
    display: inline;
  }
}
/* ==============================
   ボタン共通スタイル
   ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease,
    box-shadow 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* メインカラーのボタン（オレンジ） */
.btn--primary {
  background: var(--color-accent);
  color: #111111;
  border-color: var(--color-accent);
}

/* 枠線だけのボタン（セクションの背景で色を変える） */
.btn--outline {
  background: transparent;
  border-color: #111111;
  color: #111111;
}

/* ダーク背景の上に乗るアウトラインボタン（例：HERO内） */
.hero .btn--outline,
.section--dark .btn--outline {
  border-color: #ffffff;
  color: #ffffff;
}

/* CONTACTのボタン並び */
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (max-width: 767px) {
  .contact-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ==============================
   FOOTER（コピーライト帯）
   ============================== */

.site-footer {
  width: 100%;
  padding: 24px 16px;
  background: #050814; /* 紺に近いダークカラー（元のデザイン） */
  color: rgba(255,255,255,0.75);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
}

/* モバイル用の下余白の調整（Safariのバー対策） */
@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
/* 代表者名はCSSの疑似要素で表示（HTMLには書かない） */
.company-representative::before {
  content: "社長 兼 CEO 西村 光揮";
}
/* ============================
   スマホ専用ヘッダー透明化
   ============================ */
@media (max-width: 767px) {

  /* ヘッダーを消す代わりに高さをゼロにする */
  .site-header {
    background: transparent !important;
    box-shadow: none !important;
    height: 0 !important;
    padding: 0 !important;
  }

  .site-header__inner {
    height: 0 !important;
    padding: 0 !important;
  }

  /* ハンバーガーを左上にフローティング表示 */
  #js-hamburger {
    position: fixed !important;
    top: 20px !important;      /* ← iPhoneステータスバーと被らない高さ */
    left: 20px !important;

    width: 42px !important;
    height: 42px !important;
    padding: 10px !important;

    border: 2px solid rgba(255,255,255,0.7) !important;
    border-radius: 10px !important;
    background: rgba(0,0,0,0.15) !important;
    backdrop-filter: blur(6px);

    z-index: 9999 !important;
  }

  #js-hamburger span {
    background: #fff !important;
    height: 2px !important;
    width: 100% !important;
  }

  /* KV（トップ画像）をヘッダーに潜り込ませる */
  .kv {
    margin-top: -40px !important; /* ← 白帯の発生を完全に消す */
  }
}

/* =====================================
   スマホ専用：ヘッダーを透明オーバーレイ化
   ===================================== */
@media (max-width: 767px) {

  /* ヘッダーを背景画像の上に“かぶせる” */
  .site-header {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  /* ヘッダー分の余白をなくす（白帯の正体） */
  #lp-main {
    margin-top: 0 !important;
  }

  /* ロゴは非表示のまま */
  .site-logo {
    display: none !important;
  }

  /* ハンバーガーボタンの見やすさアップ */
  #js-hamburger {
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(6px);
    padding: 5px !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    width: 40px !important;
    height: 32px !important;
    left: 16px !important;
    top: 30px !important;
  }

  #js-hamburger span {
    height: 3px !important;
    background: #fff !important;
  }

  /* KV背景は上から表示 */
  .kv {
    background-position: top center !important;
    background-size: cover !important;
  }
}
#js-hamburger {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 4px !important; /* ← 三本線の間隔 */
}

/* =======================================
   スマホ専用：ヘッダーを完全透明＆高さゼロ
======================================= */
@media (max-width: 767px) {
  .site-header {
    background: transparent !important;
    height: 0 !important;
    padding: 0 !important;
  }

  .site-header__inner {
    height: 0 !important;
    padding: 0 !important;
    overflow: visible !important; /* メニューだけ浮かせる */
  }

  /* スマホロゴ非表示（高さを消すため） */
  .site-logo {
    display: none !important;
  }

  /* ハンバーガーを絶対配置で浮かせる */
  #js-hamburger {
    position: fixed !important;
    top: 32px !important;   /* ← ここで好きなだけ下げられる */
    left: 16px !important;
    z-index: 9999 !important;

    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255,255,255,0.4) !important;
    padding: 10px !important;
    border-radius: 10px !important;
    width: 40px !important;
    height: 32px !important;
  }
}
/* ================================
   スマホ：ナビ背景を上まで伸ばす
   （中身の位置はそのままキープ）
   ================================ */
@media (max-width: 767px) {

  /* 黒いパネル自体を画面最上部から表示 */
  .site-nav-mobile {
    top: 0 !important;
  }

  /* その代わり、リストの上にヘッダー分の余白を足す */
  .site-nav-mobile__list {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    /* もっと下げたかったら 64px を 72px, 80px とかにしてOK */
  }
}
