/* ============================================================
   HULINK — Site B  医療×洗練（白×ソフトグリーン・ミニマル）
   ============================================================ */

:root {
  --green-900: #2f4a3f;
  --green-700: #4a7561;
  --green-500: #7aa68f;
  --green-300: #aecabb;
  --green-100: #e6f0ea;
  --green-50:  #f3f8f5;
  --sage-bg:   #f7faf8;
  --ink:       #2b332f;
  --ink-soft:  #5a655f;
  --line:      #e2eae5;
  --white:     #ffffff;
  --shadow:    0 18px 50px -28px rgba(47, 74, 63, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(47, 74, 63, 0.3);
  --serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --serif-jp: "Noto Serif JP", serif;
  --sans: "Noto Sans JP", -apple-system, "Hiragino Kaku Gothic ProN", sans-serif;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.85;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: 90%; max-width: var(--maxw); margin: 0 auto; }
.narrow { max-width: 880px; }
.center { text-align: center; }
.pc-only { display: inline; }

/* ---------- typography helpers ---------- */
.section-eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.28em;
  font-size: 0.95rem;
  color: var(--green-700);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.section-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.5;
  color: var(--green-900);
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}
.lead {
  color: var(--ink-soft);
  font-size: 1.02rem;
  font-weight: 300;
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255,255,255,0.0);
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 0.5rem 0;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--green-900);
}
.site-header:not(.scrolled) .brand-mark,
.hero ~ * .brand-mark { }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.12em; color: var(--ink-soft); }

/* header over hero (transparent) — make text light until scrolled */
.site-header:not(.scrolled) .brand-mark { color: #fff; }
.site-header:not(.scrolled) .brand-sub { color: rgba(255,255,255,0.85); }
.site-header:not(.scrolled) .nav a { color: rgba(255,255,255,0.92); }
.site-header:not(.scrolled) .hamburger span { background: #fff; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  position: relative;
  transition: color .25s;
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: currentColor; transition: width .3s ease;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--green-500);
  color: var(--green-700) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.site-header:not(.scrolled) .nav-cta {
  border-color: rgba(255,255,255,0.7);
  color: #fff !important;
}
.nav-cta:hover { background: var(--green-700); border-color: var(--green-700); color: #fff !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--ink); transition: .3s; display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.95rem 2.1rem;
  border-radius: 999px;
  transition: transform .25s, box-shadow .25s, background .25s, color .25s;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-900); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26,44,36,0.86) 0%, rgba(35,58,48,0.66) 46%, rgba(40,64,53,0.40) 100%),
    linear-gradient(to top, rgba(26,44,36,0.45) 0%, rgba(26,44,36,0) 45%);
}
.hero-content { position: relative; z-index: 2; padding-top: 80px; }
.hero-eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.36em;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.hero-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin-bottom: 1.6rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-lead { font-size: clamp(1rem, 2vw, 1.18rem); font-weight: 300; margin-bottom: 2.6rem; color: rgba(255,255,255,0.94); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- sections base ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.intro { background: var(--sage-bg); }
.intro .section-title { margin-bottom: 1.8rem; }

/* ---------- services ---------- */
.services .center { margin-bottom: 3.4rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.6rem 2rem;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-300); }
.service-no {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--green-300);
  display: block;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.service-card h3 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 1.28rem;
  color: var(--green-900);
  margin-bottom: 0.9rem;
}
.service-desc { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.service-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.service-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: var(--ink);
}
.service-list li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500);
}

/* ---------- concept ---------- */
.concept { background: var(--green-50); }
.concept-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.concept-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/3.4; object-fit: cover; width: 100%; }
.value-grid { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2rem; }
.value-item { border-left: 2px solid var(--green-300); padding-left: 1.2rem; }
.value-item h4 {
  font-family: var(--serif-jp);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--green-900);
  margin-bottom: 0.25rem;
}
.value-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- stats ---------- */
.stats { background: var(--green-900); color: #fff; padding: clamp(3rem,6vw,4.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; text-align: center; }
.stat { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
.stat-num small { font-size: 1.1rem; font-family: var(--sans); margin-left: 0.2rem; color: var(--green-300); }
.stat-label { font-size: 0.86rem; color: rgba(255,255,255,0.8); letter-spacing: 0.04em; }

/* ---------- message ---------- */
.message-inner { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.message-media img { border-radius: 20px; box-shadow: var(--shadow); aspect-ratio: 4/4.4; object-fit: cover; width: 100%; }
.message-text p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 0.98rem; }
.signature {
  font-family: var(--serif-jp);
  font-weight: 500;
  color: var(--green-900) !important;
  margin-top: 1.8rem;
  font-size: 1.05rem;
}
.placeholder-note { font-size: 0.72rem; color: var(--green-500); font-weight: 300; }

/* ---------- company ---------- */
.company { background: var(--sage-bg); }
.company .center { margin-bottom: 2.8rem; }
.company-table { border-top: 1px solid var(--line); margin-bottom: 3rem; }
.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 1.05rem 0.4rem;
  align-items: baseline;
}
.company-table dt { font-weight: 500; color: var(--green-900); font-size: 0.92rem; }
.company-table dd { color: var(--ink-soft); font-size: 0.95rem; }
.vision { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.vision > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.8rem; }
.vision h4 { font-family: var(--serif); letter-spacing: 0.2em; color: var(--green-700); margin-bottom: 0.6rem; font-size: 1rem; }
.vision p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- contact ---------- */
.contact .center { margin-bottom: 3rem; }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
.field { margin-bottom: 1.3rem; }
.field label { display: block; font-size: 0.86rem; font-weight: 500; color: var(--green-900); margin-bottom: 0.5rem; }
.req { font-size: 0.66rem; background: var(--green-100); color: var(--green-700); padding: 0.1rem 0.5rem; border-radius: 999px; margin-left: 0.4rem; vertical-align: middle; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100);
}
.field textarea { resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--green-700); margin-top: 1rem; text-align: center; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; }
.info-block { background: var(--green-50); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.6rem; }
.info-block h4 { font-family: var(--serif); letter-spacing: 0.18em; color: var(--green-700); font-size: 0.95rem; margin-bottom: 0.5rem; }
.info-main { font-size: 1.15rem; font-weight: 500; color: var(--green-900); }
.info-sub { font-size: 0.82rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,0.85); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding: 3.5rem 0 2.5rem; flex-wrap: wrap; }
.footer-brand .brand-mark { color: #fff; font-size: 1.5rem; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-nav a { font-size: 0.88rem; color: rgba(255,255,255,0.8); transition: color .25s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.3rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; }
.footer-bottom small { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.footer-links a:hover { color: #fff; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .concept-inner, .message-inner, .contact-grid { grid-template-columns: 1fr; }
  .message-media { order: 2; }
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .vision { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    background: #fff;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform .35s ease;
    box-shadow: -20px 0 60px -30px rgba(0,0,0,0.4);
  }
  .nav.open { transform: translateX(0); }
  .site-header:not(.scrolled) .nav a { color: var(--ink); }
  .site-header:not(.scrolled) .nav-cta { color: var(--green-700) !important; border-color: var(--green-500); }
  .nav-cta { width: 100%; text-align: center; }
  .company-table > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
