/* Sewa Links 株式会社 — corporate site
   Design replicated from Wix sample (sewalinks.wixsite.com/sewa-links)
   Palette: teal #00a99d / dark teal #006b63 / navy ink #1e2b4a / mint #e0f5f3 / off-white #f8f8f6
   Fonts: Noto Sans JP (body), Noto Serif JP + Playfair Display (display serif), DM Sans (numbers), Lato */

:root {
  --teal: #00a99d;
  --teal-dark: #006b63;
  --btn-green: #2d6b5f;
  --ink: #1e2b4a;
  --gray: #5f6b76;
  --mint: #e0f5f3;
  --offwhite: #f8f8f6;
  --line: #d7dde3;
  --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  line-height: 1.9;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.serif { font-family: "Playfair Display", "Noto Serif JP", serif; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 2px 14px rgba(30,43,74,.08); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.brand img { height: 72px; width: auto; }

.nav { display: flex; align-items: center; gap: 3rem; }
.nav a {
  font-size: 1.02rem; font-weight: 400; color: #2f3437; letter-spacing: .04em;
  padding: .3rem 0; border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--teal-dark); }
.nav a.active { border-bottom-color: #2f3437; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 10px; width: 24px; height: 2px;
  background: var(--ink); transition: transform .25s, opacity .25s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; left: 0; }
.nav-toggle span::after { top: 8px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons (square, like sample) ---------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem;
  padding: .95rem 2.4rem; border-radius: 0;
  transition: background .2s, transform .15s;
  font-family: "Noto Serif JP", "Playfair Display", serif;
  letter-spacing: .05em;
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-green { background: var(--btn-green); color: #fff; }
.btn-green:hover { background: #235448; }

/* ---------- Home hero ---------- */
.hero {
  background: var(--mint);
  padding: 6rem 0 2rem;
  position: relative;
}
.hero h1 {
  font-family: "Lato", "Noto Sans JP", sans-serif;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  font-weight: 900; line-height: 1.35; letter-spacing: .01em;
  color: var(--teal);
  max-width: 22em;
}
.hero .sub {
  margin-top: 2.2rem; max-width: 42em;
  font-size: clamp(.98rem, 1.6vw, 1.15rem); color: #3f4a54;
}
.hero .cta-row { margin: 2.6rem 0 3rem; }

/* white arc divider under hero (like sample) */
.arc-divider { display: block; width: 100%; height: 170px; background: var(--mint); }
.arc-divider svg { display: block; width: 100%; height: 100%; }

/* ---------- Stats band ---------- */
.stats { background: var(--offwhite); padding: 4.5rem 0 5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; text-align: center; }
.stat .num {
  font-family: "DM Sans", "Lato", sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.2rem); font-weight: 700; line-height: 1.1;
  color: var(--teal);
}
.stat .label {
  margin-top: 1rem; font-size: 1.05rem; letter-spacing: .08em;
  color: var(--ink); font-weight: 500;
}

/* ---------- Home services (3 text columns) ---------- */
.services { background: var(--white); padding: 5.5rem 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.service h3 {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 700; line-height: 1.4;
  color: var(--teal-dark); letter-spacing: .04em;
  margin-bottom: 1.6rem;
}
.service p { font-size: 1.02rem; color: var(--gray); }

/* ---------- Reasons (mint, 4 cols, underlines) ---------- */
.reasons { background: var(--mint); padding: 5.5rem 0 6rem; }
.reasons > .container > h2 {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 700; color: #2f3437;
  margin-bottom: 3.5rem;
}
.reasons-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4rem; }
.reason .icon {
  width: 58px; height: 58px; display: grid; place-items: center;
  background: #4c5560; color: #fff; font-size: 1.5rem;
  margin-bottom: 1.4rem;
}
.reason h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 1.35rem; font-weight: 700; color: #2f3437; line-height: 1.5;
  margin-bottom: 1rem;
}
.reason p { font-size: .98rem; color: #4a545e; padding-bottom: 1.8rem; border-bottom: 1px solid #6d7f7c; }

/* ---------- Page: services ---------- */
.svc-hero { background: var(--mint); padding: 5rem 0 6rem; }
.svc-hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.svc-hero-grid .photo img { width: 100%; height: auto; box-shadow: 0 20px 50px rgba(30,43,74,.18); }
.svc-hero-grid h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; color: var(--ink);
  line-height: 1.45; margin-bottom: 1.8rem;
}
.svc-hero-grid .body { font-size: 1.08rem; color: #333d47; margin-bottom: 1.6rem; }
.svc-check { color: var(--teal); font-size: 1rem; margin-bottom: 1.4rem; }
.svc-check::before { content: "✓ "; font-weight: 700; }
.svc-list { list-style: disc; padding-left: 1.4rem; color: #333d47; font-size: 1rem; }
.svc-list li { margin-bottom: .7rem; }
.svc-list b { color: var(--ink); }
.svc-hero-grid .cta-row { margin-top: 2.6rem; text-align: right; }

.facilities { background: var(--offwhite); padding: 5.5rem 0 6rem; }
.facilities-head { text-align: center; margin-bottom: 4rem; }
.facilities-head h2 {
  font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 900; color: var(--ink);
  letter-spacing: .02em;
}
.facilities-head p { margin-top: 1.2rem; color: var(--gray); font-size: 1.1rem; }
.facilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 3.5rem; }
.facility h3 {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  font-size: 1.7rem; font-weight: 700; color: var(--ink); margin-bottom: .9rem;
}
.facility p { color: var(--gray); font-size: 1rem; }

.quality { background: var(--mint); padding: 5.5rem 0 6rem; }
.quality > .container > h2 {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; color: var(--ink);
  text-align: center; margin-bottom: 3.5rem;
}
.quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 6rem; }
.quality-item h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--ink); letter-spacing: .05em;
  margin-bottom: .8rem;
}
.quality-item p { color: var(--gray); font-size: 1rem; padding-bottom: 1.8rem; border-bottom: 1px solid #55746e; }

/* ---------- Page: about ---------- */
.about-section { background: var(--offwhite); padding: 5.5rem 0 6rem; }
.about-section h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: var(--ink);
  text-align: center; margin-bottom: 3.5rem;
}
.info-table {
  width: min(960px, 100%); margin: 0 auto; border-collapse: collapse;
  border-top: 2px solid var(--ink);
}
.info-table th, .info-table td {
  padding: 1.35rem 1.6rem; text-align: left; font-size: 1.02rem;
  border-bottom: 1px solid var(--line); vertical-align: top; font-weight: 400;
}
.info-table th { width: 26%; color: #3f4a54; background: rgba(30,43,74,.03); white-space: nowrap; border-right: 1px solid var(--line); }
.info-table td { color: var(--ink); }
.about-quote {
  text-align: center; font-weight: 700; font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--ink); margin: 4rem auto 3rem; letter-spacing: .04em;
}
.about-rule { width: min(960px, 100%); margin: 0 auto; border: none; border-top: 1px solid var(--line); }

