/* 大工 — daikuart.com — style minimaliste blanc */

:root {
  --bg: #ffffff;
  --fg: #141414;
  --fg-dim: #8c8c8c;
  --border: #e6e6e6;
  --max: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--fg-dim);
}

/* Header */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

header.site-header .brand {
  font-size: 20px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

header.site-header nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

header.site-header nav a.active {
  color: var(--fg);
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
}

header.site-header nav a:not(.active) {
  color: var(--fg-dim);
}

/* Home / gallery index */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.intro {
  padding: 64px 0 48px;
  max-width: 560px;
}

.intro p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
}

.gallery-index {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
  padding-bottom: 80px;
}

.gallery-index a.gallery-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
}

.gallery-index a.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-index a.gallery-card:hover img {
  transform: scale(1.03);
}

.gallery-index .card-label {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 18px 20px;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  width: 100%;
}

/* Gallery (single column, natural ratio) */

.gallery-title {
  padding: 56px 0 8px;
}

.gallery-title h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 6px;
}

.gallery-title p {
  color: var(--fg-dim);
  font-size: 13px;
  margin: 0 0 40px;
}

/* Carousel */

.carousel {
  position: relative;
  height: calc(100vh - 260px);
  min-height: 380px;
  max-height: 780px;
  margin: 0 -32px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.carousel-arrow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  min-width: 56px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 22px;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.carousel-arrow:hover { opacity: 0.9; }
.carousel-arrow.prev { left: 0; justify-content: flex-start; }
.carousel-arrow.next { right: 0; justify-content: flex-end; }

.carousel-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.carousel-meta .sep { opacity: 0.5; }

.carousel-caption {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px 8px;
  min-height: 1.6em;
  text-align: center;
  font-style: italic;
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
  white-space: pre-line;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel-caption.visible {
  opacity: 1;
}

.series-text {
  max-width: 440px;
  margin: 4px auto 0;
  padding: 0 20px 8px;
  text-align: center;
  font-style: italic;
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-dim);
  white-space: pre-line;
}

.gallery-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0 80px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* NoirFrame app page */

.app-hero {
  padding: 72px 0 40px;
  max-width: 480px;
  text-align: center;
  margin: 0 auto;
}

.app-hero .app-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  margin-bottom: 20px;
}

.app-hero h1 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.app-hero .app-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 28px;
}

.app-store-badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid var(--fg);
  color: var(--fg);
  transition: background 0.2s ease, color 0.2s ease;
}

.app-store-badge:hover {
  background: var(--fg);
  color: var(--bg);
}

.app-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px 0 72px;
  max-width: 760px;
  margin: 0 auto;
}

.app-shots img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 40px;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.app-feature h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.app-feature p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0;
}

.app-feature a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  color: var(--fg);
}

.app-note {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 100px;
  font-size: 12px;
  color: var(--fg-dim);
}

@media (max-width: 600px) {
  .app-shots { grid-template-columns: repeat(2, 1fr); }
  .app-features { grid-template-columns: 1fr; }
}

/* Contact */

.contact-block {
  padding: 80px 0 120px;
  max-width: 480px;
}

.contact-block h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

.contact-block a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}

/* Boutique */

.shop-intro {
  padding: 56px 0 8px;
  max-width: 560px;
}

.shop-intro h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.shop-intro p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.7;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 48px 28px;
  padding: 48px 0 100px;
}

.shop-item {
  display: flex;
  flex-direction: column;
}

.shop-item .shop-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f2f2f2;
  margin-bottom: 16px;
}

.shop-item .shop-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-item:hover .shop-image img {
  transform: scale(1.03);
}

.shop-item h3 {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.shop-item .shop-meta {
  font-size: 12px;
  color: var(--fg-dim);
  margin: 0 0 14px;
  line-height: 1.5;
}

.shop-item .shop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.shop-item .shop-price {
  font-size: 14px;
  letter-spacing: 0.02em;
}

.shop-buy-btn {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 16px;
  border: 1px solid var(--fg);
  background: none;
  color: var(--fg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.shop-buy-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.shop-note {
  max-width: 560px;
  padding: 0 0 100px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-dim);
}

/* Legal / privacy pages */

.legal-block {
  padding: 80px 0 120px;
  max-width: 620px;
}

.legal-block h1 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.legal-block .legal-updated {
  font-size: 12px;
  color: var(--fg-dim);
  margin: 0 0 32px;
}

.legal-block h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 32px 0 8px;
}

.legal-block p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-dim);
  margin: 0 0 8px;
}

.legal-block a {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  color: var(--fg);
}

/* Footer */

footer.site-footer {
  text-align: center;
  padding: 32px;
  font-size: 12px;
  color: var(--fg-dim);
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  header.site-header { padding: 20px; }
  header.site-header nav { gap: 16px; }
  main { padding: 0 20px; }
  .carousel { height: calc(100vh - 220px); margin: 0 -20px; padding: 0 20px; }
  .carousel-arrow { width: 20%; }
  .shop-grid { grid-template-columns: 1fr; gap: 40px; }
}
