/* ===== Design Tokens ===== */
:root {
  --bg: #f5f0e8;
  --bg-surface: #ede6d8;
  --bg-card: #e4dccb;
  --border: rgba(80, 60, 30, 0.15);
  --gold: #9a6b30;
  --gold-light: #b07d3a;
  --gold-dim: rgba(154, 107, 48, 0.25);
  --text: #191921;
  --text-sub: #4a4d5e;
  --text-dim: #7a7d8e;
  --radius: 16px;
  --section-py: clamp(80px, 10vw, 140px);
  --content-w: 1200px;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Noto Sans JP", sans-serif;
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

/* ===== Typography ===== */
.display {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 20px;
}

/* PC では section-title の br を無効 */
@media (min-width: 769px) {
  .section-title br {
    display: none;
  }
}

.section-desc {
  color: var(--text-sub);
  max-width: 600px;
  font-size: 0.95rem;
  line-height: 2;
}

/* ===== Layout ===== */
.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: var(--section-py) 0;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition:
    background 0.4s,
    padding 0.4s,
    backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icon {
  height: 32px;
  width: auto;
  border-radius: 6px;
  object-fit: cover;
}

.nav-logo {
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--gold);
}

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-sub);
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-lang {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 24px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  font-family: "Inter", sans-serif;
}

