/* ============================================================
   株式会社ミドリノート — about.css
   会社情報ページ固有のレイアウト。tokens.css のトークンのみ使用。
   ============================================================ */

/* ---------------- HERO (下層・編集的な導入) ---------------- */
.subhero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(7.5rem, 17vh, 13rem);
  padding-bottom: var(--space-5);
}
.subhero__ghost {
  position: absolute;
  top: clamp(6rem, 13vh, 10rem);
  left: 0;
  font-size: clamp(3.2rem, 15vw, 16rem);
  z-index: 0;
}
.subhero .container { position: relative; z-index: 1; }
.subhero__inner { align-items: end; row-gap: var(--space-2); }

.subhero__meta {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-self: start;
}
.subhero__vertical { height: clamp(7rem, 14vh, 11rem); }

.hero-title {
  grid-column: 3 / 13;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.7rem, 9vw, 7.6rem);
  line-height: 1.02;
  letter-spacing: 0.004em;
  font-feature-settings: "palt" 1;
  word-break: keep-all;
}
.hero-title .l { display: block; overflow: hidden; }

.hero-ink {
  grid-column: 3 / 10;
  width: min(72%, 400px);
  height: auto;
  margin-top: var(--space-2);
}

.subhero__body {
  grid-column: 7 / 13;
  margin-top: var(--space-4);
  font-size: var(--step-1);
  line-height: 1.85;
  max-width: 34ch;
  color: color-mix(in srgb, var(--color-fg) 88%, transparent);
}

/* ---------------- MESSAGE ---------------- */
.message__grid { row-gap: var(--space-4); }
.message__aside {
  grid-column: 1 / 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.message__vertical { height: clamp(6rem, 13vh, 10rem); }

.message__title {
  grid-column: 3 / 10;
  grid-row: 1;
  font-size: var(--step-3);
  line-height: 1.05;
}
.message__title .l { display: block; overflow: hidden; }

.message__body {
  grid-column: 6 / 13;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
}
.message__body p { font-size: var(--step-0); max-width: 46ch; }

.message__sign {
  position: relative;
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: baseline;
  gap: 0.8em;
  width: fit-content;
  padding-bottom: 0.6em;
}
.message__sign-role { font-size: var(--step--1); color: var(--color-muted); }
.message__sign-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
}
.message__sign-ink {
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: 14px;
}

/* ---------------- PROFILE (麻ベージュの面) ---------------- */
.profile__panel {
  background: var(--color-surface);
  padding-block: var(--space-6);
  position: relative;
}
.profile__grid { row-gap: var(--space-4); }
.profile__head {
  grid-column: 1 / 5;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.profile__head h2 { font-size: var(--step-2); }
.profile__num {
  margin-top: var(--space-2);
  opacity: 0.5;
}

.profile__list {
  grid-column: 6 / 13;
  border-bottom: 1px solid var(--hairline);
}
.profile__row {
  display: grid;
  grid-template-columns: minmax(6rem, 11rem) 1fr;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.profile__row dt {
  font-size: var(--step--1);
  color: var(--color-muted);
  letter-spacing: 0.02em;
}
.profile__row dd { font-size: var(--step-0); line-height: 1.7; }

/* ---------------- HISTORY (縦タイムライン) ---------------- */
.history__grid { row-gap: var(--space-4); }
.history__head {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: sticky;
  top: clamp(6rem, 12vh, 9rem);
  align-self: start;
}
.history__head h2 { font-size: var(--step-2); }
.history__vertical { margin-top: var(--space-2); height: clamp(5rem, 10vh, 8rem); }

.history__inner {
  grid-column: 4 / 13;
  position: relative;
  padding-left: clamp(2.4rem, 5vw, 3.6rem);
}
.history__line {
  position: absolute;
  top: 0.2rem;
  left: clamp(0.9rem, 2vw, 1.4rem);
  width: 8px;
  height: calc(100% - 0.4rem);
}
.history__list { display: flex; flex-direction: column; }
.history__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(4.5rem, 7rem) 1fr;
  gap: clamp(1rem, 3vw, 2.2rem);
  align-items: start;
  padding-block: var(--space-3);
  border-top: 1px solid var(--hairline);
}
.history__row:first-child { border-top: 0; }
.history__dot {
  position: absolute;
  left: calc(-1 * clamp(2.4rem, 5vw, 3.6rem) + clamp(0.9rem, 2vw, 1.4rem) - 4px);
  top: calc(var(--space-3) + 0.55em);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px var(--color-bg);
}
.history__dot--last {
  background: var(--color-bg);
  border: 3px solid var(--color-accent);
}
.history__year {
  font-size: var(--step-0);
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 0.15em;
}
.history__event {
  font-size: var(--step-0);
  line-height: 1.85;
  max-width: 46ch;
}

/* ---------------- FOOTER ---------------- */
.site-footer {
  position: relative;
  padding-block: var(--space-6) var(--space-4);
  margin-top: var(--space-6);
}
.footer__rule { margin-bottom: var(--space-5); }
.footer__top { row-gap: var(--space-4); align-items: start; }
.footer__cta { grid-column: 1 / 7; display: flex; flex-direction: column; gap: var(--space-3); align-items: flex-start; }
.footer__tagline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--step-2);
  line-height: 1.15;
  font-feature-settings: "palt" 1;
}
.footer__contact {
  grid-column: 8 / 13;
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-size: var(--step--1);
  line-height: 1.7;
  color: color-mix(in srgb, var(--color-fg) 82%, transparent);
}
.footer__company { color: var(--color-fg); font-weight: 500; }
.footer__contact a { width: fit-content; }

