/* ==========================================================================
   王道集客デモ（chikufurustock.com 型の構成をcantik用に作り直したもの）
   骨格＝参考の実測（英字見出し PC60.8/SP38.4px・和文見出し明朝 PC27.2/SP20.8px・本文 16/33.6）
   配色＝cantik（参考の金・木目 → コバルトと淡青）。SP基準、PC差分は末尾の@mediaのみ。
   ========================================================================== */
:root {
  --c-brand: #0f4aa2;
  --c-navy: #0a2e5c;
  --c-ink: #14213a;
  --c-muted: #5b6b85;
  --c-line: #dde5f0;
  --c-bg: #ffffff;
  --c-soft: #f2f5fa;
  --c-pale: #e6eefa;
  --c-on: #ffffff;

  --f-serif: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-sans: "Noto Sans JP", "Yu Gothic", "Hiragino Sans", sans-serif;
  --f-en: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fs-en: 2.4rem;          /* 参考SP 38.4px */
  --fs-h2: 1.3rem;          /* 参考SP 20.8px */
  --fs-body: 0.9375rem;     /* 参考SP 15px */
  --lh-body: 2;
  --gutter: 20px;
  --wrap: 1120px;
  --sec: 88px;
  --r: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hd-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--f-sans); font-size: var(--fs-body); line-height: var(--lh-body); letter-spacing: 0.04em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
html:lang(zh-CN) { --f-sans: "Noto Sans SC", sans-serif; --f-serif: "Noto Sans SC", serif; }
html:lang(ko) { --f-sans: "Noto Sans KR", sans-serif; --f-serif: "Noto Sans KR", serif; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: var(--sec) 0; }
.center { text-align: center; margin-top: 40px; }
.serif { font-family: var(--f-serif); font-weight: 500; }
.note { margin-top: 12px; font-size: 0.75rem; color: var(--c-muted); }
[data-lang="ko"] { font-family: "Noto Sans KR", sans-serif; }
[data-lang="zh"] { font-family: "Noto Sans SC", sans-serif; }

/* 見出し：英字（参考 helvetica-m 60.8px）＋和文の小見出し */
.en-head { font-family: var(--f-en); font-weight: 500; font-size: var(--fs-en); line-height: 1.2; letter-spacing: 0.01em; color: var(--c-navy); }
.en-head .ch { display: inline-block; }
.en-head--light { color: var(--c-on); }
.jp-sub { margin-top: 4px; font-size: 0.8rem; color: var(--c-muted); letter-spacing: 0.12em; }
.jp-sub--light { color: rgba(255, 255, 255, 0.85); }
.sec-head--center { text-align: center; }

/* ボタン：丸の中の矢印が動く */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-width: 240px; margin-top: 32px; padding: 14px 16px 14px 28px; background: var(--c-brand); color: var(--c-on); border-radius: 999px; font-size: 0.9rem; font-weight: 700; transition: background 0.4s var(--ease); }
.btn i { position: relative; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; overflow: hidden; flex: none; }
.btn i::before, .btn i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); transition: transform 0.5s var(--ease); }
.btn i::after { transform: translate(-260%, -50%) rotate(45deg); }
.btn:hover { background: var(--c-navy); }
.btn:hover i::before { transform: translate(160%, -50%) rotate(45deg); }
.btn:hover i::after { transform: translate(-65%, -50%) rotate(45deg); }
.btn--light { background: var(--c-on); color: var(--c-brand); }
.btn--light:hover { background: var(--c-pale); }

