@font-face {
  font-family: Insaniburger;
  src: url('assets/fonts/Insanibu.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f5ebdc;
  --ink: #502314;
  --muted: #765744;
  --red: #d62300;
  --action: #b91f00;
  --line: #cdbba4;
  --menu: #fff8ee;
  --placeholder: #e4d3b8;
  --display: Insaniburger, 'Arial Rounded MT Bold', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: Arial, Helvetica, sans-serif; font-size: 16px; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; outline-offset: 5px; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: 8px; left: 8px; padding: 12px 16px; background: var(--menu); z-index: 20; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 10; border-top: 4px solid var(--red); border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner { max-width: 1120px; min-height: 92px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 20px; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; width: 51px; height: 56px; }
.brand-divider { width: 1px; height: 36px; background: var(--line); }
.brand-label { font-size: 14px; line-height: 1.3; }
.brand-label strong { font-weight: 700; }
.equipment-navigation { display: flex; align-items: center; gap: 20px; }
.navigation-label { font-size: 13px; color: var(--muted); }
.selector { position: relative; }
.selector-trigger { display: flex; align-items: center; gap: 12px; min-height: 48px; min-width: 204px; padding: 12px 0; border: 0; border-bottom: 2px solid var(--ink); border-radius: 0; background: transparent; text-align: left; font-weight: 700; font-size: 14px; }
.selector-trigger .chevron { width: 18px; height: 18px; margin-left: auto; transition: transform 160ms ease; }
.selector-trigger[aria-expanded=true] .chevron { transform: rotate(180deg); }
.selector-trigger:hover { color: var(--action); }
.equipment-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 284px; padding: 8px; background: var(--menu); border: 1px solid var(--line); box-shadow: 0 6px 16px #50231414; }
.equipment-menu a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px; text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--line); }
.equipment-menu a:last-child { border-bottom: 0; }
.equipment-menu a[aria-current=page] { color: var(--action); font-weight: 700; }
.equipment-menu a:hover { background: var(--cream); }
.menu-machine-icon { width: 28px; height: 28px; flex-shrink: 0; }

.page-shell { max-width: 1120px; margin: 0 auto; padding: 32px 40px 48px; }
.intro { padding: 0 0 24px; border-bottom: 2px solid var(--ink); }
.intro-title { display: flex; align-items: center; gap: 12px; }
.title-mark { display: grid; place-items: center; color: var(--red); flex-shrink: 0; }
.title-mark .icon { width: 28px; height: 28px; }
h1 { font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1.1; margin: 0; }

.equipment-guide { min-width: 0; }
.machine-overview { display: grid; grid-template-columns: minmax(0, 1fr) 208px; align-items: center; gap: 32px; padding: 28px 0; }
.machine-heading { min-width: 0; }
.machine-category { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
h2 { font-family: var(--display); font-size: clamp(48px, 6vw, 72px); font-weight: 400; line-height: 1.05; margin: 0; overflow-wrap: break-word; }
.equipment-illustration { display: flex; align-items: center; justify-content: flex-end; }
.equipment-illustration svg { display: block; width: 208px; height: auto; }
.problems-section { min-width: 0; }
.problems-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
h3 { font-family: var(--display); font-size: 25px; font-weight: 400; line-height: 1.2; margin: 0; }
.guide-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.problem { border-bottom: 1px solid var(--line); }
.problem:first-child { border-top: 1px solid var(--line); }
.problem-trigger { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; width: 100%; padding: 22px 0; border: 0; background: transparent; text-align: left; }
.problem-name { font-size: 18px; font-weight: 600; line-height: 1.45; }
.problem-toggle { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; transition: transform 160ms ease; }
.problem-toggle .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.problem-trigger:hover .problem-name { color: var(--action); }
.problem-trigger[aria-expanded=true] .problem-toggle { transform: rotate(45deg); color: var(--action); }
.problem-trigger[aria-expanded=true] .problem-name { color: var(--action); }
.problem-content { padding: 0 0 28px; }
.video-placeholder { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 0; background: var(--placeholder); overflow: hidden; }
.play-symbol { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: var(--ink); color: var(--cream); transition: transform 160ms ease; }
.play-symbol svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.video-placeholder:hover .play-symbol { transform: scale(1.06); }

.site-footer { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.5; }
.footer-inner > span:first-child { font-weight: 700; }
.footer-separator { display: inline-block; margin: 0 10px; font-weight: 400; opacity: .55; }
.registered { font-size: 8px; vertical-align: super; }
.noscript-message { padding: 20px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .header-inner { padding-inline: 28px; }
  .page-shell { padding: 28px 28px 40px; }
  .site-footer { padding-inline: 28px; }
  .machine-overview { grid-template-columns: minmax(0, 1fr) 176px; gap: 24px; }
  .equipment-illustration svg { width: 176px; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 100px; }
  .header-inner { min-height: 80px; padding: 12px 20px; gap: 16px; }
  .brand img { width: 43px; height: 47px; }
  .brand-divider, .brand-label, .navigation-label { display: none; }
  .selector-trigger { min-width: 148px; min-height: 44px; max-width: 250px; gap: 8px; padding: 10px 0; font-size: 12px; }
  .selector-trigger > .icon:first-child { width: 18px; height: 18px; }
  .equipment-menu { width: 264px; max-width: calc(100vw - 40px); }
  .page-shell { padding: 24px 20px 32px; }
  .intro { padding-bottom: 20px; }
  .intro-title { gap: 10px; }
  .title-mark .icon { width: 24px; height: 24px; }
  h1 { font-size: clamp(22px, 6.4vw, 30px); }
  .machine-overview { grid-template-columns: minmax(0, 1fr) 108px; gap: 16px; padding: 28px 0 32px; }
  .machine-category { margin-bottom: 8px; font-size: 12px; }
  h2 { font-size: 42px; }
  .equipment-illustration svg { width: 108px; }
  .problems-header { padding-bottom: 16px; gap: 12px; }
  h3 { font-size: 23px; }
  .guide-count { font-size: 12px; }
  .problem-trigger { min-height: 68px; gap: 16px; padding: 20px 0; }
  .problem-name { font-size: 15px; }
  .problem-toggle .icon { width: 20px; height: 20px; }
  .problem-content { padding-bottom: 24px; }
  .play-symbol { width: 56px; height: 56px; }
  .play-symbol svg { width: 23px; height: 23px; }
  .site-footer { padding-inline: 20px; }
  .footer-inner { padding: 20px 0 24px; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 10px; }
}
@media (max-width: 359px) {
  .header-inner { padding-inline: 16px; }
  .selector-trigger { min-width: 144px; max-width: 210px; }
  .page-shell, .site-footer { padding-inline: 16px; }
  .machine-overview { grid-template-columns: minmax(0, 1fr) 88px; gap: 12px; }
  .equipment-illustration svg { width: 88px; }
  h2 { font-size: 36px; }
  h3 { font-size: 21px; }
  .guide-count { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
