/* ==========================================================================
   Anyseez — Design Tokens
   Navy / Off-white base, brass "thread" accent (縁 motif)
   ========================================================================== */
:root {
  --navy: #2E2E4A;
  --navy-deep: #25253E;
  --navy-light: #3D3D5C;
  --off-white: #F6F2EC;
  --paper: #FBF9F4;
  --ink: #21262C;
  --ink-soft: #565B62;
  --gold: #7A5F3D;
  --gold-soft: #A98F68;
  --burgundy: #5E1D1D;
  --burgundy-soft: #9C5B54;
  --line: #DED6C2;

  --font-display: "Shippori Mincho", "Noto Serif JP", serif;
  --font-accent: "EB Garamond", serif;
  --font-body: "Noto Sans JP", sans-serif;

  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--off-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.02em;
  margin: 0;
  overflow-wrap: break-word;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}
.eyebrow.alt { color: var(--burgundy); }
.eyebrow.alt::before { background: var(--burgundy); }

p { margin: 0 0 1.1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

/* ---------- Thread progress (signature element) ---------- */
.thread-rail {
  position: fixed;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--line) 4%, var(--line) 100%);
  z-index: 60;
  pointer-events: none;
}
.thread-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold-soft), var(--burgundy));
  transition: height 0.05s linear;
}
.thread-knot {
  position: absolute;
  left: 50%;
  top: 0%;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--off-white), 0 0 0 5px var(--gold-soft);
  transform: translate(-50%, -50%);
  transition: top 0.05s linear;
}
@media (max-width: 780px) {
  .thread-rail { display: none; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 236, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.brand-word {
  font-family: var(--font-accent);
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
}
.brand-word .dot { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
}
.nav a {
  position: relative;
  color: var(--navy);
  padding: 6px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--burgundy);
  transition: width 0.25s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.active { color: var(--burgundy); }

.nav-cta {
  border: 1px solid var(--navy);
  padding: 9px 20px !important;
  border-radius: 2px;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy); color: var(--off-white) !important; }

.lang-switch {
  display: flex;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-right: 6px;
}
.lang-switch a { color: var(--ink-soft); }
.lang-switch a.current { color: var(--navy-deep); font-weight: 700; }
.lang-switch span { color: var(--line); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 22px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%; height: 1px;
  background: var(--navy-deep);
  transition: 0.2s;
}
.nav-toggle span { top: 10px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

@media (max-width: 860px) {
  .nav { position: fixed; top: 84px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; padding: 24px 28px 32px;
    gap: 20px; border-bottom: 1px solid var(--line); transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: 0.25s ease; }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .nav-cta { align-self: flex-start; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50px; right: -60px;
  width: 480px; height: 400px;
  background-image: url("assets/anyseez-hero-scatter.svg");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 60px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.45;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-lede {
  margin-top: 26px;
  font-size: 17px;
  max-width: 46ch;
}
.hero-side {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.hero-side .stat {
  margin-bottom: 22px;
}
.hero-side .stat .num {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--navy-deep);
  display: block;
}
.hero-side .stat .label {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 780px) {
  .hero { padding: 90px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; display: flex; gap: 28px; flex-wrap: wrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-size: 14.5px;
  letter-spacing: 0.04em;
  border-radius: 2px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy-deep);
  color: var(--off-white);
}
.btn-primary:hover { background: var(--gold); }
.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--off-white); }

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.section.tight { padding: 70px 0; }
/* ---------- Flow steps (inquiry -> execution) ---------- */
.flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.flow-step {
  flex: 1;
  text-align: center;
  padding: 8px 14px;
}
.flow-step .flow-num {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-deep);
  background: var(--paper);
}
.flow-step h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-deep);
  margin: 0 0 8px;
}
.flow-step p {
  font-size: 13.5px;
  line-height: 1.7;
}
.flow-arrow {
  display: flex;
  align-items: flex-start;
  padding-top: 14px;
  color: var(--gold);
  flex: 0 0 auto;
  width: 32px;
  justify-content: center;
}
@media (max-width: 860px) {
  .flow { flex-direction: column; }
  .flow-arrow { width: auto; padding: 6px 0; transform: rotate(90deg); }
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.6;
}
.section.dark {
  background-color: var(--navy-deep);
  background-image: url("assets/knot-scatter.svg");
  background-size: 480px 480px;
  background-repeat: repeat;
  border-top: none;
}
.section.dark h2, .section.dark h3 { color: var(--off-white); }
.section.dark p { color: #C7CBD6; }
.section.dark .eyebrow { color: var(--gold-soft); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Problem grid ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.story-box {
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.story-box::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  background-image: url("assets/anyseez-mark.svg");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.22;
  filter: blur(3px);
  pointer-events: none;
  z-index: 0;
}
.story-box-1::before { bottom: -70px; right: -70px; }
.story-box-2::before { top: -70px; left: -70px; transform: rotate(18deg); }
.story-box > * { position: relative; z-index: 1; }

.problem-card .mark {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--burgundy);
  font-size: 15px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}
.problem-card h3 {
  font-size: 19px;
  margin-bottom: 12px;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .problem-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- Approach / Hub ---------- */
.hub-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.hub-diagram {
  aspect-ratio: 1 / 1;
  max-width: 380px;
}
@media (max-width: 860px) {
  .hub-layout { grid-template-columns: 1fr; }
  .hub-diagram { margin: 0 auto; }
}
.hub-list { list-style: none; margin: 28px 0 0; padding: 0; }
.hub-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.hub-list li:last-child { border-bottom: 1px solid var(--line); }
.hub-list .tag {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  min-width: 64px;
}

/* ---------- Tier cards (service teaser + full table) ---------- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.tier-card {
  padding: 34px 26px;
  border-left: 1px solid var(--line);
  position: relative;
  transition: background 0.25s ease, color 0.25s ease;
}
.tier-card:first-child { border-left: none; }
.tier-card:hover { background: var(--burgundy); }
.tier-card:hover * { color: var(--off-white) !important; }
.tier-card:hover .tier-en { color: var(--gold-soft) !important; }
.tier-card:hover li { border-top-color: rgba(255,255,255,0.18); }
.tier-card .tier-en {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.tier-card h3 {
  font-size: 22px;
  margin: 6px 0 16px;
}
.tier-card .tier-price {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 18px;
  display: block;
}
.tier-card ul {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.tier-card li { padding: 7px 0; border-top: 1px dashed var(--line); transition: border-color 0.25s ease; }
.tier-card li:first-child { border-top: none; }

@media (max-width: 980px) {
  .tier-grid { grid-template-columns: 1fr 1fr; }
  .tier-card:nth-child(3) { border-left: none; }
  .tier-card:nth-child(1), .tier-card:nth-child(3) { border-top: none; }
  .tier-card:nth-child(2), .tier-card:nth-child(4) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .tier-grid { grid-template-columns: 1fr; }
  .tier-card { border-left: none !important; border-top: 1px solid var(--line) !important; }
  .tier-card:first-child { border-top: none !important; }
}

/* ---------- Profile ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 56px;
  align-items: start;
}
.profile-photo {
  max-width: 190px;
  aspect-ratio: 3/4;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.profile-photo .initial {
  font-family: var(--font-display);
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.8;
}
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.timeline li:first-child { border-top: none; }
.timeline .yr {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  font-size: 15px;
}
.timeline h4 { font-family: var(--font-body); font-weight: 700; font-size: 15.5px; margin: 0 0 6px; color: var(--navy-deep); }
@media (max-width: 860px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-photo { max-width: 170px; }
}

/* ---------- Credential chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip {
  border: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  color: var(--navy);
}

/* ---------- Logos / partners row ---------- */
.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding-top: 10px;
}
.logo-row span {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

/* ---------- Quote block ---------- */
.quote-block {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.85;
  color: var(--off-white);
  margin: 0 0 20px;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.quote-block cite {
  font-style: normal;
  font-family: var(--font-accent);
  color: var(--gold-soft);
  font-size: 15px;
}

/* ---------- Speaker card (Kitajima) ---------- */
.callout-box {
  border-left: 3px solid var(--gold);
  background: var(--paper);
  padding: 24px 28px;
  margin-top: 28px;
}
.callout-box .callout-label {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--burgundy);
  font-size: 14px;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 8px;
}
.speaker-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  align-items: start;
  border: 1px solid var(--line);
  padding: 36px;
}
.speaker-photo {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: 2px;
  background: var(--navy-light);
  overflow: hidden;
}
.speaker-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 620px) {
  .speaker-card { grid-template-columns: 1fr; text-align: center; }
  .speaker-photo { max-width: 190px; margin: 0 auto; }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact-info dl { margin: 30px 0 0; }
.contact-info dt {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  font-size: 13.5px;
  margin-top: 22px;
}
.contact-info dd { margin: 4px 0 0; font-size: 16px; color: var(--navy-deep); }

.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin-top: 18px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--navy-deep);
  background-image: url("assets/knot-scatter.svg");
  background-size: 480px 480px;
  background-repeat: repeat;
  color: #AFB6C6;
  padding: 60px 0 30px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .brand-word { color: var(--off-white); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; }
.footer-nav a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 22px;
  font-size: 12.5px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #7C8296;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 420px; height: 360px;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }

.page-hero.accent-tl::before {
  top: -40px; left: -70px;
  background-image: url("assets/scatter-light-1.svg");
}
.page-hero.accent-br::before {
  bottom: -80px; right: -60px;
  background-image: url("assets/scatter-light-2.svg");
}
.page-hero.accent-tr::before {
  top: -60px; right: -40px;
  width: 320px; height: 280px;
  background-image: url("assets/scatter-light-3.svg");
}
.page-hero.accent-bl::before {
  bottom: -60px; left: -80px;
  background-image: url("assets/scatter-light-3.svg");
}
.page-hero.accent-mr::before {
  top: 50%; right: -50px;
  transform: translateY(-50%);
  width: 340px; height: 300px;
  background-image: url("assets/scatter-light-2.svg");
}
@media (max-width: 700px) {
  .page-hero::before { opacity: 0.06; }
}

.page-hero .eyebrow { margin-bottom: 20px; }
.page-hero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.6; }
.page-hero .lede { margin-top: 18px; max-width: 60ch; font-size: 16px; }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 780px) { .cols-2 { grid-template-columns: 1fr; } }
