body, h1, h2, ul, li, p { margin: 0; padding: 0; }
ul { list-style: none; }
a { text-decoration: none; color: #333; }
body { display: flex; min-height: 100vh; font-family: Helvetica Neue, Apple SD Gothic Neo, sans-serif; flex-direction: row; margin: 0; width: 100%; }
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.scroll-animate.is-visible { opacity: 1; transform: translateY(0); }
.mobile-header { display: none; }
nav { width: 250px; padding: 40px; background: #fff; overflow-y: auto; flex-shrink: 0; }
.artist-name-nav { font-size: 1.8rem; font-weight: 200; margin-bottom: 40px; letter-spacing: 1px; }
.menu > li { margin-bottom: 30px; font-weight: bold; font-size: 0.9rem; }
.menu > li > a.active { color: #000; border-bottom: 2px solid #000; padding-bottom: 2px; }
.sub-menu { margin-top: 15px; font-weight: normal; font-size: 0.8rem; display: flex; flex-wrap: wrap; gap: 10px; }
.sub-menu li a { color: #666; display: inline-block; }
.sub-menu li a:hover { color: #000; }
main { flex: 1; display: flex; flex-direction: column; background: #fff; padding: 40px; box-sizing: border-box; overflow-y: auto; position: relative; max-width: 1462px; margin: 0 auto; width: 100%; }
.content-area { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; }

.page-main-title { font-size: 2.2rem; font-weight: 700; text-align: center; margin: 0 0 60px 0; letter-spacing: 4px; color: #000; }

.about-container { width: 100%; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding-bottom: 80px; }
.profile-image { width: 100%; max-width: 800px; height: auto; margin-bottom: 80px; object-fit: cover; }
.resume-wrapper { display: flex; width: 100%; gap: 80px; }
.resume-column { flex: 1; }
.resume-section { margin-bottom: 50px; }
.resume-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; border-bottom: 1px solid #222; padding-bottom: 10px; letter-spacing: 1px; }
.resume-content { font-size: 0.9rem; line-height: 2; color: #444; }
.resume-content p { margin-bottom: 8px; word-break: keep-all; }

.gallery-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 0 80px 0; display: flex; flex-direction: column; align-items: center; }
.gallery-filter, .exhibition-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 30px; margin-bottom: 50px; border-bottom: 1px solid #eee; padding-bottom: 15px; width: 100%; max-width: 1200px; }
.gallery-filter li, .exhibition-filter li { cursor: pointer; color: #aaa; font-size: 1rem; transition: color 0.3s; }
.gallery-filter li.active, .exhibition-filter li.active { color: #000; font-weight: bold; }

.gallery-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.gallery-item { display: none; flex-direction: column; cursor: pointer; }
.gallery-item.show { display: flex; animation: fadeIn 0.8s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.img-wrapper { width: 100%; aspect-ratio: 4/3; overflow: hidden; margin-bottom: 15px; background: #ffffff; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover .img-wrapper img { transform: scale(1.05); }
.item-title { font-size: 0.9rem; color: #333; text-align: center; letter-spacing: 1px; }

.ceramics-grid { grid-template-columns: repeat(auto-fill, minmax(45%, 1fr)) !important; gap: 50px !important; }
.ceramics-grid .img-wrapper { aspect-ratio: 1 / 1 !important; }

.tab-content { display: none; width: 100%; max-width: 1200px; margin: 0 auto; }
.tab-content.active { display: block; animation: fadeIn 0.5s ease; }

.news-list { display: flex; flex-direction: column; width: 100%; max-width: 1200px; margin: 0 auto; }
.news-item { display: flex; justify-content: space-between; align-items: center; padding: 25px 15px; border-bottom: 1px solid #ddd; transition: all 0.3s; }
.news-item:hover { background: #fafafa; padding-left: 30px; }
.news-title { font-size: 1.1rem; font-weight: 500; color: #111; }
.news-info { font-size: 0.95rem; color: #777; display: flex; gap: 30px; min-width: 200px; justify-content: flex-end; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 15px; width: 100%; max-width: 1200px; margin: 0 auto; }
.photo-grid .gallery-item { position: relative; overflow: hidden; cursor: pointer; display: flex; }
.photo-grid .img-wrapper { aspect-ratio: 1/1; margin: 0; background: #eee; width: 100%; }
.photo-grid .photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-grid .item-title { font-size: 0.95rem; font-weight: 500; color: #fff; text-align: left; }
.photo-grid .item-date { font-size: 0.85rem; color: rgba(255,255,255,0.86); text-align: left; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
.video-grid .gallery-item { cursor: pointer; display: flex; }
.video-grid .img-wrapper { aspect-ratio: 16/9; position: relative; background: #000; overflow: hidden; margin-bottom: 15px; }
.video-grid .img-wrapper::after { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background-color: rgba(0,0,0,0.7); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='white' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); background-size: 26px; background-repeat: no-repeat; background-position: calc(50% + 1px) center; transition: all 0.3s; }
.video-grid .gallery-item:hover .img-wrapper::after { background-color: #ff0000; transform: translate(-50%, -50%) scale(1.1); }
.video-grid .item-title { font-size: 1.05rem; font-weight: 500; color: #222; text-align: left; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 30px; width: 100%; max-width: 1200px; margin: 0 auto; }
.catalog-item { display: flex; gap: 25px; align-items: center; cursor: pointer; border: 1px solid #eee; padding: 20px; transition: transform 0.3s, box-shadow 0.3s; background: #fff; }
.catalog-item:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.catalog-item .img-wrapper { width: 240px; flex-shrink: 0; aspect-ratio: 4/3; box-shadow: 3px 3px 10px rgba(0,0,0,0.1); margin: 0; }
.catalog-item .item-info { display: flex; flex-direction: column; }
.catalog-item .item-title { font-size: 1.1rem; font-weight: normal; margin-bottom: 10px; color: #222; word-break: keep-all; line-height: 1.4; text-align: left; }

.detail-view { display: none; width: 100%; max-width: 1200px; margin: 0 auto; flex-direction: column; animation: fadeIn 0.5s ease; }
.detail-view.active { display: flex; }
.detail-header-row { width: 100%; display: flex; align-items: center; justify-content: flex-start; margin-bottom: 12px; }
.detail-back-link {
  font-size: 0.9rem;
  color: #666;
  border: 1px solid #ddd;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  background: #fff;
}
.detail-back-link:hover { background: #f5f5f5; }
.detail-title { font-size: 1.6rem; margin-bottom: 16px; text-align: center; font-weight: 300; width: 100%; }
.detail-meta {
  width: 100%;
  display: flex;
  gap: 12px;
  margin: 4px 0 24px;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
  padding: 10px 0;
}
.detail-meta > div {
  flex: 1;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}
.detail-images { display: flex; flex-direction: column; gap: 30px; margin-bottom: 40px; }
.detail-images img { width: 100%; height: auto; object-fit: cover; }
.detail-text { line-height: 2; color: #444; font-size: 1rem; }
.detail-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto;
}

.load-more-btn { margin-top: 60px; padding: 15px 50px; background: #fff; border: 1px solid #ddd; color: #555; font-size: 0.9rem; cursor: pointer; transition: all 0.3s; letter-spacing: 2px; display: none; }
.load-more-btn .btn-count { font-size: 0.8rem; color: #999; font-weight: normal; margin-left: 10px; letter-spacing: 0; }
.load-more-btn.show { display: block; }
.load-more-btn:hover { background: #fcfcfc; border-color: #999; color: #000; }

.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease; }
.lightbox.active { opacity: 1; visibility: visible; }
.lb-ui { position: absolute; color: #fff; z-index: 10000; transition: opacity 0.4s ease; }
.lightbox.idle .lb-top-left, .lightbox.idle .lb-top-right, .lightbox.idle .lb-prev, .lightbox.idle .lb-next { opacity: 0; pointer-events: none; }
.lb-top-left { top: 30px; left: 30px; font-size: 1.1rem; letter-spacing: 2px; font-weight: 300; }
.lb-top-right { top: 30px; right: 30px; display: flex; gap: 25px; }
.lb-btn { background: none; border: none; color: #fff; cursor: pointer; padding: 5px; display: flex; align-items: center; justify-content: center; }
.lb-btn svg { width: 26px; height: 26px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); padding: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-bottom { bottom: 40px; left: 40px; text-align: left; font-size: 1.2rem; letter-spacing: 1px; font-weight: 300; }
.lb-img-container { width: 95%; height: 95%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; }

.video-modal-content { width: 90%; max-width: 1000px; aspect-ratio: 16/9; background: #000; position: relative; margin: 0 auto; }
.video-modal-content iframe, .video-modal-content video { width: 100%; height: 100%; border: none; display: block; }

footer { width: 100%; max-width: 1200px; margin: auto auto 20px auto; border-top: 1px solid #eee; padding-top: 40px; text-align: center; }
.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.sns-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sns-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}
.sns-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.footer-artist { margin-bottom: 10px; }
.footer-artist span.label { font-size: 0.8rem; color: #666; margin-right: 10px; letter-spacing: 1px; }
.footer-artist span.name { font-size: 1.8rem; font-weight: 200; color: #222; letter-spacing: 0.5px; }
.footer-copy { font-size: 0.7rem; color: #999; letter-spacing: 1.5px; margin-top: 10px; }

.top-btn { position: fixed; bottom: 40px; right: 40px; width: 50px; height: 50px; background: #f8f8f8; border: 1px solid #eee; border-radius: 8px; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100; display: flex; align-items: center; justify-content: center; color: #555; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.top-btn.show { opacity: 1; visibility: visible; }
.top-btn:hover { background: #f0f0f0; color: #000; }

.back-btn-bottom { align-self: center; margin-top: 50px; background: #111; color: #fff; border: none; padding: 15px 40px; cursor: pointer; font-size: 0.95rem; letter-spacing: 1px; transition: background 0.3s; }
.back-btn-bottom:hover { background: #333; }

.contact-container { width: 100%; max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 60px; padding: 20px 0 80px 0; }
.contact-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact-label { font-size: 0.9rem; color: #888; letter-spacing: 2px; margin-bottom: 15px; font-weight: bold; }
.contact-value { font-size: 1.4rem; color: #111; font-weight: 300; line-height: 1.5; word-break: keep-all; }

.video-container { position: relative; width: 100%; max-width: 1200px; display: flex; align-items: center; justify-content: center; container-type: inline-size; margin: auto; }
.video-container video { width: 100%; height: auto; display: block; pointer-events: none; }
.overlay-text { position: absolute; z-index: 1; text-align: center; width: 100%; }
.overlay-text h2 { font-size: 7cqw; color: #fff; margin: 0; font-weight: 800; letter-spacing: -2px; text-shadow: 2px 2px 10px rgba(0,0,0,0.3); word-break: keep-all; white-space: nowrap; }

.mobile-logo a, .artist-name-nav a { color: inherit; text-decoration: none; }

@media (max-width: 1024px) {
    .resume-wrapper { gap: 40px; }
}
@media (max-width: 768px) {
    .resume-wrapper { flex-direction: column; gap: 60px; }
    .gallery-grid, .photo-grid, .video-grid { grid-template-columns: repeat(auto-fill, minmax(100%, 1fr)); gap: 30px; }
    .ceramics-grid { grid-template-columns: 1fr !important; }
    
    .news-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 10px; }
    .news-info { justify-content: flex-start; }
    
    .gallery-filter { flex-wrap: nowrap !important; justify-content: flex-start !important; overflow-x: auto; padding: 0 10px 10px 10px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .gallery-filter li { white-space: nowrap !important; flex-shrink: 0; }
    .gallery-filter::-webkit-scrollbar { display: none; }

    .exhibition-filter { flex-wrap: nowrap !important; justify-content: center !important; overflow-x: auto; padding-bottom: 10px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .exhibition-filter li { white-space: nowrap !important; flex-shrink: 0; }
    .exhibition-filter::-webkit-scrollbar { display: none; }

    .catalog-grid { grid-template-columns: 1fr; }
    .catalog-item { flex-direction: column; align-items: flex-start; padding: 15px; gap: 10px; }
    .catalog-item .img-wrapper { width: 100%; max-width: 320px; margin: 0 auto; aspect-ratio: auto; }
    .catalog-item .item-title { margin-bottom: 0; }

    .page-main-title { font-size: 1.4rem; font-weight: 500; margin-top: 10px; margin-bottom: 30px; letter-spacing: 2px; }
    .contact-container { gap: 40px; padding-bottom: 30px; }
    
    .lb-btn svg { width: 22px; height: 22px; }
    .lb-top-left, .lb-top-right { top: 20px; }
    .lb-top-left { left: 20px; }
    .lb-top-right { right: 20px; gap: 15px; }
    .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; padding: 10px; }
    .lb-prev { left: 20px; }
    .lb-next { right: 20px; }
    .lb-bottom { left: 0; bottom: 70px; width: 100%; text-align: center; }
    .lb-img-container { width: 100%; height: 75%; }

    .top-btn { right: 15px !important; bottom: 30px !important; width: 40px !important; height: 40px !important; background: rgba(17, 17, 17, 0.8) !important; color: #fff !important; backdrop-filter: blur(4px); border: none !important; }
}
@media (max-width: 640px) {
    body { flex-direction: column; }
    .mobile-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid #eee; background: #fff; width: 100%; box-sizing: border-box; }
    .mobile-logo { font-size: 1.2rem; font-weight: 300; letter-spacing: 1px; }
    .hamburger-btn { display: block; background: none; border: none; font-size: 1.5rem; cursor: pointer; padding: 0; color: #333; }
    nav { display: none; position: absolute; top: 65px; left: 0; width: 100%; background: #fff; z-index: 999; padding: 30px 40px; box-sizing: border-box; border-bottom: 1px solid #eee; box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
    .artist-name-nav { display: none; }
    .menu > li { margin-bottom: 20px; }
    main { padding: 20px; }
    .about-container { padding-top: 20px; padding-bottom: 40px; }
    .profile-image { width: 100%; max-width: 350px; margin-bottom: 50px; }
    .video-container { height: 60vh; overflow: hidden; container-type: inline-size; }
    .video-container video { height: 100%; object-fit: cover; }
    .overlay-text h2 { font-size: 12cqw; }
}