/* ===== Variables ===== */
:root {
  --color-bg: #FAF7F2;
  --color-accent-beige: #C9AA89;
  --color-accent-blue: #A8C8D8;
  --color-text-main: #3A3A3A;
  --color-text-sub: #7A7A7A;
  --color-border: #E0D8CC;
  --color-contact-bg: #EEE8DF;
  --color-footer-bg: #3A3A3A;
  --font-serif-jp: "Noto Serif JP", serif;
  --font-sans-jp: "Noto Sans JP", sans-serif;
  --font-en: "Cormorant Garamond", serif;
  --max-width: 1000px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section common ===== */
.section {
  padding: 80px 0;
}

.section__label {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--color-accent-beige);
  margin-bottom: 4px;
}

.section__title {
  font-family: var(--font-serif-jp);
  font-size: 28px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 48px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-family: var(--font-sans-jp);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.btn--outline {
  border: 1.5px solid var(--color-accent-blue);
  color: #FFFFFF;
  background-color: var(--color-accent-blue);
}

.btn--outline:hover {
  opacity: 0.85;
}

.btn--primary {
  background-color: var(--color-accent-beige);
  color: #FFFFFF;
  border: none;
  word-break: break-all;
}

.btn--primary:hover {
  opacity: 0.85;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(250, 247, 242, 0.95);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-en);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
}

.header__nav-list {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-main);
  letter-spacing: 0.05em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent-beige);
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--color-bg);
  padding-top: var(--header-height);
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero__text {
  text-align: left;
}

.hero__image img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.hero__label {
  font-family: var(--font-en);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--color-accent-beige);
  margin-bottom: 16px;
}

.hero__name {
  font-family: var(--font-serif-jp);
  font-size: 36px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 20px;
}

.hero__catch {
  font-family: var(--font-serif-jp);
  font-size: 18px;
  color: var(--color-text-main);
  margin-bottom: 40px;
  line-height: 1.9;
}

/* ===== About ===== */
.about {
  position: relative;
  background-image: url('../images/background.png');
  background-size: cover;
  background-position: center;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(250, 247, 242, 0.75);
}

.about__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
}

.about__image img {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
  background-color: #C9AA89;
}

.about__body {
  font-size: 15px;
  color: var(--color-text-main);
  line-height: 2;
}

/* ===== Works ===== */
.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__body {
  padding: 16px;
}

.card__tag {
  display: inline-block;
  font-size: 12px;
  color: var(--color-accent-beige);
  border: 1px solid var(--color-accent-beige);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.card__title {
  font-family: var(--font-serif-jp);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 6px;
}

.card__desc {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ===== Skills ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.skill-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  padding: 28px 16px;
  text-align: center;
}

.skill-card__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.skill-card__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-main);
}

/* ===== Contact ===== */
.contact {
  background-color: var(--color-contact-bg);
}

.contact__text {
  font-size: 15px;
  color: var(--color-text-main);
  margin-bottom: 32px;
  margin-top: -24px;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-footer-bg);
  padding: 24px;
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: #FFFFFF;
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  /* Header */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: rgba(250, 247, 242, 0.98);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
  }

  .header__nav.is-open {
    display: block;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 0;
  }

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

  .nav-link {
    display: block;
    padding: 14px 24px;
    font-size: 18px;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }

  .hero__text {
    text-align: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__name {
    font-size: 26px;
  }

  .hero__catch {
    font-size: 15px;
  }

  /* About */
  .about__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .about__image {
    display: flex;
    justify-content: center;
  }

  /* Works */
  .works__grid {
    grid-template-columns: 1fr;
  }

  /* Skills */
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Section */
  .section__title {
    font-size: 22px;
    margin-bottom: 32px;
  }
}
