:root {
  --blue: #3a4896;
  --blue-dark: #2b3675;
  --ink: #1f2533;
  --muted: #474e5f;
  --line: #e3ddd2;
  --tint: #f7f3ec;   /* 生成り（きなり）色の、温かい白 */
  --card: #ffffff;
  --serif: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "MS PMincho", serif;
  --sans: "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.95;
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 3px; }
section[id], main[id] { scroll-margin-top: 72px; }

.container { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1080px, 100% - 40px);
  margin-inline: auto;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.brand img { height: 32px; width: auto; }
.site-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; display: inline-block; padding: 6px 0; text-decoration: none; font-size: .95rem; letter-spacing: .08em; color: var(--ink); transition: color .3s; }
.site-nav a:hover { color: var(--blue); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.site-nav a:hover::after { transform: scaleX(1); }

.menu-button {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: none; cursor: pointer;
}
.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.menu-button::before { top: 15px; }
.menu-button span { top: 21px; }
.menu-button::after { top: 27px; }
.menu-button[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.menu-button[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }
.menu-button[aria-expanded="true"] span { opacity: 0; }

/* ---------- トップ ---------- */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.since {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 1.2em;
  color: var(--blue); font-size: .82rem; font-weight: 700; letter-spacing: .3em;
}
.since::before { content: ""; width: 0; height: 1px; background: var(--blue); animation: draw 1.2s .3s ease forwards; }
@keyframes draw { to { width: 48px; } }
.hero h1 {
  margin: 0 0 .4em;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: .1em;
  line-height: 1.3;
}
.lead { margin: 0 0 1.2em; color: var(--blue); font-size: clamp(1.05rem, 2vw, 1.25rem); letter-spacing: .16em; }
.intro { margin: 0 0 2em; max-width: 30em; color: var(--muted); }

.rise { opacity: 0; transform: translateY(18px); animation: rise 1s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: .12em;
  transition: background .3s, color .3s, translate .3s;
}
.btn:hover { translate: 0 -2px; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { color: var(--blue); background: #fff; }
.btn.ghost:hover { background: #eef0fa; }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%; height: auto;
  filter: drop-shadow(0 18px 28px rgba(60, 45, 20, .22));
  clip-path: inset(0 100% 0 0);
  animation: wipe 1.4s .2s cubic-bezier(.7, 0, .2, 1) forwards, settle 2.6s .2s ease-out both;
}
.hero-photo figcaption { margin-top: 14px; color: var(--muted); font-family: var(--serif); font-size: .9rem; letter-spacing: .1em; text-align: right; }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { scale: 1.08; } to { scale: 1; } }

/* ---------- 共通のブロック ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section.tint { background: var(--tint); }
.section-head {
  position: relative;
  display: flex; align-items: baseline; gap: 18px;
  margin-bottom: 40px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.section-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s .2s cubic-bezier(.2, .7, .2, 1);
}
.section-head.is-visible::after,
html:not(.js) .section-head::after { transform: scaleX(.1); }
.section-head .num { color: var(--blue); font-family: var(--serif); font-size: 1.05rem; letter-spacing: .2em; }
.section-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.1rem); letter-spacing: .1em; }
.section-head .en { margin-left: auto; color: var(--muted); font-size: .75rem; letter-spacing: .3em; }

/* 各ブロックの最初の文（前文） */
.section-lead {
  margin: 0 0 1.6em;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2vw, 1.25rem);
  line-height: 2;
  color: var(--ink);
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 線画のアイコン（自作。外部の部品は使わない） */
.icon { width: 44px; height: 44px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 事業内容 ---------- */
.highlight {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 48px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.highlight p { margin: 0; }
.label { display: block; color: var(--blue); font-size: .85rem; font-weight: 700; letter-spacing: .14em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  padding: 28px 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.card h3 { margin: 14px 0 .3em; font-family: var(--serif); font-size: 1.25rem; letter-spacing: .08em; color: var(--blue); }
.card-note { margin: 0 0 1em; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.card ul { margin: 0; padding: 0; list-style: none; }
.card li { padding: 9px 0 9px 1.1em; border-top: 1px solid var(--line); line-height: 1.7; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 1.2em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: .6; }

/* ---------- 私たちについて ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-text p { margin: 0 0 1.2em; }
.history { margin: 0; border-top: 1px solid var(--line); }
.history > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.history dt { color: var(--blue); font-family: var(--serif); font-weight: 600; letter-spacing: .08em; }
.history dd { margin: 0; line-height: 1.8; }

/* ---------- 会社情報 ---------- */
.company-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.company-table { display: grid; grid-template-columns: 7em 1fr; margin: 0; border-top: 1px solid var(--line); }
.company-table dt, .company-table dd { margin: 0; padding: 16px 8px; border-bottom: 1px solid var(--line); }
.company-table dt { color: var(--blue); font-weight: 700; letter-spacing: .1em; }
.offices { display: grid; gap: 20px; }
.office { padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.office h3 { margin: 0 0 .4em; font-family: var(--serif); font-size: 1.15rem; letter-spacing: .08em; color: var(--blue); }
.office address { font-style: normal; }
.office .tel { margin: .5em 0 0; }
.office .tel a { text-decoration: none; }

/* ---------- お問い合わせ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 6px; }
.contact-item { padding: clamp(28px, 5vw, 48px); }
.contact-item + .contact-item { border-left: 1px solid var(--line); }
.contact-item h3 { margin: 0 0 1em; color: var(--blue); font-family: var(--serif); font-size: 1.2rem; letter-spacing: .1em; }
.contact-item p { margin: 0 0 1.2em; color: var(--muted); }
.contact-item .note { margin: 1em 0 0; font-size: .85rem; }
.tel-list { margin: 0; padding: 0; list-style: none; }
.tel-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tel-list li:first-child { padding-top: 0; }
.tel-list .place { color: var(--muted); font-size: .95rem; letter-spacing: .08em; }
.tel-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .08em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 1px no-repeat;
  transition: background-size .5s ease, color .3s;
}
.tel-num:hover { color: var(--blue); background-size: 100% 1px; }

/* ---------- フッター ---------- */
.site-footer { padding: 40px 0 32px; background: var(--tint); border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: grid; gap: 10px; justify-items: center; text-align: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: .06em; }
.footer-brand img { height: 26px; width: auto; }
.footer-info { margin: 0; font-size: .92rem; }
.footer-info a { text-decoration: none; }
.site-footer small { font-size: .8rem; }

/* ---------- 影と動き ---------- */
.site-header { transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(31, 37, 51, .08); }
.scroll-progress {
  position: absolute; left: 0; bottom: -1px;
  width: 100%; height: 2px;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
}
.card, .office, .highlight, .contact-grid {
  box-shadow: 0 8px 28px rgba(60, 45, 20, .07);
  transition: translate .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
/* 将来、カードから各商品群のページへ飛べるようにしたら、
   リンクになったカードにだけ、浮き上がりの動きを付ける（例: a.card:hover） */
.btn.primary { box-shadow: 0 6px 16px rgba(58, 72, 150, .25); }
.btn.primary:hover { box-shadow: 0 12px 24px rgba(58, 72, 150, .32); }
.btn.ghost:hover { box-shadow: 0 8px 18px rgba(58, 72, 150, .12); }

/* アイコンを、画面に入ったときに線で描く */
.js .reveal .icon * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s .35s ease; }
.js .reveal.is-visible .icon * { stroke-dashoffset: 0; }

/* 年表は、行ごとに左からすっと入る */
.js .history .reveal { transform: translateX(-18px); }
.js .history .reveal.is-visible { transform: none; }


/* ---------- スマホ ---------- */
@media (max-width: 860px) {
  .hero-grid, .about-grid, .company-grid, .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item + .contact-item { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .menu-button { display: inline-block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: 0; overflow: hidden;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transition: max-height .4s ease;
  }
  .site-nav.is-open { max-height: 380px; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 4px 20px 16px; }
  .site-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a::after { display: none; }
  .brand span { font-size: .9rem; }
  .history > div { grid-template-columns: 1fr; gap: 2px; }
  .company-table { grid-template-columns: 1fr; }
  .company-table dt { padding-bottom: 0; border-bottom: 0; }
  .company-table dd { padding-top: 4px; }
  .section-head .en { display: none; }
  .highlight { align-items: flex-start; }
  html:not(.js) .menu-button { display: none; }
  html:not(.js) .site-header .inner { height: auto; flex-wrap: wrap; padding: 8px 0; }
  html:not(.js) .site-nav { position: static; width: 100%; max-height: none; }
}

/* ---------- 「動きを減らす」設定の方には、動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise, .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-photo img { clip-path: none !important; }
  .icon * { stroke-dashoffset: 0 !important; }
  .since::before { width: 48px !important; }
  .section-head::after { transform: scaleX(.1) !important; }
}
