/* ============================================================
   LocalAd corporate site v2 — "まちづくり会社" model
   Original implementation. Layout grammar inspired by
   architectural machizukuri corporate sites:
   - floating header elements (no bar)
   - 100vh crossfade photo hero + staggered tagline wipe
   - EN Montserrat 300 kicker + JP subtitle centered headings
   - alternating full-bleed rows / auto-fill card grids
   - pill buttons that invert on hover
   Palette: white base, slightly brighter than reference,
   accented with LocalAd logo colors (green #4FD251 / red #FD484C)
   ============================================================ */

:root {
  --c-ink: #333333;
  --c-ink-rgb: 51, 51, 51;
  --c-grey: #858585;
  --c-light: #ababab;
  --c-bg: #ffffff;
  --c-band: #f1f8f2;            /* light green-tinted band (reference used #f5f5f5) */
  --c-green: #4fd251;           /* logo green */
  --c-green-rgb: 79, 210, 81;
  --c-green-deep: #2fa84f;      /* text-safe green */
  --c-red: #fd484c;             /* logo red */
  --sec-gap: 3rem;
  --block-gap: 2rem;
  --grid-gap: 0.9rem;
  --sec-max: 74rem;
  --p-max: 48rem;
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --font-en: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "游ゴシック", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

@media (min-width: 813px) {
  :root {
    --sec-gap: 5rem;
    --grid-gap: 1.2rem;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-ink);
  background: var(--c-bg);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }

ul, ol { list-style: none; }

.en { font-family: var(--font-en); font-weight: 300; letter-spacing: -0.05em; }

/* ---------- splash ---------- */
.splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--c-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.8s cubic-bezier(0.8, 0, 0.2, 1);
}

.splash.is-done { transform: translateY(-101%); }
.splash.is-removed { display: none; }

