:root {
  --black: #000;
  --white: #fff;
  --gray: #666;
  --light-gray: #f5f5f5;
  --lavender: #d1bada;
  --light-lavender: #f0ebf3;
  --border-color: #e8dfe8;
}

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

body {
  font-family: "Noto Sans JP", "Inter", -apple-system, sans-serif;
  background-color: var(--white);
  color: var(--black);
  line-height: 1.8;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--black);
}

nav ul {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav a {
  font-family: "Inter", sans-serif;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  font-weight: 400;
}

nav a:hover {
  opacity: 0.5;
}

/* Section Common Styles */
section {
  padding: 8rem 3rem;
  margin: 0;
  max-width: none;
}

.section-title {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  font-weight: 400;
  margin-bottom: 4rem;
  text-align: center;
  text-transform: uppercase;
  color: var(--lavender);
}

/* Gallery Section */
.gallery-top {
  padding-top: 100px;
  background: #f3f0f5;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

#gallery {
  background: #f3f0f5;
}

.gallery-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Profile Section */
.profile {
  background: var(--black);
}

.profile-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.profile-image {
  width: 100%;
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;

  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent 100%);
}

.profile-content h2 {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--white);

  white-space: nowrap;
  font-size: clamp(22px, 4.2vw, 40px);
  letter-spacing: clamp(0.01em, 0.6vw, 0.12em);
  line-height: 1.1;

  /* どこかで折り返し強制が入ってても負けないように */
  overflow-wrap: normal;
  word-break: normal;
}

.profile-content p {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
}

.section-title.profile-title {
  color: var(--lavender);
}

/* Profileだけ締める（Desktop） */
#profile {
  padding: 3.5rem 3rem 4rem; /* 上右下左 */
}

#profile .section-title {
  margin-bottom: 1.8rem; 
}

.profile-image {
  max-width: 420px;
}

/* Contact Section */
.contact {
  text-align: center;
  background: var(--white);
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.contact p {
  font-size: 0.95rem;
  line-height: 2;
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
  font-weight: 300;
  color: var(--gray);
}

.contact-button {
  font-family: "Inter", sans-serif;
  display: inline-block;
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  padding: 1rem 3rem;
  border: 1px solid var(--black);
  transition: all 0.3s ease;
  font-weight: 400;
}

.contact-button:hover {
  background: var(--lavender);
  color: var(--white);
  border-color: var(--lavender);
}

/* Footer */
footer {
  padding: 3rem;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--black);
}

.footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  font-weight: 300;
}

.footer-nav a:hover {
  opacity: 0.5;
}

.copyright {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--gray);
  letter-spacing: 0.05em;
  font-weight: 300;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--gray);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  font-weight: 300;
}

.social-links a:hover {
  opacity: 0.5;
}

/* Mobile Menu */
.mobile-menu-button {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
}

/* =========================
   Responsive
   ========================= */

/* Tablet */
@media (max-width: 1024px) {
  .profile-container {
    gap: 4rem;
  }
}

/* Mobile */
@media (max-width: 768px) {

  /* ---- Header / Navigation ---- */
  .header-content {
    padding: 1rem 1.5rem;
  }

  nav ul {
    display: none;
  }

  nav ul.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    gap: 1.5rem;
  }

  .mobile-menu-button {
    display: block;
  }

  /* Layout */
  section {
    padding: 5rem 1.5rem;
  }

  .gallery-top {
    padding-top: 80px;
  }

  .gallery-grid {
    max-width: 100%;
    padding: 0 1rem;
  }

  .profile-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Profile */
  .profile-image {
    max-width: 420px;
    margin: 0 auto;
  }
  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out;
}