/* WONDWELL — company site
   Look: soft and friendly. Gothic (sans-serif) type, pale blue ground, white rounded cards, green brand colour.
   Layout: one column. Header / hero / services / company / contact / footer. */
:root {
  --bg: #eef5f8;
  --surface: #ffffff;
  --ink: #1f2d3a;
  --muted: #4c5b68;
  --line: #e1eaef;
  --brand: #1c7c6c;
  --brand-deep: #155f53;
  --sun: #f6c453;
  --soon-bg: #fbe7b0;
  --soon-ink: #5c4508;
  --shadow: 0 8px 24px rgba(31, 45, 58, .1);
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 4px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[id] { scroll-margin-top: 100px; } /* leave room for the fixed header */
.nb { display: inline-block; } /* keep a phrase together when the line wraps */

.inner {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(clamp(20px, 5vw, 48px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 5vw, 48px), env(safe-area-inset-right, 0px));
}

/* Small label pill (eyebrow, section labels) */
.pill {
  display: inline-block; background: var(--surface); color: var(--brand);
  font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.6;
  padding: 5px 14px; border-radius: 999px;
}

/* Buttons */
.btn {
  display: inline-block; padding: 11px 28px; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { background: var(--brand-deep); color: #fff; }
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover { background: var(--surface); color: var(--brand); }

/* Header: stays at the top of the window while scrolling */
.site-header {
  position: sticky; top: 0; z-index: 20; padding-top: 12px;
  /* solid ground behind the upper half of the bar, so page text never shows above it */
  background: linear-gradient(var(--bg) 40px, transparent 40px);
}
.bar {
  position: relative;
  background: var(--surface); border-radius: 32px; padding: 10px 12px 10px 28px;
  box-shadow: 0 4px 16px rgba(31, 45, 58, .08);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 24px;
}
.logo { font-weight: 700; font-size: 19px; letter-spacing: .12em; color: var(--brand); text-decoration: none; padding: 8px 0; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand); }
.nav a.btn, .nav a.btn:hover { color: #fff; padding: 10px 22px; }

/* Hamburger button (shown only on small screens, and only when the script is running) */
.nav-toggle {
  display: none; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: 50%; background: var(--bg); color: var(--ink); cursor: pointer;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
  .bar { border-radius: 24px; padding: 6px 8px 6px 20px; }

  /* Without the script: the menu stays visible as a row under the logo */
  html:not(.js) .bar { padding: 8px 20px 6px; }
  html:not(.js) .nav { width: 100%; justify-content: space-between; gap: 0 12px; font-size: 14px; }
  html:not(.js) .nav a.btn, html:not(.js) .nav a.btn:hover { background: none; color: var(--brand); padding: 10px 0; border-radius: 0; }

  /* With the script: the hamburger button opens the menu as a panel under the header */
  .js .nav-toggle { display: grid; }
  .js .nav {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0;
    background: var(--surface); border-radius: 24px; box-shadow: var(--shadow);
    padding: 8px 20px 20px; font-size: 16px;
  }
  .js .nav-toggle[aria-expanded="false"] + .nav { display: none; }
  .js .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .js .nav a.btn, .js .nav a.btn:hover { margin-top: 16px; padding: 12px 22px; border-bottom: 0; text-align: center; }
}

/* Fade-in on scroll. The script adds .reveal-pending only to elements that start below the window. */
.reveal-pending { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }
.services .service:nth-child(2).reveal-pending { transition-delay: .12s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-pending { opacity: 1; transform: none; transition: none; }
}

/* Hero */
.hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 40px 48px;
  padding-top: clamp(40px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 80px);
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.hero h1 { font-size: clamp(28px, 3.9vw, 50px); line-height: 1.5; font-weight: 700; }
.hero .lead { max-width: 30em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
@media (max-width: 640px) {
  .hero h1 { font-size: clamp(22px, 7.6vw, 34px); }
}

/* Hero visual: photo of the space we run, a sun-coloured circle behind it, and a small info card */
.hero-art { flex: 0 1 400px; min-width: 260px; height: clamp(280px, 34vw, 420px); position: relative; }
.art-sun { position: absolute; right: 0; top: 0; width: 36%; aspect-ratio: 1; background: var(--sun); border-radius: 50%; }
.art-photo { position: absolute; left: 0; top: 9%; width: 88%; height: 74%; max-width: none; object-fit: cover; object-position: 42% 50%; border-radius: 36px; }
.art-card {
  position: absolute; right: 0; bottom: 0; max-width: 100%;
  background: var(--surface); border-radius: 22px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.6;
}
.art-card .label { font-size: 12px; font-weight: 700; color: var(--brand); }
.art-card b { font-size: 15px; }
.art-card .meta { font-size: 13px; color: var(--muted); }

/* Sections */
section.block { padding-top: clamp(48px, 6vw, 72px); }
section.block:last-of-type { padding-bottom: clamp(48px, 7vw, 80px); }
.sec-title { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 36px; }
.sec-title h1, .sec-title h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.6; font-weight: 700; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.service {
  background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 36px);
  min-width: 0; display: flex; flex-direction: column; gap: 14px;
}
.service-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.icon { width: 56px; height: 56px; border-radius: 50%; background: var(--bg); color: var(--brand); display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; }
.tag { font-size: 13px; font-weight: 700; line-height: 1.6; padding: 4px 14px; border-radius: 999px; background: var(--brand); color: #fff; }
.tag.soon { background: var(--soon-bg); color: var(--soon-ink); }
.service h3 { font-size: 21px; line-height: 1.6; font-weight: 700; }
.service p { font-size: 15px; color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.6; }
.chips li { padding: 4px 14px; border-radius: 999px; background: var(--bg); }
.space { margin-top: auto; background: var(--bg); border-radius: 18px; padding: 16px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.space b { font-size: 15px; }
.space .meta { font-size: 13px; color: var(--muted); }
.space a { font-size: 14px; font-weight: 700; padding: 7px 0; }

/* Company */
.company { background: var(--surface); border-radius: 28px; padding: 12px clamp(20px, 4vw, 36px); font-size: 15px; }
.company .row { display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company .row:last-child { border-bottom: 0; }
.company dt { flex: 0 0 9em; font-weight: 700; color: var(--muted); }
.company dd { flex: 1 1 260px; min-width: 0; }

/* Contact */
.contact {
  background: var(--brand); color: #fff; border-radius: 32px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
}
.contact-text { flex: 1 1 320px; min-width: 0; }
.contact h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.6; font-weight: 700; margin-bottom: 6px; }
.contact .mail {
  background: var(--surface); color: var(--ink); border-radius: 999px;
  padding: 14px clamp(20px, 3vw, 36px);
  font-size: clamp(17px, 2.2vw, 24px); line-height: 1.5; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; overflow-wrap: anywhere;
}
.contact .mail:hover { color: var(--brand); }

/* Footer */
.site-footer { background: var(--surface); font-size: 13px; color: var(--muted); }
.site-footer .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--muted); padding: 10px 0; }
.site-footer a:hover { color: var(--brand); }

/* Notice page */
.notice-page { padding-top: clamp(40px, 6vw, 64px); padding-bottom: clamp(56px, 8vw, 88px); }
.notice-box { background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 36px); }
.notice-box p + p { margin-top: 12px; }
.notice-list { list-style: none; margin-top: 20px; padding: 8px clamp(24px, 4vw, 36px); background: var(--surface); border-radius: 28px; }
.notice-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.notice-list li:last-child { border-bottom: 0; }
