/* ============================================
   Oluoli / あべこべ工房 Portfolio
   Minimal & Off-white Gallery
   ============================================ */

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:         #FAFAFA;
  --bg-card:    #FFFFFF;
  --text:       #333333;
  --text-sub:   #666666;
  --text-muted: #A0A0A0;
  --border:     #EAEAEA;
  --font-en:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ja:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80svh;
  padding: 40px 24px;
  text-align: center;
  position: relative;
}

.hero__inner {
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 0.2s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__logo {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 24px;
  letter-spacing: 0.2em;
  color: var(--text);
  line-height: 1.4;
}

.hero__sub {
  margin-top: 12px;
  font-family: var(--font-ja);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-sub);
}

/* ============================================
   Section
   ============================================ */
.section {
  padding: 60px 24px;
  max-width: 760px;
  margin: 0 auto;
}

.section__label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery__item {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.gallery__item:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.gallery__item:active {
  transform: scale(0.98);
}

.gallery__item img {
  width: 100%;
  display: block;
}

/* ============================================
   Profile
   ============================================ */
.profile__name {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.profile__meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-sub);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.profile__bio {
  font-size: 13px;
  line-height: 2;
}

.profile__awards {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.profile__awards-label {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.profile__awards-list li {
  margin-bottom: 16px;
}

.profile__awards-list li:last-child {
  margin-bottom: 0;
}

.award__title {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.award__desc {
  display: block;
  font-size: 11px;
  color: var(--text-sub);
  margin-top: 2px;
}

/* ============================================
   Business
   ============================================ */
.business__text {
  font-size: 13px;
  line-height: 2;
  margin-bottom: 8px;
}

.business__text:last-child {
  margin-bottom: 0;
}

.business__services {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.business__service {
  flex: 1;
}

.business__service-title {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 12px;
  color: var(--text);
}

.business__list {
  list-style: none;
}

.business__list li {
  position: relative;
  padding-left: 14px;
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 6px;
  line-height: 1.6;
}

.business__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* ============================================
   Contact
   ============================================ */
.contact__text {
  font-size: 12px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-ja);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 40px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.contact__link svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.contact__link:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.contact__link:active {
  transform: scale(0.97);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 20px 48px;
  text-align: center;
}

.footer small {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 300;
}

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  cursor: pointer;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-sub);
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
}

.lightbox__close:hover {
  color: var(--text);
}

.lightbox__body {
  max-width: 88vw;
  max-height: 82vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   Responsive (Tablet)
   ============================================ */
@media (min-width: 600px) {
  .section {
    padding: 80px 40px;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .hero__logo {
    font-size: 28px;
  }
  
  .business__services {
    flex-direction: row;
    gap: 40px;
  }
}

/* ============================================
   Responsive (Desktop)
   ============================================ */
@media (min-width: 960px) {
  .section {
    padding: 100px 40px;
  }
  
  .gallery {
    gap: 20px;
  }

  .hero__logo {
    font-size: 32px;
  }
  
  .profile,
  .business,
  .contact {
    max-width: 640px;
  }
}