/* ==========================================================================
   ジョブゼミ 会社情報ページ スタイルシート
   ========================================================================== */

:root {
  --navy: #142643;
  --yellow: #FFBF00;
  --gold: #B9912B;
  --cream: #FBF6EA;
  --dgray: #424242;
  --lgray: #EEEEEE;
  --line: #A2A2A2;
  --text: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic StdN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

.fw-w8 {
  font-weight: 800;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
}

/* ==========================================================================
   マスクリビール演出
   ========================================================================== */

.mask-reveal-wrap {
  position: relative;
  display: block;
}

.mask-reveal {
  position: absolute;
  inset: 0;
  /* 原本: 初期は白、発火後に見出し文字色へ変化しながら左方向へワイプ */
  background: #fff;
  transform: scaleX(1);
  transform-origin: left center;
  transition:
    transform 0.8s cubic-bezier(0.4, 0.4, 0, 1) 0.2s,
    background-color 0.8s cubic-bezier(0.4, 0.4, 0, 1) 0.2s;
}

.mask-reveal-wrap.is-revealed .mask-reveal {
  transform: scaleX(0);
}

/* 発火後の到達色 = 見出しの文字色（白見出しは修飾なしで白のまま） */
.mask-reveal-wrap.is-revealed .mask-reveal.mask-to-yellow {
  background: var(--yellow);
}

.mask-reveal-wrap.is-revealed .mask-reveal.mask-to-navy {
  background: var(--navy);
}

/* ==========================================================================
   フェードイン演出
   ========================================================================== */

.fade-in {
  opacity: 0;
  /* 原本: 20px上昇しながらフェードイン(translateプロパティ。transformではない) */
  translate: 0 20px;
  transition: opacity 1s ease-in-out, translate 1s ease-in-out;
}

.fade-in.is-revealed {
  opacity: 1;
  translate: 0 0;
}

.fade-d5 { transition-duration: 0.5s; }
.fade-d6 { transition-duration: 0.6s; }
.fade-d7 { transition-duration: 0.7s; }
.fade-d8 { transition-duration: 0.8s; }
.fade-d9 { transition-duration: 0.9s; }
.fade-d10 { transition-duration: 1.0s; }
.fade-d11 { transition-duration: 1.1s; }
.fade-d12 { transition-duration: 1.2s; }
.fade-d13 { transition-duration: 1.3s; }

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
  height: 95px;
  background: #fff;
  padding: 16px 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.5s cubic-bezier(0.4, 0.4, 0, 1), transform 0.5s cubic-bezier(0.4, 0.4, 0, 1);
}

.header.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 170px;
  height: 63px;
}

.logo-img {
  width: 170px;
  height: 63px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-list {
  display: flex;
  gap: 0;
}

.nav-link {
  display: inline-block;
  position: relative;
  padding: 4px 12px;
  font-family: "Noto Serif JP", "Noto Serif", serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--navy);
  /* 原本のホバー: 文字が1.1倍に拡大(下線アニメーションは存在しない) */
  transition: scale 0.3s ease-in-out;
}

.nav-link:hover {
  scale: 1.1;
}

.header-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-family: "Noto Serif JP", "Noto Serif", serif;
  font-weight: 400;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.header-btn:hover {
  background: #fff;
  color: #004f66;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
}

.hamburger .material-symbols-outlined {
  font-size: 24px;
}

/* モバイルメニューオーバーレイ */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

.mobile-menu-close .material-symbols-outlined {
  font-size: 28px;
}

.mobile-menu-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-link {
  color: #fff;
  font-size: 18px;
  font-family: "Noto Serif JP", "Noto Serif", serif;
}

/* ==========================================================================
   共通: セクションラベル
   ========================================================================== */

.section-label {
  font-size: 20px;
  line-height: 30px;
  color: var(--gold);
  letter-spacing: 0.6px;
  font-weight: 800;
  text-align: center;
}

