/* About page (about/) — page layer on top of site.css.  Classes: about-*  (see templates/about.html) */

/* Japanese: strict line breaking (no line starting with ー, small kana or closing punctuation) */
html[lang="ja"] .page-about main{line-break:strict}

/* hero: the intro sentence breaks into even lines (no single character on the last line) — in Chinese only after
   its punctuation, so that balancing never splits the company name (股份有|限公司); the same rule as the core's
   .keep-phrases.  (Japanese: the core already breaks .hero-page__intro between phrases.) */
.page-about .hero-page__intro{text-wrap:balance}
html[lang="zh-CN"] .page-about .hero-page__intro{word-break:keep-all;overflow-wrap:break-word}
/* phones: the opening phrase — the company name with its comma / particle, 17 zh / 19 ja characters — must fit one
   line of the box (its text width is 100vw - 96px below 768 px), otherwise a line starts with "，" or "は、" */
@media (max-width:413px){
  html[lang="zh-CN"] .page-about .hero-page__intro{font-size:clamp(13px,calc((100vw - 96px) / 17.4),15px);letter-spacing:0}
  html[lang="ja"] .page-about .hero-page__intro{font-size:clamp(13px,calc((100vw - 96px) / 19.4),15px);letter-spacing:0}
}

/* long texts: a comfortable measure (≈ 38 CJK characters / 75 Latin characters per line), no orphans */
.about-intro .split__content,.about-profile .split__content{max-width:38em}
html[lang="en"] .about-intro .split__content,html[lang="en"] .about-profile .split__content{max-width:37em}
.about-intro .split__content p,.about-profile .split__content p,.about-chairman .photo-box__box p{text-wrap:pretty}

/* ── key figures: with seven figures the founding year is a tall lead tile (4 x 2 grid, 2 x 4 on tablets, a full-width
   band above a 2 x 3 grid on phones).  Its numeral is sized to its column, so that "1951 年" stays on one line. */
.about-figures__stats--lead .stat:first-child{grid-row:span 2;display:flex;flex-direction:column;padding:clamp(22px,2.4vw,34px) clamp(22px,2.4vw,32px);background:var(--bright-panel);border-top:0}
.about-figures__stats--lead .stat:first-child .stat__value{font-size:clamp(52px,5.4vw,80px);color:#fff}
.about-figures__stats--lead .stat:first-child .stat__label{margin-top:auto;padding-top:16px;color:#fff}
@media (max-width:1024px){ .about-figures__stats--lead .stat:first-child .stat__value{font-size:clamp(44px,11vw,96px)} }
/* phones: two narrow columns — figures and labels must fit their cell; the lead tile spans both columns */
@media (max-width:479px){
  .about-figures__stats .stat__value{font-size:clamp(30px,8.6vw,40px)}
  .about-figures__stats--lead .stat:first-child{grid-column:1/-1;grid-row:auto}
  .about-figures__stats--lead .stat:first-child .stat__value{font-size:clamp(44px,15vw,64px)}
  html[lang="ja"] .about-figures__stats .stat__label{font-size:13px;letter-spacing:0}
}

/* ── #history: slightly larger milestone texts */
.about-history .timeline__text{font-size:17px;line-height:1.7}
html[lang="en"] .about-history .timeline__text{line-height:1.5}
/* without JS (no year rail, no buttons) the track is a plain horizontal list: the next card peeks in at the
   right edge and the scrollbar is shown, so that the later years can be found */
.no-js .about-history .timeline__track{padding-bottom:14px;scrollbar-width:thin;scrollbar-color:var(--stripe-mid) var(--pale)}
.no-js .about-history .timeline__track::-webkit-scrollbar{display:block;height:6px;background:var(--pale)}
.no-js .about-history .timeline__track::-webkit-scrollbar-thumb{background:var(--stripe-mid)}
.no-js .about-history .timeline__item{width:30%}
@media (max-width:1024px){ .no-js .about-history .timeline__item{width:45%} }
@media (max-width:639px){ .no-js .about-history .timeline__item{width:86%} }

/* print: all ten milestones as a plain list — the scroller would only print the two or three cards in view */
@media print{
  .about-history .timeline__rail,.about-history .timeline__nav{display:none}
  .about-history .timeline__track{display:block;overflow:visible;margin:0}
  .about-history .timeline__item,.no-js .about-history .timeline__item{width:auto;padding:0;break-inside:avoid}
  .about-history .timeline__card{display:flex;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line);background:none}
  .about-history .timeline__num{flex:none;width:3.4em;font-size:22px}
  .about-history .timeline__text{margin:0}
}

/* ── #chairman: wide box with a reading measure; calmer, lower block */
.about-chairman{min-height:clamp(520px,60vw,860px);padding:clamp(56px,7vw,100px) 0}
.about-chairman .photo-box__box{width:min(100%,calc(38em + 2 * clamp(30px,3.5vw,50px)))}
.about-chairman .photo-box__box>*+*{margin-top:var(--s-4)}
.about-chairman .photo-box__box>h2+*{margin-top:var(--s-5)}
.about-chairman__salutation{font-size:clamp(17px,1.4vw,19px);color:#fff}
/* phones: the photograph as a band above the box (the long letter would hide it completely) */
@media (max-width:767px){
  .about-chairman{display:block;min-height:0;padding:0 0 var(--gutter)}
  .about-chairman .photo-box__media{position:relative;height:58vw;min-height:200px}
  .about-chairman .photo-box__inner{margin-top:-48px}
}

/* ── #bases: three captioned photographs */
.about-bases__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:clamp(20px,2.4vw,32px)}
.about-bases__grid--2,.about-bases__grid--4{grid-template-columns:repeat(2,minmax(0,1fr))}
.about-base{margin:0}
.about-base__media{--ratio:61.4%}
.about-base__caption{display:block;padding:18px 2px 20px;border-bottom:1px solid var(--line)}
.about-base__title{display:block;font-size:clamp(17px,1.4vw,19px);line-height:1.45;letter-spacing:var(--ls-head);color:var(--deep)}
.about-base__note{display:block;margin-top:6px;font-size:14px;line-height:1.6;color:var(--muted);text-wrap:pretty}
/* Japanese: the short captions break between phrases (倉|庫, 掲げら|れて …), as the core's own captions do */
html[lang="ja"] .about-base__title,html[lang="ja"] .about-base__note{word-break:auto-phrase}
@media (max-width:767px){ .about-bases__grid,.about-bases__grid--2,.about-bases__grid--4{grid-template-columns:minmax(0,1fr)} }

/* phones: text links are tap targets of at least 44 px */
@media (max-width:767px){ .page-about main .text-link{min-height:44px} }
