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

:root {
  --primary-white: #ffffff;
  --lavender: #e6e6fa;
  --mint-green: #f0fff0;
  --pale-pink: #fdf2f8;
  --soft-lavender: #f8f6ff;
  --text-dark: #2d3748;
  --text-light: #718096;
  --accent-lavender: #d6bcfa;
  --accent-mint: #9ae6b4;
  --accent-pink: #f687b3;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--primary-white) 0%, var(--soft-lavender) 30%, var(--mint-green) 60%, var(--pale-pink) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 50px;
}

/* トップナビゲーション */
.top-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 1px solid rgba(214, 188, 250, 0.1);
}

.top-nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 4px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

/* メインコンテナ */
.main-container {
  display: flex;
  min-height: 100vh;
  margin-top: 80px;
}

/* サイドナビゲーション */
.side-nav {
  width: 20%;
  min-width: 280px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  padding: 50px 0;
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
  border-right: 1px solid rgba(214, 188, 250, 0.15);
  box-shadow: 5px 0 30px rgba(214, 188, 250, 0.1);
  z-index: 10;
}

.nav-section {
  margin-bottom: 50px;
}

.nav-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-light);
  letter-spacing: 3px;
  text-transform: capitalize;
  padding: 0 35px;
  margin-bottom: 25px;
  opacity: 0.9;
}

.nav-links {
  list-style: none;
}

.nav-links li {
  margin-bottom: 3px;
}

.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  display: block;
  padding: 18px 35px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 18px;
  font-style: italic;
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  border-radius: 0 25px 25px 0;
  margin-right: 20px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--soft-lavender), var(--pale-pink));
  transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: -1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 20px;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, var(--accent-lavender), var(--accent-mint));
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: translateY(-50%);
}

.nav-links a:hover {
  color: var(--text-dark);
  transform: translateX(15px);
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(214, 188, 250, 0.2);
}

.nav-links a:hover::before {
  left: 0;
}

.nav-links a:hover::after {
  width: 30px;
}

.nav-links a.active {
  background: linear-gradient(135deg, var(--soft-lavender), var(--pale-pink));
  color: var(--text-dark);
  font-weight: 500;
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(214, 188, 250, 0.2);
}

.nav-links a.active::after {
  width: 30px;
}

/* メインコンテンツ */
.main-content {
  margin-left: 20%;
  width: 80%;
  min-height: calc(100vh - 80px);
  padding: 0;
  position: relative;
  z-index: 1;
}

.page {
  display: none;
  min-height: calc(100vh - 80px);
}

.page.active {
  display: block;
}

/* ヒーローセクション */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
  max-width: 900px;
  padding: 0 50px;
}

.hero-image {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  margin: 0 auto 60px;
  box-shadow: 0 40px 100px rgba(214, 188, 250, 0.4);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: rotate(45deg);
  transition: transform 0.8s ease-in-out;
  opacity: 0;
}

.hero-image:hover {
  transform: scale(1.08) rotate(8deg);
  box-shadow: 0 50px 120px rgba(214, 188, 250, 0.5);
}

.hero-image:hover::before {
  opacity: 1;
  transform: rotate(45deg) translate(100%, 100%);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 30px;
  color: var(--text-dark);
  letter-spacing: 8px;
  background: linear-gradient(135deg, var(--text-dark), var(--accent-lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--text-light);
  margin-bottom: 30px;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
}

.subtitlep {
  margin-top: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 2px;
}

/* コンテンツセクション */
.content-section {
  padding: 30px 80px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

#portfolio .content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 100px;
}

#photos .content-section,
#contact .content-section {
  padding-top: 30px;
  max-width: 100%;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 60px;
  color: var(--text-dark);
  text-align: center;
  letter-spacing: 4px;
}

/* キャリアページ */
.careerbriefing {
  text-align: center;
  font-style: italic;
  margin-bottom: 40px;
}

/* ポートフォリオセクション */
.portfolio-section {
  margin-bottom: 80px;
}

.portfolio-section:last-child {
  margin-bottom: 0;
}

.portfolio-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 20px;
}

.portfolio-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(45deg, var(--accent-lavender), var(--accent-mint));
}

.portfolio-section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 50px;
  font-weight: 300;
  letter-spacing: 1px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portfolio-card-image {
  margin-bottom: 15px;
}

.portfolio-card-image img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 15px;
  float: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-card-content {
  padding: 10px;
}

.portfolio-card-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.achievement-list {
  list-style-position: inside;
  text-align: left;
  margin-left: 20px;
  padding-left: 0;
}

.achievement-list li {
  margin-bottom: 5px;
}

/* スライドショーコンテナ */
.slideshow-container {
  width: 100%;
  overflow: hidden;
  margin-bottom: 80px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 30px 0;
  position: relative;
  z-index: 1;
}