/* ---------------------------------------------------------------- header */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, 0); transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease); }
.hd.is-solid { background: rgba(255, 255, 255, 0.96); box-shadow: 0 1px 0 var(--c-line); }
.hd__top { height: var(--hd-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--gutter); }
.hd__brand { display: flex; flex-direction: column; gap: 2px; }
.hd__brand img { height: 18px; width: auto; }
.hd__tag { font-size: 0.625rem; color: var(--c-muted); letter-spacing: 0.08em; }
.hd__right { display: flex; align-items: center; gap: 16px; }
.hd__lang, .hd__hours, .hd__cta { display: none; }
.hd__menu { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--c-brand); }
.hd__menu span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--c-on); transition: transform 0.5s var(--ease); }
.hd__menu span:first-child { top: 17px; } .hd__menu span:last-child { bottom: 17px; }
.is-menu .hd__menu span:first-child { transform: translateY(4px) rotate(45deg); }
.is-menu .hd__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
.gnav { position: fixed; inset: var(--hd-h) 0 0; background: var(--c-bg); padding: 24px var(--gutter); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.4s; }
.is-menu .gnav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.gnav ul { border-top: 1px solid var(--c-line); }
.gnav li a { display: block; padding: 16px 4px; border-bottom: 1px solid var(--c-line); font-weight: 700; }
.gnav__lang { display: flex; gap: 18px; margin-top: 24px; font-family: var(--f-en); font-size: 0.875rem; }
.gnav__lang button[aria-pressed="true"], .hd__lang button[aria-pressed="true"] { color: var(--c-brand); text-decoration: underline; text-underline-offset: 4px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: calc(var(--hd-h) + 4px) 10px 0; }
.hero__frame { position: relative; height: 72svh; min-height: 460px; border-radius: 16px; overflow: hidden; background: var(--c-navy); }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.6s ease, transform 7s linear; }
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 46, 92, 0) 40%, rgba(10, 46, 92, 0.62) 100%); }
.hero__copy { position: absolute; left: 24px; right: 24px; bottom: 96px; z-index: 2; color: var(--c-on); font-family: var(--f-serif); }
.hero__sub { font-size: 0.95rem; letter-spacing: 0.12em; }
.hero__main { margin-top: 8px; font-size: 1.75rem; font-weight: 500; line-height: 1.5; letter-spacing: 0.08em; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); transition: transform 1.4s var(--ease); }
.is-ready .mask > span { transform: none; }
.is-ready .hero__main .mask > span { transition-delay: 0.15s; }
.hero__dots { position: absolute; left: 24px; bottom: 64px; z-index: 2; display: flex; gap: 8px; }
.hero__dots li { width: 28px; height: 2px; background: rgba(255, 255, 255, 0.4); position: relative; overflow: hidden; }
.hero__dots li::after { content: ""; position: absolute; inset: 0; background: var(--c-on); transform: scaleX(0); transform-origin: 0 50%; }
.hero__dots li.is-on::after { animation: dot 6s linear forwards; }
@keyframes dot { to { transform: scaleX(1); } }
.hero__scroll { display: none; }
.hero__cards { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -44px 14px 0; }
.qcard { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; background: var(--c-bg); border-radius: var(--r); box-shadow: 0 10px 30px rgba(10, 46, 92, 0.14); font-size: 0.6875rem; font-weight: 700; text-align: center; line-height: 1.4; color: var(--c-navy); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.qcard svg { width: 30px; height: 30px; fill: none; stroke: var(--c-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qcard:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(10, 46, 92, 0.2); }
.is-ready .hero__cards li { animation: rise 1.2s var(--ease) both; }
.is-ready .hero__cards li:nth-child(2) { animation-delay: 0.1s; }
.is-ready .hero__cards li:nth-child(3) { animation-delay: 0.2s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- about */
.about__grid { display: grid; gap: 28px; }
.about__title { margin-top: 24px; font-size: var(--fs-h2); line-height: 1.8; }
.about__photo { margin: 56px 0 0 var(--gutter); border-radius: 16px 0 0 16px; overflow: hidden; aspect-ratio: 16 / 8; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------- tiles */
.tiles { background: var(--c-soft); }
.tiles__title { text-align: center; font-size: var(--fs-h2); line-height: 1.6; }
.tiles__grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; background: rgba(10, 46, 92, 0.42); transition: background 0.6s var(--ease); }
.tile span { position: absolute; inset: auto 10px 10px; z-index: 1; color: var(--c-on); font-family: var(--f-serif); font-size: 0.85rem; line-height: 1.4; }
.tile:hover img { transform: scale(1.08); }
.tile:hover::after { background: rgba(15, 74, 162, 0.62); }

/* ---------------------------------------------------------------- service */
.service__grid { margin-top: 40px; display: grid; gap: 40px; }
.scard__img { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; }
.scard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.06); }
.scard__no { margin-top: 18px; font-family: var(--f-en); font-size: 0.875rem; color: var(--c-brand); letter-spacing: 0.1em; }
.scard h3 { margin-top: 2px; font-size: 1.25rem; line-height: 1.6; }
.scard h3 + p { margin-top: 10px; }

/* ---------------------------------------------------------------- feature（参考の木目帯 → 写真に青を重ねた帯） */
.feature { position: relative; overflow: hidden; padding: var(--sec) 0; color: var(--c-on); background: var(--c-navy); }
.feature__bg { position: absolute; inset: -12% 0; }
.feature__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.28; }
.feature__grid { position: relative; display: grid; gap: 28px; }
.feature__title { margin-top: 24px; font-size: var(--fs-h2); line-height: 1.8; }

