/* LIVING LINES — 文字組みはそのままに、色・線・操作で表情を付ける。 */
:root {
  --ivory: #f4f7fc;
  --silver: #dbe3ef;
  --editorial-rule: #c5d2e4;
  --blue-ink: #184f9e;
  --signal: #276dde;
  --signal-soft: #e9f1fd;
  --ink-gradient: linear-gradient(115deg,#06142e 4%,#0a285c 62%,#154477);
  --expressive-ease: cubic-bezier(.22,1,.36,1);
}

/* 大きさ・行間・字間は変更しない。英字の太さと数字の書体だけを整える。 */
.page-hero .page-hero__title { font-weight: 520; color: var(--navy); }
.section-heading__en,.service__en,.portal__title,.origin__en { font-weight: 500; }
.chapter-number,.portal__top > span:first-child,.nav-number {
  font-family: ui-monospace,"SFMono-Regular",Consolas,monospace;
  font-variant-numeric: tabular-nums;
}
.service__en { color: #153d79; }
.section-heading__label,.service-block__heading .eyebrow { color: var(--blue-ink); }
.page-hero { background: linear-gradient(110deg,#fff 26%,#f0f5fd); }
.page-hero--work { background: linear-gradient(115deg,#f5f8fd 40%,#e8f0fc); }
.page-contact .page-hero { background: linear-gradient(115deg,#f4f7fc 30%,#e7f0fc); }
.page-hero--work:after { opacity: .14; }
.page-hero > .container { position: relative; z-index: 1; }
.home-explore { background: linear-gradient(#fff,#f6f9fe); }
.home-belief { background: linear-gradient(#f6f9fe,#fff); }
.values-section { background: linear-gradient(120deg,#f4f7fc,#edf3fc); }
.origin-section { background: #f4f7fc; }
.service:nth-of-type(even) { background: linear-gradient(125deg,#f4f7fc,#f8faff); }
.service-block--process { background: linear-gradient(125deg,#e8f0fc,#f4f7fc); border-color: #cfdaeb; }
.plan:nth-child(2) { background: #edf3fd; border-top-color: var(--blue-ink); }
.contact-paper { border-top-color: var(--blue); }
.work-journey,.cta { background: var(--ink-gradient); }
.cta:before { opacity: .4; }
.portal--work { background: linear-gradient(135deg,#0a1f5c,#123d80); }
.portal--work:hover { background: linear-gradient(135deg,#0d286a,#174d99); }
.portal--contact { background: linear-gradient(135deg,#f2f6fc,#e7effa); }
.portal--contact .brand-art { color: #7292bb; }
.portal--work .brand-art { color: #a2bde5; }
.portal--about .brand-art { display: none; }
.portal--about .brand-art > .art-point { opacity: 0; }
.service-select { border-color: #d1dceb; }
.origin--1 { background: linear-gradient(130deg,#fff,#edf4fd); }
.site-footer { background: #f3f6fb; }
.reading-progress { background: linear-gradient(90deg,var(--navy),var(--blue)); }
.chapter-number { border-color: #a9bddb; color: var(--blue-ink); background: #ffffff90; }
.chapter-number:after { box-shadow: 0 0 0 5px #edf3fc; }
.form-field:focus-within > label { color: var(--blue-ink); }
.choice:has(input:checked) { border-color: var(--blue-ink); background: #edf3fd; }

/* 装飾は絶対配置。文章の幅・段落・行数を変えない。 */
.kinetic-host { position: relative; }
.kinetic-scenery {
  position: absolute; width: 570px; height: 340px; right: -130px; top: -55px;
  color: #6a94ce; opacity: .34; pointer-events: none; overflow: hidden;
  mask-image: linear-gradient(110deg,transparent 8%,#000 65%);
}
.cta .kinetic-scenery { top: -44px; right: -90px; color: #8ab5f4; opacity: .27; }
.kinetic-scenery path,.kinetic-scenery ellipse { fill: none; stroke: currentColor; stroke-width: 1; vector-effect: non-scaling-stroke; }
.kinetic-scenery .kinetic-point { fill: var(--red); stroke: none; }
.kinetic-rule,.kinetic-kicker:after {
  position: absolute; bottom: -1px; left: 0; height: 1px; width: 100%;
  background: linear-gradient(90deg,var(--signal),#7a9fce 32%,transparent 86%);
  transform-origin: left; pointer-events: none;
}
.kinetic-kicker:after { content: ""; top: -1px; bottom: auto; }
.kinetic-kicker.is-traced:after { animation: rule-draw 950ms var(--expressive-ease) both; }
@keyframes rule-draw { from { transform: scaleX(0); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }
.kinetic-rule--top { bottom: auto; top: -1px; }
.cta__link .kinetic-rule { background: linear-gradient(90deg,#628dc5,#9dbce5 50%,transparent); }
.kinetic-accent { fill: none; stroke: var(--blue); stroke-width: 1.5; opacity: 0; pointer-events: none; }
.portal--work .kinetic-accent,.origin--0 .kinetic-accent { stroke: #c8e0ff; }
.kinetic-point-halo { fill: none; stroke: var(--red); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.kinetic-ring {
  position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px);
  max-width: none; overflow: visible; pointer-events: none; color: var(--blue-ink);
}
.kinetic-ring circle { fill: none; stroke: currentColor; stroke-width: .8; opacity: 0; }
.hero__consult .kinetic-ring,.cta__link .kinetic-ring,.portal--work .kinetic-ring { color: #c6dcff; }
.portal__arrow,.hero__consult > span { position: relative; }
.kinetic-card { position: relative; isolation: isolate; }
.kinetic-card:after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--signal);
  opacity: 0; pointer-events: none; transition: opacity 350ms ease;
}
.portal--work.kinetic-card:after { border-color: #a5c7fb; }
.kinetic-card:is(:hover,:focus-visible):after { opacity: .7; }
.kinetic-art { pointer-events: none; }

/* 仕事の流れは、線だけが一度つながる。 */
.journey.kinetic-route:after {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 1px;
  background: linear-gradient(90deg,#709fdb,#d2e5ff); pointer-events: none;
  transform-origin: left; opacity: .65;
}
.journey.kinetic-route.is-traced:after { animation: route-draw 1300ms var(--expressive-ease) both; }
@keyframes route-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 文字を縮めず、矢印と輪郭で「押せる」を伝える。 */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) :is(.portal,.service-select):is(:hover,:focus-visible) { transform: translateY(-3px); }
  html:not([data-motion="off"]) :is(.button,.text-link,.hero__consult,.cta__link,.footer-nav a):is(:hover,:focus-visible) .icon { transform: translate(4px,-4px); }
  html:not([data-motion="off"]) .back-top:is(:hover,:focus-visible) .icon { transform: translateY(-4px); }
  html:not([data-motion="off"]) .service-select:is(:hover,:focus-visible) .icon { transform: translateY(3px); }
  .portal__arrow,.round-arrow,.hero__consult > span { transition: color 250ms,background-color 250ms,border-color 250ms; }
  .service-select:is(:hover,:focus-visible) { background: #0a285c; color: #fff; }
  .button:active:not(:disabled) { box-shadow: inset 0 0 0 1px #a4c8ff; }
}
@media (max-width: 760px) {
  .kinetic-scenery { width: 340px; height: 230px; right: -150px; top: -38px; opacity: .25; }
  .cta .kinetic-scenery { right: -145px; top: -34px; }
  .chapter-number:after { box-shadow: 0 0 0 3px #edf3fc; }
  .kinetic-kicker.is-traced:after { animation-duration: 650ms; }
  .journey.kinetic-route:after { top: 12px; bottom: 0; left: 0; right: auto; width: 1px; height: auto; transform-origin: top; }
  @keyframes route-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
@media (hover: none), (pointer: coarse) {
  .kinetic-card:hover:after { opacity: 0; }
  .kinetic-card:active:after { opacity: .75; }
  .portal--contact:hover { background: linear-gradient(135deg,#f2f6fc,#e7effa); }
  .service-select:hover { background: #fff; color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) {
  .kinetic-art,.kinetic-rule,.kinetic-route:after,.kinetic-ring { animation: none !important; }
}
html[data-motion="off"] .kinetic-route:after { animation: none !important; }
@media print { .kinetic-art,.kinetic-rule,.kinetic-ring,.kinetic-card:after,.kinetic-route:after { display: none; } }

/* 白い土台と文字は固定。原画の細部を保ち、赤い線だけに動きを付ける。 */
.portal--about,
.portal--about:is(:hover,:focus-visible,:active) {
  background-image: url('../img/hill-sculpture-detail.webp');
  background-color: #ececea;
  transform: none !important;
}
.hill-journey { position: absolute; max-width: none; pointer-events: none; z-index: 1; }
.hill-sky-trace,.hill-sky-tip {
  fill: none; stroke: #d1231b; stroke-width: 1.6;
  stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0;
}
.hill-sky-point { fill: #d1231b; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; }
.hill-sky-trace { stroke-dasharray: 100; stroke-dashoffset: 100; }
.hill-sky-tip { stroke: #ad231c; stroke-width: 2.4; stroke-dasharray: 4 100; stroke-dashoffset: 4; }
.hill-ascent-trace { fill: none; stroke: #e3121b; stroke-width: 1.2; vector-effect: non-scaling-stroke; opacity: 0; visibility: visible; }
.hill-ascent-dot { fill: #e3121b; stroke: #fff; stroke-width: 1; opacity: 0; }
.origin--0 .hill-ascent-trace { stroke: #c8e0ff; }
@media (prefers-reduced-motion: reduce) { .hill-journey { display: none; } }
html[data-motion="off"] .hill-journey { display: none; }
