@charset "UTF-8";
/* ==========================================================================
   トップページ B案 (図形・幾何学パターン) - index-b.html のみで読み込み
   style.css の変数 (--c-*) を使用
   図形はタイルを 8 分割したグリッド (12.5% 単位) に沿って配置し、
   線の太さはタイルの大きさに比例 (cqw) させて締まりを出しています。
   ========================================================================== */
:root {
  --c-sage: #c9cebf;   /* 低彩度のセージ (淡い紫のベタ塗りの置き換え) */
  --c-stone: #dcd5c8;  /* 低彩度のストーン */
}
.fvb, .aboutb { --shape-ease: cubic-bezier(0.65, 0, 0.35, 1); }

/* ---------- FV ---------- */
.fvb { position: relative; padding: calc(var(--header-h) + 24px) 0 64px; background: var(--c-base); overflow: hidden; }
.fvb__inner {
  /* 左端はヘッダーのロゴ位置 (max-width 1600px の内側) に揃え、モザイクは右端まで出す。
     モザイク幅は 画面幅の56% / 画面の高さに収まる幅 / 1240px のうち最小 */
  --mosaic-w: min(56vw, calc((100svh - var(--header-h) - 100px) * 4 / 3), 1240px);
  padding-left: max(64px, calc((100vw - 1600px) / 2 + 56px));
  display: grid; grid-template-columns: minmax(0, 1fr) var(--mosaic-w); align-items: center; gap: clamp(32px, 4vw, 96px);
  min-height: calc(100svh - var(--header-h) - 88px);
}
.fvb__text { container-type: inline-size; max-width: 720px; }
.fvb__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 32px; font-family: var(--ff-en); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--c-ink); }
.fvb__eyebrow-ja { display: flex; align-items: center; gap: 12px; font-family: var(--ff-base); font-size: 12px; font-weight: 500; letter-spacing: .14em; }
.fvb__eyebrow-ja::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.fvb__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c-red); }

.fvb__title { font-family: var(--ff-en); font-weight: 700; font-size: clamp(36px, min(16cqi, 10vh), 104px); line-height: 1.02; letter-spacing: -.02em; color: var(--c-ink); }
.fvb__row { display: flex; align-items: center; gap: .26em; }
.fvb__mask { display: block; overflow: hidden; padding: .04em 0; }
.fvb__word { display: block; }

