/**
 * Kosuke Kato Website - Unified Global Styles (kk-global.css)
 * Defines global navigation, mobile responsive menu, scroll progress, and sitemap footer.
 */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&family=Bodoni+Moda:ital,opsz,wght@0,6..96,400;0,6..96,600;0,6..96,700;0,6..96,900;1,6..96,400&family=Josefin+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&family=Noto+Sans+JP:wght@300;400;500;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500;700&display=swap');

:root {
  --bg-editorial: #f7f6f0;
  --bg-card: #ffffff;
  --text-main: #121214;
  --text-muted: #5e5e66;
  --border-color: rgba(18, 18, 20, 0.12);
  --accent-brass: #c9ab6d;
  --accent-gold: #d4af37;
  --accent-blue: #0b49c7;
  --splash-yellow: #facc15;
  --font-display-serif: 'Bodoni Moda', 'Didot', 'Noto Serif JP', serif;
  --font-display-sans: 'Josefin Sans', 'Outfit', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-serif-jp: 'Noto Serif JP', serif;
  --slant-offset: 2.8vw;
}

/* Vortex Canvas Disabled */
#vortex-canvas {
  display: none !important;
}

/* Ensure ALL main content, containers, and media sit firmly in front of ambient canvas */
main,
.container,
.main-wrapper,
article,
section,
.projects-grid,
.profile-card,
.newsletter-card,
.form-card,
.portfolio-content,
#app {
  position: relative;
  z-index: 1;
}

/* Artwork / Images on Illustration detail pages must sit firmly in front and be 100% crisp */
.art-image,
img.art-image {
  position: relative !important;
  z-index: 5 !important;
  background-color: #ffffff;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c9ab6d, #0b49c7);
  z-index: 999999;
  transition: width 0.08s ease-out;
  pointer-events: none;
}

/* Subpage padding offset for floating navbar */
body.kk-subpage {
  padding-top: 5.5rem !important;
}

/* Two-Tone subpages start from y=0 at the very top (full bleed, no white gap) */
body.kk-subpage:has(.subpage-two-tone),
body:has(.subpage-two-tone) {
  padding-top: 0 !important;
}


/* Box-sizing standard & base reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

body {
  font-family: 'Work Sans', 'Noto Sans JP', sans-serif;
  color: #121214;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* Floating Pill Navigation */
.knav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  pointer-events: none;
  padding: 0 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.knav-bar {
  pointer-events: auto;
  max-width: 1320px;
  width: calc(100% - 2rem);
  margin: 0.8rem auto;
  padding: 0.65rem 2.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(18, 18, 20, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Top page Hero mode (non-scrolled transparent glass) */
.knav-container.is-hero .knav-bar {
  margin: 1.5rem auto;
  padding: 0.75rem 2.8rem;
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}
.knav-container.is-hero .brand-name {
  color: #fff;
}
.knav-container.is-hero .brand-tag {
  color: rgba(255, 255, 255, 0.85);
}
.knav-container.is-hero .knav-link {
  color: rgba(255, 255, 255, 0.9);
}
.knav-container.is-hero .knav-link:hover {
  color: #fff;
}
.knav-container.is-hero .knav-toggle span {
  background: #fff;
}

/* Scrolled state */
.knav-container.is-scrolled .knav-bar {
  margin: 0.8rem auto;
  padding: 0.65rem 2.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 18, 20, 0.08);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}
.knav-container.is-scrolled .brand-name {
  color: #121214;
}
.knav-container.is-scrolled .brand-tag {
  color: #c9ab6d;
}
.knav-container.is-scrolled .knav-link {
  color: #5e5e66;
}
.knav-container.is-scrolled .knav-link:hover {
  color: #121214;
}

.knav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-display-serif);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #121214;
  transition: color 0.3s ease;
}
.brand-tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.72rem;
  color: #c9ab6d;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  transition: color 0.3s ease;
}

.knav-menu {
  display: flex;
  gap: clamp(1rem, 1.4vw, 1.6rem);
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.knav-link {
  font-family: 'Josefin Sans', 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #5e5e66;
  text-transform: uppercase;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
}
.knav-link:hover {
  color: #121214;
  transform: translateY(-2px);
}
.knav-link.is-active {
  color: #121214;
}
.knav-link.is-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #c9ab6d;
  border-radius: 2px;
}

.knav-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  background: #121214;
  color: #fff !important;
  border-radius: 999px;
  font-family: 'Josefin Sans', 'Outfit', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.knav-contact-btn:hover {
  background: #c9ab6d;
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 20px rgba(201, 171, 109, 0.4);
}

/* Mobile Hamburger Toggle & Drawer Elements (Desktop Hidden) */
.knav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 10001;
}
.knav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #121214;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.knav-close-row {
  display: none;
}
.knav-backdrop {
  display: none;
}

@media (max-width: 1040px) {
  .knav-container {
    padding: 0 1rem !important;
    max-width: 100vw !important;
  }
  .knav-bar,
  .knav-container.is-hero .knav-bar,
  .knav-container.is-scrolled .knav-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0.55rem 1.25rem !important;
    margin: 0.8rem auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .knav-bar nav {
    display: contents !important;
  }
  .knav-brand {
    flex-shrink: 0;
  }
  .knav-toggle {
    display: flex !important;
    margin-left: auto !important;
    flex-shrink: 0;
    padding: 0.4rem;
    z-index: 1001;
  }
  .knav-toggle span {
    background: #121214;
  }
  .knav-container.is-hero .knav-toggle span {
    background: #ffffff;
  }
  .knav-container.is-scrolled .knav-toggle span {
    background: #121214;
  }
  .knav-backdrop {
    display: none !important;
  }
  .knav-menu {
    display: flex !important;
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #ffffff !important;
    flex-direction: column;
    padding: 4.8rem 2.2rem 3rem;
    gap: 1.6rem;
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
    align-items: flex-start;
    z-index: 100000;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
  }
  .knav-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .knav-close-row {
    display: flex !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .knav-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(18, 18, 20, 0.06);
    border: 1px solid rgba(18, 18, 20, 0.08);
    color: #121214;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .knav-close-btn:active {
    background: rgba(18, 18, 20, 0.14);
    transform: scale(0.96);
  }
  .knav-menu .knav-link {
    font-size: 1.05rem;
    color: #121214 !important;
  }
  .knav-menu .knav-lang-btn {
    color: #a88a4c !important;
    background: rgba(201, 171, 109, 0.12) !important;
    border-color: rgba(201, 171, 109, 0.35) !important;
  }
  .knav-contact-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
    margin-top: 0.8rem;
  }
}