.splash-inner { position: relative; text-align: center; color: #fff; }

.splash-logo {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  clip-path: inset(0 100% 0 0);
  animation: wipe-in 1.4s cubic-bezier(0.8, 0, 0.2, 1) 0.4s forwards;
}

.splash-tagline {
  margin-top: 0.9em;
  font-family: var(--font-serif);
  font-size: clamp(13px, 2.4vw, 16px);
  letter-spacing: 0.3em;
  clip-path: inset(0 100% 0 0);
  animation: wipe-in 1s cubic-bezier(0.8, 0, 0.2, 1) 1.5s forwards;
}

.splash-bar {
  position: absolute;
  top: -20%;
  left: 0;
  width: 2px;
  height: 140%;
  background: #fff;
  animation: bar-sweep 1.8s cubic-bezier(0.8, 0, 0.2, 1) 0.4s forwards;
}

@keyframes wipe-in { to { clip-path: inset(0 0 0 0); } }
@keyframes bar-sweep { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ---------- floating header ---------- */
.site-logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  padding: 12px 10px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.site-logo img {
  width: 100px;
  height: auto;
  transition: filter 0.4s ease, width 0.3s ease;
}

.site-logo:hover { background: rgba(var(--c-green-rgb), 0.14); }

body.over-hero .site-logo img { filter: brightness(0) invert(1); }

.header-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  padding: 1vw;
}

.header-menu ul { display: flex; gap: 2px; align-items: flex-start; }

.header-menu li { position: relative; }

.header-menu a {
  display: block;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-shadow: 0.5px 0.1px 2px rgba(var(--c-ink-rgb), 0.12);
}

.header-menu a:hover { background: rgba(var(--c-green-rgb), 0.16); }

.header-menu li.current > a { background: rgba(var(--c-green-rgb), 0.08); }

.header-menu .nav-note {
  display: block;
  font-size: 11px;
  color: var(--c-red);
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
}

body.over-hero .header-menu a { color: #fff; text-shadow: 0 0 4px rgba(0, 0, 0, 0.45); }
body.over-hero .header-menu .nav-note { color: #fff; }

/* dropdown */
.header-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 15em;
  display: none;
  flex-direction: column;
  background: rgba(var(--c-ink-rgb), 0.06);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  overflow: hidden;
}

.header-menu li:hover .sub-menu { display: flex; }

.header-menu .sub-menu a {
  border-radius: 0;
  font-size: 14px;
  padding: 8px 14px;
  color: var(--c-ink);
  text-shadow: none;
}

.header-menu .sub-menu a:hover { background: rgba(var(--c-ink-rgb), 0.82); color: var(--c-bg); }

body.over-hero .header-menu .sub-menu { background: rgba(0, 0, 0, 0.45); }
body.over-hero .header-menu .sub-menu a { color: #fff; }

/* vertical side note */
.side-note {
  position: fixed;
  top: 9vw;
  right: 6px;
  z-index: 39;
  writing-mode: vertical-rl;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-grey);
}

body.over-hero .side-note { color: rgba(255, 255, 255, 0.85); }

/* hamburger */
.nav-toggle {
  position: fixed;
  top: 4px;
  right: 6px;
  z-index: 60;
  width: 50px;
  height: 50px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  display: none;
}

.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 25px;
  height: 1.5px;
  background: var(--c-ink);
  transition: all 0.3s ease-in-out;
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-toggle span:nth-child(3) { top: 32px; }

body.over-hero .nav-toggle span { background: #fff; }
body.menu-open .nav-toggle span { background: var(--c-ink); }

body.menu-open .nav-toggle span:nth-child(1) { top: 24px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

.nav-toggle:hover { background: rgba(var(--c-green-rgb), 0.14); }

/* mobile panel */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.menu-open .menu-overlay { opacity: 1; pointer-events: auto; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(420px, 86vw);
  height: 100dvh;
  background: var(--c-bg);
  transform: translate3d(111vw, 0, 0);
  transition: transform 0.6s var(--ease-expo);
  padding: 90px 2rem 2rem;
  overflow-y: auto;
}

body.menu-open .mobile-nav { transform: translate3d(0, 0, 0); }

.mobile-nav .mm-main a {
  display: block;
  padding: 0.55em 0.4em;
  font-size: clamp(18px, 3vw, 20px);
  font-weight: 300;
  letter-spacing: 0.02em;
  border-radius: 4px;
}

.mobile-nav .mm-main a:hover { background: rgba(var(--c-green-rgb), 0.12); }

.mobile-nav .mm-main .en-label {
  font-family: var(--font-en);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-green-deep);
  display: block;
  line-height: 1.2;
}

.mobile-nav .mm-sub { margin-top: 2rem; }

.mobile-nav .mm-sub a {
  display: block;
  padding: 0.35em 0.4em;
  font-size: 13px;
  color: var(--c-grey);
  border-radius: 4px;
}

.mobile-nav .mm-cta { margin-top: 2rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #333;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide.active img { animation: kenburns 20s ease-in-out infinite alternate; }

@keyframes kenburns { from { transform: scale(1.01); } to { transform: scale(1.15); } }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 100%);
  opacity: 0.41;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1rem;
}

.hero-copy .line {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(30px, 6.6vw, 56px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-shadow: rgba(0, 0, 0, 0.45) 0 1px 8px;
  word-break: keep-all;
}

.hero-copy .line i {
  font-style: normal;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
}

body.hero-play .hero-copy .line i,
body.hero-play .hero-copy .sub i { animation: wipe-in 0.7s ease-in-out forwards; }

body.hero-play .hero-copy .line:nth-child(1) i { animation-delay: 0.5s; }
body.hero-play .hero-copy .line:nth-child(2) i { animation-delay: 1.4s; }
body.hero-play .hero-copy .sub i { animation-delay: 2.3s; }

.hero-copy .sub {
  margin-top: 1.6em;
  font-size: clamp(11.5px, 2.2vw, 14.5px);
  letter-spacing: 0.32em;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.94);
}

.hero-copy .sub i { font-style: normal; display: inline-block; clip-path: inset(0 100% 0 0); }

/* ---------- section shell ---------- */
main section.block { margin: var(--sec-gap) auto 0; }

.max-div { max-width: var(--sec-max); margin: 0 auto; padding: 0 1.2rem; }

h2.category {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.8em;
  letter-spacing: -0.05em;
  text-align: center;
  line-height: 1.5;
  text-wrap: balance;
}

h2.category .subtitle {
  display: block;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-top: 0.3em;
}

h2.category .subsub {
  display: block;
  font-size: 12px;
  font-family: var(--font-jp);
  color: var(--c-grey);
  letter-spacing: 0.04em;
  margin-top: 0.2em;
}

h1.category {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 48px);
  letter-spacing: -0.05em;
  text-align: center;
  margin-top: 120px;
  line-height: 1.4;
}

h1.category .subtitle {
  display: block;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 300;
  margin-top: 0.2em;
  letter-spacing: 0.08em;
}

.lead {
  max-width: var(--p-max);
  margin: var(--block-gap) auto 0;
  padding: 0 1.2rem;
  text-align: center;
}

/* pill submenu */
.submenu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: calc(var(--p-max) * 1.4);
  margin: 1.2rem auto 0;
  padding: 0 1rem;
}

