/* ITSUMADE? Support Site */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card2: #e8e8ed;
  --border: #d1d1d6;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --accent: #0071e3;
  --accent-light: #0077ed;
  --radius: 18px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-light);
}

/* ── Header ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.icon-placeholder-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: cover;
}

nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text);
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: inherit;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: 700px;
  margin: 0 auto;
}

.app-icon-wrapper {
  display: inline-block;
  margin-bottom: 32px;
}

.app-icon {
  width: 120px;
  height: 120px;
  object-fit: cover;
}

.icon-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1c1c2e 0%, #2d2d5e 50%, #0a2a4a 100%);
  border: 1px solid rgba(10, 132, 255, 0.2);
  box-shadow: 0 20px 60px rgba(10, 132, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10, 132, 255, 0.1);
  border: 1px solid rgba(10, 132, 255, 0.25);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.15s;
}

.store-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--bg);
}

.store-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ── Sections ── */
section {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

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

section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

section > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
  text-align: left;
}

.feature-card:hover {
  border-color: rgba(10, 132, 255, 0.3);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Screenshots ── */
.screenshots-section {
  max-width: 100%;
  margin: 0;
  padding: 64px 0;
  text-align: center;
  overflow: visible;
}

.screenshots-header {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Device toggle */
.device-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  gap: 4px;
  margin-top: 24px;
  margin-bottom: 40px;
}

.device-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  padding: 7px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.device-btn.active {
  background: var(--accent);
  color: #fff;
}

.device-btn:not(.active):hover {
  color: var(--text);
}

/* Gallery wrapper with nav buttons */
.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: opacity 0.2s, background 0.2s, transform 0.15s;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.gallery-nav:hover {
  background: var(--bg-card2);
  transform: translateY(-50%) scale(1.08);
}

.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }

/* Gallery */
.screenshot-gallery {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 50%;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 24px;
  scrollbar-width: none;
}

.screenshot-gallery::-webkit-scrollbar {
  display: none;
}

/* 両端にスペーサーを置いて最初・最後のアイテムを中央に揃える */
.iphone-mode::before,
.iphone-mode::after {
  content: '';
  flex: 0 0 calc(50% - 110px);  /* 200px/2 + 20px/2 */
}

.ipad-mode::before,
.ipad-mode::after {
  content: '';
  flex: 0 0 calc(50% - 140px);  /* 260px/2 + 20px/2 */
}

.ss-frame {
  flex-shrink: 0;
  scroll-snap-align: center;
  display: flex;
}

/* iPhone mode — portrait */
.iphone-mode .ss-img {
  width: 200px;
  height: 433px;
  border-radius: 40px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
}

.iphone-mode .ss-img:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* iPad mode — portrait */
.ipad-mode {
  max-width: 960px;
  margin: 0 auto;
}

.ipad-mode .ss-img {
  width: 260px;
  height: 347px;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  transition: box-shadow 0.2s, transform 0.2s;
}

.ipad-mode .ss-img:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, opacity 0.2s, transform 0.15s;
}

.lightbox-nav svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 40px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  user-select: none;
  gap: 16px;
}

.faq-q:hover {
  background: var(--bg-card2);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.2s;
  padding: 0 24px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* ── Contact ── */
.contact-section {
  text-align: center;
}

.contact-card {
  display: inline-block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px;
  max-width: 520px;
  width: 100%;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent-light);
  color: #fff;
  transform: translateY(-1px);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* ── Hamburger ── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

header.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
header.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
  }

  .menu-toggle {
    display: flex;
  }

  nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 0 16px;
    border-top: 1px solid var(--border);
    margin-top: 12px;
  }

  header.nav-open nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 56px 20px 56px;
  }

  .contact-card {
    padding: 36px 28px;
  }
}
