/* smarcivaZIP のダウンロードページ。色と角丸は site.css の変数にそろえる。 */

/*
  日本語と英語の片方を hidden で隠している。hidden は既定の display:none でしか効かないので、
  .app-note のように display を指定した要素では両方とも出てしまう。ここで必ず隠す。
*/
[data-lang][hidden] { display: none !important; }

.app-hero { padding: 132px 0 44px; color: #fff; background: var(--navy); }
.app-hero-row { display: flex; align-items: center; gap: 28px; }
.app-hero-icon { flex: none; width: 112px; height: 112px; border-radius: 22px; }
.app-breadcrumb { margin: 0 0 6px; color: #9fb5c6; font-size: .8rem; }
.app-breadcrumb a { color: #a7d9d4; text-decoration: none; }
.app-breadcrumb a:hover { text-decoration: underline; }
.app-hero h1 { margin: 0 0 8px; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.app-tagline { max-width: 720px; margin: 0 0 16px; color: #d3e0ea; font-size: 1.05rem; }
.app-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.app-facts li { padding: 4px 10px; color: #cfe3ee; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; font-size: .78rem; font-weight: 700; }

.app-download { padding: 34px 0 26px; background: var(--mist); }
.app-download-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 26px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.app-download-button { width: 100%; min-height: 56px; font-size: 1.02rem; }
.app-download-button .icon { width: 20px; height: 20px; }
.app-download-sub { margin: 9px 0 0; color: var(--muted); font-size: .8rem; text-align: center; }
.app-download-more { display: grid; gap: 4px; margin: 0; padding: 0 0 0 24px; list-style: none; border-left: 1px solid var(--line); }
.app-download-more a, .app-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--teal-dark); font-size: .88rem; font-weight: 700; text-decoration: none; }
.app-download-more a:hover, .app-links a:hover { text-decoration: underline; }
.app-download-more .icon, .app-links .icon { flex: none; width: 16px; height: 16px; }

.app-note { display: flex; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid #f2d9a6; border-radius: var(--radius); background: #fff8ea; }
.app-note .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--amber); }
.app-note p { margin: 0; color: #5b4a24; font-size: .84rem; line-height: 1.7; }

.app-section { padding: 64px 0; background: #fff; }
.app-section--mist { background: var(--mist); }
.app-section h2 { margin: 0 0 16px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.3; }
.app-section p { color: var(--muted); line-height: 1.85; }
.app-two-col { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 44px; align-items: center; }
.app-shot { margin: 0; text-align: center; }
.app-shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

.app-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-features article { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.app-features h3 { margin: 0 0 8px; font-size: 1.02rem; }
.app-features p { margin: 0; font-size: .86rem; line-height: 1.75; }

.app-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.app-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.app-table th, .app-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); }
.app-table th { color: var(--muted); background: var(--mist); font-size: .76rem; font-weight: 800; }
.app-table tbody tr:last-child td { border-bottom: 0; }
.app-tips { margin: 18px 0 0; padding-inline-start: 1.2em; color: var(--muted); font-size: .86rem; line-height: 1.8; }

.app-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.app-specs dl { margin: 0; border-top: 1px solid var(--line); font-size: .88rem; }
.app-specs dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.app-specs dt { color: var(--muted); font-weight: 700; }
.app-specs dd { margin: 0; }
.app-links { display: grid; gap: 2px; margin: 10px 0 0; padding: 0; list-style: none; }

[dir="rtl"] .app-download-more { padding: 0 24px 0 0; border-left: 0; border-right: 1px solid var(--line); }
/* アラビア語の画面で英語の本文を出すとき、文末の「.」が行頭へ回らないよう英語の向きで並べる。 */
[dir="rtl"] [data-lang="en"] { unicode-bidi: plaintext; }

@media (max-width: 900px) {
  .app-download-card, .app-two-col, .app-specs { grid-template-columns: 1fr; }
  .app-download-more { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  [dir="rtl"] .app-download-more { padding: 16px 0 0; border-right: 0; }
  .app-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .app-hero { padding: 104px 0 34px; }
  .app-hero-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .app-hero-icon { width: 84px; height: 84px; border-radius: 18px; }
  .app-features { grid-template-columns: 1fr; }
  .app-section { padding: 46px 0; }
  .app-specs dl div { grid-template-columns: 90px 1fr; }
}
