/* ==========================================
   Teshio Kayumi Creator Portfolio CSS
   ========================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@300;400;600;800&display=swap');

/* --- Variable Definitions --- */
:root {
  --bg-color: #0b0c10;
  --panel-bg: #1f2833;
  --accent-color: #45f3ff;
  --primary-color: #66fcf1;
  --text-color: #c5c6c7;
  --text-light: #ffffff;
  --text-muted: #86888a;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 5px 15px rgba(0, 0, 0, 0.3);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-base: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
}

/* --- Base reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: var(--font-base);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--text-light);
  font-family: var(--font-en), var(--font-base);
  font-weight: 700;
  letter-spacing: 0.05em;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

/* --- Layout Container --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* --- Header / Hero --- */
.hero-header {
  position: relative;
  width: 100%;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-color);
}

/* Banner area */
.banner-wrapper {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
}

.banner-wrapper:hover .banner-img {
  transform: scale(1.02);
}

/* Title and description */
.creator-profile {
  text-align: center;
  margin-top: 60px;
  padding: 0 20px;
}

.creator-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.creator-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  font-weight: 300;
  border-bottom: 1px solid rgba(102, 252, 241, 0.2);
  padding-bottom: 15px;
}

.creator-bio {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 20px;
  text-align: center;
}

.creator-bio-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.creator-bio-text {
  font-family: var(--font-en);
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 16px;
  font-weight: 300;
}

.creator-bio-text:last-child {
  margin-bottom: 0;
}

/* --- Section common layout --- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.section-intro {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-size: 1.1rem;
}

/* --- PC Frame Section (App Demo) --- */
.app-demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* PC Device Mockup */
.pc-container {
  width: 100%;
  max-width: 800px;
  perspective: 1000px;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}

.pc-screen {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  background: #000;
  border: 16px solid #22252a; /* Sleek metal bezel */
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
  overflow: hidden;
}

.pc-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  background-color: #1a1a1a;
}

/* Screen reflection overlay */
.pc-screen::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  z-index: 10;
}

.pc-body {
  height: 20px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #a6a6a6 100%);
  border-radius: 0 0 16px 16px;
  border-bottom: 4px solid #7a7a7a;
  position: relative;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

/* Opening notch */
.pc-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #555;
  border-radius: 0 0 6px 6px;
}

.app-description {
  background: var(--panel-bg);
  padding: 30px 40px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 700px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.app-description p {
  margin-bottom: 0;
  font-size: 1.05rem;
  color: var(--text-color);
}

/* --- YouTube Videos Section --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.video-card {
  background: var(--panel-bg);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(102, 252, 241, 0.4);
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;                /* iframe自体も100%に */
  height: 100%;               /* コンテナの高さを継承 */
  border: none;
}

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.video-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Hover to reveal English translation */
.hover-en {
  cursor: help;
}

.hover-en .en-tooltip {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-family: var(--font-en);
  font-size: 0.85em;
  color: var(--primary-color);
  line-height: 1.5;
  transition: max-height 0.35s ease, opacity 0.35s ease, margin-top 0.35s ease;
}

.hover-en:hover .en-tooltip {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}

.video-desc.hover-en:hover .en-tooltip {
  max-height: 600px;
}

.section-intro.hover-en:hover {
  color: var(--text-color);
}

/* --- Gallery Section --- */
.gallery-category {
  margin-bottom: 80px;
}

.gallery-category:last-child {
  margin-bottom: 0;
}

.category-header {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin-bottom: 30px;
}

.category-title {
  font-size: 1.6rem;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 700;
}

.category-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* Flex or Grid for Gallery Items depending on amount */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

/* Special size for comics/manga or large illusts */
.gallery-grid.manga-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  background: var(--panel-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item::before {
  content: '';
  display: block;
  padding-top: 100px; /* Placeholder padding when no image loaded (will be overridden by img aspect ratio) */
}

/* Actual image inside gallery item */
.gallery-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-item.has-ratio::before {
  display: none; /* remove placeholder if we set actual aspect ratio */
}

.gallery-item.has-ratio {
  aspect-ratio: 4 / 5; /* default artistic image aspect ratio */
}

.gallery-grid.manga-grid .gallery-item.has-ratio {
  aspect-ratio: 1 / 1.414; /* Manga page aspect ratio (A4/B5) */
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: 0 12px 25px rgba(102, 252, 241, 0.2);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Overlay overlaying on hover */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(11,12,16,0.9) 100%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  pointer-events: none;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item-title {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 600;
  transform: translateY(10px);
  transition: var(--transition);
}

.gallery-item-desc {
  color: var(--primary-color);
  font-family: var(--font-en);
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 8px;
  transform: translateY(10px);
  transition: var(--transition);
  opacity: 0.95;
}

.gallery-item:hover .gallery-item-title,
.gallery-item:hover .gallery-item-desc {
  transform: translateY(0);
}

/* --- Lightbox Modal (For Image Expand) --- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-caption {
  position: absolute;
  bottom: 30px;
  color: var(--text-light);
  font-size: 1.2rem;
  text-align: center;
  font-weight: 500;
}

.modal-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-light);
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.modal-close:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

/* --- Footer --- */
.footer {
  padding: 60px 0;
  background-color: #07080a;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--text-light) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.copyright {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .creator-title {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 70px 0;
  }
  
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
  }
  
  .gallery-grid.manga-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  
  .modal {
    padding: 20px;
  }
  
  .modal-close {
    top: 20px;
    right: 20px;
  }
}

/* --- Contact / Mail Link Section --- */
.contact-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--panel-bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 600px;
  margin: 60px auto 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact-section:hover {
  border-color: var(--primary-color);
  box-shadow: 0 10px 30px rgba(102, 252, 241, 0.15);
}

.contact-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.contact-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mail-link {
  display: inline-block;
  transition: var(--transition);
}

.mail-img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  transition: var(--transition);
}

.mail-link:hover .mail-img {
  transform: scale(1.08) translateY(-3px);
  filter: drop-shadow(0 8px 20px rgba(102, 252, 241, 0.4));
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-light);
  transition: var(--transition);
}

.linkedin-link:hover {
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 252, 241, 0.25);
}

.linkedin-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.linkedin-label {
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

