/* =====================================================================
   業種ページ（「慣習」シリーズ 業種別）
   os.css の部品（FV・番号カード・拡大できる図・CTA・AI ready）をそのまま使い、
   業種ページだけの部品をここに足す。業種の色は .ind の style で --ind / --ind-2 / --ind-bg を渡す
   ===================================================================== */
.ind { --ind: #3d7fd1; --ind-2: #2b67b3; --ind-bg: #eef4fb; }

/* ---------- FV：右に現場写真を六角形の枠で ---------- */
.ind .os-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--ind-bg) 70%, #fff) 0%, #fff 78%); }
.ind .os-hero .h1 { width: 300px; right: calc(50% - 650px); top: -70px; background: var(--ind); }
.ind .os-hero .h2 { width: 140px; right: calc(50% - 270px); top: 500px; background: var(--acc); }
.ind .os-hero .h3 { width: 110px; right: calc(50% - 90px); top: 40px; background: color-mix(in srgb, var(--ind) 25%, #fff); }
.ind .os-hero-copy { max-width: 600px; }
.ind-badge-sep { color: var(--line-2); margin: 0 2px; }
.ind-badge-name { color: var(--ind); }
.ind-h1-sub { display: block; margin-bottom: 6px; font-size: .5em; letter-spacing: .12em; color: var(--ind); }
.ind .os-lead { font-size: 16px; line-height: 2; }
.ind-hero-photo { position: absolute; z-index: 1; top: 70px; right: max(16px, calc(50% - 600px)); width: clamp(380px, 36vw, 470px); aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--ind-bg); }
.ind-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 66% 50%; }
.ind .os-index a { border-color: var(--ind-2); }
.ind .os-index a:hover { background: var(--ind-2); }

/* 見出しの下の一文 */
.ind-head-lead { margin: 18px auto 0; max-width: 760px; color: var(--sub); font-size: 16px; }
.ind-head-lead.is-light { color: rgba(255,255,255,.8); }
.ind-price { font: 800 1.6em/1 var(--en); color: var(--acc); margin: 0 3px; }

