/* ==========================================
   1. 基本設定（1カ所で色を管理）
   ========================================== */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #666666;
  --heading: #111111;
  --accent: #005491; /* 勝案のメインカラー */
  --accent-soft: #eeeeee;
  --alt-bg: #f8f8f8;
  --line: #06c755;
  --ring: rgba(6, 199, 85, 0.25);
  --panel: #ffffff;
  --panel-border: #e5e5e5;
  --maxw: 1120px;
  --white: #ffffff;
  --dark-gray: #333333;
  --border-light: #cccccc;
  --bg-gray: #eaeaea;
  --bg-light: #f9f9f9;
  --focus-green: #20b257;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 【JS不要】CSSだけで滑らかなスムーズスクロールを実現 */
}

html,
body {
  margin: 0 auto;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.7;
}

h1,
h2,
h3 {
  font-family: 'Zen Old Mincho', serif;
}
a {
  color: var(--heading);
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   2. 共通パーツ（ヘッダー・ボタン・カード）
   ========================================== */

/* 2-1. ヘッダー (Header) */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 3px solid var(--accent);
  height: 90px;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* ロゴのスタイル設定 */
.brand a {
  display: block;
}

.brand__logo {
  height: 50px;
  width: auto;
  display: block;
}

/* 右側メニューエリア */
.nav__right {
  display: flex;
  align-items: center;
}

.nav__menu ul {
  display: flex;
  gap: 35px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-size: 16px;
  font-weight: 700;
  color: var(--heading);
  transition: 0.3s;
  position: relative;
}

/* ホバー時にアンダーラインが出る演出 */
.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.nav__menu a:hover::after {
  width: 100%;
}

.nav__menu a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* 2-2. レイアウト共通：グリッドシステム */
.grid {
  display: grid;
  gap: 20px;
}

/* PC：3カラム（横並び） */
.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* 2-3. スマホ用メニュー制御（ベース設定） */
.menu-trigger {
  display: none; /* PCでは隠す */
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
  z-index: 110;
}

.menu-trigger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--heading);
  transition: 0.3s;
}

.menu-trigger span:nth-child(1) {
  top: 0;
}
.menu-trigger span:nth-child(2) {
  top: 11px;
}
.menu-trigger span:nth-child(3) {
  bottom: 0;
}

/* ボタンがクリックされた時（×印に変形） */
.menu-trigger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.menu-trigger.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-trigger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* ==========================================
   3. セクション共通設定 (見出しデザイン)
   ========================================== */
section {
  padding: 80px 0;
}

h2 {
  position: relative;
  font-size: clamp(24px, 3vw, 30px);
  text-align: center;
  margin-bottom: 40px;
  z-index: 1;
}

/* 背景に表示される英語 */
h2::before {
  content: attr(data-en);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-size: clamp(40px, 10vw, 90px);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.08;
  white-space: nowrap;
  z-index: -1;
  letter-spacing: 0.1em;
}

/* 下の線 */
h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 10px auto 0;
}

/* ==========================================
   4. メインビジュアル (HERO) - PC設定
   ========================================== */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('../img/top01.jpg') no-repeat center center / cover;
  background-color: var(--alt-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__content {
  max-width: 850px;
  color: var(--white);
}

.headline {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

.subhead {
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  opacity: 0.95;
}

/* ==========================================
   5. 強みセクション (Strengths)
   ========================================== */
#strengths {
  background-color: var(--bg);
}

.strength-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1.4;
  text-align: center;
}

.strength-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.strength-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

/* ==========================================
   6. 事業内容セクション (Services)
   ========================================== */
#services {
  background-color: var(--alt-bg);
  padding: 80px 0;
}

