/* =========================================================
   Maruhin JAPAN株式会社 — site stylesheet
   Palette: warm white / charcoal / vermilion (朱色) accent
   ========================================================= */

:root {
  --paper: #f8f5ef;        /* warm white */
  --paper-deep: #efe9df;   /* slightly deeper warm white for bands */
  --ink: #2b2a28;          /* charcoal */
  --ink-2: #55524c;        /* body text */
  --ink-3: #8b867d;        /* muted text */
  --line: #ddd5c8;         /* hairlines */
  --shu: #c8432c;          /* vermilion 朱色 */

  --serif: "Cormorant Garamond", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15.5px;
  line-height: 2;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body { letter-spacing: 0.01em; line-height: 1.85; font-size: 16px; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.4em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  margin: 0;
}
/* break Japanese headings at natural phrase boundaries (supported browsers) */
h1, h2, h3, .hero-quote, .intro-lead, .pull-quote, .message-lead, .philosophy-statement { word-break: auto-phrase; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { letter-spacing: 0.02em; line-height: 1.25; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.nowrap { white-space: nowrap; } /* keep a name (e.g. building) together on one line */

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(248, 245, 239, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }

.logo { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.logo-mark { height: 50px; width: auto; display: block; overflow: visible; }
/* header: logo and company name a bit larger */
.site-header .logo-mark { height: 60px; }
.site-header .logo-name b { font-size: 20px; }
.site-header .logo-name small { font-size: 17px; letter-spacing: 0.2em; margin-top: 3px; color: var(--ink-2); }
.logo-mark .logo-enso { fill: #bc002d; } /* the 〇 of the logo in Japanese red (日の丸 / 紅); 品 stays charcoal */
.logo-name { display: flex; flex-direction: column; line-height: 1.25; border-left: 1px solid var(--line); padding-left: 14px; }
.logo-name b { font-family: var(--serif); font-weight: 500; font-size: 17px; letter-spacing: 0.16em; color: var(--ink); }
.logo-name small { font-size: 10.5px; letter-spacing: 0.3em; color: var(--ink-3); }

.nav-toggle { display: none; }
.nav-button { display: none; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 36px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav ul a {
  position: relative; font-size: 14px; letter-spacing: 0.12em; color: var(--ink-2);
  padding: 6px 0; transition: color .25s ease; white-space: nowrap;
}
html[lang="en"] .site-nav ul a { letter-spacing: 0.06em; }
.site-nav ul a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 1px;
  background: var(--shu); transition: width .3s ease, left .3s ease;
}
.site-nav ul a:hover { color: var(--ink); }
.site-nav ul a:hover::after,
.site-nav ul a[aria-current="page"]::after { width: 100%; left: 0; }
.site-nav ul a[aria-current="page"] { color: var(--ink); }

.lang-switch { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.14em; color: var(--ink-3); }
.lang-switch a { padding: 4px 0; transition: color .25s; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .is-current { color: var(--ink); font-weight: 500; }
.lang-switch span[aria-hidden] { width: 1px; height: 12px; background: var(--line); }

/* ---------- Page hero (sub pages) ---------- */

.page-hero { padding: clamp(24px, 3vw, 36px) 0 clamp(20px, 2.5vw, 28px); border-bottom: 1px solid var(--line); }
.page-hero .eyebrow { margin-bottom: 4px; }
.page-hero + .section { padding-top: clamp(36px, 4.5vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--serif); font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--shu); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--shu); }
.eyebrow--name { text-transform: none; letter-spacing: 0.16em; font-size: 15px; } /* company name label: keep "Maruhin JAPAN" as written */
.page-hero h1 { font-size: clamp(26px, 3vw, 34px); line-height: 1.35; }
.page-hero .lead { margin-top: 6px; color: var(--ink-2); line-height: 1.8; }

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 88px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--deep { background: var(--paper-deep); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 34px); }

/* ---------- Photo placeholders ----------
   To add a photo, put an <img> inside the .photo element, e.g.
   <div class="photo photo--wide"><img src="assets/img/hero.jpg" alt="..."></div>
   The placeholder label disappears automatically. */

.photo {
  position: relative; overflow: hidden; background: var(--paper-deep);
  aspect-ratio: 4 / 3; width: 100%;
}
.photo--wide { aspect-ratio: 16 / 9; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo img.pos-top { object-position: center top; } /* keep the top of the photo when it is trimmed */
/* logo shown in a photo box (ご挨拶 card on the Home page) */
.photo--logo { display: grid; place-items: center; background: var(--paper-deep); border: 1px solid var(--line); color: var(--ink); }
.photo--logo .logo-mark { height: 46%; width: auto; }
.photo:empty {
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(43, 42, 40, 0.035) 14px 15px),
    var(--paper-deep);
  border: 1px solid var(--line);
}
.photo:empty::after {
  content: attr(data-ph);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
}

/* ---------- Home ---------- */

.hero { padding: clamp(28px, 3.5vw, 48px) 0 clamp(40px, 4.5vw, 60px); }
.hero .photo { aspect-ratio: 4 / 3; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-title { font-family: var(--serif); font-size: clamp(32px, 4.6vw, 54px); line-height: 1.6; letter-spacing: 0.1em; color: var(--ink); font-weight: 500; }
html[lang="en"] .hero-title { line-height: 1.2; letter-spacing: 0.01em; font-size: clamp(36px, 4.6vw, 56px); }
.hero-sub { margin-top: 20px; max-width: 460px; }
.hero-title.is-latin { line-height: 1.2; letter-spacing: 0.01em; font-size: clamp(36px, 4.6vw, 56px); }
.hero .more { margin-top: 8px; }
.hero-quote { font-family: var(--serif); font-size: clamp(18px, 1.9vw, 22px); color: var(--ink); line-height: 1.7; letter-spacing: 0.08em; }
html[lang="en"] .hero-quote { font-style: italic; letter-spacing: 0.01em; line-height: 1.5; }
/* Japanese tagline in brush calligraphy (筆文字), same brush font as the 品 of the logo */
html[lang="ja"] .hero-quote { font-family: "Yuji Syuku", "Noto Serif JP", serif; font-size: clamp(21px, 2.3vw, 27px); letter-spacing: 0.12em; }
.hero-text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-text > *:nth-child(2) { animation-delay: .12s; }
.hero-text > *:nth-child(3) { animation-delay: .24s; }
.hero-text > *:nth-child(4) { animation-delay: .36s; }
.hero .photo { animation: fade 1.4s ease .2s both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.intro { display: grid; grid-template-columns: 210px 1fr; gap: clamp(28px, 4vw, 48px); }
.intro h2 { font-size: clamp(22px, 2.6vw, 27px); }
.intro-body { max-width: 900px; font-size: 15px; line-height: 1.85; }
.intro-body p { margin-bottom: 0.8em; }
/* Home page: compact About and card sections */
.section:has(.intro), .section:has(.cards) { padding: clamp(36px, 4.5vw, 56px) 0; }
.intro-lead {
  font-family: var(--serif); color: var(--ink); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.8;
  padding-left: 22px; border-left: 1px solid var(--shu); margin-bottom: 1.4em !important;
}
html[lang="en"] .intro-lead { line-height: 1.5; }
/* Japanese pages: mixed Japanese + English serif text uses one font, so "Maruhin JAPAN" matches the kanji/kana */
html[lang="ja"] .intro-lead, html[lang="ja"] .section-head h2 { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.card { display: block; color: var(--ink-2); }
.card .photo { aspect-ratio: 2 / 1; margin-bottom: 14px; transition: opacity .4s ease; }
.card:hover .photo { opacity: .85; }
.card-num { font-family: var(--serif); font-size: 12.5px; letter-spacing: 0.2em; color: var(--shu); }
.card h3 { font-size: 20px; margin: 2px 0 6px; }
.card p { font-size: 14px; line-height: 1.8; }
.card .more { margin-top: 6px; }
.section:has(.cards) .section-head { margin-bottom: clamp(20px, 2.5vw, 28px); }

.more {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 12px;
  font-size: 12.5px; letter-spacing: 0.2em; color: var(--ink);
}
.more::after { content: ""; width: 32px; height: 1px; background: currentColor; transition: width .3s ease, background .3s; }
.card:hover .more::after, a.more:hover::after { width: 48px; background: var(--shu); }

.cta { background: var(--ink); color: rgba(248, 245, 239, 0.78); padding: clamp(32px, 4vw, 48px) 0; }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta .eyebrow { margin-bottom: 6px; }
.cta h2 { color: var(--paper); font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 4px; }
.cta .btn { min-height: 50px; }
.cta .eyebrow { color: #e3826f; }
.cta .eyebrow::before { background: #e3826f; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 0 40px; border: 1px solid currentColor;
  font-family: var(--sans); font-size: 14px; letter-spacing: 0.2em; cursor: pointer;
  background: transparent; color: inherit; transition: background .3s, color .3s, border-color .3s;
}
.cta .btn { color: var(--paper); }
.cta .btn:hover { background: var(--shu); border-color: var(--shu); }

/* ---------- Business ---------- */

.biz { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.biz + .biz { margin-top: clamp(72px, 10vw, 120px); }
.biz:nth-child(even) .photo { order: 2; }
.biz-num { font-family: var(--serif); font-size: 56px; line-height: 1; color: var(--line); letter-spacing: 0; }
.biz h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 18px 0 20px; }
.prose { font-size: 15.5px; line-height: 1.9; }
.prose p { margin-bottom: 1em; }
/* Business page: shorter landscape photo, less space above */
.biz .photo { aspect-ratio: 4 / 3; }
.biz { gap: clamp(28px, 4vw, 56px); }
.page-hero + .section:has(.biz) { padding-top: clamp(24px, 3vw, 36px); padding-bottom: clamp(40px, 5vw, 64px); }
.section:has(.request) { padding: clamp(36px, 4.5vw, 56px) 0; }
.pull-quote {
  font-family: var(--serif); color: var(--ink); font-size: clamp(18px, 1.9vw, 21px); line-height: 1.75;
  padding: 14px 0; margin: 4px 0 1em !important; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

.request { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.request h2 { font-size: clamp(24px, 3vw, 32px); }
.request p { font-size: 16px; max-width: 600px; }

/* ---------- Company ---------- */

.philosophy { text-align: center; max-width: 820px; margin: 0 auto; }
.philosophy .eyebrow { justify-content: center; }
.philosophy .eyebrow::before { display: none; }
.philosophy-statement {
  font-family: var(--serif); color: var(--ink); font-weight: 500;
  font-size: clamp(24px, 3.4vw, 36px); line-height: 1.9; letter-spacing: 0.14em; margin: 8px 0 40px;
}
html[lang="en"] .philosophy-statement { letter-spacing: 0.02em; line-height: 1.45; }
.philosophy-rule { width: 1px; height: 56px; background: var(--shu); margin: 0 auto 40px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(56px, 7vw, 80px); }
.value { background: var(--paper); padding: 40px 32px; }
.value h3 { font-size: 20px; margin-bottom: 12px; }
.value span { font-family: var(--serif); color: var(--shu); font-size: 13px; letter-spacing: 0.2em; }

.profile { border-top: 1px solid var(--ink); margin: 0; }
.profile > div { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 11px 0; line-height: 1.75; border-bottom: 1px solid var(--line); }
.page-hero + .section:last-child { padding-bottom: clamp(40px, 5vw, 64px); }
/* Company page: less space between the title band and "Profile / 会社概要" */
.page-hero + .section:has(.profile) { padding-top: clamp(20px, 2.5vw, 28px); }
.profile dt { color: var(--ink); font-weight: 500; }
.profile dd { margin: 0; }

/* ---------- CEO message ---------- */

.message { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.message--text { grid-template-columns: 1fr; max-width: calc(900px + var(--gutter) * 2); }
.message-photo { position: sticky; top: calc(var(--header-h) + 40px); }
.message-photo figcaption { margin-top: 18px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.12em; }
.message-lead { font-family: var(--serif); color: var(--ink); font-size: clamp(20px, 2.2vw, 25px); line-height: 1.65; letter-spacing: 0.1em; margin-bottom: 22px; }
html[lang="en"] .message-lead { line-height: 1.35; letter-spacing: 0.01em; }
.message-body { font-size: 15.5px; line-height: 1.9; }
.message-body p { margin-bottom: 1em; }
.signature { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); text-align: right; line-height: 1.6; }
.signature small { display: block; font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.14em; }
.signature b { font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--ink); letter-spacing: 0.2em; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info h2 { font-size: 22px; margin-bottom: 8px; }
.contact-info > p { font-size: 14px; }
.contact-list { margin: 20px 0 0; border-top: 1px solid var(--line); }
.contact-list > div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 11px; line-height: 1.6; letter-spacing: 0.26em; color: var(--ink-3); text-transform: uppercase; }
.contact-list dd { margin: 2px 0 0; line-height: 1.5; font-family: var(--serif); font-size: 19px; color: var(--ink); letter-spacing: 0.06em; word-break: break-all; }
.contact-list a:hover { color: var(--shu); }

.form { display: grid; gap: 14px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; } /* spam trap, hidden from visitors */
.form-intro { margin: 0 0 2px; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); word-break: auto-phrase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink); margin-bottom: 5px; letter-spacing: 0.1em; }
.req { font-size: 10.5px; letter-spacing: 0.1em; color: var(--shu); border: 1px solid var(--shu); padding: 0 7px; line-height: 1.7; }
.req--opt { color: var(--ink-3); border-color: var(--ink-3); } /* 任意 / Optional: same box as 必須, in grey */
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.5; color: var(--ink); letter-spacing: 0.04em;
  background: #fffdf9; border: 1px solid var(--line); border-radius: 0;
  padding: 9px 14px; transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(200, 67, 44, 0.12); }
.form-note { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }
.form .btn { justify-self: start; background: var(--ink); color: var(--paper); border-color: var(--ink); min-width: 220px; min-height: 48px; }
.form .btn:hover { background: var(--shu); border-color: var(--shu); }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-deep); border-top: 1px solid var(--line); padding: 36px 0 18px; font-size: 13px; }
.footer-top { display: flex; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.footer-brand .logo-mark { height: 36px; }
.footer-brand .logo-name b { font-size: 19px; }
.footer-brand .logo-name small { font-size: 15px; letter-spacing: 0.2em; margin-top: 2px; color: var(--ink-2); }
.footer-brand p { margin-top: 10px; color: var(--ink-3); line-height: 1.7; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; align-content: flex-start; }
.footer-nav a { color: var(--ink-2); letter-spacing: 0.1em; }
.footer-nav a:hover { color: var(--shu); }
.copyright { margin-top: 14px; margin-bottom: 0; font-size: 11.5px; letter-spacing: 0.14em; color: var(--ink-3); }

/* ---------- Focus ---------- */

a:focus-visible, button:focus-visible, .nav-button:focus-visible { outline: 2px solid var(--shu); outline-offset: 4px; }
.nav-toggle:focus-visible + .nav-button { outline: 2px solid var(--shu); outline-offset: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-nav ul { gap: 22px; }
  .site-nav { gap: 24px; }
  .logo-name { display: none; }
}

@media (max-width: 820px) {
  :root { --header-h: 74px; }
  .logo-mark, .site-header .logo-mark { height: 46px; }
  .logo-name { display: flex; }
  .logo-name b, .site-header .logo-name b { font-size: 17px; }
  .site-header .logo-name small { font-size: 14.5px; margin-top: 1px; }
  .footer-brand .logo-name b { font-size: 17px; }
  .footer-brand .logo-name small { font-size: 13.5px; }

  .nav-button {
    display: flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; margin-left: auto; cursor: pointer; padding: 10px;
  }
  .nav-button span { display: block; height: 1px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; }
  .nav-toggle:checked + .nav-button span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle:checked + .nav-button span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-button span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .site-nav {
    /* the header's backdrop-filter makes it the containing block, so size explicitly */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 40px;
    padding: 32px var(--gutter) 48px; margin: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }
  .nav-toggle:checked ~ .site-nav { visibility: visible; opacity: 1; transform: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav ul a { display: block; padding: 18px 0; font-size: 17px; font-family: var(--serif); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a[aria-current="page"] { color: var(--shu); }
  .lang-switch { font-size: 14px; }

  .hero .wrap, .intro, .biz, .message, .contact, .request { grid-template-columns: 1fr; }
  .hero .photo { order: -1; aspect-ratio: 4 / 3; }
  .biz:nth-child(even) .photo { order: 0; }
  .cards, .values { grid-template-columns: 1fr; }
  .cards { gap: 56px; }
  .message-photo { position: static; max-width: 420px; }
  .profile > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .form-row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }

  /* phones: larger tap areas (about 40px+) and slightly larger small labels */
  .footer-nav { gap: 0 24px; }
  .footer-nav a { display: inline-block; padding: 10px 0; }
  .contact-list a, .profile a { display: inline-block; padding: 8px 0; }
  .more { padding: 10px 0; margin-top: 2px; }
  .lang-switch a, .lang-switch .is-current { display: inline-block; padding: 10px 8px; }
  .req { font-size: 11.5px; }
}

/* the smallest phones (320–380px wide): keep logo, name and menu button on one line */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .site-header .wrap { gap: 12px; }
  .logo { gap: 10px; }
  .logo-mark, .site-header .logo-mark { height: 38px; }
  .logo-name { padding-left: 10px; }
  .logo-name b, .site-header .logo-name b { font-size: 15px; letter-spacing: 0.1em; }
  .site-header .logo-name small { font-size: 12.5px; letter-spacing: 0.16em; }
  .nav-button { width: 40px; flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
