/* =====================================================
   Company Page (emanon-business compatible)
===================================================== */

.company-page {
  background: #fff;
  color: #111;
  line-height: 1.9;
  overflow-x: hidden;
}

/* =====================================================
   SECTION COMMON
===================================================== */

.company-page section {
  padding: 40px 0;
}

.company-page .inner,
.company-page .p-company-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.company-page h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  margin-bottom: 32px;
  position: relative;
  padding-left: 16px;
}

.company-page h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 1.2em;
  background: #ff5a00;
}


/* =====================================================
   COMPANY FIRST VIEW
===================================================== */

.company-mv {
  position: relative;
  width: 100vw;
  height: 50vh;               /* 高さはここで調整 */
  min-height: 420px;
  background-image: url("https://megabox-nasu.com/wp-content/uploads/2026/01/archievements-kv.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* 背景オーバーレイ */
.company-mv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* テキスト中央配置 */
.company-mv__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* メインタイトル */
.company-mv__title {
  color: #ffffff;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

/* サブタイトル */
.company-mv__subtitle {
  display: block;
  margin-top: 12px;
  font-size: 24px;
  letter-spacing: 0.3em;
  font-weight: 400;
  opacity: 0.9;
}



/* =====================================================
   CEO MESSAGE（emanon-business 完全対応）
===================================================== */

.l-company-ceo {
  background: #fff;
  padding: 40px 16px;
}

/* ===== ヘッダー全体 ===== */
.p-company-header__ceo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

/* ===== 左：代表写真 ===== */
.p-company-ceo-header-img__left img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

/* ===== 右：動画エリア ===== */
.p-company-movie {
  position: relative;
  width: 100%;
}

/* フレーム画像（背景） */
.p-company-movie .p-company-ceo-header-img {
  position: relative;
  width: 100%;
}

.p-company-movie .p-company-ceo-header-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 動画をフレームの上に重ねる ===== */
.p-company-movie-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15% 6% 2%;
  box-sizing: border-box;
}

.p-company-movie-wrap iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 6px;
}

/* ===== テキストエリア ===== */
.p-company-body__ceo {
  font-size: 16px;
  line-height: 1.9;
}

.p-company-body__ceo h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 24px;
}

.p-company-text {
  margin-bottom: 20px;
}

.p-company-text span {
  color: #ff5a00;
  font-weight: 700;
}

/* ===== フッター（署名） ===== */
.p-company-footer__ceo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 40px;
  gap: 24px;
}

.p-company-footer-text p {
  font-weight: 800;
  font-size: 36px;
  margin: 0;
}

.p-company-footer-img img {
  max-width: 500px;
  height: auto;
}

.p-company-footer__ceo span {
  color: #ff5a00;
  font-weight: 700;
}


/* =====================================================
   STAFF
===================================================== */

.l-company-staff {
  background: #f7f7f7;
}


.p-company-staff-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.p-company-staff-img img {
  width: 100%;
  border-radius: 8px;
}

/* =====================================================
   COMPANY LINK
===================================================== */

.l-company-link {
  background: #f7f7f7;
  padding: 40px 16px 80px; /* ← 上下余白をしっかり取る */
}

/* 中央寄せ・最大幅 */
.p-company-link-inner {
  max-width: 1080px;  /* ← 添付画像の見た目に近い幅 */
  margin: 0 auto;
}

/* 3カラム */
.p-company-link-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;          /* ← 少し広めに */
}

/* 各カード */
.p-company-link-item {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;  /* ← 画像の白フチ感を安定させる */
  transition: transform .25s ease, box-shadow .25s ease;
}

/* hover */
.p-company-link-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0,0,0,.12);
}

/* 画像 */
.p-company-link-item img {
  width: 100%;
  height: auto;
  display: block;
}


/* =====================================================
   COMPANY CONTENTS（inner正規化）
===================================================== */

/* 背景だけを担当 */
.company-wrap {
  background: #f0f0f0;
  padding: 80px 0; /* ← 横paddingは持たせない */
}

/* 横幅と左右余白の本体 */
.company-wrap .inner {
  max-width: 1100px;   /* ← ここが重要 */
  margin: 0 auto;
  padding: 0 24px;     /* ← 左右の“逃げ” */
}

