/* ─── RESET ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }

/* ─── VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --navy:     #1B3A5C;
  --navy2:    #2D5F8A;
  --gold:     #A87C3E;
  --gold2:    #C49A5A;
  --bg:       #F4F1EB;
  --bg2:      #FEFDFB;
  --txt:      #2A2A2A;
  --txt2:     #5A5A5A;
  --txt3:     #9A9A9A;
  --border:   #DED9CF;
  --r:        8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--txt);
  line-height: 1.9;
  overflow-x: hidden;
}

/* ─── HEADER ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(244, 241, 235, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 2px 24px rgba(27,58,92,.09); }

.h-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  letter-spacing: .14em;
}

.site-nav ul { display: flex; gap: 36px; list-style: none; }
.site-nav a {
  font-size: 13px; font-weight: 400;
  color: var(--txt2);
  text-decoration: none;
  letter-spacing: .06em;
  position: relative;
  transition: color .2s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1.5px;
  background: var(--gold);
  transition: right .3s;
}
.site-nav a:hover { color: var(--navy); }
.site-nav a:hover::after { right: 0; }

/* hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy);
  transition: .3s;
}

/* ─── HERO ──────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 680px; height: 680px;
  top: -160px; left: -240px;
  background: radial-gradient(circle, rgba(168,124,62,.065) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  bottom: -180px; right: -120px;
  background: radial-gradient(circle, rgba(27,58,92,.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-stage {
  position: relative;
  width: min(84.6vw, 864px);
  aspect-ratio: 2023 / 1054;
  z-index: 1;
  background: var(--bg);
  overflow: hidden;
  transform: translateX(calc(min(84.6vw, 864px) * 0.12));
}

.lp {
  position: absolute;
  mix-blend-mode: multiply;
  opacity: 0;
}

.lp-bun {
  width: 22%;  left:  0%;  top:  5%;
  transform: translateX(-120%);
  animation: fromLeft 1.4s cubic-bezier(.25,.46,.45,.94) .6s both;
}
.lp-mei {
  width: 13%;  left: 17%;  top: 35%;
  transform: translateY(120%);
  animation: fromBottom 1.4s cubic-bezier(.25,.46,.45,.94) 1.5s both;
}
.lp-kichi {
  width: 14%;  left: 33%;  top: 17%;
  transform: translateX(300%);
  animation: fromRight 1.4s cubic-bezier(.25,.46,.45,.94) 2.4s both;
}
.lp-yane {
  width: 60%;  left: 16%;  top:  4%;
  transform: translateY(-200%);
  animation: fromTop 1.4s cubic-bezier(.17,.67,.35,1.35) 3.3s both;
}

@keyframes fromLeft   { to { opacity: 1; transform: translateX(0); } }
@keyframes fromBottom { to { opacity: 1; transform: translateY(0); } }
@keyframes fromRight  { to { opacity: 1; transform: translateX(0); } }
@keyframes fromTop    { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .lp { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-tagline, .hero-sub, .hero-scroll { opacity: 1 !important; animation: none !important; }
}

.hero-tagline {
  margin-top: clamp(-60px, -15vw, -133px);
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(18px, 3.1vw, 26px);
  color: var(--txt2);
  letter-spacing: .22em;
  opacity: 0;
  animation: fadeUp 1.2s ease 4.9s both;
  position: relative; z-index: 1;
}
.hero-sub {
  margin-top: 10px;
  font-size: clamp(13px, 1.9vw, 16px);
  color: var(--txt3);
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 1.2s ease 6.2s both;
  position: relative; z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 1.2s ease 7.5s both;
}
.hero-scroll-label {
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--txt3);
  text-transform: uppercase;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  transform-origin: top;
  animation: scrollPulse 1.8s ease-in-out 3.6s infinite;
}
@keyframes scrollPulse {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── SECTION COMMONS ───────────────────────────────────────────────────── */
.wrap   { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.section{ padding: 104px 0; }

.s-label {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.s-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.8vw, 34px);
  color: var(--navy);
  line-height: 1.45;
  margin-bottom: 6px;
}
.s-title small {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: .48em;
  font-weight: 300;
  color: var(--txt3);
  letter-spacing: .16em;
  margin-top: 6px;
}
.s-rule {
  width: 36px; height: 2px;
  background: var(--gold);
  margin: 28px 0 40px;
}

