:root {
  --navy: #1c1a28;       /* ロゴの背景色 */
  --navy-deep: #13121c;
  --ink: #222222;
  --muted: #55555d;      /* 補足文：読みやすさ優先で濃いめ */
  --accent: #c9a96e;     /* アクセント（濃紺の上で使う明るめ） */
  --accent-ink: #8a6a32; /* アクセント（白の上で文字に使う濃いめ） */
  --line: #d9d9de;
  --paper: #ffffff;
  --paper-2: #f6f6f7;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --en: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1.4em; }

/* コンテンツ幅はサイト全体で統一 */
.container, .container.narrow { width: min(1080px, 100% - 48px); margin-inline: auto; }
body { word-break: auto-phrase; }
.sp { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  color: #fff;
  transition: background .4s, box-shadow .4s;
}
.site-header.is-scrolled { background: rgba(28, 26, 40, .94); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-logo img { height: 28px; width: auto; }
.global-nav { display: flex; gap: 32px; align-items: center; }
.global-nav a { font-size: 14px; letter-spacing: .12em; text-decoration: none; opacity: .85; }
.global-nav a:hover { opacity: 1; }
.global-nav .nav-cta { border: 1px solid var(--accent); background: var(--accent); color: var(--navy); font-weight: 500; opacity: 1; padding: 6px 20px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  position: relative; text-align: center;
  padding: calc(var(--header-h) + 24px) 24px 120px;
}
.hero { overflow: hidden; isolation: isolate; }
.hero-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
/* 動画の上に濃紺を重ねて、文字を読みやすくし、ブランドの色にそろえる */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28,26,40,.55) 0%, rgba(28,26,40,.68) 60%, rgba(28,26,40,.92) 100%); }
.hero-inner { position: relative; }
.hero-logo { width: min(300px, 56vw); margin: 0 auto; }
.hero-en { margin: 40px 0 0; font-family: var(--en); font-weight: 300; font-size: 15px; letter-spacing: .24em; opacity: .8; }
.hero-copy, .section-heading, .service-item h3, .philosophy-lead, .philosophy-closing,
.message-name, .footer-copy { font-family: var(--serif); }
.hero-copy { margin: 20px 0 0; font-weight: 500; font-size: clamp(30px, 5vw, 52px); letter-spacing: .2em; line-height: 1.5; }
.hero-sub { margin: 32px 0 0; font-size: clamp(14px, 1.6vw, 16px); letter-spacing: .12em; line-height: 2.2; opacity: .92; }
.hero-tags { margin: 40px 0 0; font-family: var(--en); font-weight: 300; font-size: 11px; letter-spacing: .3em; color: var(--accent); }
.scroll-down {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  font-family: var(--en); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; opacity: .7; padding-bottom: 56px; color: #fff;
}
.scroll-down::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 44px;
  background: var(--accent); animation: scroll-line 2s infinite;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Section common ---------- */
.section { padding: 128px 0; }
.eyebrow { margin: 0 0 16px; font-family: var(--en); font-weight: 400; font-size: 13px; letter-spacing: .3em; color: var(--accent-ink); }
.section-heading { margin: 0 0 56px; font-weight: 500; font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .14em; line-height: 1.7; color: var(--navy); }

