/* =========================================================
   Residence Quality — 先行公開サイト
   Base: white / Accent: clear blue + aqua
   ========================================================= */
:root {
  --blue: #1d6fc4;          /* main accent */
  --blue-deep: #0f4f96;
  --aqua: #4fb6e3;          /* sub accent */
  --aqua-pale: #eaf6fc;
  --sky: #f4f9fd;
  --ink: #1b2a3a;           /* text */
  --ink-2: #4a5a6b;
  --line: #dde7f0;
  --white: #ffffff;
  --ff-head: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --ff-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-en: "Jost", "Noto Sans JP", sans-serif;
  --header-h: 80px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); background: var(--white);
  font-family: var(--ff-body); font-size: 16px; line-height: 2; letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
p { text-wrap: pretty; }

.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.wrap.narrow { width: min(880px, 100% - 64px); }
.sp { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15,79,150,.05); }
.header-inner {
  height: 100%; display: flex; align-items: center; gap: 40px;
  padding-inline: clamp(20px, 3vw, 44px);
}
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-mark {
  width: 30px; height: 30px; position: relative; flex-shrink: 0;
  background: var(--blue); border-radius: 2px;
}
.logo-mark::after {
  content: ""; position: absolute; right: -5px; bottom: -5px; width: 14px; height: 14px;
  background: var(--aqua); border: 3px solid var(--white); border-radius: 2px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-en { font-family: var(--ff-en); font-weight: 500; font-size: 15px; letter-spacing: .14em; color: var(--blue-deep); }
.logo-ja { font-size: 10.5px; letter-spacing: .1em; color: var(--ink-2); }

.gnav { margin-left: auto; }
.gnav ul { display: flex; gap: clamp(20px, 2.4vw, 36px); }
.gnav a { font-size: 14px; font-weight: 500; position: relative; padding-block: 6px; transition: color .2s; }
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--blue);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.gnav a:hover { color: var(--blue); }
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }

.tel-ico {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid currentColor; margin-right: 10px; vertical-align: 1px; position: relative;
}
.tel-ico::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }

.mail-ico {
  display: inline-block; width: 16px; height: 12px; margin-right: 10px; position: relative;
  border: 2px solid currentColor; border-radius: 2px; vertical-align: -1px; overflow: hidden;
}
.mail-ico::after {
  content: ""; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px;
  border: 2px solid currentColor; transform: translateX(-50%) rotate(45deg);
}
.text-link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--blue-deep); }
.tel-num.mail-addr { font-size: clamp(24px, 3.4vw, 40px); letter-spacing: .04em; word-break: break-all; }
.btn-tel-header {
  display: inline-flex; align-items: center; height: 48px; padding-inline: 26px;
  background: var(--blue); color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: .08em;
  border-radius: 999px; transition: background .25s, transform .25s; flex-shrink: 0;
}
.btn-tel-header:hover { background: var(--blue-deep); }

.menu-toggle { display: none; }
.spnav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(640px, 100svh); padding-top: var(--header-h);
  display: flex; align-items: center; overflow: hidden; background: var(--sky);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%;
  filter: saturate(.55) brightness(1.08) hue-rotate(-6deg);
  animation: heroZoom 14s ease-out both;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.86) 34%, rgba(240,248,253,.35) 62%, rgba(214,236,250,.1) 100%),
    linear-gradient(0deg, rgba(234,246,252,.6), rgba(234,246,252,0) 40%);
}
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }

