/* =========================================================
   company.css
   会社概要ページ専用スタイル
   ========================================================= */

/* ▼ ページヒーロー */
.page-hero--company {
  background:
    linear-gradient(rgba(27, 42, 74, .72), rgba(27, 42, 74, .72)),
    url("images/hero/hero-01.jpg") center/cover no-repeat;
}

/* ▼ 代表メッセージ */
.message-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.message-photo {
  position: sticky;
  top: 100px;
}
.message-photo-frame {
  margin: 0;
  background: #fff;
  border: 1px solid #e5e0d4;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.message-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.photo-caption {
  display: block;
  text-align: center;
  padding: .8rem .5rem 1rem;
  background: #fafaf7;
  color: var(--navy, #1b2a4a);
  font-weight: 600;
  font-size: .95rem;
  border-top: 1px solid #e5e0d4;
}
.message-body {
  line-height: 2;
}
.message-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy, #1b2a4a);
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--gold, #c5a55a);
}
.message-body p {
  margin-bottom: 1.2rem;
  color: #333;
  font-size: .98rem;
}
.message-body strong {
  color: var(--navy, #1b2a4a);
  font-weight: 700;
  background: linear-gradient(transparent 60%, rgba(197, 165, 90, .2) 60%);
}
.message-sign {
  margin-top: 2rem;
  text-align: right;
  font-weight: 600;
  color: var(--navy, #1b2a4a);
  line-height: 1.8;
}

/* ▼ 数字で見る */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.number-item {
  background: #fff;
  border: 1px solid #e5e0d4;
  border-top: 4px solid var(--gold, #c5a55a);
  border-radius: 8px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
.number-value {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold, #c5a55a);
  line-height: 1;
  margin-bottom: .8rem;
}
.number-value small {
  font-size: 1rem;
  font-family: inherit;
  color: var(--navy, #1b2a4a);
  margin-left: .2rem;
}
.number-label {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy, #1b2a4a);
  line-height: 1.6;
}
.number-sub {
  display: block;
  font-size: .8rem;
  color: #777;
  margin-top: .3rem;
}

/* ▼ 会社概要テーブル（フル幅） */
.company-table--full {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  border-radius: 8px;
  overflow: hidden;
}
.company-table--full th,
.company-table--full td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid #e5e0d4;
  font-size: .95rem;
  vertical-align: top;
  line-height: 1.7;
}
.company-table--full th {
  width: 200px;
  background: #fafaf7;
  font-weight: 600;
  color: var(--navy, #1b2a4a);
}
.company-table--full tbody tr:last-child th,
.company-table--full tbody tr:last-child td {
  border-bottom: none;
}

/* ▼ 沿革 */
.history-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  position: relative;
}
.history-list::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(to bottom, #e5e0d4, var(--gold, #c5a55a), #e5e0d4);
}
.history-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 1.2rem 0;
  position: relative;
  align-items: start;
}
.history-item::before {
  content: "";
  position: absolute;
  left: 102px;
  top: 28px;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 3px solid var(--gold, #c5a55a);
  border-radius: 50%;
  z-index: 1;
}
.history-item--merger::before {
  background: var(--gold, #c5a55a);
  border-color: var(--navy, #1b2a4a);
  box-shadow: 0 0 0 4px rgba(197, 165, 90, .2);
}
.history-year {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy, #1b2a4a);
  padding-top: 1rem;
  text-align: right;
}
.history-year small {
  font-size: .85rem;
  display: block;
  font-family: inherit;
  color: #777;
  margin-top: .1rem;
}
.history-body {
  background: #fff;
  border: 1px solid #e5e0d4;
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  margin-left: 2.5rem;
}
.history-body h3 {
  font-size: 1.1rem;
  color: var(--navy, #1b2a4a);
  margin: .3rem 0 .5rem;
}
.history-body p {
  font-size: .92rem;
  line-height: 1.75;
  color: #444;
}
.history-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 3px;
  color: #fff;
  letter-spacing: .05em;
}
.history-tag--tosk   { background: #4a6b8a; }
.history-tag--assist { background: #8a6d3b; }
.history-tag--merger { background: var(--gold, #c5a55a); }

/* ▼ MVV（経営理念 + Mission + Vision + Value の4枚） */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
/* 経営理念は1枚目で全幅、Valueは4枚目で全幅 */
.mvv-card--credo,
.mvv-card--value {
  grid-column: 1 / -1;
}
.mvv-card--credo {
  background: linear-gradient(135deg, #fcf9f1 0%, #fff 100%);
  border-left: 4px solid var(--gold, #c5a55a);
}
.mvv-card--credo h3 {
  font-size: 1.35rem;
  color: var(--navy, #1b2a4a);
}
/* Value 内の3項目 */
.mvv-value-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.mvv-value-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .8rem;
  padding: 1rem 1.1rem;
  background: #fcf9f1;
  border-radius: 6px;
  border-top: 3px solid var(--gold, #c5a55a);
}
.mvv-value-num {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold, #c5a55a);
  line-height: 1;
}
.mvv-value-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy, #1b2a4a);
  margin: 0 0 .4rem;
  line-height: 1.45;
}
.mvv-value-desc {
  font-size: .85rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}
@media (max-width: 720px) {
  .mvv-value-list { grid-template-columns: 1fr; }
}
.mvv-card {
  background: #fff;
  border: 1px solid #e5e0d4;
  border-radius: 8px;
  padding: 1.8rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
  position: relative;
}
.mvv-label {
  display: inline-block;
  font-family: "Playfair Display", serif;
  font-size: .85rem;
  letter-spacing: .15em;
  color: var(--gold, #c5a55a);
  background: #f7f5ef;
  padding: .3rem .9rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}
.mvv-card h3 {
  font-size: 1.15rem;
  color: var(--navy, #1b2a4a);
  margin-bottom: .8rem;
  line-height: 1.5;
}
.mvv-card p {
  font-size: .92rem;
  line-height: 1.85;
  color: #444;
}

/* ▼ 事業内容 */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 2rem;
}
.business-card {
  background: #fff;
  border: 1px solid #e5e0d4;
  border-radius: 8px;
  padding: 1.5rem 1.3rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.business-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}
.business-icon {
  font-size: 2rem;
  margin-bottom: .6rem;
}
.business-card h3 {
  font-size: 1.05rem;
  color: var(--navy, #1b2a4a);
  margin-bottom: .6rem;
}
.business-card p {
  font-size: .9rem;
  line-height: 1.7;
  color: #555;
}

/* ▼ アクセス */
.access-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  margin-top: 2rem;
}
.access-dl {
  background: #fff;
  border: 1px solid #e5e0d4;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .04);
  margin: 0;
}
.access-dl dt {
  font-weight: 700;
  color: var(--gold, #c5a55a);
  font-size: .85rem;
  letter-spacing: .05em;
  margin-top: 1rem;
}
.access-dl dt:first-child { margin-top: 0; }
.access-dl dd {
  margin: .3rem 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: #333;
  padding-bottom: .8rem;
  border-bottom: 1px dashed #e5e0d4;
}
.access-dl dd:last-child { border-bottom: none; padding-bottom: 0; }
.access-map iframe {
  display: block;
}

/* ▼ レスポンシブ */
@media (max-width: 900px) {
  .message-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .message-photo { position: static; max-width: 220px; margin: 0 auto; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .mvv-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: repeat(2, 1fr); }
  .access-layout { grid-template-columns: 1fr; }
  .history-list::before { left: 80px; }
  .history-item { grid-template-columns: 70px 1fr; gap: 1rem; }
  .history-item::before { left: 72px; }
  .history-year { font-size: 1.2rem; }
  .history-body { margin-left: 2rem; }
  .company-table--full th { width: 130px; padding: .8rem; font-size: .88rem; }
  .company-table--full td { padding: .8rem; font-size: .9rem; }
}
@media (max-width: 640px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .business-grid { grid-template-columns: 1fr; }
  .history-list::before { display: none; }
  .history-item { grid-template-columns: 1fr; gap: .5rem; }
  .history-item::before { display: none; }
  .history-year { text-align: left; padding-top: 0; }
  .history-body { margin-left: 0; }
  .message-title { font-size: 1.15rem; }
}
