/* ============================================
   BRAINSTORM SHOP - Common Styles
   Design: www.nakataka.net に統一
   ============================================ */

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

@import url('https://fonts.googleapis.com/css2?family=Muli:wght@400;600;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
  --bg-body: #ffffff;
  --bg-dark: #17252a;
  --bg-light: #f7f7f7;
  --bg-card: #ffffff;
  --bg-card-hover: #faf8f6;
  --text-dark: #333333;
  --text-body: #555555;
  --text-light: #888888;
  --accent: #cc9999;
  --accent-hover: #996666;
  --accent-brown: #815e3d;
  --accent-brown-hover: #96643f;
  --link-color: #990000;
  --border: #e8e8e8;
  --shadow: 0px 4px 16px rgba(2, 110, 159, 0.08);
  --shadow-hover: 0px 10px 20px rgba(2, 110, 159, 0.15);
  --font-body: 'Muli', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 1080px;
  --radius: 4px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-body);
  line-height: 1.8;
  font-size: 16px;
  min-height: 100vh;
}

a { color: var(--link-color); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--text-dark); }

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

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

/* --- Header --- */
.site-header {
  position: relative;
}

.header-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: rgba(23, 37, 42, 0.75);
  padding: 12px 0;
}

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

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

.site-logo img {
  height: 36px;
  width: auto;
}

.site-logo .company-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  font-family: var(--font-ui);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.header-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  filter: brightness(1.3);
}

/* --- Hero (ヘッダー画像上にオーバーレイ) --- */
.header-hero {
  position: relative;
}

.header-hero .header-image {
  height: 400px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px 0;
}

.hero-overlay h1 {
  font-size: 48px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 3px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

.hero-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  max-width: 560px;
}

/* --- Product Cards (トップページ一覧) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  padding: 24px 0 90px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

a.product-card { text-decoration: none; color: inherit; }

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-card--coming-soon { opacity: 0.35; pointer-events: none; }

.product-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
}

.product-card-icon {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  padding: 12px;
  border-radius: 16px;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-card-body .description {
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-brown);
}

.product-badge {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius);
  background: rgba(204, 153, 153, 0.15);
  color: var(--accent);
}

/* --- Product Detail Page --- */
.product-detail {
  padding: 64px 0 90px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-visual {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: var(--shadow);
}

.product-detail-icon {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  border-radius: 24px;
}

.product-info h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.product-info .tagline {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 28px;
}

.product-info .price-block {
  margin-bottom: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.product-info .price-amount {
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-brown);
}

.product-info .price-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.product-info .features {
  list-style: none;
  margin-bottom: 32px;
}

.product-info .features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-body);
}

.product-info .features li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 12px;
  vertical-align: middle;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--accent-brown);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-brown-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 86, 61, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-brown);
  border: 1px solid var(--accent-brown);
}

.btn-secondary:hover {
  background: rgba(129, 86, 61, 0.06);
  color: var(--accent-brown-hover);
}

.btn-block {
  display: block;
  width: 100%;
}

.checkout-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
  text-align: center;
}

.detail-link-wrap {
  text-align: center;
  margin-top: 16px;
}

.btn-detail {
  display: inline-block;
  padding: 10px 32px;
  font-size: 13px;
}

/* --- Thanks Page --- */
.thanks-section {
  text-align: center;
  padding: 100px 24px 80px;
  max-width: 600px;
  margin: 0 auto;
}

.thanks-section h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.thanks-section p {
  color: var(--text-body);
  margin-bottom: 32px;
  line-height: 1.8;
}

.thanks-section .note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 32px;
}

/* --- Download Buttons --- */
.download-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  padding: 32px 0;
  text-align: center;
  color: #aaaaaa;
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
}

.site-footer a {
  color: #aaaaaa;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-image { height: 200px; }
  .header-hero .header-image { height: 240px; }

  .site-logo .company-name { display: none; }

  .header-bar .container {
    flex-direction: column;
    gap: 10px;
  }

  .site-nav { gap: 16px; }

  .hero-overlay h1 { font-size: 28px; letter-spacing: 2px; }
  .hero-overlay p { font-size: 13px; }

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

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-info .price-amount {
    font-size: 32px;
  }
}
