/* 071 紫藤成形 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #f4f3f7;
  --c-ink: #0d0b12;
  --c-ink2: #17141f;
  --c-accent: #7c3aed;
  --c-accent-light: #c4b5fd;
  --c-accent-text: #6d28d9;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-line: #d6d3df;
  --font: "Noto Sans JP", sans-serif;
  --font-big: "Saira Extra Condensed", "Noto Sans JP", sans-serif;
  --font-mono: "Martian Mono", "Noto Sans JP", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd { margin: 0; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); }
.label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-bottom: 28px; font-family: var(--font-big); font-weight: 900; font-size: clamp(44px, 7vw, 96px); line-height: 1; letter-spacing: .02em; color: var(--c-accent-light); }
.label--dark { color: var(--c-ink); }
.label__ja { font-family: var(--font); font-weight: 700; font-size: 16px; letter-spacing: .1em; color: #e4e0ee; }
.label--dark .label__ja { color: var(--c-accent-text); }
.h2 { font-weight: 900; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.35; letter-spacing: .02em; color: var(--c-ink); margin-bottom: 32px; }
.h2--light { color: #fff; }
.note { margin-top: 24px; font-size: 15px; color: #c9c4d6; }
.note--dark { color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font-weight: 700; text-decoration: none; letter-spacing: .06em; white-space: nowrap; flex: none; transition: background-color .2s, color .2s; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover, .btn--accent:focus-visible { background: #fff; color: var(--c-ink); }
.btn--line { border: 2px solid currentColor; }
.btn--line:hover { background: #fff; color: var(--c-ink); }
.btn--white { background: #fff; color: var(--c-ink); }
.btn--white:hover { background: var(--c-ink); color: #fff; }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 17px; }

/* ===== ヘッダー ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--c-ink); color: #fff; border-bottom: 1px solid #2a2533; }
.header__inner { display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 0 0 20px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 22px; height: 22px; background: var(--c-accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.logo__en { font-family: var(--font-big); font-weight: 900; font-size: 23px; letter-spacing: .04em; }
.logo__ja { font-size: 15px; color: var(--c-accent-light); }
@media (max-width: 599px) { .logo__ja { display: none; } .header__btn { padding: 0 14px; } }
.gnav { display: none; }
.header__btn { margin-left: auto; height: 64px; }
@media (min-width: 1080px) {
  .header__inner { height: 72px; padding-left: 40px; gap: 28px; }
  .gnav { display: flex; gap: 4px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 700; font-size: 15px; }
  .gnav a:hover { color: var(--c-accent-light); }
  .header__btn { margin-left: 0; height: 72px; padding: 0 32px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 64px; }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-ink); padding: 8px 20px 24px; display: flex; flex-direction: column; border-top: 1px solid #2a2533; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; font-weight: 700; text-decoration: none; border-bottom: 1px solid #2a2533; }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 読み込みの幕（A06） ===== */