.slideshow-track {
  display: flex;
  gap: 20px;
  animation: scroll 15s linear infinite;
}

.slideshow-track:hover {
  animation-play-state: paused;
}

.slideshow-item {
  flex-shrink: 0;
  width: 300px;
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(254, 254, 254, 0.2);
  transition: transform 0.3s ease;
}

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

.slideshow-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ギャラリーセクション */
.gallery-section {
  margin-bottom: 60px;
}

.gallery-category-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 2px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 3/4;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(214, 188, 250, 0.15);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(214, 188, 250, 0.3);
}

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

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


/* 背景を暗く */
.pswp--open .pswp__bg {
    background-color: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(3px);
}

/* 全体のコンテナ */
.pswp--open .pswp__scroll-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pswp--open .pswp__container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pswp--open .pswp__item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.pswp--open .pswp__zoom-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
}

/* 画像スタイル */
.pswp--open .pswp__img {
    position: static !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    object-fit: contain !important;
    max-width: 85vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}


/* コンタクトページ */
.contact-container {
  max-width: 900px;
  margin: 0 auto;
}

.contact-intro {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 60px;
  font-weight: 300;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(214, 188, 250, 0.15);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(214, 188, 250, 0.25);
}

.contact-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.contact-link {
  color: var(--accent-lavender);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-mint);
}

/* コンタクトフォーム */
.contact-form-section {
  background: rgba(255, 255, 255, 0.8);
  padding: 50px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(214, 188, 250, 0.15);
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-style: italic;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

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

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 400;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(214, 188, 250, 0.3);
  border-radius: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-lavender);
  box-shadow: 0 0 0 3px rgba(214, 188, 250, 0.1);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--accent-lavender), var(--accent-mint));
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  letter-spacing: 1px;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(214, 188, 250, 0.3);
}


/* アニメーション */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* スクロールバーのカスタマイズ */
.side-nav::-webkit-scrollbar {
  width: 4px;
}

.side-nav::-webkit-scrollbar-track {
  background: transparent;
}

.side-nav::-webkit-scrollbar-thumb {
  background: var(--accent-lavender);
  border-radius: 2px;
}

.side-nav::-webkit-scrollbar-thumb:hover {
  background: var(--accent-mint);
}

/* フッター */
footer {
  background-color: #f2f2f2;
  color: #555;
  text-align: center;
  padding: 12px 0;
  width: 80%;
  z-index: 2;
  margin-left: 20%;
}

.footer-content{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 50px;
  text-align: center;
  position: relative;
  align-items: center;
  justify-content: center;
  z-index: 2;
  display: flex;
}


/* モバイル対応 */
@media (max-width: 1024px) {
  .side-nav {
    width: 25%;
    min-width: 250px;
  }
  
  .main-content {
    margin-left: 25%;
    width: 75%;
  }
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  
  .side-nav {
    position: static;
    width: 100%;
    height: auto;
    padding: 30px 0;
    order: 2;
    border-right: none;
    border-top: 1px solid rgba(214, 188, 250, 0.15);
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
    order: 1;
  }
  
  .hero {
    height: 80vh;
    padding: 50px 30px;
  }
  
  .hero h1 {
    font-size: 3rem;
    letter-spacing: 3px;
  }
  
  .hero .subtitle {
    font-size: 1.4rem;
  }
  
  .hero-image {
    width: 250px;
    height: 250px;
    margin-bottom: 40px;
  }
  
  .content-section {
    padding: 60px 30px;
  }
  
  .section-title {
    font-size: 2.8rem;
  }
  
  .nav-links a {
    padding: 15px 25px;
    font-size: 15px;
  }
  
  .portfolio-section {
    margin-bottom: 60px;
  }
  
  .portfolio-section-title {
    font-size: 2.2rem;
  }
  
  .portfolio-section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  
  .portfolio-card-content h4 {
    font-size: 1.5rem;
  }
  
  .portfolio-card-image img {
    width: 100%;
    max-width: 150px;
  }
  
  .slideshow-item {
    width: 250px;
    height: 350px;
  }
  
  .slideshow-container {
    margin-bottom: 50px;
    padding: 20px 0;
  }
  
  .gallery-category-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .pswp--open .pswp__img {
        max-width: 95vw !important;
        max-height: 80vh !important;
    }

  
  .contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-form-section {
    padding: 30px 20px;
  }
  
  .form-title {
    font-size: 2rem;
  }

  footer {
    position: relative;   /* 親要素フロー内に配置 */
    width: 100vw;         /* 画面幅いっぱいに広げる */
    max-width: 100%;
    margin: 0;            /* 親要素の余白を無効化 */
    left: 0;
    text-align: center;   /* 中央揃え */
  }
}