/* future-apps.jp — 色はロゴ（墨 #252626・臙脂 #8D2529）から */
:root {
  --paper: #ffffff;
  --ink: #252626;
  --mute: #5c5c5c;
  --enji: #8d2529;
  --enji-deep: #6e1b1f;
  --stone: #f2f1ef;
  --rule: #d9d7d3;
  --sans: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  /* 1.25 の比で組む */
  --fs-sm: 0.8125rem;
  --fs-base: 1rem;
  --fs-md: 1.25rem;
  --fs-lg: 1.5625rem;
  --fs-xl: 1.9375rem;
  --wrap: 68rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.85;
  font-feature-settings: "palt" 0;
}

img { max-width: 100%; height: auto; }

a { color: var(--enji); text-underline-offset: 0.2em; }
a:hover { color: var(--enji-deep); }

:focus-visible {
  outline: 3px solid var(--enji);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; color: var(--paper); }

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

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 2; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}
.brand { display: block; line-height: 0; }
.brand img { width: 181px; }
.nav { display: flex; gap: 0.25rem 1.75rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--enji); }
.nav a[aria-current="page"] { border-bottom-color: var(--enji); }

/* トップの大きな印 */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7.5rem);
  border-bottom: 1px solid var(--rule);
}
.mark {
  position: absolute;
  left: clamp(-11rem, -12vw, -4rem);
  top: 50%;
  transform: translateY(-50%);
  height: 128%;
  width: auto;
  pointer-events: none;
}
.mark-ink {
  fill: none;
  stroke-linejoin: miter;
  stroke-linecap: butt;
}
.mark-ink { stroke: var(--ink); stroke-width: 22; }
.mark-enji { fill: var(--enji); }

.hero-inner { position: relative; }
.hero-title { margin-left: clamp(5rem, 24vw, 17rem); }
.hero-title {
  font-weight: 700;
  font-size: clamp(1.75rem, 3.9vw, 2.75rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-top: 0;
  margin-bottom: 0;
  max-width: 20em;
}
/* 語句の途中で折り返さない */
.hero-title span { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .mark-ink { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 1.1s cubic-bezier(.6,0,.2,1) .1s forwards; }
  .mark-enji { opacity: 0; animation: appear .6s ease-out .9s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* 見出しを左、本文を右に置く段 */
.row { padding: clamp(3rem, 7vw, 5rem) 0; border-bottom: 1px solid var(--rule); }
.row-stone { background: var(--stone); }
.row-inner { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem 3rem; }
.row-label {
  margin: 0;
  font-weight: 700;
  font-size: var(--fs-md);
  line-height: 1.6;
}
.row-body { min-width: 0; max-width: 46rem; }
.row-body > :first-child { margin-top: 0; }
.row-body > :last-child { margin-bottom: 0; }

/* 事業内容 */
.business { list-style: none; margin: 0; padding: 0; }
.business li {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 700;
  font-size: clamp(1.5625rem, 3.6vw, 2.4375rem);
  line-height: 1.4;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.business li:last-child { border-bottom: 1px solid var(--rule); }
/* ロゴの臙脂の帯を小さくしたもの */
.bar {
  flex: none;
  width: 0.55em;
  height: 0.55em;
  background: var(--enji);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 22% 72%, 22% 28%);
}

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; }
.news li {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
}
.news li:last-child { border-bottom: 1px solid var(--rule); }
.news time { color: var(--mute); font-variant-numeric: tabular-nums; }
.news a { color: var(--ink); text-decoration: none; font-weight: 700; }
.news a:hover { color: var(--enji); text-decoration: underline; }

.more { margin-top: 1.5rem; }
.more a { font-weight: 700; }

/* 会社情報 */
.facts, .outline { margin: 0; }
.facts div, .outline div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.facts div:last-child, .outline div:last-child { border-bottom: 1px solid var(--rule); }
.facts dt, .outline dt { color: var(--mute); }
.facts dd, .outline dd { margin: 0; }
.plain { list-style: none; margin: 0; padding: 0; }

/* 沿革（順番のある内容なので番号の代わりに年月の縦線でつなぐ） */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li {
  display: grid;
  grid-template-columns: 8.75rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 0 0 1.75rem;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.timeline .when { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; position: relative; padding-left: 1.25rem; }
.timeline .when::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--enji);
  transform: rotate(45deg);
}
.timeline li:not(:last-child) .when::after {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 1.35em;
  bottom: -1.9rem;
  width: 1px;
  background: var(--enji);
}

.map {
  margin-top: 1.25rem;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--rule);
  background: var(--stone);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; }

/* 下層ページ */
.page-head { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 {
  font-weight: 700;
  font-size: clamp(1.9375rem, 4vw, 2.4375rem);
  line-height: 1.4;
  margin: 0;
}
.page-head .lead { margin: 1rem 0 0; max-width: 40em; color: var(--mute); }
.page-date { margin: 0 0 0.5rem; color: var(--mute); }
.page-head + .row { border-top: 1px solid var(--rule); }

.prose { max-width: calc(46rem + 2 * var(--gutter)); padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose h2 {
  font-weight: 700;
  font-size: var(--fs-md);
  margin: 2.5rem 0 0.75rem;
}
.prose ul { padding-left: 1.25rem; }
.signature { margin-top: 2.5rem; color: var(--mute); }

/* フォーム */
.contact-form { max-width: 36rem; }
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; }
.req {
  display: inline-block;
  margin-left: 0.6rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--enji);
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9a9893;
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
}
.field input:focus,
.field textarea:focus { outline: 3px solid var(--enji); outline-offset: 1px; border-color: var(--enji); }
.field [aria-invalid="true"] { border-color: var(--enji); border-width: 2px; }
.field-error { margin: 0.35rem 0 0; color: var(--enji); font-size: var(--fs-sm); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin: 0.5rem 0 1rem; min-height: 65px; }
.note { font-size: var(--fs-sm); color: var(--mute); }
.form-status:empty { display: none; }
.form-status { font-weight: 700; color: var(--enji); }

.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: var(--paper);
  background: var(--enji);
  border: 0;
  border-radius: 2px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--enji-deep); color: var(--paper); }
.button[disabled] { opacity: 0.6; cursor: wait; }

/* フッター */
.site-footer { background: var(--ink); color: #e9e8e6; padding: 3rem 0 2.5rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; }
.site-footer p { margin: 0; }
.footer-name { font-weight: 700; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: flex-start; }
.footer-links a { color: #e9e8e6; }
.footer-links a:hover { color: #fff; }
.copyright { grid-column: 1 / -1; font-size: var(--fs-sm); color: #b9b7b3; }

@media (max-width: 760px) {
  .row-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  div.row-label { display: none; }
  /* スマホでは印を見出しの上に小さく置き、文字に重ねない */
  .hero { padding-top: 12rem; }
  .mark { height: 10rem; top: 1.25rem; transform: none; left: -2.75rem; }
  .hero-title { margin-left: 0; }
  .news li { grid-template-columns: 1fr; }
  .facts div, .outline div, .timeline li { grid-template-columns: 1fr; }
  .timeline li { padding-left: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav { gap: 0.25rem 1.25rem; }
}