.service-type-title {
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-type-title::before,
.service-type-title::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.service-item {
  background: var(--white);
  border: 1px solid var(--panel-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.service-sub-section {
  margin-top: 30px;
  text-align: center;
}

.service-sub-section h3 {
  font-size: 20px;
  color: var(--heading);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.service-sub-section h3::before,
.service-sub-section h3::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================
   7. 採用情報セクション (Recruit - イントロ)
   ========================================== */
#recruit {
  padding: 80px 0;
  background-color: var(--bg);
  text-align: center;
}

.recruit-intro {
  max-width: 800px;
  margin: 0 auto;
}

.recruit-intro h3 {
  font-size: 24px;
  color: var(--accent);
  margin-bottom: 24px;
  line-height: 1.4;
}

.recruit-intro p {
  font-size: 16px;
  line-height: 2;
  color: var(--text);
  margin-bottom: 40px;
  text-align: left;
}

.recruit-cta {
  margin-top: 20px;
}

.btn--recruit-more {
  display: inline-block;
  padding: 18px 60px;
  background-color: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn--recruit-more:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 6px 25px rgba(0, 84, 145, 0.3);
}

/* ==========================================
   8. 会社概要セクション (Company)
   ========================================== */
#company {
  padding: 80px 0;
  background-color: var(--bg);
}

.company-flex {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 20px 10px;
  border-bottom: 1px solid var(--panel-border);
  text-align: left;
  font-size: 15px;
}

.company-table th {
  width: 130px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.company-table td {
  color: var(--text);
  line-height: 1.6;
}

.map-container {
  width: 100%;
  height: 450px;
  background: var(--alt-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--panel-border);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.1) contrast(1.1);
}

/* ==========================================
   9. フッターセクション (Footer)
   ========================================== */
.site-footer {
  background: #222;
  color: var(--white);
  padding: 50px 0 30px;
  text-align: center;
}

.footer-info {
  margin-bottom: 25px;
}

.footer-info h2 {
  color: var(--white);
  font-size: 22px;
  margin-bottom: 12px;
  text-align: center;
  font-weight: 800;
}

.footer-info h2::before,
.footer-info h2::after {
  display: none !important;
}

.footer-address {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-link-small {
  font-size: 12px;
  color: var(--white);
  opacity: 0.6;
  text-decoration: none;
  transition: 0.3s;
}

.footer-link-small:hover {
  opacity: 1;
}

.copyright {
  font-size: 11px;
  opacity: 0.4;
  margin: 0;
  letter-spacing: 0.05em;
}

/* ==========================================
   10. プライバシーポリシー専用 (Privacy Page)
   ========================================== */
.privacy-page {
  padding: 80px 0;
  background-color: var(--bg);
}

.policy-content {
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.8;
}

.policy-content h1 {
  font-size: 28px;
  color: var(--heading);
  text-align: center;
  margin-bottom: 40px;
}

.policy-content h2 {
  font-size: 20px;
  color: var(--heading);
  border-left: 4px solid var(--accent);
  padding-left: 15px;
  margin: 40px 0 20px;
  text-align: left;
}

.policy-content h2::after {
  display: none;
}

.policy-content p,
.policy-content li {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 20px;
}

.policy-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.back-btn-area {
  text-align: center;
  margin-top: 60px;
}

/* ==========================================
   11. 採用詳細ページ専用 (Recruit Detail)
   ========================================== */
.page-header {
  background-color: #f0f4f8;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  position: relative;
  font-size: clamp(28px, 4vw, 36px);
  margin-bottom: 15px;
  z-index: 1;
}

.page-header h1::before {
  content: attr(data-en);
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(50px, 8vw, 80px);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.05;
  z-index: -1;
  white-space: nowrap;
}

.page-header p {
  font-size: 16px;
  color: var(--muted);
}

.recruit-card {
  background: var(--white);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 40px;
  margin-top: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.recruit-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.recruit-card h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--heading);
}

.recruit-table th,
.recruit-table td {
  padding: 22px 20px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

.recruit-table th {
  width: 180px;
  background-color: #fcfcfc;
  color: var(--heading);
  font-weight: 700;
  vertical-align: top;
}

.recruit-table td {
  color: var(--text);
}

.recruit-table td small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.recruit-cta-section {
  text-align: center;
  padding: 100px 0;
  background-color: var(--alt-bg);
}

.cta-lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: var(--text);
}

.cta-tel-box {
  display: inline-block;
  padding: 20px 40px;
  margin-top: 1em;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.cta-tel-label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 5px;
}

.cta-tel-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

/* ==========================================
   12. お問い合わせフォームセクション
   ========================================== */
#contact-form-section {
  padding: 80px 0;
  background-color: var(--bg);
}

.form-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 40px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading);
}

.required {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  font-size: 16px;
  background: var(--alt-bg);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================
   13. パートナー募集セクション (Partnership)
   ========================================== */
#partnership {
  background-color: var(--alt-bg);
  padding: 100px 0;
}

.partnership-content {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--white);
  padding: 60px 50px;
  border-radius: 4px;
  border: 2px solid var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.partnership-text h3 {
  font-size: 24px;
  color: var(--heading);
  margin-bottom: 30px;
  text-align: center;
  font-family: 'Zen Old Mincho', serif;
  line-height: 1.4;
}

.partnership-text p {
  font-size: 16px;
  line-height: 2;
  margin: 0 auto 40px;
  max-width: 800px;
  color: var(--text);
  text-align: left;
}

.partnership-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px;
  max-width: 750px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
}

