:root {
  --content-padding: 40px;
  --content-width: 1200px;
}

body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.8;
  color: #333;
  margin: 0;
  padding: 0;
}

/* =========================
   共通コンテンツ幅（PC）
   ========================= */
.intro,
.theme,
.history,
.company-info {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.theme .mission,
.theme .vision,
.theme .value,
.company-info table {
  max-width: var(--content-width);
  margin-right: auto;
  box-sizing: border-box;
  padding: var(--content-padding);
}

/* ================
   Caption
   ================ */
.about-container {
  padding: 159px 0 160.01px;
}

.about {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.about-text-eng {
  font-family: "Inter", sans-serif;
  font-size: 76.8px;
  font-weight: 400;
  line-height: 77px;
}

.about-text-jpn {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

/* ===============
   Greeting
   =============== */
.intro {
  background-color: #f0f0f0;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.intro-body {
  max-width: var(--content-width);
  margin: auto;
  display: flex;
  align-items: flex-start;
  padding-top: var(--content-padding);
  padding-bottom: var(--content-padding);
}

.intro-img {
  width: 300px;
  height: 300px;
}

.president-text {
  font-size: 18.7px;
  flex: 1;
  max-width: none;
  padding-left: 40px;
}

.president-name {
  font-size: 18.7px;
  text-align: right;
  margin-top: 30px;
  font-weight: bold;
}

/* ===============
   テーマ
   =============== */
.theme {
  padding: var(--content-padding);
}

.mission,
.vision,
.value {
  height: 200px;
  max-width: 100%;
  display: flex;
  align-items: center;
  margin: 80px 0;
  padding: 0;
  box-sizing: border-box;
}

/* 円の表示 */
.circle {
  width: 200px;
  height: 200px;
  margin-right: 40px;
  background: #d0d0d0;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  /* 円の幅を固定(潰れない) */
}

/* 円内テキスト */
.circle-text-eng {
  font-family: "Inter", sans-serif;
  font-size: 32px;
  line-height: 1.4em;
}

.circle-text-jpn {
  font-size: 18.7px;
  font-weight: 500;
  line-height: 1.4em;
}

/* テキストラッパー(ここがポイント) */
.text-block {
  flex: 1;
  /* 残りの幅を全て使う */
}

/* テーマの各テキスト */
.mission-text {
  margin: 0;
  font-size: 36px;
}

.vision-text {
  margin: 0;
  list-style-type: disc;
  /* ● を有効化 */
  list-style-position: outside;
  padding-left: 20px;
  font-size: 20px;
}

.value-text {
  margin: 0;
  list-style-type: decimal;
  /* 1. 2. 3. を有効化 */
  list-style-position: outside;
  padding-left: 20px;
  font-size: 20px;
}

/* ===== Value-text 内の <b> を有効化 ===== */
.value-text b {
  font-weight: bold;
}

.vision-text li,
.value-text li {
  margin-bottom: 6px;
}

/* ==================
   history レイアウト
   ================== */
.history {
  background-color: #f0f0f0;
  padding: 60px var(--content-padding);
}

.history ul {
  position: relative;
  list-style: none;
  max-width: var(--content-width);
  padding: var(--content-padding);
  box-sizing: border-box;
}

.history li {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.timeline {
  list-style: none;
  padding: 0;
  max-width: var(--content-width);
  position: relative;
}

/* 各行*/
/* 行の定義 */
.timeline li {
  display: grid;
  grid-template-columns: 100px 30px 1fr;
  align-items: start;
  position: relative;
}

/* 年月 */
.timeline .date {
  font-weight: bold;
  grid-column: 1;
  white-space: nowrap;
}

/* ====================
   縦線（各行に描画）
   ==================== */
/* セパレータ列 */
.timeline .separator {
  position: relative;
}

/* 縦線( li基準 ) */
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(100px + 15px);
  top: -30px;
  bottom: -30px;
  width: 3px;
  background: #cc4100;
  transform: translateX(-50%);
  z-index: 1;
}

/* 先頭行 : 上半分だけ消す */
.timeline li:first-child::before {
  top: 50%;
}

/* 最終行 : 下半分だけ消す */
.timeline li:last-child::before {
  bottom: 50%;
}

/* ====================
   二重丸
   ==================== */
/* 大きい丸(白抜き) */
.timeline .separator::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 1.4em;
  height: 1.4em;
  background: #f0f0f0;
  border: 0.3em solid #f0f0f0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* 小さい丸 */
.timeline .separator::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 15px;
  width: 0.6em;
  height: 0.6em;
  background: #cc4100;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* 説明文 */
.timeline .desc {
  grid-column: 3;
  padding-left: 15px;
}

/* 各テキストの調整 */
.history .date {
  white-space: nowrap;
  font-weight: bold;
}

.history .desc {
  font-size: 18px;
}

/* ==========
   会社情報
   ========== */
.company-info {
  box-sizing: border-box;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.company-info-inner {
  max-width: var(--content-width);
  margin-right: auto;
  box-sizing: border-box;
}

.company-info table {
  width: 100%;
  margin: 50px 0;
  margin-left: var(--content-padding);
  border-collapse: collapse;
}

.company-info th {
  width: 150px;
  font-weight: bold;
}

.company-info th,
.company-info td {
  border-top: 1px solid #ccc;
  /* 行の区切り線として水平線 */
  border-bottom: 1px solid #ccc;
  /* 行の区切り線として水平線 */
  padding: 10px;
  text-align: left;
}

.map-section iframe {
  display: block;
}

/* =========================
   スマートフォン対応
   ========================= */
@media screen and (max-width: 768px) {

  /* ===== 共通 ===== */
  body {
    line-height: 1.6;
  }

  section {
    padding-left: 0;
    padding-right: 0;
  }

  /* ===== About ===== */
  .about-container {
    padding: 80px 16px;
  }

  .about-text-eng {
    font-size: 32px;
    line-height: 39px;
  }

  .about-text-jpn {
    font-size: 16px;
    line-height: 23px;
  }

  /* ===== Intro ===== */
  .intro {
    padding: 0;
  }

  .intro-body {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 0;
  }

  .intro-img {
    width: 100%;
    height: 80%;
  }

  .president-text {
    margin-top: 10px;
    max-width: 100%;
    padding-left: 8px;
    font-size: 16px;
  }

  .president-name {
    font-size: 16px;
    text-align: right;
  }

  /* ===== Mission / Vision / Value ===== */
  .theme {
    padding: 20px 0;
  }

  .mission,
  .vision,
  .value {
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0;
  }

  .theme .mission,
  .theme .vision,
  .theme .value {
    padding-left: 16px;
    padding-right: 16px;
    height: auto;
  }

  .circle {
    margin-right: 0;
    margin-bottom: 16px;
    width: 160px;
    height: 160px;
  }

  .circle-text-jpn {
    font-size: 16px;
    line-height: 23px;
  }


  /* ====================================
   Mission / Vision / Value のリスト修正
   ==================================== */
  /* 共通 */
  .mission-text {
    text-align: left;
    font-size: 24px;
  }

  .mission-text br {
    display: none;
    /* スマートフォン対応時 <br> を無効化 */
  }

  .vision-text,
  .value-text {
    list-style-position: outside;
    margin: 0 auto;
    text-align: left;
  }

  /* Vision（・） */
  .vision-text {
    list-style-type: disc;
    /* ● を表示 */
    font-size: 18px;
  }

  /* Value（番号） */
  .value-text {
    list-style-type: decimal;
    /* 1. 2. 3. を表示 */
    font-size: 18px;
  }

  /* li の微調整 */
  .vision-text li,
  .value-text li {
    margin-bottom: 8px;
  }

  /* ===== History ===== */
  .history {
    height: auto;
    padding: 15px;
  }

  .history ul {
    margin-left: 0;
    padding: 0;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline li {
    grid-template-columns: 80px 30px 1fr;
    padding: 10px 0;
  }

  .timeline .date::before,
  .timeline .date::after {
    left: calc(100% + 10px);
  }

  /* 縦棒 */
  .timeline li::before {
    transform: none;
    left: 95px;
  }

  .timeline li:first-child::before {
    top: 30%;
  }

  /* 大きい丸 */
  .timeline li .separator::before {
    left: 55%;
    top: 0.8em;
    transform: translate(-50%, -50%);
  }

  /* 小さい丸 */
  .timeline li .separator::after {
    left: 55%;
    top: 0.8em;
    transform: translate(-50%, -50%);
  }

  .timeline .date .separator::after {
    top: calc(line-height / 2);
    left: calc(25%);
  }

  .timeline .date .separator::before {
    top: calc(line-height / 2);
    left: calc(25%);
  }

  .history .date {
    font-size: 16px;
  }

  .history .desc {
    font-size: 16px;
  }

  /* ===== Company Info（テーブルを縦並び化） ===== */
  .company-info {
    padding-left: 0;
    padding-right: 0;
  }

  .company-info-inner {
    margin: 0;
    padding-left: 16px;
    padding-right: 16px;
  }

  .company-info table {
    padding-left: 16px;
    padding-right: 16px;
    height: auto;
    margin-left: 0;
    width: 100%;
  }

  .company-info tbody,
  .company-info tr,
  .company-info th,
  .company-info td {
    width: 100%;
  }

  .company-info th,
  .company-info td {
    display: table-cell;
    /* 横並びに戻す */
    padding: 8px 6px;
    font-size: 16px;
    vertical-align: top;
  }

  .company-info th {
    white-space: nowrap;
    /* 見出しを1行に */
    width: 40%;
  }

  /* ===== Google Map ===== */
  .map-section iframe {
    height: 400px;
  }
}