/* ---------- Services（名刺の「縦線＋見出し＋罫線」を踏襲） ---------- */
.service-list { display: grid; gap: 64px; }
.service-item { align-items: start; }
.process .service-item { grid-template-columns: 80px minmax(0, 1fr) minmax(0, 360px); }
.service-img { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; }
.service-item { display: grid; grid-template-columns: 80px 1fr; column-gap: 24px; }
.service-num { margin: 0; font-family: var(--en); font-weight: 300; font-size: 40px; color: var(--accent); line-height: 1.2; }
.service-item h3 { margin: 0; font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; line-height: 1.5; color: var(--navy); }
/* 工程：番号を線でつなぎ、スクロールに合わせて線が伸びる */
.process { position: relative; }
.process-line { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 1px; background: var(--line); }
.process-fill { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .2s linear; }
.process .service-num {
  position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--line); font-size: 22px; color: var(--muted);
  transition: border-color .5s, color .5s, background .5s;
}
.process .service-item.is-reached .service-num { border-color: var(--accent); color: var(--navy); background: #faf6ee; }
.service-en { margin: 6px 0 12px; font-family: var(--en); font-size: 12px; letter-spacing: .24em; color: var(--accent-ink); }
.service-text { margin: 0; }
.service-item ul { list-style: none; margin: 0 0 0 18px; padding: 0; display: grid; gap: 6px; }
.service-item li { font-size: 15px; color: var(--ink); }
.service-item li::before { content: "・"; color: var(--accent-ink); }

/* ---------- Philosophy ---------- */
.philosophy { background: var(--navy); color: rgba(255,255,255,.94); }
.philosophy .eyebrow { color: var(--accent); }
.philosophy .section-heading { color: #fff; }
.philosophy-lead { font-size: clamp(18px, 2.2vw, 22px); letter-spacing: .12em; color: #fff; margin-bottom: 2em; }
.philosophy-pillars { list-style: none; margin: 40px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.philosophy-pillars li { font-family: var(--serif); font-size: 17px; line-height: 1.8; color: #fff; }
.pillar-en { display: block; margin-bottom: 8px; font-family: var(--en); font-size: 12px; letter-spacing: .3em; color: var(--accent); }
.philosophy-closing { margin: 2em 0 0; font-size: clamp(22px, 2.8vw, 28px); font-weight: 500; letter-spacing: .14em; color: #fff; }

/* ---------- Message（名刺表面：白×チャコールの帯） ---------- */
.message-name { margin: -24px 0 56px; font-family: var(--serif); font-size: 22px; letter-spacing: .2em; color: var(--navy); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.message-role { font-size: 14px; letter-spacing: .2em; color: var(--muted); }
.message-name-en { font-family: var(--en); font-weight: 300; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-ink); }

/* 代表挨拶：年齢を軸にしたタイムライン */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 128px; top: 10px; bottom: 10px; width: 1px; background: var(--accent);
}
.timeline-item { display: grid; grid-template-columns: 104px 1fr; column-gap: 48px; position: relative; padding-bottom: 48px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: 123px; top: 12px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
}
.timeline-item:last-child::before { background: var(--accent); }
.timeline-when { margin: 0; text-align: right; font-family: var(--serif); font-size: 15px; color: var(--accent-ink); letter-spacing: .1em; line-height: 1.5; white-space: nowrap; }
.timeline-when .num { font-family: var(--en); font-weight: 300; font-size: 34px; letter-spacing: .02em; margin-right: 2px; line-height: 1; }
.timeline-body h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: .08em; line-height: 1.6; color: var(--navy); }
.timeline-body p { margin: 0; }

.message-quote {
  margin: 72px 0 0; padding: 40px 0 0; border-top: 1px solid var(--line); position: relative;
}
.message-quote::before {
  content: "“"; position: absolute; top: -34px; left: 0; padding-right: 16px; background: var(--paper);
  font-family: var(--serif); font-size: 72px; line-height: 1; color: var(--accent);
}
.message-quote p { margin: 0 0 1em; }
.message-quote-strong { font-family: var(--serif); font-size: clamp(20px, 2.6vw, 26px); font-weight: 500; letter-spacing: .1em; line-height: 1.8; color: var(--navy); }

  cursor: pointer; list-style: none; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; letter-spacing: .14em;
}

/* ---------- Company ---------- */
.company { background: var(--paper-2); }
.company-table { margin: 0; border-top: 1px solid var(--line); }
.company-table > div { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--line); padding: 22px 0; }
.company-table dt { color: var(--muted); font-size: 14px; }
.company-table dd { margin: 0; line-height: 1.8; }
.company-table a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Contact ---------- */
.contact { background: var(--navy); color: rgba(255,255,255,.94); }
.contact .eyebrow { color: var(--accent); }
.contact .section-heading { color: #fff; margin-bottom: 32px; }
.contact-mail a { color: #fff; }
.contact-form, .form-steps, .privacy { max-width: 760px; }
.contact-form { margin-top: 32px; }
.form-view { display: grid; gap: 24px; }
.form-view[hidden] { display: none; }
.form-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
.form-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .1em; color: rgba(255,255,255,.55); }
.form-steps li span { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--en); font-size: 14px; line-height: 1; border: 1px solid rgba(255,255,255,.35); background: var(--navy); }
.form-steps li + li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 1px; background: rgba(255,255,255,.25); }
.form-steps li.is-current, .form-steps li.is-done { color: #fff; }
.form-steps li.is-current span { background: var(--accent); border-color: var(--accent); color: var(--navy); }
.form-steps li.is-done span { border-color: var(--accent); color: var(--accent); }
.confirm-list { margin: 0; border-top: 1px solid rgba(255,255,255,.2); }
.confirm-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 8px 24px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.confirm-list dt { font-size: 14px; color: rgba(255,255,255,.7); }
.confirm-list dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.form-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.form-error { margin: 0; min-height: 1em; font-size: 14px; color: #ffb4b4; text-align: center; }
.done-title { font-family: var(--serif); font-size: 22px; letter-spacing: .1em; color: #fff; margin-top: 16px; }
.contact-form label { display: grid; gap: 8px; }
.label { font-size: 14px; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.label em { font-style: normal; font-size: 11px; padding: 0 8px; line-height: 1.8; border: 1px solid rgba(255,255,255,.4); }
.label .req { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25);
  padding: 14px 16px; border-radius: 0;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.45); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form .agree { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.contact-form .agree input { width: 18px; height: 18px; accent-color: #fff; }
.honeypot { position: absolute; left: -9999px; }
.btn {
  justify-self: center; min-width: 280px; padding: 16px 32px; cursor: pointer;
  font: inherit; letter-spacing: .16em; text-decoration: none;
  border: 1px solid var(--accent); background: var(--accent); color: var(--navy); font-weight: 500;
  transition: background .3s, color .3s;
}
.btn:hover { background: transparent; color: var(--accent); }
.btn:disabled { opacity: .6; cursor: wait; }

.privacy { margin-top: 56px; border-top: 1px solid rgba(255,255,255,.2); border-bottom: 1px solid rgba(255,255,255,.2); font-size: 14px; }
.privacy-body { padding-bottom: 16px; color: rgba(255,255,255,.85); }

/* ---------- Section lead / Business ---------- */
.section-lead { margin: -24px 0 56px; color: var(--muted); }
.business { background: var(--paper-2); }
.biz-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.biz-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .3s; }
.biz-card:hover { border-color: var(--accent); }
.biz-img { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.biz-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.biz-card:hover .biz-img img { transform: scale(1.04); }
.biz-body { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.biz-more { margin-top: auto; padding-top: 20px; align-self: flex-start; font-size: 14px; letter-spacing: .12em; color: var(--accent-ink); border-bottom: 1px solid currentColor; }
.biz-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; letter-spacing: .08em; line-height: 1.6; color: var(--navy); }
.biz-card p { margin: 0; }
.biz-label { margin-bottom: 8px !important; font-size: 12px; letter-spacing: .2em; color: var(--accent-ink); }
.joint { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.joint h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 18px; font-weight: 500; letter-spacing: .1em; color: var(--navy); }
.joint p { margin: 0; }
.contact-note { font-size: 14px; color: rgba(255,255,255,.8); }
.contact-form select {
  width: 100%; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25);
  padding: 14px 16px; border-radius: 0;
}
.contact-form select:focus { outline: none; border-color: var(--accent); }
.contact-form select option { color: var(--ink); }
@media (max-width: 860px) {
  .biz-cards { grid-template-columns: 1fr; }
  .biz-body { padding: 22px 20px 24px; }
  .section-lead { margin: -16px 0 40px; }
}

/* ---------- 下層ページ（事業紹介） ---------- */
.page-hero { position: relative; isolation: isolate; color: #fff; background: var(--navy); padding: calc(var(--header-h) + 96px) 0 96px; overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(28,26,40,.92) 0%, rgba(28,26,40,.7) 55%, rgba(28,26,40,.35) 100%); }
.page-hero .eyebrow { color: var(--accent); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.75); }
.breadcrumb a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.page-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: .12em; line-height: 1.5; }
.page-lead { margin: 24px 0 0; max-width: 40em; color: rgba(255,255,255,.92); }
.prose { max-width: 46em; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 46em; }
.check-list li { position: relative; padding: 18px 20px 18px 52px; background: var(--paper); border: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 20px; top: 26px; width: 14px; height: 8px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.program-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.program-list li { border-top: 1px solid var(--navy); padding-top: 20px; }
.program-list h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .08em; color: var(--navy); }
.program-list p { margin: 0; }
.note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.page-cta { display: inline-block; margin-top: 40px; }
.page-cta:hover { color: var(--navy); background: transparent; }
.law-table dt { font-size: 13px; }
.law-table dd { font-size: 15px; }
.todo { display: inline-block; padding: 0 8px; font-size: 12px; line-height: 1.8; letter-spacing: .05em; color: #8a2f2f; background: #fbebeb; border: 1px dashed #c97a7a; }
@media (max-width: 860px) {
  .page-hero { padding: calc(var(--header-h) + 56px) 0 64px; }
  .breadcrumb { margin-bottom: 32px; }
  .program-list { grid-template-columns: 1fr; }
  .check-list li { padding: 16px 16px 16px 44px; }
  .check-list li::before { left: 16px; top: 24px; }
}

.page-hero-plain { padding-bottom: 64px; }
.plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan-card { display: flex; flex-direction: column; border: 1px solid var(--line); padding: 32px; }
.plan-label { margin: 0 0 8px; font-size: 12px; letter-spacing: .2em; color: var(--accent-ink); }
.plan-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; letter-spacing: .06em; line-height: 1.6; color: var(--navy); }
.plan-card > p { margin: 0 0 24px; }
.plan-meta { margin: auto 0 0; border-top: 1px solid var(--line); }
.plan-meta > div { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plan-meta dt { font-size: 13px; color: var(--muted); }
.plan-meta dd { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--navy); }
.plan-meta dd small { margin-left: 4px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .plan-cards { grid-template-columns: 1fr; } .plan-card { padding: 24px 20px; } }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--paper); }
.price-table th, .price-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.price-table thead th { font-size: 13px; color: var(--muted); background: var(--paper-2); border-bottom: 1px solid var(--navy); }
.price-table tbody th { font-family: var(--serif); font-size: 16px; color: var(--navy); }
.price-table tbody th a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.price-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-table td:last-child { text-align: right; font-family: var(--serif); font-size: 18px; color: var(--navy); }
.price-table thead th:last-child { text-align: right; }
.law-sub { margin: 0 0 16px; font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .08em; color: var(--navy); }
.law-sub a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.law-sub ~ .law-sub { margin-top: 56px; }
.law-table a { color: inherit; }
.law-link { margin: 24px 0 0; font-size: 14px; }
.law-link a { color: var(--accent-ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-bottom: 20px; }
.footer-link { display: inline-block; font-size: 12px; letter-spacing: .1em; color: rgba(255,255,255,.75); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.8); text-align: center; padding: 64px 24px 32px; font-size: 13px; }
.footer-logo { height: 32px; width: auto; margin: 0 auto 20px; }
.footer-copy { margin: 0 0 32px; letter-spacing: .2em; }
.back-to-top { display: block; font-family: var(--en); font-size: 12px; letter-spacing: .24em; text-decoration: none; }
.copyright { margin: 32px 0 0; font-family: var(--en); font-size: 12px; letter-spacing: .15em; opacity: .6; }

/* ---------- Motion ---------- */
/* 1. ロゴが左から右へ描かれるように現れる / 2. コピーが1文字ずつ浮かぶ */
/* 初期状態（非表示）。ページが実際に表示されたら .is-ready が付き、再生が始まる */
.js .hero-logo { clip-path: inset(0 100% 0 0); }
.js .hero-en, .js .hero-sub, .js .hero-tags, .js .scroll-down { opacity: 0; }
.hero-copy .char { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); }

.is-ready .hero-logo { animation: logo-reveal 1.4s cubic-bezier(.77,0,.18,1) .3s forwards; }
.is-ready .hero-en, .is-ready .hero-sub, .is-ready .hero-tags { animation: rise .9s ease forwards; }
.is-ready .hero-en { animation-delay: 1.3s; }
.is-ready .hero-sub { animation-delay: 2.7s; }
.is-ready .hero-tags { animation-delay: 3s; }
.is-ready .scroll-down { animation: rise-center .9s ease 3.3s forwards; }
.is-ready .hero-copy .char { animation: char-in .8s ease forwards; }

@keyframes logo-reveal { to { clip-path: inset(0 0 0 0); } }
@keyframes char-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: var(--o, 1); transform: none; } }
@keyframes rise-center { from { opacity: 0; } to { opacity: .7; } }
.hero-en { --o: .8; }
.hero-sub { --o: .92; }
.hero-tags { --o: 1; }