/* ==========================================================================
   1. ヒーローセクション COMPANY
   ========================================================================== */

.hero {
  height: 720px;
  background: var(--navy);
  padding: 40px 50px;
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1165px;
  width: 100%;
  margin: 0 auto;
}

.hero-title {
  /* 原本のマスクはテキスト幅にフィット(原本実測: COMPANY=409x96) */
  width: fit-content;
  font-size: 64px;
  line-height: 96px;
  color: var(--yellow);
  letter-spacing: 3.2px;
  font-weight: 800;
}

.hero-sub {
  margin-top: 36px;
  font-size: 17px;
  line-height: 25.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.51px;
}

.hero-desc {
  margin-top: 15px;
  font-size: 17px;
  line-height: 25.5px;
  color: #fff;
  letter-spacing: 0.51px;
  width: 70%;
  max-width: 816px;
}

/* ==========================================================================
   2. MISSIONセクション
   ========================================================================== */

.mission {
  background: #fff;
  padding: 160px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mission-title {
  font-size: 30px;
  line-height: 45px;
  color: #333;
  letter-spacing: 0.9px;
  font-weight: 800;
  text-align: center;
}

.mission-text {
  margin-top: 20px;
  width: 700px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28.8px;
  color: #333;
  letter-spacing: 0.48px;
  text-align: left;
}

/* ==========================================================================
   3. OUR VALUESセクション
   ========================================================================== */

.values {
  background: var(--cream);
  padding: 40px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.values-title {
  font-size: 30px;
  line-height: 45px;
  color: #333;
  font-weight: 800;
  text-align: center;
}

.values-desc {
  width: 700px;
  max-width: 100%;
  font-size: 16px;
  line-height: 28.8px;
  text-align: center;
}

.values-grid {
  width: 700px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 334px);
  gap: 32px;
  justify-content: center;
}

.value-card {
  background: #fff;
  border-radius: 24px;
  padding: 20px;
  display: flex;
  gap: 12px;
}

.value-icon {
  flex-shrink: 0;
  font-size: 30px;
  color: #333;
}

.value-body {
  width: 235px;
  max-width: 100%;
}

.value-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 800;
  color: #333;
}

.value-text {
  margin-top: 16px;
  font-size: 16px;
  line-height: 22.4px;
  color: #333;
}

/* ==========================================================================
   4. OVERVIEWセクション
   ========================================================================== */