.nav-lang a {
  color: var(--text);
  opacity: 0.45;
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

.nav-lang a:hover {
  color: var(--gold);
  opacity: 1;
}

.nav-lang .current {
  color: var(--gold);
  font-weight: 500;
}

.nav-lang .sep {
  color: var(--text);
  opacity: 0.25;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition:
    transform 0.3s,
    opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.hero-bg-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(10, 8, 4, 0.45) 0%,
      rgba(10, 8, 4, 0.25) 50%,
      rgba(10, 8, 4, 0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
}

.hero-title-ja {
  font-family: "Noto Serif JP", "Cormorant Garamond", serif;
  font-size: clamp(0.9rem, 5vh, 3.3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: clamp(2px, 1.5vh, 12px);
  line-height: 1.4;
  color: #f0ebe3;
  text-shadow:
    0 2px 8px rgba(26, 18, 8, 0.35),
    0 6px 20px rgba(154, 107, 48, 0.3);
}

.hero-title-sub {
  font-size: 0.73em;
  display: block;
  margin-top: clamp(1px, 1vh, 8px);
}

.hero-title-en {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.7rem, 3vh, 1.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: clamp(2px, 1vh, 8px);
  line-height: 1.2;
  color: #e8c97a;
  opacity: 0.85;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(0.65rem, 2vh, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #e8c97a;
  margin-bottom: clamp(12px, 3vh, 32px);
  font-weight: 300;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.hero-icon-wrapper {
  width: clamp(50px, 18vh, 146px);
  height: clamp(50px, 18vh, 146px);
  margin: 0 auto clamp(8px, 2.5vh, 20px);
  border-radius: clamp(9px, 3.8vh, 32px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease-out;
  position: relative;
  overflow: visible;
}

.hero-icon-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: clamp(9px, 3.8vh, 32px);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      transparent 70%);
  pointer-events: none;
}

.hero-icon {
  width: 100%;
  height: 100%;
  border-radius: clamp(9px, 3.8vh, 32px);
  object-fit: cover;
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

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

.hero-tagline {
  font-size: clamp(0.7rem, 2.2vh, 1.05rem);
  color: #f0ebe3;
  margin-bottom: clamp(20px, 4vh, 48px);
  line-height: 1.9;
  font-weight: 500;
}

.hero-tagline span {
  display: block;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  border: 1px solid #e8c97a;
  color: #e8c97a;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  border-radius: 60px;
  transition: all 0.4s;
  background: transparent;
}

.hero-cta:hover {
  background: #e8c97a;
  color: #1a1710;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 201, 122, 0.3);
}

.hero-devices {
  margin-bottom: clamp(10px, 1.5vh, 20px);
  font-size: 0.85rem;
  color: #e8c97a;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.5);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ===== Stats ===== */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg-surface);
}

.stats .container {
  display: flex;
  gap: 24px;
  text-align: center;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.stats .container>div {
  flex: 1;
  min-width: 0;
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1.2;
}

.stat-num .unit {
  font-size: 0.5em;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-sub);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== Concept ===== */
.concept .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.concept-text .section-label {
  color: var(--gold);
}

.concept-text .lead {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 28px;
}

.concept-text p {
  color: var(--text-sub);
  line-height: 2;
  font-size: 0.92rem;
}

.concept-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.concept-img {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
}

.concept-caption {
  text-align: right;
  padding: 0 4px;
}

.concept-caption-title {
  font-family: "Noto Serif JP", serif;
  font-size: 0.85rem;
  color: var(--text);
  letter-spacing: 0.08em;
}

.concept-caption-sep {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.concept-caption-artist {
  font-family: "Noto Serif JP", serif;
  font-size: 0.85rem;
}

.concept-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

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

.concept-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  pointer-events: none;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 48px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 1;
  cursor: pointer;
}

.gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: 2/1;
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 18, 8, 0.75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

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

.overlay .artist {
  font-size: 0.7rem;
  color: #d4b88c;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.overlay .title {
  font-size: 0.85rem;
  font-weight: 400;
  color: #f0ebe3;
}

/* ===== Screenshots ===== */
.screenshots {
  background: var(--bg-surface);
}

.screenshots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-mock {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #161616;
  padding: 8px;
  transition: transform 0.5s;
  flex-shrink: 0;
}

.phone-mock:hover {
  transform: translateY(-8px);
}

.phone-mock img {
  width: 100%;
  border-radius: 20px;
}

.placeholder-screen {
  width: 100%;
  aspect-ratio: 390/844;
  border-radius: 20px;
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  font-weight: 300;
  border: 1px solid rgba(154, 107, 48, 0.08);
}

.ipad-screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ipad-mock {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid var(--border);
  background: #161616;
  padding: 12px;
  transition: transform 0.5s;
  flex-shrink: 0;
}

.ipad-mock:hover {
  transform: translateY(-8px);
}

.ipad-mock img {
  width: 100%;
  border-radius: 18px;
}

.ipad-placeholder-screen {
  width: 100%;
  aspect-ratio: 1366/1024;
  border-radius: 16px;
  background: linear-gradient(145deg, #111 0%, #1a1a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-weight: 300;
  border: 1px solid rgba(154, 107, 48, 0.08);
}

.screenshots .section-label {
  text-align: center;
}

.device-heading {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  text-align: center;
  margin-bottom: 40px;
  letter-spacing: 0.08em;
  font-family: "Cormorant Garamond", serif;
  border-bottom: 1px solid rgba(154, 107, 48, 0.2);
  padding-bottom: 12px;
}

.screenshot-title {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--text);
  text-align: center;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  word-break: break-word;
  max-width: 100%;
  font-weight: 500;
}

.screenshot-desc {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-sub);
  text-align: left;
  font-family: "Inter", "Noto Sans JP", sans-serif;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.8;
}

.ipad-screenshots-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

/* ===== Use Cases ===== */
.usecases {
  background: var(--bg-surface);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px;
  margin-top: 64px;
  counter-reset: usecase;
}

.usecase-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  min-height: 380px;
  padding: 48px 44px;
  border: 1px solid #4a3e26;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
  transition: transform 0.8s ease;
  counter-increment: usecase;
}

.usecase-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 18, 8, 0.75) 0%, rgba(26, 18, 8, 0.45) 50%, rgba(26, 18, 8, 0.2) 100%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.6s ease;
}

.usecase-card::after {
  content: counter(usecase, decimal-leading-zero);
  position: absolute;
  top: 40px;
  left: 44px;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--gold-light);
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--gold);
  text-shadow: 0 2px 16px rgba(26, 18, 8, 0.7);
  z-index: 2;
  pointer-events: none;
}

.usecase-card:hover::before {
  background: linear-gradient(to top, rgba(26, 18, 8, 0.6) 0%, rgba(26, 18, 8, 0.3) 50%, rgba(26, 18, 8, 0.1) 100%);
}

.usecase-card h3,
.usecase-card p {
  position: relative;
  z-index: 1;
}

.usecase-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  color: #f0ebe3;
  line-height: 1.6;
}

.usecase-card p {
  color: rgba(240, 235, 227, 0.75);
  font-size: 0.9rem;
  line-height: 1.95;
}