.submenu a {
  display: block;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 14px;
}

.submenu a:hover { background: rgba(var(--c-green-rgb), 0.16); }

/* ---------- buttons & chips ---------- */
.btn-pill {
  display: inline-block;
  padding: 1em 2em;
  border: 0.1em solid currentColor;
  border-radius: 2.9em;
  background: transparent;
  font-family: var(--font-en);
  font-size: clamp(13px, 3vw, 15px);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-pill:hover { background: var(--c-green-deep); border-color: var(--c-green-deep); color: #fff; }

.btn-pill--jp { font-family: var(--font-jp); text-transform: none; letter-spacing: 0.08em; }

.btn-center { text-align: center; margin-top: var(--block-gap); }

.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  background: #2e2e2e;
  color: #fff;
  font-family: var(--font-en);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.5s ease-in-out;
}

.chip--new { background: var(--c-red); }

.chip--green { background: var(--c-green-deep); }

/* ---------- card (post) ---------- */
.post { display: block; }

.post .thumb {
  display: block;
  overflow: hidden;
  background: rgba(var(--c-green-rgb), 0.18);
  aspect-ratio: 3 / 2;
  position: relative;
}

.post .thumb.rounded { border-radius: 20px; }

.post .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo), opacity 0.6s ease 0.1s;
}

.post .thumb .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.post .meta { padding: clamp(0.6em, 1.5vw, 0.9em) clamp(0.2em, 0.9vw, 0.6em); }

.post .meta .kick {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--c-light);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--c-light);
}

.post .meta .kick .cat { max-width: 66%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post .meta .kick .loc { max-width: 33%; text-align: right; white-space: nowrap; }

.post .meta .title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 769px) {
  .post:hover .thumb img { transform: scale(1.2); }
}

/* ---------- pickup strip ---------- */
.pickup-wrap {
  width: 100vw;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-top: var(--block-gap);
}

.pickup-wrap::-webkit-scrollbar { display: none; }

.pickup-list {
  display: flex;
  gap: var(--grid-gap);
  padding: 0 max(1.2rem, calc((100vw - var(--sec-max)) / 2));
  width: max-content;
}

.pickup-list .post {
  width: 27rem;
  max-width: 90vw;
  scroll-snap-align: center;
  flex-shrink: 0;
}

/* ---------- banner ---------- */
.banner-sec { text-align: center; }

.banner {
  position: relative;
  display: block;
  width: 360px;
  max-width: 69%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 3px rgba(var(--c-ink-rgb), 0.25);
}

.banner:hover { opacity: 0.5; }

.banner img { width: 100%; aspect-ratio: 360 / 140; object-fit: cover; }

.banner .banner-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  color: #fff;
}

.banner .banner-label strong {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.1em;
}

.banner .banner-label span { font-size: 11.5px; letter-spacing: 0.12em; }