/* ---------------------------------------------------------------- works marquee */
.works { overflow: hidden; }
.marquee { margin-top: 40px; overflow: hidden; }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.wcard { width: 260px; flex: none; }
.wcard img { border-radius: var(--r); box-shadow: 0 8px 24px rgba(10, 46, 92, 0.12); transition: transform 0.6s var(--ease); }
.wcard:hover img { transform: translateY(-6px); }
.wcard span { display: block; margin-top: 10px; font-size: 0.8125rem; font-weight: 700; }

/* ---------------------------------------------------------------- news */
.news { background: var(--c-soft); }
.news__grid { display: grid; gap: 28px; }
.news__list li { border-bottom: 1px solid var(--c-line); }
.news__list a { display: grid; gap: 4px; padding: 18px 8px; transition: background 0.4s var(--ease), padding 0.4s var(--ease); }
.news__list a:hover { background: var(--c-bg); padding-left: 16px; }
.news__list time { font-family: var(--f-en); font-size: 0.8125rem; color: var(--c-brand); }

/* ---------------------------------------------------------------- column */
.column__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.column__arrows { display: flex; gap: 10px; }
.arrow { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--c-navy); transition: background 0.4s var(--ease); }
.arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--c-navy); border-top: 1.5px solid var(--c-navy); transform: translate(-65%, -50%) rotate(45deg); }
.arrow--prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.arrow:hover { background: var(--c-navy); }
.arrow:hover::before { border-color: var(--c-on); }
.column__track { margin-top: 32px; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.column__track::-webkit-scrollbar { display: none; }
.ccard { scroll-snap-align: start; }
.ccard figure { border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 2; }
.ccard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.ccard:hover img { transform: scale(1.06); }
.ccard__meta { margin-top: 12px; display: flex; gap: 12px; font-size: 0.75rem; color: var(--c-muted); }
.ccard__meta time { font-family: var(--f-en); color: var(--c-brand); }
.ccard h3 { margin-top: 4px; font-size: 0.95rem; line-height: 1.7; }

/* ---------------------------------------------------------------- contact */
.contact { background: var(--c-pale); }
.contact__card { margin-top: 40px; padding: 40px 20px; background: var(--c-bg); border-radius: 16px; box-shadow: 0 20px 50px rgba(10, 46, 92, 0.1); text-align: center; }
.contact__title { font-size: var(--fs-h2); line-height: 1.8; }
.contact__lead { margin-top: 16px; }
.contact__hours { margin-top: 4px; font-size: 0.8125rem; color: var(--c-muted); }
.contact__btns { margin-top: 28px; display: grid; gap: 12px; }
.cbtn { display: flex; align-items: center; justify-content: center; min-height: 58px; border-radius: var(--r); background: var(--c-soft); color: var(--c-navy); font-weight: 700; transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease); }
.cbtn:hover { background: var(--c-navy); color: var(--c-on); transform: translateY(-3px); }
.cbtn--main { background: var(--c-brand); color: var(--c-on); }
.contact__mail { margin-top: 16px; font-family: var(--f-en); font-size: 0.875rem; color: var(--c-muted); user-select: all; }

/* ---------------------------------------------------------------- footer */
.ft { position: relative; background: var(--c-navy); color: rgba(255, 255, 255, 0.86); padding: 64px 0 32px; font-size: 0.8125rem; }
.ft__grid { display: grid; gap: 32px; }
.ft__brand img { height: 22px; width: auto; filter: brightness(0) invert(1); }
.ft__brand p { margin-top: 8px; }
.ft__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ft__nav a { display: block; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); transition: color 0.3s; }
.ft__nav a:hover { color: var(--c-on); }
.ft__copy { margin-top: 40px; text-align: center; font-family: var(--f-en); font-size: 0.75rem; opacity: 0.7; }
.totop { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 8px 20px rgba(10, 46, 92, 0.25); opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity 0.4s, transform 0.5s var(--ease), visibility 0s linear 0.4s; }
.totop::before { content: ""; position: absolute; top: 55%; left: 50%; width: 10px; height: 10px; border-left: 2px solid var(--c-on); border-top: 2px solid var(--c-on); transform: translate(-50%, -50%) rotate(45deg); }
.totop.is-show { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s, transform 0.5s var(--ease); }

/* ---------------------------------------------------------------- スクロール出現（JSが動かない時は最初から見える） */
.js .js-fade, .js .js-tile { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .js-fade.is-in, .js .js-tile.is-in { opacity: 1; transform: none; }
.js .js-clip { clip-path: inset(0 0 0 100%); transition: clip-path 1.6s var(--ease); }
.js .js-clip.is-in { clip-path: inset(0 0 0 0); }
.js .js-clip img { transform: scale(1.15); transition: transform 2s var(--ease); }
.js .js-clip.is-in img { transform: none; }
.js .js-en .ch { opacity: 0; transform: translateY(0.6em) rotate(6deg); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease); }
.js .js-en.is-in .ch { opacity: 1; transform: none; }

