/* ================================================================
   kaminaga_app_new.html 専用スタイル
   （共通は style.css / category.css、ここはこのページ専用のみ）
   ================================================================ */

/* ── ヒーロー背景（このページ専用） ── */
.ct-hero-app {
  background-image: url('https://www.kaminagahanbai.co.jp/images/keyvisual/keyvisual-app.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── セクション冒頭のリード文 ── */
.ap-lead {
  font-size: 13px;
  color: var(--pd-sub);
  line-height: 1.9;
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 720px;
}

/* ================================================================
   ダウンロードエリア
   ================================================================ */
.ap-dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.ap-dl-card {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(78,179,216,.18);
  border-radius: 16px;
  padding: 30px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(78,179,216,.09);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ap-dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(78,179,216,.4);
  box-shadow: 0 16px 40px rgba(78,179,216,.18);
}
.ap-dl-os {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pd-sky);
  font-family: 'Inter', sans-serif;
  margin-bottom: 6px;
}
.ap-dl-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pd-text);
  margin-bottom: 6px;
}
.ap-dl-req {
  font-size: 11px;
  color: var(--pd-sub);
  font-weight: 300;
  margin-bottom: 20px;
}
.ap-dl-badge {
  display: inline-block;
  transition: opacity .22s, transform .22s;
}
.ap-dl-badge:hover { opacity: .82; transform: translateY(-2px); }
.ap-dl-badge img {
  display: block;
  height: 56px;
  width: auto;
}
.ap-dl-price {
  margin-top: 16px;
  font-size: 11px;
  color: var(--pd-sky-b);
  background: rgba(78,179,216,.1);
  border: 1px solid rgba(78,179,216,.22);
  border-radius: 99px;
  padding: 4px 14px;
  font-weight: 600;
}

/* ================================================================
   アプリ画面ギャラリー
   ================================================================ */
.ap-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.ap-shot {
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(78,179,216,.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(78,179,216,.08);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.ap-shot:hover {
  transform: translateY(-5px);
  border-color: rgba(78,179,216,.4);
  box-shadow: 0 16px 40px rgba(78,179,216,.18);
}
.ap-shot-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f4f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ap-shot-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 14px;
  transition: transform .4s;
}
.ap-shot:hover .ap-shot-img img { transform: scale(1.04); }
.ap-shot-cap {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(78,179,216,.1);
}
.ap-shot-cap-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--pd-text);
  margin-bottom: 4px;
}
.ap-shot-cap-text {
  font-size: 11px;
  color: var(--pd-sub);
  line-height: 1.7;
  font-weight: 300;
}

/* ================================================================
   はじめかた（3ステップ）
   ================================================================ */
.ap-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: apstep;
}
.ap-step {
  position: relative;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(78,179,216,.18);
  border-radius: 14px;
  padding: 26px 22px 22px;
  box-shadow: 0 4px 16px rgba(78,179,216,.08);
}
.ap-step-num {
  position: absolute;
  top: -14px;
  left: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pd-sky-l), var(--pd-sky-b));
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(78,179,216,.35);
}
.ap-step-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-text);
  margin: 8px 0 6px;
}
.ap-step-text {
  font-size: 12px;
  color: var(--pd-sub);
  line-height: 1.8;
  font-weight: 300;
}

/* ================================================================
   対応環境テーブル
   ================================================================ */
.ap-spec {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(78,179,216,.18);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.ap-spec th,
.ap-spec td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(78,179,216,.12);
  vertical-align: top;
}
.ap-spec tr:last-child th,
.ap-spec tr:last-child td { border-bottom: none; }
.ap-spec th {
  width: 200px;
  background: rgba(78,179,216,.07);
  color: var(--pd-text);
  font-weight: 700;
  white-space: nowrap;
}
.ap-spec td {
  color: var(--pd-sub);
  font-weight: 300;
  line-height: 1.8;
}

/* ================================================================
   注意事項ボックス
   ================================================================ */
.ap-note {
  margin-top: 26px;
  background: rgba(78,179,216,.06);
  border: 1px solid rgba(78,179,216,.2);
  border-radius: 14px;
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.ap-note-icon { font-size: 24px; flex-shrink: 0; line-height: 1.2; }
.ap-note-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pd-text);
  margin-bottom: 8px;
}
.ap-note-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--pd-sub);
  line-height: 1.9;
  font-weight: 300;
}
.ap-note-list li { margin-bottom: 2px; }

/* ================================================================
   レスポンシブ
   ================================================================ */
@media (max-width: 1024px) {
  .ap-shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .ap-dl { grid-template-columns: 1fr; }
  .ap-dl-card { padding: 26px 20px; }
  .ap-steps { grid-template-columns: 1fr; gap: 26px; }
  .ap-spec th { width: 110px; padding: 12px 12px; white-space: normal; }
  .ap-spec td { padding: 12px 12px; }
  .ap-note { padding: 18px 18px; gap: 12px; }
}
@media (max-width: 480px) {
  .ap-shots { grid-template-columns: 1fr; }
  .ap-dl-badge img { height: 48px; }
}
