:root {
  --color-white: #ffffff;
  --color-bg: #f5f5f3;
  --color-bg-soft: #f1f1ef;

  --color-black: #111111;
  --color-text: #1a1a1a;
  --color-muted: #555555;

  --color-red: #ef3f57;
  --color-red-deep: #d92f47;

  --color-border: #e7e7e2;

  --font-ja: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;

  --shadow-soft: 0 18px 45px rgba(17, 17, 17, 0.08);
  --radius-lg: 30px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.9;
  font-weight: 600;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 231, 226, 0.9);
}

.header-inner {
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--color-black);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 14px;
  letter-spacing: 0.04em;
}

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

.global-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 900;
  color: var(--color-black);
}

.global-nav a {
  position: relative;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 3px;
  background: var(--color-red);
  transition: width 0.25s ease;
}

.global-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-position: center right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.96) 34%,
      rgba(255, 255, 255, 0.78) 52%,
      rgba(255, 255, 255, 0.18) 74%,
      rgba(255, 255, 255, 0.02) 100%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 118px 0 132px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 20px;
  color: var(--color-red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-black);
  font-size: clamp(64px, 7vw, 112px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 900;
}

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

.hero-lead {
  max-width: 700px;
  margin: 34px 0 0;
  color: #2d2d2d;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 2;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 46px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.03em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: var(--color-white);
  background: var(--color-red);
  box-shadow: 0 14px 28px rgba(239, 63, 87, 0.22);
}

.btn-primary:hover {
  background: var(--color-red-deep);
  box-shadow: 0 18px 36px rgba(239, 63, 87, 0.28);
}

.btn-outline {
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(17, 17, 17, 0.18);
}

.btn-outline:hover {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

/* Common */
.section {
  padding: 132px 0;
}

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

.container.narrow {
  width: min(900px, calc(100% - 40px));
}

.section h2 {
  margin: 0;
  color: var(--color-black);
  font-size: clamp(38px, 4vw, 60px);
  line-height: 1.32;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.section p {
  color: var(--color-muted);
  font-size: 19px;
  line-height: 2;
  font-weight: 700;
}

.concept-section {
  background: var(--color-white);
}

.concept-section p:not(.section-kicker) {
  margin: 30px 0 0;
}

.service-section {
  background: var(--color-bg);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 54px;
}

.section-heading p:last-child {
  margin-top: 24px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  position: relative;
  min-height: 350px;
  padding: 42px 34px;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.card-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--color-red);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.service-card h3 {
  margin: 0;
  color: var(--color-black);
  font-size: 27px;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.service-card p {
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 17px;
  line-height: 2;
  font-weight: 700;
}

.service-card a,
.text-link {
  display: inline-flex;
  margin-top: 30px;
  color: var(--color-black);
  font-size: 16px;
  font-weight: 900;
  border-bottom: 3px solid var(--color-red);
}

.note {
  display: inline-flex;
  margin-top: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--color-black);
  background: #eeeeea;
  font-size: 14px;
  font-weight: 900;
}

.relation-section {
  background: var(--color-white);
}

.relation-box {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  padding: 62px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(17, 17, 17, 0.035), rgba(239, 63, 87, 0.055)),
    var(--color-white);
  border: 1px solid var(--color-border);
}

.relation-text p {
  margin: 0;
}

.relation-text p + p {
  margin-top: 20px;
}

.template-section {
  background: var(--color-bg-soft);
}

.template-box {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: center;
  padding: 66px;
  border-radius: 36px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.template-box p {
  margin-top: 26px;
}

.template-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

/* Footer */
.site-footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: 64px 0;
}

.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer-brand {
  color: var(--color-white);
  font-size: 19px;
}

.site-footer p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--color-white);
}

.pc-only {
  display: inline;
}

/* Tablet */
@media (max-width: 900px) {
  .header-inner {
    height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: var(--color-bg-soft);
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--color-black);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

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

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

  .global-nav a {
    padding: 14px 16px;
  }

  .global-nav a::after {
    display: none;
  }

  .hero {
    min-height: 760px;
    background-position: center right;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.96) 46%,
        rgba(255, 255, 255, 0.72) 68%,
        rgba(255, 255, 255, 0.24) 100%
      );
  }

  .hero-inner {
    padding: 96px 0 112px;
  }

  .hero h1 {
    max-width: 690px;
    font-size: clamp(52px, 9vw, 82px);
  }

  .service-grid,
  .relation-box,
  .template-box {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .header-inner,
  .container,
  .container.narrow,
  .footer-inner,
  .hero-inner {
    width: min(100% - 28px, 1120px);
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

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

  .hero {
    min-height: 720px;
    background-position: 68% center;
  }

  .hero-overlay {
    background:
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.99) 0%,
        rgba(255, 255, 255, 0.97) 62%,
        rgba(255, 255, 255, 0.78) 100%
      );
  }

  .hero-inner {
    padding: 84px 0 88px;
  }

  .eyebrow,
  .section-kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(43px, 12vw, 58px);
    line-height: 1.15;
    letter-spacing: -0.06em;
  }

  .hero-lead {
    margin-top: 30px;
    font-size: 18px;
    line-height: 1.9;
    font-weight: 800;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 38px;
  }

  .btn {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
  }

  .section {
    padding: 82px 0;
  }

  .section h2 {
    font-size: 34px;
    line-height: 1.42;
  }

  .section p {
    font-size: 17px;
    line-height: 2;
  }

  .service-card {
    padding: 34px 24px;
  }

  .service-card h3 {
    font-size: 24px;
  }

  .service-card p {
    font-size: 16px;
  }

  .relation-box,
  .template-box {
    padding: 36px 24px;
    border-radius: 26px;
  }

  .pc-only {
    display: none;
  }
}