/* ============================================================
   Wamily — concept page styles
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { font-size: 14px; scroll-behavior: smooth }
body {
  font-family: 'Noto Serif JP', serif;
  background: #f5f1ea;
  color: #221c14;
  line-height: 1.9;
  font-weight: 300;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none }
img { max-width: 100%; display: block }

:root {
  --cream: #f5f1ea;
  --cream-d: #ede8de;
  --white: #fff;
  --dark: #221c14;
  --dark2: #1a1410;
  --dark-forest: #1a3530;
  --teal: #2a9d8f;
  --mustard: #c8a820;
  --muted: #9a8868;
  --border: #e4dcd0;
}

/* ======= ナビ ======= */
.gnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: transparent;
  transition: background .4s, border-color .4s;
  pointer-events: none;
}
.gnav.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.gnav-logo {
  font-size: 20px; font-weight: 500; color: #fff;
  pointer-events: all;
  transition: color .4s;
}
.gnav.scrolled .gnav-logo { color: var(--dark) }
.gnav-logo-w { color: var(--teal) }
.gnav-links {
  display: flex; align-items: center; gap: 8px;
  pointer-events: all;
}
.gnav-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0 }
.gnav-links a {
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,.85);
  padding: 6px 16px; border-radius: 999px;
  letter-spacing: .04em; white-space: nowrap;
  transition: background .2s, color .2s;
}
.gnav.scrolled .gnav-links a { color: var(--dark) }
.gnav-links a:hover, .gnav-links a.active {
  background: rgba(42,157,143,.12); color: var(--teal) !important;
}
.gnav-ctas { display: flex; gap: 8px; pointer-events: all }
.gnav-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 999px;
  font-size: 11px; font-weight: 400; letter-spacing: .04em; white-space: nowrap;
  transition: transform .15s, opacity .4s;
}
.gnav-pill:hover { transform: translateY(-1px) }
.gnav-pill.teal { background: var(--teal); color: #fff }
.gnav-pill.outline {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
}
.gnav.scrolled .gnav-pill.outline {
  background: var(--white); color: var(--dark); border-color: var(--border);
}

/* ======= HERO ======= */
.cp-hero {
  position: relative;
  height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.cp-hero-img {
  position: absolute; inset: 0;
}
.cp-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}
.cp-hero-img img.loaded { transform: scale(1) }
.cp-hero-grad {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,15,10,.15) 0%,
    rgba(20,15,10,.0) 30%,
    rgba(20,15,10,.5) 70%,
    rgba(20,15,10,.85) 100%
  );
  z-index: 1;
}
.cp-hero-content {
  position: relative; z-index: 2;
  padding: 0 8vw 9vh;
  max-width: 900px;
}
.cp-hero-en {
  font-size: 11px; letter-spacing: .22em; color: rgba(255,255,255,.6);
  text-transform: uppercase; font-weight: 400;
  margin-bottom: 18px;
  opacity: 0; animation: cpFadeUp .8s ease-out .2s forwards;
}
.cp-hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300; color: #fff;
  letter-spacing: .04em; line-height: 1.4;
  opacity: 0; animation: cpFadeUp .9s ease-out .4s forwards;
}
.cp-hero-title em {
  font-style: normal; color: var(--mustard);
}
.cp-hero-sub {
  margin-top: 20px;
  font-size: clamp(13px, 1.6vw, 16px);
  color: rgba(255,255,255,.65);
  font-weight: 300; letter-spacing: .06em;
  opacity: 0; animation: cpFadeUp .9s ease-out .65s forwards;
}
.cp-hero-scroll {
  position: absolute; bottom: 40px; right: 8vw; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: cpFadeIn 1s ease-out 1.2s forwards;
}
.cp-hero-scroll span {
  font-size: 9px; letter-spacing: .18em; color: rgba(255,255,255,.45);
  text-transform: uppercase; writing-mode: vertical-rl;
}
.cp-hero-scroll-line {
  width: 1px; height: 48px; background: rgba(255,255,255,.3);
  position: relative; overflow: hidden;
}
.cp-hero-scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: rgba(255,255,255,.6);
  animation: scrollLine 2s ease-in-out 1.5s infinite;
}

/* ======= OPENING ======= */
.cp-opening {
  background: var(--cream);
  padding: clamp(72px, 10vw, 120px) clamp(24px, 8vw, 120px);
  text-align: center;
  max-width: 820px; margin: 0 auto;
}
.cp-opening-text {
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 300; line-height: 2;
  color: var(--dark); letter-spacing: .06em;
}
.cp-opening-text strong {
  font-weight: 500;
}

