/* ==========================================================
   下層の記事ページ（/techo-about/ /tebiki/）用
   2026-09-11 WordPress 廃止にともない追加。
   トークン（--ink / --blue / --yellow / --paper / --red / --sky）は
   style.css の :root をそのまま使う。
   ========================================================== */

.page-header {
  position: relative;
  padding: 118px clamp(20px, 5vw, 80px) 56px;
  background: var(--blue);
  color: #fff;
}
.page-header .eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--yellow);
}
.page-header h1 {
  max-width: 20em;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 900;
  text-wrap: balance;
}
.page-header p {
  max-width: 46em;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 2;
  color: rgba(255, 255, 255, .88);
}

/* パンくず */
.crumbs {
  padding: 14px clamp(20px, 5vw, 80px);
  border-bottom: 1px solid rgba(24, 32, 45, .12);
  font-size: 12px;
  letter-spacing: .04em;
}
.crumbs a { color: var(--blue); text-underline-offset: 4px; }
.crumbs span { color: #7b8593; margin: 0 .5em; }

/* 本文 */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 58px clamp(20px, 5vw, 40px) 76px;
}
.article > * + * { margin-top: 26px; }
.article h2 {
  margin-top: 58px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--yellow);
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 900;
}
.article h2:first-child { margin-top: 0; }
.article p { margin: 0; font-size: 16px; line-height: 2.05; }
.article ul, .article ol { margin: 0; padding-left: 1.5em; }
.article li { margin: 10px 0; line-height: 2; }
.article ol { counter-reset: n; list-style: none; padding-left: 0; }
.article ol > li {
  counter-increment: n;
  position: relative;
  padding-left: 46px;
}
.article ol > li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: .15em;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font: italic 16px 'DM Serif Display', serif;
}
.article ul > li::marker { color: var(--red); }

.article figure { margin: 34px 0; }
.article img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(24, 32, 45, .14);
  box-shadow: 9px 9px 0 var(--sky);
}
.article figcaption {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: #5b6572;
}

/* 行動導線 */
.article .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0;
}
.btn-solid, .btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: .2s ease;
}
.btn-solid {
  background: var(--blue);
  color: #fff;
  box-shadow: 6px 6px 0 var(--yellow);
}
.btn-solid:hover { transform: translateY(-3px); box-shadow: 9px 9px 0 var(--yellow); }
.btn-line {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-line:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }

/* 次に見るもの */
.next-up {
  border-top: 1px solid rgba(24, 32, 45, .14);
  padding: 46px clamp(20px, 5vw, 40px) 70px;
  max-width: 760px;
  margin: 0 auto;
}
.next-up h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--red);
}
.next-up ul { list-style: none; margin: 0; padding: 0; }
.next-up li + li { border-top: 1px solid rgba(24, 32, 45, .12); }
.next-up a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: .2s ease;
}
.next-up a:hover { padding-left: 12px; color: var(--blue); }
.next-up a i { font-style: normal; font-size: 20px; }
.next-up a small { display: block; font-weight: 400; font-size: 12.5px; color: #6b747f; margin-top: 3px; }

/* ヘッダーのページ内リンク（下層では通常リンク） */
.site-header .links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
}
.site-header .links a {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  opacity: .92;
}
.site-header .links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.site-header .links .mini-cta { opacity: 1; }

@media (max-width: 800px) {
  .page-header { padding: 96px 20px 42px; }
  .article { padding: 42px 20px 56px; }
  .article h2 { margin-top: 44px; }
  .btn-solid, .btn-line { min-width: 0; flex: 1 1 100%; }
  .site-header .links a:not(.mini-cta) { display: none; }
}

/* 下層ページにはお知らせ帯が無いので、ヘッダーを上端に寄せる
   （body.sub を付けたページだけに効かせる） */
body.sub .site-header { top: 0; }
@media (max-width: 800px) {
  body.sub .site-header { top: 0; height: 64px; }
  .page-header { padding-top: 86px; }
}

/* トップのフッターに足した下層リンク */
footer p a { color: #cfd6df; text-decoration: none; }
footer p a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* お知らせ帯：狭い画面では1行に収める（ヘッダーが重なるのを防ぐ） */
@media (max-width: 760px) {
  /* 帯の高さは元設計（1行・約32px）を保つ。ヘッダーが top:32px で重なるため */
  .notice-sub { display: none; }
}
