/* ===========================
   /imakoso  横動画制作（imakoso.css の .ik の上に足す）
   =========================== */
/* 色: ショート（緑）と見分けがつくよう、横動画は落ち着いた青〜紺 */
.ik.iw {
  --ik-green: #24466F;       /* 名前は共通の変数のまま（ページの主色） */
  --ik-green-dark: #1A3555;
  --ik-pale: #EEF2F7;
  --ik-line: #D7DFEA;
  --ik-ink: #1C2A3A;
}
.iw .iw-hero-media { min-width: 0; }
.iw .iw-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #1E2C2F; cursor: pointer;
  border: 10px solid #1E2C2F; box-shadow: 0 30px 60px -28px rgba(10,30,30,.55); transform: rotate(-2deg); transition: transform .5s cubic-bezier(.3,1.4,.5,1); }
.iw .iw-frame:hover { transform: rotate(0deg) scale(1.02); }
.iw .iw-frame iframe, .iw .iw-frame img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.iw .iw-poster { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; background: #F6EFE4; color: #6A5A50; text-align: center; padding-bottom: 12%; }
.iw .iw-poster .s { font-family: var(--ik-num); font-size: 12px; letter-spacing: .14em; color: #B98D84; }
.iw .iw-poster .h { font-family: var(--ik-maru); font-weight: 900; font-size: clamp(22px, 3vw, 34px); line-height: 1.35; }
.iw .iw-frame .ik-play { position: absolute; left: 50%; bottom: 10%; margin-left: -34px; }
.iw .iw-frame .ik-badge { z-index: 2; }
.iw .iw-hero-media .iw-frame.playing { transform: none; }

.iw .iw-how { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.iw .iw-how-card { background: #fff; border-radius: var(--ik-r); padding: 30px 30px; }
.iw .iw-how-card .n { font-family: var(--ik-num); font-weight: 700; color: var(--ik-green); font-size: 22px; }
.iw .iw-how-card h3 { font-family: var(--ik-maru); font-weight: 900; color: var(--ik-ink); font-size: 22px; margin: 8px 0 8px; }
.iw .iw-how-card p { color: var(--ik-muted); margin: 0; }

.iw .iw-price { margin-top: 28px; border: 1px solid var(--ik-line); border-radius: var(--ik-r); overflow: hidden; }
.iw .iw-price-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 26px 30px; background: #FCF6E3; }
.iw .iw-price-main .lbl { font-family: var(--ik-maru); font-weight: 900; font-size: 24px; color: var(--ik-ink); }
.iw .iw-price-main .lbl small { font-family: "Noto Sans JP", sans-serif; font-weight: 500; font-size: 14px; color: var(--ik-muted); margin-left: 10px; }
.iw .iw-price-main .v small { font-size: 14px; color: var(--ik-muted); margin-right: 6px; }
.iw .iw-price-main .v b { font-family: var(--ik-num); font-size: 40px; color: var(--ik-ink); }
.iw .iw-price ul { list-style: none; margin: 0; padding: 18px 30px 22px; display: grid; gap: 8px; font-size: 15px; }
.iw .iw-price li { padding-left: 1.2em; position: relative; }
.iw .iw-price li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--ik-green); }

.iw .iw-uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.iw .iw-use { background: #fff; border-radius: var(--ik-r); padding: 26px 22px; transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.iw .iw-use:hover { transform: translateY(-4px); }
.iw .iw-use svg { width: 44px; height: 44px; fill: none; stroke: var(--ik-green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.iw .iw-use h3 { font-family: var(--ik-maru); font-weight: 900; color: var(--ik-ink); font-size: 18px; margin: 12px 0 6px; }
.iw .iw-use p { font-size: 14px; color: var(--ik-muted); margin: 0; line-height: 1.7; }

.iw .iw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.iw .iw-card { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.iw .iw-card .iw-frame { transform: none; border-width: 0; border-radius: 16px; box-shadow: none; }
.iw .iw-card h4 { font-size: 15px; font-weight: 700; color: var(--ik-ink); margin: 10px 0 0; }
.iw .iw-card .meta { font-size: 12px; color: var(--ik-muted); }

@media (max-width: 960px) { .iw .iw-uses { grid-template-columns: 1fr 1fr; } .iw .iw-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .iw .iw-how, .iw .iw-uses, .iw .iw-grid { grid-template-columns: 1fr; } .iw .iw-frame { transform: none; } }

/* 見学での使い方（3段） */
.iw .iw-visit { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: v; }
.iw .iw-visit li { position: relative; background: var(--ik-pale); padding: 28px 28px 28px 30px; }
.iw .iw-visit li:first-child { border-radius: var(--ik-r) 0 0 var(--ik-r); background: var(--ik-yellow); }
.iw .iw-visit li:last-child { border-radius: 0 var(--ik-r) var(--ik-r) 0; }
.iw .iw-visit li + li { border-left: 2px solid #fff; }
.iw .iw-visit li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; z-index: 1; width: 26px; height: 26px; margin-top: -13px; background: #fff; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,.08); mask: none; }
.iw .iw-visit li:not(:last-child)::before { content: ""; position: absolute; right: -5px; top: 50%; z-index: 2; margin-top: -5px; border-left: 8px solid var(--ik-green); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.iw .iw-visit .n { font-family: var(--ik-num); font-weight: 700; font-size: 34px; color: var(--ik-green); line-height: 1; }
.iw .iw-visit h3 { font-family: var(--ik-maru); font-weight: 900; color: var(--ik-ink); font-size: 21px; margin: 10px 0 6px; }
.iw .iw-visit p { font-size: 15px; color: var(--ik-text); margin: 0 0 14px; }
.iw .iw-visit .tag { display: inline-block; font-size: 12px; font-weight: 700; background: #fff; color: var(--ik-green); border-radius: 999px; padding: 3px 12px; }
@media (max-width: 760px) {
  .iw .iw-visit { grid-template-columns: 1fr; }
  .iw .iw-visit li, .iw .iw-visit li:first-child, .iw .iw-visit li:last-child { border-radius: 0; }
  .iw .iw-visit li:first-child { border-radius: var(--ik-r) var(--ik-r) 0 0; }
  .iw .iw-visit li:last-child { border-radius: 0 0 var(--ik-r) var(--ik-r); }
  .iw .iw-visit li + li { border-left: 0; border-top: 2px solid #fff; }
  .iw .iw-visit li:not(:last-child)::after { right: 50%; top: auto; bottom: -14px; margin: 0 -13px 0 0; }
  .iw .iw-visit li:not(:last-child)::before { right: 50%; top: auto; bottom: -5px; margin: 0 -5px 0 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 8px solid var(--ik-green); border-bottom: 0; }
}

/* 作例の仮の絵 */
.iw .iw-ph { background: #DCE4EF; color: var(--ik-ink); padding: 0 10% 14%; }
.iw .iw-ph .s { color: var(--ik-green); }
.iw .iw-ph .h { font-size: clamp(17px, 1.7vw, 22px); }
.iw .iw-card .iw-frame .ik-play { width: 48px; height: 48px; margin-left: -24px; bottom: 9%; }
.iw .iw-card .iw-frame .ik-play svg { width: 18px; height: 18px; margin-left: 3px; }
