@import url('./tokens.css');

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--mnt-ink); background: var(--mnt-paper); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--mnt-orange); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -50px; z-index: 100; background: var(--mnt-ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { top: 16px; }
.shell { width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--mnt-green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.section-title { max-width: 740px; margin: 0; color: var(--mnt-navy); font-size: clamp(2rem, 3.5vw, 3.45rem); line-height: 1.08; letter-spacing: -.04em; }
.section-lead { max-width: 670px; margin: 18px 0 0; color: var(--mnt-muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--mnt-navy); font-weight: 700; white-space: nowrap; }
.text-link::after { content: '→'; font-size: 1.25rem; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(4px); }

.site-header { position: sticky; top: 0; z-index: 30; min-height: 90px; border-bottom: 1px solid var(--mnt-line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 90px; gap: 36px; }
.brand { width: 118px; }
.brand img { width: 118px; height: auto; }
.primary-nav { display: flex; justify-content: center; gap: 22px; }
.primary-nav a { padding: 10px 0; color: #333; font-size: .78rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--mnt-green); }
.language-switcher { display: flex; align-items: center; gap: 10px; font-size: .77rem; font-weight: 800; }
.language-switcher a, .language-switcher span { padding: 8px 0; color: #80838a; }
.language-switcher .active { color: var(--mnt-navy); }
.language-switcher .unavailable { cursor: not-allowed; opacity: .58; }
html.lang-ja body { font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", Inter, "Open Sans", sans-serif; }
html.lang-ja .hero h1, html.lang-ja .hero h2, html.lang-ja .section-title, html.lang-ja .portfolio-heading h3 { letter-spacing: -.025em; line-break: strict; word-break: normal; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--mnt-line); background: #fff; color: var(--mnt-navy); }

.hero { position: relative; min-height: min(690px, calc(100vh - 90px)); overflow: hidden; background: var(--mnt-navy); color: #fff; }
.hero-slide { position: absolute; inset: 0; display: grid; align-items: end; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.hero-slide.is-active { opacity: 1; pointer-events: auto; }
.hero-slide::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(18,18,18,.76) 0%, rgba(18,18,18,.44) 47%, rgba(18,18,18,.10) 100%); }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-content { position: relative; z-index: 1; width: min(calc(100% - 48px), var(--max-width)); margin: 0 auto; padding: 92px 0 104px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker::before { width: 34px; height: 2px; content: ''; background: var(--mnt-orange); }
.hero h1, .hero h2 { max-width: 760px; margin: 0; font-size: clamp(2.7rem, 5.5vw, 5.25rem); line-height: .98; letter-spacing: -.055em; }
.hero p { max-width: 600px; margin: 24px 0 0; color: rgba(255,255,255,.94); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 1px solid transparent; font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border .2s ease; }
.button-primary { background: var(--mnt-orange); color: #1d1d1d; }
.button-primary:hover { background: #fff; }
.button-secondary { border-color: rgba(255,255,255,.72); color: #fff; }
.button-secondary:hover { border-color: #fff; background: #fff; color: var(--mnt-navy); }
.hero-controls { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--max-width)) / 2)); bottom: 38px; display: flex; align-items: center; gap: 8px; }
.hero-control, .hero-dot { border: 0; background: transparent; color: #fff; cursor: pointer; }
.hero-control { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid rgba(255,255,255,.4); font-size: 1.1rem; }
.hero-dot { width: 24px; height: 40px; padding: 0; }
.hero-dot::after { display: block; width: 100%; height: 2px; content: ''; background: rgba(255,255,255,.45); }
.hero-dot.is-active::after { background: var(--mnt-orange); }

.strengths { border-bottom: 1px solid var(--mnt-line); background: #fff; }
.strength-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strength { min-height: 214px; padding: 38px 28px; border-right: 1px solid var(--mnt-line); }
.strength:first-child { border-left: 1px solid var(--mnt-line); }
.strength-number { display: block; margin-bottom: 22px; color: var(--mnt-orange); font-size: .75rem; font-weight: 800; }
.strength h2 { margin: 0; color: var(--mnt-navy); font-size: 1.05rem; line-height: 1.25; }
.strength p { margin: 10px 0 0; color: var(--mnt-muted); font-size: .88rem; line-height: 1.55; }

.numbers { padding: 48px 0; background: var(--mnt-navy); color: #fff; }
.number-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.number { padding-left: 20px; border-left: 2px solid var(--mnt-orange); }
.number strong { display: block; color: #fff; font-size: clamp(1.7rem, 2.7vw, 2.65rem); line-height: 1; letter-spacing: -.04em; }
.number span { display: block; margin-top: 9px; color: rgba(255,255,255,.75); font-size: .8rem; }

.about { padding: 118px 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 8vw, 120px); align-items: start; }
.about-copy p { color: var(--mnt-muted); }
.values { display: grid; gap: 0; border-top: 1px solid var(--mnt-line); }
.value { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--mnt-line); }
.value-index { color: var(--mnt-green); font-size: .78rem; font-weight: 800; letter-spacing: .09em; }
.value h3 { margin: 0; color: var(--mnt-navy); font-size: 1.05rem; }
.value p { margin: 6px 0 0; color: var(--mnt-muted); font-size: .9rem; }

.products { padding: 112px 0; background: var(--mnt-soft); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.category-card { position: relative; min-height: 390px; overflow: hidden; background: var(--mnt-navy); color: #fff; }
.category-card::after { position: absolute; inset: 0; content: ''; background: linear-gradient(0deg, rgba(18,18,18,.78) 0%, rgba(18,18,18,.07) 74%); }
.category-card picture { position: absolute; inset: 0; display: block; }
.category-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.category-content { position: absolute; z-index: 1; right: 26px; bottom: 24px; left: 26px; }
.category-content h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.category-content p { margin: 8px 0 14px; color: rgba(255,255,255,.86); font-size: .85rem; }
.category-content .category-count { margin: 0 0 8px; color: var(--mnt-orange); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.category-content span { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.category-content span::after { content: '→'; font-size: 1rem; }
.development-portfolio { margin-top: 64px; padding: clamp(28px, 4vw, 46px); border: 1px solid var(--mnt-line); background: #fff; }
.portfolio-heading { display: flex; align-items: start; justify-content: space-between; gap: 28px; padding-bottom: 30px; border-bottom: 1px solid var(--mnt-line); }
.portfolio-heading h3 { max-width: 720px; margin: 0; color: var(--mnt-navy); font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -.035em; }
.portfolio-heading p:not(.eyebrow) { max-width: 760px; margin: 14px 0 0; color: var(--mnt-muted); }
.portfolio-status { flex: 0 0 auto; padding: 8px 11px; background: #eef5ef; color: var(--mnt-green); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.portfolio-group { min-height: 176px; padding: 22px; border: 1px solid var(--mnt-line); background: var(--mnt-soft); }
.portfolio-group h4 { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin: 0; color: var(--mnt-navy); font-size: 1rem; line-height: 1.25; }
.portfolio-group h4 span { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--mnt-navy); color: #fff; font-size: .72rem; }
.portfolio-group ul { margin: 15px 0 0; padding: 0; color: var(--mnt-muted); font-size: .82rem; line-height: 1.55; list-style: none; }
.portfolio-group li { position: relative; padding-left: 13px; }
.portfolio-group li::before { position: absolute; left: 0; color: var(--mnt-orange); content: '•'; }

.operations { padding: 112px 0; }
.operation-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.operation { position: relative; min-height: 386px; padding: 42px; overflow: hidden; background: #e9ecea; }
.operation::before { position: absolute; right: 0; bottom: 0; left: 0; height: 58%; content: ''; background: linear-gradient(0deg, var(--mnt-navy), rgba(48,50,148,.03)); opacity: .97; clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 100%); }
.operation > * { position: relative; z-index: 1; }
.operation .eyebrow { color: var(--mnt-green); }
.operation h2 { max-width: 420px; margin: 0; color: var(--mnt-navy); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; }
.operation > p:not(.eyebrow) { position: absolute; right: 42px; bottom: 36px; left: 42px; margin: 0; color: #fff; font-size: .95rem; text-shadow: none; -webkit-text-fill-color: #fff; filter: none; opacity: 1; }
.services { background: linear-gradient(180deg, #fff 0%, #f7faf8 100%); }
.services-heading { max-width: 930px; }
.services-heading .section-lead { max-width: 900px; }
.service-scope { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 36px; }
.service-scope span { padding: 8px 11px; border: 1px solid #cfe0d2; background: #fff; color: var(--mnt-green); font-size: .71rem; font-weight: 800; letter-spacing: .025em; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { position: relative; min-height: 312px; padding: 27px 25px 24px; border: 1px solid var(--mnt-line); background: #fff; }
.service-card::before { position: absolute; top: 0; right: 0; left: 0; height: 4px; background: var(--mnt-green); content: ''; }
.service-number { display: block; margin-bottom: 22px; color: var(--mnt-orange); font-size: .71rem; font-weight: 900; letter-spacing: .12em; }
.service-card h3 { margin: 0; color: var(--mnt-navy); font-size: clamp(1.18rem, 1.8vw, 1.45rem); line-height: 1.13; letter-spacing: -.025em; }
.service-card > p { margin: 14px 0 0; color: var(--mnt-muted); font-size: .92rem; line-height: 1.58; }
.service-card ul { margin: 17px 0 0; padding: 15px 0 0; border-top: 1px solid var(--mnt-line); list-style: none; }
.service-card li { position: relative; padding: 0 0 7px 14px; color: var(--mnt-ink); font-size: .8rem; line-height: 1.42; }
.service-card li::before { position: absolute; left: 0; color: var(--mnt-green); content: '•'; }
.service-journey { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(0, 1.45fr); gap: 36px; margin-top: 42px; padding: 30px; background: var(--mnt-navy); color: #fff; }
.service-journey .eyebrow { color: #a8d0a7; }
.service-journey h3 { max-width: 470px; margin: 0; color: #fff; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.12; letter-spacing: -.03em; }
.service-journey ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.service-journey li { min-width: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); }
.service-journey strong { display: block; margin-bottom: 10px; color: var(--mnt-orange); font-size: .7rem; letter-spacing: .12em; }
.service-journey span { display: block; color: rgba(255,255,255,.92); font-size: .82rem; line-height: 1.42; }

.factories { padding: 116px 0 124px; background: linear-gradient(180deg, #f8fafb 0%, #fff 28%); }
.factories .section-heading { max-width: 820px; margin-bottom: 46px; }
.factory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: factory; }
.factory-card { position: relative; display: flex; flex-direction: column; overflow: hidden; min-height: 100%; border: 1px solid #dce3ea; border-radius: 14px; background: #fff; box-shadow: 0 10px 24px rgba(18, 38, 75, .06); counter-increment: factory; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.factory-card:hover { z-index: 1; border-color: rgba(45, 157, 84, .45); box-shadow: 0 18px 34px rgba(18, 38, 75, .12); transform: translateY(-4px); }
.factory-card picture { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #e9eef1; }
.factory-card picture::after { position: absolute; top: 14px; left: 14px; display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; background: rgba(18, 38, 75, .78); color: #fff; content: counter(factory, decimal-leading-zero); font-size: .66rem; font-weight: 800; letter-spacing: .04em; }
.factory-card img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.factory-card--bagasse img { object-position: center 56%; }
.factory-card:hover img { transform: scale(1.035); }
.factory-info { display: flex; flex: 1 0 auto; flex-direction: column; padding: 19px 20px 21px; }
.factory-info h3 { min-height: 0; margin: 0; color: var(--mnt-navy); font-size: 1rem; line-height: 1.3; }
.factory-info p { margin: 12px 0 0; color: #687585; font-size: .79rem; line-height: 1.62; }
.factory-info strong { display: inline-block; margin-bottom: 4px; color: var(--mnt-green); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.factory-info em { display: inline-block; margin-top: 5px; color: var(--mnt-orange); font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .02em; }

.contact-cta { padding: 92px 0; background: var(--mnt-green); color: #fff; }
.contact-layout { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.contact-cta .eyebrow { color: rgba(255,255,255,.76); }
.contact-cta h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.02; letter-spacing: -.04em; }
.contact-cta p { max-width: 660px; margin: 18px 0 0; color: rgba(255,255,255,.9); }
.contact-cta .button { flex: 0 0 auto; background: #fff; color: var(--mnt-navy); }
.contact-cta .button:hover { background: var(--mnt-orange); color: var(--mnt-ink); }

.site-footer { padding: 74px 0 28px; background: linear-gradient(135deg, #21266f 0%, #353c9c 54%, #252b78 100%); color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(190px, 1.05fr) minmax(230px, 1.3fr) minmax(220px, 1.24fr) minmax(145px, .76fr); gap: clamp(28px, 4vw, 62px); }
.footer-brand { padding-right: 12px; }
.footer-brand img { width: 142px; height: auto; }
.footer-brand p { max-width: 250px; margin: 20px 0 0; color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.65; }
.footer-column { min-width: 0; }
.footer-column h2 { position: relative; margin: 0 0 18px; padding-bottom: 12px; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-column h2::after { position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; content: ''; background: var(--mnt-orange); }
.footer-column p { margin: 0 0 17px; color: rgba(255,255,255,.78); font-size: .82rem; line-height: 1.65; }
.footer-column p strong { display: inline-block; margin-bottom: 4px; color: #fff; font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-column a { display: block; margin-top: 9px; color: rgba(255,255,255,.8); font-size: .82rem; line-height: 1.55; overflow-wrap: anywhere; transition: color .18s ease; }
.footer-column a:hover { color: #fff; }
.footer-column .footer-link-list a:first-of-type { margin-top: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 54px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.62); font-size: .74rem; }

@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .primary-nav { min-width: 0; gap: 10px; }
  .primary-nav a { font-size: .71rem; }
  .strength-grid, .number-grid { grid-template-columns: repeat(2, 1fr); }
  .strength:nth-child(3) { border-left: 1px solid var(--mnt-line); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-journey { grid-template-columns: 1fr; }
  .factory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 32px), var(--max-width)); }
  .site-header, .header-inner { min-height: 72px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand, .brand img { width: 100px; }
  .menu-toggle { display: grid; place-items: center; justify-self: end; }
  .primary-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; flex-direction: column; gap: 0; padding: 12px 16px 20px; border-bottom: 1px solid var(--mnt-line); background: #fff; box-shadow: var(--mnt-shadow); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 12px 0; }
  .language-switcher { font-size: .68rem; }
  .hero { min-height: 600px; }
  .hero-content { width: min(calc(100% - 32px), var(--max-width)); padding: 82px 0 100px; }
  .hero-controls { right: 16px; bottom: 20px; }
  .strength-grid, .number-grid, .category-grid, .operation-grid, .factory-grid, .footer-grid { grid-template-columns: 1fr; }
  .strength { min-height: 0; border-right: 1px solid var(--mnt-line); border-left: 1px solid var(--mnt-line); }
  .strength + .strength { border-top: 0; }
  .about, .products, .operations, .factories { padding: 78px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-heading { display: block; }
  .section-heading .text-link { margin-top: 18px; }
  .category-card, .category-card img { min-height: 330px; }
  .development-portfolio { margin-top: 38px; padding: 24px 18px; }
  .portfolio-heading { display: block; }
  .portfolio-status { display: inline-flex; margin-top: 18px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .portfolio-group { min-height: 0; padding: 18px; }
  .operation { min-height: 340px; padding: 30px; }
  .operation > p:not(.eyebrow) { right: 30px; bottom: 28px; left: 30px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 0; padding: 24px 20px 20px; }
  .service-number { margin-bottom: 16px; }
  .service-scope { margin: 24px 0 28px; }
  .service-journey { gap: 24px; margin-top: 28px; padding: 24px 20px; }
  .service-journey ol { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .factory-grid { gap: 16px; }
  .factory-card { display: flex; }
  .factory-card picture, .factory-card img { aspect-ratio: 16 / 9; }
  .factory-info { padding: 17px 18px 19px; }
  .contact-layout, .footer-bottom { display: block; }
  .contact-layout .button { margin-top: 28px; }
  .footer-column { margin-top: 28px; }
  .footer-bottom p + p { margin-top: 8px; }
}

/* Language flags (14/10/2026) */
.language-switcher { gap: 6px; }
.language-switcher a { align-items: center; border: 1px solid transparent; border-radius: 4px; display: inline-flex; gap: 6px; padding: 6px 8px; transition: background .15s, border-color .15s, color .15s; }
.language-switcher a:hover, .language-switcher a:focus-visible { background: #eef1f6; color: var(--mnt-navy); }
.language-switcher a.active { background: #eef1f6; border-color: #c9d1df; color: var(--mnt-navy); }
.language-switcher .flag { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); display: block; flex: none; height: 16px; width: 24px; }
@media (max-width: 720px) { .language-switcher { gap: 2px; } .language-switcher a { padding: 6px 5px; gap: 4px; } .language-switcher a span { font-size: .66rem; } .language-switcher .flag { height: 13px; width: 20px; } }
@media (max-width: 400px) { .language-switcher a span { display: none; } .language-switcher a { padding: 8px 6px; } }
