:root {
  --bg: #f5efe4;
  --bg-deep: #17130e;
  --surface: rgba(255, 250, 241, 0.72);
  --text: #221b12;
  --muted: #5f513f;
  --accent: #d8c56a;
  --line: rgba(69, 49, 18, 0.12);
  --shadow: 0 24px 60px rgba(33, 24, 14, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(243, 199, 122, 0.42), transparent 30%),
    radial-gradient(circle at 85% 20%, rgba(243, 224, 170, 0.35), transparent 22%),
    linear-gradient(135deg, #f8f3ea 0%, #eee3d2 48%, #f6f0e7 100%);
  font-family: "Noto Sans JP", sans-serif;
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23916f42' fill-opacity='.06'%3E%3Ccircle cx='10' cy='14' r='1'/%3E%3Ccircle cx='52' cy='38' r='1'/%3E%3Ccircle cx='102' cy='82' r='1'/%3E%3Ccircle cx='74' cy='122' r='1'/%3E%3Ccircle cx='126' cy='22' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.section {
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  padding: 28px 0 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.7);
  box-shadow: 0 14px 36px rgba(35, 25, 13, 0.08);
  backdrop-filter: blur(14px);
}

.brand-mark img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.brand-mark strong,
.brand-mark small {
  display: block;
}

.brand-mark strong {
  font-size: 0.95rem;
  letter-spacing: 0.28em;
}

.brand-mark small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: start;
  padding: 34px 0 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9a7d4d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.download-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 6.2vw, 5.6rem);
  line-height: 0.98;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.95;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tech-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card-index {
  display: inline-block;
  color: #8d754d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.tech-card h3 {
  display: block;
  margin-top: 10px;
}

.tech-card p,
.section-heading p,
.download-copy p {
  color: var(--muted);
  line-height: 1.85;
}

.tech-card p {
  margin: 10px 0 0;
  font-size: 0.95rem;
}

.hero-stage {
  padding-top: 12px;
}

.photo-card,
.gallery-item {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: 14px 14px 42px;
  border: 1px solid rgba(244, 237, 226, 0.96);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(248, 244, 238, 0.98), rgba(239, 232, 220, 0.98));
  box-shadow: 0 28px 64px rgba(27, 18, 8, 0.15);
}

.photo-card img,
.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: initial;
  object-position: initial;
  background: transparent;
}

.photo-card::before,
.gallery-item::before {
  content: "";
  position: absolute;
  inset: 10px 10px 38px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  pointer-events: none;
}

.photo-card::after,
.gallery-item::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.95);
  pointer-events: none;
}

.photo-card-primary {
  min-height: 320px;
}

.card-tint {
  position: absolute;
  inset: 14px 14px 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 45%, rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 80% 20%, rgba(255, 231, 161, 0.2), transparent 24%);
}

.card-tint.warm {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%, rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at 20% 10%, rgba(249, 190, 122, 0.24), transparent 26%);
}

.card-tint.cool {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 45%, rgba(0, 0, 0, 0.14)),
    radial-gradient(circle at 70% 20%, rgba(132, 203, 255, 0.18), transparent 26%);
}

.tech-section,
.gallery-section {
  padding-bottom: 88px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2,
.footer-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 4rem);
  line-height: 1.02;
}

.section-heading p {
  margin: 16px 0 0;
  font-size: 1rem;
}

.tech-card h3 {
  margin: 12px 0 0;
  font-size: 1.24rem;
}

.gallery-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.gallery-item {
  min-height: 280px;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 380px);
  gap: 40px;
  align-items: center;
  margin: 34px auto 20px;
  padding: 36px 40px;
  border: 1px solid rgba(114, 90, 55, 0.16);
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(242, 189, 102, 0.08), transparent 34%),
    rgba(252, 247, 239, 0.78);
  box-shadow:
    0 20px 48px rgba(41, 29, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.download-copy p {
  max-width: 560px;
  color: rgba(61, 45, 28, 0.72);
  margin-top: 14px;
}

.download-copy .eyebrow {
  color: rgba(129, 96, 45, 0.9);
}

.download-copy h2 {
  color: #20160d;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  min-width: 280px;
  padding: 18px 22px;
  border: 1px solid rgba(26, 19, 12, 0.12);
  border-radius: 24px;
  background: #17130e;
  color: #fff8ef;
  box-shadow: 0 18px 34px rgba(33, 24, 15, 0.16);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(242, 189, 102, 0.38);
  background: #21170f;
  box-shadow: 0 22px 42px rgba(33, 24, 15, 0.2);
}

.store-button:focus-visible {
  outline: 2px solid rgba(242, 189, 102, 0.34);
  outline-offset: 4px;
}

.store-button-icon,
.store-button-download {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.store-button-icon svg {
  width: 26px;
  height: 26px;
}

.store-button-download {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 248, 239, 0.1);
}

.store-button-download svg {
  width: 18px;
  height: 18px;
}

.store-button-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-button-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 244, 227, 0.62);
}

.store-button strong {
  font-size: 1.28rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(93, 75, 48, 0.84);
  font-size: 0.94rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 48px;
  padding: 16px 4px 8px;
}

.footer-brand {
  margin: 0;
  color: rgba(93, 75, 48, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  animation: reveal-up 720ms ease both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .photo-card-primary {
    min-height: 260px;
  }

  .download-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .download-actions {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .section {
    width: min(100vw - 28px, 1240px);
  }

  .site-header {
    padding-top: 20px;
  }

  .hero {
    padding-top: 22px;
    gap: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    grid-column: auto;
    min-height: 220px;
  }

  .photo-card-primary {
    min-height: 200px;
  }

  .download-section {
    padding: 28px 22px;
    gap: 22px;
  }

  .store-button {
    width: 100%;
    min-width: 0;
  }

  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }
}
