/* ===== Custom Properties ===== */
:root {
  --bg-primary: #1c1c26;
  --bg-card: #262633;
  --bg-header: rgba(28, 28, 38, 0.85);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #999999;
  --accent: #00ffff;
  --accent-dim: rgba(0, 255, 255, 0.15);
  --border-color: #3a3a4a;
  --border-section: #3a3a4a;
  --radius: 12px;
  --gap: 1.5rem;
  --section-padding: 1rem 1rem 3rem;
  --max-width: 960px;
  --font-stack: "Hiragino Kaku Gothic Pro", "メイリオ", "Meiryo", "Noto Sans JP", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

/* ===== Language Toggle ===== */
html.lang-en .ja-only { display: none !important; }
html.lang-ja .en-only { display: none !important; }

/* ===== Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 0.75rem;
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #000;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 2px 10px 2px 6px;
  text-decoration: none;
  line-height: 18px;
  height: 22px;
}

.btn-share span {
  color: #fff;
  font-size: 11px;
  font-family: sans-serif;
}

.btn-share img {
  display: inline;
  vertical-align: middle;
}

.hatena-bookmark-button-frame {
  width: 110px !important;
}

.lang-switch {
  color: var(--text-primary);
  font-size: 0.8rem;
  margin-left: 4px;
}

.lang-switch a {
  color: var(--accent);
}

/* ===== Main Layout ===== */
main {
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--border-section);
}

section:last-child {
  border-bottom: none;
}

.section-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-title--hero {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-img {
  display: block;
  max-height: 50px;
  width: auto;
  margin-bottom: 1.5rem;
}

/* ===== Game Card ===== */
.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.game-card + .game-card {
  margin-top: var(--gap);
}

.game-card__image {
  flex-shrink: 0;
}

.game-card__image img {
  width: 100%;
  height: auto;
}

.game-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.game-card__title {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.game-card__meta {
  font-size: 0.85rem;
  line-height: 1.8;
}

.game-card__meta br {
  content: "";
}

.game-card__cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.game-card__cta img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.game-card__cta img:hover {
  opacity: 1;
}

/* ===== App Card ===== */
.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-card__title {
  color: var(--text-primary);
  font-size: 1.2rem;
}

.app-card__screenshots {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
}

.app-card__screenshots img {
  height: auto;
  max-height: 280px;
  border-radius: 8px;
}

.app-card__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.app-card__cta img {
  height: 60px;
  width: auto;
  display: inline-block;
}

/* ===== Product Card (Goods) ===== */
.goods-grid {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

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

.product-card__image {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0;
}

.product-card__image img {
  max-height: 400px;
  width: auto;
  border-radius: 6px;
}

.product-card__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.product-card__title {
  color: var(--text-primary);
  font-size: 1.05rem;
}

.product-card__cta img {
  height: 40px;
  width: auto;
  border-radius: 6px;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.product-card__cta img[src$=".svg"] {
  background: #ffffff;
  padding: 4px 16px;
}

.product-card__cta img:hover {
  opacity: 1;
}

/* ===== Guidelines Box ===== */
.guidelines-box {
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

/* ===== Site Footer ===== */
.site-footer {
  text-align: center;
  padding: 3rem 1rem 2rem;
  border-top: 1px solid var(--border-section);
}

.site-footer__sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.site-footer__sns img,
.site-footer__sns svg {
  width: 36px;
  height: 36px;
}

.site-footer__logo {
  margin-bottom: 1.5rem;
}

.site-footer__logo img {
  height: 64px;
  width: auto;
  margin: 0 auto;
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.site-footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ===== Responsive: Tablet (600px+) ===== */
@media (min-width: 600px) {
  .game-card {
    flex-direction: row;
  }

  .game-card--reverse {
    flex-direction: row-reverse;
  }

  .game-card__image {
    width: 45%;
  }

  .game-card__body {
    width: 55%;
    padding: 1.5rem;
  }

  .app-card {
    flex-direction: row;
  }

  .app-card__body {
    width: 55%;
    padding: 1.5rem;
  }

  .app-card__screenshots {
    width: 45%;
  }

  .product-card {
    flex-direction: row;
  }

  .product-card__image {
    width: 40%;
    padding: 1rem;
  }

  .product-card__body {
    width: 60%;
    padding: 1.5rem;
  }
}

/* ===== Responsive: Desktop (768px+) ===== */
@media (min-width: 768px) {
  :root {
    --section-padding: 1.5rem 2rem 4rem;
  }

  .site-header {
    padding: 0.6rem 2rem;
  }

  .game-card__title {
    font-size: 1.4rem;
  }

  .game-card__body {
    padding: 2rem;
  }

  .app-card__body {
    padding: 2rem;
  }

  .app-card__screenshots img {
    max-height: 340px;
  }

  .product-card__body {
    padding: 2rem;
  }

  .goods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .product-card {
    flex-direction: column;
  }

  .product-card__image {
    width: 100%;
  }

  .product-card__body {
    width: 100%;
  }

  .product-card--wide {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .product-card--wide .product-card__image {
    width: 40%;
  }

  .product-card--wide .product-card__body {
    width: 60%;
  }
}