/* ─── ABOUT ─────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-body p {
  color: var(--txt2);
  margin-bottom: 1.1em;
}
.about-body p:last-child { margin-bottom: 0; }

.about-info { margin-top: 36px; }
.about-info-label {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.about-info dl {
  display: grid;
  grid-template-columns: 5em 1fr;
  row-gap: 0;
}
.about-info dt,
.about-info dd {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.about-info dt { color: var(--txt3); letter-spacing: .08em; }
.about-info dd { color: var(--txt); }

.about-photo { position: relative; }
.about-photo-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--txt3);
  font-size: 13px;
  letter-spacing: .1em;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--gold);
  border-radius: var(--r);
  opacity: .25;
  z-index: -1;
}

/* ─── SERVICES ──────────────────────────────────────────────────────────── */
.services-bg { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.s-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: default;
}
.s-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s;
}
.s-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(27,58,92,.1);
  border-color: transparent;
}
.s-card:hover::after { transform: scaleX(1); }

.s-card-icon { margin-bottom: 16px; line-height: 1; }
.s-card-icon svg {
  width: 32px; height: 32px;
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
}
.s-card-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: .04em;
}
.s-card-desc {
  font-size: 13px;
  color: var(--txt2);
  line-height: 1.75;
}

/* ─── WORKFLOW ──────────────────────────────────────────────────────────── */
.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
}
.wf-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}
.wf-num {
  font-family: 'Noto Serif JP', serif;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 12px;
}
.wf-icon { margin-bottom: 12px; }
.wf-icon svg {
  width: 28px; height: 28px;
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
}
.wf-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: .04em;
}
.wf-desc {
  font-size: 12px;
  color: var(--txt2);
  line-height: 1.7;
  max-width: 13em;
  margin-left: auto;
  margin-right: auto;
}
.wf-desc.is-narrow { max-width: 12em; }
.wf-arrow {
  padding-top: 36px;
  color: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}
.wf-arrow svg {
  width: 20px; height: 20px;
  stroke: var(--gold);
  stroke-width: 1.5;
  fill: none;
}
@media (max-width: 680px) {
  .workflow-steps { flex-direction: column; align-items: center; gap: 8px; }
  .wf-arrow { padding-top: 0; transform: rotate(90deg); }
  .wf-step { width: 100%; max-width: 280px; }
}

/* ─── WORKS ─────────────────────────────────────────────────────────────── */
.works-bg { background: var(--bg2); }