.partnership-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.partnership-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
}

.partnership-cta {
  text-align: center;
  margin-top: 20px;
}

/* ==========================================
   14. 企業理念セクション (Philosophy)
   ========================================== */
#philosophy {
  padding: 120px 0;
  background-color: var(--bg);
}

.philosophy-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 80px 60px;
  border: 2px solid var(--accent);
  border-radius: 4px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

/* 枠内に入れた見出しの特別余白ルール */
.philosophy-card h2 {
  margin-bottom: 60px;
}

.mission-statement {
  font-family: 'Zen Old Mincho', serif;
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.4;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 0.1em;
}

.message-body {
  text-align: left;
  line-height: 2.2;
  color: var(--text);
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.message-body p {
  margin-bottom: 2em;
}

.message-signature {
  text-align: right;
  font-family: 'Zen Old Mincho', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  margin-top: 50px;
  padding-right: 10px;
}

.message-signature::before {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 15px;
}

/* ==========================================
   15. スマートフォン用レスポンシブ設定
   （すべての960px以下の設定をここに完全集約）
   ========================================== */
@media (max-width: 960px) {
  /* 共通レイアウト・セクション */
  section {
    padding: 56px 0;
  }
  .container {
    padding: 0 15px;
  }
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* ヘッダー・ロゴ */
  header {
    height: 70px;
  }
  .brand__logo {
    height: 40px;
  }

  /* ハンバーガーメニュー制御ボタン */
  .menu-trigger {
    display: block;
  }

  /* スマホ用スライドメニュー画面（70%幅設定） */
  .nav__right {
    display: block !important; /* display: noneの衝突を防ぐ */
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: var(--bg);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 0 60px;
    overflow-y: auto;
  }

  /* メニューが開いた時 */
  .nav__right.is-open {
    right: 0;
  }

  .nav__menu {
    width: 100%;
  }
  .nav__menu ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
  }
  .nav__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
  }
  .nav__menu li:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .nav__menu a {
    display: block;
    padding: 22px 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--heading);
    letter-spacing: 0.05em;
  }

  /* 共通見出し(H2) */
  h2 {
    font-size: 23px;
    margin-bottom: 25px;
  }
  h2::before {
    font-size: 45px;
    opacity: 0.12;
    top: 23%;
    transform: translate(-50%, -50%);
  }
  h2::after {
    width: 30px;
    margin: 8px auto 0;
  }

  /* ヒーロービジュアル */
  .hero {
    height: 350px;
    text-align: center;
  }
  .hero__content {
    margin: 0 auto;
  }

  /* 強みセクション */
  .strength-card {
    margin-bottom: 10px;
  }
  .strength-card h3 {
    font-size: 17px;
  }

  /* 会社概要 */
  #company {
    padding: 60px 0;
  }
  .company-flex {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .map-container {
    height: 320px;
  }
  .company-table th,
  .company-table td {
    font-size: 14px;
    padding: 15px 5px;
  }
  .company-table th {
    width: 100px;
  }

  /* フッター */
  .site-footer {
    padding: 20px 0 5px;
  }

  /* プライバシー */
  .privacy-page {
    padding: 56px 0;
  }
  .policy-content h1 {
    font-size: 24px;
  }

  /* 採用情報詳細 */
  .recruit-card {
    padding: 25px 15px;
  }
  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
    padding: 15px 10px;
  }
  .recruit-table th {
    background-color: transparent;
    padding-bottom: 0;
    border-bottom: none;
    color: var(--accent);
    font-size: 14px;
  }
  .recruit-table td {
    padding-top: 5px;
    font-size: 14px;
  }
  .cta-tel-number {
    font-size: 22px;
  }
  .cta-tel-box {
    padding: 20px;
    width: 100%;
  }

  /* お問い合わせ */
  .form-wrapper {
    padding: 20px;
    border: none;
  }

  /* パートナー募集 */
  #partnership {
    padding: 60px 0;
  }
  .partnership-content {
    padding: 40px 20px;
    margin: 0 10px;
    border-width: 1px;
  }
  .partnership-list {
    grid-template-columns: 1fr;
    margin-bottom: 35px;
    gap: 15px;
  }

  /* 企業理念 */
  #philosophy {
    padding: 80px 0;
  }
  .philosophy-card {
    padding: 50px 20px;
    margin: 0 10px;
    border-width: 1px;
  }
  .philosophy-card h2 {
    margin-bottom: 40px;
  }
  .mission-statement {
    font-size: 24px;
    margin-bottom: 40px;
  }
  .message-body {
    font-size: 14px;
    line-height: 1.9;
  }
}
