:root {
  --color-bg: #f7f5ef;
  --color-surface: #fffdf8;
  --color-text: #242424;
  --color-muted: #6f6b63;
  --color-line: #ded8cc;
  --color-accent: #3e6f75;
  --color-accent-soft: #e0eceb;
  --shadow-soft: 0 24px 80px rgb(50 45 35 / 12%);
  --font-sans: Inter, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --page-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--color-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.7;
  background:
    linear-gradient(135deg, rgb(224 236 235 / 70%), transparent 38%),
    linear-gradient(315deg, rgb(232 223 207 / 70%), transparent 42%),
    var(--color-bg);
}

a {
  color: inherit;
}

.page-shell {
  width: min(calc(100% - 40px), var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) 0;
}

.intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 32px);
  align-items: center;
  margin-bottom: clamp(40px, 7vw, 72px);
}

.profile-mark {
  display: grid;
  width: clamp(80px, 17vw, 128px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgb(255 255 255 / 75%), transparent 36%),
    var(--color-accent-soft);
  box-shadow: var(--shadow-soft);
}

.profile-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-text {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.5rem, 7vw, 2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

.section {
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}

.section h2 {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section p {
  max-width: 42rem;
  margin-bottom: 0;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.link-list a,
.mail-link {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  text-decoration: none;
  background: rgb(255 253 248 / 72%);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.link-list a {
  align-items: stretch;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.link-list a:hover,
.link-list a:focus-visible,
.mail-link:hover,
.mail-link:focus-visible {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-surface);
  outline: none;
}

.link-note {
  overflow: hidden;
  min-width: 0;
  color: var(--color-muted);
  font-size: 0.86rem;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

.link-comment {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact {
  padding-bottom: 0;
}

.mail-link {
  width: fit-content;
  max-width: 100%;
  color: var(--color-accent);
  font-weight: 650;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--page-width));
    padding: 36px 0;
  }

  .intro {
    grid-template-columns: 1fr;
    margin-bottom: 36px;
  }

  .profile-mark {
    width: 84px;
    border-radius: 50%;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .link-list a {
    gap: 2px;
  }

  .link-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .link-note {
    width: 100%;
    text-align: left;
  }
}