:root {
  --navy: #0a2552;
  --blue: #1268d6;
  --gold: #ffce3a;
  --ink: #142036;
  --muted: #6b768c;
  --paper: #ffffff;
  --line: rgba(10, 37, 82, 0.1);
  --shadow: 0 18px 40px rgba(10, 37, 82, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% -10%, rgba(255, 206, 58, 0.32), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(18, 104, 214, 0.28), transparent 46%),
    linear-gradient(180deg, #eef4ff 0%, #f7f9fc 48%, #fef9ec 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  padding: 40px 18px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.card {
  width: min(100%, 480px);
  display: flex;
  flex-direction: column;
}

/* ---------- Profile ---------- */
.profile {
  text-align: center;
}

.avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 5px;
  background: linear-gradient(135deg, var(--gold), #fff0b4 45%, var(--blue));
  box-shadow: var(--shadow);
}

.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  object-position: 50% 18%;
  background: #fff;
  display: block;
}

.name {
  margin: 18px 0 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.handle {
  margin: 7px 0 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bio {
  margin: 16px auto 0;
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
}

/* ---------- Social icons ---------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.social {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(10, 37, 82, 0.1);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social svg {
  width: 22px;
  height: 22px;
}

.note-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 13px 26px rgba(10, 37, 82, 0.2);
  outline: none;
}

/* Hover label (tooltip) */
.tip {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--navy);
}

.social:hover .tip,
.social:focus-visible .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Brand colors (white circle, brand-colored glyph) */
.social--youtube { color: #ff0000; }
.social--note { color: #000; }
.social--tiktok { color: #010101; }
.social--x { color: #000; }
.social--facebook { color: #1877f2; }
/* Instagram uses an inline gradient fill on its SVG path */

/* ---------- Link buttons ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 30px;
}

.link {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.link:hover,
.link:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(10, 37, 82, 0.18);
  border-color: rgba(18, 104, 214, 0.4);
  outline: none;
}

.link-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--blue);
  background: #e9f2ff;
}

.link-icon svg {
  width: 24px;
  height: 24px;
}

.link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.link-title {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.link-desc {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.link-arrow {
  color: var(--muted);
  display: grid;
  place-items: center;
}

/* Featured button */
.link--feature {
  background: linear-gradient(135deg, #5ec6f7, #2ea3e8 58%, #1685d6);
  border-color: rgba(22, 133, 214, 0.55);
  box-shadow: 0 20px 44px rgba(22, 133, 214, 0.32);
}

.link--feature .link-icon {
  color: #fff;
  background: rgba(10, 37, 82, 0.92);
}

/* LINE official account tile */
.link-icon--line {
  color: #fff;
  background: #06c755;
}

/* 大学合格ナビ emblem tile (blog button) */
.link-icon--navi {
  padding: 5px;
  overflow: hidden;
  background: #eef4e6;
}

.link-icon--navi img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* StudyLink logo tile (featured HP button) */
.link-icon--logo {
  padding: 0;
  overflow: hidden;
  background: #0b4aa2;
}

.link-icon--logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.55);
}

.link--feature .link-title {
  font-size: 17px;
  color: #fff;
}

.link--feature .link-desc,
.link--feature .link-arrow {
  color: rgba(255, 255, 255, 0.88);
}

.link--feature:hover,
.link--feature:focus-visible {
  box-shadow: 0 26px 52px rgba(22, 133, 214, 0.42);
  border-color: rgba(22, 133, 214, 0.85);
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 420px) {
  body {
    padding: 28px 16px 40px;
  }

  .avatar {
    width: 116px;
    height: 116px;
  }

  .name {
    font-size: 26px;
  }
}