/* =====================
   Company Profile
===================== */

.profile-box {
  background: #ffffff;
  padding: 48px 56px;
  margin-bottom: 72px;
}

/* 見出し */
.profile-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: #c94715;
  margin-bottom: 24px;
}

/* 定義リスト */
.profile-box dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #cfcfcf;
  margin: 0;
}

.profile-box dt {
  font-weight: 700;
  color: #222;
}

.profile-box dd {
  margin: 0;
  color: #333;
  line-height: 1.6;
}

/* =====================
   Access Map
===================== */

.access-box {
  background: #ffffff;
  padding: 48px 56px;
}

.access-box h2 {
  font-size: 32px;
  font-weight: 800;
  color: #c94715;
  margin-bottom: 24px;
}

.maps iframe {
  width: 100%;
  height: 420px;
  border: 0;
}



/* =====================================================
   FACTORIES（FINAL）
===================================================== */

.l-factories {
  background: #f7f7f7;
  padding: 40px 0;
}

/* inner */
.p-factories-inner.inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   HEADER
===================== */

.p-factories-header {
  margin-bottom: 40px;
}

.p-factories-title {
  font-size: 32px;
  font-weight: 800;
  color: #ff5a00;
  margin-bottom: 32px;
}

/* address list */
.p-factories-address {
  list-style: none;
  padding: 0;
  margin: 0;
}

.p-factories-address li {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed #333;
  font-size: 15px;
}

.p-factories-address .label {
  font-weight: 700;
  white-space: nowrap;
}

.p-factories-address .label.tel {
  margin-left: 24px;
}

/* =====================
   MAP AREA
===================== */

.p-factories-items {
  display: block;
}

.factories-map {
  background: #f7f7f7; /* ← インナー背景を白に */
  padding: 48px 56px;
  margin-bottom: 72px;
}

/* h3 */
.factories-map-title {
  font-size: 36px;
  font-weight: 800;
  color: #ff5a00;
  margin-bottom: 32px; /* ← マップとの余白 */
}

/* iframe */
.factories-map .maps iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}




/* =====================================================
   LINK BUTTON（Image Match）
===================================================== */

.l-link-btn {
  background: #f7f7f7;              /* 添付画像の薄グレー */
  padding: 40px 0 100px;            /* 上下余白をしっかり */
}

/* inner */
.p-link-btn.inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* list */
.p-link-btn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 24px;                        /* ボタン間隔 */
  flex-wrap: wrap;
}

/* button */
.p-link-btn-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 16px 32px;
  background: #ff5a00;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease;
}

/* hover */
.p-link-btn-list a:hover {
  opacity: .95;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}



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

@media (max-width: 768px) {

  .company-page section {
    padding: 60px 0;
  }

  .p-company-header__ceo {
    grid-template-columns: 1fr;
  }

  .p-company-movie-wrap {
    padding: 8%;
  }

  .company-mv {
    height: 55vh;
    min-height: 360px;
  }

  .company-mv__title {
    font-size: 36px;
  }

  .company-mv__subtitle {
    font-size: 12px;
    letter-spacing: 0.25em;
  }

  .p-company-link-items {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-wrap {
    padding: 56px 0;
  }

  .company-wrap .inner {
    padding: 0 16px;
  }

  .profile-box,
  .access-box {
    padding: 32px 20px;
  }

  .profile-box dl {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .profile-box h2,
  .access-box h2 {
    font-size: 26px;
  }

  .maps iframe {
    height: 300px;
  }

  .l-factories {
    padding: 56px 0;
  }

  .p-factories-inner.inner {
    padding: 0 16px;
  }

  .p-factories-title {
    font-size: 26px;
  }

  .factories-map {
    padding: 32px 20px;
  }

  .factories-map-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .factories-map .maps iframe {
    height: 300px;
  }

  .p-factories-address li {
    font-size: 14px;
    gap: 8px;
  }

  .p-factories-address .label.tel {
    margin-left: 0;
  }

  .l-link-btn {
    padding: 56px 0 72px;
  }

  .p-link-btn-list {
    gap: 16px;
  }

  .p-link-btn-list a {
    min-width: 100%;
    font-size: 14px;
    padding: 14px 20px;
  }
}