/* サービス別ページ（/service/sns/ ほか5ページ）。corporate.css → home.css の上に重ねる。
   ページは tools/build_solution_pages.py が content/solutions.json から作る。 */

/* ── ヒーロー（左に文字・右に見本） ─────────────── */
.sol-hero { padding-block: clamp(3.5rem, 7vw, 6rem); background: linear-gradient(180deg, #f5f9fd 0%, var(--pale) 100%); }
.sol-hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.sol-hero .breadcrumb { margin-bottom: 1.8rem; color: var(--ink-soft); }
.sol-hero .breadcrumb a { color: var(--blue); }
.sol-hero .eyebrow { margin-bottom: 1rem; }
.sol-hero h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); line-height: 1.45; font-weight: 700; color: var(--navy); }
.sol-hero .hero-lead { margin-top: 1.4rem; color: #1d3553; }
.sol-hero .hero-actions { margin-top: 2rem; }
.sol-hero .text-link { color: var(--blue); }
.sol-hero-visual { display: flex; flex-direction: column; align-items: center; }
.sample--hero { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; box-shadow: 0 24px 50px rgba(11, 36, 71, .16); }
.sample--hero.is-vertical { width: auto; height: min(62vh, 520px); aspect-ratio: 9 / 16; }
.sample--hero .sample-play { width: 3.8rem; height: 3.8rem; }
.sample--hero .sample-play::after { border-width: .7rem 0 .7rem 1.1rem; }
.sol-hero-caption { margin-top: .9rem; color: var(--ink-soft); font-size: .85rem; }

/* ── お困りごと ─────────────────────────── */
.pain-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pain-list li {
  position: relative;
  padding: 1.6rem 1.5rem 1.6rem 3.6rem;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  line-height: 1.75;
}
.pain-list li::before {
  content: "";
  position: absolute;
  left: 1.4rem;
  top: 1.95rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--blue);
  border-radius: 4px;
}
.pain-list li::after {
  content: "";
  position: absolute;
  left: 1.72rem;
  top: 2.05rem;
  width: .38rem;
  height: .68rem;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ── つくるもの ─────────────────────────── */
.make-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.make { padding: 1.6rem 1.5rem; border-top: 3px solid var(--blue); background: var(--pale); }
.make-no { font: 1.5rem/1 var(--serif); color: var(--blue); }
.make h3 { margin-top: .8rem; font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.make p { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; line-height: 1.8; }
.flow-line { margin-top: 3rem; padding: 1.8rem 2rem; border: 1px solid var(--home-line); border-radius: 10px; }
.flow-label { color: var(--ink-soft); font-size: .9rem; }
.flow-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.flow-chip { padding: .45rem 1.1rem; border-radius: 999px; background: var(--pale-2); color: var(--navy); font-size: .95rem; font-weight: 700; }
.flow-arrow { color: var(--blue); font-weight: 700; }

/* ── 見本 ─────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-item { margin: 0; }
.gallery-item .sample { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; }
.gallery-item .sample.is-vertical img { object-fit: contain; }
.gallery-item .sample-play { width: 3rem; height: 3rem; }
.gallery-item .sample-play::after { border-width: .55rem 0 .55rem .85rem; }
.gallery-item figcaption { margin-top: .8rem; }
.gallery-item figcaption strong { display: block; color: var(--navy); }
.gallery-item figcaption span { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .9rem; }
.gallery-note { margin-top: 1.6rem; color: var(--ink-soft); font-size: .9rem; }

/* ── 進め方・料金・FAQ ─────────────────────── */
.solution .flow h3 { font-size: 1.2rem; font-weight: 600; color: var(--navy); }
.solution .flow li::before { color: var(--blue); }
.price-note-box { padding: 1.6rem 1.8rem; border-radius: 10px; background: #fff; color: #1d3553; }
.price-note-box a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }
.solution .faq summary { color: var(--navy); }
.back-link { margin-top: 1.6rem !important; }
.back-link .text-link { color: var(--blue); }

@media (max-width: 1100px) {
  .make-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .sol-hero-inner { grid-template-columns: 1fr; }
  .sol-hero h1 { font-size: 2.1rem; }
  .sample--hero.is-vertical { height: 420px; }
  .pain-list, .make-grid, .gallery-grid { grid-template-columns: 1fr; }
  .flow-line { padding: 1.3rem; }
}

/* ── 料金カード（起点価格。数字は ad_pricing.json から） ─────── */
.price-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; margin-bottom: 1.2rem; padding: 2rem 2.2rem; border-top: 3px solid var(--blue); border-radius: 0 0 10px 10px; background: #fff; }
.price-card-label { color: var(--ink-soft); font-size: .95rem; font-weight: 700; }
.price-card-price { margin-top: .4rem; color: var(--navy); font-size: 1.1rem; }
.price-card-price strong { font: 700 2.6rem/1.2 var(--serif); letter-spacing: .01em; }
.price-card-price small { margin-left: .3rem; color: var(--ink-soft); font-size: .85rem; }
.price-card-inc { color: var(--ink-soft); font-size: .85rem; font-weight: 700; }
.price-card-list { display: flex; flex-wrap: wrap; gap: .45rem; margin: .6rem 0 0; padding: 0; list-style: none; }
.price-card-list li { padding: .3rem .8rem; border-radius: 999px; background: var(--pale); color: #1d3553; font-size: .88rem; }
@media (max-width: 760px) { .price-card { grid-template-columns: 1fr; gap: 1.2rem; padding: 1.5rem; } }
.price-card-sub { margin-top: .5rem; color: var(--ink-soft); font-size: .9rem; }
.sol-hero-inner > * { min-width: 0; }
@media (max-width: 360px) { .sol-hero h1 { font-size: 1.75rem; } }

/* ── AI動画商品のカタログ（テンプレート販売の棚） ─────────── */
.chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin: -1rem 0 2.4rem; padding: 0; list-style: none; }
.chooser li { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; padding: .9rem 1rem; border-radius: 999px; background: var(--pale); font-size: .95rem; text-align: center; }
.chooser span { color: #1d3553; font-weight: 700; }
.chooser b { color: var(--blue); }
.chooser a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: .25rem; }
.item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--home-line); border-radius: 12px; background: #fff; }
.item-media { padding: 1.2rem 1.2rem 0; background: linear-gradient(180deg, var(--pale) 0%, #fff 100%); }
.sample--item { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; background: #0b1624; }
.sample--item.is-vertical img { object-fit: contain; }
.sample--item .sample-play { width: 3.2rem; height: 3.2rem; }
.sample--item .sample-play::after { border-width: .6rem 0 .6rem .9rem; }
.item-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.5rem 1.6rem; }
.item-body h3 { font-size: 1.45rem; font-weight: 700; color: var(--navy); }
.item-catch { margin-top: .3rem; color: #1d3553; font-weight: 700; }
.item-price { margin-top: .8rem; color: var(--navy); }
.item-price strong { font: 700 2.3rem/1.2 var(--serif); }
.item-price small { margin-left: .3rem; color: var(--ink-soft); font-size: .8rem; }
.item-rows { display: grid; grid-template-columns: 5.2rem 1fr; gap: .55rem .8rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--home-line); font-size: .92rem; line-height: 1.7; }
.item-rows dt { color: var(--ink-soft); font-weight: 700; }
.item-rows dd { margin: 0; color: #1d3553; }
.item-rows dd b { color: var(--blue); }
.item-spec { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1rem 0 1.3rem; padding: 0; list-style: none; }
.item-spec li { padding: .2rem .65rem; border-radius: 999px; background: var(--pale); color: var(--ink-soft); font-size: .78rem; }
.item .pill--small { margin-top: auto; align-self: stretch; justify-content: center; }
.solution .flow--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .item-grid, .chooser { grid-template-columns: 1fr 1fr; } .solution .flow--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .item-grid, .chooser { grid-template-columns: 1fr; } .chooser { margin-top: 0; } .solution .flow--5 { grid-template-columns: 1fr; } }

/* CMとの違い（AI動画商品のページ） */
.compare-box { margin-top: 2.4rem; padding: 1.8rem 2rem; border-radius: 12px; background: var(--pale); }
.compare-box h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.compare-scroll { overflow-x: auto; margin-top: 1rem; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: .95rem; }
.compare-table th, .compare-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--home-line); text-align: left; }
.compare-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.compare-table thead a { color: #fff; text-decoration: underline; text-underline-offset: .25rem; }
.compare-table tbody th { width: 30%; color: var(--ink-soft); font-weight: 700; }
.compare-price td { color: var(--navy); font-weight: 700; font-size: 1.05rem; }
@media (max-width: 760px) { .compare-box { padding: 1.3rem; } }

/* まとめ買いの枠（SNS運用のページ） */
.pack-box { margin-bottom: 1.6rem; padding: 1.8rem 2rem; border-radius: 12px; background: var(--pale); }
.pack-box h3 { font-size: 1.25rem; font-weight: 600; color: var(--navy); }
.pack-lead { margin-top: .5rem; color: var(--ink-soft); font-size: .92rem; line-height: 1.8; }
.pack-scroll { overflow-x: auto; margin-top: 1rem; }
.pack-table { width: 100%; min-width: 560px; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; font-size: .95rem; }
.pack-table th, .pack-table td { padding: .9rem 1rem; border-bottom: 1px solid var(--home-line); text-align: left; vertical-align: middle; }
.pack-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.pack-table tbody th { width: 34%; color: #1d3553; font-weight: 700; }
.pack-table tbody th span { display: block; margin-top: .2rem; color: var(--ink-soft); font-size: .82rem; font-weight: 400; }
.pack-price { color: var(--navy); white-space: nowrap; }
.pack-price strong { font: 700 1.6rem/1.2 var(--serif); }
.pack-price small { margin-left: .2rem; color: var(--ink-soft); font-size: .78rem; }
.pack-per { color: var(--ink-soft); font-size: .85rem; white-space: nowrap; }
.price-card-note { margin-top: .8rem; color: var(--ink-soft); font-size: .85rem; line-height: 1.7; }
@media (max-width: 760px) { .pack-box { padding: 1.3rem; } }

/* カルーセルの見本（横にめくる）・追加の見本・お見積もり */
.swipe { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 9; padding-bottom: .3rem; border-radius: 8px; background: #0b1624; }
.swipe img { flex: 0 0 auto; height: 100%; width: auto; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; border-radius: 4px; }
.swipe:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.swipe-hint { margin: .4rem 0 0; color: var(--ink-soft); font-size: .78rem; text-align: center; }

/* 紙もの（デザイン制作）の見本。A4縦・名刺の横長が混ざるので、切らずに全体を出す */
.swipe--paper { aspect-ratio: 4 / 3; gap: .75rem; padding: .9rem; background: #E8EDF2; }
.swipe--paper img { height: 100%; width: auto; aspect-ratio: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 6px 18px rgba(11, 36, 71, .22); }

/* 動画の見本が無いページのヒーロー（静止画1枚） */
.sample--still { width: auto; max-width: 100%; height: min(62vh, 520px); aspect-ratio: auto; margin: 0; border-radius: 6px; overflow: hidden; background: #E8EDF2; }
.sample--still img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .sample--still { height: auto; width: 100%; } .sample--still img { width: 100%; height: auto; } }
.item-more { margin-top: .6rem; }
.item-price--quote strong { font-size: 1.8rem; }