/* ======= FULL-BLEED PHOTO WITH CAPTION ======= */
.cp-fullphoto {
  position: relative; width: 100%;
  height: clamp(300px, 55vw, 640px);
  overflow: hidden;
}
.cp-fullphoto img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 55%;
}
.cp-fullphoto-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 60px 8vw 36px;
  background: linear-gradient(to top, rgba(20,15,10,.75) 0%, transparent 100%);
  color: rgba(255,255,255,.9);
}
.cp-fullphoto-caption p {
  font-size: clamp(18px, 2.8vw, 32px);
  font-weight: 300; letter-spacing: .06em; line-height: 1.6;
}
.cp-fullphoto-caption small {
  display: block; margin-top: 8px;
  font-size: 11px; letter-spacing: .18em;
  color: rgba(255,255,255,.45); text-transform: uppercase;
}

/* ======= TEXT SECTION ======= */
.cp-text {
  background: var(--cream);
  padding: clamp(56px, 8vw, 96px) clamp(24px, 8vw, 120px);
}
.cp-text-inner {
  max-width: 640px;
}
.cp-text-inner.center { margin: 0 auto; text-align: center }
.cp-text-inner.right { margin-left: auto }

.cp-label {
  font-size: 10px; letter-spacing: .22em;
  color: var(--teal); text-transform: uppercase;
  font-weight: 400; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.cp-label::before {
  content: ''; display: block;
  width: 28px; height: 1px; background: var(--teal);
}
.cp-text-inner.center .cp-label { justify-content: center }
.cp-text-inner.center .cp-label::before { display: none }

.cp-h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 300; letter-spacing: .06em; line-height: 1.6;
  color: var(--dark); margin-bottom: 28px;
}
.cp-body {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 2.1; color: #3a322a;
  font-weight: 300; letter-spacing: .04em;
}
.cp-body + .cp-body { margin-top: 20px }

/* ======= CHAPTER (photo + text split) ======= */
.cp-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(360px, 50vw, 600px);
}
.cp-chapter--flip { direction: rtl }
.cp-chapter--flip > * { direction: ltr }

.cp-chapter-img {
  overflow: hidden; position: relative;
}
.cp-chapter-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .8s ease-out;
}
.cp-chapter-img:hover img { transform: scale(1.04) }

.cp-chapter-body {
  background: var(--dark-forest); color: rgba(255,255,255,.85);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(32px, 5vw, 64px);
}
.cp-chapter-body .cp-label { color: rgba(255,255,255,.4) }
.cp-chapter-body .cp-label::before { background: rgba(255,255,255,.2) }
.cp-chapter-body .cp-h2 { color: #fff }
.cp-chapter-body .cp-body { color: rgba(255,255,255,.65) }

/* cream variant */
.cp-chapter-body.cream {
  background: var(--cream-d); color: var(--dark);
}
.cp-chapter-body.cream .cp-label { color: var(--teal) }
.cp-chapter-body.cream .cp-label::before { background: var(--teal) }
.cp-chapter-body.cream .cp-h2 { color: var(--dark) }
.cp-chapter-body.cream .cp-body { color: #3a322a }

/* ======= PHOTO GRID (mosaic) ======= */
.cp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, clamp(160px, 22vw, 280px));
  gap: 4px;
  background: var(--dark);
}
.cp-grid-item {
  overflow: hidden; position: relative;
}
.cp-grid-item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .6s ease-out, filter .4s;
  filter: brightness(.88);
}
.cp-grid-item:hover img { transform: scale(1.06); filter: brightness(1) }

/* grid positions */
.cp-grid-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3 }  /* tall left */
.cp-grid-item:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 2 }  /* top mid — 台湾 */
.cp-grid-item:nth-child(2) img { object-position: center 30% }       /* サワディーが見切れないよう上寄り */
.cp-grid-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2 } /* top right */
.cp-grid-item:nth-child(4) { grid-column: 5 / 9; grid-row: 2 / 3 }  /* bottom mid */
.cp-grid-item:nth-child(5) { grid-column: 9 / 13; grid-row: 2 / 3 } /* bottom right — おまけ */
.cp-grid-item:nth-child(5) img { object-position: center 20% }       /* サワディーの顔が見切れないよう上寄り */

.cp-grid-loc {
  position: absolute; bottom: 12px; left: 14px;
  font-size: 9px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.55); font-weight: 400;
}

