@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:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.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));
}

.item h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 800;
}

.item p {
  margin: 0;
  color: var(--subtext);
  font-size: 1rem;
}

/* =========================
   Main Service Card
========================= */
.item:nth-child(1) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  padding: 42px 34px 34px;
}

.item:nth-child(1) h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.item:nth-child(1) p {
  font-size: 1.06rem;
  color: #334155;
}

/* 強みラベルをCSSだけで追加 */
.item:nth-child(1)::after {
  content: "WEB制作 / 公開代行 / 集客導線";
  display: inline-block;
  margin-top: 24px;
  padding: 10px 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* =========================
   Links as CTA buttons
========================= */
.item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.item a::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.item a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.32);
  filter: brightness(1.03);
}

.item a:active {
  transform: translateY(0);
}

.item a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

/* 各カードの雰囲気を少し変える */
.item:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(245,248,255,0.97));
}

.item:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,253,250,0.97));
}

.item:nth-child(3) a {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.item:nth-child(3) a:hover {
  box-shadow: 0 18px 35px rgba(22, 163, 74, 0.3);
}

/* =========================
   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:nth-child(1) h2 {
    font-size: 1.8rem;
  }

  .item {
    padding: 28px 22px 24px;
  }
}

@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:nth-child(1) h2 {
    font-size: 1.55rem;
  }

  .item p {
    font-size: 0.96rem;
  }

  .item a {
    width: 100%;
  }
}