/* トップページで使う色をまとめています。 */
:root {
  --navy: #132c4f;
  --green: #13a58c;
  --green-dark: #0d7e6d;
  --mint: #e8f8f4;
  --ink: #243447;
  --muted: #687386;
  --line: #dce6eb;
  --white: #ffffff;
  --background: #f5f8f9;
  --shadow: 0 16px 40px rgba(19, 44, 79, .09);
}

/* 余白を含めて幅を計算します。 */
* { box-sizing: border-box; }

/* ページ内の移動をなめらかにします。 */
html { scroll-behavior: smooth; }

/* ページ全体の文字と背景を設定します。 */
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}

/* 内容が画面いっぱいに広がりすぎないようにします。 */
.container { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

/* ページ上部を濃い青色にします。 */
.site-header { color: var(--white); background: var(--navy); }

/* ヘッダーの中身を横並びにします。 */
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

/* サイト名の見た目です。 */
.logo { color: var(--white); font-size: 1.15rem; font-weight: 900; text-decoration: none; }

/* 無料表示を丸い枠で囲みます。 */
.header-note { padding: 4px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: .78rem; }

/* 最初の紹介部分に色と余白を付けます。 */
.hero { color: var(--white); background: linear-gradient(135deg, var(--navy), #1f5275); }

/* 紹介部分の文字を中央に配置します。 */
.hero-inner { padding: 76px 0 84px; text-align: center; }

/* 英字の小見出しです。 */
.eyebrow { margin: 0 0 8px; color: var(--green); font-size: .82rem; font-weight: 900; letter-spacing: .14em; }

/* 最初の大見出しを大きく表示します。 */
h1 { margin: 0; font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1.18; letter-spacing: -.04em; }

/* 紹介文の幅を読みやすくします。 */
.hero-text { max-width: 650px; margin: 20px auto 30px; color: #d8e8f2; }

/* アプリ一覧へ移動するボタンです。 */
.hero-button { display: inline-block; padding: 13px 25px; border-radius: 999px; color: var(--navy); background: var(--white); font-weight: 900; text-decoration: none; }

/* アプリ一覧の上下に余白を作ります。 */
.apps-section { padding: 70px 0; }

/* 一覧の見出しを中央にします。 */
.section-heading { margin-bottom: 30px; text-align: center; }

/* 中見出しの大きさを設定します。 */
h2 { margin: 0; color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.4rem); }

/* 見出し下の文章の色を薄くします。 */
.section-heading > p:last-child { margin: 8px 0 0; color: var(--muted); }

/* アプリカードを3列に並べます。 */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 個別アプリと便利ツール10選を分ける見出しです。 */
.collection-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
  padding: 26px 28px;
  border-radius: 20px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #1f5275);
}

/* 10選の見出しを白色にします。 */
.collection-heading h3 { margin: 0; color: var(--white); font-size: 1.45rem; }

/* 10選の説明文を読みやすい色にします。 */
.collection-heading div > p:last-child { margin: 5px 0 0; color: #d8e8f2; }

/* 10選をまとめて開くボタンです。 */
.collection-heading > a { flex: 0 0 auto; padding: 11px 18px; border-radius: 999px; color: var(--navy); background: var(--white); font-weight: 900; text-decoration: none; }

/* 各アプリを白いカードにします。 */
.app-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

/* マウスを重ねたカードを少し持ち上げます。 */
.app-card:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(19,44,79,.14); }

/* おすすめアプリの枠を緑色にします。 */
.app-card.featured { border-color: rgba(19,165,140,.5); }

/* アプリを表す四角いマークです。 */
.app-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--white); background: var(--green); font-size: 1.35rem; font-weight: 900; }

/* アプリごとにマークの色を変えます。 */
.app-icon.blue { background: #377dcc; }
.app-icon.orange { background: #f08a43; }
.app-icon.purple { background: #7559c7; }
.app-icon.pink { background: #d85f88; }

/* NEWなどの小さな印です。 */
.app-tag { position: absolute; top: 28px; right: 28px; padding: 3px 9px; border-radius: 999px; color: var(--green-dark); background: var(--mint); font-size: .72rem; font-weight: 900; }

/* 新作の印をオレンジ色にします。 */
.app-tag.new { color: #9a4a18; background: #fff0e5; }

/* カードのアプリ名です。 */
.app-card h3 { margin: 20px 0 7px; color: var(--navy); font-size: 1.25rem; }

/* カードの説明文です。 */
.app-card p { margin: 0; color: var(--muted); }

/* カード下部の案内です。 */
.open-label { display: block; margin-top: 20px; color: var(--green-dark); font-weight: 900; }

/* サイト説明部分の背景を白くします。 */
.about-section { padding: 56px 0; background: var(--white); }

/* サイト説明を2列にします。 */
.about-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: center; }

/* サイト説明の文章色を薄くします。 */
.about-card > p { margin: 0; color: var(--muted); }

/* ページ下部を中央寄せにします。 */
.site-footer { padding: 22px 16px; color: #c8d4df; background: var(--navy); text-align: center; }

/* ページ下部の案内リンクを横並びにします。 */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 8px; }

/* ページ下部のリンクを読みやすい色にします。 */
.footer-links a { color: #d8e8f2; text-decoration: none; }

/* タブレットではカードを2列にします。 */
@media (max-width: 850px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }

/* スマートフォンではすべて縦並びにします。 */
@media (max-width: 580px) {
  .hero-inner { padding: 58px 0 64px; }
  .app-grid, .about-card { grid-template-columns: 1fr; }
  .about-card { gap: 16px; }
  .collection-heading { align-items: flex-start; flex-direction: column; }
}
