/* トップページ固有スタイル */

/* ヒーロー（Wix: 1440×900 全面写真・右側にコピー） */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-copy { position: absolute; left: 64.7%; top: 54%; transform: translateY(-50%); width: min(420px, 90vw); }
.hero-copy h1 { font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; letter-spacing: 0.18em; line-height: 1.6; white-space: nowrap; }
.hero-copy .hero-sub { display: block; margin-top: 10px; font-size: 13px; font-weight: 400; letter-spacing: 0.16em; line-height: 1.6; white-space: nowrap; }
.hero-copy .en { margin-top: 12px; font-size: 13px; letter-spacing: 0.2em; line-height: 1.6; }
/* 大画面: キャッチを右へ寄せる（1910px 幅で右端がヘッダーの電話番号の右端とそろう位置） */
@media (min-width: 1600px) { .hero-copy { left: 69%; } }

/* What We Do（Wix: 見出し左寄せ＋4事業のフォトカード） */
.wwd-head { max-width: 560px; }
.wwd-head .text { margin-top: 22px; }
.wwd-grid { display: grid; grid-template-columns: 526fr 576fr; gap: 24px; margin-top: var(--head-gap); }
.wwd-right { display: grid; grid-template-rows: auto auto; gap: 24px; }
.wwd-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wwd-card { display: flex; flex-direction: column; }
.wwd-card .ph { position: relative; display: block; overflow: hidden; border-radius: 2px; background: var(--cream-deep); }
.wwd-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease, opacity 0.5s ease; }
.wwd-card:hover .ph img { transform: scale(1.04); opacity: 0.9; }
.wwd-card.is-tall .ph { flex: 1 1 auto; min-height: 0; aspect-ratio: 526 / 470; }
.wwd-card.is-wide .ph { aspect-ratio: 576 / 230; }
.wwd-card.is-sq .ph { aspect-ratio: 263 / 200; }
.wwd-card .label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 2px 0;
  color: var(--ink);
  font-size: clamp(15px, 1.2vw, 17px); letter-spacing: 0.16em; line-height: 1.6;
  transition: color 0.2s ease;
}
.wwd-card .label::after { content: ""; width: 22px; height: 1px; background: var(--purple); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.wwd-card:hover .label { color: var(--purple); }
.wwd-card:hover .label::after { opacity: 1; transform: none; }
.wwd-card.is-soon { cursor: default; pointer-events: none; }
.wwd-card.is-soon .ph img { opacity: 0.55; filter: grayscale(0.5); }
.wwd-card.is-soon .label { color: var(--ink-soft); }
.wwd-card.is-soon .soon {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: 0.14em; text-indent: 0.14em; font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* About us */
.about-lead { max-width: 895px; margin: var(--head-gap) auto 0; text-align: center; }
.about .btn-row { margin-top: 40px; }

/* News */
.news-list { max-width: 832px; margin: var(--head-gap) auto 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 126px 1fr; gap: 8px 24px; padding: 24px 6px; align-items: baseline; transition: color 0.2s ease; }
.news-list a:hover { color: var(--purple); }
.news-list time { font-size: 14px; letter-spacing: 0.04em; color: var(--ink-soft); }
.news-list .title { font-size: 16px; letter-spacing: 0.08em; line-height: 1.6; }
.news .btn-row { margin-top: 40px; }

@media (max-width: 900px) {
  .wwd-grid { grid-template-columns: 1fr; gap: 24px; }
  .wwd-right { grid-template-rows: auto; gap: 24px; }
  .wwd-pair { gap: 24px; }
  .wwd-card.is-tall .ph { flex: none; aspect-ratio: 4 / 3; }
  .wwd-card.is-tall .ph img { object-position: 50% 88%; }
  .wwd-card.is-wide .ph { aspect-ratio: 16 / 10; }
  .wwd-card.is-sq .ph { aspect-ratio: 1 / 1; }
}
@media (max-width: 760px) {
  .wwd-head { max-width: none; text-align: center; }
  .about-lead { text-align: left; }
  .hero { min-height: 560px; }
  .hero-copy { left: var(--gutter); top: 48%; width: calc(100% - var(--gutter) * 2); }
  .hero-copy h1 { font-size: clamp(18px, 5.4vw, 22px); white-space: normal; }
  .hero-copy .en { font-size: 12px; }
  .wwd-pair { grid-template-columns: 1fr; }
  .wwd-card.is-sq .ph { aspect-ratio: 16 / 10; }
  .wwd-card .label { padding-top: 10px; font-size: 15px; }
  .news-list a { grid-template-columns: 1fr; gap: 4px; padding: 18px 2px; }
}

/* ---------- オープニング（js/intro.js・C1「描いて、飛び込む」） ---------- */
/* html.intro-on は <head> のスクリプトが付ける。JS が動かなかった場合も6秒で必ず消える */
.intro-cover { display: none; }
.intro-on .intro-cover { display: block; position: fixed; inset: 0; z-index: 300; background: var(--cream); pointer-events: none; animation: intro-failsafe .4s ease 6s forwards; }
.intro-cover svg { display: block; width: 100%; height: 100%; }
.intro-on .site-header, .intro-on .hero-copy, .intro-on .cv-bar { opacity: 0; animation: intro-failsafe-show .4s ease 6s forwards; }
@keyframes intro-failsafe { to { opacity: 0; visibility: hidden; } }
@keyframes intro-failsafe-show { to { opacity: 1; } }
.intro-ch { display: inline-block; white-space: pre; }
.intro-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
