/* ASPIREST アプリ入口。HR BASE のデザイン言語(フラット・角0・罫線で区画)に、
   公式写真とアプリごとの色アイコンで視覚の手がかりを足す。 */
@font-face {
  font-family: "Josefin Sans";
  src: url("fonts/JosefinSans-variable.woff") format("woff");
  font-weight: 100 700;
  font-display: swap;
  unicode-range: U+0000-024F;
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
:root {
  --bg: #ffffff; --line: #e5e7df; --line-strong: #22251f;
  --txt: #22251f; --sub: #5c6256; --hover: #f4f6f0;
  --brand: #f4df36; --brand-hover: #eed41c; --ink: #22251f;
  --danger: #ad453d; --focus: #46617e;
  --night: #16180f;
  --font: "Josefin Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1d18; --line: #34372f; --line-strong: #eef0e8;
    --txt: #eef0e8; --sub: #a9ae9f; --hover: #24271f;
    --brand-hover: #f7e862; --danger: #e0786f; --focus: #9bb6d4;
    color-scheme: dark;
  }
}
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); color: var(--txt);
  font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.loading { padding: 80px 16px; color: var(--sub); text-align: center; }

/* 写真面: 公式写真 + 下に向かって濃くなる黒 */
.photo {
  position: relative; color: #fff; background-color: var(--night);
  background-image: linear-gradient(180deg, rgba(22,24,15,.5) 0%, rgba(22,24,15,.45) 35%, rgba(22,24,15,.6) 60%, rgba(22,24,15,.88) 100%), var(--photo-s);
  background-size: cover; background-position: center 30%;
}
@media (min-width: 720px) {
  .photo { background-image: linear-gradient(180deg, rgba(22,24,15,.5) 0%, rgba(22,24,15,.45) 35%, rgba(22,24,15,.6) 60%, rgba(22,24,15,.88) 100%), var(--photo); }
}
.eyebrow, .login-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .28em; color: rgba(255,255,255,.8);
}

/* アプリのアイコン: 各アプリの基調色の正方形に線画 */
.ico {
  display: grid; place-items: center; flex: none;
  width: 56px; height: 56px; background: var(--c); color: var(--ink);
}
.ico svg { width: 28px; height: 28px; }
.ico-s { width: 32px; height: 32px; }
.ico-s svg { width: 18px; height: 18px; }

/* ---- ログイン ---- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: minmax(240px, 42vh) 1fr; }
.login-photo { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: 24px 16px; }
.login-lockup { width: 72px; height: auto; }
.login-panel { padding: 32px 16px 48px; display: flex; flex-direction: column; }
.login h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.25; letter-spacing: .02em; font-weight: 700; }
.preview { list-style: none; padding: 0; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.preview li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 32px; min-height: 56px; padding: 0 32px;
  background: var(--brand); color: var(--ink); border: 0;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.primary:hover { background: var(--brand-hover); }
.primary svg { width: 20px; height: 20px; flex: none; }
.login .notice { margin-top: 24px; padding-left: 12px; border-left: 3px solid var(--danger); color: var(--danger); font-size: 14px; }
@media (min-width: 900px) {
  .login { grid-template-rows: none; grid-template-columns: minmax(0, 1.25fr) minmax(420px, 1fr); }
  .login-photo { padding: 48px; }
  .login-lockup { width: 108px; }
  .login-panel { justify-content: center; padding: 64px clamp(40px, 6vw, 96px); }
  .primary { align-self: flex-start; }
}
@media (prefers-color-scheme: dark) { .ico { box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); } }

/* ---- ホーム: 写真の帯 ---- */
.hero { min-height: clamp(260px, 38vh, 380px); display: flex; flex-direction: column; justify-content: space-between; }
.hero-top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; }
.hero-lockup { width: 44px; height: auto; }
.hero-logout {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 14px; color: rgba(255,255,255,.85); text-decoration: none;
}
.hero-logout:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.hero-body { padding-bottom: 32px; }
.hero h1 { margin-top: 10px; font-size: clamp(30px, 6vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: .03em; }
.me-meta { margin-top: 10px; font-size: 14px; color: rgba(255,255,255,.85); }

/* ---- アプリのタイル: 1枚の表(ヘアラインで区切り、隙間なし) ---- */
#groups { padding-top: 48px; padding-bottom: 96px; }
@media (min-width: 720px) { #groups { padding-top: 56px; padding-bottom: 120px; } }
.group + .group { margin-top: 56px; }
.group h2 {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--sub);
  padding-bottom: 12px; border-bottom: 2px solid var(--line-strong);
}
.tiles { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; }
.tile {
  display: flex; align-items: center; gap: 20px;
  min-height: 112px; padding: 24px 12px 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none; transition: background-color .15s ease;
}
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles li:nth-child(2n) .tile { border-left: 1px solid var(--line); padding-left: 24px; }
}
.tile:hover { background: var(--hover); }
.tile-text { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tile-name { font-size: 20px; font-weight: 700; line-height: 1.35; }
.tile-desc { font-size: 14px; color: var(--sub); }
.tile-go { width: 24px; height: 24px; flex: none; color: var(--sub); transition: transform .15s ease, color .15s ease; }
.tile:hover .tile-go { color: var(--txt); transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
