/* Smart Pairs — 小さな会社の仕事を、わかりやすく紹介する。 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #192b36;
  --ink-soft: #52616b;
  --line: #cbd3d6;
  --primary: #2457c5;
  --primary-dark: #173e91;
  --accent: #f2a65a;
  --teal: #09b7b8;
  --tint: #edf8f7;
  --font: "Zen Kaku Gothic New", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --radius: 0px;
  --radius-sm: 3px;
  --container: 1280px;
  --header-h: 80px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
html.reduced { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.9 var(--font); -webkit-font-smoothing: antialiased; }
h1,h2,h3 { margin: 0 0 .65em; line-height: 1.45; font-weight: 700; letter-spacing: .025em; }
p { margin: 0 0 1.3em; }
ul,ol { list-style: none; margin: 0; padding: 0; }
a { color: var(--primary); text-underline-offset: .25em; }
button,input,select { font: inherit; }
svg,img { max-width: 100%; }
button,a,input,select,summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 5px; }
section[tabindex="-1"]:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 8px 16px; color: #fff; background: var(--ink); }
.skip-link:focus { top: 8px; }
.container { width: min(var(--container), calc(100% - 96px)); margin-inline: auto; }
.container-narrow { max-width: 980px; }
.sample-bar { margin: 0; padding: 5px 24px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .045em; text-align: center; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { width: min(var(--container), calc(100% - 96px)); height: var(--header-h); margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-size: 24px; font-weight: 700; text-decoration: none; letter-spacing: .04em; white-space: nowrap; }
.brand-name small { margin-left: 6px; color: var(--ink-soft); font-size: 11px; font-weight: 500; }
.brand-mark { display: block; width: 36px; height: 36px; flex-shrink: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 54px; padding: 10px 26px; border: 1px solid transparent; border-radius: 100px; cursor: pointer; text-decoration: none; font: 700 15px/1.6 var(--font); transition: background .2s, color .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { color: #fff; background: var(--ink); }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 13px; }
.btn-lg { min-height: 64px; padding: 16px 40px; font-size: 17px; }
.btn-arrow { font-size: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 32px; min-height: 44px; padding: 6px 0; color: var(--ink); font-size: 15px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link span { font-size: 22px; font-weight: 400; }
.text-link:hover { color: var(--primary); border-color: var(--primary); }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; margin: 0; }
.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(620px, calc(100svh - var(--header-h) - 30px), 900px); padding: 80px 0; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; width: min(var(--container), calc(100% - 96px)); margin-inline: auto; pointer-events: none; }
.hero-text { position: relative; width: max-content; max-width: 70%; pointer-events: auto; }
.hero-text .eyebrow { color: var(--ink); font-size: 14px; margin-bottom: 28px; }
.hero-text .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 12px 1px 0; background: var(--teal); }
.hero h1 { font-size: clamp(52px, 5.3vw, 78px); line-height: 1.36; letter-spacing: .02em; margin-bottom: 26px; }
.hero-line { position: relative; display: block; width: max-content; max-width: 100%; }
.hero-letter-mask { position: absolute; inset: 0; z-index: 0; color: #fff; -webkit-text-stroke: 24px #fff; pointer-events: none; }
.hero-ink { position: relative; z-index: 1; }
.hero-emphasis { position: relative; white-space: nowrap; }
.hero-emphasis::after { content: ""; position: absolute; z-index: -1; height: 9px; left: 0; right: .12em; bottom: .1em; background: #a1e6de; }
.lead { max-width: 530px; color: var(--ink-soft); font-size: 15px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { box-shadow: 0 0 0 10px #fff; }
.hero-visual { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; min-width: 0; padding: 0; border: 0; appearance: none; background: #fff; color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
.hero-visual:focus-visible { outline-offset: -6px; }
.hero-visual:disabled { cursor: default; opacity: 1; }
.flow-action { position: absolute; right: max(24px, calc((100% - var(--container)) / 2)); bottom: 28px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.hero-visual[data-flow-state="ordered"] .flow-action { color: #087f83; border-color: #a5d5cf; }
.no-webgl .flow-action, html.reduced .flow-action, html:not(.js) .flow-action { display: none; }
html:not(.js) .hero-visual { pointer-events: none; }
.flow-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.flow-fallback { position: absolute; inset: 0; display: none; background: #fff url("flow-fallback.svg") center / cover no-repeat; }
html:not(.js) .flow-canvas,.no-webgl .flow-canvas { display: none; }
html:not(.js) .flow-fallback,.no-webgl .flow-fallback { display: block; }

/* A short page with room for each message. */
.section { padding: 80px 0; border-top: 1px solid var(--line); }
/* TOPのドットと整列した点・線を、背景色を保つ静止した装飾として使う。 */
.flow-backdrop { position: relative; isolation: isolate; }
.flow-backdrop::before, .flow-backdrop::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.flow-backdrop::before {
  background-image: radial-gradient(circle, #6b94a824 .8px, #6b94a800 1.3px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 16%, #0000 100%);
  mask-image: radial-gradient(ellipse closest-side at center, #000 16%, #0000 100%);
}
.flow-backdrop::after {
  background-image: url("images/section-flow-line.svg"), url("images/section-flow-line.svg");
  background-repeat: no-repeat;
  background-position: center top 4px, center bottom 4px;
  background-size: calc(100% - 48px) 48px;
  opacity: .6;
}
@media (max-width: 760px) {
  .flow-backdrop::before { background-size: 22px 22px; }
  .flow-backdrop::after { background-size: calc(100% - 24px) 32px; background-position: center top 2px, center bottom 2px; }
}
.section-heading { margin-bottom: 36px; }
.section h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.55; letter-spacing: .035em; margin-bottom: 0; }
.section-lead { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.text-accent { color: #087f83; }
.mobile-break { display: none; }
.mission { background: var(--tint); }
.mission-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.mission-art img { display: block; width: 100%; height: auto; }
.mission h2 { font-size: clamp(30px, 3.15vw, 44px); line-height: 1.5; }
.mission-copy > p { margin: 20px 0 24px; color: #304653; font-size: 16px; font-weight: 500; line-height: 1.9; }
.mission-details { margin: 0; border-top: 1px solid #b8d5d2; }
.mission-details > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding-top: 16px; }
.mission-details dt { color: #07767a; font-size: 16px; font-weight: 700; line-height: 1.9; }
.mission-details dd { margin: 0; color: #304653; font-size: 16px; font-weight: 500; line-height: 1.9; }
.mission-line { display: block; }
.mission-phrase, .text-phrase { display: inline-block; max-width: 100%; }
/* TOPから各セクションを右へたどる。1画面に収まる場合だけJSで有効化。 */
.story-scroll.is-active { height: calc(var(--story-height) + var(--story-travel)); }
.story-scroll.is-active .story-viewport { position: sticky; top: var(--header-h); height: var(--story-height); overflow: clip; }
.story-scroll.is-active .story-track { display: flex; height: 100%; transform: translate3d(0, 0, 0); }
.story-scroll.is-active .story-track > section { display: flex; align-items: center; flex: 0 0 100%; min-width: 0; height: 100%; padding-block: 16px; }
.story-scroll.is-active .story-track > .hero { min-height: 0; padding-block: 0; }
.story-scroll.is-active .section-heading { margin-bottom: 24px; }
.story-scroll.is-active .news { background: var(--bg); }
.story-scroll.is-active .news-heading h2 { font-size: clamp(28px, 2.6vw, 38px); }
.story-scroll.is-active .news-heading { margin-bottom: 24px; }
.story-scroll.is-active .news-heading h2::after { margin-top: 12px; }
.story-scroll.is-active .news-heading .section-lead { margin-top: 12px; }
.story-scroll.is-active .news-all { margin-top: 24px; }
.news-heading { margin-bottom: 48px; }
.news-kicker { color: #087f83; font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.news-heading h2::after, .news-heading h1::after { content: ""; display: block; width: 64px; height: 6px; margin-top: 22px; border-radius: 6px; background: var(--teal); }
.news-heading .section-lead { margin-top: 20px; font-size: 12px; }
.news-grid { display: grid; gap: 28px; }
.news-grid > li { min-width: 0; }
.news-rail { grid-auto-flow: column; grid-auto-columns: clamp(260px, 28vw, 360px); justify-content: start; overflow-x: auto; padding: 6px 6px 24px; scroll-snap-type: x proximity; scroll-padding-inline: 6px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #aab7be #edf0f2; }
.news-rail > li { scroll-snap-align: start; }
.news-rail::-webkit-scrollbar { height: 10px; }
.news-rail::-webkit-scrollbar-track { background: #edf0f2; border-radius: 10px; }
.news-rail::-webkit-scrollbar-thumb { background: #aab7be; border-radius: 10px; }
.news-card { display: block; height: 100%; overflow: hidden; color: var(--ink); text-decoration: none; border: 1px solid #e1e6e8; border-radius: 20px; background: #fff; box-shadow: 0 2px 9px #192b3612; }
a.news-card:focus-visible { outline-offset: 2px; }
.news-card:target { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.topic-card { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; width: 100%; min-height: 240px; padding: 24px; border-color: #b9cdd0; border-radius: 0; background: #fff; box-shadow: none; font: inherit; text-align: left; cursor: pointer; transition: border-color .7s ease, color .7s ease; }
:is(.topic-card, .diagonal-fill-button.news-all, .contact-cta)::before { content: ""; position: absolute; inset: -80%; z-index: 0; pointer-events: none; background: radial-gradient(ellipse closest-side at center, #4160d1 0%, #213aba 45%, #213aba 72%, #213aba00 100%); opacity: 0; transform: scale(0); transition: transform 1.6s cubic-bezier(.2,.8,.2,1), opacity .7s ease; }
.topic-card > span { position: relative; z-index: 1; }
.topic-card .news-title, .topic-card .news-intro { display: block; margin: 0; }
.topic-card .news-intro, .topic-card .topic-arrow { transition: color .7s ease; }
.topic-arrow { align-self: flex-end; margin-top: auto; color: var(--primary); font-size: 24px; line-height: 1; }
.topic-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; }
.topic-meta .topic-arrow { margin: 0; }
.topic-date { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.topic-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 240px; padding: 24px; border-color: #b9cdd0; border-style: dashed; border-radius: 0; box-shadow: none; color: #213aba; font-size: 20px; font-weight: 500; letter-spacing: .04em; }
.topic-placeholder p { margin: 0; }
.topic-card:hover, .topic-card:focus-visible { border-color: #213aba; color: #fff; }
.topic-card:hover::before, .topic-card:focus-visible::before,
.diagonal-fill-button.news-all:not(:disabled):is(:hover, :focus-visible)::before,
.contact-cta:is(:hover, :focus-visible, :active)::before { opacity: 1; transform: scale(1); }
.topic-card:hover .news-intro, .topic-card:hover .topic-arrow,
.topic-card:focus-visible .news-intro, .topic-card:focus-visible .topic-arrow { color: #fff; }
.topic-card:focus-visible { outline-offset: 2px; }
.news-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--tint); }
.news-copy { display: flex; flex-direction: column; align-items: flex-start; min-height: 260px; padding: 24px; }
.news-category { display: inline-block; padding: 2px 10px; border-radius: 20px; background: #dcf2ef; font-size: 11px; line-height: 1.7; }
.news-title { font-size: 20px; line-height: 1.65; font-weight: 700; margin: 12px 0 0; }
.news-intro { color: var(--ink-soft); font-size: 14px; line-height: 1.8; margin: 12px 0 24px; }
.news-copy time { color: var(--ink-soft); font-size: 12px; font-weight: 700; margin-top: auto; padding-top: 4px; font-variant-numeric: tabular-nums; }
a.news-card:hover { border-color: #9fb7c8; box-shadow: 0 4px 14px #192b361c; }
a.news-card:hover .news-title { text-decoration: underline; text-underline-offset: 5px; }
.news-all { margin-top: 40px; width: min(100%, 280px); min-height: 60px; justify-content: space-between; font-size: 15px; }
/* 一覧ボタンも上のトピックス枠と同じ中央から広がる塗り。 */
.diagonal-fill-button.news-all { border-radius: 0; transition: border-color .7s ease, color .7s ease; }
.diagonal-fill-button.news-all .diagonal-fill-button__label { transition-duration: .7s; }
.news-archive { padding: 64px 0 80px; }
.news-archive h1 { font-size: clamp(30px, 3vw, 42px); margin: 0; }
.archive-back { margin-bottom: 40px; }
.news-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-article-body { color: var(--ink-soft); font-size: 14px; line-height: 1.9; border-top: 1px solid var(--line); padding-top: 16px; margin: 0 0 24px; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.service-item { min-width: 0; }
.service-art { background: var(--tint); padding: 10px 36px; margin-bottom: 24px; }
.service-art svg { display: block; width: 100%; height: 180px; }
.checklist-art .check-mark { stroke-dasharray: 1; stroke-dashoffset: 0; }
@keyframes service-check-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduced) .checklist-art.is-playing .check-mark { animation: service-check-draw .48s ease-in-out both; }
  html:not(.reduced) .checklist-art.is-playing .check-mark-one { animation-delay: .25s; }
  html:not(.reduced) .checklist-art.is-playing .check-mark-two { animation-delay: .8s; }
  html:not(.reduced) .checklist-art.is-playing .check-mark-three { animation-delay: 1.35s; }
  html:not(.reduced) .checklist-art.is-playing .check-mark-done { animation-delay: 2s; }
  html:not(.reduced) .checklist-art.is-paused .check-mark { animation-play-state: paused; }
}
.window-art .window-piece { transform-box: fill-box; transform-origin: center; }
.window-sidebar { --scatter-x: 4px; --scatter-y: 10px; --scatter-angle: 0deg; }
.window-card-blue { --scatter-x: 62px; --scatter-y: 14px; --scatter-angle: 0deg; }
.window-card-teal { --scatter-x: -60px; --scatter-y: 36px; --scatter-angle: 0deg; }
.window-line-one { --scatter-x: -68px; --scatter-y: -46px; --scatter-angle: 0deg; }
.window-line-two { --scatter-x: 43px; --scatter-y: 13px; --scatter-angle: 0deg; }
@keyframes service-window-organize {
  0%, 22% { transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-angle)); }
  100% { transform: translate(0, 0) rotate(0); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduced) .window-art.is-playing .window-piece { animation: service-window-organize 2.7s cubic-bezier(.22,.75,.25,1) both; }
  html:not(.reduced) .window-art.is-playing .window-sidebar { animation-delay: .15s; }
  html:not(.reduced) .window-art.is-playing .window-card-blue { animation-delay: .3s; }
  html:not(.reduced) .window-art.is-playing .window-card-teal { animation-delay: .45s; }
  html:not(.reduced) .window-art.is-playing .window-line-one { animation-delay: .55s; }
  html:not(.reduced) .window-art.is-playing .window-line-two { animation-delay: .65s; }
  html:not(.reduced) .window-art.is-paused .window-piece { animation-play-state: paused; }
}
.connect-art .connect-line, .connect-art .connect-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.connect-art .connect-point { transform-box: fill-box; transform-origin: center; }
@keyframes service-connect-point {
  from { opacity: 0; transform: scale(.2); }
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduced) .connect-art.is-playing .connect-line { animation: service-check-draw .65s ease-in-out both; }
  html:not(.reduced) .connect-art.is-playing .connect-input-left { animation-delay: .2s; }
  html:not(.reduced) .connect-art.is-playing .connect-input-top { animation-delay: .35s; }
  html:not(.reduced) .connect-art.is-playing .connect-output { animation-duration: .75s; animation-delay: 1.25s; }
  html:not(.reduced) .connect-art.is-playing .connect-point { animation: service-connect-point .3s ease-out both; }
  html:not(.reduced) .connect-art.is-playing .connect-junction { animation-delay: 1s; }
  html:not(.reduced) .connect-art.is-playing .connect-complete { animation-delay: 1.95s; }
  html:not(.reduced) .connect-art.is-playing .connect-check { animation: service-check-draw .45s ease-in-out 2.25s both; }
  html:not(.reduced) .connect-art.is-paused .connect-line,
  html:not(.reduced) .connect-art.is-paused .connect-point,
  html:not(.reduced) .connect-art.is-paused .connect-check { animation-play-state: paused; }
}
.service-copy h3 { font-size: 23px; margin-bottom: 12px; }
.service-copy p { color: #304653; font-size: 16px; font-weight: 500; line-height: 1.9; margin: 0; }
.service-copy .service-line { display: block; }
.service-copy .service-phrase { display: inline-block; max-width: 100%; }
.service-next { margin-top: 32px; }
.price { background: #f5f8f8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; border-top: 1px solid var(--ink); }
.step-num { color: var(--primary); font-size: 25px; line-height: 1.4; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 16px; font-weight: 500; line-height: 1.9; color: #304653; margin: 0; }
.price-note { color: var(--ink-soft); font-size: 12px; margin: 32px 0 12px; }
.plan-list { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); background: #fff; }
.plan { position: relative; min-width: 0; padding: 28px; border-right: 1px solid var(--line); border-top: 3px solid transparent; background: #fff; transition: transform .24s ease; }
.plan::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; box-shadow: 0 0 0 1px var(--line), 0 14px 28px #192b3626; transition: opacity .24s ease; }
@media (hover: hover) and (pointer: fine) {
  .plan:hover { z-index: 1; transform: translateY(-8px) scale(1.025); }
  .plan:hover::after { opacity: 1; }
}
.plan:last-child { border-right: 0; }
.plan-featured { border-top-color: var(--primary); }
.plan h3 { font-size: 20px; }
.plan > p:last-child { color: #304653; font-size: 16px; font-weight: 500; line-height: 1.9; margin: 0; }
.plan-price { font-size: 13px; white-space: nowrap; margin: 22px 0 14px; }
.plan-price span { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.025em; margin-right: 3px; }
summary::-webkit-details-marker { display: none; }
.contact { background: #dbf3f0; }
.contact-inner { text-align: center; }
.contact h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.6; }
.contact-inner > p { margin: 20px 0 28px; font-size: 14px; }
.contact-cta.btn-primary { position: relative; isolation: isolate; overflow: hidden; border-radius: 0; background: #fff; color: #213aba; border-color: #213aba; transition: border-color .7s ease, color .7s ease; }
.contact-cta > span { position: relative; z-index: 1; }
.contact-cta:is(:hover, :focus-visible, :active) { color: #fff; }
.company { padding-block: 64px; }
.company-inner { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.company h2 { font-size: 28px; }
.company h2 span { color: var(--ink-soft); font-size: 13px; font-weight: 400; }
.company-table { margin: 0; border-top: 1px solid #a9ccc7; }
.company-table div { display: grid; grid-template-columns: 6em 1fr; gap: 24px; padding: 16px 0; border-bottom: 1px solid #a9ccc7; font-size: 14px; }
.company-table dt { font-weight: 500; }
.company-table dd { margin: 0; color: var(--ink-soft); }
.company-social { grid-column: 2; }
.social-heading { margin: 0 0 14px; font-size: 14px; font-weight: 700; }
.social-list { display: flex; flex-wrap: wrap; gap: 14px; }
.social-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 104px; min-height: 104px; padding: 14px 8px; border: 1px solid #d2dfe0; border-radius: 16px; background: #fff; cursor: pointer; }
.social-button svg { display: block; flex: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.social-button span { color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.4; }
.social-button:hover { border-color: currentColor; background: var(--tint); }
.social-line { color: #008c45; }
.social-facebook { color: #2457c5; }
.social-x { color: var(--ink); }
.social-instagram { color: #a84191; }
.social-camera-lens { stroke: #c33e70; }
.social-camera-flash { stroke: #b96a1e; }
.social-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.8; }
.site-footer { border-top: 1px solid var(--ink); padding: 0 0 24px; }
.footer-top { display: flex; align-items: center; gap: 24px; padding: 32px 0; }
.footer-brand { color: var(--ink); font-size: 30px; font-weight: 700; text-decoration: none; letter-spacing: .04em; line-height: 1.5; }
.footer-brand small { font-size: 12px; margin-left: 8px; }
.footer-up { margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); text-decoration: none; border: 1px solid var(--ink); border-radius: 50%; }
.footer-note { border-top: 1px solid var(--line); padding-top: 20px; color: var(--ink-soft); font-size: 11px; line-height: 1.8; margin: 0; }
/* 会社概要とサイト末尾を、最後の1コマにまとめる。 */
.company-frame { width: 100%; }
.company-frame .site-footer { width: min(980px, calc(100% - 96px)); margin: 20px auto 0; padding-bottom: 0; }
.company-frame .site-footer > .container { width: 100%; }
.company-frame .footer-top { padding-block: 12px; }
.company-frame .footer-brand { font-size: 22px; }
.company-frame .footer-note { padding-top: 8px; }
@media (min-width: 1000px) {
  .company-frame .company-inner { grid-template-columns: minmax(0, 1fr) 240px; gap: 16px 48px; }
  .company-frame .company-inner > h2 { grid-column: 1 / -1; }
  .company-frame .company-table { grid-column: 1; }
  .company-frame .company-social { grid-column: 2; grid-row: 2; }
  .company-frame .social-list { display: grid; grid-template-columns: repeat(2, 80px); gap: 12px; }
  .company-frame .social-button { width: 80px; min-height: 80px; padding: 8px; gap: 6px; }
}
@media (max-width: 1080px) {
  .company-frame .site-footer { width: calc(100% - 64px); }
}
@media (max-width: 760px) {
  .company-frame .site-footer { width: calc(100% - 40px); }
}
.sample-toast { position: fixed; bottom: 24px; left: 50%; z-index: 80; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: min(600px, calc(100% - 32px)); padding: 18px 24px; color: var(--ink); background: #fff; border: 1px solid var(--ink); box-shadow: 0 6px 24px #192b361a; }
.sample-toast[hidden] { display: none; }
.sample-toast p { margin: 0; flex: 1; font-size: 13px; }
@media (max-width: 1080px) {
  .container, .header-inner, .hero-inner { width: calc(100% - 64px); }
  .hero h1 { font-size: clamp(42px, 5.65vw, 58px); }
  .hero-text .eyebrow { font-size: 12px; }
  .mission-inner { gap: 40px; }
  .service-list, .steps { gap: 24px; }
  .service-art { padding-inline: 20px; }
  .service-copy h3 { font-size: 21px; }
  .plan { padding: 24px 18px; }
  .plan h3 { font-size: 18px; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  body { font-size: 15px; }
  .container, .header-inner, .hero-inner { width: calc(100% - 40px); }
  .sample-bar { font-size: 10px; padding: 5px 20px; }
  .brand { font-size: 21px; gap: 9px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name small { margin-left: 2px; font-size: 10px; }
  .hero { min-height: clamp(560px, calc(100svh - var(--header-h) - 44px), 760px); padding: 56px 0; }
  .hero-text { max-width: 100%; }
  .hero-text .eyebrow { margin-bottom: 22px; font-size: 11px; letter-spacing: .03em; }
  .hero h1 { font-size: clamp(32px, 9.8vw, 64px); line-height: 1.36; margin-bottom: 24px; }
  .hero-letter-mask { -webkit-text-stroke-width: 16px; }
  .hero-emphasis::after { height: 6px; }
  .lead { font-size: 14px; line-height: 2; max-width: 480px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { font-size: 14px; padding: 10px 20px; min-height: 48px; gap: 20px; }
  .flow-action { right: 20px; bottom: 24px; }
  .flow-fallback { background-image: url("flow-fallback-mobile.svg"); background-size: contain; }
  .section { padding: 56px 0; }
  .section-heading { margin-bottom: 28px; }
  .section h2 { font-size: 29px; }
  .section-lead { font-size: 13px; margin-top: 12px; }
  .mission { padding: 40px 0; }
  .mission-inner { grid-template-columns: 1fr; gap: 20px; }
  .mission-art { max-width: 220px; width: 100%; margin-inline: auto; }
  .mission h2 { font-size: clamp(22px, 7vw, 29px); }
  .mobile-break { display: initial; }
  .mission-copy > p { margin: 16px 0 20px; }
  .mission-details > div { grid-template-columns: 1fr; gap: 3px; padding-top: 14px; }
  .news-heading { margin-bottom: 32px; }
  .news-kicker { font-size: 16px; }
  .news-heading h2::after, .news-heading h1::after { width: 56px; margin-top: 18px; }
  .news-grid { gap: 20px; }
  .news-rail { grid-auto-columns: calc(100% - 32px); }
  .news-copy { min-height: 272px; padding: 20px; }
  .news-title { font-size: 19px; }
  .news-intro { font-size: 14px; }
  .news-all { margin-top: 28px; min-width: 0; width: min(100%, 280px); font-size: 14px; }
  .news-archive { padding: 40px 0 56px; }
  .news-archive-grid { grid-template-columns: 1fr; }
  .service-list { grid-template-columns: 1fr; gap: 28px; }
  .service-item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; align-items: start; }
  .service-art { padding: 6px; margin: 0; }
  .service-art svg { height: 80px; }
  .service-copy h3 { font-size: 21px; margin-bottom: 8px; }
  .service-copy p { font-size: 16px; }
  .service-copy .service-line { display: block; }
  .service-copy .service-phrase { display: inline-block; max-width: 100%; }
  .service-next { margin-top: 28px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 20px 0; }
  .steps h3 { font-size: 18px; }
  .price-note { margin-top: 24px; }
  .plan-list { margin-top: 24px; grid-template-columns: 1fr; }
  .plan, .plan:last-child { padding: 24px; border-right: 0; border-bottom: 1px solid var(--line); }
  .plan:last-child { border-bottom: 0; }
  .plan.plan-featured { border-bottom: 3px solid var(--primary); }
  .plan h3 { font-size: 20px; }
  .plan-price { margin: 12px 0 8px; }
  .plan-price span { font-size: 32px; }
  .contact h2 { font-size: clamp(23px, 7vw, 32px); }
  .contact-inner > p { font-size: 13px; }
  .contact .btn-lg { font-size: 15px; padding-inline: 30px; }
  .company { padding-block: 48px; }
  .company-inner { grid-template-columns: 1fr; gap: 24px; }
  .company-social { grid-column: 1; }
  .social-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .social-button { width: 100%; min-height: 88px; padding: 12px 4px; border-radius: 12px; }
  .social-button svg { width: 32px; height: 32px; }
  .social-button span { font-size: 10px; }
  .company-table div { font-size: 13px; grid-template-columns: 5em 1fr; gap: 16px; }
  .footer-top { gap: 16px; padding-block: 28px; }
  .footer-brand { font-size: 26px; }
  .footer-up { width: 40px; height: 40px; flex-shrink: 0; }
  .footer-note { font-size: 10px; }
  .sample-toast { padding: 14px 16px; gap: 12px; }
  .sample-toast p { font-size: 12px; }
}
@media (max-width: 360px) {
  .service-item { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; }
  .service-art svg { height: 64px; }
  .service-copy h3 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .plan, .plan:hover { transform: none; transition: none; }
  .plan::after { transition: none; }
  .topic-card, .topic-card::before, .topic-card .news-intro, .topic-card .topic-arrow { transition: none; }
  .contact-cta.btn-primary, .contact-cta.btn-primary::before { transition: none; }
  .diagonal-fill-button.news-all, .diagonal-fill-button.news-all::before, .diagonal-fill-button.news-all .diagonal-fill-button__label { transition: none; }
  .diagonal-fill-button.news-all::before { opacity: 1; transform: scale(1); }
}
html.reduced .btn { transition: none; }
html.reduced .plan { transform: none; transition: none; }
html.reduced .plan::after { transition: none; }
html.reduced .topic-card, html.reduced .topic-card::before, html.reduced .topic-card .news-intro, html.reduced .topic-card .topic-arrow { transition: none; }
html.reduced .contact-cta, html.reduced .contact-cta::before { transition: none; }
html.reduced .diagonal-fill-button.news-all, html.reduced .diagonal-fill-button.news-all::before, html.reduced .diagonal-fill-button.news-all .diagonal-fill-button__label { transition: none; }
html.reduced .diagonal-fill-button.news-all::before { opacity: 1; transform: scale(1); }

/* Menu Motion / industrial + optical + rotate */
#site-menu{--mk-bg:#213aba;--mk-fg:#f5f4ec;--mk-page:#f5f4ec;--mk-page-fg:#1f2020;--mk-button-bg:#20175e;--mk-button-fg:#f5f4ec;--mk-duration:750ms;--mk-ease:cubic-bezier(.2,1.2,.3,1);--mk-delay:100ms;--mk-stagger:90ms;--mk-distance:49px;--duration:var(--mk-duration);--motion-duration:var(--mk-duration);--ease:var(--mk-ease);font:500 16px/1.5 Arial,'Hiragino Kaku Gothic ProN',sans-serif;position:fixed;inset:0;z-index:1000;pointer-events:none;}
#site-menu,#site-menu *,#site-menu *::before,#site-menu *::after{box-sizing:border-box;}
#site-menu .mk-toggle{position:absolute;z-index:4;top:22px;right:22px;display:flex;align-items:center;justify-content:center;gap:10px;min-width:56px;min-height:56px;height:56px;padding:10px;border:0;border-radius:50%;background:var(--mk-button-bg);color:var(--mk-button-fg);font:inherit;pointer-events:auto;cursor:pointer;}
#site-menu .mk-word{font-size:11px;letter-spacing:.1em;}
#site-menu .mk-glyph{position:relative;display:block;width:28px;height:30px;transition:transform var(--mk-duration) var(--mk-ease);}
#site-menu .mk-glyph b{position:absolute;left:0;width:28px;height:3px;border-radius:3px;background:currentColor;transition:transform var(--mk-duration) var(--mk-ease),opacity var(--mk-duration),width var(--mk-duration),height var(--mk-duration);}
#site-menu .mk-glyph b:nth-child(1){top:5px;}
#site-menu .mk-glyph b:nth-child(2){top:14px;}
#site-menu .mk-glyph b:nth-child(3){top:23px;}
#site-menu.is-open .mk-glyph b:nth-child(1){transform:translateY(9px) rotate(45deg);}
#site-menu.is-open .mk-glyph b:nth-child(2){transform:scaleX(0);opacity:0;}
#site-menu.is-open .mk-glyph b:nth-child(3){transform:translateY(-9px) rotate(-45deg);}
#site-menu .mk-toggle { border-radius:50%; }
#site-menu .mk-glyph b:nth-child(2) { width:18px;left:5px; }
#site-menu.is-open .mk-glyph { transform:rotate(270deg); }
#site-menu .mk-toggle{background:var(--mk-button-bg);color:var(--mk-button-fg);}
#site-menu .mk-backdrop{position:absolute;inset:0;z-index:1;background:#0006;opacity:0;visibility:hidden;pointer-events:none;transition:opacity var(--mk-duration) ease,visibility 0s var(--mk-duration);}
#site-menu.is-open .mk-backdrop{visibility:visible;opacity:1;pointer-events:auto;transition-delay:0s;}
#site-menu .mk-panel{position:absolute;inset:0;z-index:2;padding:112px 32px 40px;background:var(--mk-bg);color:var(--mk-fg);overflow-y:auto;overscroll-behavior:contain;visibility:hidden;pointer-events:none;transition:transform var(--mk-duration) var(--mk-ease),clip-path var(--mk-duration) var(--mk-ease),opacity var(--mk-duration) var(--mk-ease),border-radius var(--mk-duration) var(--mk-ease);transform:translateX(100%);}
#site-menu.is-closing .mk-panel{visibility:visible;}
#site-menu.is-open .mk-panel{visibility:visible;pointer-events:auto;transform:none;}
#site-menu .mk-list{display:flex;flex-direction:column;gap:8px;list-style:none;margin:0;padding:0;}
#site-menu .mk-list li{margin:0;padding:0;min-width:0;}
#site-menu .mk-link{display:block;min-height:44px;padding:8px 0;color:inherit;text-decoration:none;font-size:clamp(20px,5vw,49px);font-weight:600;line-height:1.35;overflow-wrap:anywhere;opacity:0;transform:translateY(var(--mk-distance)) rotate(10deg);filter:none;transition:transform calc(var(--mk-duration) * .8) var(--mk-ease),opacity calc(var(--mk-duration) * .8) ease,filter calc(var(--mk-duration) * .8) ease;transition-delay:0ms;}
#site-menu.is-open .mk-link{opacity:1;transform:none;filter:none;transition-delay:calc(var(--mk-delay) + var(--mk-i) * var(--mk-stagger));}
#site-menu .mk-link:hover{text-decoration:underline;text-underline-offset:6px;}
#site-menu .mk-toggle:focus-visible,#site-menu .mk-link:focus-visible{outline:2px solid currentColor;outline-offset:4px;}
@media(max-width:420px){#site-menu .mk-panel{padding:104px 24px 32px;} #site-menu .mk-toggle{top:18px;right:18px;}}
@media(prefers-reduced-motion:reduce){#site-menu *,#site-menu *::before,#site-menu *::after{transition-duration:.01ms!important;transition-delay:0ms!important;}}

/* 配置と操作はこのページのヘッダーに合わせる。動き・配色は指定どおり。 */
#site-menu { --mk-panel-width: min(100%, max(320px, 33.333333%)); overflow: hidden; }
#site-menu .mk-panel { left: auto; right: 0; width: var(--mk-panel-width); }
#site-menu .mk-link { font-size: clamp(20px, 2.1vw, 32px); }
#site-menu .mk-toggle { top: var(--menu-toggle-top, 40px); right: var(--menu-toggle-right, 16px); }
#site-menu.is-open .mk-toggle { right: min(var(--menu-toggle-right, 16px), calc(var(--mk-panel-width) - 72px)); }
.header-inner .brand { padding-right: 72px; }
html.menu-is-open, html.menu-is-open body { overflow: hidden; }
html.menu-is-open body { padding-right: var(--menu-scrollbar-gap, 0px); }
#site-menu .mk-list li:nth-child(1) { --mk-i: 0; }
#site-menu .mk-list li:nth-child(2) { --mk-i: 1; }
#site-menu .mk-list li:nth-child(3) { --mk-i: 2; }
#site-menu .mk-list li:nth-child(4) { --mk-i: 3; }
#site-menu .mk-list li:nth-child(5) { --mk-i: 4; }
html.reduced #site-menu *, html.reduced #site-menu *::before, html.reduced #site-menu *::after { transition-duration: .01ms !important; transition-delay: 0ms !important; }
html:not(.js) #site-menu { position: static; pointer-events: auto; }
html:not(.js) #site-menu .mk-toggle, html:not(.js) #site-menu .mk-backdrop { display: none; }
html:not(.js) #site-menu .mk-panel { position: static; width: auto; padding: 16px 24px; visibility: visible; pointer-events: auto; transform: none; }
html:not(.js) #site-menu .mk-list { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
html:not(.js) #site-menu .mk-link { font-size: 16px; opacity: 1; transform: none; }
