@charset "UTF-8";

/* ==================================
  全体基本スタイル
================================== */
.company-container {
  width: 100%;
}

/* ----------------------------------
  共通幅設定（.inner）
---------------------------------- */
.inner {
  width: 100%;
  max-width: 1400px;
  padding-left: 260px;  
  padding-right: 260px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 1920px) {
  .inner {
    padding-left: 5vw; 
    padding-right: 5vw;
  }
}

@media (max-width: 768px) {
  .inner {
    width: calc(100% - 40px);
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ==================================
  メインビジュアル（画像1＋テキスト）
================================== */
.company-hero {
  position: relative;
  width: 100%;
}

.company-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text-box {
  position: absolute;
  top: 50%;
  left: calc((100% - 1400px) / 2 + 260px);
  transform: translateY(-50%);
  color: #FFFFFF;
}

@media (max-width: 1920px) {
  .hero-text-box {
    left: calc((100% - 1400px) / 2 + 5vw);
  }
}

@media (max-width: 1400px) {
  .hero-text-box {
    left: 5vw;
  }
}

@media (max-width: 768px) {
  .hero-text-box {
    left: 20px;
  }
}

.hero-title {
  font-size: 40px;
  font-weight: bold;
  margin: 0 0 20px 0;
  line-height: 1;
  letter-spacing: 6px;
}

.hero-sub {
  font-size: 18px;
  font-weight: bold;
  margin: 0;
  line-height: 1;
  letter-spacing: 2px;
}


/* ==================================
  リード文・画像パーツ
================================== */

.company-lead {
  margin-top: 198px;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 中央画像（画像2） */
.company-mid-img {
  margin: 100px 0 150px;
  text-align: center;
}

.company-mid-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================
  共通見出しスタイル（緑縦線 ＋ 右側横線）
================================== */
.section-heading {
  display: flex;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  border-left: 5px solid #09830A; /* 左側の緑色縦線 */
  padding-left: 15px;
  margin-bottom: 100px;
  line-height: 1;
}

/* 右側の横線 */
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #B9B9B9;
  margin-left: 20px;
}

/* ==================================
  代表挨拶 セクション
================================== */
.greeting-section {
  margin-top: 80px;
}

.greeting-flex {
  display: flex;
  gap: 40px;
  align-items: stretch; /* 右（画像）の高さに左（テキスト）の枠を合わせる */
  margin-bottom: 150px;
}

.greeting-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 本文の段落設定 */
.greeting-text p {
  margin-top: 0;
  margin-bottom: 1.5em;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-ideograph;
}

/* 署名を一番下に隙間なく固定 */
.greeting-signature {
  margin-top: auto; /* 余った縦の余白を上に回して最下部に固定 */
  margin-bottom: 0;
  line-height: 1;   /* 文字下の余分なスキマをなくす */
}

.greeting-signature .title {
  margin-right: 15px;
  font-size: 18px;
}

.greeting-signature .name {
  font-weight: bold;
  font-size: 28px;
}

/* 右側画像エリア */
.greeting-img {
  width: 440px;
  flex-shrink: 0;
}

.greeting-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================================
  会社概要（テーブル）
================================== */
.company-profile__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto 150px;
}

.company-profile__table th,
.company-profile__table td {
  border: 1px solid #ffffff;
  padding: 32px 20px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.6;
}

/* 特定の行だけ上揃え */
.company-profile__table tr:nth-child(2) th,
.company-profile__table tr:nth-child(6) th,
.company-profile__table tr:nth-child(7) th,
.company-profile__table tr:nth-child(8) th,
.company-profile__table tr:nth-child(9) th {
  vertical-align: top;
}

.company-profile__label {
  background-color: #E9E9E9;
  font-weight: bold;
  width: 22%;
  white-space: nowrap;
}

.company-profile__value {
  background-color: #F6F6F6;
  width: 70%;
}

.company-profile__office + .company-profile__office {
  margin-top: 24px;
}

.company-profile__office-title {
  margin: 0 0 6px 0;
  font-size: 16px;
  font-weight: 500;
}

.company-profile__address {
  line-height: 1.6;
  margin: 0 0 8px 0;
}

.company-profile__value a.company-profile__map-link,
.company-profile__value a.company-profile__map-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D71618;
  text-decoration: none;
  padding: 2px 5px;
  background-color: transparent;
  transition: all 0.25s ease;
}

.company-profile__value a.company-profile__map-link:hover {
  background-color: rgba(215, 22, 24, 0.7);
  color: #ffffff !important;
  text-decoration: none;
}

.company-profile__value a.company-profile__map-link:hover .fa-location-dot {
  color: #ffffff !important;
}

.company-profile__officers-grid {
  display: grid;
  grid-template-columns: 112px 1fr;
  row-gap: 4px;
  align-items: center;
}

/* リスト全体の余白リセット */
.profile-list {
  list-style: none; /* デフォルトの黒丸を消す */
  padding-left: 0;
}

.profile-list li {
  position: relative;
  padding-left: 1.2em;
}

/* CSSで「・」を自動付与（折り返しても2行目が「・」の下に潜り込まない） */
.profile-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
}

/* 小見出しの設定 */
.profile-subgroup {
  margin-bottom: 1.5em;
}

.profile-subgroup:last-child {
  margin-bottom: 0;
}

.profile-subgroup__title {
  font-weight: 500;
  margin-bottom: 0.4em;
}

.company-profile__company-link {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.company-profile__company-link:hover {
  color: #09830A;
}

/* ==================================
  アクセス
================================== */

.company-access {
  margin-top: 80px;
}

/* テキスト下の余白：32px */
.company-access__text {
  margin-top: 0;
  margin-bottom: 32px;
  line-height: 1.6;
}

/* 地図（iframe）下の余白：200px */
.company-access__map {
  display: block;      /* 下部の微小な隙間を抑止 */
  margin-bottom: 200px;
}

/* スマホ表示時の調整 */
@media (max-width: 768px) {
  .company-access__map {
    height: 350px;      /* スマホでは地図の高さを少し抑えるとおさまりが良くなります */
    margin-bottom: 100px; /* スマホ時は下の余白も調整 */
  }
}

/* ==================================
  レスポンシブ対応
================================== */
@media (max-width: 1200px) {
  .hero-text-box {
    left: 5vw;
  }
}

@media (max-width: 768px) {
.hero-title {
        font-size: 28px;
        margin: 0 0 10px 0;
        letter-spacing: 2px;
  }

.hero-sub {
    letter-spacing: 0;
  }

  .company-lead {
    margin-top: 60px;
  }

  .greeting-flex {
    flex-direction: column-reverse;
  }

  .greeting-img {
    width: 100%;
  }

  /* スマホ時にテーブルのセルを縦並び（ブロック）にする */
  .company-profile__table,
  .company-profile__table tbody,
  .company-profile__table tr,
  .company-profile__table th,
  .company-profile__table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* ラベルの幅指定と強制改行をリセット */
  .company-profile__label {
    width: 100%;
    white-space: normal;
  }

  /* 値の幅指定をリセット */
  .company-profile__value {
    width: 100%;
  }

  .company-mid-img {
    margin: 50px 0 64px;
}

.section-heading {
    font-size: 28px;
    margin-bottom: 50px;
}

.greeting-flex {
    margin-bottom: 64px;
}

.company-profile__table {
    margin: 0 auto 64px;
}
.greeting-signature .name {
    font-size: 23px;
}
.company-profile__table th, .company-profile__table td {
    padding: 16px 18px;
}
.company-profile__label {
    font-size: 18px;
}
}