:root {
  --brand: #005eac;
  --brand-dark: #00427a;
  --brand-light: #4d8fd3;
  --accent: #f4b400;

  --bg: rgba(245, 247, 251, 0.8);
  --card-bg: #ffffff;
  --border-subtle: #dde3f0;

  --text-main: rgba(34, 34, 34, 0.8);
  --text-muted: #666666;
}

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===== HERO ===== */

.home-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), var(--brand-light));
  color: #ffffff;
  padding: 72px 0;
}

.home-hero__inner {
  display: flex;
  align-items: center;
}

.home-hero__copy {
  max-width: 760px;
}

.home-hero__eyecatch {
  display: inline-block;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.18);
}

.home-hero__title {
  font-size: 2rem;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 20px;
}

.home-hero__lead {
  font-size: 0.98rem;
  line-height: 1.9;
  margin: 0;
}

/* ===== 共通セクション ===== */

.home-section {
  padding: 56px 0;
  background-color: #ffffff;
}

.home-section:nth-of-type(odd) {
  background-color: var(--bg);
}

.home-section__header {
  margin-bottom: 24px;
}

.home-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
}

.home-section__bar {
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--brand);
}

/* ===== 事業所案内 ===== */

.home-offices__image {
  margin-bottom: 24px;
  text-align: center;
}

.home-offices__img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* カード3枚横並び（PC） */

.office-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.office-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 20px 18px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
}

.office-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--brand-dark);
}

.office-card__address {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0 0 8px;
  color: var(--text-main);
}

.office-card__tel {
  font-size: 0.9rem;
  margin: 0 0 10px;
  color: var(--text-muted);
}

.office-card__link a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 94, 172, 0.4);
  padding-bottom: 2px;
}

.office-card__link a:hover {
  color: var(--brand-dark);
  border-bottom-color: var(--brand-dark);
}

/* ===== ニュース ===== */

.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-subtle);
}

.news-item {
  border-bottom: 1px solid var(--border-subtle);
}

.news-item a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 10px 2px;
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
}

.news-item a:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.news-item__date {
  min-width: 92px;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.news-item__title {
  flex: 1;
}

/* ===== レスポンシブ ===== */

@media (max-width: 768px) {
  .home-hero {
    padding: 48px 0;
  }

  .home-hero__title {
    font-size: 1.5rem;
  }

  .home-hero__lead {
    font-size: 0.92rem;
  }

  .office-cards {
    grid-template-columns: 1fr;
  }

  .office-card {
    padding: 16px 14px;
  }

  .news-item a {
    flex-direction: column;
    gap: 4px;
  }

  .news-item__date {
    min-width: auto;
  }
}

.u-br-sp {
  display: none;
}

/* ========== HERO（商社部門） ========== */

.dept-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand), var(--brand-light));
  color: #fff;
  padding: 64px 0;
}

.dept-hero__inner {
  display: flex;
  align-items: center;
}

.dept-hero__copy {
  max-width: 740px;
}

.dept-hero__label {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.dept-hero__title {
  font-size: 1.9rem;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 16px;
}

.dept-hero__lead {
  font-size: 0.96rem;
  line-height: 1.9;
  margin: 0;
}

/* ========== セクション共通 ========== */

.dept-section {
  padding: 52px 0;
}

.dept-section:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.8);
}

.dept-section:nth-of-type(even) {
  background: var(--bg);
}

.home-section__header {
  margin-bottom: 20px;
}

.home-section__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text-main);
}

.home-section__bar {
  width: 60px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}

/* ========== リード＋ジャンプカード ========== */

