@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&family=Noto+Sans+JP:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #FAFAF8;
  --bg-alt: #F3F1EB;
  --bg-navy: #16283F;
  --ink: #1B2130;
  --ink-soft: #565B66;
  --navy: #1E3A5F;
  --navy-deep: #12253E;
  --gold: #B08D4F;
  --gold-soft: #D9C6A0;
  --line: #DCD8CE;
  --line-soft: #EAE7DF;
  --white: #FFFFFF;

  --font-display: 'Shippori Mincho', serif;
  --font-body: 'Noto Sans JP', sans-serif;

  --max-width: 1140px;
  --pad: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Parallel-line signature motif ---------- */
.dual-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 46px;
}
.dual-line span {
  display: block;
  height: 1.5px;
  background: var(--navy);
}
.dual-line span:last-child { background: var(--gold); width: 70%; }

.section-divider {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
  width: 64px;
}
.section-divider span {
  display: block;
  height: 1.5px;
  flex: 1;
}
.section-divider span:first-child { background: var(--navy); }
.section-divider span:last-child { background: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s var(--ease);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.logo {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--navy-deep);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo .blanco { font-weight: 400; color: var(--ink-soft); }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav ul { display: flex; gap: 36px; }
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
  color: var(--ink);
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.main-nav a.active { color: var(--navy-deep); font-weight: 600; }

.nav-cta {
  font-size: 12px;
  letter-spacing: 0.12em;
  border: 1px solid var(--navy);
  color: var(--navy-deep);
  padding: 11px 22px;
  transition: all 0.35s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
  display: none;
  width: 32px; height: 22px;
  position: relative;
  z-index: 200;
}
.nav-toggle span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: var(--ink);
  transition: all 0.35s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; width: 70%; background: var(--gold); }
.nav-toggle span:nth-child(3) { top: 20px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ---------- Page header (sub pages) ---------- */
.page-hero {
  padding: 168px var(--pad) 100px;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
}
.page-hero .en {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

/* ---------- Hero (top page) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: 140px var(--pad) 80px;
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-lines svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.7;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
}
.hero h1 span { display: block; }

.hero-sub {
  margin-top: 40px;
  max-width: 480px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 2.1;
}
.scroll-cue {
  position: absolute;
  bottom: 40px;
  left: var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
}
.scroll-cue .stem {
  width: 1px; height: 40px;
  background: linear-gradient(var(--navy), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .stem::after {
  content: '';
  position: absolute;
  top: -40px; left: 0; right: 0; height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollDrip 2.2s ease-in-out infinite;
}
@keyframes scrollDrip { to { top: 40px; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 120px var(--pad); }

/* Hierarchical section numbering */
.section-num {
  position: absolute;
  top: 50%;
  right: var(--pad);
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 1;
  color: var(--navy-deep);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}
.bg-navy .section-num { color: var(--white); opacity: 0.06; }
.section-index { font-size: 12px; letter-spacing: 0.3em; color: var(--ink-soft); font-weight: 500; margin-bottom: 14px; }
.section-index b { color: var(--gold); font-family: var(--font-display); font-size: 14px; margin-right: 6px; }
.bg-navy .section-index { color: rgba(255,255,255,0.6); }
.section-pad.tight { padding: 90px var(--pad); }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy-deep); color: var(--white); }

.reveal { opacity: 1; }

.eyebrow-block { text-align: center; margin-bottom: 64px; }
.eyebrow-block .eyebrow {
  font-size: 12px; letter-spacing: 0.3em; color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.eyebrow-block h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.04em;
  line-height: 1.7;
}
.bg-navy .eyebrow-block h2 { color: var(--white); }

.lead-copy {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 2.2;
}
.bg-navy .lead-copy { color: rgba(255,255,255,0.72); }

.copy-block {
  max-width: 700px;
  margin: 40px auto 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 2.3;
}
.copy-block p + p { margin-top: 24px; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

.graphic-box {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}
.graphic-box.on-navy { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); }
.graphic-box svg { width: 100%; height: 100%; }

