/* ========================================
   CSS Variables & Reset
   Scale Base: 470px
======================================== */
:root {
  /* Scale */
  --base: 470;
  --scale: calc(100vw / var(--base));

  /* Colors */
  --color-bg: #FFFFFF;
  --color-text: #000000;
  --color-text-muted: #9a9a9a;

  /* Fonts */
  --font-decorative: 'Zen Old Mincho', serif;
  --font-body: 'Zen Kaku Gothic New', sans-serif;


  /* Weight */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fs-body-ja: calc(var(--fs-body) * 0.9);

  /* Font Sizes (Scale) */
  --fs-hero: calc(80 * var(--scale));
  --fs-project: calc(40 * var(--scale));
  --fs-heading: calc(24 * var(--scale));
  --fs-body: calc(16 * var(--scale));
  --fs-small: calc(12 * var(--scale));

  /* Spacing */
  --container-padding: calc(24 * var(--scale));

  /* Line */
  --border-line: 1px solid #000000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

a {
  color: var(--color-text);
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   Container
======================================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   Link Hover Effect (Dot)
======================================== */
.header__nav-link {
  position: relative;
  display: inline-block;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: calc(-8 * var(--scale));
  left: 50%;
  transform: translateX(-50%);
  width: calc(3 * var(--scale));
  height: calc(3 * var(--scale));
  background-color: var(--color-text);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header__nav-link:hover::after {
  opacity: 1;
}

/* ========================================
   Header
======================================== */
.header {
  padding: calc(24 * var(--scale)) 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
}

.header__nav {
  display: flex;
  gap: calc(24 * var(--scale));
}

.header__nav-link {
  font-size: var(--fs-body);
}

/* ========================================
   Hero
======================================== */
.hero {
  padding: calc(40 * var(--scale)) 0 calc(60 * var(--scale));
}

.hero__inner {
  position: relative;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__title {
  font-family: var(--font-decorative);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: 1.0;
  margin-bottom: calc(40 * var(--scale));
}

.hero__subtitle {
  font-size: var(--fs-body);
  line-height: 1.8;
}

/* ========================================
   About
======================================== */
.about {
  padding: calc(40 * var(--scale)) 0;
}

.about__inner {
  display: flex;
  flex-direction: row;
  gap: calc(24 * var(--scale));
}

.about__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  min-width: calc(80 * var(--scale));
}

.about__text {
  font-size: var(--fs-body-ja, var(--fs-body));
  line-height: 2.0;
}

/* ========================================
   Work
======================================== */
.work {
  padding: calc(40 * var(--scale)) 0;
}

.work__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  margin-bottom: calc(20 * var(--scale));
}

.work__item {
  border-top: var(--border-line);
  border-bottom: var(--border-line);
}

.work__item-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: calc(16 * var(--scale));
  padding: calc(10 * var(--scale)) calc(8 * var(--scale));
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

.work__item-title,
.work__item-year {
  position: relative;
  z-index: 1;
}

.work__item-title {
  font-family: var(--font-decorative);
  font-size: var(--fs-heading);
  font-weight: 900;
}

.work__item-year {
  font-family: var(--font-decorative);
  font-size: var(--fs-body);
  font-weight: 900;
  padding: calc(8 * var(--scale)) calc(24 * var(--scale));
  border: var(--border-line);
  border-radius: calc(50 * var(--scale));
}

/* ========================================
   Info Area (History / Skills / Contact)
======================================== */
.info-area {
  padding: calc(40 * var(--scale)) 0;
}

.info-area__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: calc(40 * var(--scale));
}

/* History */
.history__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  margin-bottom: calc(40 * var(--scale));
}

.history__block {
  margin-bottom: calc(48 * var(--scale));
}

.history__block-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  margin-bottom: calc(16 * var(--scale));
  line-height: 1.6;
}

.history__block-text {
  font-size: var(--fs-body-ja, var(--fs-body));
  line-height: 1.8;
}

/* Skills */
.skills__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  margin-bottom: calc(40 * var(--scale));
}

.skills__list {
  font-size: var(--fs-body);
  line-height: 2.0;
}

/* Contact */
.contact {
  grid-column: 1;
}

.contact__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  margin-bottom: calc(40 * var(--scale));
}

.contact__link {
  display: block;
  font-size: var(--fs-body);
  margin-bottom: calc(16 * var(--scale));
}

/* ========================================
   Footer
======================================== */
.footer {
  padding: calc(40 * var(--scale)) 0;
  border-top: var(--border-line);
}

.footer__inner {
  text-align: center;
}

.footer__copyright {
  font-size: var(--fs-body);
}

/* ========================================
   Reveal Animation (Fade + Slide)
   共通フェードインアニメーション
======================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

