/* ===== EverBase — design tokens ===== */
:root {
  --cream: #f7f1ea;
  --cream-deep: #f1e9df;
  --white: #ffffff;
  --ink: #141414;
  --ink-soft: #3a3a3a;
  --gray: #9a958d;
  --orange: #ea5504;
  --orange-dark: #c8480390;
  --max: 1180px;
  --header-h: 84px;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --sans: "Archivo", "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
  --jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--jp);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--cream);
  z-index: 100;
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(20, 20, 20, .06);
  background: rgba(247, 241, 234, .92);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: flex; align-items: center; }
.logo-img { height: 30px; width: auto; display: block; }
.logo--footer .logo-img { height: 28px; }

.nav-desktop { display: flex; align-items: center; gap: 34px; }
.nav-link {
  position: relative;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .12em;
  color: var(--ink);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-link:hover { color: var(--orange); }
.nav-link.is-active { color: var(--orange); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 5px; height: 5px;
  background: var(--orange);
  transform: translateX(-50%);
}
.nav-cta {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--white);
  background: var(--orange);
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.nav-cta:hover { background: #c84803; transform: translateY(-1px); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px; height: 30px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; height: 2.5px; width: 100%;
  background: var(--orange); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 200;
  padding: 70px 32px 40px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.7, 0, .2, 1);
  visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.menu-close {
  position: absolute; top: 26px; right: 26px;
  background: none; border: none; color: var(--orange); cursor: pointer;
}
.menu-list { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; }
.menu-item {
  position: relative;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .1em;
  padding-left: 26px;
}
.menu-item::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 9px; height: 9px;
  background: var(--orange);
  transform: translateY(-50%);
}
.menu-foot {
  margin-top: auto;
  display: flex; gap: 26px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gray);
}

/* ===== Hero ===== */
.hero { padding-top: var(--header-h); background: var(--cream); }
.hero-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 28px 0;
}
.hero-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: .98;
  letter-spacing: -.02em;
  color: var(--ink);
}
.hero-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 40px;
  position: relative;
}
.hero-img { position: relative; overflow: hidden; }
.hero-img img {
  width: 100%; height: 420px;
  object-fit: cover;
  filter: grayscale(.18) sepia(.1) contrast(1.01);
}
.hero-img--left::after,
.hero-img--right::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(234, 85, 4, .1), rgba(20, 20, 20, .05));
  mix-blend-mode: multiply;
}
.hero-copy {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ===== Section title (shared) ===== */
.section-title {
  font-family: var(--sans);
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--ink);
}
.hl { color: var(--orange); }

/* ===== About ===== */
.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}
.boss { max-width: 260px; }
.boss img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 16px 44px rgba(20, 20, 20, .14);
}
.boss-sign {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.boss-name {
  font-family: var(--jp);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.boss-role {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .14em;
  color: var(--orange);
}
.about-text p {
  font-size: .98rem;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.about-text p:last-child { margin-bottom: 0; }

/* company info (within About) */
.company-block {
  margin-top: 64px;
  padding-top: 52px;
  border-top: 1px solid rgba(20, 20, 20, .14);
}
.company-title {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-bottom: 8px;
}
.company-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: start;
}
.company-table { border-top: 1px solid rgba(20, 20, 20, .14); }
.company-table .row {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid rgba(20, 20, 20, .14);
}
.company-table dt {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--orange);
  padding-top: 2px;
}
.company-table dd { font-size: .96rem; color: var(--ink); line-height: 1.6; }
.company-table dd a { transition: color .2s ease; }
.company-table dd a:hover { color: var(--orange); }
.company-map {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(20, 20, 20, .08);
}
.company-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Generic panels ===== */
.panel { background: var(--white); padding: 96px 0; }
.panel--cream { background: var(--cream); }
.panel-inner { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.panel-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .2em;
  color: var(--orange);
  margin-bottom: 10px;
}
.panel .section-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.panel-lead {
  font-family: var(--jp);
  font-weight: 900;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  margin-bottom: 48px;
}

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid rgba(20, 20, 20, .08);
  border-radius: 4px;
  padding: 34px 28px;
}
.card-no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--orange);
}
.card h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 14px 0 10px;
}
.card p { font-size: .9rem; color: var(--ink-soft); }

