/* ============================================================
   まちのAI相談室 LP v3 — Inspired by swift-design.jp
   ============================================================ */
:root {
  --black:      #0C0C0C;
  --white:      #FAFAF8;
  --gray-lt:    #F3F0EB;
  --gray-md:    #E4E0D8;
  --text:       #1A1916;
  --sub:        #57534D;
  --muted:      #857F76;
  --accent:     #2B5E45;
  --accent-lt:  #EAF2ED;
  --line-c:     #06C755;
  --border:     #E0DCD4;
  --serif:      'Noto Serif JP', Georgia, serif;
  --sans:       'Noto Sans JP', sans-serif;
  --svc-ai: #6E8171; --svc-map: #B8734F; --svc-sns: #6E88A6;
  --svc-promo: #B99A4A; --svc-web: #7C8AA0; --svc-office: #708A78;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--text);
  line-height: 1.8;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font-family: var(--sans); cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

/* ---- TICKER ---- */
.ticker {
  background: var(--black);
  color: rgba(255,255,255,.65);
  font-size: 11.5px;
  letter-spacing: .06em;
  height: 36px;
  overflow: hidden;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  animation: ticker 32s linear infinite;
  height: 100%;
  align-items: center;
}
.ticker { font-size: 12.5px; }
.ticker-track span { padding: 0 60px; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 300;
  background: rgba(250,250,248,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 72px;
  padding: 0 40px;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--text);
}
.brand-textmark { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-logo {
  height: 36px; width: auto;
  display: block;
}
.brand-mark {
  width: 38px; height: 38px; border-radius: 6px;
  background: var(--accent); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600; line-height: 1.2;
}
.brand-sub { font-size: 11px; opacity: .6; display: block; }

.header-nav {
  display: flex; justify-content: center; gap: 28px;
}
.header-nav a {
  color: var(--sub);
  font-size: 11px; letter-spacing: .04em;
  text-align: center; line-height: 1.25;
  transition: color .2s;
}
.header-nav a:hover { color: var(--accent); }
.nav-en { display: block; font-size: 15px; font-weight: 500; letter-spacing: .04em; }
.nav-ja { display: block; font-size: 12.5px; opacity: .75; margin-top: 1px; }

.header-social {
  display: flex; justify-content: flex-end; align-items: center; gap: 18px;
}
.header-social a {
  color: var(--sub);
  font-size: 11px; letter-spacing: .06em;
  transition: color .2s;
}
.header-social a:hover { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text); padding: 8px; margin-left: auto;
}
.mobile-drawer {
  display: none; flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 14px 24px; font-size: 15px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 50svh; min-height: 320px;
  display: flex; align-items: center; justify-content: flex-start;
  text-align: left;
  overflow: hidden;
  padding-top: 108px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--gray-lt);
}
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(250,250,248,.94) 0%, rgba(250,250,248,.72) 30%, rgba(250,250,248,.15) 58%, rgba(250,250,248,0) 72%);
}
.hero-content {
  position: relative; z-index: 1;
  color: var(--text);
  max-width: 620px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-lt); color: var(--accent);
  border-radius: 100px; padding: 7px 16px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700; line-height: 1.45;
  letter-spacing: .03em;
}
.hero-em { color: var(--accent); }
.hero-cta-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.btn-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; letter-spacing: .1em;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,.35);
  padding-bottom: 5px;
  transition: border-color .2s, gap .2s;
}
.btn-arrow:hover { border-color: white; gap: 18px; }
.arrow-svg {
  width: 32px; height: 10px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  flex-shrink: 0;
}
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(43,94,69,.5));
  animation: scbar 1.6s ease-in-out infinite;
}
@keyframes scbar { 0%,100%{opacity:.3} 50%{opacity:1} }

/* ---- SECTION SHARED ---- */
.sec       { padding: 60px 0; background: var(--white); border-top: 1px solid rgba(0,0,0,.05); }
.sec-warm  { padding: 60px 0; background: var(--gray-lt); border-top: 1px solid rgba(0,0,0,.05); }
.sec-dark  { padding: 60px 0; background: var(--black); color: white; border-top: 1px solid rgba(255,255,255,.08); }

