/* トップページ（index.html）だけのスタイル。クラスは hm- で始める */
.hm-hero { padding: 84px 0 56px; text-align: center; }
.hm-hero .news-pill { margin-bottom: 26px; }
.hm-hero h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -.04em; line-height: 1.15; word-break: keep-all; overflow-wrap: anywhere; }
.hm-hero h1 .hl { display: block; }
.hm-hero .lead { max-width: 600px; margin: 24px auto 0; color: var(--muted); font-size: clamp(16px, 1.8vw, 18px); }
.hm-hero .btn-row { justify-content: center; margin-top: 32px; }
.hm-dock { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 52px; }
.hm-dock a {
  display: grid; place-items: center; width: 76px; height: 76px; border-radius: 22px; corner-shape: superellipse(1.6);
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.hm-dock a:hover { transform: translateY(-6px) scale(1.06); box-shadow: 0 2px 4px rgba(13, 16, 20, .05), 0 18px 36px rgba(13, 16, 20, .16), inset 0 0 0 1px var(--line); }
.hm-dock img { width: 48px; height: 48px; border-radius: 12px; }

/* プロダクト（ベントー） */
.hm-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hm-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 26px;
  grid-column: span 2; text-decoration: none; color: var(--ink);
  background: linear-gradient(160deg, var(--c-soft), var(--surface) 70%);
  border: 1px solid var(--line); border-radius: var(--radius); corner-shape: superellipse(1.5); box-shadow: var(--shadow);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease;
}
.hm-tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(13, 16, 20, .04), 0 20px 44px rgba(13, 16, 20, .12); }
.hm-tile.is-wide { grid-column: span 3; min-height: 280px; }
.hm-tile-top { display: flex; align-items: center; gap: 12px; }
.hm-tile-top img { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.hm-tile-top h3 { font-size: 20px; font-weight: 800; }
.hm-tile-top .kind { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.hm-tile .badge { margin-left: auto; }
.hm-tile p { color: var(--muted); font-size: 14.5px; }
.hm-tile .more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--c); }
.hm-tile .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
.hm-tile:hover .more svg { transform: translateX(3px); }
.hm-tile::after { content: ""; position: absolute; right: -50px; bottom: -60px; width: 190px; height: 190px; border-radius: 50%; background: var(--c-glow, transparent); filter: blur(30px); pointer-events: none; }
.hm-tile.is-wide .hm-shot { margin-top: 6px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.hm-tc { --c: var(--c, var(--link)); }
.pc-toolbox { --c: var(--a-strong); --c-soft: var(--a-soft); --c-glow: rgba(37, 99, 235, .2); }
@media (max-width: 900px) { .hm-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hm-tile, .hm-tile.is-wide { grid-column: span 1; min-height: 0; } }
@media (max-width: 600px) { .hm-bento { grid-template-columns: 1fr; } }

/* お知らせ */
.hm-news { display: flex; flex-direction: column; padding: 8px 28px; }
.hm-news a { display: grid; grid-template-columns: 96px auto minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 18px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.hm-news a:last-of-type { border-bottom: 0; }
.hm-news time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-news strong { font-size: 15px; font-weight: 700; line-height: 1.5; }
.hm-news svg { width: 16px; height: 16px; color: var(--muted); transition: transform .2s ease; }
.hm-news a:hover strong { color: var(--link); }
.hm-news a:hover svg { transform: translateX(3px); }
.hm-news .news-tag { height: 22px; white-space: nowrap; background: var(--a-soft); color: var(--link); }
.hm-news .news-tag.is-important { background: var(--important-soft); color: var(--important-ink); }
.hm-news-empty { padding: 22px 0; color: var(--muted); }
.hm-news-more { display: inline-flex; align-items: center; gap: 6px; padding: 14px 0 18px; font-weight: 700; font-size: 14px; text-decoration: none; }
.hm-news-more svg { width: 16px; height: 16px; }
@media (max-width: 700px) {
  .hm-news { padding: 4px 20px; }
  .hm-news a { grid-template-columns: auto minmax(0, 1fr) 16px; gap: 6px 10px; }
  .hm-news time { grid-column: 1 / 2; }
  .hm-news strong { grid-column: 1 / 3; grid-row: 2; }
  .hm-news svg { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 600px) { .hm-hero { padding: 52px 0 40px; } .hm-dock a { width: 64px; height: 64px; } .hm-dock img { width: 40px; height: 40px; } }