.usecase-card-1 {
  background-image: url('../img/usecases/usecase-1.jpg');
}

.usecase-card-2 {
  background-image: url('../img/usecases/usecase-2.jpg');
}

.usecase-card-3 {
  background-image: url('../img/usecases/usecase-3.jpg');
}

.usecase-card-4 {
  background-image: url('../img/usecases/usecase-4.jpg');
}

/* ===== Artists ===== */
.artists {
  background: var(--bg-surface);
}

.artists-heading {
  text-align: center;
  margin-top: 48px;
  color: var(--text);
}

.artists-list {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
}

.artists-list span {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: var(--text);
  padding: 8px 16px;
  transition: color 0.3s;
  cursor: pointer;
}

.artists-list span:hover {
  color: var(--gold);
}

/* EN: show romaji via data attribute, hide kanji */
html[lang="en"] .artists-list span[data-romaji] {
  font-size: 0;
}
html[lang="en"] .artists-list span[data-romaji]::before {
  content: attr(data-romaji);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.artists-list .sep {
  color: var(--text-dim);
  padding: 8px 4px;
  font-size: 0.8rem;
}

/* ===== Specs ===== */
.specs {
  background: var(--bg-card);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.specs-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  width: 200px;
}

.specs-table td {
  padding: 16px 20px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.specs-table tbody tr:last-child th,
.specs-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Pricing ===== */
.pricing {
  background: var(--bg-card);
}

.pricing .container {
  text-align: center;
}

.price-card {
  max-width: 480px;
  margin: 48px auto 0;
  padding: 56px 48px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: linear-gradient(135deg,
      var(--bg-card) 0%,
      rgba(154, 107, 48, 0.03) 100%);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center,
      rgba(154, 107, 48, 0.04) 0%,
      transparent 50%);
  pointer-events: none;
}

.price-amount {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.price-amount .yen {
  font-size: 0.55em;
  vertical-align: baseline;
  margin-right: 4px;
}

.price-amount .tax {
  font-size: 0.3em;
  color: var(--text-sub);
  margin-left: 4px;
  font-family: "Inter", sans-serif;
  letter-spacing: 0;
}

.price-desc {
  margin-top: 16px;
  color: var(--text-sub);
  font-size: 0.9rem;
}

.price-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-sub);
}

.price-features li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 500;
  font-size: 0.8rem;
}

.price-cta {
  margin-top: 40px;
}

.price-cta .hero-cta {
  width: 100%;
  justify-content: center;
  color: #8a7200;
  border-color: #8a7200;
}

.price-cta .hero-cta:hover {
  background: #8a7200;
  color: #fff;
}

/* ===== Features & Specs (Tabs) ===== */
.features-specs {
  background: var(--bg-surface);
}

.specs-tabs {
  margin-top: 48px;
}

.screenshots-tabs {
  margin-top: 32px;
}

.screenshots-tabs .tab-button {
  flex: 1;
  text-align: center;
  font-size: 1.8rem;
  font-family: "Cormorant Garamond", serif;
}

.tabs-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-buttons::-webkit-scrollbar {
  display: none;
}

.tab-button {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

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

.tab-button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tabs-content {
  display: block;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel ul {
  list-style: none;
}

.tab-panel li {
  padding: 16px 0;
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  border-bottom: 1px solid rgba(154, 107, 48, 0.08);
}

.tab-panel li:last-child {
  border-bottom: none;
}

.basic-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.basic-table th {
  text-align: left;
  padding: 16px 0;
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(154, 107, 48, 0.08);
  width: 120px;
}

.basic-table td {
  padding: 16px 0 16px 24px;
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  border-bottom: 1px solid rgba(154, 107, 48, 0.08);
}

.basic-table tbody tr:last-child th,
.basic-table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== FAQ ===== */
.faq {
  background: transparent;
}

.faq-items {
  margin-top: 48px;
}

.faq-item {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  color: var(--text);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
}

.faq-item p {
  color: var(--text-sub);
  font-size: 0.85rem;
  line-height: 1.8;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: start;
  margin-left: 3px;
}

.faq-q,
.faq-a {
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

/* ===== Final CTA ===== */
.cta {
  position: relative;
  text-align: center;
  padding: var(--section-py) 0;
  overflow: hidden;
  background: url('../img/artworks/hokusai_great_wave.jpg') center / cover no-repeat;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(16, 10, 4, 0.68);
  z-index: 1;
}

.cta h2 {
  text-shadow: 0 2px 8px rgba(26, 18, 8, 0.4);
}

.cta>* {
  position: relative;
  z-index: 2;
}

.cta .bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(154, 107, 48, 0.06) 0%,
      transparent 70%);
  pointer-events: none;
}

.cta h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 32px;
  color: #f0ebe3;
}

