:root {
  color-scheme: light;
  --green: #1aa583;
  --green-strong: #0e7a61;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hero-height: max(100svh, 540px);
  --ink: #292929;
  --japanese: "Open Sans", "こぶりなゴシック W3 JIS2004", sans-serif;
  --japanese-bold: "Open Sans", "こぶりなゴシック W6 JIS2004", sans-serif;
  --header-height: 80px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { color: var(--ink); font-family: var(--japanese); word-spacing: normal; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
h1, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { padding: 0; color: inherit; font: inherit; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--green-strong); outline-offset: 5px; }
main:focus { outline: none; }
.skip-link { position: fixed; z-index: 30; top: 8px; left: 8px; padding: 12px 20px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-left: 32px;
  background: rgb(255 255 255 / 78%);
  backdrop-filter: blur(20px) saturate(115%);
  -webkit-backdrop-filter: blur(20px) saturate(115%);
  box-shadow: 0 1px 0 rgb(41 41 41 / 8%);
  transition: background 250ms, box-shadow 250ms;
}
.brand { display: block; flex: 0 0 auto; width: 224px; transition: opacity 160ms; }
.brand img { width: 100%; height: auto; }
.brand:hover { opacity: .7; }
.header-nav { display: flex; align-items: stretch; flex: 0 0 auto; height: 80px; padding: 1px; }
.desktop-nav { display: flex; align-items: stretch; }
.nav-item { display: flex; align-items: center; position: relative; padding: 0 12px; }
.nav-link { position: relative; display: flex; align-items: center; height: 100%; font-size: 16px; line-height: 1.4; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; right: 0; bottom: calc(50% - 12px); left: 0; height: 1px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 200ms; }
.nav-link:hover::after, .is-open > .nav-link::after { transform: scaleX(1); }
.header-contact { display: flex; align-items: center; justify-content: center; margin-left: 32px; padding: 12px 24px; border-radius: 0 0 0 12px; background: var(--green-strong); color: white; font-family: var(--japanese-bold); font-size: 16px; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: opacity 160ms; }
.header-contact:hover { opacity: 1; background: #09644f; }
.menu-toggle { display: none; }

.dropdown { position: absolute; top: calc(100% - 1px); left: 50%; display: grid; grid-template-columns: 46% 54%; width: 540px; border: 1px solid #e4eae6; box-shadow: 0 18px 44px rgb(30 60 45 / 12%); border-radius: 12px; background: white; transform: translateX(-50%); overflow: hidden; }
.dropdown-heading { padding: 28px 0 24px 28px; }
.dropdown-heading > a { display: flex; align-items: center; gap: 16px; font: 500 36px/1 "Inter", sans-serif; letter-spacing: .03em; }
.dropdown-heading > p { padding: 8px 0 0 4px; font-size: 13px; line-height: 1.75; }
.small-arrow { color: var(--green); font-size: 16px; }
.dropdown-links { display: flex; flex-direction: column; gap: 16px; padding: 28px 28px 24px 32px; }
.dropdown-links a { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: 15px; line-height: 1.5; }
.dropdown-links a::before { content: "→"; flex-shrink: 0; color: var(--green); font-size: 12px; }
.dropdown-links a:hover { color: var(--green); }

.hero { position: relative; display: flex; justify-content: flex-end; width: 100%; height: var(--hero-height); min-height: 440px; overflow: hidden; background: #5789a5; }
.hero-image { position: absolute; inset: 0; display: block; }
.hero-image img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; filter: brightness(.94); }
.hero-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; width: 94%; height: 100%; }
.hero-copy { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 100%; padding-right: 20px; color: white; text-shadow: 4px 4px 8px rgb(84 73 0 / 8%); animation: hero-reveal 750ms var(--ease) 120ms both; }
.hero-copy h1 { max-width: 100%; font: 700 clamp(36px, 4.5vw, 64px)/1.18 "Inter", sans-serif; letter-spacing: -.025em; }
.hero-subtitle { max-width: 100%; font-size: 20px; font-weight: 400; line-height: 1.8; letter-spacing: .025em; }
.hero-spacer { flex: 0 0 8%; width: 100%; }
.hero-news { display: flex; flex: 0 0 auto; align-self: flex-end; align-items: center; gap: 16px; width: 600px; max-width: 100%; padding: 12px 22px; border-radius: 12px 0 0; background: white; animation: none; }
.news-label { flex: 0 0 auto; color: var(--green-strong); font: 600 16px/1.75 "Inter", sans-serif; }
.news-label-mobile { display: none; }
.news-entry { flex: 0 1 auto; padding-left: 20px; border-left: 1px solid #d6d6d6; }
.news-meta { display: flex; align-items: center; gap: 16px; }
.news-meta time { color: #666; font-size: 14px; line-height: 1.75; }
.news-title { font-size: 14px; line-height: 1.75; }

.mobile-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: white; color: var(--ink); overflow: auto; }
.mobile-menu::backdrop { background: white; }
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); padding: 0 17px 0 16px; }
.mobile-menu-header .brand { width: 200px; }
.menu-close { position: relative; width: 52px; height: 52px; background: transparent; border-radius: 50%; }
.menu-close span { position: absolute; top: 50%; left: 13px; width: 26px; height: 1px; background: var(--ink); transform: rotate(45deg); }
.menu-close span + span { transform: rotate(-45deg); }
.mobile-menu-body { width: 90%; margin: 0 auto; padding-bottom: 32px; }
.mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-link { display: block; padding: 14px 0 6px; border-bottom: 1px solid #d6d6d6; font-size: 18px; font-weight: 300; line-height: 1.75; }
.mobile-links > li:first-child .mobile-link { padding-top: 12px; }
.mobile-sub-links { display: flex; flex-direction: column; gap: 4px; padding: 12px 0 4px 20px; }
.mobile-sub-links a { display: flex; align-items: center; padding: 4px 12px 4px 0; font-size: 16px; font-weight: 300; line-height: 28px; }
.mobile-sub-links a::before { content: "-"; flex: 0 0 4px; margin-right: 8px; }
.mobile-company-links { flex-direction: row; flex-wrap: wrap; column-gap: 32px; }
.mobile-links a:hover { color: var(--green); }
.mobile-contact { position: relative; display: flex; align-items: center; justify-content: center; min-height: 72px; margin-top: 32px; padding: 20px 40px; border-radius: 12px; background: var(--green-strong); color: white; font-family: var(--japanese-bold); font-size: 16px; font-weight: 600; line-height: 1.4; }
.mobile-contact > span { position: absolute; right: 16px; }

@keyframes reveal { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 1140px) {
  .desktop-nav, .header-contact { display: none; }
  .header-nav { align-items: center; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; gap: 8px; width: 52px; height: 52px; margin-right: 16px; border-radius: 50%; background: rgb(255 255 255 / 80%); transition: opacity 160ms; }
  .menu-toggle span { width: 26px; height: 1px; background: var(--ink); }
  .menu-toggle:hover { opacity: .7; }
}

@media (max-width: 840px) {
  :root { --header-height: 72px; --hero-height: max(100svh, 640px); }
  .site-header { padding-left: 20px; }
  .brand { width: 200px; }
  .hero { min-height: 560px; }
  .hero-content { width: 95%; }
  .hero-spacer { flex-basis: 64px; }
  .hero-news { flex-wrap: wrap; gap: 0; width: 100%; padding: 12px 20px; animation: none; }
  .news-label-desktop { display: none; }
  .news-label-mobile { display: block; }
  .news-entry { width: 100%; padding-left: 0; border: 0; }
}

@media (max-width: 540px) {
  .hero-copy { gap: 10px; }
  .hero-copy h1 { font-size: clamp(32px, 9.2vw, 40px); }
  .hero-subtitle { font-size: 14px; line-height: 1.9; }
  .hero-spacer { flex-basis: 48px; }
}

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

/* Finish: contrast, intentional motion, and explicit interactions. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.site-header.is-scrolled { background: rgb(255 255 255 / 96%); box-shadow: 0 1px 0 rgb(41 41 41 / 10%), 0 8px 28px rgb(30 60 45 / 4%); }
.nav-item { gap: 2px; }
.dropdown-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; flex: 0 0 auto; width: auto; min-height: 44px; height: 100%; padding: 0 6px; border-radius: 0; background: transparent; }
.dropdown-toggle > .dropdown-chevron { flex: 0 0 auto; width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 180ms; }
.dropdown-toggle[aria-expanded="true"] > .dropdown-chevron { transform: rotate(225deg) translate(-1px,-1px); }
.dropdown-toggle:hover { color: var(--green-strong); }
.dropdown-links { gap: 8px; }
.hero-image::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgb(15 36 48 / 22%), transparent 80%), linear-gradient(0deg, rgb(12 29 35 / 48%), transparent 60%); }
.hero-copy { text-shadow: 0 2px 16px rgb(0 0 0 / 12%); }
.hero-discover { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 4px; font-size: 14px; line-height: 1.5; }
.hero-discover > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgb(255 255 255 / 65%); border-radius: 50%; font: 500 16px/1 "Inter", sans-serif; transition: background 250ms, transform 250ms; }
.hero-discover:hover > span { background: rgb(255 255 255 / 18%); transform: translateY(3px); }
.hero-news { transition: background 220ms; }
.hero-news:hover { background: #f2f8f4; }
.hero-news-arrow { margin-left: auto; padding-left: 8px; color: var(--green-strong); font: 500 22px/1 "Inter", sans-serif; transition: transform 220ms; }
.hero-news:hover .hero-news-arrow { transform: translate(2px,-2px); }
.mobile-contact-dock { display: none; }
.mobile-sub-links a { min-height: 44px; }
@keyframes hero-reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (min-width: 1141px) and (max-width: 1280px) {
  .site-header { padding-left: 24px; }
  .brand { width: 200px; }
  .nav-item { padding-inline: 8px; }
  .nav-link { font-size: 14px; }
  .header-contact { margin-left: 16px; padding-inline: 20px; font-size: 14px; }
}
@media (max-width: 840px) {
  .hero-discover { font-size: 13px; gap: 12px; }
  .hero-news { position: relative; padding-right: 48px; }
  .hero-news-arrow { position: absolute; right: 20px; top: calc(50% - 11px); }
  .mobile-contact-dock { position: fixed; z-index: 4; right: 20px; bottom: max(16px, env(safe-area-inset-bottom)); display: block; width: 200px; max-width: calc(100% - 40px); border: 1px solid rgb(255 255 255 / 28%); border-radius: 12px; background: var(--green-strong); color: white; box-shadow: 0 6px 24px rgb(15 80 60 / 20%); }
  .mobile-contact-dock a { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 12px 18px; font: 500 15px/1.5 var(--japanese-bold); }
  .mobile-contact-dock span { font: 500 22px/1 "Inter", sans-serif; }
}
@media (max-width: 540px) {
  .hero-copy { gap: 12px; }
  .hero-discover { min-height: 40px; margin-top: 0; font-size: 12px; }
  .hero-discover > span { width: 26px; height: 26px; font-size: 14px; }
  .hero-news { padding-block: 14px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.hero-subtitle { text-wrap: balance; }
@media (max-width: 840px) { html { scroll-padding-bottom: 90px; } }