.dept-lead {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.dept-lead__list {
  margin: 0;
  padding-left: 1.2em;
}

.dept-lead__list li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.dept-lead__links {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dept-link-card {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dept-link-card--products {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.dept-link-card--system {
  background: linear-gradient(135deg, #00a37a, #009060);
}

.dept-link-card__label {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.dept-link-card__note {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ========== 取扱製品・サービス一覧 ========== */

.dept-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dept-list--primary li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
}

/* ========== 関連装置／周辺機器／サービス ========== */

.dept-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.dept-card {
  background: var(--card-bg);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.dept-card__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark);
}

.dept-card__list {
  margin: 0;
  padding-left: 1.2em;
}

.dept-card__list li {
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== 主な仕入先 ========== */

.supplier-main {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  display: inline-block;
}

.supplier-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 24px;
}

.supplier-list li {
  font-size: 0.9rem;
  line-height: 1.8;
  break-inside: avoid;
}

/* ========== お問合せ ========== */

.dept-contact__text {
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0 0 18px;
}

.dept-contact__btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.dept-contact__btn-main {
  font-size: 0.98rem;
  font-weight: 700;
}

.dept-contact__btn-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ========== スマホレイアウト ========== */

@media (max-width: 768px) {
  .u-br-sp {
    display: inline;
  }

  .dept-hero {
    padding: 44px 0;
  }

  .dept-hero__title {
    font-size: 1.4rem;
  }

  .dept-hero__lead {
    font-size: 0.9rem;
  }

  .dept-lead {
    flex-direction: column;
  }

  .dept-lead__links {
    flex: 1 1 auto;
    width: 100%;
  }

  .dept-card-grid {
    grid-template-columns: 1fr;
  }

  /* 仕入先はスマホでも2列維持でOKの指定だったのでそのまま */
  .supplier-list {
    column-gap: 16px;
  }
}

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

.company-section:nth-of-type(even) {
  background: #f5f7fb;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 12px;
  vertical-align: top;
}

.company-table th {
  width: 140px;
  background: #f8fafc;
  font-weight: 700;
  color: var(--text-main);
}

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

/* 所在地の3カラム */
.company-locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.company-location__name {
  font-weight: 700;
  margin: 0 0 4px;
}

.company-location__addr {
  margin: 0 0 4px;
  line-height: 1.7;
}

.company-location__tel {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.company-location__image {
  margin-bottom: 6px;
}

.company-location__image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}

/* 海外関係会社 */
.company-overseas {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.company-overseas__image img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  display: block;
}

.company-overseas__text {
  flex: 1;
  font-size: 0.95rem;
}

.company-overseas__name {
  font-weight: 700;
  margin: 0 0 6px;
}

.company-overseas__addr,
.company-overseas__tel {
  margin: 0 0 4px;
}

/* 沿革 */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.history-table td {
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px 8px;
}

.history-year {
  width: 80px;
  font-weight: 700;
  white-space: nowrap;
}

.history-month {
  width: 50px;
  white-space: nowrap;
}

.history-text {
  line-height: 1.7;
}

/* 主な仕入先（3カラム） */
.suppliers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 3;
  column-gap: 24px;
}

.suppliers-list li {
  font-size: 0.9rem;
  line-height: 1.8;
  break-inside: avoid;
}

/* 事業所紹介 */
.office-block {
  margin-bottom: 32px;
}

.office-block__title {
  font-weight: 700;
  margin: 0 0 4px;
}

.office-block__addr {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.office-map__frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
}

.office-map__frame iframe {
  display: block;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .company-locations {
    grid-template-columns: 1fr;
  }

  .company-overseas {
    flex-direction: column;
  }

  .suppliers-list {
    column-count: 2;
    column-gap: 16px;
  }
}

.recruit-section {
  padding: 56px 0;
}

.recruit-block + .recruit-block {
  margin-top: 40px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
}

.recruit-block__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.recruit-block__lead {
  margin: 0 0 18px;
  font-size: 0.95rem;
  text-align: center;
}

/* カードレイアウト */
.recruit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.recruit-card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  padding: 18px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
  font-size: 0.94rem;
}

.recruit-card__heading {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--brand-dark);
}

.recruit-card__subheading {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 12px 0 4px;
  color: var(--text-main);
}

.recruit-card__place {
  margin: 0 0 8px;
  font-weight: 600;
}

.recruit-card__jobs {
  margin: 0 0 8px;
  line-height: 1.7;
}

.recruit-card__contact {
  margin: 0;
  line-height: 1.7;
  font-size: 0.9rem;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .recruit-grid {
    grid-template-columns: 1fr;
  }

  .recruit-block__lead {
    text-align: left;
  }
}

/* ▼ システム技術室カラー（商社部門との差別化・青の濃淡） */
.dept-hero--system {
  background: linear-gradient(135deg, #004a85, #005eac, #4d8fd3);
}

/* ▼ イントロ（商社部門 lead の共通パターン） */
.dept-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.dept-intro__text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-main);
}

/* スマホ */
@media (max-width: 768px) {
  .dept-intro__text {
    text-align: left;
    font-size: 0.92rem;
  }
}

/* ヒーロー自体を「土台レイヤー」にする */
.home-hero,
.dept-hero {
  position: relative;
  overflow: hidden;
  z-index: 0; /* 追加 */
}

/* 中身（文字ブロック）を前面に出す */
.home-hero__inner,
.dept-hero__inner {
  position: relative;
  z-index: 1; /* 追加 */
}

/* 波レイヤー（背景側） */
.home-hero::before,
.dept-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 600px; /* ここはお好みの高さ */

  /* background-image: url("img/wave.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 1920px auto; */

  opacity: 0.25;
  pointer-events: none;

  z-index: 0; /* ここがポイント：文字より後ろ */
}

