/* Plain HTML links remain available without scripts. */
html { scroll-padding-top:130px; }
.header { position:sticky; top:0; z-index:30; background:var(--moss,#46533d); display:grid; grid-template-columns:minmax(0,1fr) auto; height:auto; min-height:0; padding:10px 0; gap:2px 16px; }
.header .brand { grid-column:1; grid-row:1; min-width:0; }
.header .brand-en { font-size:26px; line-height:1.2; }
.header nav { grid-column:1 / -1; grid-row:2; width:auto; display:flex; flex-wrap:wrap; justify-content:flex-start; gap:16px; font-size:11px; }
.header nav a { min-height:44px; display:inline-flex; align-items:center; box-sizing:border-box; }
.header .header-contact { grid-column:2; grid-row:1; gap:10px; font-size:14px; }
.header-contact a:first-child { background:var(--orange); color:var(--ink); border-radius:7px; padding:8px 15px; font-weight:700; }
.footer-contact { display:flex; gap:24px; margin-bottom:20px; }
.footer-contact a { min-height:44px; display:inline-flex; align-items:center; }
.guide-line-link { margin:28px auto 0; max-width:520px; text-align:center; }
@media (max-width:600px) {
 .header { gap:0 8px; padding:6px 0; }
 .header .brand-en { font-size:18px; letter-spacing:.01em; }
 .header nav { gap:12px; font-size:10px; }
 .header .header-contact { gap:8px; font-size:13px; }
 .header-contact a:first-child { padding:8px 10px; }
}

.header-contact a:last-child { padding:8px 10px; border:1px solid var(--cream); border-radius:7px; font-weight:700; }
.line-note-links { padding-top:28px; padding-bottom:30px; }
.line-note-links h2 { font-size:22px; }
.line-note-links a { display:inline-flex; align-items:center; min-height:44px; margin:6px 18px 6px 0; text-underline-offset:4px; }
.line-note-links p { font-size:12px; }
@media (max-width:600px) {
 html { scroll-padding-top:170px; }
 .header .brand { grid-column:1 / -1; grid-row:1; }
 .header .header-contact { grid-column:1 / -1; grid-row:2; }
 .header nav:not(.header-contact) { grid-column:1 / -1; grid-row:3; }
}

/* Star finder: let the wordmark lead; contact links remain below the results. */
html:has(.header-brand-led) { scroll-padding-top:160px; }
.header.header-brand-led {
 grid-template-columns:minmax(0,1fr);
 grid-template-rows:auto auto;
 padding:18px 0 8px;
 gap:8px;
}
.header-brand-led .brand { grid-column:1; grid-row:1; justify-self:center; }
.header-brand-led .brand-en {
 font-size:clamp(24px,8vw,56px);
 line-height:1.1;
 letter-spacing:.03em;
}
.header.header-brand-led nav {
 grid-column:1;
 grid-row:2;
 justify-content:center;
 font-size:12px;
 gap:20px;
}
@media (max-width:600px) {
 html:has(.header-brand-led) { scroll-padding-top:124px; }
 .header.header-brand-led { padding-top:16px; gap:6px; }
 .header.header-brand-led nav { font-size:11px; gap:16px; }
}
