/* ここから記述します。 */

/* 共通部品 */
html {
  font-family: Inter;
  color: #333;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

a:hover {
  opacity: 0.8;
}

.u-wrapper {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 100px;

  @media screen and (max-width: 768px) {
    padding: 0 20px;
  }
}

.u-sectionTitle {
  text-align: center;
  font-size: 32px;
  font-weight: 700;

  @media screen and (max-width: 768px) {
    font-size: 24px;
  }
}


.u-sectionText {
  font-family: Noto Serif JP;
  font-size: 16px;
}

.u-sectionWrapper {
  display: flex;
  padding-top: 80px;
  padding-bottom: 80px;
  flex-direction: column;
  align-items: center;
  gap: 40px;

  @media screen and (max-width: 768px) {
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 24px;
  }
}


/* 個別部品 */
/*--------------------------------
header
---------------------------------*/
.header {
  display: flex;
  padding-top: 16px;
  padding-bottom: 16px;
  justify-content: space-between;
  align-items: center;

  @media screen and (max-width: 768px) {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}



.header__title {
  font-size: 40px;

  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
}



.header__nav {
  display: flex;
  gap: 16px;
}

/*--------------------------------
about
---------------------------------*/
.about__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

@media screen and (max-width: 768px) {
  .about__container {
    flex-direction: column;
  }
}

.about__img {
  max-width: 200px;
}

.about__textContainer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

@media screen and (max-width: 768px) {
  .about__textContainer {
    gap: 8px;
    align-items: center;
  }
}

.about__name {
  font-family: Noto Sans JP;
  font-size: 24px;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .about__name {
    font-size: 20px;
  }
}

@media screen and (max-width: 768px) {
  .about__text {
    text-align: center;
  }
}

/*--------------------------------
works
---------------------------------*/
.works__container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    gap: 24px;
  }
}

.works__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.works__img {
  width: 100%;
}

.works__itemText {
  font-size: 24px;
}

/*--------------------------------
footer
---------------------------------*/
.footer {
  display: flex;
  padding: 8px 0px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer__copyright {
  text-align: center;
  font-family: Noto Sans JP;
  font-size: 12px;
}
/* 初期は隠す */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ちょいディレイを付けたいとき（任意） */
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
}
body {
  font-family: "Noto Serif JP", "Playfair Display", serif;
  color: #222;
  background-color: #fdfcf8;
  line-height: 1.8;
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.03em;
}
body {
  background-color: #fbfaf5; /* 雲母白 */
  color: #333;
  line-height: 1.8;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fbfaf5 0%, #f3f2ee 100%);

}
header h1 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: #245e62; /* 深めのグリーンで和モダン */
}
section {
  padding: 80px 20px;
}

img {
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
section h2 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}
img:hover {
  transform: scale(1.02);
  transition: 0.4s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
:target {
  scroll-margin-top: calc(var(--header-h, 72px) + 16px);
}

html {
  scroll-behavior: smooth;
} /* なめらかスクロール */
.back-to-top {
  position: fixed; /* ← おすわり！ */
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  z-index: 1000;
  display: inline-grid;
  place-items: center;
  width: 80px; /* タップしやすいサイズ */
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* 画像をコンテナにフィット */
.back-to-top img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  pointer-events: none;
}

/* ちょいだけリアクション */
.back-to-top:hover {
  transform: translateY(-2px);
}

.back-to-top:active {
  transform: translateY(0);
}

/* iOSのホームバー安全域 */
@supports (padding: max(0px)) {
  .back-to-top {
    right: max(12px, env(safe-area-inset-right));
  }
}
/* 低モーション希望の人へは静かに */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .back-to-top {
    transition: none;
  }
}