/* ================================================================ PC */
@media (min-width: 1024px) {
  :root { --fs-en: 3.8rem; --fs-h2: 1.7rem; --fs-body: 1rem; --gutter: 48px; --sec: 140px; --hd-h: 84px; }
  body { line-height: 2.1; }
  .hd__top { height: 84px; }
  .hd__brand img { height: 24px; }
  .hd__tag { font-size: 0.6875rem; }
  .hd__lang { display: flex; gap: 12px; font-family: var(--f-en); font-size: 0.75rem; color: var(--c-muted); }
  .hd__hours { display: grid; text-align: right; line-height: 1.5; font-size: 0.75rem; color: var(--c-muted); }
  .hd__hours span:first-child { font-family: var(--f-en); font-weight: 600; color: var(--c-navy); letter-spacing: 0.08em; }
  .hd__cta { display: inline-flex; align-items: center; height: 46px; padding: 0 26px; border-radius: 999px; background: var(--c-brand); color: var(--c-on); font-weight: 700; font-size: 0.875rem; transition: background 0.4s var(--ease); }
  .hd__cta:hover { background: var(--c-navy); }
  .hd__menu { display: none; }
  .gnav { position: static; opacity: 1; visibility: visible; transform: none; padding: 0 var(--gutter); background: none; overflow: visible; }
  .gnav ul { display: flex; justify-content: flex-end; gap: 32px; border: 0; height: 44px; align-items: center; }
  .gnav li a { padding: 0; border: 0; font-size: 0.875rem; position: relative; }
  .gnav li a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px; background: var(--c-brand); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
  .gnav li a:hover::after { transform: scaleX(1); transform-origin: left; }
  .gnav__lang { display: none; }
  .hd.is-solid .gnav ul { height: 40px; }

  .hero { padding: calc(84px + 44px) 24px 0; }
  .hero__frame { height: calc(100svh - 160px); min-height: 600px; border-radius: 24px; }
  .hero__copy { left: 64px; bottom: 120px; }
  .hero__sub { font-size: 1.375rem; }
  .hero__main { font-size: 3.4rem; line-height: 1.4; }
  .hero__dots { left: 64px; bottom: 80px; }
  .hero__scroll { display: block; position: absolute; right: 28px; top: 50%; z-index: 2; color: var(--c-on); font-family: var(--f-en); font-size: 0.75rem; letter-spacing: 0.2em; writing-mode: vertical-rl; }
  .hero__scroll::after { content: ""; display: block; width: 1px; height: 60px; margin: 12px auto 0; background: linear-gradient(var(--c-on) 50%, rgba(255,255,255,.3) 50%); background-size: 1px 200%; animation: line 2s linear infinite; }
  @keyframes line { to { background-position: 0 -100%; } }
  .hero__cards { position: absolute; right: 64px; bottom: -48px; margin: 0; grid-template-columns: repeat(3, 150px); gap: 14px; }
  .qcard { padding: 22px 8px; font-size: 0.8125rem; gap: 10px; }
  .qcard svg { width: 38px; height: 38px; }

  .about { padding-top: 200px; }
  .about__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
  .about__photo { margin: 96px 0 0 calc((100vw - var(--wrap)) / 2 + var(--gutter)); aspect-ratio: 16 / 6; border-radius: 24px 0 0 24px; }

  .tiles__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
  .tile span { inset: auto 20px 18px; font-size: 1.125rem; }

  .service__grid { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; }

  .feature { padding: 160px 0; }
  .feature__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }

  .marquee { margin-top: 56px; }
  .marquee__track { gap: 32px; }
  .wcard { width: 420px; }

  .news__grid { grid-template-columns: 1fr 2.4fr; gap: 80px; }
  .news__list a { grid-template-columns: 140px 1fr; gap: 24px; padding: 24px 12px; }

  .column__track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; margin-top: 48px; }

  .contact__card { max-width: 880px; margin: 56px auto 0; padding: 64px 56px; }
  .contact__btns { grid-template-columns: repeat(3, 1fr); gap: 16px; }

  .ft__grid { grid-template-columns: 1fr 1.4fr; gap: 80px; }
  .ft__nav { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
  .totop { right: 28px; bottom: 28px; width: 54px; height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .js-fade, .js .js-tile, .js .js-clip, .js .js-en .ch, .mask > span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