/* ---------- division (services) ---------- */
.division { margin-top: var(--block-gap); }

.division-row { padding: 5rem 0; }

.division-row:nth-child(odd) { background: var(--c-band); }

.division-inner {
  display: flex;
  align-items: center;
  column-gap: 1.5rem;
  max-width: 100rem;
  margin: 0 auto;
}

.division-row .d-img { width: 50%; max-width: 50vw; flex-shrink: 0; }

.division-row .d-img .thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.division-row .d-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-expo);
}

.division-row .d-img a:hover img { transform: scale(1.08); }

.division-row:nth-child(odd) .d-img { order: 0; }
.division-row:nth-child(odd) .d-img .thumb { border-radius: 0 20px 20px 0; }
.division-row:nth-child(even) .d-img { order: 2; }
.division-row:nth-child(even) .d-img .thumb { border-radius: 20px 0 0 20px; }

@media (min-width: 74rem) {
  .division-row .d-img .thumb { border-radius: 20px; }
  .division-inner { padding: 0 2rem; }
}

.division-row .d-text { flex: 1; padding: 0 2rem 0 1rem; order: 1; }

.division-row .d-text .d-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(26px, 6vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.division-row .d-text .d-jp {
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 300;
  margin-top: 0.2em;
}

.division-row .d-text .d-tags { margin-top: 0.9em; display: flex; flex-wrap: wrap; gap: 6px; }

.division-row .d-text .d-desc {
  margin-top: 1em;
  font-size: 17px;
  font-weight: 300;
  max-width: 34em;
}

.d-list {
  margin-top: 1em;
  font-size: 15.5px;
  font-weight: 300;
  max-width: 34em;
}

.d-list li {
  position: relative;
  padding: 0.28em 0 0.28em 1.15em;
  line-height: 1.7;
}

.d-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.92em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--c-green);
}

.page-body .d-list { font-size: 15px; }

.lead-serif {
  font-family: var(--font-serif);
  font-size: clamp(19px, 3.6vw, 26px);
  letter-spacing: 0.1em;
  line-height: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 44%), 1fr));
  gap: var(--grid-gap);
  max-width: var(--sec-max);
  margin: 0 auto;
  padding: 0 1.2rem;
  text-align: center;
}

.stats-grid li { padding: 1.6em 0.6em; border-top: 1px solid rgba(var(--c-ink-rgb), 0.16); }

.stats-grid strong {
  display: block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(28px, 5vw, 42px);
  letter-spacing: -0.03em;
  color: var(--c-green-deep);
  line-height: 1.2;
}

.stats-grid span {
  display: block;
  margin-top: 0.5em;
  font-size: 13px;
  color: var(--c-grey);
  letter-spacing: 0.06em;
}

.division-row .d-text .d-price {
  margin-top: 0.9em;
  font-size: 14px;
  color: var(--c-grey);
}

.division-row .d-text .d-price strong { color: var(--c-ink); font-weight: 700; }

.division-row .d-text .d-more { margin-top: 1.6em; }

/* ---------- projects grid ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(349px, 90%), 1fr));
  gap: 0 var(--grid-gap);
  max-width: calc(var(--sec-max) * 1.2);
  margin: var(--block-gap) auto 0;
  padding: 0 1.2rem;
}

.projects-grid .post .thumb { border-radius: 0; }

/* ---------- news band ---------- */
.news-band {
  background: var(--c-band);
  padding: var(--sec-gap) 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(197px, 40%), 1fr));
  gap: var(--grid-gap);
  max-width: calc(var(--sec-max) * 1.2);
  margin: var(--block-gap) auto 0;
  padding: 0 1.2rem;
}

.news-grid .post .thumb { border-radius: 20px; aspect-ratio: 3 / 2; }

.news-grid .post .meta .title { font-size: 14.5px; -webkit-line-clamp: 2; }

.news-grid li.hide-more { display: none; }

.news-grid.expanded li.hide-more { display: block; }

