:root {
  --yellow: #F5C518;
  --yellow-soft: #FFF3C2;
  --black: #171717;
  --white: #FFFFFF;
  --gray: #F5F5F5;
  --gray-text: #555;
  --radius: 24px;
  --header-h: 72px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--black); background: var(--white);
  line-height: 1.9; font-size: 16px; overflow-x: hidden; font-feature-settings: "palt";
}
img, svg { max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 8px; top: -60px; background: var(--black); color: #fff; padding: 8px 16px; z-index: 200; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 48px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(23,23,23,.08);
}
.header-inner { height: 100%; width: min(1240px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 52px; width: auto; display: block; }
.gnav ul { display: flex; gap: 6px; align-items: center; }
.gnav a { text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .12em; padding: 10px 16px; border-radius: 999px; transition: background .25s, color .25s; }
.gnav a:hover { background: var(--yellow-soft); }
.gnav a.nav-cta { background: var(--black); color: var(--yellow); }
.gnav a.nav-cta:hover { background: var(--yellow); color: var(--black); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: var(--black); border-radius: 50%; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 13px; width: 18px; height: 2px; background: var(--yellow); transition: transform .3s, opacity .3s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 32px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 2px solid var(--black); transition: transform .25s, background .25s, color .25s, box-shadow .25s; letter-spacing: .04em; }
.btn span { transition: transform .25s; display: inline-block; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 8px 0 rgba(23,23,23,.12); }
.btn:hover span { transform: translateX(4px); }
.btn-dark { background: var(--black); color: var(--yellow); }
.btn-dark:hover { background: var(--yellow); color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--yellow); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

/* Common */
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.eyebrow { font-weight: 900; letter-spacing: .2em; font-size: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 36px; height: 4px; background: var(--yellow); border-radius: 2px; flex: none; }
.eyebrow span { font-weight: 700; letter-spacing: .1em; color: var(--gray-text); font-size: 13px; }
.eyebrow span::before { content: "／ "; }
.hero .eyebrow span { display: none; }
h2 { font-size: clamp(28px, 4.4vw, 48px); line-height: 1.35; font-weight: 900; letter-spacing: .02em; }
h3 { font-size: 20px; line-height: 1.5; font-weight: 800; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* Hero */
.hero { min-height: 100svh; padding: calc(var(--header-h) + 60px) 0 100px; display: flex; align-items: center; position: relative; overflow: hidden; background: linear-gradient(180deg, #F7B500 0%, #F5C518 45%, #E59A00 100%); }
.hero-inner { position: relative; z-index: 2; }
.hero-title { font-size: clamp(44px, 9vw, 108px); line-height: 1.15; font-weight: 900; letter-spacing: .01em; margin-bottom: 28px; }
.hero-title mark { background: linear-gradient(transparent 58%, var(--yellow) 58% 92%, transparent 92%); color: inherit; padding: 0 .08em; }
.hero-sub { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; margin-bottom: 16px; }
.hero-text { max-width: 620px; color: var(--gray-text); }
.hero-tag { position: absolute; left: 24px; bottom: 28px; font-size: 12px; font-weight: 800; letter-spacing: .2em; z-index: 2; }
.hero-tag::before { content: ""; display: inline-block; width: 40px; height: 2px; background: var(--black); vertical-align: middle; margin-right: 12px; }

/* About */
.about { background: var(--gray); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.two-col .section-head { margin-bottom: 0; }
.about-body p + p { margin-top: 20px; }
.about-em { font-weight: 800; background: var(--yellow); padding: 20px 24px; border-radius: 16px; }

/* Service */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 2px solid var(--black); border-radius: var(--radius); padding: 32px 26px; position: relative; transition: transform .3s, box-shadow .3s, background .3s; }
.card:hover { transform: translateY(-8px); box-shadow: 8px 10px 0 var(--yellow); }
.card-num { position: absolute; top: 20px; right: 24px; font-weight: 900; font-size: 14px; letter-spacing: .1em; color: #B88F00; }
.icon { width: 56px; height: 56px; fill: none; stroke: var(--black); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; background: var(--yellow); border-radius: 16px; padding: 10px; margin-bottom: 24px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 14.5px; line-height: 1.85; color: var(--gray-text); }

/* Strength */
.strength { background: var(--black); color: var(--white); }
.strength .eyebrow span { color: #bbb; }
.strength-list { display: grid; gap: 0; }
.strength-list li { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid rgba(255,255,255,.2); }
.strength-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.big-num { font-size: clamp(64px, 9vw, 110px); font-weight: 900; color: var(--yellow); line-height: 1; }
.strength-list h3 { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 8px; }
.strength-list p { color: #ccc; }

/* Partner */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.partner-card { border: 2px solid var(--black); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 20px; background: var(--white); }
.partner-card p { flex: 1; color: var(--gray-text); }
.partner-card h3 { font-size: 24px; }
.partner-card.alt { background: var(--yellow); }
.partner-card.alt p { color: var(--black); }
.partner-card.alt .btn-yellow { background: var(--black); color: var(--yellow); }
.partner-card.alt .btn-yellow:hover { background: var(--white); color: var(--black); }

/* Company */
.company { background: var(--gray); }
.company-list { background: var(--white); border-radius: var(--radius); padding: 8px 32px; }
.company-list div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid #e5e5e5; }
.company-list div:last-child { border-bottom: 0; }
.company-list dt { font-weight: 800; }
.company-list dd a { text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; word-break: break-all; }

/* Contact */
.contact { background: var(--yellow); }
.contact h2 { font-size: clamp(40px, 8vw, 88px); line-height: 1.1; letter-spacing: .01em; }
.contact .eyebrow::before { background: var(--black); }
.contact .eyebrow span { color: var(--black); }
.contact-lead { margin-bottom: 40px; font-weight: 600; }
.contact-note { margin-top: 28px; font-size: 14px; }
.contact-note a { word-break: break-all; }

/* Footer */
.site-footer { background: var(--black); color: var(--white); padding: 56px 0 32px; }
.footer-inner { display: grid; gap: 28px; }
.footer-logo { display: inline-block; justify-self: start; }
.footer-logo img { height: 72px; width: auto; display: block; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer nav a { text-decoration: none; font-size: 13px; letter-spacing: .1em; color: #ddd; }
.site-footer nav a:hover { color: var(--yellow); }
.copy { font-size: 12px; color: #999; border-top: 1px solid rgba(255,255,255,.15); padding-top: 24px; }

/* Bubbles (beer fizz) */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.bubbles i { position: absolute; bottom: -40px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff 0 18%, rgba(255,255,255,.35) 19% 60%, rgba(245,197,24,.7) 100%); border: 2px solid rgba(160,120,0,.7); opacity: 0; animation: rise linear infinite; }
.bubbles-light i { background: radial-gradient(circle at 30% 30%, #fff 0 18%, rgba(255,255,255,.6) 19% 100%); border-color: #fff; }
@keyframes rise {
  0% { transform: translate3d(0,0,0); opacity: 0; }
  10% { opacity: .85; }
  50% { transform: translate3d(var(--sway), -50vh, 0); }
  90% { opacity: .7; }
  100% { transform: translate3d(calc(var(--sway) * -1), -105vh, 0); opacity: 0; }
}
.contact-inner { position: relative; z-index: 2; }
.contact { overflow: hidden; }

/* About additions */
.about-def { background: var(--white); border-left: 6px solid var(--yellow); padding: 18px 22px; border-radius: 12px; margin-bottom: 28px; }
.about-emblem { display: block; width: min(260px, 60%); height: auto; margin-top: 40px; filter: drop-shadow(0 12px 18px rgba(23,23,23,.18)); }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 2px solid var(--black); border-radius: 20px; background: var(--white); overflow: hidden; }
.faq-list summary { cursor: pointer; font-weight: 800; padding: 20px 56px 20px 24px; position: relative; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; line-height: 26px; text-align: center; border-radius: 50%; background: var(--yellow); font-weight: 900; transition: transform .25s; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details[open] { background: var(--yellow-soft); }
.faq-list details p { padding: 0 24px 22px; color: #333; }

/* Form */
.contact-form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); display: grid; gap: 20px; border: 2px solid var(--black); }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { font-weight: 800; font-size: 14px; }
.contact-form label b { font-size: 11px; background: var(--black); color: var(--yellow); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea { width: 100%; font: inherit; padding: 14px 16px; border: 2px solid #d4d4d4; border-radius: 14px; background: var(--white); color: var(--black); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px var(--yellow); }
.contact-form [aria-invalid="true"] { border-color: #c0392b; }
.contact-form .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.contact-form .agree input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--black); flex: none; }
.contact-form .btn { justify-self: start; cursor: pointer; font: inherit; font-weight: 800; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; border-radius: 14px; padding: 0; }
.form-status.ok, .form-status.err { padding: 14px 18px; }
.form-status.ok { background: #e8f7e4; border: 2px solid #2e7d32; color: #1b5e20; }
.form-status.err { background: #fdecea; border: 2px solid #c0392b; color: #8e1c10; }
.form-status a { color: inherit; }

/* Fade-in */
.js .fade { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .fade.in { opacity: 1; transform: none; }
.cards .fade:nth-child(2) { transition-delay: .08s; }
.cards .fade:nth-child(3) { transition-delay: .16s; }
.cards .fade:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: block; }
  .gnav { position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--white); padding: 16px 24px 32px; border-bottom: 3px solid var(--yellow); transform: translateY(-120%); visibility: hidden; transition: transform .35s, visibility .35s; }
  .gnav.open { transform: none; visibility: visible; }
  .gnav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .gnav a { display: block; padding: 18px 8px; border-radius: 0; border-bottom: 1px solid #eee; }
  .gnav a.nav-cta { margin-top: 16px; text-align: center; border-radius: 999px; border: 0; }
  .two-col, .partner-grid { grid-template-columns: 1fr; }
  .logo img { height: 44px; }
  .hero-text { max-width: 100%; }
}
@media (max-width: 560px) {
  .container, .container.narrow { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .strength-list li { grid-template-columns: 64px 1fr; gap: 16px; }
  .company-list { padding: 4px 20px; }
  .company-list div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; }
  .btn { padding: 15px 26px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-logo img { height: 56px; }
  .hero-tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .fade { opacity: 1; transform: none; }
}

/* Legal page */
.legal { padding-top: calc(var(--header-h) + 64px); }
.legal-title { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 40px 0 10px; padding-left: 14px; border-left: 6px solid var(--yellow); }
.legal ul { list-style: disc; padding-left: 1.4em; }
.legal-date { margin-top: 40px; color: var(--gray-text); font-size: 14px; }

/* Draft beer look */
.hero { background: linear-gradient(180deg, #F9C21A 0%, #F5B800 40%, #E08E00 100%); }
.hero-text { color: #3a2a00; }
.hero .eyebrow::before { background: var(--black); }
.hero-title mark { background: linear-gradient(transparent 58%, rgba(255,255,255,.75) 58% 92%, transparent 92%); }
.btn-outline { border-color: var(--black); }
.foam { position: absolute; top: 0; left: 0; right: 0; height: 30%; background: #FFFBEA; z-index: 0; }
.foam::after {
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 1px); height: 56px;
  background:
    radial-gradient(circle at 40px 0, #FFFBEA 0 36px, transparent 37px) 0 0 / 110px 56px repeat-x,
    radial-gradient(circle at 25px 0, #FFFBEA 0 26px, transparent 27px) 40px 0 / 170px 46px repeat-x,
    radial-gradient(circle at 18px 0, #FFFBEA 0 20px, transparent 21px) 90px 0 / 83px 38px repeat-x;
}
.foam-contact { height: 56px; top: 0; }
.foam-contact::after { height: 52px; }
.contact { background: linear-gradient(180deg, #F9C21A 0%, #F5B800 50%, #E08E00 100%); padding-top: calc(clamp(80px, 12vw, 160px) + 20px); }
.contact .eyebrow::before { background: var(--black); }
.site-footer { border-top: 6px solid #FFFBEA; }
@media (max-width: 860px) { .foam { height: 270px; } .hero { padding-top: calc(var(--header-h) + 100px); } .page-hero .foam { height: calc(var(--header-h) + 36px); } .foam-contact { height: 56px; } }

.card-link, .partner-card .card-link { display: inline-block; margin-top: 14px; font-weight: 800; font-size: 14px; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.faq-list details p a { font-weight: 800; }
.hero .eyebrow { flex-wrap: wrap; }

/* Sub pages */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F9C21A 0%, #F5B800 50%, #E08E00 100%); padding: calc(var(--header-h) + 80px) 0 80px; }
.page-hero .foam { height: calc(var(--header-h) + 36px); }
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 6vw, 60px); line-height: 1.25; font-weight: 900; margin-bottom: 20px; }
.page-hero .eyebrow::before { background: var(--black); }
.page-lead { max-width: 640px; font-weight: 600; color: #3a2a00; }
.crumb { font-size: 13px; margin-bottom: 20px; }
.crumb a { text-decoration: none; font-weight: 700; }
.alt-bg { background: var(--gray); }
.prose p + p { margin-top: 16px; }
.section h2 + .prose, .section h2 + .faq-list { margin-top: 28px; }
.check li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid #e0e0e0; }
.check li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--black); }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; background: var(--white); border: 2px solid var(--black); border-radius: 20px; padding: 18px 22px 18px 72px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; line-height: 36px; text-align: center; background: var(--yellow); border-radius: 50%; font-weight: 900; }
.steps b { display: block; }
.cta-band { background: var(--black); color: var(--white); text-align: center; }
.cta-band p { margin: 12px 0 28px; color: #ddd; }
.cta-band .btn-dark { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.cta-band .btn-dark:hover { background: var(--white); }