.contact-section {
  padding: 56px 0 64px;
}

.contact-phone__text {
  text-align: center;
  font-size: 0.95rem;
  margin: 0 0 16px;
}

.contact-banner {
  text-align: center;
  margin-bottom: 40px;
}

.contact-banner__img {
  max-width: 100%;
  height: auto;
}

/* メール問い合わせイントロ */
.contact-intro {
  font-size: 0.95rem;
  line-height: 1.9;
  margin: 0 0 24px;
}

/* フォームカード */
.contact-form {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  padding: 24px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  margin-bottom: 40px;
}

/* フォーム本体 */
.c-form {
  margin: 0;
}

.c-form__row {
  display: block;
  margin-bottom: 18px;
}

.c-form__row--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.c-form__label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.c-form__label.is-required::after {
  content: "（必須）";
  font-size: 0.8rem;
  color: #c0392b;
  margin-left: 4px;
}

.c-form__field {
  font-size: 0.9rem;
}

.c-form__field input,
.c-form__field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  padding: 8px 10px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.c-form__field textarea {
  min-height: 160px;
  resize: vertical;
}

/* 住所ブロック */
.c-form__field--address {
  display: grid;
  gap: 8px;
}

.c-form__field-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.c-form__field-label {
  min-width: 90px;
  font-size: 0.85rem;
}

/* 電話・FAX・会社名などの2カラム */
.c-form__col {
  display: flex;
  flex-direction: column;
}

/* 同意部分 */
.c-form__row--agree {
  margin-top: 8px;
}

.c-form__agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
}

.c-form__agree input[type="checkbox"] {
  margin-top: 3px;
}

.c-form__agree a {
  color: var(--brand);
}

/* 送信ボタン */
.c-form__row--submit {
  text-align: center;
  margin-top: 8px;
}

.c-form__submit {
  display: inline-block;
  padding: 10px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
}

/* プライバシー */
.privacy-intro {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0 0 10px;
}

.privacy-box {
  margin-top: 8px;
  padding: 16px 18px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  line-height: 1.8;
}

.privacy-box p {
  margin: 0 0 6px;
}

.privacy-box p:last-child {
  margin-bottom: 0;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .contact-form {
    padding: 18px 14px;
  }

  .c-form__row--split {
    grid-template-columns: 1fr;
  }

  .c-form__field-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .c-form__field-label {
    min-width: auto;
  }
}