/* Unified Sitemap Footer */
.site-footer {
  position: relative;
  z-index: 15;
  background: #121316;
  color: #f7f6f0;
  padding: 5rem 2rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Noto Sans JP', sans-serif;
  margin-top: 0;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  text-align: left;
}
.footer-brand {
  display: flex;
  flex-direction: column;
}
.footer-title {
  font-family: var(--font-display-serif);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.5rem 0;
}
.footer-tagline {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.78rem;
  color: #c9ab6d;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 1.5rem 0;
  max-width: 380px;
}
.footer-location {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-heading {
  font-family: 'Josefin Sans', 'Outfit', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-nav a:hover {
  color: #c9ab6d;
  transform: translateX(3px);
}
.footer-bottom {
  max-width: 1160px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
}
@media (max-width: 560px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Subpage Universal Components & Layout (Projects, Newsletter, Inquiry, Profile)
   ========================================================================== */
.main-wrapper {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}

/* ==========================================================================
   Unified Subpage Header System (各内部ページのタイトル書式統一)
   ========================================================================== */
.subpage-header,
.page-header,
.gallery-header,
.portfolio-page-header,
.hero-section:not(.home-hero) {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 3rem auto;
  padding: 0 4vw;
}

.subpage-title,
.page-title,
.gallery-title,
.hero-title {
  font-family: 'Bodoni Moda', 'Playfair Display', 'Noto Serif JP', serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: normal;
  color: #111827;
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0 0 1rem 0;
  text-align: center;
}

.subpage-desc,
.page-desc,
.hero-desc,
.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #5e5e66;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* Projects Grid & Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
@media (max-width: 768px) {
  .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.project-card {
  background: rgba(252, 251, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 171, 109, 0.35);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.08);
  border-color: #c9ab6d;
}
.project-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0eee6;
}
.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover .project-card-media img {
  transform: scale(1.05);
}
.project-card-content {
  padding: 2.2rem 2rem 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-tag {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a88a4c;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.project-name {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #121316;
  margin-bottom: 1rem;
}
.project-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #5c6068;
  margin-bottom: 1.8rem;
  flex: 1;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #121316;
  text-decoration: none;
  transition: color 0.2s ease;
}
.project-link:hover {
  color: #a88a4c;
}

/* Newsletter Card */
.newsletter-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 171, 109, 0.35);
  border-radius: 16px;
  padding: 3.2rem 2.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  text-align: center;
}
@media (max-width: 640px) {
  .newsletter-card { padding: 2rem 1.5rem; }
}
.form-row {
  display: flex;
  gap: 0.8rem;
  max-width: 540px;
  margin: 0 auto 1.2rem;
}
.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 540px) {
  .form-row, .form-row.two-cols { display: flex; flex-direction: column; }
}
.form-input {
  flex: 1;
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  border: 1px solid rgba(18, 19, 22, 0.12);
  border-radius: 8px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: #c9ab6d;
  box-shadow: 0 0 0 3px rgba(201, 171, 109, 0.25);
}
.newsletter-submit {
  padding: 0.95rem 2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: #121316;
  border: 1px solid #121316;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  white-space: nowrap;
}
.newsletter-submit:hover {
  background: #a88a4c;
  border-color: #a88a4c;
  transform: translateY(-2px);
}
.form-note {
  font-size: 0.82rem;
  color: #8e939e;
  margin-top: 1rem;
}

/* Inquiry Form Card */
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 171, 109, 0.35);
  border-radius: 16px;
  padding: 3.2rem 2.8rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}
@media (max-width: 640px) {
  .form-card { padding: 2rem 1.5rem; }
}
.form-group {
  margin-bottom: 1.6rem;
  text-align: left;
}
.form-label {
  display: block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #121316;
  margin-bottom: 0.5rem;
}
.form-label .req {
  color: #c9ab6d;
  margin-left: 0.25rem;
}
.form-control {
  width: 100%;
  padding: 0.95rem 1.2rem;
  font-size: 1rem;
  font-family: 'Noto Sans JP', sans-serif;
  border: 1px solid rgba(18, 19, 22, 0.12);
  border-radius: 8px;
  outline: none;
  transition: all 0.25s ease;
  background: #fff;
  box-sizing: border-box;
}
.form-control:focus {
  border-color: #c9ab6d;
  box-shadow: 0 0 0 3px rgba(201, 171, 109, 0.25);
}
.submit-btn {
  width: 100%;
  padding: 1.1rem;
  font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  background: #121316;
  border: 1px solid #121316;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.submit-btn:hover {
  background: #a88a4c;
  border-color: #a88a4c;
  transform: translateY(-2px);
}

/* Profile Card & Timeline */
.profile-card {
  max-width: 900px;
  margin: 0 auto 4rem;
  background: rgba(252, 251, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 171, 109, 0.35);
  border-radius: 16px;
  padding: 3rem;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}
@media (max-width: 768px) {
  .profile-card { flex-direction: column; padding: 2rem 1.5rem; gap: 2rem; align-items: center; text-align: center; }
}
.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #c9ab6d;
  box-shadow: 0 8px 24px rgba(201, 171, 109, 0.25);
  flex-shrink: 0;
}
.profile-intro h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #121316;
  margin-bottom: 0.5rem;
}
.profile-role {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a88a4c;
  margin-bottom: 1.2rem;
  letter-spacing: 0.04em;
}
.profile-body p {
  font-size: 0.98rem;
  line-height: 1.85;
  color: #5c6068;
  margin-bottom: 1rem;
}
.timeline-section {
  max-width: 900px;
  margin: 0 auto;
}
.timeline-heading {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: #121316;
}
.timeline-list {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid rgba(201, 171, 109, 0.35);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.45rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c9ab6d;
  border: 3px solid #fcfbf7;
  box-shadow: 0 0 0 2px #c9ab6d;
}
.timeline-date {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #a88a4c;
  margin-bottom: 0.35rem;
}
.timeline-text {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #5c6068;
}

/* ==========================================================================
   Top Page Editorial Sections & Kinetic Slants (Fully Restored)
   ========================================================================== */