.col-eyebrow { font-size: 12px; letter-spacing: 0.28em; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.col-title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 600; color: var(--navy-deep); line-height: 1.75; margin-bottom: 26px; }
.bg-navy .col-title { color: var(--white); }
.col-body { font-size: 14px; color: var(--ink-soft); line-height: 2.2; }
.bg-navy .col-body { color: rgba(255,255,255,0.7); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  padding: 16px 30px;
  border: 1px solid var(--navy);
  color: var(--navy-deep);
  margin-top: 34px;
  transition: all 0.4s var(--ease);
}
.btn:hover { background: var(--navy); color: var(--white); gap: 18px; }
.btn.on-navy { border-color: rgba(255,255,255,0.5); color: var(--white); }
.btn.on-navy:hover { background: var(--white); color: var(--navy-deep); }
.btn.filled { background: var(--navy); color: var(--white); }
.btn.filled:hover { background: var(--gold); border-color: var(--gold); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Philosophy list ---------- */
.philosophy-list { display: flex; flex-direction: column; }
.philosophy-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.philosophy-item:last-child { border-bottom: 1px solid var(--line); }
.philosophy-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.1em;
  padding-top: 4px;
}
.philosophy-num small { display: block; font-size: 11px; color: var(--ink-soft); letter-spacing: 0.2em; margin-top: 8px; font-family: var(--font-body); }
.philosophy-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--navy-deep); margin-bottom: 16px; line-height: 1.7; }
.philosophy-body { font-size: 14px; color: var(--ink-soft); line-height: 2.2; max-width: 640px; }

/* ---------- Info table ---------- */
.info-table { width: 100%; max-width: 760px; margin: 0 auto; }
.info-table tr { border-top: 1px solid var(--line); }
.info-table tr:last-child { border-bottom: 1px solid var(--line); }
.info-table th, .info-table td {
  text-align: left;
  padding: 24px 20px;
  font-weight: 400;
  vertical-align: top;
}
.info-table th {
  width: 180px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
}
.info-table td { font-size: 14.5px; color: var(--ink); line-height: 1.9; }

/* ---------- Message (代表挨拶) ---------- */
.message-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
}
.message-portrait {
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--gold) 150%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.message-portrait .initials {
  font-family: var(--font-display);
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  letter-spacing: 0.15em;
}
.message-body { font-size: 14.5px; color: var(--ink-soft); line-height: 2.3; }
.message-body p + p { margin-top: 24px; }
.message-sign { margin-top: 48px; text-align: right; }
.message-sign .company { font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.message-sign .name { font-family: var(--font-display); font-size: 20px; color: var(--navy-deep); font-weight: 600; }

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  margin-top: 20px;
}
.service-card {
  background: var(--bg);
  padding: 48px 36px;
}
.service-card .num { font-family: var(--font-display); font-size: 13px; color: var(--gold); margin-bottom: 20px; }
.service-card h3 { font-family: var(--font-display); font-size: 18px; color: var(--navy-deep); font-weight: 600; margin-bottom: 16px; line-height: 1.7; }
.service-card p { font-size: 13.5px; color: var(--ink-soft); line-height: 2.1; }

/* ---------- Service item (layered / hierarchical, curacon-style) ---------- */
.service-item { padding: 110px 0; border-top: 1px solid var(--line); }
.service-item:first-child { border-top: none; padding-top: 60px; }
.service-domain {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 56px;
}
.service-item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.service-item:nth-child(even) .service-item-graphic { order: -1; }
.service-tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1.85;
  margin-bottom: 32px;
}
.service-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 40px; }
.service-label .code { font-family: var(--font-display); font-size: 15px; color: var(--gold); letter-spacing: 0.08em; }
.service-label .name { font-size: 13px; letter-spacing: 0.1em; color: var(--ink-soft); font-weight: 500; }
.service-item-body { font-size: 13.5px; color: var(--ink-soft); line-height: 2.3; max-width: 480px; }
.service-item-body p + p { margin-top: 20px; }
.service-item-graphic { aspect-ratio: 4/3; background: var(--bg-alt); position: relative; overflow: hidden; }
.service-item-graphic svg { width: 100%; height: 100%; }