/* 単語の頭につく小さな図形アイコン */
.fvb__icon { position: relative; flex-shrink: 0; width: .62em; height: .62em; }
.fvb__icon i { position: absolute; display: block; }
.fvb__icon--connect i { top: 15%; width: 70%; height: 70%; border-radius: 50%; }
.fvb__icon--connect i:nth-child(1) { left: 0; background: var(--c-rose); }
.fvb__icon--connect i:nth-child(2) { right: 0; border: .06em solid var(--c-ink); }
.fvb__icon--cross i { left: 50%; top: 50%; width: 100%; height: 26%; translate: -50% -50%; }
.fvb__icon--cross i:nth-child(1) { background: var(--c-sage); rotate: 45deg; }
.fvb__icon--cross i:nth-child(2) { background: var(--c-ink); rotate: -45deg; }
.fvb__icon--create i:nth-child(1) { left: 0; bottom: 0; width: 55%; height: 55%; background: var(--c-blue); }
.fvb__icon--create i:nth-child(2) { right: 0; top: 0; width: 48%; height: 48%; border-radius: 50%; background: var(--c-ink); }
.fvb__icon--create i:nth-child(3) { right: 0; bottom: 0; width: 46%; height: 46%; background: var(--c-rose); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

.fvb__lead { margin-top: 36px; font-size: 15px; line-height: 2.1; letter-spacing: .14em; color: var(--c-ink); }
.fvb__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.fvb__btn { min-width: 0; padding: 14px 32px; font-size: 13px; }

/* 図形モザイク
   WP: 写真タイル (.sh--photo) は制作事例のアイキャッチに差し替え予定 */
.fvb__mosaic { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; container-type: size; }
.t-rose { background: var(--c-rose); }
.t-sage { background: var(--c-sage); }
.t-stone { background: var(--c-stone); }
.t-blue { background: var(--c-blue); }
.t-ivory { background: #efebe1; }
.t-white { background: var(--c-white); }
.t-ink { background: var(--c-ink); }
.tile--logo { display: grid; place-items: center; }
.tile--logo .logo-svg { width: 50%; }

.sh { position: absolute; display: block; --stroke: 2.2cqw; }
.sh i, .sh b { position: absolute; display: block; }
.sh--ink { background: var(--c-ink); }
/* 1/4 円 (JSで90度ずつ回転) */
.sh--quarter { inset: 0; border-radius: 0 100% 0 0; transition: transform 1s var(--shape-ease); }
/* 写真 × 図形マスク */
.sh--photo { inset: 0; overflow: hidden; }
.sh--photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .sh--photo img { transform: scale(1.06); }
.sh--circle { inset: 12.5%; border-radius: 50%; }
.sh--quarter-br { border-radius: 100% 0 0 0; }
.sh--half { inset: 12.5% 0 0; border-radius: 50cqw 50cqw 0 0; }
/* 山並み：遠い山 (白) の手前に、雪をかぶった山 (墨) と低い山 (ストーン) */
.sh--hills { inset: 0; }
.sh--hills i { bottom: 0; border-radius: 50cqw 50cqw 0 0; }
.sh--hills i:nth-child(1) { left: 25%; width: 75%; height: 37.5%; background: var(--c-stone); }
.sh--hills i:nth-child(2) { left: 0; width: 62.5%; height: 31.25%; background: var(--c-ink); overflow: hidden; }
.sh--hills i:nth-child(2)::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 36%; background: var(--c-white); clip-path: polygon(0 0, 100% 0, 100% 60%, 83% 100%, 67% 60%, 50% 100%, 33% 60%, 17% 100%, 0 60%); }
.sh--hills i:nth-child(3) { left: 50%; width: 37.5%; height: 18.75%; background: var(--c-white); }
/* 太陽 (ブランドの赤はここだけ点で使用) */
.sh--sun { left: 31.25%; top: 31.25%; width: 37.5%; height: 37.5%; border-radius: 50%; background: var(--c-red); }
/* つながる2つの円 (CONNECT) */
.sh--link { inset: 0; }
.sh--link i { top: 25%; width: 50%; height: 50%; border-radius: 50%; }
.sh--link i:nth-child(1) { left: 12.5%; background: var(--c-white); }
.sh--link i:nth-child(2) { left: 37.5%; border: var(--stroke) solid var(--c-ink); animation: linkSlide 6s var(--shape-ease) infinite; }
@keyframes linkSlide { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(-25%); } 100% { transform: none; } }
/* 交差 (CROSS) */
.sh--cross { inset: 0; animation: crossTurn 8s var(--shape-ease) infinite; }
.sh--cross i { left: 18.75%; top: 43.75%; width: 62.5%; height: 12.5%; }
.sh--cross i:nth-child(1) { background: var(--c-ink); rotate: 45deg; }
.sh--cross i:nth-child(2) { background: var(--c-white); rotate: -45deg; }
@keyframes crossTurn { 0%, 42% { transform: rotate(0); } 50%, 92% { transform: rotate(90deg); } 100% { transform: rotate(180deg); } }
/* 川：半円の波を3段 */
.sh--river { inset: 0; }
.sh--river i { left: 0; width: 100%; height: 16.667%; background: radial-gradient(circle 16.667cqw at 50% 0, var(--c) 99%, transparent 100%) 0 0 / 33.333% 100% repeat-x; }
.sh--river i:nth-child(1) { top: 12.5%; --c: var(--c-blue); }
.sh--river i:nth-child(2) { top: 41.667%; --c: var(--c-ink); }
.sh--river i:nth-child(3) { top: 70.833%; --c: var(--c-blue); }
/* 波がゆっくり流れる (上下の段は逆向き) */
.sh--river i { animation: riverFlow 7s linear infinite; }
.sh--river i:nth-child(2) { animation-direction: reverse; animation-duration: 9s; }
@keyframes riverFlow { to { background-position-x: 33.333cqw; } }
/* 棚田 (1/4円の重なり) */
.sh--terrace { inset: 0; }
.sh--terrace i { left: 0; bottom: 0; border-radius: 0 100% 0 0; }
.sh--terrace i:nth-child(1) { width: 100%; height: 100%; background: var(--c-white); }
.sh--terrace i:nth-child(2) { width: 75%; height: 75%; background: var(--c-sage); }
.sh--terrace i:nth-child(3) { width: 50%; height: 50%; background: var(--c-white); }
.sh--terrace i:nth-child(4) { width: 25%; height: 25%; background: var(--c-ink); }
/* さくらんぼ */
.sh--cherry { inset: 0; }
.sh--cherry i { top: 50%; width: 31.25%; height: 31.25%; border-radius: 50%; }
.sh--cherry i:nth-child(1) { left: 12.5%; background: var(--c-ink); }
.sh--cherry i:nth-child(2) { right: 12.5%; background: var(--c-rose); border: var(--stroke) solid var(--c-ink); }
.sh--cherry b { left: 28.125%; top: 18.75%; width: 43.75%; height: 31.25%; border: var(--stroke) solid var(--c-ink); border-bottom: 0; border-radius: 22cqw 22cqw 0 0; }

