/* ==========================================================================
   about.html page-specific styles
   - Per CODING-RULES.md: 4-value margin/padding, no !important, no rem,
     no CSS variables, PC/SP separated, bottom-only vertical spacing.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base — typography & background (page-wide overrides for this page only)
   -------------------------------------------------------------------------- */
html {
  background: #f2efe9;
  color: #1c1a17;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
body {
  background: #f2efe9;
  color: #1c1a17;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
h1 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  letter-spacing: 0.04em;
}
h2 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  letter-spacing: 0.04em;
}
h3 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  letter-spacing: 0.04em;
}
h4 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  letter-spacing: 0.04em;
}


/* --------------------------------------------------------------------------
   Subpage hero
   Note: var(--hero-bg) is read from the inline style attribute on the
   <section class="subpage-hero" style="--hero-bg: url(...)"> element, which
   is the project-wide per-page hero-image mechanism inherited from style.css.
   We do NOT define this variable in CSS (rule 8) — only consume the value
   that style.css already references. Cascade order (about.css after
   style.css) is sufficient to override style.css's gradient without
   !important.
   -------------------------------------------------------------------------- */
.subpage-hero::before {
  background-image:
    linear-gradient(135deg, rgba(54, 70, 61, 0.82) 0%, rgba(105, 107, 106, 0.72) 100%),
    url('../img/hero-about.png');
  background-size: cover;
  background-position: center;
}
.subpage-hero-title {
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  color: #ffffff;
  text-shadow: 0 2px 32px rgba(13, 12, 10, 0.55);
}
.subpage-hero-jp {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.subpage-hero-lead {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.subpage-hero-eyebrow {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.3em;
}
.subpage-hero-breadcrumb {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.subpage-hero-breadcrumb a {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* --------------------------------------------------------------------------
   Subpage anchor nav (PC) — flush below .nav
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .subpage-anchor-nav {
    top: 64px;
    background: rgba(242, 239, 233, 0.78);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-top: none;
    border-bottom: 1px solid rgba(28, 26, 23, 0.08);
  }
}

/* --------------------------------------------------------------------------
   Subpage anchor nav (SP)
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .subpage-anchor-nav {
    top: 56px;
    background: rgba(242, 239, 233, 0.78);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border-top: none;
    border-bottom: 1px solid rgba(28, 26, 23, 0.08);
  }
}

/* Anchor nav decorative — non-spacing rules */
.subpage-anchor-nav li {
  border-color: rgba(28, 26, 23, 0.1);
}
.subpage-anchor-nav li:first-child {
  border-color: rgba(28, 26, 23, 0.1);
}
.subpage-anchor-nav a:hover {
  background: rgba(28, 26, 23, 0.04);
}
.subpage-anchor-nav a::before {
  background: #5f8d5b;
}
.subpage-anchor-nav .anchor-num {
  color: #5f8d5b;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.subpage-anchor-nav .anchor-jp {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.subpage-anchor-nav .anchor-en {
  color: #857f75;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.24em;
}

/* --------------------------------------------------------------------------
   Article head (section title block)
   -------------------------------------------------------------------------- */
.article-head {
  border-bottom-color: rgba(28, 26, 23, 0.1);
}
.article-head .ja-num {
  color: #5f8d5b;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.article-head h2 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.article-head-title h2 {
  margin: 6px 0 0 0;
}
.article-head-title .en {
  margin: 0;
  color: #857f75;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Sections — alternating cashmere / cashmere-deep backgrounds
   Section-specific selectors (no shared wrapper) per rule 2.
   -------------------------------------------------------------------------- */
.section {
  background: #f2efe9;
}
section#message {
  background: #f2efe9;
}
section#philosophy {
  background: #ece8de;
}
section#profile {
  background: #f2efe9;
}
section#history {
  background: #ece8de;
}
section#organization {
  background: #f2efe9;
}
section#access {
  background: #ece8de;
}

/* --------------------------------------------------------------------------
   Message section — cell grid
   -------------------------------------------------------------------------- */
.cell-grid {
  border-color: rgba(28, 26, 23, 0.1);
  background: transparent;
}

/* CEO message grid — PC: portrait 4fr + text 8fr / SP: image stacked on top,
   cropped to a comfortable landscape aspect so the column isn't dominated
   by a tall portrait photo. */
