/* ==========================================================================
   Refine Lab — style.css
   Design tokens: Navy (#2C587E) & Sky (#88B2C9) from brand mark,
   Shippori Mincho for headlines, Noto Sans JP for body.
   ========================================================================== */

:root {
  --navy: #2C587E;
  --navy-dark: #16283A;
  --navy-deep: #0F1E2B;
  --sky: #88B2C9;
  --sky-pale: #E4EDF1;
  --paper: #F7F9FA;
  --paper-alt: #EEF2F3;
  --ink: #26313A;
  --ink-soft: #5C6C77;
  --line-green: #06C755;
  --line-green-dark: #05a648;

  --font-serif: "Shippori Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --max-width: 1080px;
  --section-pad: 7rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, dl { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dt, dd { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 999;
}
.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.sp-only { display: none; }

/* ---------- Eyebrow / section titles ---------- */
.eyebrow {
  font-size: 0.9rem;
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  position: relative;
  padding-left: 1.4rem;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 1rem;
  height: 2px;
  background: var(--sky);
}
.eyebrow--dark { color: var(--sky); }

.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.5;
  color: var(--navy-dark);
  margin-bottom: 2.75rem;
}
.section__title--dark { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 249, 250, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(38, 49, 58, 0.08);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand__logo {
  height: 28px;
  width: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
  font-size: 0.92rem;
}
.nav a {
  color: var(--ink);
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { color: var(--navy); border-color: var(--sky); }
.nav__cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: 3px;
}
.nav__cta:hover { background: var(--navy-dark); border-color: transparent !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-dark);
  width: 100%;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 168px 0 108px;
  background: var(--paper);
}
.hero__mark-bg {
  position: absolute;
  top: 50%;
  right: -6%;
  width: 46%;
  min-width: 380px;
  transform: translateY(-50%);
  opacity: 0.12;
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.45;
  color: var(--navy-dark);
  max-width: 640px;
}
.hero__lead {
  margin-top: 1.6rem;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero__actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--line {
  background: var(--line-green);
  color: #fff;
  width: 100%;
  gap: 0.5rem;
  font-weight: 500;
}
.btn--line:hover { background: var(--line-green-dark); }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--paper-alt); }
.section--dark {
  background: var(--navy-dark);
  color: #fff;
}

/* ---------- News ---------- */
.section--news { padding-bottom: 5rem; }
.news-list {
  border-top: 1px solid rgba(38, 49, 58, 0.14);
  max-width: 780px;
}
.news-item {
  display: flex;
  gap: 1.75rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(38, 49, 58, 0.14);
}
.news-item__date {
  flex: 0 0 108px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  padding-top: 0.15rem;
}
.news-item__body { flex: 1 1 auto; min-width: 0; }
.news-item__title {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}
.news-item__title--link {
  color: var(--navy);
  border-bottom: 1px solid var(--sky);
  padding-bottom: 1px;
  display: inline;
}
.news-item__title--link:hover { color: var(--navy-dark); border-color: var(--navy-dark); }
.news-item__desc {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.news-list__empty {
  padding: 1.4rem 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(38, 49, 58, 0.14);
}

/* ---------- About ---------- */
.about__body {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.02rem;
  color: var(--ink);
}

/* ---------- Business list ---------- */
.biz-list {
  border-top: 1px solid rgba(38, 49, 58, 0.14);
}
.biz-item {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  padding: 2.1rem 0;
  border-bottom: 1px solid rgba(38, 49, 58, 0.14);
}
.biz-item__photo {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--sky-pale);
}
.biz-item__tag {
  flex: 0 0 76px;
  font-size: 0.82rem;
  color: var(--navy);
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 0.35rem 0.2rem;
  text-align: center;
  background: #fff;
}
.biz-item__body { flex: 1 1 auto; min-width: 0; }
.biz-item__link { flex: 0 0 auto; }

