/* =======================================
   会社情報ページ /jp/profile/
   profile.css
   ※ base.css / header.css との併用前提
======================================= */

/* ページ全体の基調色 */
body.profile {
  background-color: #fffdf8;
}

/* 共通コンテナがあればそれを優先 */
.profile-main {
  padding-bottom: 80px;
}

/* PC/SP 切り替え用（なければここで定義） */
.pc-only {
  display: inline;
}
.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .pc-only {
    display: none;
  }
  .sp-only {
    display: inline;
  }
}

/* =========================
   フォント系
========================= */

/* 見出し用：明朝体優先 */
.profile-hero__title,
.profile-section__title,
.profile-history__date,
.profile-history__headline {
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN W3",
               "Hiragino Mincho ProN", "MS 明朝", serif;
}

/* 本文は base.css の指定を優先しつつ、少し行間をゆったり */
.profile-main,
.profile-main p,
.profile-main li,
.profile-main td,
.profile-main th {
  line-height: 1.8;
}

/* =========================
   HERO
========================= */

.profile-hero {
  background: #ffffff;
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.profile-hero .l-container {
  max-width: 1040px;
  margin: 0 auto;
}

.profile-hero__inner {
  display: flex;
  gap: 40px;
  align-items: center;
}

.profile-hero__text {
  flex: 1 1 55%;
}

.profile-hero__eyecatch {
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: #8a6b3f;
  margin: 0 0 8px;
}

.profile-hero__title {
  font-size: 2rem;
  color: #4a3522;
  margin: 0 0 14px;
}

.profile-hero__lead {
  font-size: 0.98rem;
  color: #4f4a43;
  margin: 0;
}

.profile-hero__lead br {
  line-height: 2;
}

.profile-hero__image {
  flex: 1 1 45%;
  max-width: 420px;
}

.profile-hero__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* =========================
   セクション共通
========================= */

.profile-section {
  padding: 3.5rem 0;
}

.profile-section .l-container {
  max-width: 960px;
  margin: 0 auto;
}

.profile-outline {
  background-color: #fffaf2;
}

.profile-history {
  background-color: #ffffff;
}

.profile-section__head {
  margin-bottom: 1.8rem;
}

.profile-section__title {
  font-size: 1.6rem;
  color: #4a3522;
  margin: 0 0 0.6rem;
}

.profile-section__lead {
  font-size: 0.95rem;
  color: #5b5248;
  margin: 0;
  max-width: 36em;
}

/* =========================
   会社概要テーブル
========================= */

.profile-outline__table-wrap {
  overflow-x: auto;
}

.profile-outline__table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.profile-outline__table th,
.profile-outline__table td {
  padding: 12px 16px;
  font-size: 0.93rem;
  vertical-align: top;
}

.profile-outline__table th {
  width: 7.5em;
  white-space: nowrap;
  background-color: #f8efe3;
  color: #5a4028;
  text-align: left;
  border-bottom: 1px solid #f0e4d6;
}

.profile-outline__table td {
  background-color: #ffffff;
  border-bottom: 1px solid #f5eee3;
  color: #4e4740;
}

/* 最終行の線だけ少し薄めに */
.profile-outline__table tr:last-child th,
.profile-outline__table tr:last-child td {
  border-bottom: none;
}

/* テーブル内リンク */
.profile-outline__table a {
  color: #b4511f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-outline__table a:hover,
.profile-outline__table a:focus-visible {
  color: #d16224;
}

/* =========================
   沿革（タイムライン）
========================= */

.profile-history__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* 縦ライン */
.profile-history__timeline::before {
  content: "";
  position: absolute;
  left: 7.5em;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(176, 132, 82, 0.35),
    rgba(176, 132, 82, 0.05)
  );
}

/* 個々の項目 */
.profile-history__item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 0.7rem 0 0.7rem 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* JSで付与される表示状態 */
.profile-history__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 節目の丸 */
.profile-history__item::before {
  content: "";
  position: absolute;
  left: 7.5em;
  top: 1.1rem;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background-color: #d17a34;
  box-shadow: 0 0 0 4px rgba(209, 122, 52, 0.18);
}

/* 年月 */
.profile-history__date {
  flex: 0 0 7.5em;
  font-size: 0.9rem;
  color: #6a5236;
  padding-top: 0.4rem;
}

/* 本文ブロック */
.profile-history__body {
  flex: 1 1 auto;
  padding-left: 1.2rem;
}

/* 見出し */
.profile-history__headline {
  font-size: 1.02rem;
  margin: 0 0 0.2rem;
  color: #4a3522;
}

/* テキスト */
.profile-history__text {
  font-size: 0.9rem;
  margin: 0;
  color: #4f4942;
}

/* 沿革内リンク（表彰など） */
.profile-history__headline a {
  color: #b4511f;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.profile-history__headline a:hover,
.profile-history__headline a:focus-visible {
  color: #d16224;
}

/* =========================
   レスポンシブ調整
========================= */

@media (max-width: 960px) {
  .profile-hero .l-container,
  .profile-section .l-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .profile-main {
    padding-bottom: 56px;
  }

  .profile-hero {
    padding: 2.4rem 0 2.2rem;
  }

  .profile-hero__inner {
    flex-direction: column;
    gap: 1.4rem;
  }

  .profile-hero__title {
    font-size: 1.7rem;
  }

  .profile-hero__lead {
    font-size: 0.95rem;
  }

  .profile-hero__image {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .profile-section {
    padding: 2.6rem 0;
  }

  .profile-section__title {
    font-size: 1.4rem;
  }

  .profile-section__lead {
    font-size: 0.9rem;
  }

  /* 会社概要テーブル：スマホでは行高を少し増やす */
  .profile-outline__table th,
  .profile-outline__table td {
    display: block;
    width: 100%;
    padding: 8px 12px;
  }

  .profile-outline__table th {
    border-bottom: none;
    border-top: 1px solid #f0e4d6;
  }

  .profile-outline__table tr:first-child th {
    border-top: none;
  }

  .profile-outline__table td {
    padding-top: 4px;
    padding-bottom: 12px;
  }

  /* 沿革：スマホでは縦ラインを左に寄せてシンプルに */
  .profile-history__timeline::before {
    left: 0.1rem;
  }

  .profile-history__item {
    flex-direction: column;
    padding-left: 1.4rem;
  }

  .profile-history__item::before {
    left: 0.1rem;
    margin-left: -1px;
    top: 1.2rem;
  }

  .profile-history__date {
    flex: none;
    font-size: 0.9rem;
    padding-top: 0;
  }

  .profile-history__body {
    padding-left: 0;
  }
}
