@charset "utf-8";

/* =========================
   Base
========================= */
:root {
  --bg: #f5f7fb;
  --bg-dark: #0f172a;
  --card: rgba(255, 255, 255, 0.96);
  --text: #1e293b;
  --subtext: #475569;
  --line: #dbe3ef;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #dbeafe;
  --gold: #f59e0b;
  --white: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-hover: 0 28px 60px rgba(37, 99, 235, 0.18);
  --radius: 20px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #dbeafe 0%, transparent 35%),
    radial-gradient(circle at bottom right, #e0f2fe 0%, transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
  line-height: 1.8;
}

/* =========================
   Header
========================= */
header {
  position: relative;
  overflow: hidden;
  padding: 90px 20px 70px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.92)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
  text-align: center;
  color: var(--white);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.18), rgba(245, 158, 11, 0.08));
  pointer-events: none;
}

header h1 {
  position: relative;
  z-index: 1;
  margin: 0;
}

.text-border {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-shadow:
    0 2px 0 rgba(15, 23, 42, 0.8),
    0 8px 20px rgba(0, 0, 0, 0.28);
}

/* サブコピー風の演出 */
header::after {
  content: "信頼されるホームページ制作・公開サポート";
  position: relative;
  display: block;
  z-index: 1;
  margin-top: 18px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
}

/* =========================
   Main Layout
========================= */
main {
  padding: 56px 20px 80px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* =========================
   Card(共通)
========================= */
.item {
  position: relative;
  padding: 34px 28px 28px;
  background: var(--card);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.35s;
}

.item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.25);
}

.item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

/* =========================
   Card Variation（種類分け）
========================= */

/* メインカード */
.item.main {
  padding: 42px 34px;
}

.item.main h2 {
  font-size: 2rem;
}

.item.main::after {
  content: "WEB制作 / 公開代行 / 集客導線";
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ゲーム */
.item.game {
  background: linear-gradient(180deg, #fff, #f5f8ff);
}

/* 野菜 */
.item.shop {
  background: linear-gradient(180deg, #fff, #f7fdfa);
}

/* =========================
   Button（共通）
========================= */

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: 0.25s;
}

/* 青ボタン */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
}

/* ゲーム用ボタン　*/
.btn-game {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9); 
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.25);
}

/* 緑ボタン */
.btn-green {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-game:hover {
  box-shadow: 0 18px 35px rgba(139, 92, 246, 0.35);
  transform: translateY(-3px) scale(1.02);
}

/* =========================
   Footer
========================= */
.site-footer {
  margin-top: 20px;
  background: linear-gradient(180deg, #111827, #0f172a);
  color: rgba(255, 255, 255, 0.88);
  padding: 26px 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
}

.footer-copy {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px) {
  .container {
    grid-template-columns: 1fr;
  }

  .item {
    padding: 28px 22px 24px;
  }

  .item.main h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 640px) {
  header {
    padding: 72px 16px 58px;
  }

  header::after {
    font-size: 0.9rem;
    line-height: 1.7;
    padding: 0 12px;
  }

  main {
    padding: 36px 16px 60px;
  }

  .item h2 {
    font-size: 1.3rem;
  }

  .item.main h2 {
    font-size: 1.55rem;
  }

  .item p {
    font-size: 0.96rem;
  }

}