/* ==========================================================================
   ひだまり介護ステーション — Portfolio Sample Site
   ========================================================================== */

:root {
  --deep: #5b4636;
  --deep-2: #3f3226;
  --soft: #8a6a51;
  --brand: #e2795a;
  --brand-dark: #c85f42;
  --bg: #fdf8f2;
  --surface: #ffffff;
  --text: #3a2e26;
  --text-muted: #8a7768;
  --border: #ece1d5;
  --map-bg: #f5ece1;
  --map-line: #d9c7b3;
  --radius: 20px;
  --shadow: 0 18px 40px -22px rgba(91, 70, 54, 0.28);
  --ff: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
.inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.pc-only { display: inline; }

/* ---------- Disclaimer bar ---------- */
.disclaimer-bar {
  background: var(--deep-2);
  color: #ecdfd2;
  text-align: center;
  font-size: 12.5px;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
.disclaimer-bar p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.site-header.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 8px 24px -18px rgba(91, 70, 54, 0.35);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  display: inline-flex;
  color: var(--brand-dark);
}
.logo-text {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--deep);
  line-height: 1.35;
}
.logo-text em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brand);
}
.gnav ul {
  display: flex;
  align-items: center;
  gap: 28px;
}
.gnav a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}
.gnav a:hover { color: var(--brand-dark); }
.nav-cta {
  background: var(--brand);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--brand-dark); color: #fff !important; }
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep);
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, rgba(226,121,90,0.90) 0%, rgba(232,149,111,0.82) 50%, rgba(238,171,132,0.72) 100%), url("../images/hero.jpg") center 30% / cover no-repeat;
  color: #fff;
  overflow: hidden;
  padding: 100px 0 76px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-petals { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff3ea;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.hero-lead {
  font-size: 16px;
  color: #fff0e6;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--deep);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgba(63, 50, 38, 0.55);
}
.btn-primary:hover { background: var(--deep-2); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}
.hero-stats li { display: flex; align-items: baseline; gap: 4px; flex-direction: column; }
.hero-stats .num {
  font-size: 34px;
  font-weight: 800;
  color: #fff;
}
.hero-stats .unit {
  font-size: 13px;
  font-weight: 700;
  color: #fff3ea;
  margin-left: 2px;
}
.hero-stats .label {
  display: block;
  font-size: 12.5px;
  color: #ffe4d2;
  margin-top: 2px;
}
.hero-note {
  margin-top: 16px;
  font-size: 11.5px;
  color: #ffe4d2;
}

.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); }
.breadcrumb .inner { padding-top: 12px; padding-bottom: 12px; }
.breadcrumb ol { display: flex; gap: 6px; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Section common ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--surface); }
.section-eyebrow {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--brand-dark);
  margin-bottom: 10px;
}
.section-title {
  font-size: 29px;
  font-weight: 800;
  color: var(--deep);
  margin-bottom: 20px;
}
.section-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 44px;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}
.about-lead p { color: var(--text-muted); font-size: 15px; margin-bottom: 18px; }
.about-photo { margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; height: 260px; object-fit: cover; }
.photo-caption { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.about-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.about-table > div {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 12px;
  padding: 17px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.about-table > div:last-child { border-bottom: none; }
.about-table dt { color: var(--text-muted); font-weight: 700; }
.about-table dd { color: var(--text); }

/* ---------- Service ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: #fbe6dc;
  color: var(--brand-dark);
  margin-bottom: 22px;
}
.service-card h3 { font-size: 18px; font-weight: 800; color: var(--deep); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--text-muted); }

/* ---------- Strength ---------- */
.strength-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.strength-card {
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
}
.strength-num {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.strength-card h3 { font-size: 16px; font-weight: 800; color: var(--deep); margin-bottom: 10px; }
.strength-card p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- Voice ---------- */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.voice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.voice-text { font-size: 14.5px; color: var(--text); margin-bottom: 18px; }
.voice-meta { font-size: 12.5px; color: var(--text-muted); font-weight: 700; }

/* ---------- Access ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.access-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 400 / 260;
}

/* ---------- Contact ---------- */
.section-contact { background: var(--deep); }
.section-contact .section-eyebrow { color: #f4c9ac; }
.section-contact .section-title { color: #fff; }
.section-contact .section-lead { color: #d9c5b3; }
.contact-form {
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 42px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 8px;
}
.req {
  display: inline-block;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
}
.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(226, 121, 90, 0.16);
}
.form-row.has-error input,
.form-row.has-error textarea { border-color: #c9503a; }
.form-error {
  font-size: 12.5px;
  color: #c9503a;
  margin-top: 6px;
  min-height: 1em;
}
.btn-submit { width: 100%; border: none; }
.form-success {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #4d7a52;
  background: #eaf3e9;
  padding: 14px 18px;
  border-radius: 12px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--deep-2); color: #cbb9a8; padding: 64px 0 32px; }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 24px;
}
.footer-logo { font-size: 17px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-license { font-size: 12.5px; color: #b09a86; }
.footer-top nav ul { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-top nav a { font-size: 13.5px; color: #e2d2c2; }
.footer-top nav a:hover { color: #fff; }
.footer-disclaimer {
  font-size: 12px;
  color: #a08d7b;
  line-height: 1.9;
  margin-bottom: 18px;
}
.footer-copyright { font-size: 12px; color: #8a7768; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   SP / Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .strength-grid { grid-template-columns: repeat(2, 1fr); }
  .voice-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .access-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .pc-only { display: none; }
  .inner { padding: 0 20px; }

  .disclaimer-bar p { font-size: 11px; line-height: 1.6; }

  .site-header .inner { height: 66px; }
  .logo-mark svg { width: 30px; height: 30px; }
  .logo-text { font-size: 14px; }
  .logo-text em { font-size: 9px; }

  .gnav {
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    height: calc(100vh - 66px);
    height: calc(100dvh - 66px);
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 90;
  }
  .gnav.is-open { transform: translateX(0); }
  .gnav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 40px;
  }
  .gnav li { border-bottom: 1px solid var(--border); }
  .gnav a { display: block; padding: 18px 4px; font-size: 15.5px; }
  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 18px;
    border-radius: 12px;
  }
  .hamburger { display: flex; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 26px; margin-bottom: 18px; }
  .hero-lead { font-size: 14.5px; margin-bottom: 26px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-bottom: 36px; }
  .btn { width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero-stats .num { font-size: 26px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 23px; }
  .section-lead { margin-bottom: 32px; }

  .service-grid,
  .strength-grid,
  .voice-grid { grid-template-columns: 1fr; }

  .about-table > div { grid-template-columns: 96px 1fr; padding: 14px 18px; font-size: 13.5px; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-top nav ul { gap: 14px 20px; }

  .contact-form { padding: 26px 20px; }
}
