/* ===================================
   Site Enhancements — Nav, FV, Works, Skills, Contact, Footer
   =================================== */

/* ===================================
   Sticky Navigation (項目3)
   =================================== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1002;
  padding: 0 4vw;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.site-nav--scrolled {
  background: rgba(250, 250, 250, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-nav__logo {
  font-size: 18px;
  font-weight: 700;
  color: #18181b;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: #52525b;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.site-nav__links a:hover {
  color: #18181b;
}

/* Hamburger (768px以下) */
.site-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.site-nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #18181b;
  transition: transform 0.3s, opacity 0.3s;
}

.site-nav__hamburger--open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav__hamburger--open span:nth-child(2) {
  opacity: 0;
}
.site-nav__hamburger--open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile overlay */
.site-nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 250, 250, 0.97);
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.site-nav__overlay--open {
  display: flex;
}

.site-nav__overlay a {
  font-size: 24px;
  font-weight: 600;
  color: #18181b;
  text-decoration: none;
  letter-spacing: 0.04em;
}

@media screen and (max-width: 768px) {
  .site-nav__links {
    display: none;
  }
  .site-nav__hamburger {
    display: flex;
  }
}

/* ===================================
   FV Catchcopy (項目4)
   =================================== */
.fv__name {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: #18181b;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  animation: fvFadeIn 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.5s forwards;
}

.fv__role {
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  font-weight: 500;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 16px 0 0;
  opacity: 0;
  transform: translateY(24px);
  animation: fvFadeIn 0.8s cubic-bezier(0.33, 1, 0.68, 1) 0.8s forwards;
}

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

/* ===================================
   Scroll Indicator (項目5)
   =================================== */
.fv__scroll {
  position: absolute;
  bottom: 5vh;
  left: 50%;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fvFadeIn 0.8s cubic-bezier(0.33, 1, 0.68, 1) 1.2s forwards;
}

.fv__scroll-icon {
  width: 24px;
  height: 40px;
  border: 1.5px solid #a1a1aa;
  border-radius: 12px;
  position: relative;
}

.fv__scroll-wheel {
  width: 3px;
  height: 8px;
  background: #a1a1aa;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.8s cubic-bezier(0.33, 1, 0.68, 1) infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

.fv__scroll-text {
  font-size: 10px;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ===================================
   Contact Section (項目2)
   =================================== */
.contact {
  position: relative;
  padding: 10vw 0 14.81vw;
}

.contact__inner {
  position: relative;
  width: 91.6666666667vw;
  margin: 0 auto;
}

.contact__body {
  margin-top: 48px;
  text-align: center;
}

.contact__lead {
  font-size: 16px;
  line-height: 1.85;
  color: #52525b;
  margin: 0 0 40px;
}

.contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
  text-decoration: none;
  border: 1px solid #18181b;
  padding: 16px 40px;
  letter-spacing: 0.04em;
  transition: background 0.3s, color 0.3s;
}

.contact__cta:hover {
  background: #18181b;
  color: #fafafa;
}

/* Contact animation */
.contact-text-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1),
              transform 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}
.contact--visible .contact-text-reveal {
  opacity: 1;
  transform: translateY(0);
}
.contact--visible .contact-text-reveal:nth-child(1) { transition-delay: 0s; }
.contact--visible .contact-text-reveal:nth-child(2) { transition-delay: 0.15s; }

/* ===================================
   Footer (項目1)
   =================================== */
.site-footer {
  padding: 60px 0 40px;
  text-align: center;
}

.site-footer__top {
  margin-bottom: 32px;
}

.site-footer__top a {
  font-size: 13px;
  font-weight: 600;
  color: #71717a;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.site-footer__top a:hover {
  color: #18181b;
}

.site-footer__sns {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}

.site-footer__sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #71717a;
  transition: color 0.3s;
}

.site-footer__sns a:hover {
  color: #18181b;
}

.site-footer__copy {
  font-size: 12px;
  color: #a1a1aa;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ===================================
   Paper Texture — 暖色背景 + グレインオーバーレイ
   参考: unforgettable.studio.site
   =================================== */
:root {
  --color-bg: #f0ece6 !important;
}

body {
  background-color: #f0ece6 !important;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
  filter: contrast(1.15);
}

.site-nav--scrolled {
  background: rgba(232, 226, 218, 0.9) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

/* ===================================
   Typography — 全体を明朝系に統一
   参考: unforgettable.studio.site
   既存CSS(news.DnTrm4Yx.css)の Barlow/heisei-kaku を上書き
   =================================== */
.home main,
.home main p,
.home main span,
.home main a,
.home main div,
.home main h1,
.home main h2,
.home main h3,
.home main li {
  font-family: 'Noto Serif JP', 'Yu Mincho', '游明朝', serif !important;
}

/* 英語テキスト（FV名前、ナビ等）はInter維持 */
.fv__name,
.site-nav__logo,
.site-nav__links a,
.site-nav__overlay a,
.fv__role,
.fv__scroll-text,
.site-footer__copy {
  font-family: 'Inter', sans-serif !important;
}

/* 見出しのウェイト調整 */
.Ttl h1,
.Ttl h2 {
  font-weight: 500 !important;
}

/* cert番号は等幅寄りのInter */
.cert-item__num {
  font-family: 'Inter', sans-serif !important;
}

/* ===================================
   Responsive (1024px and below)
   =================================== */
@media screen and (max-width: 1024px) {
  /* FV name/role: 中央配置・Scroll indicatorと重ならないよう上に配置 */
  .home main .Layers_1 .fv__h,
  .home main .Layers_5 .fv__h {
    left: 50% !important;
    bottom: 14vh !important;
    translate: -50% 0;
    text-align: center;
    width: max-content;
    max-width: 90vw;
  }

  /* セクション内部幅の統一: 91.6666vw */
  .home main .Layers_1 .about__inner,
  .home main .Layers_5 .about__inner,
  .home main .Layers_1 .works__inner,
  .home main .Layers_5 .works__inner,
  .home main .Layers_1 .skills__inner,
  .home main .Layers_5 .skills__inner {
    width: 91.6666666667vw !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media screen and (max-width: 768px) {
  .fv__name {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .contact__cta {
    padding: 14px 32px;
    font-size: 14px;
  }
}
