/* ==============================
   Base
============================== */

:root {
  --color-primary: #0f7896;
  --color-primary-dark: #07556d;
  --color-primary-soft: #e6f7fd;
  --color-accent: #7dd3fc;
  --color-text: #1e293b;
  --color-muted: #64748b;
  --color-border: rgba(15, 23, 42, 0.1);
  --color-bg: #f7fbff;
  --color-white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 14px 35px rgba(15, 23, 42, 0.08);
  --radius-large: 28px;
  --radius-medium: 20px;
  --radius-small: 12px;
  --container-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Meiryo",
    sans-serif;
  line-height: 1.8;
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.22), transparent 30%),
    linear-gradient(180deg, #f8fcff 0%, #ffffff 42%, #f4fbff 100%);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 40px, var(--container-width));
  margin: 0 auto;
}

/* ==============================
   Header
============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 252, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 800;
  font-size: 22px;
  background: linear-gradient(135deg, #0f7896, #7dd3fc);
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.25);
}

.brand-text {
  display: grid;
  line-height: 1.25;
}

.brand-text strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-text small {
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-size: 14px;
  font-weight: 700;
}

.global-nav a {
  color: #334155;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.global-nav a:hover {
  color: var(--color-primary);
}

.nav-contact {
  padding: 10px 16px;
  color: #ffffff !important;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-text);
  cursor: pointer;
}

/* ==============================
   Common components
============================== */

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-heading p {
  color: var(--color-muted);
  font-size: 16px;
}

.eyebrow {
  color: var(--color-primary);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid .card {
  padding: 30px;
}

.grid .card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.grid .card p {
  color: var(--color-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.4;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  box-shadow: 0 14px 28px rgba(14, 116, 144, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(14, 116, 144, 0.32);
}

.btn-secondary {
  color: var(--color-primary-dark);
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: #ffffff;
}

.btn-secondary:hover {
  background: var(--color-primary-soft);
}

.btn-primary.light {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.2);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==============================
   Hero
============================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.96) 0%, rgba(248, 252, 255, 0.88) 48%, rgba(248, 252, 255, 0.78) 100%),
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.38), transparent 34%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 60px;
  z-index: -1;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(56, 189, 248, 0.26), transparent 68%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 48px;
  align-items: center;
}

.hero h1 {
  margin: 14px 0 22px;
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1.16;
  letter-spacing: 0.05em;
}

.lead {
  max-width: 680px;
  color: #475569;
  font-size: 17px;
  line-height: 2;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-list li {
  padding: 8px 14px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric {
  padding: 16px;
  border: 1px solid rgba(14, 116, 144, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.metric strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 22px;
  line-height: 1.2;
}

.metric span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.6;
}

.hero-card {
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.24);
}

.hero-card h2 {
  position: relative;
  margin: 8px 0 22px;
  font-size: 30px;
  line-height: 1.4;
}

.check-list {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #334155;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--color-primary);
  font-size: 12px;
  line-height: 1;
}

.muted {
  color: var(--color-muted);
}

/* ==============================
   Accent section
============================== */

.section-accent {
  background:
    linear-gradient(180deg, rgba(230, 247, 253, 0.6) 0%, rgba(255, 255, 255, 0.95) 100%);
}

/* ==============================
   Real service site preview section
============================== */

.service-preview-section {
  background:
    radial-gradient(circle at top left, rgba(125, 211, 252, 0.22), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.service-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.service-site-card {
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.96);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.service-site-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  border-color: rgba(14, 116, 144, 0.22);
}

.service-site-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.site-preview-window {
  margin: 20px 20px 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
}

.site-preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #f8fafc 0%, #edf6fb 100%);
}

.site-preview-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
  flex: 0 0 auto;
}

.site-preview-bar span:nth-child(1) {
  background: #fca5a5;
}

.site-preview-bar span:nth-child(2) {
  background: #fde68a;
}

.site-preview-bar span:nth-child(3) {
  background: #86efac;
}

.site-preview-bar small {
  margin-left: 8px;
  color: #64748b;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-preview-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef6fb;
}

.site-preview-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(15, 23, 42, 0.16) 100%);
}

.site-preview-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.service-site-card:hover .site-preview-image img {
  transform: scale(1.035);
}

.hakamori-window {
  background: #f7f3ee;
}

.pcschool-window {
  background: #fff3e0;
}

.service-site-body {
  padding: 24px 26px 28px;
}

.service-site-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  margin: 0 0 12px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-site-body h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.service-site-body p {
  margin: 0 0 18px;
  color: #475569;
  line-height: 1.9;
}

.service-site-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.service-site-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.16);
  color: #0f4c5c;
  background: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

/* ==============================
   Dark CTA
============================== */

.section-dark {
  background:
    linear-gradient(135deg, #0f4c5c 0%, #0f7896 52%, #38bdf8 100%);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.cta-box .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.cta-box h2 {
  margin: 8px 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.4;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.86);
}

/* ==============================
   Footer
============================== */

.site-footer {
  padding: 60px 0 24px;
  color: #dbeafe;
  background: #0f172a;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
  gap: 40px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.site-footer p {
  color: #cbd5e1;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 16px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
}

/* ==============================
   Responsive
============================== */

@media (max-width: 980px) {
  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .global-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .global-nav a:hover {
    background: var(--color-primary-soft);
  }

  .nav-contact {
    margin-top: 6px;
    text-align: center;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 720px;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .service-site-grid {
    grid-template-columns: 1fr;
  }

  .site-preview-image {
    aspect-ratio: 16 / 9;
  }

  .cta-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container-width));
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 68px 0 56px;
  }

  .hero h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .lead {
    font-size: 16px;
  }

  .mini-metrics {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .button-row,
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card,
  .grid .card,
  .cta-box {
    padding: 26px;
    border-radius: 22px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .brand-text strong {
    font-size: 15px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .global-nav {
    top: 72px;
  }

  .section-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .site-preview-window {
    margin: 14px 14px 0;
    border-radius: 18px;
  }

  .site-preview-bar {
    min-height: 38px;
    padding: 9px 12px;
  }

  .site-preview-bar small {
    font-size: 11px;
  }

  .site-preview-image {
    aspect-ratio: 4 / 3;
  }

  .service-site-body {
    padding: 20px 18px 22px;
  }

  .service-site-body h3 {
    font-size: 23px;
  }

  .service-site-body p {
    font-size: 15px;
  }
}