@charset "UTF-8";
/*
    Template: swell
    Theme Name: KMM Games Child
    Theme URI: https://games.kmm-media.com/
    Description: KMM Games専用のSWELL子テーマ
Version: 0.1.5
    Author: KMM
    Text Domain: kmm-games

    License: GNU General Public License v2 or later
    License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* 実際のスタイルは assets/css/ 以下で管理します。SWELL本体は編集しません。 */


/* KMM Games landing-page components. Load from the SWELL child theme only. */
.kmm-home,
.kmm-minecraft {
  --kmm-landing-bg: #f5f0e8;
  --kmm-landing-dark: #1a1a2e;
  --kmm-landing-text: #25262a;
  --kmm-landing-green: #184c3c;
  --kmm-landing-moss: #6b8c42;
  --kmm-landing-blue: #4cc9f0;
  --kmm-landing-coral: #ff745d;
  --kmm-landing-gold: #f5b85b;
  --kmm-landing-ivory: #f7f4ee;
  color: var(--kmm-landing-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.kmm-home *,
.kmm-minecraft * { box-sizing: border-box; }
.kmm-home img,
.kmm-minecraft img { display: block; max-width: 100%; height: auto; }
.kmm-home a,
.kmm-minecraft a { color: inherit; text-decoration: none; }

.kmm-home h2,
.kmm-home h3,
.kmm-minecraft h2,
.kmm-minecraft h3 {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.kmm-home h2::before,
.kmm-home h2::after,
.kmm-home h3::before,
.kmm-home h3::after,
.kmm-minecraft h2::before,
.kmm-minecraft h2::after,
.kmm-minecraft h3::before,
.kmm-minecraft h3::after { display: none; content: none; }

.kmm-home > section,
.kmm-minecraft > section,
.kmm-site-footer { padding: 80px max(20px, calc((100% - 1200px) / 2)); }

.kmm-section-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.kmm-section-header__title { margin: 0; color: var(--kmm-landing-dark); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.25; }
.kmm-section-header__sub { margin: 10px 0 0; color: #5a5c63; }
.kmm-section-header__more { color: var(--kmm-landing-green); font-weight: 800; white-space: nowrap; }

.kmm-home-hero,
.kmm-page-hero { position: relative; display: grid; min-height: 70vh; place-items: center; overflow: hidden; color: #fff; text-align: center; isolation: isolate; }
.kmm-home-hero__bg,
.kmm-page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.kmm-home-hero__bg img,
.kmm-page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.kmm-home-hero::after,
.kmm-page-hero::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.76)); }
.kmm-home-hero__content,
.kmm-page-hero__content { width: min(760px, 100%); }
.kmm-home-hero__tagline,
.kmm-page-hero__label { margin: 0 0 16px; color: var(--kmm-landing-gold); font-weight: 900; letter-spacing: .12em; }
.kmm-home-hero__title,
.kmm-page-hero__title { margin: 0; color: #fff; font-size: clamp(2.5rem, 7vw, 5rem); line-height: 1.05; text-shadow: 0 4px 20px rgba(0,0,0,.45); }
.kmm-page-hero__title { font-size: clamp(2.1rem, 5.5vw, 4.3rem); }
.kmm-home-hero__desc,
.kmm-page-hero__desc { margin: 24px auto 0; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.9; }
.kmm-home-hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.kmm-home-hero__btn { padding: 14px 32px; border: 2px solid #fff; border-radius: 50px; font-weight: 900; transition: transform .2s ease, filter .2s ease; }
.kmm-home-hero__btn:hover { transform: translateY(-4px); filter: brightness(1.08); }
.kmm-home-hero__btn--primary { color: var(--kmm-landing-dark); background: var(--kmm-landing-gold); border-color: var(--kmm-landing-gold); }
.kmm-home-hero__btn--outline { color: #fff; background: rgba(0,0,0,.22); }

.kmm-beginner-nav,
.kmm-category-cards,
.kmm-purpose-guide,
.kmm-all-posts { background: var(--kmm-landing-bg); }
.kmm-category-cards__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.kmm-category-card { display: grid; grid-template-columns: 42% 1fr; min-height: 320px; overflow: hidden; background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(26,26,46,.1); transition: transform .2s ease, box-shadow .2s ease; }
.kmm-category-card:hover,
.kmm-post-card:hover,
.kmm-purpose-card:hover,
.kmm-step-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(26,26,46,.15); }
.kmm-category-card__image img { width: 100%; height: 100%; object-fit: cover; }
.kmm-category-card__body { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.kmm-category-card__label,
.kmm-post-card__category,
.kmm-post-list-item__category { align-self: flex-start; padding: 5px 10px; color: #fff; background: var(--kmm-landing-green); border-radius: 999px; font-size: .75rem; font-weight: 900; letter-spacing: .08em; }
.kmm-category-card--roblox .kmm-category-card__label { background: var(--kmm-landing-coral); }
.kmm-category-card__title { margin: 14px 0 8px; font-size: 2rem; }
.kmm-category-card__desc { margin: 0; line-height: 1.8; }
.kmm-category-card__link { margin-top: 18px; color: var(--kmm-landing-green); font-weight: 900; }

.kmm-latest-posts { background: #fff; }
.kmm-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.kmm-post-card { overflow: hidden; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(26,26,46,.1); transition: transform .2s ease, box-shadow .2s ease; }
.kmm-post-card__thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.kmm-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kmm-post-card__category { position: absolute; top: 12px; left: 12px; }
.kmm-post-card__body { padding: 20px; }
.kmm-post-card__date,
.kmm-post-list-item time { color: #74767d; font-size: .82rem; }
.kmm-post-card__title { margin: 8px 0; font-size: 1.08rem; line-height: 1.55; }
.kmm-post-card__excerpt { margin: 0; color: #5a5c63; font-size: .9rem; line-height: 1.75; }

.kmm-features,
.kmm-info-policy { background: var(--kmm-landing-dark); color: #e0e0e0; }
.kmm-features .kmm-section-header__title,
.kmm-info-policy .kmm-section-header__title { color: #fff; }
.kmm-features__grid,
.kmm-info-policy__grid,
.kmm-purpose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.kmm-feature-item,
.kmm-info-policy__item { padding: 30px; border: 1px solid rgba(76,201,240,.25); border-radius: 12px; background: rgba(255,255,255,.05); }
.kmm-feature-item__icon { font-size: 2rem; }
.kmm-feature-item__title { margin: 16px 0 8px; color: var(--kmm-landing-blue); }
.kmm-feature-item__desc { margin: 0; line-height: 1.8; }

.kmm-step-guide { background: #fff; }
.kmm-step-cards { display: flex; gap: 22px; padding: 8px 4px 20px; overflow-x: auto; scroll-snap-type: x mandatory; }
.kmm-step-card { flex: 0 0 min(320px, 82vw); padding: 18px; background: var(--kmm-landing-ivory); border: 1px solid rgba(107,140,66,.24); border-radius: 12px; box-shadow: 0 8px 20px rgba(26,26,46,.08); scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease; }
.kmm-step-card__number { display: block; color: var(--kmm-landing-moss); font-size: 1.45rem; font-weight: 950; }
.kmm-step-card__image { margin: 14px -18px 18px; aspect-ratio: 16 / 9; overflow: hidden; }
.kmm-step-card__image img { width: 100%; height: 100%; object-fit: cover; }
.kmm-step-card__title { margin: 0; font-size: 1.08rem; line-height: 1.55; }
.kmm-step-card__desc { color: #5a5c63; line-height: 1.75; }
.kmm-step-card__time { color: var(--kmm-landing-green); font-size: .82rem; font-weight: 800; }

.kmm-purpose-card { padding: 30px; background: #fff; border: 1px solid rgba(107,140,66,.22); border-radius: 12px; box-shadow: 0 8px 22px rgba(26,26,46,.08); transition: transform .2s ease, box-shadow .2s ease; }
.kmm-purpose-card__icon { font-size: 2rem; }
.kmm-purpose-card__title { margin: 14px 0 8px; color: var(--kmm-landing-green); }
.kmm-purpose-card__desc { margin: 0; line-height: 1.7; }

.kmm-post-list { display: grid; gap: 20px; }
.kmm-post-list-item { background: #fff; border-radius: 12px; box-shadow: 0 8px 22px rgba(26,26,46,.08); }
.kmm-post-list-item__link { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; padding: 18px; }
.kmm-post-list-item__thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
.kmm-post-list-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.kmm-post-list-item__body h3 { margin: 8px 0; }
.kmm-post-list-item__body p { margin: 0 0 12px; color: #5a5c63; }

.kmm-info-policy__item { display: flex; align-items: flex-start; gap: 14px; }
.kmm-info-policy__check { color: var(--kmm-landing-blue); font-size: 1.6rem; font-weight: 900; }
.kmm-info-policy__item p { margin: 0; line-height: 1.8; }

.kmm-site-footer { color: #e0e0e0; background: #111522; }
.kmm-site-footer__main { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12); }
.kmm-site-footer__site-name { margin: 0; color: #fff; font-size: 1.5rem; font-weight: 950; }
.kmm-site-footer__tagline { margin: 6px 0 0; }
.kmm-site-footer__nav { display: flex; flex-wrap: wrap; gap: 20px; font-weight: 800; }
.kmm-site-footer__legal { padding-top: 24px; font-size: .78rem; line-height: 1.75; }
.kmm-site-footer__legal p { margin: 4px 0; }
.kmm-site-footer__copyright { margin-top: 16px !important; color: var(--kmm-landing-gold); }

@media (max-width: 768px) {
  .kmm-home > section,
  .kmm-minecraft > section,
  .kmm-site-footer { padding-top: 58px; padding-bottom: 58px; }
  .kmm-category-cards__grid,
  .kmm-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kmm-category-card { grid-template-columns: 1fr; }
  .kmm-category-card__image { aspect-ratio: 16 / 9; }
  .kmm-features__grid,
  .kmm-info-policy__grid,
  .kmm-purpose-grid { grid-template-columns: 1fr; }
  .kmm-post-list-item__link { grid-template-columns: 180px 1fr; }
}

@media (max-width: 500px) {
  .kmm-home > section,
  .kmm-minecraft > section,
  .kmm-site-footer { padding-right: 16px; padding-left: 16px; }
  .kmm-category-cards__grid,
  .kmm-post-grid { grid-template-columns: 1fr; }
  .kmm-section-header { align-items: flex-start; }
  .kmm-home-hero__buttons { flex-direction: column; }
  .kmm-home-hero__btn { width: 100%; }
  .kmm-post-list-item__link { grid-template-columns: 1fr; }
  .kmm-site-footer__main { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .kmm-home-hero__btn,
  .kmm-category-card,
  .kmm-post-card,
  .kmm-purpose-card,
  .kmm-step-card { transition: none; }
}
