/* ========================
   Base & Reset
   ======================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #2c1810;
  --color-accent: #8b6914;
  --color-bg: #faf8f3;
  --color-text: #333;
  --color-card-bg: #fff;
  --color-border: #ddd0b0;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.8;
  font-size: 16px;
}

/* ========================
   Hero Section
   ======================== */
.hero {
  position: relative;
  height: 60vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('images/odawara.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 10, 5, 0.85) 0%,
    rgba(20, 10, 5, 0.5) 50%,
    rgba(20, 10, 5, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 32px 24px 40px;
  width: 100%;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-top: 8px;
  color: #f0d89a;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__years {
  font-size: 0.85rem;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.1em;
}

/* ========================
   Section Common
   ======================== */
section {
  padding: 64px 24px;
}

.section__label {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}

/* ========================
   Profile Section
   ======================== */
.profile {
  background-color: var(--color-bg);
}

.profile__text {
  font-size: 1rem;
  line-height: 2;
  color: var(--color-text);
  max-width: 720px;
}

/* ========================
   Biography / Timeline
   ======================== */
.biography {
  background-color: #f0ebe0;
}

.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
  max-width: 720px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 90px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-accent);
  opacity: 0.4;
}

.timeline__item {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
}

.timeline__year {
  flex: 0 0 90px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  padding-top: 2px;
  padding-right: 16px;
  text-align: right;
  line-height: 1.4;
}

.timeline__dot {
  position: absolute;
  left: 84px;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.timeline__body {
  flex: 1;
  padding-left: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================
   Achievements Section
   ======================== */
.achievements {
  background-color: var(--color-bg);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 4px;
  padding: 20px 24px;
}

.card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card__body {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.7;
}

/* ========================
   Works Section
   ======================== */
.works {
  background-color: #f0ebe0;
}

.works__list {
  list-style: none;
  max-width: 720px;
}

.works__item {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  line-height: 1.6;
}

.works__item:last-child {
  border-bottom: none;
}

.works__tag {
  display: inline-block;
  background: var(--color-primary);
  color: #f0d89a;
  font-size: 0.7rem;
  font-family: var(--font-serif);
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 8px;
  vertical-align: middle;
  letter-spacing: 0.05em;
}

/* ========================
   Floating Banner
   ======================== */
#floating-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  max-width: 240px;
}

.floating-banner__label {
  font-size: 0.65rem;
  color: #999;
  margin-bottom: 6px;
}

#floating-banner-link {
  display: block;
  text-decoration: none;
  color: var(--color-primary);
}

#floating-banner-title {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
}

.floating-banner__cta {
  font-size: 0.7rem;
  color: var(--color-accent);
  margin-top: 4px;
}

.floating-banner__close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}

/* ========================
   Footer
   ======================== */
footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 32px 24px;
  font-size: 0.8rem;
  line-height: 2;
}

footer a {
  color: #f0d89a;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ========================
   Media Queries (768px+)
   ======================== */
@media (min-width: 768px) {
  section {
    padding: 80px 48px;
  }

  .hero__content {
    padding: 40px 64px 56px;
  }

  .hero__title {
    font-size: 4rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .timeline::before {
    left: 110px;
  }

  .timeline__year {
    flex: 0 0 110px;
    font-size: 0.82rem;
  }

  .timeline__dot {
    left: 104px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