.cta .hero-cta {
  font-size: 0.9rem;
  color: #d4b88c;
  border-color: #d4b88c;
}

.cta .hero-cta:hover {
  background: #d4b88c;
  color: #1a1710;
}

/* ===== Our Apps ===== */
.our-apps {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}


.our-apps-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-banner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: 1px solid rgba(80, 60, 30, 0.4);
  border-radius: 4px;
  padding: 20px 24px;
  text-decoration: none;
  transition: border-color 0.3s;
  min-width: 300px;
}

.app-banner-card:hover {
  border-color: var(--gold);
}

.app-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  flex-shrink: 0;
}

.app-banner-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.app-banner-name-ja {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.app-banner-name-en {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  text-align: center;
  background: var(--bg-surface);
}

.footer p {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer a {
  color: var(--text-dim);
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.footer a:hover {
  color: var(--gold);
}

.text-link {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 999;
}

.back-to-top:hover {
  background: rgba(154, 107, 48, 0.1);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav-icon {
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-lang {
    margin-left: auto;
    margin-right: 16px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(245, 240, 232, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .stats .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .concept .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .concept-img-wrap {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: span 2;
  }

  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }

  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .phone-mock {
    width: 100%;
  }

  .ipad-screenshots-row {
    grid-template-columns: 1fr;
  }

  .ipad-mock {
    max-width: 100%;
  }

  .usecases-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .usecase-card {
    padding: 130px 32px 44px;
    min-height: 340px;
  }

  .usecase-card::after {
    top: 32px;
    left: 32px;
    font-size: 2.75rem;
  }

  .specs-table th {
    width: 150px;
    padding: 12px 16px;
  }

  .specs-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .tabs-buttons {
    gap: 4px;
  }

  .tab-button {
    padding: 12px 16px;
    font-size: 0.8rem;
  }

  .basic-table th {
    width: 100px;
    padding: 12px 0;
  }

  .basic-table td {
    padding: 12px 0 12px 16px;
  }

  .price-card {
    padding: 40px 28px;
  }
}

@media (max-width: 480px) {
  .nav-logo-group {
    gap: 8px;
  }

  .nav-icon {
    height: 24px;
  }

  .nav-logo {
    font-size: 0.75rem;
  }

  .hero-icon-wrapper {
    width: 113px;
    height: 113px;
    margin-bottom: 28px;
    border-radius: 29px;
  }

  .hero-icon-wrapper::after {
    border-radius: 31px;
  }

  .hero-icon {
    border-radius: 29px;
  }

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

  .gallery-item.wide {
    grid-column: span 2;
  }

  .tab-panel li {
    padding: 12px 0;
    font-size: 0.8rem;
  }

  .usecase-card {
    padding: 115px 24px 36px;
    min-height: 300px;
  }

  .usecase-card::after {
    top: 28px;
    left: 24px;
    font-size: 2.5rem;
  }

  .usecase-card h3 {
    font-size: 1.15rem;
  }

  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .phone-mock {
    width: 100%;
  }

  .screenshot-desc {
    font-size: 0.75rem;
  }

  .ipad-mock {
    width: 100%;
    max-width: 280px;
    border-radius: 16px;
  }

  .ipad-mock img {
    border-radius: 12px;
  }

  .ipad-screenshots-row {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    letter-spacing: 0.1em;
  }

  .specs-table th {
    width: 110px;
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .specs-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* ===== Artist Modal ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 18, 8, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.modal.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(26, 18, 8, 0.3);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

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

.modal-header {
  position: relative;
  padding: 30px 32px 25px 32px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  margin: 0;
  line-height: 1.2;
  padding-right: 50px;
}
.modal-artist-kanji {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  opacity: 0.5;
  margin-top: 5px;
  letter-spacing: 0.08em;
}

.modal-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--gold-light);
}

.modal-artworks {
  padding: 24px 32px;
  overflow-y: auto;
  flex: 1;
}

/* スクロールバーのスタイル */
.modal-artworks::-webkit-scrollbar {
  width: 6px;
}

.modal-artworks::-webkit-scrollbar-track {
  background: transparent;
}

.modal-artworks::-webkit-scrollbar-thumb {
  background: rgba(154, 107, 48, 0.4);
  border-radius: 3px;
  transition: background 0.2s ease;
}

.modal-artworks::-webkit-scrollbar-thumb:hover {
  background: rgba(154, 107, 48, 0.6);
}

.artwork-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(154, 107, 48, 0.08);
  transition: opacity 0.2s ease;
}

.artwork-item:last-child {
  border-bottom: none;
}

.artwork-title {
  color: var(--text);
  font-size: 0.95rem;
  flex: 1;
}

.artwork-year {
  color: var(--text-sub);
  font-size: 0.85rem;
  margin-left: 16px;
  white-space: nowrap;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .modal-content {
    max-height: 90vh;
  }

  .modal-header {
    padding: 30px 20px 25px 20px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-artworks {
    padding: 16px 20px;
  }

  .artwork-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0;
  }

  .artwork-year {
    margin-left: 0;
    margin-top: 4px;
    font-size: 0.8rem;
  }
}

/* ===== How to Use (Accordion) ===== */
.howto {
  background: linear-gradient(180deg, transparent, rgba(154, 107, 48, 0.05));
}


/* ===== Features ===== */
.features {
  background: var(--bg-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.feature-category {
  display: flex;
  flex-direction: column;
}

.feature-category-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 20px;
}

.feature-description {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

.feature-table th {
  text-align: left;
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  width: 180px;
}

.feature-table th:last-child {
  border-right: none;
}

.feature-table td {
  padding: 10px 16px;
  color: var(--text-sub);
  line-height: 1.4;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-table td:last-child {
  border-right: none;
}

.feature-table tbody tr:last-child td {
  border-bottom: none;
}

/* タブレット・モバイル対応 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .features-grid {
    gap: 24px;
    margin-top: 30px;
  }

  .feature-table th {
    width: 150px;
    padding: 12px 16px;
  }

  .feature-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .feature-table th {
    width: 110px;
    padding: 10px 12px;
    font-size: 0.7rem;
  }

  .feature-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
  }
}

/* ===== Privacy Page ===== */
.privacy-hero {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.privacy-hero .section-label {
  margin-bottom: 16px;
}

.privacy-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.privacy-hero .updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.privacy-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.privacy-intro {
  font-size: 1rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 56px;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.privacy-section {
  margin-bottom: 48px;
}

.privacy-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: 0.06em;
}

.privacy-section p {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 2;
  margin-bottom: 12px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section ul {
  list-style: none;
  margin-top: 12px;
}

.privacy-section ul li {
  color: var(--text-sub);
  font-size: 0.92rem;
  line-height: 2;
  padding-left: 1.2em;
  position: relative;
}

.privacy-section ul li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.privacy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  border-radius: 60px;
  transition: all 0.4s;
}

.privacy-back:hover {
  background: var(--gold);
  color: var(--bg);
}

/* ===== Legal Page (特定商取引法) ===== */
.legal-hero {
  padding: 140px 0 60px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.legal-hero .section-label {
  margin-bottom: 16px;
}

.legal-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.legal-hero .updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 72px 24px 120px;
}

.legal-note {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 2;
  margin-bottom: 48px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
}

.legal-table tr {
  border-bottom: 1px solid var(--border);
}

.legal-table tr:first-child {
  border-top: 1px solid var(--border);
}

.legal-table th {
  text-align: left;
  padding: 20px 24px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  width: 220px;
  vertical-align: top;
  white-space: nowrap;
}

.legal-table td {
  padding: 20px 24px;
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.9;
  vertical-align: top;
}

@media (max-width: 600px) {

  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .legal-table th {
    padding-bottom: 4px;
    border-bottom: none;
  }

  .legal-table tr {
    display: block;
    padding: 16px 0;
  }
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
  padding: 14px 36px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  border-radius: 60px;
  transition: all 0.4s;
}

.legal-back:hover {
  background: var(--gold);
  color: var(--bg);
}