@media (min-width: 768px) {
  .ceo-msg-grid {
    grid-template-columns: 3fr 9fr;
  }
  .ceo-msg-grid > .cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .ceo-msg-grid > .cell.nopad {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .ceo-msg-grid > .cell.nopad img {
    width: 100%;
    max-width: 320px;
    height: auto;
    display: block;
    border-radius: 8px;
  }
}
@media (max-width: 767px) {
  .ceo-msg-grid {
    grid-template-columns: 1fr;
  }
  .ceo-msg-grid .cell.nopad {
    aspect-ratio: 4 / 3;
    overflow: hidden;
  }
  .ceo-msg-grid .cell.nopad img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }
}
.cell {
  background: #f2efe9;
  border-color: rgba(28, 26, 23, 0.1);
}
.cell.warm {
  background: #fff4d796;
}
.cell.inv {
  background: #1c1a17;
  color: #f2efe9;
}
.cell.inv h3 {
  color: #f2efe9;
}
.cell.inv .cell-ja {
  color: #f2efe9;
}
.cell.inv .cell-desc {
  color: #f2efe9;
}
.cell.inv .cell-label {
  color: rgba(242, 239, 233, 0.7);
}
.pullquote {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  border-left-color: #5f8d5b;
}
.pullquote::before {
  color: rgba(95, 141, 91, 0.25);
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
}
.pullquote .shu {
  background-image: none;
  text-decoration: underline wavy #5f8d5b;
  text-decoration-skip-ink: none;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.text-2col {
  color: rgba(28, 26, 23, 0.78);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.text-2col p {
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.message-sign {
  color: #857f75;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.message-sign .sign-company {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.message-sign .sign-name {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.message-sign .sign-role {
  color: #857f75;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Philosophy
   -------------------------------------------------------------------------- */
.philosophy-lead-copy {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
/* Smooth character-by-character reveal for the philosophy pullquote.
   JS (about-philosophy-reveal inline script) wraps each char in .char;
   these stagger in when the parent .philosophy-lead becomes visible. */
.philosophy-lead-copy .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.philosophy-lead.is-visible .philosophy-lead-copy .char {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .philosophy-lead-copy .char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.philosophy-lead-text {
  color: rgba(28, 26, 23, 0.72);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.cell-label {
  color: #5f8d5b;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.28em;
}
.cell-ja {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.cell-desc {
  color: rgba(28, 26, 23, 0.72);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* --------------------------------------------------------------------------
   Profile rows
   -------------------------------------------------------------------------- */
.profile-row-compact {
  border-top-color: rgba(28, 26, 23, 0.1);
}
.profile-row-compact:first-child {
  border-top-color: #1c1a17;
}
.profile-row-compact:last-child {
  border-bottom-color: #1c1a17;
}
.profile-row-compact dt {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.profile-row-compact dt small {
  color: #5f8d5b;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.22em;
}
.profile-row-compact dd {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}

/* --------------------------------------------------------------------------
   Timeline (compact)
   -------------------------------------------------------------------------- */
.timeline-compact-item {
  border-top-color: rgba(28, 26, 23, 0.1);
}
.timeline-compact-item:first-child {
  border-top-color: #1c1a17;
}
.timeline-compact-item:last-child {
  border-bottom-color: #1c1a17;
}
.timeline-compact-year {
  color: #1c1a17;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
}
.timeline-compact-item.hi .timeline-compact-year {
  color: #5f8d5b;
}
.timeline-compact-body h4 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.timeline-compact-body p {
  color: rgba(28, 26, 23, 0.72);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* --------------------------------------------------------------------------
   Organization ranks
   -------------------------------------------------------------------------- */
.org-intro-lead {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.org-intro-text {
  color: rgba(28, 26, 23, 0.72);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.org-ranks-tag {
  color: #5f8d5b;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.28em;
}
.org-ranks-title {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.org-ranks-count {
  color: #5f8d5b;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
}
.org-rank-item {
  border-top-color: rgba(28, 26, 23, 0.1);
}
.org-rank-list > .org-rank-item:last-child {
  border-bottom-color: rgba(28, 26, 23, 0.1);
}
.org-rank-item:hover {
  background: rgba(28, 26, 23, 0.03);
}
.org-rank-num {
  color: #5f8d5b;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.org-rank-body h4 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.org-rank-en {
  color: #857f75;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
  letter-spacing: 0.1em;
}
.org-rank-desc {
  color: rgba(28, 26, 23, 0.72);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* --------------------------------------------------------------------------
   Access section
   -------------------------------------------------------------------------- */
.access-info h3 {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.access-list dt {
  color: #5f8d5b;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.22em;
}
.access-list dd {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
  border-bottom-color: rgba(28, 26, 23, 0.1);
}

/* --------------------------------------------------------------------------
   CTA — onyx background, muted text
   Rule 4: no !important. Specificity raised via section.cta to win over base.
   -------------------------------------------------------------------------- */
section.cta {
  background: #1c1a17;
  color: #3e3e3e;
}
section.cta .cta-eyebrow {
  color: #3e3e3e;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.3em;
}
section.cta .cta-title {
  color: #3e3e3e;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
section.cta .cta-text {
  color: #3e3e3e;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #f2efe9;
  color: rgba(28, 26, 23, 0.72);
  border-top-color: rgba(28, 26, 23, 0.1);
}
.footer-brand-kanji {
  color: #1c1a17;
  font-family: 'Shippori Mincho', 'Noto Sans JP', serif;
}
.footer-brand-en {
  color: #857f75;
  font-family: 'Cormorant Garamond', 'Shippori Mincho', serif;
  font-style: italic;
}
.footer-address {
  color: rgba(28, 26, 23, 0.68);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.footer-top ul li {
  color: rgba(28, 26, 23, 0.68);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.footer-top ul a {
  color: rgba(28, 26, 23, 0.68);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
}
.footer-top h4 {
  color: #1c1a17;
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.26em;
}
.footer-top ul a:hover {
  color: #5f8d5b;
}
.footer-bot {
  color: rgba(28, 26, 23, 0.5);
  border-top-color: rgba(28, 26, 23, 0.1);
  font-family: 'Manrope', 'Noto Sans JP', sans-serif;
  letter-spacing: 0.18em;
}