.hero-inner { position: relative; width: min(1160px, 100% - 64px); margin-inline: auto; padding-block: 60px 100px; }
.hero-title {
  font-family: var(--ff-head); font-weight: 700; color: var(--ink);
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.45; letter-spacing: .06em;
}
.hero-title span { display: block; }
.hero-title span:last-child { color: var(--blue); }
.hero-points { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 26px 14px 18px; background: rgba(255,255,255,.88);
  border: 1px solid rgba(29,111,196,.18); border-radius: 999px;
  font-family: var(--ff-head); font-weight: 700; font-size: 17px; letter-spacing: .06em; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(15,79,150,.06);
}
.pt-no {
  font-family: var(--ff-en); font-weight: 500; font-size: 12px; letter-spacing: .1em; color: var(--white);
  width: 30px; height: 30px; border-radius: 50%; background: var(--aqua); display: grid; place-items: center;
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--ff-en); font-size: 11px; letter-spacing: .3em; color: var(--blue-deep);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 44px; background: linear-gradient(var(--blue), transparent);
  animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Section common ---------- */
.sec { padding-block: clamp(88px, 11vw, 150px); position: relative; }
.sec-head { margin-bottom: clamp(48px, 6vw, 72px); }
.sec-head.center { text-align: center; }
.sec-label {
  font-family: var(--ff-en); font-weight: 500; font-size: 13px; letter-spacing: .24em; color: var(--blue);
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; line-height: 1.4;
}
.sec-label::before { content: ""; width: 24px; height: 2px; background: var(--aqua); }
.sec-label span { font-family: var(--ff-body); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); font-weight: 400; }
.sec-head.center .sec-label::before { display: none; }
.sec-title {
  font-family: var(--ff-head); font-weight: 700; font-size: clamp(25px, 3vw, 38px);
  line-height: 1.6; letter-spacing: .06em; color: var(--ink);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.about-body { margin-top: 36px; display: grid; gap: 1.2em; color: var(--ink-2); font-size: 16px; line-height: 2.1; }
.about-photo { position: relative; }
.about-photo::before {
  content: ""; position: absolute; inset: 28px -28px -28px 28px; background: var(--aqua-pale); z-index: -1;
}
.about-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); }

/* ---------- Strengths ---------- */
.strengths { background: var(--sky); }
.str-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.str-card {
  background: var(--white); padding: 40px 30px 44px; border-radius: var(--radius);
  border-top: 3px solid var(--blue); position: relative;
  box-shadow: 0 10px 30px rgba(15,79,150,.05);
}
.str-no {
  font-family: var(--ff-en); font-weight: 400; font-size: 44px; line-height: 1; color: var(--aqua);
  letter-spacing: .02em; display: block; margin-bottom: 26px;
}
.str-card h3 { font-family: var(--ff-head); font-weight: 700; font-size: 20px; letter-spacing: .08em; line-height: 1.5; margin-bottom: 14px; }
.str-card p { font-size: 15px; line-height: 1.95; color: var(--ink-2); }
.note { margin-top: 28px; font-size: 13px; color: var(--ink-2); text-align: right; line-height: 1.8; }

/* ---------- Services ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.svc-body { padding: 40px 44px 44px; }
.svc-en { font-family: var(--ff-en); font-size: 12px; letter-spacing: .22em; color: var(--aqua); font-weight: 500; line-height: 1.4; margin-bottom: 8px; }
.svc-card h3 { font-family: var(--ff-head); font-weight: 700; font-size: 24px; letter-spacing: .08em; line-height: 1.5; margin-bottom: 18px; }
.svc-card p:not(.svc-en) { font-size: 15px; color: var(--ink-2); line-height: 2; }
.svc-card p + p:not(.svc-en) { margin-top: .8em; }

.svc-main {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr;
  border: none; background: var(--blue); color: var(--white); overflow: hidden;
}
.svc-main .svc-photo { min-height: 380px; }
.svc-main .svc-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); }
.svc-main .svc-body { padding: clamp(40px, 5vw, 64px); align-self: center; }
.svc-main .svc-en { color: #bfe6f7; }
.svc-main h3 { font-size: clamp(28px, 2.8vw, 34px); color: var(--white); }
.svc-main h3::after { content: ""; display: block; width: 36px; height: 2px; background: var(--aqua); margin-top: 18px; }
.svc-main p:not(.svc-en) { color: rgba(255,255,255,.92); font-size: 16px; }

/* ---------- Area ---------- */
.area { overflow: hidden; padding-block: clamp(110px, 13vw, 180px); }
.area-bg { position: absolute; inset: 0; }
.area-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: saturate(.8) brightness(1.04); }
.area-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(234,246,252,.2), rgba(234,246,252,.05)); }
.area .wrap { position: relative; }
.area-card {
  background: rgba(255,255,255,.95); max-width: 620px; padding: clamp(40px, 5vw, 64px);
  border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,79,150,.12);
}
.pref-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0 30px; }
.pref-list li {
  font-family: var(--ff-head); font-weight: 700; font-size: 16px; letter-spacing: .08em; line-height: 1;
  padding: 13px 20px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue);
}
.pref-list li.is-main { background: var(--blue); color: var(--white); }
.area-body { display: grid; gap: .8em; color: var(--ink-2); font-size: 15px; line-height: 2; }

