/* ============================================
   MURITCHI 2 Official Site — SHINDENDO
   Inspired by game console manufacturer sites
   ============================================ */

:root {
  --m2-red: #e60012;
  --m2-red-dark: #c4000f;
  --m2-purple: #6a3daa;
  --m2-orange: #e87620;
  --m2-black: #1d1d1f;
  --m2-text: #333;
  --m2-text-light: #666;
  --m2-text-muted: #888;
  --m2-bg: #f5f5f7;
  --m2-bg-alt: #eee;
  --m2-white: #fff;
  --m2-border: #d6d6d6;
  --m2-font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --m2-max-w: 1100px;
  --m2-radius: 8px;
}

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

body.muritchi2 {
  font-family: var(--m2-font);
  color: var(--m2-text);
  background: var(--m2-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ HEADER (RED) ============ */
.m2-header {
  background: var(--m2-red);
  position: sticky;
  top: 0;
  z-index: 100;
}

.m2-header-inner {
  max-width: var(--m2-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 52px;
  gap: 28px;
}

.m2-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--m2-white);
}

.m2-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--m2-white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--m2-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.m2-logo-text {
  font-size: 14px;
  font-weight: 800;
  color: var(--m2-white);
  letter-spacing: 1px;
}

.m2-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.m2-nav a {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 14px 16px;
  transition: color 0.15s, background 0.15s;
  border-radius: 4px;
}

.m2-nav a:hover {
  color: var(--m2-white);
  background: rgba(255,255,255,0.12);
}

/* ============ SUB NAV (product tabs) ============ */
.m2-subnav {
  background: var(--m2-white);
  border-bottom: 1px solid var(--m2-border);
}

.m2-subnav-inner {
  max-width: var(--m2-max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 44px;
  gap: 0;
}

.m2-subnav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--m2-text-light);
  padding: 10px 18px;
  position: relative;
  transition: color 0.15s;
}

.m2-subnav a:hover,
.m2-subnav a.is-active {
  color: var(--m2-black);
}

.m2-subnav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--m2-red);
  border-radius: 2px 2px 0 0;
}

/* ============ NEWS BAR ============ */
.m2-news-bar {
  background: var(--m2-bg);
  border-bottom: 1px solid var(--m2-border);
}

.m2-news-bar-inner {
  max-width: var(--m2-max-w);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}

.m2-news-tag {
  background: var(--m2-red);
  color: white;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.m2-news-date {
  color: var(--m2-text-muted);
  flex-shrink: 0;
  font-size: 12px;
}

.m2-news-text { color: var(--m2-text); }
.m2-news-text:hover { color: var(--m2-red); }

/* ============ HERO (DARK) ============ */
.m2-hero {
  background: var(--m2-black);
  color: var(--m2-white);
  text-align: center;
  padding: 72px 24px 64px;
  position: relative;
  overflow: hidden;
}

.m2-hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.m2-hero-product-img {
  max-width: 640px;
  margin: 0 auto 32px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.m2-hero-product-img img {
  width: 100%;
}

.m2-hero-product-placeholder {
  font-size: 120px;
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.7;
}

.m2-hero h1 {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.m2-hero h1 .m2-red { color: var(--m2-red); }

.m2-hero-catch {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 36px;
  line-height: 1.8;
}

.m2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.m2-hero-price {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  padding: 12px 24px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
}

.m2-hero-price strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--m2-white);
}

.m2-btn-primary {
  display: inline-block;
  background: var(--m2-red);
  color: var(--m2-white);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 6px;
  transition: background 0.15s;
}

.m2-btn-primary:hover { background: var(--m2-red-dark); }

/* ============ SECTION ============ */
.m2-section {
  padding: 72px 24px;
}

.m2-section--alt { background: var(--m2-bg); }
.m2-section--dark { background: var(--m2-black); color: var(--m2-white); }

.m2-section-inner {
  max-width: var(--m2-max-w);
  margin: 0 auto;
}

.m2-section-head {
  text-align: center;
  margin-bottom: 48px;
}

.m2-section-head h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--m2-black);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.m2-section--dark .m2-section-head h2 { color: var(--m2-white); }

.m2-section-head p {
  font-size: 14px;
  color: var(--m2-text-muted);
}

.m2-section--dark .m2-section-head p { color: rgba(255,255,255,0.4); }

/* ============ FEATURES ============ */
.m2-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.m2-feature-card {
  background: var(--m2-white);
  border: 1px solid var(--m2-border);
  border-radius: var(--m2-radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.m2-feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }

.m2-feature-icon { font-size: 36px; margin-bottom: 16px; line-height: 1; }

.m2-feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--m2-black);
}