.post .thumb.thumb--brand-g { background: linear-gradient(135deg, #5edb60, #2fa84f); }
.post .thumb.thumb--brand-r { background: linear-gradient(135deg, #ff6a6d, #e13a3e); }
.post .thumb.thumb--brand-k { background: linear-gradient(135deg, #454545, #2b2b2b); }

/* ---------- consult (recruit-style big card) ---------- */
.consult-card {
  max-width: calc(var(--p-max) * 1.45);
  margin: var(--block-gap) auto 0;
  padding: 0 1.2rem;
}

.consult-card .thumb {
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  position: relative;
}

.consult-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-expo); }

.consult-card a:hover .thumb img { transform: scale(1.08); }

.consult-card .thumb .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  text-align: center;
  padding: 0 1rem;
}

.consult-card .thumb .overlay strong { font-size: clamp(19px, 4vw, 26px); font-weight: 300; letter-spacing: 0.08em; }

.consult-card .thumb .overlay span { font-size: clamp(12px, 3vw, 14px); letter-spacing: 0.08em; }

/* ---------- footer ---------- */
footer {
  margin-top: var(--sec-gap);
  padding: 40px 0.9rem;
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

.footer-nav a { padding: 4px 9px; border-radius: 4px; font-size: 14px; }

.footer-nav a:hover { background: rgba(var(--c-green-rgb), 0.16); }

.footer-logo { display: inline-block; padding: 18px 12px; border-radius: 4px; margin-top: 1rem; }

.footer-logo:hover { background: rgba(var(--c-green-rgb), 0.1); }

.footer-logo img { width: 120px; }

.footer-consult { margin-top: 1.2rem; }

.footer-consult p { font-size: 13px; opacity: 0.6; margin-bottom: 0.8em; }

.footer-sns { margin-top: 1.6rem; display: flex; justify-content: center; gap: 4px; }

.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
}

.footer-sns a:hover { background: rgba(var(--c-green-rgb), 0.14); }

.footer-sns svg { width: 24px; height: 24px; fill: currentColor; }

.site-info { margin-top: 1.6rem; font-size: 12px; color: var(--c-grey); }

.site-info .legal-note { display: block; font-size: 11px; margin-top: 0.5em; }

/* ---------- subpage shell ---------- */
.page-body { max-width: var(--p-max); margin: var(--block-gap) auto 0; padding: 0 1.2rem; }

.page-body h2 {
  font-family: var(--font-serif);
  font-size: clamp(19px, 4vw, 27px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 2.2em 0 0.8em;
  text-wrap: balance;
}

.page-body p + p { margin-top: 1.2em; }

/* company table */
.company-table { margin-top: 1em; border-top: 1px solid rgba(var(--c-ink-rgb), 0.15); }

.company-table > div {
  display: flex;
  gap: 1rem;
  padding: 1em 0.2em;
  border-bottom: 1px solid rgba(var(--c-ink-rgb), 0.15);
}

.company-table dt { width: 8em; flex-shrink: 0; font-weight: 700; font-size: 14.5px; }
.company-table dd { flex: 1; font-size: 14.5px; }

/* history */
.history { margin-top: 1em; }

.history li { display: flex; gap: 1.2rem; padding: 0.7em 0.2em; border-bottom: 1px dashed rgba(var(--c-ink-rgb), 0.2); }

.history .y { font-family: var(--font-en); font-weight: 500; font-size: 13px; width: 6em; flex-shrink: 0; color: var(--c-green-deep); }

.history .t { font-size: 14.5px; }

/* message */
.message-photo { width: min(280px, 60%); margin: var(--block-gap) auto 0; }

.message-photo img { border-radius: 20px; }

.message-sign { text-align: right; margin-top: 1.6em; font-size: 14.5px; }

.message-sign strong { font-size: 17px; }

/* contact routes */
.contact-routes { margin-top: var(--block-gap); }

.contact-routes li { margin-bottom: var(--grid-gap); }

.contact-routes .route {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4em 1.6em;
  border: 1px solid rgba(var(--c-ink-rgb), 0.18);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.contact-routes .route:hover { border-color: var(--c-green-deep); background: rgba(var(--c-green-rgb), 0.06); }

.contact-routes .r-text { flex: 1; }

.contact-routes .r-title { font-weight: 700; font-size: 16.5px; }

.contact-routes .r-desc { font-size: 13.5px; color: var(--c-grey); margin-top: 0.2em; }

.contact-routes .r-price { font-family: var(--font-en); font-weight: 500; font-size: 13px; color: var(--c-green-deep); white-space: nowrap; }

.contact-direct { margin-top: var(--block-gap); text-align: center; font-size: 14.5px; }

.contact-direct a { color: var(--c-green-deep); font-weight: 700; }

.contact-note { margin-top: 1.6em; font-size: 12px; color: var(--c-grey); text-align: center; }

/* ---------- contact form ---------- */
.form-block { margin-top: var(--sec-gap); }

.form-intro { text-align: center; font-size: 14px; color: var(--c-grey); margin: 0.4em 0 var(--block-gap); }

.req-note { display: inline-block; margin-left: 0.4em; font-size: 12px; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.field { display: flex; flex-direction: column; gap: 0.4em; }

.field-label { font-size: 13.5px; font-weight: 700; letter-spacing: 0.02em; }

.field-label em { color: var(--c-red); font-style: normal; margin-left: 0.1em; }

.contact-form input,
.contact-form textarea {
  font-family: var(--font-jp);
  font-size: 15px;
  color: var(--c-ink);
  width: 100%;
  padding: 0.75em 0.9em;
  border: 1px solid rgba(var(--c-ink-rgb), 0.22);
  border-radius: 10px;
  background: var(--c-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--c-green-deep);
  box-shadow: 0 0 0 3px rgba(var(--c-green-rgb), 0.15);
}

.contact-form textarea { resize: vertical; min-height: 8em; }

.hp-field { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }

.form-consent { font-size: 12px; color: var(--c-grey); line-height: 1.7; }

.form-consent a { color: var(--c-green-deep); text-decoration: underline; }

button.btn-pill { font-family: var(--font-en); }

button.btn-pill:disabled { opacity: 0.5; cursor: default; }

.form-status { text-align: center; font-size: 14px; min-height: 1.4em; margin-top: 0.4em; }

.form-status.is-sending { color: var(--c-grey); }

.form-status.is-ok { color: var(--c-green-deep); font-weight: 700; }

.form-status.is-err { color: var(--c-red); }

.form-status a { color: inherit; text-decoration: underline; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- scroll fade ---------- */
.sf { opacity: 0; transform: translateY(50px); transition: all 0.6s ease; }

.sf.is-visible { opacity: 1; transform: translateY(0); }

.sf-img { opacity: 0; transition: opacity 0.6s ease 0.3s; }

.sf-img.is-visible { opacity: 1; }

@media (max-width: 812px) {
  .sf, .sf-img { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 812px) {
  .header-menu, .side-note { display: none; }

  .nav-toggle { display: block; }

  .site-logo img { width: 80px; }

  .division-inner { flex-direction: column; row-gap: 1.2rem; }

  .division-row { padding: 3rem 0; }

  .division-row .d-img { width: 92%; max-width: 92vw; }

  .division-row:nth-child(odd) .d-img .thumb,
  .division-row:nth-child(even) .d-img .thumb { border-radius: 20px; }

  .division-row .d-text { padding: 0 1.4rem; width: 100%; }

  .division-row:nth-child(even) .d-img { order: 0; }

  .company-table > div { flex-direction: column; gap: 0.1rem; }

  .company-table dt { width: auto; }

  .contact-routes .route { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

@media (min-width: 813px) {
  .nav-toggle { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
  body.is-loading { overflow: auto; }
  .hero-slide.active img { animation: none; }
  .hero-copy .line i, .hero-copy .sub i { clip-path: none !important; animation: none !important; }
  .sf, .sf-img { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