/* ---------- 困りごと ---------- */
.ic-box { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M3 8l9-4 9 4-9 4z'/%3E%3Cpath d='M3 8v8l9 4 9-4V8M12 12v8'/%3E%3Cpath d='M15.5 2.5l5 5M20.5 2.5l-5 5'/%3E%3C/svg%3E"); }
.ic-fax { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M7 9V3h10v6'/%3E%3Crect x='3' y='9' width='18' height='9' rx='2'/%3E%3Cpath d='M7 14h10v7H7z'/%3E%3Cpath d='M9 17h6'/%3E%3C/svg%3E"); }
.ic-alert { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M12 3l10 17H2z'/%3E%3Cpath d='M12 10v4M12 17v.2'/%3E%3C/svg%3E"); }
.ind-issues { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind-issues li { position: relative; padding: 30px 22px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 40px -32px rgba(31, 58, 95, .45); }
.ind-issues .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--ind-bg); margin-bottom: 16px; }
.ind-issues .ic::before { inset: 13px; background: var(--ind); }
.ind-issues b { display: block; font-size: 17px; line-height: 1.55; letter-spacing: .03em; }
.ind-issues p { margin: 10px 0 0; color: var(--sub); font-size: 14px; line-height: 1.8; }
.ind-answer { position: relative; margin: 56px auto 0; max-width: 860px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 22px 28px;
  border-radius: 100px; background: var(--paper); border: 2px solid var(--acc); font-size: clamp(16px, 1.7vw, 20px); font-weight: 700; letter-spacing: .04em; text-align: center; }
.ind-answer::before { content: ""; position: absolute; left: 50%; top: -42px; width: 2px; height: 30px; background: linear-gradient(var(--line-2), var(--acc)); }
.ind-answer .os-mark { flex: none; margin: 0; }

/* ---------- できること（元の業務フロー図） ---------- */
.ind-flow { background: #fff; padding: 18px; }
.ind-flow img { mix-blend-mode: normal; border-radius: 8px; }

/* ---------- 10の判断 ---------- */
.ind-axis { list-style: none; margin: 0; padding: 0; counter-reset: ax; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.ind-axis li { counter-increment: ax; position: relative; padding: 22px 24px 20px 92px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.ind-axis li::before { content: counter(ax, decimal-leading-zero); position: absolute; left: 22px; top: 20px; width: 50px; aspect-ratio: 1 / 1.1547; display: grid; place-content: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--ind); color: #fff; font: 800 18px/1 var(--en); }
.ind-axis b { display: block; font-size: 18px; line-height: 1.5; letter-spacing: .03em; }
.ind-axis-sub { display: block; color: var(--ind-2); font-size: 14px; font-weight: 700; }
.ind-axis p { margin: 10px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--sub); font-size: 14px; line-height: 1.75; }
.ind-axis p em { display: inline-block; margin-right: 8px; padding: 0 10px; border-radius: 100px; background: var(--acc-soft); color: var(--acc-ink); font-size: 12px; font-weight: 700; }

/* ---------- 3つの階層と実際の画面 ---------- */
.ind-layer { --lc: color-mix(in srgb, var(--ind) 55%, #fff); position: relative; margin-top: 28px; padding: 36px 40px 40px; border-radius: 28px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(31, 58, 95, .45); }
.ind-layer:first-of-type { margin-top: 0; }
.ind-layer.l2 { --lc: var(--ind); }
.ind-layer.l3 { --lc: var(--acc); border: 2px solid var(--acc); }
.ind-layer-head { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.ind-layer-no { flex: none; display: grid; place-content: center; text-align: center; width: 78px; aspect-ratio: 1 / 1.1547;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: var(--lc); color: #fff; font: 800 26px/1 var(--en); }
.ind-layer-no small { display: block; font-size: 10px; letter-spacing: .14em; margin-bottom: 2px; opacity: .9; }
.ind-layer h3 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; letter-spacing: .08em; }
.ind-layer-head p { margin: 4px 0 0; color: var(--sub); }
.ind-screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind-layer.l1 .ind-screens { grid-template-columns: repeat(2, 1fr); }
.ind-screens figure { margin: 0; }
.ind-screens .os-zoom { background: #eef2f7; padding: 10px 10px 0; }
.ind-screens .os-zoom img { aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; border-radius: 8px 8px 0 0; mix-blend-mode: normal;
  box-shadow: 0 -2px 12px rgba(31, 58, 95, .12); }
.ind-screens figcaption { margin-top: 12px; color: var(--sub); font-size: 14px; line-height: 1.75; }
.ind-screens figcaption b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }

.ind-demo { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px 40px; border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--ind-2), var(--navy)); }
.ind-demo p { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.ind-demo .ind-demo-tag { font: 800 13px/1 var(--en); letter-spacing: .2em; color: #ffd2a1; margin-bottom: 8px; }
.ind-demo .ind-demo-title { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .05em; margin-bottom: 4px; }
.ind-demo .os-btn { flex: none; color: var(--navy) !important; }

/* ---------- 卸のAI ready ---------- */
.ind-world { margin-top: 0; }
.ind-world::before { display: none; }
.ind-more { margin: 22px 0 0; text-align: center; }
.ind-more a { display: inline-flex; gap: 8px; font-weight: 700; color: var(--acc-ink); text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- シリーズ：表示中のカード ---------- */
.os-series .is-current a { box-shadow: inset 0 0 0 2px var(--c); pointer-events: none; }
.os-series .is-current a::after { display: none; }
.ind-here { position: absolute; left: 14px; top: 12px; padding: 1px 10px; border-radius: 100px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; }

/* =====================================================================
   タブレット・スマホ
   ===================================================================== */
@media (max-width: 1023px) {
  .ind-hero-photo { position: relative; top: auto; right: auto; width: min(60%, 360px); margin: 16px auto 28px; }
  .ind .os-hero .h1 { width: 200px; right: -60px; top: auto; bottom: 140px; }
  .ind .os-hero .h2 { width: 110px; right: auto; left: -30px; top: auto; bottom: 200px; }
  .ind .os-index { background: var(--ind-2); }
  .ind .os-index a { border-color: rgba(255,255,255,.3); }
  .ind-issues { grid-template-columns: 1fr 1fr; }
  .ind-axis { grid-template-columns: 1fr; }
  .ind-layer { padding: 30px 24px 28px; }
  .ind-screens, .ind-layer.l1 .ind-screens { grid-template-columns: 1fr 1fr; }
  .ind-demo { flex-direction: column; align-items: flex-start; padding: 28px; }
}
@media (max-width: 640px) {
  .ind-hero-photo { width: 72%; }
  .ind .os-lead { font-size: 15px; }
  .ind-head-lead { font-size: 14px; text-align: left; }
  .ind-issues { grid-template-columns: 1fr; gap: 12px; }
  .ind-issues li { padding: 20px 18px 18px 84px; }
  .ind-issues .ic { position: absolute; left: 18px; top: 20px; width: 48px; height: 48px; }
  .ind-issues b br { display: none; }
  .ind-answer { margin-top: 44px; border-radius: 20px; padding: 18px; flex-direction: column; gap: 8px; }
  .ind-flow { padding: 8px; }
  .ind-axis li { padding: 18px 16px 16px 76px; }
  .ind-axis li::before { left: 16px; top: 18px; width: 44px; font-size: 16px; }
  .ind-axis b { font-size: 16px; }
  .ind-layer { padding: 22px 16px 20px; border-radius: 22px; }
  .ind-layer-head { gap: 14px; margin-bottom: 18px; }
  .ind-layer-no { width: 58px; font-size: 20px; }
  .ind-screens, .ind-layer.l1 .ind-screens { grid-template-columns: 1fr; gap: 18px; }
  .ind-demo { padding: 24px 18px; }
  .ind-demo .ind-demo-title { font-size: 18px; }
}

/* デモが複数ある業種（製造など）：ボタンを縦に並べる */
.ind-demo-btns { flex: none; display: grid; gap: 10px; }
.ind-demo-btns .os-btn { justify-content: space-between; }
@media (max-width: 1023px) { .ind-demo-btns { width: 100%; } }

/* FVの六角形の写真に、ゆっくりした動き（pure AI）。
   写真はゆっくり寄っては戻り、ときどき薄い光の線が上から下へ通る。動きを減らす設定の人には止める */
.ind-hero-photo.is-drift { isolation: isolate; }
.ind-hero-photo.is-drift img { animation: ind-drift 22s ease-in-out infinite alternate; transform-origin: 40% 45%; will-change: transform; }
.ind-hero-photo.is-drift::after { content: ""; position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(190,200,255,.16) 70%, rgba(255,255,255,.38) 96%, rgba(255,255,255,0));
  mix-blend-mode: screen; animation: ind-scan 9s cubic-bezier(.45,0,.55,1) infinite 1.5s; }
@keyframes ind-drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, 1%); } }
@keyframes ind-scan { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 42% { opacity: 1; } 50% { transform: translateY(440%); opacity: 0; } 100% { transform: translateY(440%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ind-hero-photo.is-drift img, .ind-hero-photo.is-drift::after { animation: none; } .ind-hero-photo.is-drift::after { display: none; } }


/* 冒頭の写真：横長の画像を縮めて六角形の中に全体を収める。上下の余白は同じ画像をぼかして埋める */
.ind-hero-photo.is-contain::before { content: ""; position: absolute; inset: -24px; background: var(--photo) center / cover; filter: blur(16px) saturate(1.05); opacity: .5; }
.ind-hero-photo.is-contain img { position: relative; object-fit: contain; object-position: 50% 50%; }
@media (min-width: 1024px) {
  .ind-hero-photo.is-contain { top: 28px; }
  .ind-hero-photo.is-contain img { object-position: 50% 42%; }
  .ind:has(.ind-hero-photo.is-contain) .os-index { bottom: 14px; }
}
