:root {
  --cream: #fbf7f2;
  --gray-hero: #dcdcdc;
  --teal: #1f9583;
  --teal-dark: #157567;
  --coral: #e0483e;
  --pink-skin: #f8d0c6;
  --pink-text: #e79bb0;
  --blue-text: #7fa8c9;
  --yellow: #f2cf4a;
  --dark: #2b2b2b;
  --line: #e3ddd4;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.9;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

header.scrolled {
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  border: 1.5px solid var(--dark);
  border-radius: 30px;
  padding: 6px 18px;
}

nav ul {
  display: flex;
  gap: 36px;
}

nav a {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--dark);
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.25s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

section {
  padding: 120px 40px 100px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 26px;
  letter-spacing: 6px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 60px;
}

/* HERO / TOP */
#top {
  padding: 72px 0 0;
  max-width: none;
}

.hero-stage {
  background: #fff;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  display: block;
}

.hero-text {
  text-align: center;
  padding: 70px 20px 40px;
}

.hero-text .brand {
  color: var(--dark);
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-text p {
  font-size: 16px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 14px;
}

.hero-text p:last-child {
  margin-bottom: 0;
}

/* PROFILE */
.profile-photo {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--pink-skin);
  margin: 0 auto 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.profile-name {
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 34px;
}

.profile-bio {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  max-width: 640px;
  margin: 0 auto 70px;
}

.profile-bio p {
  margin-bottom: 14px;
}

.profile-bio p:last-child {
  margin-bottom: 0;
}

.profile-subheading {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--dark);
  max-width: 640px;
  margin: 50px auto 20px;
}

.timeline {
  max-width: 640px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.timeline .date {
  color: var(--dark);
  font-weight: 700;
  flex-shrink: 0;
  width: 100px;
}

.timeline a {
  color: var(--dark);
  text-decoration: underline;
}

/* NEWS list (whole row links to a detail page) */
.timeline.news-list li {
  padding: 0;
  display: block;
}

.timeline.news-list li > a {
  display: flex;
  gap: 24px;
  padding: 16px 4px;
  color: var(--dark);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.timeline.news-list li > a:hover {
  padding-left: 10px;
}

.timeline.news-list li > a .date {
  color: var(--dark);
  font-weight: 700;
  flex-shrink: 0;
  width: 100px;
}

/* NEWS detail article */
.news-article {
  max-width: 640px;
  margin: 0 auto;
}

.news-article .news-date {
  color: var(--dark);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-article .news-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 34px;
}

.news-article .news-body p {
  font-size: 15px;
  margin-bottom: 18px;
}

.news-article .news-body a {
  color: var(--dark);
  text-decoration: underline;
  word-break: break-all;
}

.news-back {
  display: inline-block;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dark);
  border-bottom: 1px solid var(--dark);
  padding-bottom: 2px;
  transition: opacity 0.2s ease;
}

.news-back:hover {
  opacity: 0.6;
}

/* LINKS */
.links-list {
  max-width: 480px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.links-list li {
  border-bottom: 1px solid var(--line);
}

.links-list a {
  display: block;
  padding: 22px 4px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--dark);
  transition: opacity 0.2s ease;
}

.links-list a:hover {
  opacity: 0.6;
}

/* WORKS */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.tab-btn {
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 24px;
  border: 1.5px solid var(--dark);
  background: transparent;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: #eee;
}

.tab-btn.active {
  background: var(--dark);
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
}

.work-card {
  display: block;
  transition: opacity 0.2s ease;
}

.work-card:hover {
  opacity: 0.75;
}

.work-thumb {
  aspect-ratio: 4/3;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #eee;
}

.work-thumb svg,
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.3px;
}

.work-detail-image {
  max-width: 700px;
  aspect-ratio: 4/3;
  margin: 0 auto 40px;
  border-radius: 14px;
  overflow: hidden;
}

.work-detail-image svg,
.work-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-detail-desc {
  max-width: 640px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.9;
}

.work-detail-desc a {
  color: var(--dark);
  text-decoration: underline;
  word-break: break-all;
}

.work-detail-image + .work-detail-image {
  margin-top: -20px;
}

.work-detail-subheading {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  margin: 40px auto 16px;
  max-width: 640px;
}

.work-detail-caption {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* CONTACT */
#contact {
  text-align: center;
  padding-bottom: 160px;
}

.contact-illustration {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 50px;
}

.contact-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-text p {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.email-box {
  display: inline-block;
  margin-top: 30px;
  padding: 20px 40px;
  border: 1.5px solid var(--dark);
  border-radius: 4px;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--dark);
  font-weight: 600;
  transition: background 0.2s ease;
}

.email-box:hover {
  background: #f0ece5;
}

footer {
  text-align: center;
  padding: 30px 20px 50px;
  font-size: 12px;
  color: var(--dark);
  letter-spacing: 1px;
}

@media (max-width: 720px) {
  header { padding: 0 20px; }
  nav ul { gap: 18px; }
  nav a { font-size: 11px; letter-spacing: 1px; }
  section { padding: 100px 20px 70px; }
  .personal-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .logo { font-size: 16px; padding: 5px 14px; }
}