/* ---------- Page: contact ---------- */
.contact-band { background: var(--mint); text-align: center; padding: 6rem 0 7rem; }
.contact-band .eyebrow {
  font-size: 1rem; letter-spacing: .18em; color: #2f3437; margin-bottom: 1.6rem;
}
.contact-band h1 {
  font-family: "Playfair Display", "Noto Serif JP", serif;
  font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; color: #2f3437;
  margin-bottom: 3rem; line-height: 1.2;
}
.contact-band .line { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: #333d47; margin-bottom: 1.4rem; }
.contact-band .line a { border-bottom: 1px solid #333d47; }
.contact-band .line a:hover { color: var(--teal-dark); border-color: var(--teal-dark); }
.contact-band .cta-row { margin-top: 2.6rem; }

/* ---------- Inquiry form ---------- */
.inq-section { background: var(--offwhite); padding: 4.5rem 0 5.5rem; }
.inq-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.6rem; align-items: start; width: min(1080px, 92%); margin: 0 auto; }
.form-card { background: #fff; border: 1px solid var(--line); padding: 2.2rem 2rem; }
.form-card h2 { font-family: "Noto Serif JP", serif; font-size: 1.25rem; color: var(--teal-dark); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.field label .req { display: inline-block; background: #c0392b; color: #fff; font-size: .66rem; padding: .1rem .5rem; margin-left: .5rem; vertical-align: middle; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font-size: .96rem; font-family: inherit;
  border: 1.5px solid var(--line); background: var(--offwhite); border-radius: 0;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .8rem; color: var(--gray); margin-top: 1rem; }
.form-note a { text-decoration: underline; }
.form-done { background: var(--mint); border-left: 4px solid var(--teal); padding: 1.6rem; font-size: 1rem; color: var(--ink); }
.inq-side .side-card { background: var(--ink); color: #fff; padding: 1.7rem 1.6rem; margin-bottom: 1.2rem; }
.inq-side .side-card h3 { font-family: "Noto Serif JP", serif; color: #8ef0e6; font-size: 1rem; margin-bottom: .7rem; }
.inq-side .side-card p { font-size: .93rem; color: #d5dde8; }
.inq-side .side-card a { color: #fff; font-weight: 700; word-break: break-all; }
.inq-side .side-card a:hover { color: #8ef0e6; }
.inq-side .tel { font-size: 1.35rem; font-weight: 900; letter-spacing: .04em; }
@media (max-width: 900px) {
  .inq-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Privacy ---------- */
.prose { padding: 4.5rem 0 6rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--ink); text-align: center; margin-bottom: 3rem; }
.prose h2 { font-family: "Noto Serif JP", serif; color: var(--ink); font-size: 1.2rem; margin: 2.2rem 0 .7rem; }
.prose p, .prose li { font-size: .96rem; color: #333d47; }
.prose ul { list-style: disc; padding-left: 1.4rem; }

/* ---------- Footer (like sample) ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--teal-dark); padding: 3.4rem 0 1.8rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem;
  align-items: start; text-align: center;
}
.site-footer .f-logo img { height: 110px; width: auto; margin: 0 auto; }
.site-footer .f-mid p { font-size: 1.05rem; color: #333d47; margin-bottom: 1.6rem; }
.site-footer .f-mid a:hover { color: var(--teal-dark); }
.site-footer .f-cta {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  font-weight: 700; font-size: 1.15rem; color: #2f3437;
}
.site-footer .f-cta a:hover { color: var(--teal-dark); }
.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem;
  border-top: 1px solid var(--teal-dark);
  width: min(1200px, 92%); margin-left: auto; margin-right: auto;
  text-align: center; font-size: .92rem; color: #333d47;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
/* stagger siblings inside a grid/band */
.visible-stagger > .reveal.visible:nth-child(1) { transition-delay: 0s; }
.visible-stagger > .reveal.visible:nth-child(2) { transition-delay: .12s; }
.visible-stagger > .reveal.visible:nth-child(3) { transition-delay: .24s; }
.visible-stagger > .reveal.visible:nth-child(4) { transition-delay: .36s; }
.visible-stagger > .reveal.visible:nth-child(5) { transition-delay: .48s; }
.visible-stagger > .reveal.visible:nth-child(6) { transition-delay: .6s; }

/* hero entrance on page load */
@keyframes heroUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.hero h1, .page-hero h1, .cl-hero h1, .contact-band h1, .about-section h1 { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) both; }
.hero .sub, .cl-hero .version, .contact-band .eyebrow { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) .18s both; }
.hero .cta-row, .cl-hero .intro, .contact-band .line { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) .34s both; }
.contact-band .cta-row, .cl-hero .btn { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) .5s both; }

/* gentle breathing float on the hero CTA */
@keyframes pulseShadow {
  0%, 100% { box-shadow: 0 6px 18px rgba(0,169,157,.25); }
  50% { box-shadow: 0 10px 30px rgba(0,169,157,.45); }
}
.hero .btn-teal { animation: heroUp .9s cubic-bezier(.22,.61,.36,1) .34s both, pulseShadow 3.2s ease-in-out 1.6s infinite; }

/* button + card micro-interactions */
.btn { transition: background .25s, transform .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }
.service, .reason, .facility, .quality-item { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.service:hover, .facility:hover { transform: translateY(-6px); }
.reason:hover .icon { transform: rotate(-6deg) scale(1.08); }
.reason .icon { transition: transform .35s cubic-bezier(.22,.61,.36,1); }

/* nav underline slide-in */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: #2f3437; transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a.active::after { transform: scaleX(1); }
.nav a.active { border-bottom-color: transparent; }

/* logo entrance */
.brand img { animation: heroUp .7s ease both; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero h1, .hero .sub, .hero .cta-row, .page-hero h1, .cl-hero h1, .cl-hero .version, .cl-hero .intro, .cl-hero .btn,
  .contact-band h1, .contact-band .eyebrow, .contact-band .line, .contact-band .cta-row, .about-section h1, .brand img, .hero .btn-teal {
    opacity: 1; transform: none; transition: none; animation: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .header-inner { height: 76px; }
  .brand img { height: 56px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-open .nav { max-height: 320px; box-shadow: 0 14px 30px rgba(30,43,74,.12); }
  .nav a { width: 100%; text-align: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }

  .hero { padding-top: 3.5rem; }
  .arc-divider { height: 90px; }
  .stats-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-grid, .reasons-grid, .facilities-grid, .quality-grid { grid-template-columns: 1fr; }
  .svc-hero-grid { grid-template-columns: 1fr; }
  .svc-hero-grid .cta-row { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .info-table th { width: 34%; }
}