/* ir / news lists */
.ir-list, .news-list { list-style: none; border-top: 1px solid rgba(20, 20, 20, .12); }
.ir-list li, .news-list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 22px 4px;
  border-bottom: 1px solid rgba(20, 20, 20, .12);
  flex-wrap: wrap;
}
.ir-date, .news-date {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--gray);
  min-width: 96px;
}
.ir-tag {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 3px 12px;
  border-radius: 999px;
}
.ir-text, .news-text { font-size: .96rem; }
.ir-empty {
  border-top: 1px solid rgba(20, 20, 20, .12);
  border-bottom: 1px solid rgba(20, 20, 20, .12);
  padding: 40px 4px;
  color: var(--gray);
  font-size: .96rem;
}
/* ===== Legal pages (Privacy Policy) ===== */
.legal-section { padding-top: calc(var(--header-h) + 56px); }
.legal-section .section-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin-bottom: 28px; }
.legal-body { max-width: 820px; }
.legal-lead { font-size: 1rem; line-height: 1.9; color: var(--ink-soft); margin-bottom: 8px; }
.legal-body h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--ink);
  margin: 36px 0 10px;
}
.legal-body p { font-size: .95rem; line-height: 1.95; color: var(--ink-soft); }
.legal-body ul { margin: 10px 0 10px 1.25em; }
.legal-body li { font-size: .95rem; line-height: 1.9; color: var(--ink-soft); margin-bottom: 4px; }
.legal-date {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--gray);
  margin-top: 48px;
}

/* ===== Contact ===== */
.contact { background: var(--ink); }
.contact-inner { text-align: center; padding: 30px 28px; }
.contact .panel-label { color: var(--orange); }
.contact-title {
  color: var(--cream);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: 12px 0 26px;
}
.contact-text { color: #c9c4bc; margin-bottom: 40px; }
.contact-btn {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--white);
  background: var(--orange);
  padding: 18px 52px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.contact-btn:hover { background: #c84803; transform: translateY(-2px); }

/* ===== Recruit ===== */
.recruit-text {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.recruit-text a { color: var(--orange); font-weight: 700; }
.recruit-text a:hover { text-decoration: underline; }
.btn-primary {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--white);
  background: var(--orange);
  padding: 16px 44px;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.btn-primary:hover { background: #c84803; transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: var(--cream); padding: 56px 0 30px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a, .footer-legal a {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .1em;
  color: var(--ink);
  transition: color .2s ease;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--orange); }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a { color: var(--gray); }
.copyright {
  max-width: var(--max);
  margin: 36px auto 0;
  padding: 0 28px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gray);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .cards { grid-template-columns: 1fr; }
  .company-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .boss { margin: 0 auto; }
  .boss-sign { align-items: center; }
}

@media (max-width: 768px) {
  :root { --header-h: 70px; }
  .nav-desktop { display: none; }
  .hamburger { display: flex; }

  .hero-top { padding: 56px 24px 0; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 4rem); line-height: 1.04; }
  .hero-band { grid-template-columns: 1fr; margin-top: 28px; }
  .hero-img img { height: 300px; }
  .hero-copy { font-size: 1rem; line-height: 1.75; margin-top: 20px; }

  .about-body { padding: 56px 24px 80px; }
  .company { padding: 60px 0 70px; }
  .company-table .row { grid-template-columns: 120px 1fr; gap: 12px; }
  .panel { padding: 64px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  .hamburger.is-open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .hamburger.is-open span:nth-child(2) { opacity: 0; }
  .hamburger.is-open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
}

/* ===== Focus visibility (a11y) ===== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Scroll reveal ===== */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