/* ---------- Company ---------- */
.company-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--blue); }
.company-table th, .company-table td { padding: 24px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.8; }
.company-table th { width: 200px; font-weight: 700; font-size: 15px; color: var(--blue-deep); letter-spacing: .1em; padding-left: 24px; }
.company-table td { font-size: 15px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-box {
  text-align: center; color: var(--white); border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 55%, #3a9fd6 100%);
  padding: clamp(64px, 8vw, 100px) clamp(24px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.contact-box::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -180px; top: -260px;
  border: 1px solid rgba(255,255,255,.14);
}
.contact-box > * { position: relative; }
.sec-label.light { color: #bfe6f7; }
.sec-label.light span { color: rgba(255,255,255,.75); }
.sec-label.light::before { display: none; }
.contact .sec-title { color: var(--white); }
.contact-lead { margin-top: 22px; font-size: 16px; line-height: 2; color: rgba(255,255,255,.92); }
.tel-block { margin: 44px auto 0; display: inline-block; padding: 28px 48px; border-block: 1px solid rgba(255,255,255,.28); }
.tel-num {
  font-family: var(--ff-en); font-weight: 500; font-size: clamp(34px, 4.6vw, 52px); letter-spacing: .08em; line-height: 1.2;
  display: flex; align-items: baseline; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.tel-lbl { font-size: 15px; letter-spacing: .2em; padding: 4px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 2px; transform: translateY(-6px); }
.tel-num small { font-family: var(--ff-body); font-size: 14px; letter-spacing: .06em; margin-left: -8px; }
.tel-hours { margin-top: 12px; font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6; }
.btn-tel-main {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 36px;
  min-width: 320px; height: 68px; padding-inline: 40px; border-radius: 999px;
  background: var(--white); color: var(--blue); font-weight: 700; font-size: 17px; letter-spacing: .1em;
  box-shadow: 0 12px 30px rgba(8,40,80,.22); transition: transform .25s, box-shadow .25s;
}
.btn-tel-main:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(8,40,80,.28); }
.contact-note { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.9; }

/* ---------- Footer ---------- */
.site-footer { background: #f2f7fb; padding-top: 72px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 56px; }
.footer-dl { margin-top: 26px; display: grid; gap: 6px; font-size: 14px; line-height: 1.8; }
.footer-dl div { display: flex; gap: 20px; }
.footer-dl dt { color: var(--blue-deep); font-weight: 500; min-width: 4.5em; }
.footer-dl dd { margin: 0; color: var(--ink-2); }
.footer-nav ul { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 44px; }
.footer-nav a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.footer-nav a:hover { color: var(--blue); }
.copyright { text-align: center; padding: 22px 16px; border-top: 1px solid var(--line); font-family: var(--ff-en); font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }

.sp-fixed-tel { display: none; }

/* ---------- Fade ---------- */
.fade { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; transition-delay: var(--d, 0s); }
.fade.is-in { opacity: 1; transform: none; }
.hero .fade { transition-duration: 1.2s; }
@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .hero-scroll::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .gnav { display: none; }
  .btn-tel-header { margin-left: auto; }
  .menu-toggle {
    display: grid; place-content: center; gap: 7px; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; padding: 0;
  }
  .menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); transition: transform .3s; }
  .menu-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(30deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-30deg); }
  .spnav {
    display: block; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); border-top: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .4s ease;
  }
  .menu-open .spnav { max-height: 480px; box-shadow: 0 20px 30px rgba(15,79,150,.08); }
  .spnav ul { padding: 8px 24px 24px; }
  .spnav a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--line); font-weight: 500; font-size: 15px; }
  .str-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; }
  .wrap, .wrap.narrow, .hero-inner { width: calc(100% - 40px); }
  .pc { display: none; }
  .sp { display: inline; }
  .header-inner { gap: 12px; }
  .logo-mark { width: 24px; height: 24px; }
  .logo-mark::after { width: 12px; height: 12px; right: -4px; bottom: -4px; }
  .logo-en { font-size: 13px; }
  .logo-ja { font-size: 9.5px; }
  .btn-tel-header { display: none; }
  .menu-toggle { margin-left: auto; }

  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-bg img { object-position: 72% center; }
  .hero-bg::after {
    background: linear-gradient(0deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 50%, rgba(240,248,253,.3) 78%, rgba(240,248,253,.1) 100%);
  }
  .hero-inner { padding-block: 40px 120px; }
  .hero-title { font-size: clamp(30px, 8.6vw, 40px); }
  .hero-points { margin-top: 32px; flex-direction: column; gap: 10px; }
  .hero-points li { font-size: 15px; padding: 12px 20px 12px 12px; width: fit-content; }
  .hero-scroll { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-photo { margin-right: 16px; }
  .about-photo::before { inset: 16px -16px -16px 16px; }
  .about-body { margin-top: 26px; }

  .str-list { grid-template-columns: 1fr; gap: 14px; }
  .str-card { padding: 28px 24px 30px; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; }
  .str-no { font-size: 34px; margin-bottom: 0; grid-row: span 2; }
  .str-card h3 { font-size: 18px; margin-bottom: 6px; }
  .note { text-align: left; font-size: 12px; }

  .svc-grid { grid-template-columns: 1fr; gap: 16px; }
  .svc-main { grid-template-columns: 1fr; }
  .svc-main .svc-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .svc-main .svc-body, .svc-body { padding: 32px 26px 36px; }
  .svc-card h3 { font-size: 21px; }
  .svc-main h3 { font-size: 26px; }

  .area { padding-block: 0 0; }
  .area-bg { position: relative; height: 240px; }
  .area .wrap { margin-top: -60px; padding-bottom: 88px; }
  .area-card { padding: 36px 26px; }
  .pref-list li { font-size: 14px; padding: 11px 16px; }

  .company-table th, .company-table td { display: block; width: 100%; padding: 0; border: 0; }
  .company-table tr { display: block; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .company-table th { font-size: 13px; margin-bottom: 4px; padding-left: 0; }

  .contact-lead { font-size: 15px; text-align: left; }
  .tel-block { padding: 22px 8px; display: block; }
  .tel-num { gap: 10px; }
  .tel-lbl { font-size: 12px; transform: translateY(-4px); }
  .btn-tel-main { min-width: 0; width: 100%; height: 60px; font-size: 16px; }
  .contact-note { text-align: left; font-size: 13px; }

  .site-footer { padding-top: 52px; padding-bottom: 76px; }
  .footer-nav ul { grid-template-columns: repeat(2, auto); gap: 10px 32px; }

  .sp-fixed-tel {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90;
    height: 56px; border-radius: 999px; background: var(--blue); color: var(--white);
    font-weight: 700; font-size: 16px; letter-spacing: .1em;
    box-shadow: 0 10px 24px rgba(15,79,150,.28);
  }
}