.fvb__scroll { position: absolute; left: max(64px, calc((100vw - 1600px) / 2 + 56px)); bottom: 20px; display: flex; align-items: center; gap: 12px; font-family: var(--ff-en); font-size: 10px; font-weight: 600; letter-spacing: .3em; color: var(--c-ink); }
.fvb__scroll::before { content: ""; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--c-ink); background: radial-gradient(circle, var(--c-ink) 3px, transparent 4px) center / 100% 100% no-repeat; animation: scrollDot 1.8s var(--ease-inout) infinite; }
@keyframes scrollDot { 0% { background-position: 50% 20%; } 60%, 100% { background-position: 50% 80%; } }

/* 表示アニメーション (body.is-loaded で開始) */
.fvb__word { transform: translateY(110%); transition: transform 1.2s var(--ease-out); }
.fvb__row:nth-child(2) .fvb__word { transition-delay: .12s; }
.fvb__row:nth-child(3) .fvb__word { transition-delay: .24s; }
.fvb__icon { scale: 0; transition: scale .7s var(--ease-out) .5s; }
.fvb__row:nth-child(2) .fvb__icon { transition-delay: .62s; }
.fvb__row:nth-child(3) .fvb__icon { transition-delay: .74s; }
.fvb__eyebrow, .fvb__lead, .fvb__actions, .fvb__scroll { opacity: 0; translate: 0 14px; transition: opacity 1s var(--ease-out) .9s, translate 1s var(--ease-out) .9s; }
.tile { clip-path: inset(50% 50% 50% 50%); transition: clip-path .9s var(--shape-ease); transition-delay: calc(var(--i, 0) * 60ms + .2s); }
.is-loaded .fvb__word { transform: none; }
.is-loaded .fvb__icon { scale: 1; }
.is-loaded .fvb__eyebrow, .is-loaded .fvb__lead, .is-loaded .fvb__actions, .is-loaded .fvb__scroll { opacity: 1; translate: none; }
.is-loaded .tile { clip-path: inset(0 0 0 0); }

/* ---------- リンクスとは ---------- */
.aboutb { padding: 120px 0; background: var(--c-base); }
.aboutb__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.aboutb__head .c-heading { margin-bottom: 32px; }
.aboutb__lead { font-size: 22px; font-weight: 500; line-height: 1.6; letter-spacing: .1em; color: var(--c-ink); }
.aboutb__text { margin-top: 20px; font-size: 15px; line-height: 2.1; letter-spacing: .08em; }
.aboutb__facts { display: flex; gap: 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--c-line); }
.aboutb__facts div { display: flex; align-items: baseline; gap: 12px; }
.aboutb__facts dt { font-size: 12px; color: var(--c-sub); letter-spacing: .14em; }
.aboutb__facts dd { font-size: 15px; font-weight: 500; color: var(--c-ink); }
.aboutb__link { display: inline-block; margin-top: 28px; padding-bottom: 4px; border-bottom: 1px solid var(--c-ink); font-size: 13px; font-weight: 500; letter-spacing: .14em; }
.aboutb__link:hover { color: var(--c-red); border-color: var(--c-red); }

.aboutb__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 1px solid var(--c-ink); }
.svc { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--c-line); }
.svc:nth-child(2) { transition-delay: .06s; }
.svc:nth-child(3) { transition-delay: .12s; }
.svc:nth-child(4) { transition-delay: .18s; }
.svc:nth-child(5) { transition-delay: .24s; }
.svc:nth-child(6) { transition-delay: .3s; }
.svc__title { font-size: 16px; font-weight: 500; line-height: 1.5; letter-spacing: .04em; white-space: nowrap; color: var(--c-ink); }
.svc__eg { margin-top: 4px; font-size: 13px; line-height: 1.7; letter-spacing: .04em; color: var(--c-sub); }

