@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --ink: #1F3A3D;
  --ink-soft: #4A5D5F;
  --accent: #E8873B;
  --accent-dark: #C96A22;
  --accent-soft: #F6D9BC;
  --moss: #6B8F71;
  --bg: #F7EFE6;
  --surface: #FFFDF9;
  --white: #FFFFFF;
  --line: #E4D8C8;
  --shadow: 0 6px 20px rgba(31, 58, 61, 0.08);
  --radius: 16px;

  /* legacy aliases used across markup */
  --primary: var(--accent);
  --primary-dark: var(--accent-dark);
  --primary-light: var(--accent-soft);
  --bg-soft: var(--surface);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-mark, .btn, .section-head .tag, .page-title .tag {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { opacity: 0.75; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: rgba(247, 239, 230, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--ink);
}
.brand-mark img { width: 40px; height: 40px; border-radius: 50%; }
.brand-mark .sub { display: block; font-size: 0.6rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.05em; font-family: 'Noto Sans JP', sans-serif; }

nav.main-nav { display: flex; gap: 20px; flex-wrap: wrap; }
nav.main-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s, opacity 0.2s;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--accent-dark);
  opacity: 1;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); opacity: 1; box-shadow: 0 10px 24px rgba(232,135,59,0.25); }
.btn-outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--white); opacity: 1; }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.btn-light:hover { transform: translateY(-2px); opacity: 1; }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.section-alt { background: var(--surface); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.section-alt .card { background: var(--white); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 16px;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.card h3 { margin: 0 0 10px; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Icon circle for business cards */
.icon-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.icon-circle svg { width: 20px; height: 20px; }

/* Info table (company section) */
.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.info-table th, .info-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: none; }
.info-table th {
  width: 160px;
  color: var(--accent-dark);
  font-weight: 700;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.info-table td { color: var(--ink-soft); }

/* Panel / notice */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 40px;
}
.notice {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 30px;
  color: var(--ink-soft);
}
.notice strong { color: var(--accent-dark); }

/* Breadcrumb-ish page title */
.page-title { background: var(--surface); padding: 48px 0; text-align: center; border-bottom: 1px solid var(--line); }
.page-title .tag { color: var(--accent-dark); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.page-title h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 8px 0 0; font-weight: 700; color: var(--ink); }
.page-title p { color: var(--ink-soft); margin-top: 14px; max-width: 620px; margin-left: auto; margin-right: auto; }

/* Contact */
.contact-box { text-align: center; }
.contact-box .method {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 44px;
  margin: 10px;
}
.contact-box .method .label { font-size: 0.85rem; color: var(--ink-soft); font-weight: 700; margin-bottom: 10px; }
.contact-box .method a { font-size: 1.25rem; font-weight: 800; color: var(--ink); font-family: 'Zen Maru Gothic', sans-serif; }

/* Footer */
footer.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px 0;
  margin-top: 20px;
}
footer.site-footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
footer.site-footer .fnav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
footer.site-footer .fnav a { color: var(--ink-soft); font-size: 0.86rem; }
footer.site-footer .fnav a:hover { color: var(--accent-dark); opacity: 1; }
footer.site-footer .copy { font-size: 0.78rem; color: var(--ink-soft); }
footer.site-footer .fnav-row { display: flex; align-items: center; gap: 16px; }
.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  flex-shrink: 0;
}
.back-to-top:hover { opacity: 1; background: var(--white); }
.back-to-top svg { width: 16px; height: 16px; }

/* Single-page layout: anchor offset for sticky header */
section, .page-title { scroll-margin-top: 84px; }

/* Hero (single-page version) */
.hero-single {
  position: relative;
  overflow: hidden;
  padding: 92px 0 80px;
}
.hero-single .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.hero-single .blob.b1 { width: 340px; height: 340px; background: var(--accent-soft); opacity: 0.55; top: -100px; right: -60px; }
.hero-single .blob.b2 { width: 280px; height: 280px; background: var(--moss); opacity: 0.18; bottom: -70px; left: -60px; }
.paw-trail { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.paw-trail svg { position: absolute; width: 30px; height: 30px; color: var(--accent); opacity: 0.14; }
.hero-single .wrap { position: relative; z-index: 1; }
.hero-single .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  margin-bottom: 18px;
  font-family: 'Zen Maru Gothic', sans-serif;
}
.hero-single .eyebrow svg { width: 16px; height: 16px; }
.hero-single h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 900;
  margin: 0 0 18px;
  line-height: 1.4;
  max-width: 780px;
  color: var(--ink);
}
.hero-single .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 32px;
}
.hero-single .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* News list */
.news-list { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin: 0 auto; }
.news-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: left;
}
.news-item .meta { display: flex; gap: 10px; align-items: center; font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 8px; }
.news-item .meta .pill { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; padding: 2px 12px; border-radius: 999px; }
.news-item h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--ink); font-family: 'Zen Maru Gothic', sans-serif; }
.news-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

@media (max-width: 720px) {
  .site-header .wrap { height: auto; flex-direction: column; padding: 14px 20px; gap: 10px; }
  nav.main-nav { justify-content: center; }
  .info-table th { width: 120px; padding: 14px 16px; font-size: 0.85rem; }
  .info-table td { padding: 14px 16px; font-size: 0.88rem; }
  .contact-box .method { padding: 26px 24px; display: block; }
  .hero-single { padding: 56px 0 48px; text-align: center; }
  .hero-single .eyebrow { justify-content: center; }
  .hero-single h1, .hero-single .lead { margin-left: auto; margin-right: auto; }
  .hero-single .cta-row { justify-content: center; }
  footer.site-footer .fnav-row { flex-direction: column; gap: 14px; }
}

/* 事業の柱：上段3つ・下段は中央寄せ */
.card-grid-center { display: flex; flex-wrap: wrap; justify-content: center; }
.card-grid-center > .card { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 900px) {
  .card-grid-center > .card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .card-grid-center > .card { flex-basis: 100%; }
}

/* Scroll reveal (added) */
body.js-reveal .reveal-target{
  opacity:0;
  transform:translateY(26px) scale(.97);
  transition:opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1);
}
body.js-reveal .reveal-target.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}
.card-grid .reveal-target:nth-child(2){transition-delay:.08s}
.card-grid .reveal-target:nth-child(3){transition-delay:.16s}
.card-grid .reveal-target:nth-child(4){transition-delay:.24s}
.card-grid .reveal-target:nth-child(5){transition-delay:.32s}
@media (prefers-reduced-motion: reduce){
  body.js-reveal .reveal-target{opacity:1;transform:none;transition:none}
}

/* Auto-hide header on scroll (added) */
.site-header{
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.site-header.header-hidden{
  transform: translateY(-100%);
}
