/* =========================================================
   会社概要ページ（company.html）専用。管理画面のプレビューも読み込む。
   沿革・寄付実績は js/site-content.js が content.company から描き直す。
   ========================================================= */
.co-inner { max-width: 1312px; margin-inline: auto; }
.co-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ヒーロー — TOP と同じ空撮写真と暗幕 */
.co-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(440px, 62vh, 620px);
  padding: clamp(96px, 10vw, 140px) var(--pad-x) clamp(40px, 5vw, 64px);
  overflow: hidden;
  background: var(--text);
  color: #fff;
}
.co-hero__photo { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 26, 46, .72) 0%, rgba(10, 26, 46, 0) 62%),
    linear-gradient(180deg, rgba(10, 26, 46, .5) 0%, rgba(10, 26, 46, 0) 32%),
    rgba(10, 26, 46, .35);
}
.co-hero__inner { width: 100%; }
.co-hero__eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(52px, 9vw, 128px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.03em;
  text-shadow: 0 2px 24px rgba(10, 26, 46, .35);
}
.co-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-jp);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
}
.co-hero__lead { max-width: 640px; margin: 14px 0 0; color: #e3ebf7; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.9; word-break: auto-phrase; }
.co-hero__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 36px); }
.co-hero__nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  transition: background-color .2s, color .2s;
}
.co-hero__nav a svg { width: 12px; height: 12px; flex: none; }
.co-hero__nav a:hover { background: #fff; color: var(--accent); }
.co-hero__nav a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* 会社情報 — TOP の .home-company に項目を追加 */
.co-profile .home-company__facts > div { grid-template-columns: 96px minmax(0, 1fr); }
.co-profile .home-company__facts a { color: var(--accent); border-bottom: 1px solid currentColor; }
.co-profile .home-company__facts a:hover { color: var(--accent-deep); }
.co-profile .home-company__facts a svg { display: inline-block; width: 11px; height: 11px; margin-left: 4px; vertical-align: -1px; }
.co-place + .co-place { margin-top: 4px; }
.co-place__name { display: inline-block; min-width: 5.5em; margin-right: 10px; color: var(--accent-deep); font-size: 13px; font-weight: 700; }
.co-place__addr { display: inline-block; }
/* 日本語の文節で折り返す（対応ブラウザのみ） */
.co-profile .home-company__lead, .co-community .home-company__lead, .co-history__lead, .co-timeline__text, .co-year td, .co-community__photos figcaption { word-break: auto-phrase; }

/* 沿革 */
.co-history { padding: clamp(56px, 6vw, 88px) var(--pad-x); scroll-margin-top: var(--header-h, 71px); }
.co-history__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(32px, 5vw, 80px); }
.co-history__head { position: sticky; top: 96px; }
.co-history__head h2 { margin: 0; color: var(--accent-deep); font-family: var(--font-jp); font-size: clamp(20px, 1.9vw, 26px); font-weight: 700; line-height: 1.5; }
.co-history__lead { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.co-history__photo { width: 100%; height: auto; aspect-ratio: 4 / 3; margin-top: 28px; border-radius: 14px; object-fit: cover; object-position: center 35%; }
.co-history__caption { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.co-history__caption span { margin-left: .5em; white-space: nowrap; }
.co-timeline { margin: 0; padding: 0; border-top: 2px solid var(--accent); list-style: none; }
.co-timeline__year { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 20px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.co-timeline__y { margin: 0; color: var(--accent); font-family: var(--font-display); font-size: 24px; line-height: 1.3; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.co-timeline__events { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.co-timeline__events li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; margin: 0; font-size: 14px; font-weight: 500; line-height: 1.8; }
.co-timeline__m { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.co-timeline__text { margin: 0; overflow-wrap: anywhere; }
.co-timeline__text small { display: block; color: var(--muted); font-size: 12px; line-height: 1.7; }
.co-timeline__events li.is-key .co-timeline__text { color: var(--accent-deep); font-weight: 700; }
.co-timeline__events li.is-key .co-timeline__text::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--accent); vertical-align: 2px; }

/* 社会貢献活動 — TOP の INFORMATION と同じ淡いブルー背景 */
.co-community { padding: clamp(56px, 6vw, 88px) var(--pad-x); background: var(--bg-soft); scroll-margin-top: var(--header-h, 71px); }
.co-community__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; gap: clamp(28px, 4vw, 56px); }
.co-community__photos { position: sticky; top: 96px; display: grid; gap: 24px; }
.co-community__photos figure { margin: 0; }
.co-community__photos img { width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 14px; object-fit: cover; object-position: center 30%; background: #dfe5f1; }
.co-community__photos figcaption { margin-top: 10px; color: var(--text); font-size: 13px; font-weight: 700; line-height: 1.7; text-align: left; }
.co-community__photos figcaption time { display: block; color: var(--accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.co-records { padding: clamp(22px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(8, 75, 120, .04); }
.co-records__label { margin: 0 0 4px; color: var(--accent); font-family: "Archivo", sans-serif; font-size: 10px; font-weight: 700; line-height: 1.6; letter-spacing: .13em; }
.co-records h3 { margin: 0 0 14px; color: var(--accent-deep); font-family: var(--font-jp); font-size: 20px; font-weight: 700; line-height: 1.5; }
.co-records h3 span { margin-left: 8px; color: var(--muted); font-size: 13px; font-weight: 500; }
.co-year { border-top: 1px solid var(--line); }
.co-year:last-child { border-bottom: 1px solid var(--line); }
.co-year summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-block: 10px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.co-year summary::-webkit-details-marker { display: none; }
.co-year summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: -3px 4px 0 auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.co-year[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.co-year summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.co-year table { width: 100%; margin: 0 0 14px; border-collapse: collapse; font-size: 14px; line-height: 1.7; }
.co-year th, .co-year td { padding: 7px 0; border-top: 1px solid #e8ecf5; text-align: left; vertical-align: top; }
.co-year tr:first-child > * { border-top: 0; }
.co-year tbody + tbody tr:first-child > * { border-top: 1px solid #cdd6e7; }
.co-year th { width: 52px; padding-right: 12px; color: var(--muted); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.co-year td { font-weight: 500; overflow-wrap: anywhere; }
.co-year td.co-amount { width: 84px; padding-left: 12px; color: var(--accent-deep); font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (max-width: 1000px) {
  .co-history__grid { grid-template-columns: minmax(0, 1fr); }
  .co-history__head { position: static; }
  .co-history__photo { aspect-ratio: 16 / 9; max-width: 640px; }
  .co-community__grid { grid-template-columns: minmax(0, 1fr); }
  .co-community__photos { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-height: 760px) {
  .co-history__head, .co-community__photos { position: static; }
}
@media (max-width: 640px) {
  .co-hero { min-height: 420px; }
  .co-hero__nav { gap: 8px; }
  .co-hero__nav a { padding-inline: 14px; font-size: 12px; }
  .co-profile .home-company__facts > div { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .co-place__name { display: block; }
  .co-timeline__year { grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding-block: 12px; }
  .co-timeline__y { font-size: 17px; line-height: 1.55; }
  .co-timeline__events li { grid-template-columns: 34px minmax(0, 1fr); gap: 6px; font-size: 13px; }
  .co-timeline__m { font-size: 12px; }
  .co-community__photos { gap: 12px; }
  .co-community__photos figcaption { font-size: 12px; }
  .co-year table { font-size: 13px; }
  .co-year th { width: 40px; padding-right: 8px; }
  .co-year td.co-amount { width: 70px; padding-left: 8px; }
}