/* 4. 事業紹介の見出し横線が伸びる */


/* タイムラインの縦線が上から伸びる */
.js .timeline::before { transform: scaleY(0); transform-origin: top; transition: transform 2s cubic-bezier(.65,0,.35,1); }
.js .timeline.is-visible::before { transform: scaleY(1); }

/* 7. ホバー：下線が伸びる・ボタンの色が入れ替わる */
.global-nav a:not(.nav-cta), .company-table a, .contact-mail a, .back-to-top, .privacy-link {
  text-decoration: none; border-bottom: 0;
  background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
  transition: background-size .4s ease, opacity .3s;
  padding-bottom: 2px;
}
.company-table a, .contact-mail a, .privacy-link { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--underline, rgba(127,127,135,.4)), var(--underline, rgba(127,127,135,.4))); background-size: 0 1px, 100% 1px; background-position: left bottom, left bottom; }
.global-nav a:not(.nav-cta):hover, .back-to-top:hover { background-size: 100% 1px; }
.company-table a:hover, .contact-mail a:hover, .privacy-link:hover { background-size: 100% 1px, 100% 1px; }
.global-nav .nav-cta { transition: background .3s, color .3s; }
.global-nav .nav-cta:hover { background: transparent; color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ---------- Fade-in ---------- */
.fade { opacity: 0; transform: translateY(24px); transition: opacity 1s ease, transform 1s ease; }
.fade.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade { opacity: 1; transform: none; transition: none; }
  .scroll-down::after { animation: none; }
  .js .hero-logo, .js .hero-en, .js .hero-sub, .js .hero-tags, .js .scroll-down, .hero-copy .char {
    animation: none; opacity: var(--o, 1); clip-path: none; filter: none; transform: none;
  }
  .js .scroll-down { --o: .7; }
  .js .scroll-down { transform: translateX(-50%); }
  .process-fill, .process .service-num { transition: none; }
  .js .timeline::before { transform: none; transition: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .sp { display: inline; }
  .pc { display: none; }
  .container, .container.narrow { width: calc(100% - 32px); }
  .site-header { padding: 0 16px; }
  .header-logo img { height: 22px; }
  .menu-toggle {
    display: block; position: relative; z-index: 2; width: 32px; height: 32px;
    background: none; border: 0; padding: 0; cursor: pointer;
  }
  .menu-toggle span { position: absolute; left: 4px; right: 4px; height: 1px; background: #fff; transition: transform .3s, top .3s; }
  .menu-toggle span:first-child { top: 12px; }
  .menu-toggle span:last-child { top: 20px; }
  .is-open .menu-toggle span:first-child { top: 16px; transform: rotate(45deg); }
  .is-open .menu-toggle span:last-child { top: 16px; transform: rotate(-45deg); }
  .global-nav {
    position: fixed; inset: 0; background: var(--navy);
    flex-direction: column; justify-content: center; gap: 32px;
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .is-open .global-nav { opacity: 1; pointer-events: auto; }
  .global-nav a { font-size: 17px; }

  .section { padding: 88px 0; }
  .section-heading { margin-bottom: 40px; }
  .service-item { grid-template-columns: 48px 1fr; column-gap: 16px; }
  .process .service-num { width: 48px; height: 48px; font-size: 17px; }
  .process .service-item { grid-template-columns: 48px minmax(0, 1fr); }
  .service-img { grid-column: 2; margin-top: 20px; }
  .process-line { left: 23px; top: 24px; bottom: 24px; }
  .philosophy-pillars { grid-template-columns: 1fr; gap: 24px; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 4px; }
  .form-actions .btn { width: 100%; }
  .message-name { margin-top: -16px; margin-bottom: 40px; }
  .company-table > div { grid-template-columns: 1fr; padding: 16px 0; }
  .btn { min-width: 0; width: 100%; }
  .timeline::before { left: 5px; }
  .timeline-item { grid-template-columns: 1fr; padding-left: 32px; padding-bottom: 40px; }
  .timeline-item::before { left: 0; top: 10px; }
  .timeline-when { text-align: left; margin-bottom: 6px; }
  .timeline-when .num { font-size: 28px; }
  .timeline-body h3 { font-size: 18px; }
  .message-quote-strong { font-size: 19px; letter-spacing: .05em; }
  .hero-copy { font-size: 26px; letter-spacing: .12em; }
  .hero-sub { letter-spacing: .06em; }
}

/* ===== プライバシーポリシー ===== */
.policy { max-width: 800px; }
.policy h2 { margin: 56px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.5; }
.policy p { margin: 0 0 14px; }
.policy ul { margin: 0 0 14px; padding-left: 1.4em; }
.policy li { margin-bottom: 6px; }
.policy .law-table { margin-top: 8px; }
.policy-date { margin-top: 48px !important; text-align: right; color: var(--muted); font-size: 14px; }
.privacy-body a { color: var(--accent-ink); }
