:root {
  --bg: #fdfdfc;
  --ink: #17253b;
  --ink-soft: #46536b;
  --ink-mute: #8a97ab;
  --accent: #008cd1;
  --accent-soft: #cfe7f4;
  --hairline: #e8e6e0;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .05em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* --- header --- */
.site-header { border-bottom: 1px solid var(--hairline); }
.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1040px; margin: 0 auto;
  padding: 18px 32px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { height: 60px; width: auto; }
.menu { display: flex; gap: 30px; }
.menu a { font-size: 12px; letter-spacing: .18em; color: var(--ink-soft); text-decoration: none; }
.menu a:hover { color: var(--accent); }

/* --- hero --- */
.hero {
  position: relative;
  max-width: 1040px; margin: 0 auto;
  min-height: calc(100vh - 92px);
  min-height: min(calc(100svh - 92px), 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px 32px 96px;
}
.kicker { font-size: 11px; letter-spacing: .5em; color: var(--ink-mute); margin-bottom: 30px; }
.headline {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.7; letter-spacing: .08em;
}
.headline em { font-style: normal; color: var(--accent); }
.rule { width: 64px; height: 1px; background: var(--ink); margin: 36px 0 24px; }
.lede { max-width: 520px; color: var(--ink-soft); }
.tate {
  position: absolute; right: 48px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--serif); font-size: 16px; letter-spacing: .48em;
  color: var(--ink-mute);
  border-right: 1px solid var(--accent-soft);
  padding-right: 20px;
  white-space: nowrap;
}

/* --- sections 共通 --- */
.section { border-top: 1px solid var(--hairline); }
.inner { max-width: 1040px; margin: 0 auto; padding: 88px 32px; }
.section-head { display: flex; align-items: baseline; gap: 28px; margin-bottom: 48px; }
.sec-no { font-family: Georgia, "Times New Roman", serif; font-size: 13px; color: var(--accent); letter-spacing: .3em; }
.section-head h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; letter-spacing: .24em; }

/* --- 事業内容 --- */
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.item h3 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: .12em;
  margin-bottom: 14px; padding-top: 18px;
  border-top: 1px solid var(--ink); position: relative;
}
.item h3::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 28px; height: 1px; background: var(--accent);
}
.item p { font-size: 13.5px; color: var(--ink-soft); }

/* --- 事例 --- */
.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px; }
.case { max-width: none; }
.case-tag {
  display: inline-block; font-size: 11px; letter-spacing: .2em; color: var(--accent);
  border: 1px solid var(--accent-soft); border-radius: 999px; padding: 4px 14px;
  margin-bottom: 20px;
}
.case-title {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  letter-spacing: .1em; line-height: 1.8; margin-bottom: 16px;
}
.case-body { font-size: 13.5px; color: var(--ink-soft); }

/* --- 会社概要 --- */
.company { max-width: none; }
.company .row {
  display: grid; grid-template-columns: 180px 1fr;
  padding: 18px 4px; border-bottom: 1px solid var(--hairline);
}
.company .row:first-child { border-top: 1px solid var(--ink); }
.company dt { font-size: 12px; letter-spacing: .2em; color: var(--ink-mute); padding-top: 3px; }
.company dd { font-size: 14px; letter-spacing: .08em; }

/* --- footer --- */
.footer { border-top: 1px solid var(--hairline); padding: 48px 32px 56px; text-align: center; }
.footer-mark { width: 30px; height: auto; margin: 0 auto 14px; }
.footer-copy { font-size: 11px; letter-spacing: .2em; color: var(--ink-mute); }

/* --- reveal --- */
.reveal { transition: opacity .9s ease, transform .9s ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* --- 背の低い画面（ノートPC縮小ウィンドウ・横向きスマホ等） --- */
@media (max-height: 620px) {
  .hero { min-height: 0; padding: 56px 32px 72px; }
}
@media (max-height: 540px) {
  .tate { display: none; }
}

/* --- mobile --- */
@media (max-width: 760px) {
  .nav { padding: 14px 22px; }
  .brand-logo { height: 44px; }
  .menu { gap: 18px; }
  .menu a { font-size: 11px; letter-spacing: .1em; }
  .hero { min-height: calc(100vh - 73px); min-height: calc(100svh - 73px); padding: 40px 22px 72px; }
  .tate { display: none; }
  .inner { padding: 64px 22px; }
  .section-head { gap: 18px; margin-bottom: 40px; }
  .items { grid-template-columns: 1fr; gap: 32px; }
  .cases { grid-template-columns: 1fr; gap: 40px; }
  .company .row { grid-template-columns: 104px 1fr; }
}