.overview {
  background: #fff;
  padding: 128px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.overview-title {
  font-size: 30px;
  line-height: 45px;
  font-weight: 800;
  text-align: center;
}

.overview-list {
  width: 700px;
  max-width: 100%;
  margin-top: 24px;
}

.overview-row {
  display: flex;
  height: 70px;
}

.overview-head {
  width: 210px;
  flex-shrink: 0;
  background: var(--lgray);
  padding-left: 16px;
  display: flex;
  align-items: center;
  font-size: 20px;
  line-height: 30px;
  font-weight: 800;
  color: #333;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--line);
}

.overview-body {
  width: 490px;
  flex: 1;
  background: #fff;
  padding-left: 16px;
  display: flex;
  align-items: center;
  font-size: 17px;
  line-height: 25.5px;
  color: #333;
  letter-spacing: 0.51px;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   5. CTAセクション
   ========================================================================== */

.cta {
  background: var(--dgray);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 152px;
}

.cta-text {
  font-size: 30px;
  line-height: 42px;
  color: #fff;
  font-weight: 800;
  text-align: left;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 500px;
  height: 75px;
  background: var(--yellow);
  border-radius: 80px;
  font-size: 25px;
  color: #fff;
  font-weight: 800;
  /* fade-in(1s)とホバー遷移(0.3s)の両立: transitionは丸ごと上書きされるため全プロパティ併記 */
  border: 3px solid transparent;
  transition:
    opacity 1s ease-in-out,
    translate 1s ease-in-out,
    background-color 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    color 0.3s ease-in-out;
}

.cta-btn:hover {
  background: #fff;
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ==========================================================================
   6. フッター
   ========================================================================== */

.footer {
  background: var(--navy);
  padding: 40px 50px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-col {
  width: 583px;
  max-width: 100%;
}

.footer-col-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  width: fit-content;
  font-size: 35px;
  line-height: 49px;
  color: #fff;
  font-weight: 800;
}

.footer-tagline {
  margin-top: 36px;
  font-size: 15px;
  line-height: 21px;
  color: #fff;
}

.footer-address {
  font-size: 15px;
  line-height: 21px;
  color: #fff;
}

.footer-mail {
  font-size: 15px;
  line-height: 21px;
  color: #fff;
}

.footer-service {
  width: fit-content;
  font-size: 20px;
  line-height: 28px;
  color: #fff;
  font-weight: 800;
}

.footer-links {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  position: relative;
  display: inline-block;
  font-size: 15px;
  color: #fff;
  transition: scale 0.3s ease-in-out;
}

.footer-link:hover {
  scale: 1.1;
}

/* 無料相談を予約はfade-in併用: transitionの丸ごと上書き競合を明示的に解決 */
.footer-link.fade-in {
  transition: scale 0.3s ease-in-out, opacity 0.6s ease-in-out, translate 0.6s ease-in-out;
}

/* ==========================================================================
   モバイルレイアウト（941px以下 = 原本の構造切替帯）
   ========================================================================== */

@media (max-width: 941px) {

  .header {
    padding: 12px 16px;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* ヒーロー */
  .hero {
    height: 720px;
    padding: 40px 10px;
  }

  .hero-title {
    font-size: 32px;
    line-height: 48px;
  }

  /* 原本: 会社情報のサブは45px(要素別ルール)。contactはcontact.css側で16pxに上書き */
  .hero-sub {
    font-size: 45px;
    line-height: 1.4;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
  }

  /* MISSION */
  .mission {
    padding: 160px 10px;
  }

  .mission-title {
    font-size: 20px;
    line-height: 30px;
  }

  .mission-text {
    width: 100%;
    font-size: 13px;
  }

  /* OUR VALUES */
  .values {
    padding: 40px 10px;
  }

  .values-title {
    font-size: 20px;
    line-height: 30px;
  }

  .values-desc {
    font-size: 13px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    width: 100%;
  }

  .values-desc {
    width: 100%;
  }

  .value-card {
    width: 100%;
  }

  .value-body {
    width: auto;
    max-width: 100%;
    flex: 1;
  }

  /* OVERVIEW */
  .overview {
    padding: 40px 10px;
  }

  .overview-title {
    font-size: 20px;
    line-height: 30px;
  }

  .overview-list {
    width: 100%;
  }

  .overview-row {
    height: 100px;
  }

  .overview-head {
    width: 107px;
    font-size: 20px;
  }

  .overview-body {
    flex: 1;
    padding: 20px 14px;
    font-size: 14px;
  }

  /* CTA */
  .cta {
    padding: 40px 10px;
    flex-direction: column;
    gap: 40px;
  }

  .cta-text {
    font-size: 20px;
    line-height: 30px;
  }

  .cta-btn {
    width: 100%;
    max-width: 657px;
    height: auto;
    padding: 16px 15px;
    font-size: 15px;
  }

  /* フッター */
  .footer {
    padding: 40px 10px;
    flex-direction: column;
    gap: 32px;
  }

  .footer-col {
    width: 100%;
  }

  .footer-logo {
    font-size: 30px;
    line-height: 42px;
  }

  .footer-tagline,
  .footer-address,
  .footer-mail {
    font-size: 12px;
  }

  .footer-service {
    font-size: 16px;
  }

  .footer-links {
    gap: 24px;
  }

  .footer-link {
    font-size: 14px;
  }
}
