/* ============================================================
   Law Office of Hajime Iwaki — component additions
   Loaded AFTER style.css on every page.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --sans-jp: 'Noto Sans JP', 'Inter', 'Hiragino Sans', sans-serif;
}

/* ---------- Text link with arrow ---------- */
.text-link {
  display: inline-block; margin-top: 6px; color: var(--navy); font-weight: 600;
  font-size: 15px; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.text-link:hover { color: var(--navy2); }

/* ---------- Home: credential strip under hero ---------- */
.trust-strip { background: var(--navy); color: #DCE3EF; padding: 18px 0; border-bottom: none; }
.trust-strip p { margin: 0; font-size: 14.5px; color: #DCE3EF; line-height: 1.55; }

/* ---------- Home: practice tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.tile {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  padding: 22px 24px; text-decoration: none; transition: border-color .15s ease;
}
.tile:hover { border-color: var(--navy); }
.tile h3 { font-size: 18px; color: var(--navy); margin: 0; }
.tile p { font-size: 14.5px; color: var(--muted); margin: 0; }
.tile h3 + p {
  margin: 10px 0 14px; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.tile .more {
  margin-top: auto; align-self: flex-start; color: var(--navy); font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--gold); padding-bottom: 2px;
}
.tile:hover .more { color: var(--navy2); }

/* ---------- How We Work: fee / link blocks ---------- */
.fee-panel {
  background: #fff; border-left: 4px solid var(--gold); border-radius: 3px;
  padding: 24px 28px; margin-top: 8px; max-width: 760px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.fee-panel h3 { margin-bottom: 6px; color: var(--navy); }
.fee-panel p { margin: 0; }

.link-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.link-grid.three { grid-template-columns: repeat(3, 1fr); }
.link-block {
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px;
  display: flex; flex-direction: column;
}
.link-block h3 { color: var(--navy); margin-bottom: 8px; }
.link-block p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.link-block .text-link { margin-top: auto; align-self: flex-start; }

/* ---------- Setup Sprint: deliverables + timeline ---------- */
.deliverables { list-style: none; padding: 0; margin: 24px 0 0; max-width: 760px; }
.deliverables li {
  padding: 14px 0 14px 28px; border-top: 1px solid var(--rule); position: relative; font-size: 16px;
}
.deliverables li:last-child { border-bottom: 1px solid var(--rule); }
.deliverables li::before {
  content: ""; position: absolute; left: 4px; top: 23px; width: 8px; height: 8px;
  background: var(--gold); border-radius: 50%;
}
.deliverables strong { color: var(--navy); }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 30px; }
.timeline .step { padding: 20px 20px 0 0; border-top: 3px solid var(--rule); position: relative; }
.timeline .step::before {
  content: ""; position: absolute; top: -8px; left: 0; width: 13px; height: 13px;
  background: var(--gold); border-radius: 50%;
}
.timeline .day {
  font-family: var(--serif); font-size: 22px; color: var(--navy); font-weight: 600; margin-bottom: 6px;
}
.timeline p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Crisis Response: scenario cards ---------- */
.scenario-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.scenario { background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 4px; padding: 22px 24px; }
.scenario h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.scenario p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Practice / vignette cards (Practices, Experience) ---------- */
.practice-block { padding: 64px 0; border-bottom: 1px solid var(--rule); }
.practice-block.alt { background: var(--soft); }
.practice-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 4px; }
.practice-num { font-family: var(--serif); font-size: 15px; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }

.tier-callout {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  background: #fff; border: 1px solid var(--rule); border-radius: 6px;
  padding: 18px 22px; margin-top: 26px;
}
.tier-callout p { margin: 0; font-size: 14.5px; color: var(--muted); }
.tier-callout p strong { color: var(--navy); }
.tier-callout a.cta { padding: 10px 18px; font-size: 14px; white-space: nowrap; }

/* ---------- Timeline labels (Experience eras) ---------- */
.era-label {
  display: inline-block; background: var(--soft2); color: var(--navy);
  padding: 5px 12px; border-radius: 999px; font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}

.placeholder-note {
  background: var(--gold-soft); border: 1px dashed var(--gold);
  border-radius: 6px; padding: 16px 18px; font-size: 14px; color: #6b5322; margin: 22px 0;
}
.placeholder-note strong { color: #4a3a17; }

/* ---------- Bio layout (About) ---------- */
.bio-grid { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; margin-top: 8px; }
.bio-portrait {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 6px; background: var(--soft2);
  border: 1px solid var(--rule); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 16px;
}
.credential-list { list-style: none; margin: 18px 0 0; padding: 0; }
.bio-grid.no-portrait { grid-template-columns: 1fr 280px; gap: 48px; margin-top: 12px; }
.bio-grid.no-portrait .lead { margin-top: 0; }
.bio-grid.no-portrait .credential-list {
  margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 8px 20px;
}
.credential-list li { font-size: 14.5px; color: var(--ink); padding: 8px 0; border-top: 1px solid var(--rule); }
.credential-list li:first-child { border-top: none; }
.credential-list .label { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 2px; }

/* ---------- Japanese text (Contact address) ---------- */
.ja-text { font-family: var(--sans-jp); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }

/* ---------- Parked content: elements with the hidden attribute stay hidden ---------- */
[hidden] { display: none !important; }

/* ---------- Experience A/B test ----------
   A = current view (by practice), B = previous view (prior firms vs. current office).
   Variant A shows by default and without JavaScript. */
html:not([data-exp-variant="b"]) .exp-b { display: none; }
html[data-exp-variant="b"] .exp-a { display: none; }

/* ---------- Contact page ---------- */
.contact-panel {
  background: #fff; border: 1px solid var(--rule); border-radius: 8px;
  padding: 36px; margin-top: 28px;
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 26px; }
.info-card { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; }
.info-card .label { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 8px; display: block; }


/* ---------- Compact page variant (Japan Setup Sprint, Employment Crisis Response) ---------- */
section.compact { padding: 56px 0; }
.split { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: start; }
.split h2 { font-size: 28px; margin-bottom: 14px; }
.split .lead { font-size: 17px; margin: 0; }
.split .deliverables { margin-top: 0; }
.split .deliverables li { padding: 11px 0 11px 28px; font-size: 15.5px; }
.split .deliverables li::before { top: 20px; }
.split + .split { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--rule); }
.split-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.split-cols h2 { font-size: 26px; margin-bottom: 12px; }
.split-cols .lead { font-size: 16.5px; margin: 0; }
section.compact .timeline { margin-top: 22px; }
.invest-note {
  margin-top: 36px; background: #fff; border-left: 4px solid var(--gold); border-radius: 3px;
  padding: 18px 24px; max-width: 760px; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.invest-note .section-title { font-size: 12px; margin-bottom: 6px; }
.invest-note h3 { font-size: 18px; color: var(--navy); margin-bottom: 4px; }
.invest-note p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Contact: office details in one card ---------- */
.office-card {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px;
  background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 26px 28px; margin-top: 26px;
}
.office-card .label { font-size: 12px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 8px; display: block; }
.office-card p { margin: 0; font-size: 15px; line-height: 1.65; }
.office-card .ja-text { margin: 0; padding-top: 0; border-top: none; }
.office-card .contact-lines a { color: var(--navy); }

@media (max-width: 860px) {
  .topbar .inner { flex-wrap: wrap; gap: 10px; }
  .nav { flex-wrap: wrap; gap: 6px 0; }
  .nav a:first-child { margin-left: 0; }
  .tile-grid, .scenario-grid, .link-grid, .link-grid.three { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 22px; }
  .timeline .step { border-top: none; border-left: 3px solid var(--rule); padding: 0 0 0 22px; }
  .timeline .step::before { top: 4px; left: -8px; }
  .bio-grid, .bio-grid.no-portrait { grid-template-columns: 1fr; gap: 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .split, .split-cols, .office-card { grid-template-columns: 1fr; gap: 24px; }
  section.compact { padding: 44px 0; }
  .tier-callout { flex-direction: column; align-items: flex-start; }
  .contact-panel { padding: 24px 20px; }
  .container { padding: 0 16px; }
}

/* ---------- Newsletter: hashtags, article list, article text ---------- */
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hashtag {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--navy);
  background: var(--soft2); border: 1px solid var(--rule); border-radius: 999px;
  padding: 4px 12px; text-decoration: none; line-height: 1.4;
}
.hashtag:hover { border-color: var(--navy); }
.hashtag.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.topic-filter { margin-top: 22px; }
.crumb { color: inherit; text-decoration: none; }
.crumb:hover { text-decoration: underline; }

.post-list { display: flex; flex-direction: column; gap: 0; }
.post-card { padding: 26px 0; border-top: 1px solid var(--rule); }
.post-card:last-child { border-bottom: 1px solid var(--rule); }
.post-card .post-date { font-size: 12.5px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 6px; }
.post-card h3 { font-size: 22px; margin: 0 0 8px; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0; color: #333; font-size: 15.5px; max-width: 760px; }
.post-card .hashtags { margin-top: 12px; }
.archive-note { margin-top: 22px; }

.hero h1.article-title { font-size: 40px; max-width: 860px; }
.article-section { padding-top: 56px; }
.prose { max-width: 720px; }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: var(--ink); }
.prose p { margin: 0 0 18px; }
.prose h2 { font-size: 26px; margin: 38px 0 12px; }
.prose h3 { font-size: 20px; color: var(--navy); margin: 32px 0 10px; line-height: 1.35; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--navy); }
.article-note {
  max-width: 720px; margin-top: 36px; padding: 16px 20px; font-size: 14px; color: var(--muted);
  background: var(--soft); border-left: 3px solid var(--gold); border-radius: 3px;
}
.article-note a { color: var(--navy); }
.related { max-width: 720px; margin-top: 40px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.related li span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.related a { color: var(--navy); text-decoration: none; font-weight: 600; }
.related a:hover { text-decoration: underline; }
.pager { max-width: 720px; display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; font-size: 14.5px; }
.pager a { color: var(--navy); text-decoration: none; max-width: 48%; }
.pager a:last-child { text-align: right; }
.pager a:hover { text-decoration: underline; }

/* ---------- Legal text pages (privacy policy) ---------- */
.legal-updated { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .hero h1.article-title { font-size: 30px; }
  .prose p, .prose li { font-size: 16px; }
  .related li { flex-direction: column; gap: 2px; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .pager a:last-child { text-align: left; }
}