.footer__brand {
  position: relative;
  margin-block: var(--space-5) var(--space-4);
}
.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 13vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}
.footer__logo-ink {
  position: absolute;
  left: 0;
  bottom: -0.1em;
  width: 100%;
  height: clamp(18px, 3vw, 34px);
}

.footer__marquee {
  border-block: 1px solid var(--hairline);
  padding-block: var(--space-2);
  margin-bottom: var(--space-4);
}
.footer__marquee-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--color-fg) 65%, transparent);
}
.footer__marquee-item--accent { color: var(--color-accent); }

.footer__meta { align-items: center; row-gap: var(--space-3); }
.footer__nav {
  grid-column: 1 / 9;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.9rem, 2.5vw, 2rem);
}
.footer__nav a {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  position: relative;
  padding-block: 0.2em;
}
.footer__nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-1) var(--ease-out-quart);
}
.footer__nav a:hover::after,
.footer__nav a[aria-current="page"]::after { transform: scaleX(1); }
.footer__nav a[aria-current="page"] { color: var(--color-accent); }
.footer__copy {
  grid-column: 9 / 13;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--color-muted);
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .subhero__body { grid-column: 5 / 13; }
  .message__body { grid-column: 4 / 13; }
  .message__title { grid-column: 3 / 12; }
  .profile__head { grid-column: 1 / 6; }
  .profile__list { grid-column: 6 / 13; }
}

@media (max-width: 720px) {
  .subhero { padding-top: clamp(6rem, 20vh, 8rem); }
  .subhero__meta,
  .hero-title,
  .hero-ink,
  .subhero__body,
  .message__aside,
  .message__title,
  .message__body,
  .profile__head,
  .profile__list,
  .history__head,
  .history__inner,
  .footer__cta,
  .footer__contact,
  .footer__nav,
  .footer__copy { grid-column: 1 / -1; }

  .subhero__inner { row-gap: var(--space-3); }
  .subhero__meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .subhero__vertical, .message__vertical, .history__vertical { height: auto; }
  .hero-ink { width: min(80%, 320px); }
  .subhero__body { max-width: none; }

  .message__grid { row-gap: var(--space-3); }
  .message__title { grid-row: auto; }
  .message__aside { grid-row: auto; flex-direction: row; align-items: center; gap: var(--space-3); }
  .message__body { grid-row: auto; }
  .message__body p { max-width: none; }

  .profile__num { position: static; }

  .history__head { position: static; flex-direction: row; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
  .history__inner { padding-left: 2rem; }
  .history__line { left: 0.6rem; }
  .history__row { grid-template-columns: 4.5rem 1fr; gap: var(--space-2); }
  .history__dot { left: -1.4rem; }
  .history__event { max-width: none; }

  .footer__copy { text-align: left; }
  .footer__logo { font-size: clamp(2.2rem, 16vw, 5rem); }
}

@media (max-width: 480px) {
  .history__row { grid-template-columns: 1fr; }
  .history__year { color: var(--color-accent); }
  .history__dot { top: calc(var(--space-3) + 0.2em); }
}

@media (min-width: 2100px) {
  .subhero__body, .message__body p, .history__event { max-width: 42ch; }
}