/* ---------- Privacy policy ---------- */
.policy-wrap { max-width: 780px; margin: 0 auto; }
.policy-block { padding: 36px 0; border-top: 1px solid var(--line); }
.policy-block:first-child { border-top: none; padding-top: 0; }
.policy-block h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--navy-deep); margin-bottom: 16px; }
.policy-block p { font-size: 13.5px; color: var(--ink-soft); line-height: 2.2; }
.policy-block p + p { margin-top: 14px; }
.policy-block ul { margin-top: 10px; }
.policy-block li { font-size: 13.5px; color: var(--ink-soft); line-height: 2.2; padding-left: 1.2em; position: relative; }
.policy-block li::before { content: '・'; position: absolute; left: 0; }
.policy-date { text-align: right; font-size: 12px; color: var(--ink-soft); margin-top: 40px; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 0;
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--line);
}
.contact-info { background: var(--navy-deep); color: var(--white); padding: 56px 48px; }
.contact-info h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 30px; letter-spacing: 0.04em; }
.contact-info .row { margin-bottom: 26px; }
.contact-info .row .label { font-size: 11px; letter-spacing: 0.2em; color: var(--gold-soft); margin-bottom: 8px; }
.contact-info .row .value { font-size: 14.5px; line-height: 1.9; color: rgba(255,255,255,0.9); }
.contact-form { padding: 56px 48px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 12px; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 10px; }
.field label .req { color: var(--gold); margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); }
.field textarea { resize: vertical; min-height: 100px; }
.submit-btn {
  width: 100%;
  padding: 17px;
  background: var(--navy-deep);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.18em;
  margin-top: 10px;
  transition: background 0.35s var(--ease);
}
.submit-btn:hover { background: var(--gold); }
.form-note { font-size: 11.5px; color: var(--ink-soft); margin-top: 16px; line-height: 1.9; }
.form-success { display: none; text-align: center; padding: 40px 0; }
.form-success.show { display: block; }
.form-success .dual-line { margin: 0 auto 20px; }
.form-success h4 { font-family: var(--font-display); font-size: 18px; color: var(--navy-deep); margin-bottom: 12px; }
.form-success p { font-size: 13.5px; color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.6); padding: 80px var(--pad) 32px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-logo { font-family: var(--font-display); font-size: 20px; color: var(--white); margin-bottom: 18px; }
.footer-addr { font-size: 13px; line-height: 2.1; color: rgba(255,255,255,0.55); }
.footer-nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-nav .col h5 { font-size: 11px; letter-spacing: 0.2em; color: var(--gold-soft); margin-bottom: 18px; }
.footer-nav .col a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 12px; transition: color 0.3s; }
.footer-nav .col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; font-size: 11.5px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .main-nav ul, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .main-nav.mobile-open {
    display: flex; position: fixed; inset: 0; top: 84px;
    background: var(--bg); flex-direction: column;
    padding: 40px var(--pad); z-index: 150;
  }
  .main-nav.mobile-open ul { flex-direction: column; gap: 28px; }
  .main-nav.mobile-open a { font-size: 16px; }
  .main-nav.mobile-open .nav-cta { display: inline-flex; margin-top: 36px; }

  .two-col, .message-layout { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse { direction: ltr; }
  .two-col .graphic-box { order: -1; }
  .service-item-grid { grid-template-columns: 1fr; gap: 32px; }
  .service-item { padding: 64px 0; }
  .philosophy-item { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .info-table th { width: 120px; font-size: 11px; }
  .footer-top { flex-direction: column; }
}
