/* ========================================================
   CSS Variables & Base (うす鼠色・余白・上品・静的)
======================================================== */
:root {
  /* Color Palette */
  --c-bg: #FCFBF9;
  /* ごく淡い生成り・白 */
  --c-text: #2c2d30;
  /* しっかりと読みやすい、わずかに温かみのあるダークグレー */
  --c-text-light: #606266;
  --c-usu-nezumi: #C6C8CB;
  /* 淡いうす鼠色 (全体を調和させるベースカラー) */
  --c-greige: #E2E0D9;
  /* 淡いグレージュ */
  --c-blue-gray: #DEE4E8;
  /* 青みを含んだ薄灰色 */
  --c-accent: #354260;

  /* Fonts */
  --font-jp: 'Shippori Mincho', 'Noto Serif JP', serif;
  --font-en: 'Cormorant Garamond', serif;

  /* Spacing & Utilities */
  --container-w: 1040px;
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-jp);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.8;
  letter-spacing: 0.06em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
margin {
  margin: 0;
  font-weight: normal;
}

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

/* ========================================================
   Layout Utilities
======================================================== */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 5%;
}

.section-padding {
  padding: 120px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 80px 0;
  }
}

.section-title {
  font-family: var(--font-en);
  font-size: 2.4rem;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--c-accent);
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title-jp {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: var(--c-text-light);
  margin-top: 8px;
}

/* ========================================================
   First View (Hero Area)
======================================================== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 30%;
  /* 顔より余白を多く写すために調整 */
  filter: contrast(0.95) saturate(0.85);
  /* 写真を少し静かなトーンに */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 文字の視認性を確保しつつ写真の邪魔をしない程度のごく薄いグラデーション */
  background: linear-gradient(to right,
      rgba(252, 251, 249, 0.7) 0%,
      rgba(252, 251, 249, 0.2) 50%,
      rgba(252, 251, 249, 0) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-w);
  padding: 0 5%;
  text-align: left;
}

.hero-name {
  font-size: 2.2rem;
  letter-spacing: 0.2em;
  color: var(--c-text);
  margin-bottom: 24px;
}

.hero-name-en {
  display: block;
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: var(--c-accent);
  letter-spacing: 0.15em;
  margin-top: 8px;
}

.hero-title {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--c-text-light);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

.hero-statement {
  font-size: 1.1rem;
  line-height: 2.4;
  letter-spacing: 0.1em;
  border-left: 1px solid var(--c-usu-nezumi);
  padding-left: 24px;
}

/* Hero Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.7;
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  color: var(--c-text);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background-color: var(--c-usu-nezumi);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background-color: var(--c-text);
  animation: scrollAnim 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollAnim {
  0% {
    transform: translateY(-100%);
  }

  50% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(200%);
  }
}

/* ========================================================
   Works Grid
======================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 40px;
}

.work-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  group: item;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #eee;
  overflow: hidden;
  margin-bottom: 16px;
  transition: transform 0.6s var(--ease-soft), box-shadow 0.6s var(--ease-soft);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-soft), opacity 0.6s ease;
}

.work-item:hover .work-thumb img {
  transform: scale(1.04);
}

.work-item:hover .work-thumb {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.04);
}

.work-item-title {
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--c-text);
  text-align: center;
  transition: color 0.3s ease;
}

.work-item:hover .work-item-title {
  color: var(--c-accent);
}

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 24px;
  }
}

@media (max-width: 600px) {
  .works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-thumb {
    aspect-ratio: 1/1;
    /* スマホでは正方形で見やすく */
  }
}

/* ========================================================
   Note (RSS)
======================================================== */
#note {
  background-color: #fff;
  /* 少し色を変えて区切る */
}

.note-static {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.note-static-desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--c-text);
  margin-bottom: 40px;
}

/* ========================================================
   Profile
======================================================== */
.profile-inner {
  max-width: 720px;
  margin: 0 auto;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 32px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--c-greige);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-content {
  text-align: center;
}

.profile-name {
  font-size: 1.6rem;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.profile-name span {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--c-accent);
  margin-left: 12px;
}

.profile-role {
  font-size: 0.9rem;
  color: var(--c-text-light);
  margin-bottom: 40px;
  letter-spacing: 0.1em;
}

.profile-bio {
  text-align: justify;
  text-justify: inter-ideograph;
  line-height: 2.2;
  margin-bottom: 48px;
}

.profile-bio p {
  margin-bottom: 1.5em;
}

.profile-contact {
  padding-top: 48px;
  border-top: 1px solid var(--c-greige);
}

.contact-lead {
  font-size: 0.9rem;
  color: var(--c-text-light);
  margin-bottom: 24px;
}

.contact-btn {
  display: inline-block;
  padding: 14px 48px;
  border: 1px solid var(--c-usu-nezumi);
  background-color: transparent;
  color: var(--c-text);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  transition: all 0.4s ease;
}

.contact-btn:hover {
  background-color: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

/* ========================================================
   Footer
======================================================== */
.site-footer {
  text-align: center;
  padding: 40px 0;
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--c-accent);
  letter-spacing: 0.1em;
  background-color: var(--c-bg);
  /* 全体と同じ */
}

/* ========================================================
   Modal
======================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-soft), visibility 0.5s var(--ease-soft);
}

.modal.is-active {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(69, 71, 75, 0.4);
  /* 少し暗く、上品な半透明グレー */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  z-index: 101;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  background-color: var(--c-bg);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  display: flex;
  overflow: hidden;
  /* アニメーション用初期状態 */
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s var(--ease-soft) 0.1s;
}

.modal.is-active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-close i {
  position: absolute;
  width: 24px;
  height: 1px;
  background-color: var(--c-text-light);
}

.modal-close i:nth-child(1) {
  transform: rotate(45deg);
}

.modal-close i:nth-child(2) {
  transform: rotate(-45deg);
}

.modal-body {
  display: flex;
  width: 100%;
}

.modal-image-col {
  width: 50%;
  background-color: var(--c-greige);
  position: relative;
}

.modal-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal-carousel-inner {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s var(--ease-soft);
}

.modal-carousel-inner img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.6);
  color: var(--c-text);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  padding: 0;
}

.carousel-dot.is-active,
.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.modal-text-col {
  width: 50%;
  padding: 64px 56px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-title {
  font-size: 1.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--c-usu-nezumi);
  padding-bottom: 16px;
}

.modal-year {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--c-accent);
  margin-bottom: 32px;
}

.modal-desc {
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--c-text);
  margin-bottom: 24px;
  text-align: justify;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-body {
    flex-direction: column;
  }

  .modal-image-col {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    /* スマホでは画像全体が表示されるように縦横比1:1を指定 */
  }

  .modal-text-col {
    width: 100%;
    padding: 40px 24px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
  }
}

/* ========================================================
   Animations (Fade in)
======================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1.2s var(--ease-soft) forwards;
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
}

.fade-in-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}