.sec-title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 64px; flex-wrap: wrap;
}
.sec-h {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600; line-height: 1;
  letter-spacing: .04em;
  position: relative; z-index: 1;
}
.sec-idx {
  display: block;
  font-family: var(--serif);
  font-size: 168px; font-weight: 700; line-height: 1;
  font-style: italic;
  color: var(--accent);
  opacity: .16;
  letter-spacing: 0;
  margin-bottom: -68px; margin-left: -6px;
  position: relative; z-index: 0;
  user-select: none;
}
.sec-dark .sec-idx { color: #80C8A0; opacity: .24; }
.sec-dark .sec-h { color: white; }
.sec-desc {
  font-size: 18px; color: var(--sub);
  line-height: 1.9; max-width: 480px;
}
.sec-dark .sec-desc { color: rgba(255,255,255,.6); }
.link-readmore {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .1em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: color .2s, border-color .2s, gap .2s;
  white-space: nowrap;
}
.link-readmore:hover { color: var(--accent); border-color: var(--accent); gap: 18px; }

/* ---- WORRIES ---- */
.worry-section {
  background: radial-gradient(130% 160% at 15% 0%, #1B2E23 0%, #0F1B14 55%, #0A130D 100%);
}
.worry-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #8FCBA8; letter-spacing: .1em; margin-bottom: 22px;
}
.worry-eyebrow::before { content: ''; width: 26px; height: 1px; background: #8FCBA8; }
.worry-h {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 700; line-height: 1.55;
  margin-bottom: 48px; max-width: 720px;
}
.worry-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.worry-item {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
  font-size: 14.5px; color: rgba(255,255,255,.88);
  transition: background .25s, transform .25s, border-color .25s;
}
.worry-item:hover { background: rgba(255,255,255,.07); border-color: rgba(143,203,168,.35); transform: translateY(-2px); }
.worry-check {
  width: 30px; height: 30px; flex-shrink: 0;
  background: rgba(143,203,168,.14); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.worry-check svg { width: 13px; height: 13px; }

/* ---- ABOUT ---- */
.about-grid { display: grid; grid-template-columns: 252px 1fr; gap: 64px; align-items: start; }
.about-photo-col { position: relative; }
.about-photo { position: relative; aspect-ratio: 4/5; border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(12,12,12,.16); z-index: 1; }
.about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.about-photo-col::before {
  content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
  border: 1.5px solid var(--accent); border-radius: 10px; z-index: 0;
}
.about-photo-caption { margin-top: 24px; padding-left: 22px; }
.about-photo-name { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--text); }
.about-photo-role { display: block; font-size: 12.5px; color: var(--sub); letter-spacing: .06em; margin-top: 4px; }
.about-content { padding-top: 4px; }
.about-lead-quote {
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700;
  color: var(--accent); line-height: 1.55; margin: 24px 0 32px; position: relative; padding-left: 34px;
}
.about-lead-quote::before {
  content: '“'; position: absolute; left: -6px; top: -20px;
  font-size: 72px; color: var(--accent); opacity: .28; font-family: var(--serif); line-height: 1;
}
.about-story {
  font-size: 17.5px; color: var(--sub);
  line-height: 1.95; margin-top: 0;
}
.about-story p + p { margin-top: 18px; }
.about-divider { height: 1px; background: var(--border); margin: 36px 0 30px; }
.about-content h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--text); margin: 0 0 14px; }
.about-content h4 + p { font-size: 15.5px; color: var(--sub); line-height: 1.85; margin-bottom: 30px; }
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; }
.about-skill-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 18px; font-size: 14px; color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.about-skill-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ---- SERVICE (accordion story) ---- */
.service-intro-row { margin-bottom: 44px; }
.service-lead {
  font-size: 18px; color: var(--sub); line-height: 1.9;
  max-width: 640px; margin-top: 18px;
  padding-left: 20px; border-left: 3px solid var(--accent);
}
.svc3-filter-wrap { margin-bottom: 44px; }
.svc3-filter-head { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.svc3-filter-sub { font-size: 13px; color: var(--sub); margin-bottom: 16px; }
.svc3-filter-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.svc3-fbtn {
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--white);
  font-size: 13px; color: var(--sub);
  transition: background .2s, color .2s, border-color .2s;
}
.svc3-fbtn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.svc3-fbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.svc3-fbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.svc3-list { border-top: 1px solid var(--border); }
.svc3-item {
  border-bottom: 1px solid var(--border);
  transition: opacity .3s ease, order .3s ease, background .3s ease;
}
.svc3-item.is-match { background: var(--accent-lt); }
.svc3-item.is-dim { opacity: .4; }
.svc3-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 24px;
  padding: 26px 4px;
}
.svc3-item summary::-webkit-details-marker { display: none; }
.svc3-item summary::marker { content: ''; }
.svc3-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--svc-c, var(--accent)); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 14px; font-weight: 700;
}
.svc3-summary-text { display: flex; flex-direction: column; gap: 3px; min-width: 260px; flex-shrink: 0; }
.svc3-en { font-size: 10px; letter-spacing: .14em; color: var(--svc-c, var(--accent)); text-transform: uppercase; }
.svc3-name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.svc3-summary-desc { flex: 1; font-size: 14.5px; color: var(--sub); line-height: 1.6; }
.svc3-chevron {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s cubic-bezier(.22,.68,0,1), background .2s, border-color .2s;
}
.svc3-chevron svg { width: 11px; height: 11px; stroke: var(--sub); }
.svc3-item[open] .svc3-chevron { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); }
.svc3-item[open] .svc3-chevron svg { stroke: white; }

