/* ninoma.jp の CSS。色・フォント・余白は、みんなの会計の LP（../minnano-kaikei/Lp/index.html）に合わせる */
:root {
  --primary: #4A90A4;
  --primary-dark: #2D6A7A;
  --primary-light: #7AB8C9;
  --accent: #F5A623;
  --text: #333333;
  --text-sub: #666666;
  --bg-alt: #F8F9FA;
  --line: #E0E0E0;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 880px; }

.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.h2 { font-size: 34px; line-height: 1.45; font-weight: 700; letter-spacing: 0.01em; }
.lead { margin-top: 20px; color: var(--text-sub); max-width: 36em; }

/* ロゴ（N のマーク＋NINOMA の文字。差し替えは src/partials/logo.html と src/assets/logo/ だけ） */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo-mark { height: 32px; width: auto; }
.logo-text { height: 14px; width: auto; }

/* App Store バッジ（画像そのまま。枠線・影・filter は付けない） */
.store { display: inline-block; line-height: 0; }
.store img { width: auto; height: 56px; }

.button { display: inline-block; padding: 14px 28px; border-radius: 8px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; font-size: 16px; }
.button:hover { background: var(--primary-dark); }
.actions { margin-top: 28px; }
.note { margin-top: 12px; color: var(--text-sub); font-size: 14px; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: 15px; color: var(--text); white-space: nowrap; }
.nav a:hover { color: var(--primary-dark); }

/* トップ */
.hero { padding: 96px 0 88px; }
.hero h1 { font-size: 44px; line-height: 1.45; font-weight: 700; letter-spacing: 0.01em; }
.hero .lead { font-size: 18px; }
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; }
.hero-icons { display: grid; grid-template-columns: repeat(4, 88px); gap: 20px; }
.hero-icons img { width: 88px; height: 88px; border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-icons li:nth-child(even) { transform: translateY(16px); }

/* 対応端末のラベル */
.platforms { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.platforms li { padding: 1px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; line-height: 1.7; color: var(--text-sub); }

/* スクロールで出す（JS が動いたときだけ隠す） */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* アプリのカード */
.apps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.app-card { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; padding: 24px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; }
.app-card:hover .app-name { color: var(--primary-dark); text-decoration: underline; }
.app-icon { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); }
.app-name { font-size: 18px; font-weight: 700; line-height: 1.5; }
.app-oneliner { margin-top: 6px; font-size: 15px; color: var(--text-sub); line-height: 1.7; }

/* 下層ページ */
.page { padding: 64px 0 112px; }
.breadcrumbs { font-size: 13px; color: var(--text-sub); margin-bottom: 20px; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-title { font-size: 30px; line-height: 1.45; font-weight: 700; }
.sub-title { margin-top: 56px; font-size: 22px; line-height: 1.5; font-weight: 700; }
.body-text { margin-top: 20px; }
.body-text p + p { margin-top: 16px; }
.body-text h2 { margin-top: 40px; font-size: 20px; line-height: 1.5; font-weight: 700; }
.body-text h2 + p { margin-top: 12px; }
.body-text a, .info a { color: var(--primary-dark); }

/* 運営者情報・特商法の表 */
.info { margin-top: 32px; border-top: 1px solid var(--line); }
.info > div { display: grid; grid-template-columns: 12em 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 700; }

/* アプリのページ */
.app-head { display: grid; grid-template-columns: 112px 1fr; gap: 28px; align-items: center; }
.app-head .app-icon { width: 112px; height: 112px; border-radius: 18px; }
.app-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
/* 紹介画像。PC は 5 枚を横に並べ、入りきらない幅では横にスクロール */
.shots { margin-top: 48px; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.shots li { flex: 0 0 calc((100% - 64px) / 5); scroll-snap-align: start; }
.shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.app-intro { margin-top: 40px; }
.app-intro p + p { margin-top: 12px; }
/* 規約へのリンク（ページの最後にまとめる） */
.app-links { margin-top: 48px; padding: 20px 24px; background: var(--bg-alt); border-radius: 12px; display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 15px; }
.app-links a { color: var(--primary-dark); text-decoration: none; }
.app-links a::after { content: " ›"; }
.app-links a:hover { text-decoration: underline; }

/* 移した文書（利用規約・プライバシーポリシー）。旧サイトから文面をそのまま移しているので、タグに合わせて見た目だけを整える */
.toc { margin-top: 32px; padding: 20px 24px; background: var(--bg-alt); border-radius: 12px; font-size: 15px; }
.toc-title { font-weight: 700; }
.toc ol { margin-top: 8px; padding-left: 1.4em; list-style: decimal; }
.toc a { color: var(--primary-dark); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal-body { margin-top: 40px; font-size: 16px; }
.legal-body .container { max-width: none; padding: 0; }
.legal-body h1 { margin-top: 32px; font-size: 24px; line-height: 1.5; }
.legal-body h2 { margin-top: 40px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.5; }
.legal-body h3 { margin-top: 24px; font-size: 17px; line-height: 1.6; }
.legal-body p, .legal-body ul, .legal-body ol, .legal-body table { margin-top: 12px; }
.legal-body ul { padding-left: 1.4em; list-style: disc; }
.legal-body ol { padding-left: 1.4em; list-style: decimal; }
.legal-body li + li { margin-top: 4px; }
.legal-body a { color: var(--primary-dark); word-break: break-all; }
.legal-body hr { margin: 48px 0; border: 0; border-top: 1px solid var(--line); }
.legal-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-body th, .legal-body td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body th { background: var(--bg-alt); }

/* フッター */
.footer { background: var(--bg-alt); padding: 64px 0 40px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-desc { margin-top: 12px; color: var(--text-sub); font-size: 13px; line-height: 1.8; }
.footer h2 { font-size: 13px; color: var(--text-sub); font-weight: 700; }
.footer ul { margin-top: 14px; display: grid; gap: 8px; }
.footer ul a { text-decoration: none; }
.footer ul a:hover { color: var(--primary-dark); text-decoration: underline; }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--text-sub); font-size: 13px; }

@media (max-width: 1080px) {
  .apps { grid-template-columns: repeat(2, 1fr); }
  .hero-icons { grid-template-columns: repeat(4, 68px); gap: 16px; }
  .hero-icons img { width: 68px; height: 68px; border-radius: 16px; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .hero h1 { font-size: 34px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-icons li:nth-child(even) { transform: none; }
  .h2 { font-size: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 28px; }
  .hero-icons { grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 360px; }
  .hero-icons img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 14px; }
  .h2 { font-size: 24px; }
  .nav { gap: 16px; }
  .header-inner { gap: 16px; }
  .logo { gap: 8px; }
  .logo-mark { height: 26px; }
  .logo-text { height: 11px; }
  .apps { grid-template-columns: 1fr; gap: 16px; }
  .page { padding: 40px 0 64px; }
  .page-title { font-size: 24px; }
  .info > div { grid-template-columns: 1fr; gap: 4px; }
  .app-head { grid-template-columns: 80px 1fr; gap: 20px; }
  .app-head .app-icon { width: 80px; height: 80px; border-radius: 16px; }
  .app-actions { margin-top: 24px; }
  .shots { margin-top: 32px; gap: 12px; margin-right: -20px; padding-right: 20px; }
  .shots li { flex-basis: 42%; }
  .app-links { flex-direction: column; }
  .legal-body table { display: block; overflow-x: auto; }
}
