/*
Theme Name: INET-DESIGN Original Theme
Theme URI: https://example.com/
Author: OpenAI
Description: Custom WordPress theme converted from the uploaded INET-DESIGN portfolio HTML/CSS. Designed for a limited-access portfolio with works archive, about page, and detail pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: inet-design
*/


:root {
  --text: #666666;
  --bg-1: rgba(255, 232, 241, 0.9);
  --bg-2: rgba(255, 246, 204, 0.9);
  --bg-3: rgba(255, 221, 236, 0.78);
  --bg-4: rgba(255, 239, 179, 0.78);
  --white: rgba(255, 255, 255, 0.76);
  --white-soft: rgba(255, 255, 255, 0.56);
  --border: rgba(255, 255, 255, 0.42);
  --line: rgba(102, 102, 102, 0.12);
  --shadow: 0 14px 40px rgba(188, 153, 114, 0.1);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 0.45s ease;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(135deg, #fff8fb 0%, #fffdf4 100%);
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.9s ease forwards;
}
body.page-leave {
  opacity: 0 !important;
  transition: opacity 0.22s ease;
}
body.modal-open { overflow: hidden; }
body::before,
body::after {
  content: "";
  position: fixed;
  width: 55vw;
  height: 55vw;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -2;
  opacity: 0.9;
  animation: floatWash 18s ease-in-out infinite alternate;
}
body::before {
  top: -12vw;
  left: -8vw;
  background: radial-gradient(circle at 30% 30%, var(--bg-1), transparent 65%), radial-gradient(circle at 70% 60%, var(--bg-2), transparent 72%);
}
body::after {
  right: -10vw;
  bottom: -14vw;
  background: radial-gradient(circle at 45% 35%, var(--bg-3), transparent 62%), radial-gradient(circle at 70% 70%, var(--bg-4), transparent 70%);
  animation-duration: 22s;
}
.site-watercolor {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 221, 236, 0.7), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(255, 245, 196, 0.74), transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(255, 227, 240, 0.65), transparent 30%),
    radial-gradient(circle at 20% 75%, rgba(255, 240, 179, 0.65), transparent 25%),
    linear-gradient(135deg, #fff9fc 0%, #fffef7 100%);
  animation: watercolorShift 20s ease-in-out infinite alternate;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
.page-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 72px;
  position: relative;
  z-index: 1;
}
.page-top-tight { padding-top: 6px; }
.glass {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  margin: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  padding: 16px 4px 14px;
  margin: 0 auto;
}
.subtle-nav {
  box-shadow: none;
  background: transparent;
  backdrop-filter: blur(20px);
}
.logo {
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  letter-spacing: 0.24em;
  font-weight: 300;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-links a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  position: relative;
  opacity: 0.92;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }
.page-word {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  font-size: clamp(4.8rem, 18vw, 13rem);
  line-height: 0.8;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.68);
  font-weight: 300;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.works-page, .detail-page { padding-top: clamp(88px, 14vw, 240px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 48px 0 48px;
}
.works-head-centered,
.filter-bar-centered { justify-content: center; }
.section-title,
.detail-heading,
.profile-name {
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1.35;
}
.section-title { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-button,
.more-button,
.primary-button,
.back-button {
  border: 1px solid rgba(102, 102, 102, 0.16);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
}
.filter-button:hover,
.more-button:hover,
.primary-button:hover,
.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(188, 153, 114, 0.14);
}
.filter-button.active { background: #EEEEEE; }
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.animate-grid.fade-switch { animation: fadeContent 0.45s ease; }
.work-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), opacity 0.35s ease;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(188, 153, 114, 0.16);
}
.work-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(255, 237, 244, 0.92), rgba(255, 248, 214, 0.92));
  overflow: hidden;
}
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-body { padding: 18px; }
.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  opacity: 0.50;
  margin-bottom: 8px;
}
.work-title { font-size: 1rem; line-height: 1.6; margin: 0; }
.more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.more-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.button-label { font-size: 0.9rem; }
.button-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
}
.hidden-card { display: none !important; }
.footer {
  margin-top: 54px;
  padding: 12px 0 0;
  text-align: center;
  font-size: 0.9rem;
}
.subtle-footer {
  background: transparent;
}
.enter-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px 20px;
}
.enter-card {
  width: min(720px, 100%);
  border-radius: 36px;
  padding: clamp(28px, 6vw, 56px);
}
.enter-logo {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.32em;
  margin: 0 0 22px;
  text-align: center;
}
.notice {
  background: rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  padding: 18px 20px;
  line-height: 1.9;
  margin-bottom: 24px;
}
.password-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.password-input {
  min-width: 0;
  border: 1px solid rgba(102, 102, 102, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 16px;
  border-radius: 16px;
}
.error-text {
  color: #b66f7e;
  font-size: 0.92rem;
  min-height: 1.4em;
  margin-top: 10px;
}
.detail-layout,
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.detail-stack { max-width: 100%; }
.detail-panel,
.about-card,
.profile-card {
  border-radius: 30px;
  padding: clamp(20px, 4vw, 30px);
}
.about-card,
.profile-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding-left: 0;
  padding-right: 0;
}
.slider { position: relative; }
.slider-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
}
.clickable-frame { cursor: zoom-in; }
.slide { display: none; width: 100%; height: 100%; }
.slide.active { display: block; animation: fadeContent 0.5s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.arrow-button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.dots { display: flex; gap: 8px; flex: 1; justify-content: center; }
.dot {
  width: 10px;
  height: 10px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: rgba(102, 102, 102, 0.22);
  cursor: pointer;
}
.dot.active { background: rgba(102, 102, 102, 0.7); }
.info-list { display: grid; gap: 14px; }
.info-item { padding-bottom: 14px; border-bottom: 1px solid rgba(102, 102, 102, 0.12); }
.info-item:last-child { border-bottom: 0; padding-bottom: 0; }
.info-label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  margin-bottom: 7px;
  opacity: 0.60;
}
.profile-card { text-align: center; }
.profile-icon {
  width: 170px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 18px;
  box-shadow: 0 12px 30px rgba(188, 153, 114, 0.18);
}
.profile-name { font-size: 1.3rem; }
.profile-name small {
  display: block;
  font-size: 0.92rem;
  opacity: 0.85;
  margin-top: 4px;
}
.stack { display: grid; gap: 18px; }
.about-top-tight { margin-top: 18px; }
.about-section h2 {
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.about-section p,
.about-section li,
.about-section td,
.about-section th { line-height: 1.95; }
.about-section ul { margin: 0; padding-left: 1.2em; }
.career-table {
  width: 100%;
  border-collapse: collapse;
}
.career-table th,
.career-table td {
  padding: 14px 0;
  vertical-align: top;
  border-bottom: 1px solid rgba(102, 102, 102, 0.12);
}
.career-table th {
  width: 220px;
  text-align: left;
  font-weight: 700;
  padding-right: 20px;
}
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding-inline: 22px;
  gap: 0.55rem;
}
.back-button-small .button-label { font-size: 0.86rem; }
.back-button-small .button-arrow { font-size: 0.7rem; }
.detail-heading { margin-bottom: 30px; }
@keyframes watercolorShift {
  0% { transform: scale(1) translate3d(0, 0, 0); filter: hue-rotate(0deg); }
  100% { transform: scale(1.08) translate3d(1.5%, -1.5%, 0); filter: hue-rotate(8deg); }
}
@keyframes floatWash {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4vw, -2vw, 0) scale(1.08); }
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeContent {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 900px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .career-table th { width: 165px; }
}
@media (max-width: 680px) {
  .page-shell { width: min(100% - 24px, 1120px); }
  .site-nav {
    padding: 13px 0 11px;
    align-items: center;
    flex-direction: row;
    gap: 10px;
  }
  .logo {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }
  .nav-links {
    gap: 10px;
    font-size: 0.84rem;
  }
  .nav-links a { font-size: 0.84rem; }
  .works-grid { gap: 14px; }
  .works-page, .detail-page { padding-top: 120px; }
  .site-nav { width: min(100% - 24px, 1120px); }
  .filter-button { font-size: 0.85rem; }
  .work-body { padding: 15px; }
  .password-form { grid-template-columns: 1fr; }
  .enter-logo { letter-spacing: 0.18em; }
  .page-word {
    font-size: clamp(4rem, 26vw, 7rem);
    top: 56px;
  }
  .work-meta {font-size: 0.65rem;}
  .career-table,
  .career-table tbody,
  .career-table tr,
  .career-table th,
  .career-table td {
    display: block;
    width: 100%;
  }
  .career-table th {
    padding-bottom: 0;
  }
  .career-table td {
    padding-top: 6px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(102, 102, 102, 0.45);
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-inner {
  position: relative;
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image {
  max-width: 100%;
  max-height: 92vh;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-close {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow);
  font-size: 1rem;
}
@media (max-width: 680px) {
  .filter-button { font-size: 0.78rem; }
}