/* ============================================================ */
    /* 1. HERO SECTION (100vh Full Screen Editorial with Fade Edge) */
    /* ============================================================ */
    .hero-section.home-hero {
      position: relative;
      height: 100vh;
      min-height: 640px;
      width: 100vw !important;
      max-width: 100vw !important;
      margin: 0 !important;
      margin-left: calc(-50vw + 50%) !important;
      margin-right: calc(-50vw + 50%) !important;
      margin-bottom: 0 !important;
      padding: 0 !important;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #0b0c10;
      z-index: 2;
    }
    .hero-image-wrapper {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
    }
    .hero-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      filter: brightness(0.92) contrast(1.04);
      animation: heroKenBurns 24s ease-in-out infinite alternate;
      will-change: transform;
    }
    @keyframes heroKenBurns {
      0% {
        transform: scale(1.01) translate(0, 0);
      }
      50% {
        transform: scale(1.06) translate(-1%, -0.8%);
      }
      100% {
        transform: scale(1.03) translate(0.8%, 0.5%);
      }
    }
    /* Hero bottom organic gradient transition */
    .hero-section.home-hero::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 160px;
      background: linear-gradient(to bottom, transparent, rgba(247, 246, 240, 0.9));
      z-index: 3;
      pointer-events: none;
    }
    .scroll-hint {
      position: absolute;
      bottom: 2.8rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      color: rgba(255, 255, 255, 0.85);
      font-family: var(--font-mono);
      font-size: 0.72rem;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
      pointer-events: none;
    }
    .scroll-line {
      width: 1px;
      height: 36px;
      background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), transparent);
      animation: scrollDrop 2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }
    @keyframes scrollDrop {
      0% { transform: scaleY(0); transform-origin: top; }
      50% { transform: scaleY(1); transform-origin: top; }
      50.1% { transform: scaleY(1); transform-origin: bottom; }
      100% { transform: scaleY(0); transform-origin: bottom; }
    }



    /* コンテンツコンテナを紙質テクスチャの手前（z-index: 2）に配置 */
    .swiss-container,
    .portfolio-header-area,
    .portfolio-tile-grid,
    .portfolio-bottom-action,
    .editorial-two-col,
    .project-inner,
    .ill-header,
    .ill-grid,
    .newsstand-inner,
    .newsletter-inner,
    .contact-inner {
      position: relative;
      z-index: 2;
    }

    /* ============================================================ */
    /* ORGANIC ANIMATED DIVIDERS (有機的でランダムな数学的アニメ曲線)  */
    /* ============================================================ */
    .organic-divider-wrap {
      position: absolute;
      top: -48px;
      left: 0;
      width: 100%;
      height: 50px;
      overflow: hidden;
      pointer-events: none;
      z-index: 10;
      line-height: 0;
    }
    @media (min-width: 768px) {
      .organic-divider-wrap {
        top: -78px;
        height: 80px;
      }
    }
    .organic-divider-svg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: block;
    }

    /* ============================================================ */
    /* 2. DEFINER STATEMENT (Electric Purple + White Typography)    */
    /* ============================================================ */
    .section-definer {
      position: relative;
      z-index: 5;
      padding: 8rem 2rem 8.5rem;
      background: #5b21b6;
      color: #ffffff;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    /* Definer Background Giant Typography */
    .definer-bg-watermark {
      position: absolute;
      top: 1.5rem;
      left: 1rem;
      right: 0;
      font-family: var(--font-display-serif);
      font-size: clamp(5.5rem, 15vw, 14rem);
      font-weight: 900;
      font-style: italic;
      line-height: 0.82;
      letter-spacing: -0.02em;
      color: rgba(255, 255, 255, 0.055);
      pointer-events: none;
      user-select: none;
      z-index: 1;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
    }
    @media (max-width: 768px) {
      .definer-bg-watermark {
        font-size: clamp(3.8rem, 18vw, 6.5rem);
        top: 2rem;
        left: 0.5rem;
      }
    }
    .swiss-container {
      max-width: 1200px;
      margin: 0 auto;
    }
    .swiss-masthead {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-bottom: 1rem;
      border-bottom: 2px solid rgba(255, 255, 255, 0.25);
      margin-bottom: 3.5rem;
      font-family: var(--font-mono);
      font-size: 0.82rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.8);
    }
    .swiss-masthead-item {
      display: flex;
      gap: 0.8rem;
      align-items: center;
    }
    .swiss-num {
      font-weight: 700;
      color: #f43f5e;
    }
    .swiss-editorial-grid {
      display: grid;
      grid-template-columns: 4.5fr 7.5fr;
      gap: 5rem;
      align-items: flex-start;
    }
    .swiss-media-column {
      position: sticky;
      top: 6rem;
    }
    .swiss-kicker {
      font-family: var(--font-mono);
      font-size: 0.8rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #34d399;
      margin-bottom: 0.6rem;
    }
    .swiss-main-heading {
      font-family: var(--font-display-serif);
      font-size: 4.2rem;
      font-weight: 900;
      letter-spacing: 0.02em;
      line-height: 0.95;
      margin: 0 0 0.5rem 0;
      color: var(--splash-yellow, #facc15);
    }
    .swiss-sub-heading {
      font-family: var(--font-serif-jp);
      font-size: 1.35rem;
      font-weight: 600;
      letter-spacing: 0.25em;
      color: #f43f5e;
      margin-bottom: 2.2rem;
    }
    .swiss-portrait-wrap {
      position: relative;
      background: #2e0854;
      border-radius: 6px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    }
    .swiss-portrait {
      width: 100%;
      height: auto;
      display: block;
      filter: contrast(1.04);
      transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .swiss-portrait-wrap:hover .swiss-portrait {
      transform: scale(1.02);
    }
    .swiss-caption-bar {
      padding: 0.75rem 1.2rem;
      background: rgba(255, 255, 255, 0.08);
      border-top: 1px solid rgba(255, 255, 255, 0.15);
      display: flex;
      justify-content: flex-end;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: rgba(255, 255, 255, 0.8);
      letter-spacing: 0.08em;
    }
    .swiss-text-column {
      padding-top: 0.5rem;
    }
    .swiss-body-flow {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3.2rem;
      align-items: start;
    }
    .swiss-para {
      font-family: var(--font-body);
      font-size: 0.98rem;
      line-height: 2.1;
      color: #f1f5f9;
      margin: 0 0 1.8rem 0;
      text-align: justify;
      word-break: break-word;
    }
    html[lang="en"] .swiss-para {
      text-align: left;
      word-break: normal;
      overflow-wrap: break-word;
    }
    .swiss-para-lead {
      font-size: 1.06rem;
      font-weight: 600;
      color: #ffffff;
      line-height: 2.0;
    }
    .swiss-para-conclusion {
      font-family: var(--font-serif-jp);
      font-size: 1.05rem;
      font-weight: 700;
      color: #ffffff;
      line-height: 2.0;
    }
    .swiss-signoff {
      margin-top: 2rem;
      font-family: var(--font-display-serif);
      font-size: 1.25rem;
      font-style: italic;
      font-weight: 600;
      color: #34d399;
      border-top: 1px solid rgba(255, 255, 255, 0.2);
      padding-top: 1.2rem;
    }

    /* ============================================================ */
    /* 3. SECTION: SELECTED WORKS (Pop Emerald Green + White Text) */
    /* ============================================================ */
    .section-portfolio {
      position: relative;
      z-index: 6;
      padding: 8rem 0 9rem;
      background: #047857;
      color: #ffffff;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .portfolio-header-area {
      max-width: 1400px;
      margin: 0 auto 3rem;
      padding: 0 2rem;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .heading-en {
      font-family: var(--font-display-serif);
      font-size: 3.6rem;
      font-weight: 800;
      letter-spacing: 0.015em;
      line-height: 1.05;
      font-optical-sizing: auto;
      margin: 0;
      color: var(--splash-yellow, #facc15);
    }
    .heading-desc {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.8);
      margin-top: 0.5rem;
    }
    .view-all-link {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: #ffffff;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      font-weight: 600;
      text-decoration: none !important;
      border-bottom: 2px solid #f43f5e;
      padding-bottom: 0.3rem;
      transition: all 0.25s ease;
    }
    .view-all-link:hover {
      color: #34d399;
      border-color: #34d399;
      text-decoration: none !important;
      transform: translateX(6px);
    }
    .portfolio-tile-grid {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      width: 100vw;
      margin-left: calc(-50vw + 50%);
      margin-right: calc(-50vw + 50%);
      gap: 3px;
      background: transparent;
      padding-bottom: 1.5rem;
    }
    .portfolio-tile {
      position: relative;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: #000;
      display: block;
      text-decoration: none;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.12);
    }
    .tile-media {
      width: 100%;
      height: 100%;
      position: absolute;
      inset: 0;
    }
    .tile-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
    }
    .portfolio-tile:hover .tile-img {
      transform: scale(1.15) rotate(0.5deg);
      filter: brightness(0.6) blur(2px);
    }
    .tile-default-badge {
      position: absolute;
      bottom: 0.8rem;
      left: 0.8rem;
      z-index: 2;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(8px);
      padding: 0.2rem 0.6rem;
      border-radius: 4px;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
      transition: opacity 0.3s ease;
    }
    .portfolio-tile:hover .tile-default-badge {
      opacity: 0;
    }
    .tile-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      padding: 1.6rem;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      background: linear-gradient(to top, rgba(12, 14, 20, 0.96) 0%, rgba(12, 14, 20, 0.75) 60%, transparent 100%);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .portfolio-tile:hover .tile-overlay {
      opacity: 1;
      pointer-events: auto;
    }
    .tile-overlay-content {
      transform: translateY(16px);
      transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .portfolio-tile:hover .tile-overlay-content {
      transform: translateY(0);
    }
    .tile-meta-row {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.4rem;
    }
    .tile-year {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent-brass);
      font-weight: 700;
    }
    .tile-tag {
      font-family: var(--font-mono);
      font-size: 0.68rem;
      background: rgba(255, 255, 255, 0.2);
      padding: 0.15rem 0.45rem;
      border-radius: 3px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .tile-title {
      font-family: var(--font-serif-jp);
      font-size: 1.08rem;
      font-weight: 700;
      line-height: 1.35;
      margin: 0 0 0.5rem 0;
      color: #fff;
    }
    .tile-summary {
      font-size: 0.8rem;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.84);
      margin: 0 0 0.8rem 0;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .tile-view-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: var(--accent-brass);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
      transition: transform 0.2s ease;
    }
    .portfolio-tile:hover .tile-view-link {
      transform: translateX(3px);
    }
    .portfolio-bottom-action {
      max-width: 1400px;
      margin: 2.8rem auto 0;
      padding: 0 2rem;
      text-align: center;
    }

    /* ============================================================ */
    /* 4. PROFILE & MIND (Vivid Pop Magenta + White Typography)     */
    /* ============================================================ */
    .section-profile {
      position: relative;
      z-index: 7;
      padding: 8rem 2rem 9rem;
      background: #9d174d;
      color: #ffffff;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .editorial-two-col {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 4fr 8fr;
      gap: 5rem;
    }
    .profile-sidebar {
      position: sticky;
      top: 6rem;
      align-self: start;
    }
    .profile-big-title {
      font-family: var(--font-display-serif);
      font-size: 2.8rem;
      font-weight: 800;
      letter-spacing: 0.01em;
      margin: 0;
      color: var(--splash-yellow, #facc15);
    }
    .profile-en-sub {
      font-family: var(--font-mono);
      font-size: 0.88rem;
      text-transform: uppercase;
      color: #34d399;
      letter-spacing: 0.12em;
      margin-top: 0.3rem;
    }
    .profile-tagline {
      font-family: var(--font-body);
      font-size: 0.95rem;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.9);
      margin-top: 1.2rem;
      padding-top: 1.2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
    .profile-intro-text {
      font-size: 0.95rem;
      line-height: 1.9;
      color: #f8fafc;
      margin-top: 1.2rem;
      text-align: justify;
    }
    html[lang="en"] .profile-intro-text {
      text-align: left;
      word-break: normal;
      overflow-wrap: break-word;
    }
    .timeline-stream {
      position: relative;
      padding-left: 2rem;
      border-left: 2px solid rgba(255, 255, 255, 0.3);
    }
    .timeline-item {
      position: relative;
      margin-bottom: 3.5rem;
      transition: all 0.3s ease;
    }
    .timeline-item::before {
      content: '';
      position: absolute;
      left: -2.35rem;
      top: 0.35rem;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #34d399;
      border: 3px solid #ffffff;
      box-shadow: 0 0 0 2px #f43f5e, 0 0 10px rgba(52, 211, 153, 0.8);
      transition: all 0.3s ease;
    }
    .timeline-item:hover::before {
      background: #f43f5e;
      transform: scale(1.4);
      box-shadow: 0 0 15px rgba(244, 63, 94, 0.9);
    }
    .timeline-year {
      font-family: var(--font-mono);
      font-size: 0.88rem;
      font-weight: 800;
      color: #fde047;
      margin-bottom: 0.3rem;
    }
    .timeline-heading {
      font-family: var(--font-serif-jp);
      font-size: 1.35rem;
      font-weight: 700;
      margin: 0 0 0.8rem 0;
      color: #ffffff;
    }
    .timeline-desc {
      font-size: 0.95rem;
      line-height: 1.9;
      color: #f1f5f9;
    }

    /* ============================================================ */
    /* 5. SECTION: PROJECT & SUITE (Electric Royal Blue)            */
    /* ============================================================ */
    .section-project {
      position: relative;
      z-index: 8;
      padding: 8rem 2rem 9rem;
      background: #1d4ed8;
      color: #ffffff;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .project-inner {
      max-width: 1200px;
      margin: 0 auto;
    }
    .project-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      margin-bottom: 3.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      padding-bottom: 1.5rem;
    }
    .project-title-en {
      font-family: var(--font-display-serif);
      font-size: 3.2rem;
      font-weight: 800;
      letter-spacing: 0.015em;
      font-optical-sizing: auto;
      margin: 0;
      color: var(--splash-yellow, #facc15);
    }
    .project-card-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2.5rem;
      align-items: stretch;
    }
    .pj-card {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 12px;
      padding: 3.2rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
      backdrop-filter: blur(10px);
    }
    .pj-card:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: #38bdf8;
      transform: translateY(-10px) scale(1.02);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.35);
    }
    .pj-badge {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: #34d399;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      margin-bottom: 1rem;
      display: block;
      font-weight: 700;
    }
    .pj-name {
      font-family: var(--font-serif-jp);
      font-size: 1.7rem;
      font-weight: 700;
      margin: 0 0 1.2rem 0;
      color: #ffffff;
      word-break: keep-all;
    }
    .pj-desc {
      font-size: 0.95rem;
      line-height: 1.9;
      color: #e2e8f0;
      margin-bottom: 2.2rem;
      flex-grow: 1;
    }
    .pj-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: #38bdf8;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-weight: 700;
      transition: all 0.2s ease;
    }
    .pj-link:hover {
      color: #ffffff;
      transform: translateX(4px);
    }

    /* ============================================================ */
    /* 6. SECTION: ILLUSTRATION (Pop Electric Purple)               */
    /* ============================================================ */
    .section-illustration {
      position: relative;
      z-index: 9;
      padding: 8rem 2rem 9rem;
      background: #6d28d9;
      color: #ffffff;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .section-illustration .heading-en {
      color: var(--splash-yellow, #facc15);
    }
    .section-illustration .heading-jp {
      color: rgba(255, 255, 255, 0.8);
    }
    .section-illustration .view-all-link {
      color: #34d399;
      border-bottom: 2px solid #34d399;
      text-decoration: none !important;
    }
    .section-illustration .view-all-link:hover {
      color: #ffffff;
      border-color: #ffffff;
      text-decoration: none !important;
    }
    .ill-header {
      max-width: 1400px;
      margin: 0 auto 3rem;
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .ill-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 1.5rem;
      max-width: 1400px;
      margin: 0 auto;
    }
    .polaroid-card {
      background: #ffffff;
      padding: 0.75rem 0.75rem 1.25rem;
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
      border: 1px solid rgba(255, 255, 255, 0.3);
      border-radius: 4px;
      transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      text-decoration: none;
      color: #0f172a;
      display: flex;
      flex-direction: column;
      min-width: 0;
    }
    .polaroid-card:hover {
      transform: translateY(-12px) rotate(1.8deg) scale(1.04);
      box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45), 0 0 25px rgba(244, 63, 94, 0.4);
      border-color: #f43f5e;
    }
    .polaroid-img {
      width: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
      display: block;
      background: #eee;
      border-radius: 2px;
      transition: transform 0.4s ease;
    }
    .polaroid-card:hover .polaroid-img {
      transform: scale(1.02);
    }
    .polaroid-title {
      font-family: var(--font-serif-jp);
      font-size: 0.88rem;
      font-weight: 700;
      margin: 0.8rem 0 0.2rem 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #0f172a;
    }
    .polaroid-year {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      color: #64748b;
    }

    /* ============================================================ */
    /* 7. SECTION: DAILY THOUGHTS & PAPERS (Pop Ocean Teal)         */
    /* ============================================================ */
    .section-newsstand {
      position: relative;
      z-index: 10;
      padding: 8rem 2rem 9rem;
      background: #0e7490;
      color: #ffffff;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .newsstand-inner {
      max-width: 1400px;
      margin: 0 auto;
    }
    .newsstand-main-header {
      margin-bottom: 3rem;
    }
    .newsstand-main-title {
      font-family: var(--font-display-serif);
      font-size: 3.2rem;
      font-weight: 800;
      letter-spacing: 0.015em;
      font-optical-sizing: auto;
      margin: 0;
      color: var(--splash-yellow, #facc15);
    }
    .newsstand-main-desc {
      font-family: var(--font-mono);
      font-size: 0.85rem;
      color: #94a3b8;
      margin-top: 0.4rem;
    }
    .newsstand-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 2rem;
    }
    .news-column {
      display: flex;
      flex-direction: column;
    }
    .news-column-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      gap: 0.5rem;
      border-bottom: 2px solid rgba(255, 255, 255, 0.3);
      padding-bottom: 0.75rem;
      margin-bottom: 1.5rem;
    }
    .news-column-title {
      font-family: var(--font-display-serif);
      font-size: 1.22rem;
      font-weight: 700;
      letter-spacing: 0.01em;
      color: #ffffff;
      margin: 0;
      white-space: nowrap;
    }
    .news-column-more {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: #34d399;
      text-decoration: none;
      transition: color 0.2s;
      white-space: nowrap;
    }
    .news-column-more:hover {
      color: #ffffff;
      text-decoration: underline;
    }
    .news-card-list {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
    .news-card {
      display: flex;
      gap: 0.85rem;
      align-items: flex-start;
      padding-bottom: 1.25rem;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
      text-decoration: none;
      color: #ffffff;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .news-card:hover {
      transform: translateX(8px);
    }
    .news-card:hover .news-card-title {
      color: #38bdf8;
    }
    .news-card-thumb {
      flex: 0 0 90px;
      width: 90px;
      height: 60px;
      border-radius: 4px;
      overflow: hidden;
      background: #0f3d3b;
      border: 1px solid rgba(255, 255, 255, 0.15);
      position: relative;
    }
    .news-card-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .news-card:hover .news-card-thumb img {
      transform: scale(1.12);
    }
    .news-card-thumb-placeholder {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      color: #5eead4;
      background: linear-gradient(135deg, #134e4a 0%, #042f2e 100%);
    }
    .news-card-body {
      flex: 1;
      min-width: 0;
    }
    .news-card-date {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: #fb7185;
      font-weight: 700;
      margin-bottom: 0.25rem;
      letter-spacing: 0.04em;
    }
    .news-card-title {
      font-family: var(--font-body);
      font-size: 0.88rem;
      font-weight: 600;
      line-height: 1.45;
      margin: 0;
      color: #f1f5f9;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Newsstand Skeleton Loader & Dynamic Fade */
    .news-skeleton-card {
      display: flex;
      gap: 0.85rem;
      align-items: flex-start;
      padding-bottom: 1.25rem;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    }
    .news-skeleton-thumb {
      flex: 0 0 90px;
      width: 90px;
      height: 60px;
      border-radius: 4px;
      background: rgba(255, 255, 255, 0.08);
      animation: newsstandPulse 1.6s ease-in-out infinite;
    }
    .news-skeleton-body {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding-top: 0.2rem;
    }
    .news-skeleton-line {
      height: 11px;
      border-radius: 3px;
      background: rgba(255, 255, 255, 0.08);
      animation: newsstandPulse 1.6s ease-in-out infinite;
    }
    .news-skeleton-line.short { width: 35%; }
    .news-skeleton-line.long { width: 92%; }
    @keyframes newsstandPulse {
      0%, 100% { opacity: 0.25; }
      50% { opacity: 0.65; }
    }
    .news-card.fade-in-card {
      animation: newsstandFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes newsstandFadeIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ============================================================ */
    /* 8. SECTION: NEWSLETTER (Pop Vitamin Orange)                  */
    /* ============================================================ */
    .section-newsletter {
      position: relative;
      z-index: 11;
      padding: 8rem 2rem 9rem;
      background: #c2410c;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .newsletter-inner {
      max-width: 840px;
      margin: 0 auto;
    }
    .newsletter-card {
      background: rgba(15, 23, 42, 0.75);
      backdrop-filter: blur(16px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      padding: 3.5rem 3rem;
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    }
    .newsletter-header {
      text-align: center;
      margin-bottom: 2.2rem;
    }
    .newsletter-badge {
      display: inline-block;
      font-family: var(--font-mono);
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #34d399;
      background: rgba(52, 211, 153, 0.2);
      border: 1px solid rgba(52, 211, 153, 0.4);
      padding: 0.35rem 0.95rem;
      border-radius: 999px;
      margin-bottom: 0.8rem;
    }
    .newsletter-title {
      font-family: var(--font-display-serif);
      font-size: 2.4rem;
      font-weight: 800;
      letter-spacing: 0.015em;
      font-optical-sizing: auto;
      color: var(--splash-yellow, #facc15);
      margin: 0 0 0.8rem 0;
    }
    .newsletter-desc {
      font-size: 0.95rem;
      line-height: 1.85;
      color: #e2e8f0;
      margin: 0 auto;
      max-width: 620px;
    }
    .newsletter-form {
      max-width: 640px;
      margin: 0 auto;
    }
    .newsletter-row {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.2rem;
    }
    .newsletter-row.two-cols {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }
    .newsletter-row.action-row {
      display: flex;
      align-items: flex-end;
      gap: 1rem;
    }
    .newsletter-field {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .newsletter-label {
      font-family: var(--font-mono);
      font-size: 0.72rem;
      font-weight: 700;
      color: #cbd5e1;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.4rem;
    }
    .newsletter-input {
      width: 100%;
      padding: 0.85rem 1.1rem;
      border: 1px solid rgba(255, 255, 255, 0.25);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.08);
      font-family: var(--font-body);
      font-size: 0.92rem;
      color: #ffffff;
      transition: all 0.2s ease;
    }
    .newsletter-input:focus {
      outline: none;
      border-color: #34d399;
      box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.3);
      background: rgba(255, 255, 255, 0.15);
    }
    .newsletter-submit-btn {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.85rem 1.8rem;
      background: #10b981;
      color: #ffffff;
      border: none;
      border-radius: 6px;
      font-family: var(--font-display-sans);
      font-size: 0.92rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      cursor: pointer;
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      height: 48px;
    }
    .newsletter-submit-btn:hover {
      background: #059669;
      color: #ffffff;
      transform: translateY(-2px) scale(1.02);
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    }

    /* ============================================================ */
    /* 9. SECTION: INQUIRY (Midnight Slate Slanted)                 */
    /* ============================================================ */
    .section-contact {
      position: relative;
      z-index: 12;
      padding: 8rem 2rem 8.5rem;
      background: #0f172a;
      margin-top: 0;
      margin-bottom: 0;
      outline: 1px solid transparent;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
    }
    .contact-inner {
      max-width: 640px;
      margin: 0 auto;
      text-align: center;
    }
    .contact-heading {
      font-family: var(--font-display-serif);
      font-size: 3.2rem;
      font-weight: 800;
      letter-spacing: 0.015em;
      font-optical-sizing: auto;
      margin: 0 0 0.8rem 0;
      color: var(--splash-yellow, #facc15);
    }
    .contact-sub {
      font-size: 0.95rem;
      line-height: 1.8;
      color: #94a3b8;
      margin-bottom: 3rem;
    }
    .contact-form {
      text-align: left;
    }
    .form-group {
      margin-bottom: 1.6rem;
    }
    .form-label {
      display: block;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      font-weight: 700;
      color: #cbd5e1;
      margin-bottom: 0.5rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .form-control {
      width: 100%;
      padding: 0.9rem 1.1rem;
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.07);
      font-family: var(--font-body);
      font-size: 0.95rem;
      color: #ffffff;
      transition: all 0.2s ease;
    }
    .form-control:focus {
      outline: none;
      border-color: #f43f5e;
      box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
      background: rgba(255, 255, 255, 0.12);
    }
    .form-control option {
      background-color: #0f172a;
      color: #ffffff;
    }
    .submit-btn {
      display: block;
      width: 100%;
      padding: 1.1rem;
      background: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #8b5cf6 100%);
      color: #ffffff;
      border: none;
      border-radius: 6px;
      font-family: var(--font-display-sans);
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(244, 63, 94, 0.4);
      transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .submit-btn:hover {
      background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #a855f7 100%);
      color: #ffffff;
      transform: translateY(-2px) scale(1.01);
      box-shadow: 0 15px 35px rgba(244, 63, 94, 0.6);
    }

    /* Footer */
    .site-footer {
      position: relative;
      z-index: 13;
      padding: 3.5rem 2rem;
      background: #020617;
      color: #94a3b8;
      text-align: center;
      font-family: var(--font-mono);
      font-size: 0.8rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Responsive */
    /* ============================================================ */
    /* SCROLL REVEAL MICRO-ANIMATIONS (エレメント出現マイクロアニメ)   */
    /* ============================================================ */
    /* 波形ディバイダーおよびセクション外枠はアニメーションから完全除外（常時固定表示） */
    section.reveal,
    .organic-divider-wrap,
    .organic-divider-svg,
    .organic-divider-path {
      opacity: 1 !important;
      transform: none !important;
      transition: none !important;
      will-change: auto !important;
    }

    .reveal:not(section),
    .micro-reveal,
    .swiss-main-heading,
    .heading-en,
    .profile-big-title,
    .project-title-en,
    .newsstand-main-title,
    .newsletter-title,
    .contact-heading,
    .swiss-portrait-wrap,
    .swiss-body-flow > div,
    .pj-card,
    .news-column,
    .newsletter-card,
    .contact-inner {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }

    .reveal:not(section).is-in,
    .micro-reveal.is-in,
    .swiss-main-heading.is-in,
    .heading-en.is-in,
    .profile-big-title.is-in,
    .project-title-en.is-in,
    .newsstand-main-title.is-in,
    .newsletter-title.is-in,
    .contact-heading.is-in,
    .swiss-portrait-wrap.is-in,
    .swiss-body-flow > div.is-in,
    .pj-card.is-in,
    .news-column.is-in,
    .newsletter-card.is-in,
    .contact-inner.is-in {
      opacity: 1;
      transform: translateY(0);
    }

    /* Works: タイルの出現マイクロアニメ */
    .portfolio-tile {
      opacity: 0;
      transform: translateY(32px) scale(0.98);
      transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .portfolio-tile.is-in {
      opacity: 1;
      transform: translateY(0) scale(1);
    }

    /* Illustration: ポラロイドカードの出現マイクロアニメ */
    .polaroid-card {
      opacity: 0;
      transform: translateY(36px) scale(0.96);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.4s ease, border-color 0.4s ease;
      will-change: opacity, transform;
    }
    .polaroid-card.is-in {
      opacity: 1;
      transform: translateY(0) rotate(0deg) scale(1);
    }

    /* Profile: タイムラインの出現マイクロアニメ */
    .timeline-item {
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      will-change: opacity, transform;
    }
    .timeline-item.is-in {
      opacity: 1;
      transform: translateX(0);
    }
    .timeline-item::before {
      transform: scale(0);
      transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    }
    .timeline-item.is-in::before {
      transform: scale(1);
    }

    /* ============================================================ */
    /* INTENTIONAL ASYMMETRICAL LAYOUT SHIFT (PC画面用エディトリアル段差) */
    /* ============================================================ */
    @media (min-width: 1025px) {
      /* 1. About: 右列（第2カラム）のエディトリアル段落落とし */
      .swiss-body-flow > div:nth-child(2) {
        margin-top: 3.2rem;
      }

      /* 2. Works: 偶数列タイルのスタッガー千鳥配置 */
      .portfolio-tile:nth-child(5n+2).is-in,
      .portfolio-tile:nth-child(5n+4).is-in {
        transform: translateY(22px) scale(1);
      }
      .portfolio-tile:nth-child(5n+2):hover,
      .portfolio-tile:nth-child(5n+4):hover {
        transform: translateY(14px) scale(1);
      }

      /* 3. Projects: 2枚目カードのエディトリアル高低差シフト */
      .project-card-grid {
        align-items: start;
      }
      .project-card-grid .pj-card:nth-child(2) {
        margin-top: 4.2rem;
      }

      /* 4. Illustration: ポラロイド写真の有機的散乱シフト */
      .ill-grid {
        padding-top: 1.5rem;
        padding-bottom: 2.5rem;
      }
      .polaroid-card:nth-child(1).is-in  { transform: translateY(-6px) rotate(-1.4deg) scale(1); }
      .polaroid-card:nth-child(2).is-in  { transform: translateY(20px) rotate(1.6deg) scale(1); }
      .polaroid-card:nth-child(3).is-in  { transform: translateY(-12px) rotate(0.8deg) scale(1); }
      .polaroid-card:nth-child(4).is-in  { transform: translateY(24px) rotate(-1.8deg) scale(1); }
      .polaroid-card:nth-child(5).is-in  { transform: translateY(-4px) rotate(1.2deg) scale(1); }
      .polaroid-card:nth-child(6).is-in  { transform: translateY(18px) rotate(-1.5deg) scale(1); }
      .polaroid-card:nth-child(7).is-in  { transform: translateY(-10px) rotate(1.9deg) scale(1); }
      .polaroid-card:nth-child(8).is-in  { transform: translateY(22px) rotate(-1.1deg) scale(1); }
      .polaroid-card:nth-child(9).is-in  { transform: translateY(-8px) rotate(1.5deg) scale(1); }
      .polaroid-card:nth-child(10).is-in { transform: translateY(26px) rotate(-1.7deg) scale(1); }

      .polaroid-card:hover {
        transform: translateY(-14px) rotate(0deg) scale(1.05) !important;
        z-index: 10;
      }

      /* 6. Newsstand: 偶数列カラムのスタッガー高低差シフト */
      .newsstand-grid {
        align-items: start;
      }
      .news-column:nth-child(2),
      .news-column:nth-child(4) {
        margin-top: 3.2rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal,
      .micro-reveal,
      .portfolio-tile,
      .polaroid-card,
      .pj-card,
      .news-column,
      .timeline-item,
      .swiss-portrait-wrap,
      .swiss-body-flow > div,
      .heading-en,
      .swiss-main-heading,
      .profile-big-title,
      .project-title-en,
      .newsstand-main-title,
      .newsletter-title,
      .contact-heading,
      .newsletter-card,
      .contact-inner {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
    }

    @media (max-width: 1024px) {
      .swiss-editorial-grid { grid-template-columns: 1fr; gap: 3rem; }
      .swiss-media-column { position: static; }
      .portfolio-tile-grid { grid-template-columns: repeat(3, 1fr); }
      .ill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
      .newsstand-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
      .editorial-two-col { grid-template-columns: 1fr; gap: 3rem; }
      .profile-sidebar { position: static; }
    }
    @media (max-width: 768px) {
      .knav-menu { display: none; }
      .swiss-body-flow { grid-template-columns: 1fr; gap: 1.5rem; }
      .portfolio-tile-grid { grid-template-columns: repeat(2, 1fr); }
      .section-illustration { padding-left: 1.25rem; padding-right: 1.25rem; }
      .ill-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 2rem;
      }
      .ill-header .heading-en {
        font-size: 2.5rem;
        line-height: 1.05;
      }
      .ill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
      }
      .polaroid-card {
        padding: 0.5rem 0.5rem 0.8rem;
      }
      .polaroid-title {
        font-size: 0.82rem;
        margin: 0.5rem 0 0.15rem 0;
      }
      .polaroid-year {
        font-size: 0.68rem;
      }
      .section-newsstand { padding-left: 1.25rem; padding-right: 1.25rem; }
      .newsstand-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .project-card-grid { grid-template-columns: 1fr; }
      .swiss-main-heading { font-size: 3rem; }
      .heading-en { font-size: 2.5rem; }
      .newsletter-card { padding: 2.5rem 1.5rem; }
      .newsletter-row.two-cols { grid-template-columns: 1fr; }
      .newsletter-row.action-row { flex-direction: column; align-items: stretch; }
      .newsletter-submit-btn { width: 100%; }
      :root { --slant-offset: 4.5vw; }
    }
  
/* ==========================================================================
   Vibrant Full-Page Immersion Subpages (内部ページ完全濃色・高コントラスト統一)
   ========================================================================== */

/* 1. Projects (Vibrant Blue × Sunny Yellow) */
.page-projects-theme {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
  min-height: 100vh;
}
.page-projects-theme .page-title,
.page-projects-theme h1 {
  color: #fef08a !important; /* Sunny Yellow */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.page-projects-theme .page-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}
.page-projects-theme .project-card {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(12px);
}
.page-projects-theme .project-card:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #fef08a !important;
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(254, 240, 138, 0.3);
}
.page-projects-theme .project-name {
  color: #ffffff !important;
}
.page-projects-theme .project-tag {
  color: #fef08a !important;
}
.page-projects-theme .project-desc {
  color: rgba(255, 255, 255, 0.88) !important;
}
.page-projects-theme .project-link {
  color: #fef08a !important;
}

/* 2. Illustration (Electric Purple × Vibrant Lime Green) */
.page-illustration-theme {
  background-color: #6d28d9 !important;
  color: #ffffff !important;
  min-height: 100vh;
}
.page-illustration-theme .gallery-title,
.page-illustration-theme .page-title,
.page-illustration-theme h1 {
  color: #4ade80 !important; /* Vibrant Lime Green */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.page-illustration-theme .gallery-subtitle,
.page-illustration-theme .page-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}
.page-illustration-theme .tag-badge {
  background: rgba(74, 222, 128, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #4ade80 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.page-illustration-theme .tag-badge:hover {
  background: #4ade80 !important;
  color: #111827 !important;
  border-color: #4ade80 !important;
}
.page-illustration-theme .art-frame {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(74, 222, 128, 0.15) !important;
}

/* 3. Works / Portfolio (Emerald Green × Warm Gold Yellow) */
.page-portfolio-theme {
  background-color: #047857 !important;
  color: #ffffff !important;
  min-height: 100vh;
}
.page-portfolio-theme .page-title,
.page-portfolio-theme h1 {
  color: #fbbf24 !important; /* Warm Gold Yellow */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.page-portfolio-theme .page-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}
.page-portfolio-theme .tag-badge {
  background: rgba(251, 191, 36, 0.2) !important;
  border-color: rgba(251, 191, 36, 0.45) !important;
  color: #fbbf24 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.page-portfolio-theme .tag-badge:hover {
  background: #fbbf24 !important;
  color: #111827 !important;
  border-color: #fbbf24 !important;
}

/* 4. Newsletter (Tangerine Orange × Electric Cyan) */
.page-newsletter-theme {
  background-color: #c2410c !important;
  color: #ffffff !important;
  min-height: 100vh;
}
.page-newsletter-theme .page-title,
.page-newsletter-theme h1 {
  color: #67e8f9 !important; /* Electric Cyan */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.page-newsletter-theme .page-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* 5. Inquiry (Midnight Slate × Electric Neon Yellow) */
.page-inquiry-theme {
  background-color: #0f172a !important;
  color: #ffffff !important;
  min-height: 100vh;
}
.page-inquiry-theme .page-title,
.page-inquiry-theme h1 {
  color: #facc15 !important; /* Neon Yellow */
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.page-inquiry-theme .page-desc {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* ==========================================================================
   Two-Tone Organic Wave Subpage System (全幅の波でタイトルとコンテンツを切り替える)
   ========================================================================== */
.subpage-two-tone {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow-x: hidden;
}

.subpage-top-banner {
  padding: 8.5rem 4vw 7.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .subpage-top-banner {
    padding: 7rem 4vw 6rem;
  }
}

.subpage-top-banner .page-title {
  font-family: 'Bodoni Moda', 'Playfair Display', 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.015em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.subpage-top-banner:has(.portfolio-tags-bar) .page-title,
.subpage-top-banner:has(.gallery-tags-bar) .page-title {
  margin-bottom: 1.5rem;
}

.subpage-top-banner .page-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 500;
}

.subpage-bottom-content {
  position: relative;
  padding: 5rem 4vw 9rem;
  z-index: 3;
}

/* Organic Wave Divider sitting on top edge of bottom-content */
.subpage-bottom-content .organic-divider-wrap {
  position: absolute !important;
  top: -55px !important;
  bottom: auto !important;
  left: 0 !important;
  width: 100% !important;
  height: 60px !important;
  overflow: hidden !important;
  pointer-events: none;
  z-index: 5;
  line-height: 0;
}

@media (min-width: 768px) {
  .subpage-bottom-content .organic-divider-wrap {
    top: -75px !important;
    height: 80px !important;
  }
}

.subpage-bottom-content .organic-divider-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.subpage-content-inner {
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 4;
}

/* --- THEME 1: Projects (Blue × Yellow) --- */
[data-page-theme="project"] .subpage-top-banner {
  background-color: #1d4ed8; /* Blue */
}
[data-page-theme="project"] .subpage-bottom-content {
  background-color: #facc15; /* Sunny Yellow */
  --bottom-bg: #facc15;
}
[data-page-theme="project"] .subpage-bottom-content .pj-card,
[data-page-theme="project"] .subpage-bottom-content .project-card {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
  color: #111827 !important;
}
[data-page-theme="project"] .project-name {
  color: #111827 !important;
}
[data-page-theme="project"] .project-desc {
  color: #4b5563 !important;
}
[data-page-theme="project"] .project-tag {
  color: #1d4ed8 !important;
}
[data-page-theme="project"] .project-link {
  color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* --- THEME 2: Illustration (Purple × Green) --- */
[data-page-theme="illustration"] .subpage-top-banner {
  background-color: #6d28d9; /* Purple */
}
[data-page-theme="illustration"] .subpage-bottom-content {
  background-color: #10b981; /* Fresh Emerald/Lime Green */
  --bottom-bg: #10b981;
}
[data-page-theme="illustration"] .subpage-top-banner .tag-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
[data-page-theme="illustration"] .subpage-top-banner .tag-badge:hover {
  background: #ffffff !important;
  color: #6d28d9 !important;
  border-color: #ffffff !important;
}

/* --- THEME 3: Works / Portfolio (Deep Green × Warm Gold/Orange) --- */
[data-page-theme="works"] .subpage-top-banner {
  background-color: #047857; /* Deep Emerald Green */
}
[data-page-theme="works"] .subpage-bottom-content {
  background-color: #f59e0b; /* Warm Gold */
  --bottom-bg: #f59e0b;
}
[data-page-theme="works"] .subpage-top-banner .tag-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}
[data-page-theme="works"] .subpage-top-banner .tag-badge:hover {
  background: #ffffff !important;
  color: #047857 !important;
  border-color: #ffffff !important;
}

/* --- THEME 4: Newsletter (Tangerine Orange × Cobalt Blue) --- */
[data-page-theme="newsletter"] .subpage-top-banner {
  background-color: #c2410c; /* Tangerine Orange */
}
[data-page-theme="newsletter"] .subpage-bottom-content {
  background-color: #1e3a8a; /* Cobalt Blue */
  --bottom-bg: #1e3a8a;
}
[data-page-theme="newsletter"] .newsletter-card {
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}

/* --- THEME 5: Inquiry (Midnight Slate × Electric Purple) --- */
[data-page-theme="contact"] .subpage-top-banner {
  background-color: #0f172a; /* Midnight Slate */
}
[data-page-theme="contact"] .subpage-bottom-content {
  background-color: #6d28d9; /* Electric Purple */
  --bottom-bg: #6d28d9;
}
[data-page-theme="contact"] .form-card {
  background: #ffffff !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2) !important;
}

/* --- THEME 6: Prototyping (Sunshine Yellow × Royal Blue) --- */
[data-page-theme="prototyping"] .subpage-top-banner {
  background-color: #f59e0b; /* Sunshine Yellow */
}
[data-page-theme="prototyping"] .subpage-top-banner .page-title {
  color: #111827 !important;
}
[data-page-theme="prototyping"] .subpage-top-banner .page-desc {
  color: #374151 !important;
}
[data-page-theme="prototyping"] .subpage-top-banner .hero-meta {
  color: #1e3a8a !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em;
  margin-top: 0.8rem;
}
[data-page-theme="prototyping"] .subpage-bottom-content {

  background-color: #1d4ed8; /* Royal Blue */
  --bottom-bg: #1d4ed8;
}

/* Organic Divider SVG fill override */
.subpage-bottom-content .organic-divider-path {
  fill: var(--bottom-bg) !important;
}

/* Contrast adjustments for Illustration cards on Green */
[data-page-theme="illustration"] .placard-title {
  color: #ffffff !important;
}
[data-page-theme="illustration"] .placard-title a {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
[data-page-theme="illustration"] .placard-year {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Contrast adjustments for Prototyping cards on Royal Blue */
[data-page-theme="prototyping"] .proto-card {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2) !important;
}
[data-page-theme="prototyping"] .proto-title {
  color: #111827 !important;
}
[data-page-theme="prototyping"] .proto-desc {
  color: #4b5563 !important;
}
[data-page-theme="prototyping"] .proto-tag {
  color: #1d4ed8 !important;
}
[data-page-theme="prototyping"] .proto-action {
  color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

/* --- THEME 7: Profile (Deep Crimson × Electric Cyan) --- */
[data-page-theme="profile"] .subpage-top-banner {
  background-color: #9f1239; /* Deep Ruby / Crimson */
}
[data-page-theme="profile"] .subpage-bottom-content {
  background-color: #0891b2; /* Electric Deep Cyan / Turquoise */
  --bottom-bg: #0891b2;
  padding: 4rem 0 8rem;
}
[data-page-theme="profile"] .codex-panorama-wrapper {
  background: transparent !important;
  border: none !important;
  width: 100%;
  margin: 0;
}
[data-page-theme="profile"] .codex-hud-bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
}
[data-page-theme="profile"] .hud-title {
  color: #ffffff !important;
  letter-spacing: 0.2em;
}
[data-page-theme="profile"] .hud-hint {
  color: rgba(255, 255, 255, 0.8) !important;
}
[data-page-theme="profile"] .hud-pin-dot {
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4) !important;
}
[data-page-theme="profile"] .pin-year {
  color: #ffffff !important;
}
[data-page-theme="profile"] .drafting-baseline-guide {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5), #ffffff, rgba(255, 255, 255, 0.5)) !important;
}
[data-page-theme="profile"] .station-card {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18) !important;
}
[data-page-theme="profile"] .node-sheet {
  background: #ffffff !important;
  border: none !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15) !important;
}
[data-page-theme="profile"] .progress-track {
  background: rgba(255, 255, 255, 0.25) !important;
}
[data-page-theme="profile"] .progress-fill {
  background: #ffffff !important;
}
[data-page-theme="profile"] .progress-year-labels {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* --- THEME 8: Services (Deep Indigo × Vibrant Coral Rose) --- */
[data-page-theme="services"] .subpage-top-banner {
  background-color: #1e1b4b; /* Deep Indigo / Midnight Plum */
}
[data-page-theme="services"] .subpage-bottom-content {
  background-color: #f43f5e; /* Vibrant Coral Rose */
  --bottom-bg: #f43f5e;
}

/* Services Container & Grid */
.services-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Star Constellation Layout (5 Crafts × AI Star Diagram) */
.star-constellation-wrap {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 1rem auto 4.5rem;
  padding: 1rem;
}

.star-stage {
  position: relative;
  width: 100%;
  padding-bottom: 86%; /* Proportional Aspect Ratio */
  max-width: 800px;
  margin: 0 auto;
}

.star-geometry-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.star-pentagon-line,
.star-pentagram-line {
  fill: none;
  stroke: #fde047; /* Bright Star Gold */
  stroke-width: 2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.45));
}

.star-pentagram-line {
  fill: rgba(253, 224, 71, 0.04);
}

/* Center Hub: "× AI" Core Flat Badge (Clickable) */
.star-center-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #fde047;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  z-index: 10;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.star-center-core:hover {
  transform: translate(-50%, -54%) scale(1.05);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  border-color: #facc15;
}
.star-center-core .core-formula {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #0f766e;
  line-height: 1;
  letter-spacing: -0.01em;
}
.star-center-core .core-sub {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #64748b;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

/* 5 Star Nodes */
.star-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  text-align: center;
  text-decoration: none;
  color: #111827;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  z-index: 5;
  min-width: 165px;
  border: 2px solid transparent;
}
.star-node:hover {
  transform: translate(-50%, -54%) scale(1.04);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3);
  border-color: #fde047;
}
.star-node-num {
  font-family: 'Bodoni Moda', serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f766e;
  letter-spacing: 0.1em;
  margin-bottom: 0.15rem;
}
.star-node-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.15rem;
  white-space: nowrap;
}
.star-node-sub {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 600;
  white-space: nowrap;
}

/* Absolute Percentages for 5 tips of the 5-point star */
.star-node-0 { top: 9%; left: 50%; }
.star-node-1 { top: 35%; left: 88%; }
.star-node-2 { top: 79%; left: 74%; }
.star-node-3 { top: 79%; left: 26%; }
.star-node-4 { top: 35%; left: 12%; }

/* Mobile responsiveness */
@media (max-width: 768px) {
  .star-constellation-wrap {
    padding: 0;
    margin-bottom: 3rem;
  }
  .star-stage {
    padding-bottom: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .star-geometry-svg {
    display: none;
  }
  .star-center-core {
    position: static;
    transform: none;
    margin-bottom: 1rem;
  }
  .star-node {
    position: static;
    transform: none !important;
    width: 100%;
    max-width: 320px;
  }
}

.services-intro-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
  text-align: center;
}
.services-intro-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #0f766e;
  background: rgba(15, 118, 110, 0.08);
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.services-intro-heading {
  font-family: 'Noto Serif JP', 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 1.25rem;
}
.services-intro-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4b5563;
  max-width: 800px;
  margin: 0 auto;
}

/* 5 Services Cards Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}
.service-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
}
.service-card-num {
  font-family: 'Bodoni Moda', 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #0f766e;
  line-height: 1;
  margin-bottom: 1rem;
}
.service-card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.5rem;
}
.service-card-en {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.service-card-tagline {
  font-size: 1rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 1rem;
  line-height: 1.5;
}
.service-card-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.service-card-items {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px dashed #e5e7eb;
  padding-top: 1rem;
}
.service-card-items li {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.service-card-items li::before {
  content: "•";
  color: #f43f5e;
  font-weight: bold;
}

/* Integrated "X AI" Highlight Section */
.services-x-ai-box,
.x-ai-section {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 3.5rem 3rem;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
  margin-bottom: 4rem;
}
.x-ai-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.x-ai-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  background: #f43f5e;
  color: #ffffff;
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.x-ai-title {
  font-family: 'Noto Serif JP', 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.4;
  margin: 0 0 1rem;
}
.x-ai-subtitle {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.8;
  max-width: 820px;
  margin: 0 auto;
}

.x-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.x-ai-card {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2rem;
  border-left: 4px solid #0f766e;
}
.x-ai-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.x-ai-card-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #4b5563;
  margin: 0;
}

/* Process & CTA Section */
.services-cta-box {
  background: #111827;
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}
.services-cta-title {
  font-family: 'Noto Serif JP', 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.services-cta-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f43f5e;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 2.25rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}
.services-cta-btn:hover {
  background: #e11d48;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.45);
}


