/* ========================================
   Final Typography Tune
======================================== */

/* 全体 */
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  color: #1f2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* header */
nav a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* About / Service / Contact などの見出し */
section h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* 小見出し */
section h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* 本文 */
section p,
label,
input,
textarea,
button,
footer,
footer p,
footer a,
footer li {
  font-family: 'Noto Sans JP', sans-serif;
}

/* ========================================
   Hero Typography + Animation
======================================== */

.intro-wrap {
  padding-top: 0.2em;
  padding-bottom: 0.2em;
}

.intro-line,
.intro-sub {
  display: block;
  opacity: 0;
  overflow: visible;
  text-align: center;
  font-family: 'Noto Serif JP', serif !important;
  font-size: 34px !important;
  line-height: 1.35;
  color: #1f2937;
  clip-path: inset(-12% 100% -12% 0);
  filter: blur(6px);
}

/* 1行目：― &you ― */
.intro-line {
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  animation:
    introShow 0.01s linear forwards,
    introRevealRight 2.6s cubic-bezier(.22, .61, .36, 1) forwards,
    introSharpen 2.6s ease forwards;
}

/* 2行目：あなたがいるから、私がいる */
.intro-sub {
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  animation:
    introShow 0.01s linear forwards,
    introRevealRight 3.2s cubic-bezier(.22, .51, .90, 1) forwards,
    introSharpen 3.2s ease forwards;
  animation-delay: 0s, 0.6s, 0.6s;
}

@keyframes introShow {
  to {
    opacity: 1;
  }
}

@keyframes introRevealRight {
  from {
    clip-path: inset(-12% 100% -12% 0);
  }

  to {
    clip-path: inset(-12% 0 -12% 0);
  }
}

@keyframes introSharpen {
  from {
    filter: blur(6px);
  }

  to {
    filter: blur(0);
  }
}

/* ========================================
   Form / Footer Fine Tune
======================================== */

input,
textarea {
  font-size: 14px;
  font-weight: 400;
}

label {
  font-size: 14px;
  font-weight: 500;
}

footer p,
footer a,
footer li {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.8;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 768px) {
  nav a {
    font-size: 11px;
    letter-spacing: 0;
  }

  .intro-line,
  .intro-sub {
    font-size: 28px !important;
    line-height: 1.35;
  }
}
/* ========================================
   Background Area
   hero ～ the work直前まで左右背景を表示
======================================== */

/* ========================================
   Center-Based Side Placement
======================================== */

.bg-shell {
  position: relative;
  overflow: hidden;
  min-height: 1300px;
}

.bg-shell::before,
.bg-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 520px;
  /* まずはここで調整 */
  background-repeat: no-repeat;
  background-size: auto 100%;
  pointer-events: none;
  z-index: 0;
}

/* 左背景 */
.bg-shell::before {
  left: 0;
  background-image: url("../images/bg-left.webp");
  background-position: left top;
}

/* 右背景 */
.bg-shell::after {
  right: 0;
  background-image: url("../images/bg-right.webp");
  background-position: right top;
}

.bg-shell>* {
  position: relative;
  z-index: 1;
}
/* タブレット */
@media (max-width: 1024px) {

  .bg-shell::before,
  .bg-shell::after {
    width: 320px;
    background-size: auto 88%;
  }
}

/* スマホ */
@media (max-width: 768px) {

  .bg-shell::before,
  .bg-shell::after {
    width: 260px;
    background-size: auto 78%;
  }

  /* 左画像：内側（右端）を固定 */
  .bg-shell::before {
    left: auto;
    right: 50%;
    background-position: right top;
  }

  /* 右画像：内側（左端）を固定 */
  .bg-shell::after {
    right: auto;
    left: 50%;
    background-position: left top;
  }
}

/* 小さいスマホ */
@media (max-width: 480px) {

  .bg-shell::before,
  .bg-shell::after {
    width: 200px;
    background-size: auto 68%;
  }
}

/* =========================
   Work Modal（最終版）
========================= */
.work-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(0, 0, 0, 0.85);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 12px;
}

.work-modal.flex {
  display: grid;
  place-items: center;
}

.work-modal__inner {
  position: relative;
  width: min(90vw, 720px);
  margin: auto;
}

.work-modal__close {
  position: absolute;
  top: -36px;
  right: 0;
  z-index: 30;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.work-modal__body {
  max-height: 58dvh;
  overflow-y: auto;
  background: #000;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.work-modal__image {
  display: block;
  width: 94%;
  max-width: 94%;
  height: auto;
  margin: 0 auto;
}

/* =========================
   タブレット〜ノートPC
========================= */
@media (min-width: 768px) {
  .work-modal {
    padding: 24px 16px;
  }

  .work-modal__inner {
    width: min(78vw, 760px);
  }

  .work-modal__close {
    top: -40px;
    width: 40px;
    height: 40px;
    font-size: 26px;
  }

  .work-modal__body {
    max-height: 68dvh;
  }

  .work-modal__image {
    width: 78%;
    max-width: 78%;
  }
}

/* =========================
   ワイドモニター
========================= */
@media (min-width: 1440px) {
  .work-modal__inner {
    width: min(60vw, 820px);
  }

  .work-modal__body {
    max-height: 72dvh;
  }

  .work-modal__image {
    width: 80%;
    max-width: 80%;
  }
}