/* =========================================================
   にじふるひ トップ（法人ページ）専用
   どのブランドの色にも寄せない中立の見た目。虹は光としてだけ表現する
   ========================================================= */
.corp-page {
  --prism-1: #f6b7c1;   /* 桃 */
  --prism-2: #f9d39a;   /* 杏 */
  --prism-3: #f4eea0;   /* 菜の花 */
  --prism-4: #b9e4c4;   /* 若葉 */
  --prism-5: #a9d4f0;   /* 空 */
  --prism-6: #c9b8ef;   /* 藤 */
  background: var(--bg);
}

/* ---------- ヘッダー（透明・最小限） ---------- */
.corp-header { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .4s var(--ease), border-color .4s; border-bottom: 1px solid transparent; }
.corp-header.is-scrolled { background: rgba(251, 250, 247, .9); backdrop-filter: blur(10px); border-color: var(--line); }
.corp-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.corp-mark { font-family: var(--font-jp); font-weight: 700; font-size: 18px; letter-spacing: .14em; text-decoration: none; }
.corp-nav { display: flex; gap: 22px; font-size: 14px; }
.corp-nav a { text-decoration: none; color: var(--muted); padding: 12px 0; transition: color .2s; }
.corp-nav a:hover { color: var(--ink); }
@media (max-width: 599px) { .corp-nav .hide-sp { display: none; } }

/* ---------- ファーストビュー：光のにじみ ---------- */
.prism-hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; padding: 90px 20px 70px; }
.prism { position: absolute; inset: -20%; z-index: -1; filter: blur(70px) saturate(115%); opacity: .85; }
.prism span { position: absolute; border-radius: 50%; mix-blend-mode: multiply; animation: drift 26s var(--ease) infinite alternate; }
.prism span:nth-child(1) { width: 46vmax; height: 46vmax; left: 4%;  top: 10%; background: var(--prism-1); animation-duration: 28s; }
.prism span:nth-child(2) { width: 40vmax; height: 40vmax; left: 30%; top: -4%; background: var(--prism-2); animation-duration: 24s; animation-delay: -6s; }
.prism span:nth-child(3) { width: 38vmax; height: 38vmax; left: 52%; top: 18%; background: var(--prism-3); animation-duration: 30s; animation-delay: -12s; }
.prism span:nth-child(4) { width: 42vmax; height: 42vmax; left: 60%; top: 46%; background: var(--prism-4); animation-duration: 26s; animation-delay: -3s; }
.prism span:nth-child(5) { width: 44vmax; height: 44vmax; left: 22%; top: 50%; background: var(--prism-5); animation-duration: 32s; animation-delay: -9s; }
.prism span:nth-child(6) { width: 34vmax; height: 34vmax; left: -6%; top: 52%; background: var(--prism-6); animation-duration: 22s; animation-delay: -15s; }
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vmax, -4vmax, 0) scale(1.08); }
  100% { transform: translate3d(-5vmax, 5vmax, 0) scale(.94); }
}
/* 中央を少し明るくして文字を読みやすくする */
.prism-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 45% at 50% 50%, rgba(251, 250, 247, .78), rgba(251, 250, 247, 0) 70%); }

.prism-label { font-family: var(--font-en); font-style: italic; font-size: clamp(15px, 2.2vw, 20px); letter-spacing: .12em; color: var(--muted); margin: 0 0 18px; }
.prism-title { font-family: var(--font-jp); font-weight: 700; font-size: clamp(54px, 15vw, 176px); line-height: 1.05; letter-spacing: .1em; margin: 0; padding-left: .1em; }
.prism-title .ch { display: inline-block; opacity: 0; transform: translateY(.35em); animation: rise 1.1s var(--ease) forwards; }
.prism-title .ch:nth-child(1) { animation-delay: .15s; }
.prism-title .ch:nth-child(2) { animation-delay: .27s; }
.prism-title .ch:nth-child(3) { animation-delay: .39s; }
.prism-title .ch:nth-child(4) { animation-delay: .51s; }
.prism-title .ch:nth-child(5) { animation-delay: .63s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.prism-line { width: min(240px, 50vw); height: 3px; margin: 28px auto 22px; border-radius: 3px; background: linear-gradient(90deg, var(--prism-1), var(--prism-2), var(--prism-3), var(--prism-4), var(--prism-5), var(--prism-6)); opacity: 0; animation: rise 1s var(--ease) .9s forwards; }
.prism-sub { font-size: clamp(14px, 2vw, 16px); color: var(--muted); margin: 0; opacity: 0; animation: rise 1s var(--ease) 1.05s forwards; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--font-en); font-style: italic; font-size: 13px; letter-spacing: .2em; color: var(--muted); text-decoration: none; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 36px; margin: 8px auto 0; background: linear-gradient(var(--muted), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- メッセージ ---------- */
.corp-message { padding: 120px 0; text-align: center; }
.corp-message p.big { font-family: var(--font-jp); font-weight: 700; font-size: clamp(24px, 4.6vw, 40px); line-height: 1.75; letter-spacing: .06em; margin: 0 0 22px; text-wrap: balance; word-break: auto-phrase; }
.brands h2, .corp-about h2 { font-family: var(--font-jp); font-weight: 700; font-size: clamp(26px, 4.4vw, 36px); margin: 8px 0 0; letter-spacing: .06em; }
.corp-message p.small { color: var(--muted); margin: 0; }

/* ---------- 事業（2枚の大きなカード） ---------- */
.brands { padding: 40px 0 120px; }
.brands-head { text-align: center; margin-bottom: 40px; }
.brands-grid { display: grid; gap: 24px; }
.brand-card { position: relative; display: block; text-decoration: none; border-radius: 26px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.brand-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px rgba(29, 28, 25, .1); }
.brand-card .photo { border-radius: 0; min-height: 260px; }
.brand-card .photo img { transition: transform 1.2s var(--ease); }
.brand-card:hover .photo img { transform: scale(1.04); }
.brand-body { padding: 26px 28px 30px; }
.brand-kind { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.brand-name { font-family: var(--font-jp); font-weight: 700; font-size: 26px; margin: 0 0 8px; }
.brand-lead { margin: 0 0 16px; color: var(--muted); }
.brand-more { font-size: 14px; font-weight: 500; }
.brand-more .ms { color: var(--ink); font-size: 18px; vertical-align: -4px; margin: 0 0 0 4px; }
@media (min-width: 900px) { .brands-grid { grid-template-columns: 1fr 1fr; } .brand-card .photo { min-height: 360px; } }

/* ---------- 会社概要 ---------- */
.corp-about { padding: 100px 0 120px; border-top: 1px solid var(--line); }
.corp-about dl { display: grid; grid-template-columns: 7em 1fr; gap: 16px 20px; max-width: 640px; margin: 36px auto 0; font-size: 15px; }
.corp-about dt { color: var(--muted); }
.corp-about dd { margin: 0; }
.corp-about .section-head { text-align: center; }

.corp-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; text-align: center; font-size: 13px; color: var(--muted); }
.corp-footer .prism-line { animation: none; opacity: 1; margin: 0 auto 18px; width: 120px; height: 2px; }

@media (prefers-reduced-motion: reduce) {
  .prism span, .scroll-cue::after { animation: none; }
  .prism-title .ch, .prism-line, .prism-sub { animation: none; opacity: 1; transform: none; }
}