.m2-feature-card p {
  font-size: 13px;
  color: var(--m2-text-light);
  line-height: 1.7;
}

/* ============ GAMES LINEUP ============ */
.m2-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.m2-game-card {
  display: block;
  background: var(--m2-white);
  border-radius: var(--m2-radius);
  overflow: hidden;
  border: 1px solid var(--m2-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.m2-game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.m2-game-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  overflow: hidden;
}

.m2-game-thumb img { width: 100%; height: 100%; object-fit: cover; }

.m2-game-thumb--sliceoflife { background: linear-gradient(160deg, #5fa85f, #a5d6a7); }
.m2-game-thumb--monster     { background: linear-gradient(160deg, #e6a020, #ffe082); }
.m2-game-thumb--fantasy     { background: linear-gradient(160deg, #4a5bbd, #9fa8da); }
.m2-game-thumb--action      { background: linear-gradient(160deg, #d84060, #ef9a9a); }
.m2-game-thumb--puzzle      { background: linear-gradient(160deg, #2e8eaa, #80cbc4); }

.m2-game-body { padding: 12px 14px 16px; }

.m2-game-body h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--m2-black);
  line-height: 1.4;
  margin-bottom: 4px;
}

.m2-game-genre { font-size: 11px; color: var(--m2-text-muted); }

.m2-games-more { text-align: center; margin-top: 32px; }

.m2-btn-outline {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: var(--m2-red);
  border: 2px solid var(--m2-red);
  padding: 11px 36px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.m2-btn-outline:hover {
  background: var(--m2-red);
  color: var(--m2-white);
}

/* ============ SPEC ============ */
.m2-spec-card {
  background: #2a2a2c;
  border-radius: var(--m2-radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.m2-spec-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--m2-white);
  margin-bottom: 8px;
}

.m2-spec-card > div > p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}

.m2-spec-table { display: grid; gap: 0; }

.m2-spec-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}

.m2-spec-row dt { color: rgba(255,255,255,0.4); font-weight: 600; }
.m2-spec-row dd { color: rgba(255,255,255,0.85); }

.m2-spec-visual {
  text-align: center;
  padding: 20px;
}

.m2-spec-visual img {
  max-width: 240px;
  margin: 0 auto;
}

.m2-spec-visual-placeholder {
  font-size: 100px;
  opacity: 0.12;
  line-height: 1;
}

/* ============ FAQ ============ */
.m2-faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

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

.m2-faq-item summary {
  padding: 20px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--m2-black);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  transition: color 0.15s;
}

.m2-faq-item summary:hover { color: var(--m2-red); }
.m2-faq-item summary::-webkit-details-marker { display: none; }

.m2-faq-q {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--m2-red);
  color: var(--m2-white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.m2-faq-arrow {
  margin-left: auto;
  font-size: 11px;
  color: var(--m2-text-muted);
  transition: transform 0.2s;
}

.m2-faq-item[open] .m2-faq-arrow { transform: rotate(180deg); }

.m2-faq-answer {
  padding: 0 0 24px 40px;
  font-size: 14px;
  color: var(--m2-text-light);
  line-height: 1.9;
}

.m2-faq-answer a { color: var(--m2-red); text-decoration: underline; }

/* ============ FOOTER ============ */
.m2-footer {
  background: var(--m2-black);
  color: rgba(255,255,255,0.4);
  padding: 48px 24px 28px;
}

.m2-footer-inner {
  max-width: var(--m2-max-w);
  margin: 0 auto;
}

.m2-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

.m2-footer-grid h4 {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.m2-footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.m2-footer-grid a { font-size: 12px; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.m2-footer-grid a:hover { color: rgba(255,255,255,0.9); }

.m2-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m2-footer-logo {
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.2);
  letter-spacing: 2px;
}

.m2-footer-bottom small { font-size: 11px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .m2-games-grid { grid-template-columns: repeat(3, 1fr); }
  .m2-features { grid-template-columns: 1fr 1fr; }
  .m2-footer-grid { grid-template-columns: 1fr 1fr; }
  .m2-spec-card { grid-template-columns: 1fr; }
  .m2-spec-visual { display: none; }
}

@media (max-width: 600px) {
  .m2-header-inner { padding: 0 16px; gap: 12px; }
  .m2-nav a { font-size: 11px; padding: 14px 10px; }
  .m2-hero { padding: 48px 16px 40px; }
  .m2-hero-product-placeholder { font-size: 80px; }
  .m2-section { padding: 48px 16px; }
  .m2-games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .m2-features { grid-template-columns: 1fr; }
  .m2-spec-card { padding: 24px; }
  .m2-footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .m2-subnav-inner { overflow-x: auto; }
}