/* リファイン紹介ブロック */
.refine-intro {
  margin: 3.2rem 0 0.5rem;
  padding: 2.2rem 2.4rem;
  background: var(--navy-dark);
  border-radius: 4px;
  position: relative;
}
.refine-intro__kicker {
  font-size: 0.82rem;
  color: var(--sky);
  margin-bottom: 0.5rem;
}
.refine-intro__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 1rem;
}
.refine-intro__lead {
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  font-size: 0.96rem;
}
.biz-list--refine {
  border-top: none;
  margin-top: 0.5rem;
}
.biz-item__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy-dark);
  margin-bottom: 0.55rem;
}
.biz-item__desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.biz-item__link {
  font-size: 0.88rem;
  color: var(--navy);
  white-space: nowrap;
  border-bottom: 1px solid var(--sky);
  padding-bottom: 2px;
  justify-self: end;
}
.biz-item__link:hover { color: var(--navy-dark); border-color: var(--navy-dark); }

/* ---------- Company list ---------- */
.company-list__row {
  display: flex;
  gap: 2rem;
  padding: 1.35rem 0;
  border-top: 1px solid rgba(38, 49, 58, 0.14);
  font-size: 0.98rem;
}
.company-list__row:last-child { border-bottom: 1px solid rgba(38, 49, 58, 0.14); }
.company-list__row dt {
  flex: 0 0 180px;
  color: var(--navy);
  font-weight: 500;
}
.company-list__row dd { flex: 1 1 auto; color: var(--ink); margin: 0; }

/* ---------- Access ---------- */
.access__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: flex-start;
}
.access__info { flex: 1 1 280px; }
.access__map { flex: 1.6 1 380px; }
.access__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy-dark);
  margin-bottom: 0.9rem;
}
.access__address {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.access__map iframe {
  display: block;
  width: 100%;
  border-radius: 2px;
  filter: grayscale(0.15) contrast(1.02);
}

/* ---------- Contact ---------- */
.contact__lead {
  color: rgba(255,255,255,0.78);
  max-width: 460px;
  margin-bottom: 2.8rem;
}
.contact__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.contact__card { flex: 1 1 260px; }
.contact__card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px;
  padding: 1.9rem;
}
.contact__card h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}
.contact__tel {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 1.2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 0 2rem;
}
.footer__inner { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.footer__logo { height: 26px; }
.footer__address { font-size: 0.86rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.86rem; }
.footer__nav a:hover { color: #fff; }
.footer__copyright { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  :root { --section-pad: 4.5rem; }
  .sp-only { display: inline; }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid rgba(38,49,58,0.1);
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .nav.is-open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .nav a {
    width: 100%;
    padding: 1rem 1.75rem;
    border-bottom: 1px solid rgba(38,49,58,0.06);
  }
  .nav__cta { border-radius: 0; text-align: center; }
  .nav-toggle { display: flex; }

  .hero { padding: 128px 0 76px; }
  .hero__mark-bg { width: 70%; opacity: 0.10; right: -18%; }

  .biz-item {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .biz-item__photo { flex: 1 1 100%; width: 100%; height: auto; aspect-ratio: 1 / 1; order: -1; margin-bottom: 0.4rem; }
  .biz-item__tag { flex: 0 0 auto; }
  .biz-item__body { flex: 1 1 100%; order: 1; }
  .biz-item__link { flex: 0 0 auto; order: 2; }

  .refine-intro { padding: 1.8rem 1.5rem; }

  .company-list__row { flex-direction: column; gap: 0.4rem; }
  .company-list__row dt { flex-basis: auto; }

  .access__grid { flex-direction: column; }
  .access__map {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
  .access__map iframe { border-radius: 0; }

  .contact__grid { flex-direction: column; }

  .footer__inner { align-items: flex-start; }

  .news-item { flex-direction: column; gap: 0.35rem; }
  .news-item__date { flex-basis: auto; }
}