.svc3-panel { display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .55s cubic-bezier(.4,0,.2,1); }
.svc3-item[open] .svc3-panel { grid-template-rows: 1fr; }
.svc3-panel-inner { overflow: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .4s ease; }
.svc3-item[open] .svc3-panel-inner { opacity: 1; transform: translateY(0); transition-delay: .15s; }
.svc3-panel-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 40px;
  padding: 6px 4px 40px;
}
.svc3-panel-media { border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.svc3-panel-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.svc3-panel-body h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--svc-c, var(--accent)); margin: 18px 0 10px; }
.svc3-panel-body h4:first-child { margin-top: 0; }
.svc3-panel-body ul { padding-left: 20px; }
.svc3-panel-body li { font-size: 15.5px; color: var(--sub); line-height: 1.8; margin-bottom: 6px; }
.svc3-support { font-size: 15px; color: var(--sub); line-height: 1.9; background: var(--gray-lt); border-radius: 10px; padding: 18px 20px; margin-top: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.svc3-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: white; border: none; cursor: pointer;
  padding: 13px 26px; border-radius: 4px;
  font-size: 14px; font-weight: 500; margin-top: 20px;
  transition: opacity .2s;
}
.svc3-cta:hover { opacity: .88; }

.svc3-cta-block {
  margin-top: 56px; text-align: center;
  padding: 44px 32px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--border);
}
.svc3-cta-block h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.svc3-cta-block p { font-size: 14.5px; color: var(--sub); line-height: 1.8; max-width: 480px; margin: 0 auto; }
.svc3-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: white;
  padding: 14px 30px; border-radius: 4px;
  font-size: 14.5px; font-weight: 500; margin-top: 26px;
  transition: opacity .2s, transform .2s;
}
.svc3-cta-btn:hover { opacity: .88; transform: translateY(-2px); }
.svc3-cta-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.svc3-doc-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 13.5px; color: var(--sub); border-bottom: 1px solid var(--border); padding-bottom: 3px; transition: color .2s, border-color .2s; }
.svc3-doc-link svg { width: 15px; height: 15px; flex-shrink: 0; }
.svc3-doc-link:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .svc3-panel, .svc3-panel-inner, .svc3-chevron { transition: none !important; }
}