.works-lead {
  font-size: 15px;
  color: var(--txt2);
  line-height: 2;
  margin-top: 36px;
  margin-bottom: 48px;
}
.works-types {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 52px;
}
.wt-group {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.wt-category {
  font-family: 'Noto Serif JP', serif;
  font-size: 12px;
  color: var(--navy);
  letter-spacing: .1em;
  white-space: nowrap;
  padding-top: 5px;
  min-width: 80px;
}
.wt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wt-tag {
  display: inline-block;
  padding: 5px 14px;
  border: 1px solid var(--navy);
  border-radius: 20px;
  font-size: 13px;
  color: var(--navy);
  letter-spacing: .06em;
}

/* ─── CHIBA ─────────────────────────────────────────────────────────────── */
.chiba-bg {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.chiba-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  /* CSSファイルから見た相対パス: assets/css/ → assets/images/ */
  background: url('../images/background.JPG') center center / cover no-repeat;
  opacity: .18;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.chiba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.chiba-grid .s-label { color: var(--gold2); }
.chiba-grid .s-title { color: #fff; }
.chiba-grid .s-rule  { background: rgba(255,255,255,.18); }
.chiba-grid p { color: rgba(255,255,255,.72); margin-bottom: 1em; }
.chiba-grid p:last-child { margin-bottom: 0; }

.chiba-map {
  border-radius: var(--r);
  mix-blend-mode: screen;
  position: relative;
}
.chiba-pulse {
  position: absolute;
  left: 43%; top: 43%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 2;
}
.chiba-pulse::before,
.chiba-pulse::after,
.chiba-pulse span {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(255,255,255,.9);
  border-radius: 50%;
  animation: chiba-pulse 2.4s ease-out infinite;
}
.chiba-pulse::after { animation-delay: .8s; }
.chiba-pulse span   { animation-delay: 1.6s; }
@keyframes chiba-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  100% { transform: scale(4.5); opacity: 0;  }
}
.chiba-map img {
  width: 100%; height: auto;
  display: block;
  border-radius: var(--r);
  filter: contrast(50) invert(1);
  opacity: .6;
}

/* ─── CONTACT ───────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.contact-dl dt {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contact-dl dd {
  color: var(--txt2);
  margin-bottom: 24px;
}
.contact-dl dd:last-child { margin-bottom: 0; }
.contact-dl a { color: var(--txt2); text-decoration: none; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .06em;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s;
  border: 1.5px solid transparent;
}
.btn-solid {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-solid:hover { background: var(--navy2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

.contact-map {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  align-self: start;
  color: var(--txt3);
  font-size: 13px;
  letter-spacing: .1em;
  overflow: hidden;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.f-copy {
  font-size: 12px;
  color: var(--txt3);
}
.f-links a {
  font-size: 12px;
  color: var(--txt2);
  text-decoration: none;
  letter-spacing: .06em;
  transition: color .2s;
}
.f-links a:hover { color: var(--gold); }

/* ─── PAGE（汎用） ───────────────────────────────────────────────────────── */
.page-main {
  padding: 120px 0 80px;
}
.page-title {
  margin-bottom: 0;
}
.page-body {
  max-width: 820px;
  font-size: 14px;
  line-height: 2;
  color: var(--txt2);
}
.page-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .06em;
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}
.page-body p { margin-bottom: 1em; }
.page-body ul, .page-body ol { margin: 10px 0 1em 1.4em; }
.page-body li { margin-bottom: 4px; }

/* ─── CONTACT FORM 7 ────────────────────────────────────────────────────── */
.cf7-wrap { margin-top: 32px; }
.cf7-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
.cf7-wrap label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--txt3);
  display: block;
  margin-bottom: 4px;
}
.cf7-wrap input[type="text"],
.cf7-wrap input[type="email"],
.cf7-wrap textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: var(--txt);
  transition: border-color .2s;
  outline: none;
}
.cf7-wrap input[type="text"]:focus,
.cf7-wrap input[type="email"]:focus,
.cf7-wrap textarea:focus {
  border-color: var(--navy);
}
.cf7-wrap textarea { min-height: 120px; resize: vertical; }
.cf7-wrap input[type="submit"] {
  align-self: flex-start;
  padding: 13px 28px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: var(--r);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.cf7-wrap input[type="submit"]:hover {
  background: var(--navy2);
  transform: translateY(-2px);
}
.cf7-wrap .wpcf7-response-output {
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--r);
  margin-top: 8px;
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .about-grid,
  .chiba-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .works-grid { grid-template-columns: 1fr 1fr; }

  .site-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header { padding: 0 24px; }
  .wrap { padding: 0 24px; }
  .site-footer { flex-direction: column; gap: 10px; text-align: center; padding: 28px 24px; }

  .about-photo::after { display: none; }
}

@media (max-width: 520px) {
  .works-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .logo-stage { width: min(92vw, 400px); }
}