.loader { display: none; }
.is-motion .loader.is-on { display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--c-ink); color: #fff; }
.loader__inner { position: relative; width: min(360px, 80vw); text-align: left; }
.loader__line { width: 100%; fill: none; stroke: #4a4359; stroke-width: 2; }
.loader__pellet { position: absolute; left: 0; top: 0; width: 15%; fill: var(--c-accent); }
.loader__pellet rect { fill: #fff; }
.loader__num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(56px, 12vw, 104px); line-height: 1.1; margin-top: 16px; }
.loader__label { font-family: var(--font-mono); font-size: 15px; color: var(--c-accent-light); letter-spacing: .2em; }

/* ===== メインビジュアル（タイポ） ===== */
.hero { position: relative; background: var(--c-ink); color: #fff; padding: 40px 20px 64px; overflow: hidden; }
.hero__type { display: flex; flex-direction: column; font-family: var(--font-big); font-weight: 900; font-size: 50vw; line-height: .84; letter-spacing: -.01em; text-transform: uppercase; }
.hero__line { display: flex; align-items: flex-start; white-space: nowrap; }
.hero__line small { font-size: .3em; line-height: 1; margin: .12em 0 0 .08em; color: var(--c-accent-light); }
.hero__line--to { color: #9d93b5; }
.hero__line--num { color: var(--c-accent-light); }
.hero__side { margin-top: 32px; }
.hero__part { margin: 0 -20px 24px; background: #e9e7ef; }
.hero__part img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; mix-blend-mode: multiply; }
.hero__copy { font-weight: 900; font-size: clamp(28px, 2.6vw, 38px); line-height: 1.35; }
.nw { white-space: nowrap; }
.hero__lead { margin: 16px 0 28px; color: #e4e0ee; max-width: 32em; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: none; }
.hero__readout { display: none; }
@media (min-width: 1080px) {
  .hero__readout { display: block; align-self: center; margin: 0; padding: 20px 0; border-top: 1px solid #3a3446; border-bottom: 1px solid #3a3446; font-family: var(--font-mono); font-size: 15px; color: #e4e0ee; }
  .hero__readout div { display: grid; grid-template-columns: 2em 1fr auto; gap: 16px; padding: 6px 0; }
  .hero__readout dd { margin: 0; }
  .hero__readout dt { color: var(--c-accent-light); }
  .hero__readout .ok { color: #86efac; }
  .hero__judge { margin-top: 8px; padding-top: 12px !important; border-top: 1px dashed #3a3446; }
  .hero__judge dt { color: #e4e0ee !important; }
  .hero__judge dd:nth-of-type(1) { color: #86efac; font-weight: 700; }
}
@media (min-width: 1080px) {
  .hero { display: grid; grid-template-columns: auto minmax(220px, 1fr) 400px; gap: 0 4vw; padding: 48px 56px 72px; min-height: calc(100vh - 72px); align-items: end; }
  .hero__type { font-size: min(21vw, 31vh); }
  .hero__side { margin: 0; }
  .hero__part { margin: 0 0 28px; }
  .hero__meta { display: flex; justify-content: space-between; grid-column: 1 / -1; margin-top: 40px; padding-top: 16px; border-top: 1px solid #2f2a3a; font-family: var(--font-mono); font-size: 15px; color: #bdb6cc; }
}

/* ===== 数字 ===== */
.numbers { background: var(--c-ink2); color: #fff; padding: 96px 0; }
.nums { display: grid; gap: 0; border-top: 1px solid #3a3446; }
.nums li { padding: 28px 0; border-bottom: 1px solid #3a3446; min-width: 0; }
.nums__val { font-family: var(--font-big); font-weight: 900; font-size: clamp(64px, 6.4vw, 104px); line-height: 1; white-space: nowrap; }
.nums__val span { font-size: .42em; margin-left: .2em; color: var(--c-accent-light); }
.nums__cap { margin-top: 8px; color: #e4e0ee; font-weight: 700; }
@media (min-width: 768px) { .nums { grid-template-columns: repeat(3, 1fr); } .nums li { padding: 32px 24px 32px 0; } .nums li + li { padding-left: 24px; border-left: 1px solid #3a3446; } }

/* ===== できること ===== */
.cap { padding: 112px 0; }
.cap__table { border-top: 3px solid var(--c-ink); }
.cap__table div { display: grid; gap: 4px; padding: 24px 0; border-bottom: 1px solid var(--c-ink); }
.cap__table dt { display: flex; align-items: baseline; gap: 16px; font-weight: 900; font-size: 22px; color: var(--c-ink); }
.cap__table dt .mono { font-size: 15px; color: var(--c-accent-text); }
@media (min-width: 768px) { .cap__table div { grid-template-columns: 360px 1fr; gap: 32px; align-items: baseline; } }

/* ===== 工程 ===== */
.process { background: var(--c-ink); color: #e4e0ee; padding: 112px 0; }
.steps { counter-reset: s; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 0 16px; padding: 28px 0; border-top: 1px solid #3a3446; }
.step__no { font-family: var(--font-big); font-weight: 900; font-size: 56px; line-height: 1; color: var(--c-accent-light); }
.step h3 { font-weight: 900; font-size: 22px; color: #fff; margin-bottom: 6px; }
.step img { grid-column: 1 / -1; margin-top: 20px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 1080px) {
  .step { grid-template-columns: 140px 1fr 1fr; gap: 0 40px; align-items: start; }
  .step__no { font-size: 96px; }
  .step img { grid-column: 3; margin: 0; }
}

/* ===== 設備 ===== */
.facility { position: relative; padding: 120px 0; background: var(--c-ink); color: #fff; overflow: hidden; }
.facility__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.facility::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(13, 11, 18, .94) 0%, rgba(13, 11, 18, .78) 55%, rgba(13, 11, 18, .45) 100%); }
.facility__inner { position: relative; z-index: 2; }
.facility__list { max-width: 640px; border-top: 1px solid rgba(255, 255, 255, .4); }
.facility__list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .4); font-weight: 700; }
.facility__list .mono { font-weight: 400; color: var(--c-accent-light); }

/* ===== 品質 ===== */
.quality { padding: 112px 0; }
.quality__inner { display: grid; gap: 40px; }
.quality__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badges li { padding: 8px 16px; border: 2px solid var(--c-ink); font-weight: 700; color: var(--c-ink); }
@media (min-width: 900px) { .quality__inner { grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; } }

/* ===== お問い合わせ ===== */
.contact { position: relative; background: linear-gradient(90deg, rgba(13, 11, 18, .6) 0%, rgba(13, 11, 18, .15) 70%), url("images/surface.webp") center / cover var(--c-accent); background-blend-mode: normal, multiply; color: #fff; padding: 96px 0 112px; overflow: hidden; }
.contact__word { font-family: var(--font-big); font-weight: 900; font-size: 30vw; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .55); white-space: nowrap; margin: 0 0 24px -1vw; }
.contact__inner { position: relative; }
.contact__title { font-weight: 900; font-size: clamp(30px, 4vw, 52px); line-height: 1.3; margin-bottom: 20px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 16px; }
.contact__time { font-size: 15px; }

.company { padding: 112px 0; }
.info { border-top: 3px solid var(--c-ink); }
.info div { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.info dt { font-weight: 700; color: var(--c-ink); }
@media (min-width: 768px) { .info div { grid-template-columns: 10em 1fr; gap: 24px; } }

.footer { background: var(--c-ink); color: #e4e0ee; padding: 64px 20px 40px; font-size: 15px; text-align: center; }
.footer__logo { font-family: var(--font-big); font-weight: 900; font-size: 40px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 16px 0 24px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer__fiction { margin-top: 16px; }

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