/* ---- WORKS (carousel) ---- */
.works-carousel { display: flex; align-items: center; gap: 16px; }
.works-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.works-grid::-webkit-scrollbar { display: none; }
.work-card { position: relative; overflow: hidden; background: var(--gray-md); display: block; flex: 0 0 320px; scroll-snap-align: start; border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.08); transition: transform .3s ease, box-shadow .3s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.work-card img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: contain; background: #fff; }
.wcar-nav {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: background .2s, border-color .2s, transform .2s;
}
.wcar-nav:active { transform: scale(.92); }
.wcar-nav svg { width: 11px; height: 20px; }
.wcar-nav:hover { background: var(--accent-lt); border-color: var(--accent); }
.work-card::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(12,12,12,0); transition: background .25s; pointer-events: none;
}
.work-card:hover::after { background: rgba(12,12,12,.35); }
.work-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  color: white; z-index: 1;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.work-card:hover .work-info { opacity: 1; transform: none; }
.work-cat { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 4px; }
.work-ttl { font-size: 16px; font-weight: 500; line-height: 1.4; }

/* ---- FLOW + FAQ ---- */
.flow-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.flow-list { display: flex; flex-direction: column; margin-top: 4px; }
.flow-row { display: flex; gap: 22px; padding-bottom: 34px; position: relative; }
.flow-row:last-child { padding-bottom: 0; }
.flow-num-wrap { position: relative; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.flow-num {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 17px; font-weight: 600;
  z-index: 1;
}
.flow-num-wrap::after {
  content: ''; position: absolute; top: 46px; bottom: -34px;
  width: 2px; background: var(--border); left: 50%; transform: translateX(-50%);
}
.flow-row:last-child .flow-num-wrap::after { display: none; }
.flow-row h4 { font-size: 17px; font-weight: 500; margin-bottom: 4px; padding-top: 8px; }
.flow-row p { font-size: 15.5px; color: var(--sub); line-height: 1.65; }

.faq-list { margin-top: 4px; }
.faq-row { border-bottom: 1px solid var(--border); }
.faq-row:first-child { border-top: 1px solid var(--border); }
.faq-q-btn { width: 100%; display: flex; align-items: flex-start; gap: 14px; padding: 20px 0; background: none; border: none; text-align: left; font-family: var(--sans); }
.fq-q { font-size: 10.5px; font-weight: 500; color: var(--accent); letter-spacing: .1em; margin-top: 3px; flex-shrink: 0; }
.fq-t { font-size: 16.5px; font-weight: 500; flex: 1; line-height: 1.5; }
.fq-ic { width: 28px; height: 28px; flex-shrink: 0; border: 1.5px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; margin-top: 1px; }
.fq-ic svg { width: 12px; height: 12px; stroke: var(--sub); transition: stroke .2s; }
.faq-row.open .fq-ic { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.faq-row.open .fq-ic svg { stroke: white; }
.fq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-row.open .fq-a { max-height: 160px; }
.fq-a-in { padding: 0 0 18px 28px; font-size: 15.5px; color: var(--sub); line-height: 1.8; }

/* ---- CONTACT ---- */
.contact-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.contact-inner .sec-h { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.contact-desc { font-size: 18px; color: rgba(255,255,255,.72); line-height: 1.9; margin: 20px 0 32px; }
.contact-btns { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.c-btn-line {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--line-c); color: white;
  padding: 15px 30px; border-radius: 3px;
  font-size: 15px; font-weight: 500;
  transition: opacity .2s, transform .2s;
}
.c-btn-line:hover { opacity: .86; transform: translateY(-2px); }
.c-line-qr {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: white; border-radius: 8px;
  padding: 18px 24px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.c-line-qr img { width: 120px; height: 120px; display: block; border-radius: 4px; }
.c-line-qr-label {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--line-c); font-size: 14.5px; font-weight: 600;
}
.c-line-qr-label .ico-line { fill: var(--line-c); }
.c-line-qr-sub { font-size: 11.5px; color: var(--sub); }
.c-btn-form {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1.5px solid rgba(255,255,255,.28); color: white;
  padding: 15px 28px; border-radius: 3px;
  font-size: 15px;
  transition: border-color .2s, transform .2s;
}
.c-btn-form:hover { border-color: rgba(255,255,255,.8); transform: translateY(-2px); }

/* ---- FOOTER ---- */
.site-footer { background: var(--black); color: white; padding: 72px 0 40px; }
.foot-top { display: grid; grid-template-columns: 200px 1fr; gap: 80px; margin-bottom: 56px; }
.foot-brand .brand { color: white; }
.foot-tagline { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 14px; letter-spacing: .1em; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; padding-top: 4px; align-items: flex-start; }
.foot-links a { font-size: 12.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; transition: color .2s; }
.foot-links a::before { content: '_ '; color: rgba(255,255,255,.25); }
.foot-links a:hover { color: white; }
.foot-social { display: flex; gap: 18px; margin-top: 28px; }
.foot-social a { font-size: 11.5px; color: rgba(255,255,255,.4); letter-spacing: .06em; transition: color .2s; }
.foot-social a:hover { color: rgba(255,255,255,.8); }
.foot-blog-banner { width: 100%; max-width: 360px; background: #1A2420; border-radius: 4px; overflow: hidden; display: block; margin-top: 32px; }
.foot-copy { font-size: 11px; color: rgba(255,255,255,.25); border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; letter-spacing: .06em; }

.ico-line { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.mob-sticky {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 400;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px; gap: 10px;
}
.mob-sticky a { flex: 1; text-align: center; justify-content: center; padding: 12px 16px; font-size: 14px; }

/* ---- REVEAL ---- */
@media (prefers-reduced-motion: no-preference) {
  [data-r] { opacity: 0; transform: translateY(32px); transition: opacity .9s cubic-bezier(.22,.68,0,1), transform .9s cubic-bezier(.22,.68,0,1); }
  [data-r].in { opacity: 1; transform: none; }
  [data-r="left"] { transform: translateX(-36px); }
  [data-r="left"].in { transform: none; }
  [data-r="right"] { transform: translateX(36px); }
  [data-r="right"].in { transform: none; }
  [data-r="scale"] { transform: scale(.96) translateY(16px); }
  [data-r="scale"].in { transform: none; }
  [data-d="1"] { transition-delay: .10s; }
  [data-d="2"] { transition-delay: .20s; }
  [data-d="3"] { transition-delay: .32s; }
  [data-d="4"] { transition-delay: .44s; }
  [data-d="5"] { transition-delay: .56s; }
  [data-stagger] > * { opacity: 0; transform: translateY(28px); transition: opacity .85s cubic-bezier(.22,.68,0,1), transform .85s cubic-bezier(.22,.68,0,1); }
  [data-stagger].in > *:nth-child(1) { opacity:1; transform:none; transition-delay:.05s; }
  [data-stagger].in > *:nth-child(2) { opacity:1; transform:none; transition-delay:.17s; }
  [data-stagger].in > *:nth-child(3) { opacity:1; transform:none; transition-delay:.29s; }
  [data-stagger].in > *:nth-child(4) { opacity:1; transform:none; transition-delay:.41s; }
  [data-stagger].in > *:nth-child(5) { opacity:1; transform:none; transition-delay:.53s; }
  [data-stagger].in > *:nth-child(6) { opacity:1; transform:none; transition-delay:.65s; }
  [data-stagger].in > *:nth-child(7) { opacity:1; transform:none; transition-delay:.77s; }
  [data-stagger].in > *:nth-child(8) { opacity:1; transform:none; transition-delay:.89s; }
  [data-stagger].in > *:nth-child(9) { opacity:1; transform:none; transition-delay:1.01s; }
  .hero-label { opacity:0; transform:translateY(16px); transition: opacity .8s cubic-bezier(.22,.68,0,1), transform .8s cubic-bezier(.22,.68,0,1); transition-delay:.3s; }
  .hero h1    { opacity:0; transform:translateY(24px); transition: opacity .9s cubic-bezier(.22,.68,0,1), transform .9s cubic-bezier(.22,.68,0,1); transition-delay:.5s; }
  .hero-cta-row { opacity:0; transform:translateY(14px); transition: opacity .8s cubic-bezier(.22,.68,0,1), transform .8s cubic-bezier(.22,.68,0,1); transition-delay:.6s; }
  .hero-scroll  { opacity:0; transition: opacity 1s ease; transition-delay:1.3s; }
  body.hero-loaded .hero-label,
  body.hero-loaded .hero h1,
  body.hero-loaded .hero-cta-row,
  body.hero-loaded .hero-scroll { opacity:1; transform:none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 980px) {
  .wrap { padding: 0 24px; }
  .header-inner { grid-template-columns: 1fr auto; padding: 0 24px; }
  .header-nav, .header-social { display: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 196px; margin: 0 auto; }
  .about-photo-col::before { display: none; }
  .about-photo-caption { text-align: center; padding-left: 0; }
  .service-intro-row { margin-bottom: 32px; }
  .service-lead { font-size: 16.5px; }
  .svc3-item summary { flex-wrap: wrap; gap: 10px 20px; }
  .svc3-summary-desc { display: none; }
  .svc3-panel-grid { grid-template-columns: 1fr; }
  .works-grid { gap: 12px; }
  .work-card { flex-basis: 240px; }
  .wcar-nav { width: 44px; height: 44px; }
  .flow-faq { grid-template-columns: 1fr; gap: 56px; }
  .worry-grid { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 36px; }
  .mob-sticky { display: flex; }
  body { padding-bottom: 72px; }
  .sec, .sec-warm, .sec-dark { padding: 40px 0; }
}
@media (max-width: 580px) {
  .svc3-filter-btns { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .svc3-num, .svc3-en { display: none; }
  .hero h1 { font-size: 2rem; }
  .works-grid { gap: 10px; }
  .work-card { flex-basis: 200px; }
  .worry-grid { grid-template-columns: 1fr; }
  .contact-btns { flex-direction: column; align-items: center; }
  .ticker { display: none; }
  .site-header { top: 0; }
}

/* ---- GALLERY MODAL ---- */
.gmodal { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.gmodal.open { display: flex; }
.gmodal-overlay { position: absolute; inset: 0; background: rgba(12,12,12,.88); cursor: pointer; }
.gmodal-win {
  position: relative; z-index: 1; background: var(--white);
  width: min(960px, 100%); max-height: 90vh; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: gmodal-in .28s cubic-bezier(.22,.68,0,1.2);
}
@keyframes gmodal-in { from { opacity:0; transform: scale(.95) translateY(16px); } to { opacity:1; transform: none; } }
.gmodal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.gmodal-cat { font-size: 10.5px; font-weight: 500; color: var(--accent); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 5px; }
.gmodal-title { font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.3; }
.gmodal-close {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: none; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--sub); margin-top: 2px;
  transition: background .18s, color .18s, border-color .18s; line-height: 1;
}
.gmodal-close:hover { background: var(--black); color: white; border-color: var(--black); }
.gmodal-stage { flex: 1; position: relative; overflow: hidden; background: var(--black); min-height: 240px; display: flex; align-items: center; justify-content: center; }
.gmodal-img { max-width: 100%; max-height: 52vh; object-fit: contain; display: block; transition: opacity .22s ease; }
.gmodal-img.fade { opacity: 0; }
.gnav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--black); transition: background .18s; z-index: 2;
}
.gnav:hover { background: white; }
.gnav.prev { left: 14px; }
.gnav.next { right: 14px; }
.gmodal-desc { padding: 12px 24px 14px; font-size: 13px; color: var(--sub); line-height: 1.7; border-top: 1px solid var(--border); flex-shrink: 0; }
.gmodal-thumbs {
  display: flex; gap: 8px; align-items: center; padding: 12px 20px;
  overflow-x: auto; flex-shrink: 0; border-top: 1px solid var(--border);
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.gthumb { width: 80px; height: 56px; flex-shrink: 0; border-radius: 3px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: .55; transition: opacity .18s, border-color .18s; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb:hover { opacity: .85; }
.gthumb.active { opacity: 1; border-color: var(--accent); }