/* サービスアイコン：小さな正方形タイル + 図形 */
.svc__icon { position: relative; flex-shrink: 0; width: 56px; height: 56px; overflow: hidden; container-type: size; --stroke: 5cqw; }
.svc__icon i { position: absolute; display: block; }
.svc__icon--brand { background: var(--c-rose); }
.svc__icon--brand i { top: 25%; width: 50%; height: 50%; border-radius: 50%; }
.svc__icon--brand i:nth-child(1) { left: 12.5%; background: var(--c-white); }
.svc__icon--brand i:nth-child(2) { left: 37.5%; border: var(--stroke) solid var(--c-ink); }
.svc__icon--web { background: var(--c-blue); }
.svc__icon--web i:nth-child(1) { left: 18.75%; top: 25%; width: 62.5%; height: 50%; border: var(--stroke) solid var(--c-ink); }
.svc__icon--web i:nth-child(2) { left: 18.75%; top: 25%; width: 62.5%; height: 12.5%; background: var(--c-ink); }
.svc__icon--graphic { background: var(--c-sage); }
.svc__icon--graphic i:nth-child(1) { left: 12.5%; bottom: 25%; width: 37.5%; height: 37.5%; background: var(--c-ink); }
.svc__icon--graphic i:nth-child(2) { right: 12.5%; bottom: 25%; width: 37.5%; height: 50%; background: var(--c-white); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.svc__icon--movie { background: var(--c-ink); }
.svc__icon--movie i { left: 37.5%; top: 28%; width: 31.25%; height: 44%; background: var(--c-white); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.svc__icon--event { background: var(--c-stone); }
.svc__icon--event i:nth-child(1) { left: 12.5%; bottom: 0; width: 75%; height: 37.5%; border-radius: 40cqw 40cqw 0 0; background: var(--c-ink); }
.svc__icon--event i:nth-child(2) { left: 43.75%; top: 18.75%; width: 12.5%; height: 12.5%; border-radius: 50%; background: var(--c-red); }
.svc__icon--clean { background: var(--c-white); }
.svc__icon--clean i:nth-child(1) { left: 18.75%; top: 18.75%; width: 62.5%; height: 62.5%; border-radius: 50%; border: var(--stroke) solid var(--c-ink); }
.svc__icon--clean i:nth-child(2) { left: 37.5%; top: 37.5%; width: 25%; height: 25%; border-radius: 50%; background: var(--c-blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .fvb__inner { padding-left: 40px; grid-template-columns: minmax(0, 1fr) 52vw; }
  .fvb__scroll { left: 40px; }
  .aboutb__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 800px) {
  .fvb { padding: calc(var(--header-h) + 32px) 0 0; }
  .fvb__inner { grid-template-columns: 1fr; padding: 0; gap: 40px; min-height: 0; }
  .fvb__text { padding: 0 20px; }
  .fvb__eyebrow { margin-bottom: 22px; font-size: 10px; }
  .fvb__eyebrow-ja { font-size: 11px; }
  .fvb__title { font-size: 13vw; }
  .fvb__lead { margin-top: 24px; font-size: 13px; letter-spacing: .04em; }
  .fvb__actions { gap: 10px; margin-top: 24px; flex-wrap: nowrap; }
  /* 文字量に合わせて幅を分け、1行に収める（「主な制作事例を見る」が改行しないように） */
  .fvb__btn { flex: 1 1 auto; min-width: 0; gap: 10px; padding: 13px 12px; white-space: nowrap; }
  .fvb__scroll { display: none; }

  .aboutb { padding: 64px 0; }
  .aboutb__grid { gap: 32px; }
  .aboutb__head .c-heading { margin-bottom: 20px; }
  .aboutb__lead { font-size: 19px; }
  .aboutb__text { margin-top: 12px; font-size: 14px; line-height: 1.95; }
  .aboutb__facts { gap: 24px; margin-top: 20px; padding-top: 14px; }
  .aboutb__facts dd { font-size: 14px; }
  .aboutb__link { margin-top: 20px; }
  .aboutb__list { grid-template-columns: 1fr; border-top-color: var(--c-line); }
  .svc { gap: 14px; padding: 14px 0; }
  .svc__icon { width: 44px; height: 44px; }
  .svc__title { font-size: 15px; }
  .svc__eg { margin-top: 2px; font-size: 11px; }
}

/* ---------- 重要なお知らせ (B案では FV のすぐ下) ---------- */
.top-b .important-news { padding: 40px 0 0; background: var(--c-base); }
.top-b .important-news + .aboutb { padding-top: 104px; }

/* ---------- ローディング (B案)
   FV と同じ図形タイル (1/4円・つながる円・交差・日の出) が 2×2 で順番に動く
   → 読み込み完了でタイルが中心へ閉じ、FV のタイルが開いて引き継ぐ ---------- */
.loader--b { display: grid; place-content: center; justify-items: center; gap: 28px; transition: opacity .3s linear, visibility 0s .3s; }
.loader--b.is-hidden { opacity: 0; filter: none; visibility: hidden; }
.loader__grid { display: grid; grid-template-columns: repeat(2, 56px); }
.lt { position: relative; width: 56px; height: 56px; overflow: hidden; container-type: size; animation: ltIn .55s var(--ease-inout) both; }
.lt:nth-child(2) { animation-delay: .08s; }
.lt:nth-child(3) { animation-delay: .16s; }
.lt:nth-child(4) { animation-delay: .24s; }
@keyframes ltIn { from { clip-path: inset(50%); } to { clip-path: inset(0); } }
.lt i { position: absolute; display: block; }
.lt--rose { background: var(--c-rose); }
.lt--blue { background: var(--c-blue); }
.lt--sage { background: var(--c-sage); }
.lt--ink { background: var(--c-ink); }
/* 1周 2.4s を4拍に分け、1拍ずつ順番に動く */
.lt__quarter { inset: 0; background: var(--c-ink); border-radius: 0 100% 0 0; animation: ltTurn 9.6s cubic-bezier(.65, 0, .35, 1) infinite; }
/* 1拍目ごとに90度ずつ (4周で1回転) */
@keyframes ltTurn {
  0%, 3.75% { transform: rotate(0); } 6.25%, 28.75% { transform: rotate(90deg); }
  31.25%, 53.75% { transform: rotate(180deg); } 56.25%, 78.75% { transform: rotate(270deg); } 81.25%, 100% { transform: rotate(360deg); }
}
.lt__ring { top: 25%; width: 50%; height: 50%; border-radius: 50%; }
.lt__ring:nth-child(1) { left: 12.5%; background: var(--c-white); }
.lt__ring:nth-child(2) { left: 37.5%; border: 5cqw solid var(--c-ink); animation: ltLink 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ltLink { 0%, 25% { transform: none; } 37%, 62% { transform: translateX(-25%); } 75%, 100% { transform: none; } }
.lt__bar { left: 18.75%; top: 43.75%; width: 62.5%; height: 12.5%; }
.lt__bar:nth-child(1) { background: var(--c-ink); rotate: 45deg; }
.lt__bar:nth-child(2) { background: var(--c-white); rotate: -45deg; }
.lt--sage i { animation: ltCross 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ltCross { 0%, 50% { transform: rotate(0); } 62%, 100% { transform: rotate(90deg); } }
.lt__sun { left: 25%; top: 25%; width: 50%; height: 50%; border-radius: 50%; background: var(--c-red); animation: ltSun 2.4s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ltSun { 0%, 62% { transform: translateY(110%); } 80%, 100% { transform: none; } }
.loader__copy { font-family: var(--ff-en); font-size: 10px; font-weight: 700; letter-spacing: .3em; color: var(--c-ink); animation: ltCopy .6s var(--ease-out) .4s both; }
@keyframes ltCopy { from { opacity: 0; translate: 0 8px; } }
/* 読み込み完了：その場で止めてタイルを中心へ閉じる */
.loader--b.is-done .lt { animation: none; clip-path: inset(0); transition: clip-path .4s var(--ease-inout); }
.loader--b.is-done .lt:nth-child(2) { transition-delay: .05s; }
.loader--b.is-done .lt:nth-child(3) { transition-delay: .1s; }
.loader--b.is-done .lt:nth-child(4) { transition-delay: .15s; }
.loader--b.is-leaving .lt { clip-path: inset(50%); }
.loader--b.is-leaving .loader__copy { opacity: 0; transition: opacity .3s; }
@media (max-width: 800px) {
  .top-b .important-news { padding-top: 20px; }
  .top-b .important-news + .aboutb { padding-top: 56px; }
}

/* iPhone SE（1世代目）など 374px 以下：FVボタンを少し詰める */
@media (max-width: 374px) {
  .fvb__actions { gap: 8px; }
  .fvb__btn { gap: 8px; padding: 13px 10px; font-size: 12px; letter-spacing: .02em; }
}
