  /* ---- 配色・書体（8/7三者討議の決定：白〜生成り＋藍の差し色／明朝×ゴシック） ---- */
  :root {
    --bg: #f8f6f0;        /* 生成り */
    --paper: #ffffff;
    --ink: #22252b;
    --sub: #5b616b;
    --line: #dcd8cd;
    --indigo: #1f3d5c;    /* 差し色：藍 */
    --indigo-soft: #3d6285;
    --serif: "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "MS PMincho", serif;
    --sans: "Noto Sans JP", "Yu Gothic", "YuGothic", "Meiryo", sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.9; -webkit-font-smoothing: antialiased; }
  a { color: inherit; }

  /* ---- ヘッダー ---- */
  header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 26px 8vw; background: var(--bg); border-bottom: 1px solid var(--line); }
  .logo { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 24px; letter-spacing: .12em; color: var(--indigo); text-decoration: none; }
  .logo .mark { height: 26px; width: auto; display: block; opacity: 0; transform: scale(0.7); transition: opacity .8s ease, transform .8s cubic-bezier(.34,1.56,.64,1); }
  .logo .mark.ready { opacity: 1; transform: scale(1); }
  .logo small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--sub); margin-top: 2px; }
  nav { display: flex; align-items: center; gap: 34px; font-size: 15px; letter-spacing: .06em; }
  nav a { text-decoration: none; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .3s; }
  nav a:hover { border-color: var(--indigo); }
  nav a.contact { border: 1px solid var(--indigo); color: var(--indigo); padding: 11px 28px; border-radius: 999px; transition: background .3s, color .3s; }
  nav a.contact:hover { background: var(--indigo); color: #fff; }

  /* ---- 画像スライドショー（ヘッダー直下） ---- */
  .slideshow { position: relative; height: 34vh; min-height: 230px; overflow: hidden; background: var(--ink); }
  .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
  .slide.active { opacity: 1; }
  .slide::after { content: ""; position: absolute; inset: 0; background: radial-gradient(58% 75% at 50% 50%, rgba(0,0,0,.40), rgba(0,0,0,0) 72%); z-index: 1; pointer-events: none; }
  .slide .ph { position: absolute; inset: -5%; background-size: cover; background-position: center; background-repeat: no-repeat; animation: kenburns 16s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
  .caption-overlay { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(88%, 620px); z-index: 2; text-align: center; color: #fff; font-family: var(--serif); font-size: clamp(17px, 2.4vw, 26px); letter-spacing: .06em; line-height: 1.7; text-shadow: 0 2px 14px rgba(0,0,0,.45); pointer-events: none; }
  .dots { position: absolute; right: 5vw; bottom: 22px; z-index: 3; display: flex; gap: 9px; }
  .dots button { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #fff; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
  .dots button.active { background: #fff; }

  /* ---- 文字のにじみ出現（見出し・スライドキャプション共通） ---- */
  .char { display: inline-block; opacity: 0; filter: blur(9px); transform: translateY(8px) scale(1.06); transition: opacity .7s ease, filter .7s ease, transform .7s ease; transition-delay: calc(var(--i) * 40ms); }
  .revealed .char { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }

  /* ---- ファーストビュー ---- */
  .hero { position: relative; min-height: 60vh; display: flex; align-items: center; overflow: hidden; }
  canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
  .copy { position: relative; z-index: 2; padding: 7vh 8vw 6vh; max-width: 1200px; }
  .en { font-family: var(--serif); font-style: italic; letter-spacing: .18em; color: var(--indigo-soft); font-size: clamp(13px, 1.3vw, 18px); line-height: 2; margin: 0 0 3vh; }
  .reveal-head { opacity: 0; transition: opacity .3s ease; }
  .reveal-head.ready { opacity: 1; }
  h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(25px, 3.6vw, 50px); line-height: 1.5; letter-spacing: .04em; margin: 0 0 3.4vh; }
  h1 .nb { white-space: nowrap; }
  h1 em { font-style: normal; color: var(--indigo); border-bottom: 2px solid var(--indigo-soft); padding-bottom: .04em; }
  .lead { font-size: clamp(15px, 1.35vw, 19px); color: var(--sub); margin: 0 0 4vh; max-width: 34em; }
  .hero-fade { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
  .hero-fade.on { opacity: 1; transform: none; }
  .btns { display: flex; gap: 20px; flex-wrap: wrap; }
  .btn { display: inline-block; padding: 18px 42px; border-radius: 999px; text-decoration: none; font-size: 16px; letter-spacing: .08em; transition: transform .3s, box-shadow .3s, background .3s, color .3s; }
  .btn.fill { background: var(--indigo); color: #fff; }
  .btn.fill:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,61,92,.22); }
  .btn.line { border: 1px solid var(--indigo); color: var(--indigo); }
  .btn.line:hover { background: var(--indigo); color: #fff; }
  .scroll { position: absolute; left: 8vw; bottom: 30px; z-index: 2; font-size: 11px; letter-spacing: .3em; color: var(--sub); writing-mode: vertical-rl; }
  .scroll::after { content: ""; display: block; width: 1px; height: 46px; background: var(--sub); margin: 12px auto 0; }

  /* ---- 事業内容 ---- */
  section.services { padding: 14vh 8vw; background: var(--paper); border-top: 1px solid var(--line); }
  .sec-head { display: flex; align-items: baseline; gap: 22px; margin-bottom: 7vh; }
  .sec-head span { font-family: var(--serif); font-style: italic; letter-spacing: .2em; color: var(--indigo-soft); font-size: 15px; }
  .sec-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 40px); letter-spacing: .08em; margin: 0; }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
  .item { padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 6px 10px; }
  .item:nth-child(even) { padding-left: 36px; padding-right: 0; border-left: 1px solid var(--line); }
  .num { font-family: var(--serif); color: var(--indigo-soft); font-size: 30px; line-height: 1.2; grid-row: span 2; }
  .item h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); letter-spacing: .06em; margin: 0; }
  .item p { margin: 0; color: var(--sub); font-size: 15px; }
  .more { margin-top: 7vh; }

  /* ---- 会社概要（ワンページ内セクション） ---- */
  section.company { padding-top: 14vh; background: var(--bg); border-top: 1px solid var(--line); }
  section.company .sec-head { padding: 0 8vw; margin-bottom: 7vh; }

  /* ---- フッター ---- */
  footer { padding: 9vh 8vw 6vh; background: var(--indigo); color: #e9edf2; }
  footer .name { font-family: var(--serif); font-size: 22px; letter-spacing: .12em; margin: 0 0 6px; }
  footer p { margin: 0; font-size: 14px; color: #b9c5d3; }
  footer .info { list-style: none; margin: 3vh 0 0; padding: 20px 0 0; border-top: 1px solid rgba(233,237,242,.18); display: flex; gap: 8px 32px; flex-wrap: wrap; font-size: 13px; color: #b9c5d3; }
  footer .links { display: flex; gap: 30px; flex-wrap: wrap; margin: 4vh 0; font-size: 14px; }
  footer .links a { text-decoration: none; color: #e9edf2; }
  footer small { display: block; font-size: 12px; color: #8ea0b4; letter-spacing: .06em; }

  /* ---- ふわっと現れる ---- */
  .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
  .rv.on { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .rv, .hero-fade { opacity: 1; transform: none; transition: none; }
    .reveal-head { opacity: 1; }
    .char { opacity: 1; filter: none; transform: none; transition: none; }
    .logo .mark { opacity: 1; transform: none; transition: none; }
    .slide .ph { animation: none; }
    html { scroll-behavior: auto; }
  }
  /* 確認用：URL末尾に ?still を付けると、現れる動きを止めて全体を表示 */
  html.still .rv, html.still .hero-fade { opacity: 1; transform: none; transition: none; }
  html.still .reveal-head { opacity: 1; }
  html.still .char { opacity: 1; filter: none; transform: none; transition: none; }
  html.still .logo .mark { opacity: 1; transform: none; transition: none; }
  html.still .hero { min-height: 60vh; }

  @media (max-width: 820px) {
    nav a:not(.contact) { display: none; }
    header { padding: 16px 6vw; flex-wrap: wrap; row-gap: 10px; }
    .logo { font-size: 17px; gap: 8px; }
    .logo small { display: none; }
    nav .contact { padding: 9px 18px; font-size: 13px; }
    .copy { padding: 6vh 6vw 5vh; }
    .scroll { display: none; }
    .grid { grid-template-columns: 1fr; }
    .item, .item:nth-child(even) { padding: 32px 0; border-left: 0; }
    section.services, footer { padding-left: 6vw; padding-right: 6vw; }
  }
