/* ============================
   トップページ
============================ */

/* ============================
   Hero Section
============================ */
.hero {
  background: url('./img/top.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0;
  text-align: center;
}

.hero-title {
  font-size: 36px;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 40px;
}

/* ============================
   Services Section
============================ */
.services {
  padding: var(--section-padding) 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .hero {
    padding: 0;
    background: url('./img/top.png');
    background-size: cover;
    background-position: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 24px;
  }
}
/* ============================
   サービスページ
============================ */

/* ============================
   ページイントロ
============================ */
.page-intro {
  max-width: 680px;
  margin-top: 16px;
  color: var(--text-sub);
  line-height: 1.8;
}
/* ============================
　　セクションリード文
============================ */
.section-lead {
  max-width: 720px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}
/* ============================
　サービス一覧（カードの並び
============================ */
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  background: var(--color-white);
  transition: var(--transition-normal);
}

.service-card:hover {
  background: var(--bg-blue-light);
  border-color: var(--accent-blue);
}

.service-card h3 {
  font-size: var(--font-size-h3);
  color: var(--accent-blue);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-sub);
  line-height: 1.7;
}

.service-card img {
  width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 16px;
}

/* ============================
背景が薄いグレーのセクション（対応エリア
============================ */
.bg-light {
  background: var(--bg-light);
  padding: var(--section-padding) 0;
}

/* ============================
　レスポンシブ対応
============================ */
@media (max-width: 768px) {

  .service-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-lead {
    margin-bottom: 24px;
  }

  .service-list .service-card {
    padding: 24px;
  }
}

/* ============================
   会社概要
============================ */
.section-lead {
  max-width: 720px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 24px;
}
.company-hero img {
  width: 100%;
  max-width: 160px;
  margin-bottom: 32px;
  display: block;
}
/* ============================
   基本情報（テーブル）
============================ */
.company-table {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-large);
  padding: 24px;
  background: var(--color-white);
}

.company-table .row {
  display: flex;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.company-table .row:last-child {
  border-bottom: none;
}

.company-table .label {
  width: 160px;
  font-weight: 600;
  color: var(--text-main);
}

.company-table .value {
  flex: 1;
  color: var(--text-sub);
  line-height: 1.7;
}
/* ============================
   スマホ対応（会社情報テーブル
============================ */
@media (max-width: 768px) {
  .company-table .row {
    flex-direction: column;
  }

  .company-table .label {
    width: 100%;
    margin-bottom: 6px;
  }
}
/* ============================
   アクセス
============================ */
.bg-light {
  background: var(--bg-light);
  padding: var(--section-padding) 0;
}


/* ============================
   
============================ */
.container iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* ============================
   沿革
============================ */
.timeline {
  border-left: 3px solid var(--border-light);
  padding-left: 40px;
  margin-top: 24px;
}

.timeline-item {
  margin-bottom: 24px;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent-blue);
  border-radius: 50%;
}

.timeline-item .year {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.timeline-item .event {
  color: var(--text-sub);
  line-height: 1.7;
}


/* ============================
   お問い合わせページ
============================ */
.contact-form {
  max-width: 720px;
  margin-top: 24px;
}

/* ============================
   フォームグループ
============================ */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-main);
}
/* ============================
   入力欄
============================ */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-medium);
  font-size: 16px;
  font-family: var(--font-main);
  background: var(--color-white);
  transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-blue);
  outline: none;
  background: var(--bg-blue-light);
}
/* ============================
   送信ボタン
============================ */
.contact-form button {
  margin-top: 8px;
  width: 240px;
}

/* ============================
   求人・業務委託セクション
============================ */
.bg-light {
  background: var(--bg-light);
  padding: var(--section-padding) 0;
  border-radius: 0;
}

/* ============================
   よくあるご相談例
============================ */
.faq-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-sub);
  line-height: 1.8;
}

.faq-list li {
  margin-bottom: 8px;
}

/* ============================
   footer
============================ */
.site-footer{padding-bottom:20px;}

/* ============================
   レスポンシブ対応
============================ */
@media (max-width: 768px) {

  .contact-form {
    margin-top: 16px;
  }

  .contact-form button {
    width: 100%;
  }

  .faq-list {
    padding-left: 16px;
  }
}

/* ============================
   404ページ
============================ */
.error-404 {
  text-align: center;
  padding: 120px 0;
}

.error-message {
  color: var(--text-sub);
  margin: 20px 0 40px;
}

/* ============================
   サイトマップ
============================ */
.sitemap-list {
  list-style: none;
  padding-left: 0;
  line-height: 2;
}

.sitemap-list a {
  color: var(--accent-blue);
  text-decoration: none;
}

.sitemap-list a:hover {
  text-decoration: underline;
}

/* ============================
   サイトマップ
============================ */
/* PCではハンバーガー非表示 */
.menu-toggle {
  display: none;
}

/* スマホ用 */
@media (max-width: 768px) {

  .nav {
    display: none; /* ← 初期状態では隠す */
    flex-direction: column;
    gap: 16px;
    background: #fff;
    padding: 20px;
    border-top: 1px solid var(--border-light);
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    z-index: 9999;
  }

  .menu-toggle {
    display: block;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
  }

  .menu-toggle::before,
  .menu-toggle::after,
  .menu-toggle div {
    content: "";
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background: var(--text-main);
    transition: 0.3s;
  }

  .menu-toggle::before {
    top: 0;
  }

  .menu-toggle div {
    top: 8px;
  }

  .menu-toggle::after {
    top: 16px;
  }

  /* 開いたときのスタイル */
  .menu-toggle.active::before {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active div {
    opacity: 0;
  }

  .menu-toggle.active::after {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav.open {
    display: flex;
  }
}