@charset "UTF-8";

/* ==========================================================================
   歴史と理念ページ固有スタイル
   共通スタイル（common.css）・下層ページ共通ヘッダー／見出し（lower.css）は
   別ファイル。このファイルは common.css → lower.css の後に読み込むこと。
   ========================================================================== */



/* 沿革セクション */
#story {
  position: relative;
}
#story .section-head {
  margin-bottom: 70px;
}
.gen-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.gen-row {
  display: flex;
  align-items: flex-start;
}
/* .gen-media は3世代とも同じ幅で固定し、.gen-line（.gen-content側）のx位置を揃える */
.gen-media {
  flex-shrink: 0;
  width: 466px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.gen-heading .label-caps { display: block; margin-bottom: 5px; }
.gen-heading h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}
.gen-list .gen-row:nth-child(1) .gen-photo { width: 247px; height: 287px; }
.gen-list .gen-row:nth-child(2) .gen-photo { width: 380px; height: 350px; }
.gen-list .gen-row:nth-child(3) .gen-photo { width: 380px; height: 400px; }
.gen-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.gen-content {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-top: 24px;
  padding-left: 86px;
}
/* .gen-line：.gen-content の高さに合わせて100%で伸縮するSVG。始点終点の●はmarkerで実装 */
.gen-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  color: var(--accent);
  overflow: visible;
}
.gen-timeline { margin: 0; }
.gen-year-item {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.gen-year-item:last-child { border-bottom: none; }
.gen-year-item .year {
  flex-shrink: 0;
  width: 128px;
  font-family: "Noto Serif JP", serif;
  color: var(--accent);
  font-size: 0.92rem;
  line-height: 1.6;
}
.gen-year-item .desc { flex: 1; min-width: 0; }
.gen-year-item .desc h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.gen-year-item .desc p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--sub);
}
.gen-year-item .desc .desc-photo {
  margin-top: 20px;
  width: 250px;
}
.gen-year-item .desc .desc-photo.is-lg {
  width: 400px;
}
.gen-year-item .desc .desc-photo {
  width: 100%;
  height: 284px;
}
.gen-year-item .desc .desc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* 近年の活動実績 */
.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--panel);
}
.activity-list > li {
  display: flex;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px dashed var(--line);
}
.activity-list > li:last-child { border-bottom: none; }
/* .activity-list > li:hover { background: var(--bg); } */
.activity-list .period {
  flex-shrink: 0;
  width: 108px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--sub);
  padding-top: 2px;
}
.activity-list .items { flex: 1; min-width: 0; }
.activity-list .items p {
  margin: 0 0 6px;
  font-size: 0.85rem;
}
.activity-list .items p:last-child { margin-bottom: 0; }

#activities.alt-bg {
  position: relative;
  overflow: hidden;
}
.activities-flourish-lg,
.activities-flourish-sm {
  position: absolute !important;
  z-index: 0;
  pointer-events: none;
}
.activities-flourish-lg {
  top: 60px;
  right: 3%;
  left: auto;
  width: 300px;
  height: auto;
  margin: 0 !important;
  z-index: -1;
}
.activities-flourish-sm {
  bottom: 0;
  left: 0;
  width: 190px;
  height: auto;
  margin: 0 !important;
  z-index: -1;
}
#activities.alt-bg > * {
  position: relative;
  z-index: 1;
}

/* 地域案内マップ */
.map-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.map-block .map-image {
  width: 100%;
  height: auto;
}
.map-info {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}
.map-info-text { flex: 1; }
.map-info-image {
  flex: 1;
  height: 260px;
  overflow: hidden;
}
.map-info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.map-info .label-caps { display: block; margin-bottom: 10px; }
.map-info h3 { font-size: 1.2rem; margin-bottom: 18px; }
.map-info address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--ink);
}
.map-info address p { margin: 0 0 8px; }
.map-info .map-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--sub);
}

@media (max-width: 1120px) {
  .gen-content { padding-left: 30px; }
  .gen-year-item { flex-direction: column; gap: 4px; }
  .gen-year-item .year { width: auto; }
}

@media (max-width: 860px) {
  .history-hero { padding-top: 120px; }
  .history-hero-inner { flex-direction: column; gap: 24px; }
  .history-hero-lead { max-width: none; }
  .history-hero-banner { height: 220px; }
  .history-hero-flourish { width: 320px; }
  .history-breadcrumb { justify-content: flex-start; padding-top: 20px; }

  #story .section-head { margin-bottom: 48px; }
  .gen-row { flex-direction: column; gap: 24px; }
  .gen-media { width: 100%; }
  .gen-list .gen-row:nth-child(1) .gen-photo,
  .gen-list .gen-row:nth-child(2) .gen-photo,
  .gen-list .gen-row:nth-child(3) .gen-photo { width: 100%; height: 280px; }
  .gen-list .gen-row:nth-child(1) .gen-photo img{
    object-position: 50% 20%;
  }
  .gen-content { width: 100%; padding-top: 0; padding-left: 24px; }
  .gen-year-item .desc .desc-photo,
  .gen-year-item .desc .desc-photo.is-lg { width: 100%; }

  .activity-list > li { flex-direction: column; gap: 6px; padding: 18px 20px; }
  .activity-list .period { width: auto; }
  .activities-flourish-lg { width: 200px; top: 30px;}
  .activities-flourish-sm { width: 130px; }

  .map-block { gap: 20px; }
  .map-info { flex-direction: column; align-items: stretch; gap: 20px; }
  .map-info-image { height: 200px; }
}