/* ======= PULLQUOTE ======= */
.cp-quote {
  background: var(--dark-forest);
  padding: clamp(64px, 10vw, 112px) clamp(24px, 8vw, 120px);
  text-align: center;
}
.cp-quote-mark {
  font-size: 80px; line-height: .6; color: var(--mustard);
  opacity: .4; font-family: Georgia, serif;
  display: block; margin-bottom: 24px;
}
.cp-quote-text {
  font-size: clamp(20px, 3.2vw, 38px);
  font-weight: 300; color: rgba(255,255,255,.9);
  letter-spacing: .06em; line-height: 1.7;
  max-width: 800px; margin: 0 auto;
}
.cp-quote-attr {
  display: block; margin-top: 24px;
  font-size: 11px; letter-spacing: .18em;
  color: rgba(255,255,255,.35); text-transform: uppercase;
}

/* ======= PROFILE ======= */
.cp-profile {
  background: var(--cream);
  padding: clamp(64px, 9vw, 100px) clamp(24px, 8vw, 120px);
  display: flex; align-items: flex-start; gap: clamp(32px, 5vw, 72px);
}
.cp-profile-photo {
  flex-shrink: 0;
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
}
.cp-profile-photo img { width: 100%; height: 100%; object-fit: cover }
.cp-profile-body { flex: 1 }
.cp-profile-name {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400; letter-spacing: .08em;
  color: var(--dark); margin-bottom: 4px;
}
.cp-profile-role {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px; font-weight: 400;
}
.cp-profile-text {
  font-size: clamp(13px, 1.4vw, 15px);
  line-height: 2; color: #3a322a; max-width: 560px;
}
.cp-profile-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 24px;
}
.cp-profile-chip {
  font-size: 12px; padding: 5px 14px;
  background: var(--cream-d); border: 1px solid var(--border);
  border-radius: 999px; color: var(--dark);
  letter-spacing: .03em;
}

/* ======= CLOSING ======= */
.cp-close {
  background: var(--dark2);
  padding: clamp(80px, 12vw, 140px) clamp(24px, 8vw, 120px);
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cp-close-title {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 300; color: #fff;
  letter-spacing: .08em; line-height: 1.6;
}
.cp-close-title em { font-style: normal; color: var(--mustard) }
.cp-close-sub {
  font-size: clamp(13px, 1.5vw, 15px);
  color: rgba(255,255,255,.45); letter-spacing: .08em;
  font-weight: 300;
}
.cp-close-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 12px;
  padding: 16px 40px; border-radius: 999px;
  background: var(--teal); color: #fff;
  font-size: 13px; letter-spacing: .08em; font-weight: 400;
  transition: transform .2s, opacity .2s;
}
.cp-close-cta:hover { transform: translateY(-2px); opacity: .9 }

/* ======= FOOTER ======= */
.cp-footer {
  background: #120e09;
  padding: 48px clamp(24px, 8vw, 120px);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.cp-footer-logo {
  font-size: 20px; font-weight: 500; color: rgba(255,255,255,.6);
}
.cp-footer-logo-w { color: var(--teal) }
.cp-footer-links { display: flex; gap: 24px }
.cp-footer-links a {
  font-size: 12px; letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  transition: color .2s;
}
.cp-footer-links a:hover { color: rgba(255,255,255,.7) }
.cp-footer-copy {
  font-size: 11px; color: rgba(255,255,255,.2);
  letter-spacing: .06em; width: 100%;
}

/* ======= SCROLL ANIMATIONS ======= */
.cp-anim {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s ease-out, transform .8s ease-out;
}
.cp-anim.visible {
  opacity: 1; transform: translateY(0);
}
.cp-anim-delay-1 { transition-delay: .1s }
.cp-anim-delay-2 { transition-delay: .2s }
.cp-anim-delay-3 { transition-delay: .35s }

/* ======= KEYFRAMES ======= */
@keyframes cpFadeUp {
  from { opacity: 0; transform: translateY(20px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes cpFadeIn {
  from { opacity: 0 }
  to   { opacity: 1 }
}
@keyframes scrollLine {
  0%   { top: -100% }
  100% { top: 100% }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .gnav { padding: 0 20px }
  .gnav-links { display: none }

  .cp-hero-content { padding: 0 6vw 10vh }

  .cp-chapter {
    grid-template-columns: 1fr;
    min-height: unset;
  }
  .cp-chapter-img { height: clamp(240px, 55vw, 360px) }
  .cp-chapter--flip { direction: ltr }

  .cp-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }
  .cp-grid-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2 }
  .cp-grid-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2 }
  .cp-grid-item:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3 }
  .cp-grid-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3 }
  .cp-grid-item:nth-child(5) { grid-column: 1 / 3; grid-row: 3 / 4 }

  .cp-profile { flex-direction: column; align-items: center; text-align: center }
  .cp-profile-text { max-width: unset }
  .cp-profile-chips { justify-content: center }

  .cp-footer { flex-direction: column; align-items: flex-start }
  .cp-footer-links { flex-wrap: wrap }
}
