/*
 * kazuma-tokuno — styles.css
 *
 * このファイルは「読みやすさ」のための区切りコメントのみ追加している。
 * セレクタ・宣言・メディアクエリの順序は従来のカスケード互換のため変更していない。
 */

/* --- Tokens (CSS variables) --- */

:root {
  --ink: #00283a;
  --ink-soft: #38536a;
  --bg: #f4f5f7;
  --panel: #fcfcfe;
  --accent: #5d90c7;
  --accent-soft: #dbeaf7;
  --line: rgba(0, 40, 58, 0.12);
  --shadow: 0 18px 50px rgba(0, 40, 58, 0.1);
  --shadow-soft: 0 10px 28px rgba(0, 40, 58, 0.08);
  --sidebar: 390px;
  --serif: "Cormorant Garamond", "Noto Serif JP", serif;
  --jp-serif: "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", sans-serif;
}

/* --- Service page --- */

.service-page .site-shell {
  margin-left: 0;
}

@media (min-width: 881px) {
  .service-page .site-header {
    top: 0;
    right: 0;
    left: 0;
    min-height: 96px;
    padding: 18px 70px;
    background: rgba(252, 252, 254, 0.94);
    border-bottom: 1px solid rgba(0, 40, 58, 0.08);
    box-shadow: 0 12px 32px rgba(0, 40, 58, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(18px);
  }

  .service-page .site-header::before {
    display: none;
  }

  .service-page .site-header nav {
    gap: clamp(22px, 3.2vw, 52px);
  }
}

.service-page.is-scrolled .site-header nav a,
.service-page.is-scrolled .site-header .theme-toggle {
  color: var(--ink);
}

.service-page.is-scrolled .site-header a::after {
  background: var(--accent);
}

.service-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 16% 24%,
      rgba(93, 144, 199, 0.15),
      transparent 28vw
    ),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #f7f8fa 100%);
}

.service-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  margin: 0 14px;
  border-radius: 0 0 28px 28px;
  padding: 190px 80px 130px;
}

.service-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(0, 40, 58, 0.72),
      rgba(0, 40, 58, 0.44) 42%,
      rgba(0, 40, 58, 0.16)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 40, 58, 0.34));
}

.service-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96);
}

.service-hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.service-hero__content p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.service-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.06em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.service-hero .outline-link {
  min-width: 280px;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.service-hero .outline-link::before {
  background: #fff;
}

.service-hero .outline-link:hover {
  color: var(--ink);
}

.service-detail,
.service-works,
.service-list,
.service-contact {
  width: min(100%, 1560px);
  margin-inline: auto;
}

.service-detail__title {
  margin-top: 18px;
}

.service-feature-card,
.service-price-card,
.service-maintenance-card,
.service-work-card,
.service-contact-card {
  background: rgba(252, 252, 254, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.service-feature-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: clamp(34px, 5vw, 70px);
  align-items: center;
  min-height: 290px;
  padding: clamp(34px, 5vw, 58px);
  border-radius: 14px;
  overflow: hidden;
}

.service-feature-card::before {
  position: absolute;
  top: -20px;
  left: 46px;
  width: 82%;
  height: 34px;
  content: "";
  border-radius: 10px 10px 0 0;
  background: rgba(252, 252, 254, 0.38);
}

.service-feature-card::after,
.service-contact-card::after {
  position: absolute;
  right: 34px;
  bottom: 12px;
  color: rgba(93, 144, 199, 0.72);
  content: "''";
  font-family: var(--serif);
  font-size: 84px;
  line-height: 0.7;
  transform: rotate(180deg);
}

.service-feature-card img {
  width: 100%;
  height: 190px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(0, 40, 58, 0.08);
}

.service-feature-card h3 {
  margin: 0 0 18px;
  font-family: var(--jp-serif);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.service-feature-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2;
}

.service-eyebrow {
  margin-bottom: 10px !important;
  color: var(--accent) !important;
  font-family: var(--serif);
  font-size: 13px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-price-block {
  margin-top: 76px;
}

.service-price-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.service-price-heading h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: 0.06em;
}

.service-price-heading p {
  max-width: 540px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

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

.service-price-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1120px;
}

.service-price-card {
  position: relative;
  min-height: 480px;
  padding: 44px 36px 38px;
  border-radius: 12px;
  text-align: center;
  overflow: hidden;
}

.service-price-card--popular::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 122px;
  height: 122px;
  content: "";
  background: var(--accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.service-price-card > span {
  position: absolute;
  top: 26px;
  right: 8px;
  z-index: 1;
  color: #fff;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(45deg);
}

.service-price-card h3 {
  margin: 0 0 28px;
  font-family: var(--jp-serif);
  font-size: 24px;
  letter-spacing: 0.04em;
}

.service-price {
  margin: 0 0 28px;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.service-price strong {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(46px, 4.8vw, 68px);
  letter-spacing: 0.03em;
}

.service-target {
  min-height: 64px;
  margin: 0 0 26px;
  padding-top: 24px;
  border-top: 2px dashed rgba(0, 40, 58, 0.12);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
}

.service-price-card ul,
.service-maintenance-card ul {
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2.05;
  list-style: none;
}

.service-price-card li::before,
.service-maintenance-card li::before {
  color: var(--accent);
  content: "• ";
}

.service-maintenance-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) auto minmax(260px, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: 34px;
  padding: 36px 42px;
  border-radius: 12px;
}

.service-maintenance-card h3 {
  margin: 0 0 10px;
  font-family: var(--jp-serif);
  font-size: 30px;
}

.service-maintenance-card p {
  margin: 0;
  color: var(--ink-soft);
}

.service-maintenance-card .service-price {
  margin: 0;
}

.service-maintenance-card .service-price strong {
  font-size: clamp(42px, 4vw, 58px);
}

.service-works {
  padding-top: 42px;
}

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

.service-work-card {
  overflow: hidden;
  border-radius: 12px;
}

.service-work-card a {
  display: block;
  overflow: hidden;
}

.service-work-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.45s ease;
}

.service-work-card:nth-child(2) img {
  object-position: 44% center;
}

.service-work-card:nth-child(3) img {
  object-position: 68% center;
}

.service-work-card a:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.045);
}

.service-work-card p {
  margin: 24px 26px 8px;
  color: var(--accent);
  font-size: 12px;
}

.service-work-card h3 {
  margin: 0 26px 28px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
}

.service-list {
  padding-top: 34px;
}

.service-list-item {
  margin-bottom: 78px;
}

.service-list-item:last-child {
  margin-bottom: 0;
}

.service-contact {
  padding-top: 30px;
}

.service-contact-card {
  position: relative;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 14px;
  overflow: hidden;
}

.service-contact-card p {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-contact-card h2 {
  max-width: 840px;
  margin: 0 0 30px;
  font-family: var(--jp-serif);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.55;
}

.is-dark .service-feature-card,
.is-dark .service-price-card,
.is-dark .service-maintenance-card,
.is-dark .service-work-card,
.is-dark .service-contact-card {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .service-target {
  border-top-color: rgba(234, 246, 255, 0.14);
}

@media (max-width: 1180px) {
  .service-page .site-header {
    right: 42px;
    left: 42px;
  }

  .service-hero,
  .service-detail,
  .service-works,
  .service-list,
  .service-contact {
    padding-right: 42px;
    padding-left: 42px;
  }

  .service-feature-card,
  .service-maintenance-card {
    grid-template-columns: 1fr;
  }

  .service-price-grid,
  .service-work-grid {
    grid-template-columns: 1fr;
  }

  .service-price-grid--two {
    max-width: none;
  }
}

@media (max-width: 880px) {
  .service-page .site-header,
  .service-page .is-rail-hidden .site-header {
    left: 0;
    right: 0;
  }

  .service-hero {
    min-height: 560px;
    margin: 0;
    padding: 130px 24px 96px;
    border-radius: 0;
  }

  .service-hero::before {
    background:
      linear-gradient(90deg, rgba(0, 40, 58, 0.78), rgba(0, 40, 58, 0.32)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 40, 58, 0.36));
  }

  .service-hero h1 {
    max-width: 7em;
    margin-inline: auto;
    font-size: clamp(34px, 10vw, 46px);
    line-break: anywhere;
  }

  .service-hero .outline-link {
    min-width: 0;
    width: min(100%, 280px);
  }

  .service-detail,
  .service-works,
  .service-list,
  .service-contact {
    padding-right: 24px;
    padding-left: 24px;
  }

  .service-feature-card {
    gap: 26px;
    min-height: 0;
    padding: 28px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .service-feature-card::before {
    left: 28px;
    width: 70%;
  }

  .service-feature-card::after,
  .service-contact-card::after {
    right: 22px;
    font-size: 64px;
  }

  .service-feature-card img {
    height: 190px;
  }

  .service-price-heading {
    display: block;
  }

  .service-price-heading p {
    margin-top: 12px;
  }

  .service-price-card {
    min-height: 0;
    padding: 38px 26px 32px;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .service-price {
    font-size: 18px;
  }

  .service-price strong {
    font-size: clamp(38px, 12vw, 54px);
  }

  .service-target {
    min-height: 0;
  }

  .service-maintenance-card {
    padding: 30px 26px;
  }

  .service-work-card img {
    height: 220px;
  }

  .service-page .service-price-heading,
  .service-page .service-target,
  .service-page .service-price-card li,
  .service-page .service-feature-card p,
  .service-page .service-contact-card h2 {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* --- Base: reset & global typography --- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 80% 6%,
      rgba(93, 144, 199, 0.18),
      transparent 35vw
    ),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #f7f8fa 100%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.03em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image: radial-gradient(rgba(0, 40, 58, 0.07) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, transparent);
  opacity: 0.35;
}

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

img {
  display: block;
  max-width: 100%;
}

.mobile-only {
  display: none;
}

/* --- Layout: fixed profile sidebar --- */

.profile-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  padding: 56px 52px 32px;
  background: rgba(252, 252, 254, 0.92);
  border-right: 1px solid rgba(0, 40, 58, 0.08);
  box-shadow: 14px 0 40px rgba(0, 40, 58, 0.06);
  backdrop-filter: blur(22px);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-rail__inner {
  display: flex;
  height: 100%;
  min-height: 720px;
  flex-direction: column;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  width: 248px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #eef4f9);
  box-shadow: var(--shadow-soft);
}

.avatar {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  position: absolute;
  right: 16px;
  bottom: 34px;
  width: 36px;
  height: 36px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(93, 144, 199, 0.35);
}

.rail-name {
  margin-top: 28px;
  text-align: center;
}

.jp-name {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.en-name {
  margin: 4px 0 18px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.04em;
}

.role {
  margin: 0;
  color: rgba(0, 40, 58, 0.45);
  font-size: 13px;
}

.mini-profile {
  width: 100%;
  margin: 28px 0 0;
  padding: 22px 0;
  border-block: 1px dashed rgba(0, 40, 58, 0.14);
}

.mini-profile div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
  font-size: 14px;
}

.mini-profile div:last-child {
  margin-bottom: 0;
}

.mini-profile dt,
.mini-profile dd {
  margin: 0;
}

.mini-profile dt {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mini-profile dt span {
  color: var(--ink);
  font-size: 12px;
}

.mini-profile dd {
  color: var(--ink-soft);
}

.socials {
  display: flex;
  width: 100%;
  justify-content: space-around;
  margin: 28px 0 20px;
}

.socials a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--ink);
  font-size: 16px;
}

.rail-actions {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-top: auto;
}

/* --- Home page: profile rail spacing (desktop) --- */

.home-page .rail-actions {
  margin-top: 22px;
}

/* --- About page: profile rail spacing (desktop) --- */

.about-page .rail-actions {
  margin-top: 22px;
}

/* --- Shared controls (buttons / text links) --- */

.button,
.outline-link,
.pill-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.button {
  min-height: 50px;
  padding: 0 28px;
  border: 2px solid rgba(93, 144, 199, 0.45);
  font-size: 14px;
}

.button--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 24px rgba(93, 144, 199, 0.24);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
}

.button,
.outline-link,
.pill-link {
  --btn-x: 0px;
  --btn-y: 0px;
  transition:
    color 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: translate(var(--btn-x), var(--btn-y));
  will-change: transform;
}

.button:hover,
.outline-link:hover,
.pill-link:hover {
  box-shadow: 0 18px 32px rgba(93, 144, 199, 0.28);
}

.button.is-pressed,
.outline-link.is-pressed,
.pill-link.is-pressed {
  transform: translate(var(--btn-x), var(--btn-y)) scale(0.97);
}

/* --- App shell: main column & header --- */

.site-shell {
  min-height: 100vh;
  margin-left: var(--sidebar);
  transition: margin-left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-header {
  position: fixed;
  top: 26px;
  right: 128px;
  left: calc(var(--sidebar) + 70px);
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: left 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 881px) {
  .site-header::before {
    content: "";
    position: absolute;
    top: -14px;
    right: -128px;
    bottom: -14px;
    left: -70px;
    z-index: -1;
    border-radius: 0;
    background: rgba(15, 25, 38, 0.82);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    transition: opacity 0.35s ease;
  }

  .is-scrolled .site-header::before {
    opacity: 1;
  }

  .site-header nav a,
  .site-header .theme-toggle {
    transition: color 0.35s ease;
  }

  .site-header a::after {
    transition:
      transform 0.28s ease,
      background-color 0.35s ease;
  }

  .is-scrolled .site-header nav a,
  .is-scrolled .site-header .theme-toggle {
    color: #ffffff;
  }

  .is-scrolled .site-header a::after {
    background: #ffffff;
  }
}

.mobile-brand {
  display: none;
}

.menu-toggle {
  display: none;
}

.mobile-menu-label {
  display: none;
}

@media (min-width: 881px) {
  .menu-toggle,
  .mobile-menu-label {
    display: none !important;
  }
}

.mobile-brand::after {
  display: none;
}

.site-header nav {
  display: flex;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  pointer-events: auto;
}

.site-header a {
  position: relative;
  font-family: var(--serif);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.site-header nav a.contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: none;
  box-shadow: 0 14px 24px rgba(93, 144, 199, 0.24);
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    color 0.28s ease;
}

.site-header nav a.contact-cta::after {
  display: none;
}

.site-header nav a.contact-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(93, 144, 199, 0.3);
}

.site-header nav a.contact-cta span[aria-hidden="true"] {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
}

.service-page.is-scrolled .site-header nav a.contact-cta,
.works-page.is-scrolled .site-header nav a.contact-cta,
.blog-page.is-scrolled .site-header nav a.contact-cta,
.contact-page.is-scrolled .site-header nav a.contact-cta,
.about-page.is-scrolled .site-header nav a.contact-cta {
  color: #fff;
}

.site-header a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.site-header a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.theme-toggle {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  pointer-events: auto;
}

.theme-toggle__switch {
  position: relative;
  width: 43px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.theme-toggle__switch::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: #fff;
  transition: transform 0.28s ease;
}

/* --- Hero --- */

.hero {
  position: relative;
  display: grid;
  min-height: 700px;
  align-items: center;
  overflow: hidden;
  padding: 130px 80px 220px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(244, 245, 247, 0.98) 0%,
      rgba(244, 245, 247, 0.86) 33%,
      rgba(244, 245, 247, 0.38) 70%
    ),
    linear-gradient(
      180deg,
      rgba(244, 245, 247, 0.9),
      rgba(244, 245, 247, 0) 56%,
      var(--bg)
    );
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.9) contrast(0.95);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero__lead {
  margin: 0 0 36px;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.9;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(86px, 11vw, 150px);
  font-weight: 700;
  line-height: 0.84;
  letter-spacing: -0.055em;
}

.outline-link {
  position: relative;
  min-width: 218px;
  min-height: 58px;
  margin-top: 56px;
  padding: 0 32px;
  border: 2px solid var(--accent);
  background: rgba(252, 252, 254, 0.32);
  color: var(--ink);
  overflow: hidden;
}

.outline-link::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: var(--accent);
  transform: translateX(-105%);
  transition: transform 0.35s ease;
}

.outline-link:hover {
  color: #fff;
}

.outline-link:hover::before {
  transform: translateX(0);
}

.scroll-cue {
  position: absolute;
  right: 48px;
  bottom: 160px;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 18px;
  color: var(--ink);
  writing-mode: vertical-rl;
}

.scroll-cue span {
  position: relative;
  width: 30px;
  height: 52px;
  border: 3px solid var(--ink);
  border-radius: 999px;
}

.scroll-cue span::after {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 4px;
  height: 10px;
  border-radius: 99px;
  content: "";
  background: var(--ink);
  animation: wheel 1.6s ease-in-out infinite;
}

.scroll-cue p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
}

/* --- Stats --- */

.stats {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: -150px 80px 0;
}

.stat-card,
.service-card,
.work-card,
.blog-card,
.testimonial-card,
.contact-card,
.quote-card,
.profile-summary {
  background: rgba(252, 252, 254, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.stat-card {
  min-height: 230px;
  padding: 32px 30px;
  border-radius: 14px;
  text-align: center;
}

.stat-card__icon,
.service-card__icon {
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 22px rgba(93, 144, 199, 0.25);
}

.stat-card__num {
  display: flex;
  min-height: 74px;
  align-items: baseline;
  justify-content: center;
  gap: 0.12em;
  margin: 12px 0 2px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.stat-card__num small {
  font: inherit;
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(-0.04em);
}

.stat-card h2 {
  margin: 8px 0 14px;
  font-family: var(--jp-serif);
  font-size: 18px;
}

.stat-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

/* --- Section primitives (spacing / headings) --- */

.section-pad {
  padding: 82px 80px;
}

.section-anchor {
  scroll-margin-top: 90px;
}

.section-heading span,
.section-heading > p,
.section-split > p {
  color: var(--ink-soft);
}

.section-heading span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(50px, 6vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.section-heading p {
  position: relative;
  margin: 16px 0 0;
  font-size: 13px;
}

.section-heading p::after {
  display: inline-block;
  width: 74px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  content: "";
  background: rgba(0, 40, 58, 0.18);
}

/* --- Profile --- */

.profile__top {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 54px;
  align-items: start;
}

.profile-visual {
  position: relative;
}

.profile-visual::after {
  position: absolute;
  top: 26px;
  right: -36px;
  width: 80px;
  height: 150px;
  content: "";
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.22;
}

.profile-visual img {
  width: min(100%, 560px);
  height: 470px;
  object-fit: cover;
  object-position: center;
}

.signature {
  position: absolute;
  right: -24px;
  bottom: -20px;
  color: var(--accent);
  font-family: "Cormorant Garamond", cursive;
  font-size: 34px;
  font-style: italic;
  font-weight: 600;
  transform: rotate(-7deg);
}

.profile-summary {
  display: grid;
  grid-template-columns: 0.5fr 1fr;
  gap: 42px;
  margin-top: -160px;
  padding: 34px;
  border-radius: 18px;
  width: min(570px, 100%);
}

.profile-summary h3 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: 34px;
}

.profile-summary p {
  margin: 4px 0;
  color: var(--accent);
}

.profile-summary p:last-child {
  color: rgba(0, 40, 58, 0.5);
  font-size: 12px;
}

.profile-summary dl {
  margin: 52px 0 0;
}

.profile-summary dl > div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.7;
}

.profile-summary dt,
.profile-summary dd {
  margin: 0;
}

.profile-summary dt {
  color: var(--accent);
}

.quote-card {
  position: relative;
  margin-top: 44px;
  padding: 58px 70px 58px 118px;
  border-radius: 16px;
}

.quote-mark {
  position: absolute;
  top: 54px;
  left: 54px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 84px;
  line-height: 0.8;
  opacity: 0.9;
}

.prose {
  color: var(--ink-soft);
  font-family: var(--jp-serif);
  font-size: 15px;
  line-height: 2.35;
}

.prose p {
  margin: 0 0 24px;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-split {
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 60px;
  align-items: start;
  margin-bottom: 38px;
}

.section-split > p {
  max-width: 560px;
  margin: 18px 0 0;
  line-height: 1.9;
}

@media (min-width: 1181px) {
  .home-features .section-split {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "heading heading"
      "desc link";
    gap: 22px 60px;
  }

  .home-features .section-split .section-heading {
    grid-area: heading;
  }

  .home-features .section-split > p {
    grid-area: desc;
    margin-top: 12px;
    max-width: 640px;
  }

  .home-features .section-split .pill-link {
    grid-area: link;
    align-self: end;
    justify-self: end;
  }
}

.pill-link {
  min-height: 46px;
  padding: 0 28px;
  align-self: center;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 12px 22px rgba(93, 144, 199, 0.22);
}

/* --- Service --- */

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

.service-card {
  position: relative;
  min-height: 420px;
  padding: 30px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

.service-card::after {
  position: absolute;
  right: 24px;
  bottom: 20px;
  color: rgba(93, 144, 199, 0.08);
  content: attr(data-num);
  font-family: var(--serif);
  font-size: 100px;
}

.service-card--popular {
  border-color: transparent;
  box-shadow:
    0 18px 44px rgba(93, 144, 199, 0.09),
    var(--shadow-soft);
  background: linear-gradient(
    180deg,
    rgba(93, 144, 199, 0.06),
    rgba(252, 252, 254, 0.9)
  );
}

.service-card--popular::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  border-radius: inherit;
  border: 1px solid rgba(93, 144, 199, 0.22);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 10px 26px rgba(93, 144, 199, 0.12);
  pointer-events: none;
}

.service-card--popular::after {
  z-index: 0;
}

.service-card--popular {
  --service-popular-warm: rgba(217, 128, 74, 0.32);
}

.service-card--popular .service-card__image {
  box-shadow: 0 16px 30px rgba(0, 40, 58, 0.08);
}

.service-card--popular::marker {
  content: "";
}

.service-card--popular::before {
  border-color: rgba(93, 144, 199, 0.18);
}

.service-card--popular::before {
  background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0)
    )
    padding-box;
}

.service-card--popular::before {
  border-left: 4px solid var(--service-popular-warm);
}

.service-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(93, 144, 199, 0.24);
  background: rgba(252, 252, 254, 0.82);
  box-shadow: 0 14px 26px rgba(0, 40, 58, 0.08);
  color: rgba(0, 40, 58, 0.72);
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(14px);
  pointer-events: none;
}

.service-card--popular:hover .service-card__badge {
  border-color: rgba(93, 144, 199, 0.34);
  color: rgba(0, 40, 58, 0.86);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  color: var(--accent);
}

.service-card__image {
  display: block;
  width: 100%;
  height: clamp(150px, 16vw, 180px);
  margin-bottom: 18px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--accent-soft);
}

.service-card > p:first-of-type {
  margin: 4px 0 2px;
  color: var(--accent);
  font-family: var(--serif);
}

.service-card h3 {
  margin: 0 0 22px;
  min-height: 42px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.02em;
}

.service-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

/* --- Home renewal sections --- */

.hero--homepage {
  min-height: 760px;
  padding-bottom: 170px;
}

.hero--homepage::before {
  background:
    linear-gradient(
      90deg,
      rgba(244, 245, 247, 0.98) 0%,
      rgba(244, 245, 247, 0.88) 39%,
      rgba(244, 245, 247, 0.34) 74%
    ),
    linear-gradient(
      180deg,
      rgba(244, 245, 247, 0.9),
      rgba(244, 245, 247, 0) 58%,
      var(--bg)
    );
}

.hero--homepage .hero__bg {
  object-position: center;
  filter: saturate(0.92) contrast(0.95);
}

.hero--homepage .hero__content {
  max-width: 780px;
}

.hero--homepage h1 {
  font-family: var(--jp-serif);
  font-size: clamp(42px, 5.5vw, 74px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.hero__body {
  max-width: 700px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 2.05;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero__actions .button,
.hero__actions .outline-link {
  margin-top: 0;
}

.hero__trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(93, 144, 199, 0.22);
  border-radius: 999px;
  background: rgba(252, 252, 254, 0.68);
  color: var(--ink);
  font-size: 13px;
  box-shadow: 0 12px 22px rgba(0, 40, 58, 0.05);
  backdrop-filter: blur(14px);
}

.hero__trust-list li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--accent);
}

.home-worry-list,
.home-feature-list,
.home-price-grid,
.home-flow-list {
  display: grid;
  gap: 18px;
}

.home-worry-list {
  grid-template-columns: repeat(6, 1fr);
}

.home-worry-list article,
.home-education-card,
.home-feature-list article,
.home-seo-note,
.home-flow-list article,
.home-faq-list details {
  background: rgba(252, 252, 254, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.home-worry-list article {
  position: relative;
  grid-column: span 2;
  min-height: 132px;
  padding: 34px 30px 30px 58px;
  border-radius: 12px;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
}

.home-worry-list article:nth-child(4),
.home-worry-list article:nth-child(5) {
  grid-column: span 3;
}

.home-worry-list article::before {
  position: absolute;
  top: 38px;
  left: 30px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.home-education {
  padding-top: 24px;
}

.home-education-card {
  position: relative;
  padding: clamp(42px, 6vw, 78px);
  border-radius: 14px;
  overflow: hidden;
}

.home-education-card::after {
  position: absolute;
  right: clamp(28px, 5vw, 62px);
  bottom: -22px;
  color: rgba(93, 144, 199, 0.14);
  content: "WEB";
  font-family: var(--serif);
  font-size: clamp(88px, 14vw, 190px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.home-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-education-card h2 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 0 28px;
  font-family: var(--jp-serif);
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.55;
  letter-spacing: 0.06em;
}

.home-education-card .prose {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.home-feature-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 24px;
  align-items: stretch;
}

.home-feature-main {
  min-height: 100%;
}

.home-feature-main .service-card__image {
  height: clamp(210px, 24vw, 320px);
}

.home-feature-main h3 {
  min-height: 0;
  font-size: clamp(24px, 2.6vw, 34px);
}

.home-feature-list {
  grid-template-columns: repeat(2, 1fr);
}

.home-feature-list article {
  position: relative;
  min-height: 210px;
  padding: 30px 28px;
  border-radius: 10px;
}

.home-feature-list article:last-child {
  grid-column: 1 / -1;
}

.home-feature-list span,
.home-flow-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(93, 144, 199, 0.42);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
}

.home-feature-list h3,
.home-flow-list h3,
.home-seo-note h3 {
  margin: 20px 0 12px;
  font-family: var(--jp-serif);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.home-feature-list p,
.home-flow-list p,
.home-seo-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

.home-price {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    radial-gradient(circle at 92% 8%, rgba(93, 144, 199, 0.14), transparent 28vw);
}

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

.home-price-card {
  min-height: 0;
  padding: 40px 30px 34px;
  text-align: left;
}

.home-price-card .service-price,
.home-price-card .service-target {
  text-align: left;
}

.home-price-card .service-target {
  font-weight: 900;
  font-size: 17px;
  line-height: 1.95;
}

.home-price-card .service-price {
  font-size: 18px;
}

.home-price-card .service-price strong {
  font-size: clamp(42px, 3.8vw, 56px);
}

.home-price-card h3 {
  margin-bottom: 20px;
  font-size: 25px;
}

.home-price-card h4 {
  margin: 28px 0 10px;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.home-price-card__label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(217, 128, 74, 0.16);
  color: #9d5d36;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

@media (min-width: 881px) {
  .home-price-card.service-price-card--popular::before,
  .home-price-card.service-price-card--popular > span {
    display: none;
  }

  .home-price-card {
    padding-top: 66px;
  }

  /* PC版のみ：「おすすめの人」の開始位置をカード間で揃える */
  .home-price-card h4 + ul {
    min-height: 190px;
  }

  .home-price-card.service-price-card--popular {
    border: 2px solid rgba(93, 144, 199, 0.5);
    box-shadow:
      0 24px 54px rgba(93, 144, 199, 0.18),
      var(--shadow-soft);
    transform: translateY(-10px);
  }

  .home-price-card__label {
    position: absolute;
    top: 24px;
    left: 30px;
    z-index: 2;
    margin: 0;
  }
}

.home-maintenance-card {
  margin-top: 24px;
}

.home-seo-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
  padding: 34px 38px;
  border-radius: 12px;
}

.home-seo-note h3 {
  margin-top: 0;
  font-size: clamp(22px, 2.6vw, 30px);
}

.home-flow-list {
  grid-template-columns: repeat(3, 1fr);
}

.home-flow-list article {
  position: relative;
  min-height: 230px;
  padding: 30px;
  border-radius: 10px;
}

.home-flow-list article::after {
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(93, 144, 199, 0.08);
  content: attr(data-step);
  font-family: var(--serif);
  font-size: 70px;
  line-height: 1;
}

.home-faq {
  padding-top: 54px;
}

.home-faq-list {
  display: grid;
  gap: 12px;
}

.home-faq-list details {
  border-radius: 10px;
  overflow: hidden;
}

.home-faq-list summary {
  position: relative;
  padding: 24px 68px 24px 28px;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: 18px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 28px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  content: "+";
  font-family: var(--sans);
  transform: translateY(-50%);
}

.home-faq-list details[open] summary::after {
  content: "-";
}

.home-faq-list details p {
  margin: 0;
  padding: 0 28px 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 2;
}

/* --- Works --- */

.works {
  position: relative;
  overflow: hidden;
}

.works::before {
  position: absolute;
  right: -180px;
  bottom: 40px;
  width: 520px;
  height: 520px;
  content: "";
  background: linear-gradient(135deg, rgba(93, 144, 199, 0.2), transparent 60%);
  clip-path: polygon(48% 0, 100% 28%, 72% 100%, 0 72%);
}

.works-grid {
  position: relative;
  z-index: 1;
}

.works-grid > .work-card:nth-child(n + 4) {
  display: none;
}

.work-card {
  padding: 14px 14px 26px;
  border-radius: 10px;
}

.work-card img {
  width: 100%;
  height: 155px;
  border-radius: 7px;
  object-fit: cover;
}

.work-card:nth-child(2) img {
  object-position: 35% center;
}

.work-card:nth-child(3) img {
  object-position: 68% center;
}

.work-card > p:first-of-type,
.blog-card span {
  color: var(--accent);
  font-size: 12px;
}

.work-card h3 {
  margin: 12px 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
}

.work-card p:last-of-type {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.work-card a,
.blog-card a {
  color: var(--accent);
  font-size: 13px;
}

.outline-link--center {
  display: flex;
  width: min(320px, 100%);
  margin: 34px auto 0;
}

/* --- Blog --- */

.blog {
  background: rgba(255, 255, 255, 0.32);
}

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

.blog-card {
  overflow: hidden;
  border-radius: 10px;
}

.blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card div {
  position: relative;
  padding: 28px 32px 34px;
}

.blog-card span {
  position: absolute;
  top: -22px;
  left: 22px;
  max-width: calc(100% - 44px);
  padding: 5px 16px;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.blog-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.55;
}

.blog-card p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.blog-card time {
  color: rgba(0, 40, 58, 0.38);
  font-family: var(--serif);
}

.blog-card a {
  float: right;
}

/* --- Testimonials --- */

.testimonials {
  padding-top: 54px;
}

.testimonial-slider {
  position: relative;
  margin-top: 28px;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: 14px;
}

.testimonial-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.testimonial-card {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 56px;
  align-items: center;
  padding: 34px 70px;
  border-radius: 14px;
  flex: 0 0 100%;
  min-width: 0;
}

.testimonial-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 16px;
}

.testimonial-slider[data-single="true"] .testimonial-controls {
  display: none;
}

.testimonial-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: rgba(252, 252, 254, 0.85);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition:
    color 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-arrow::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  background: var(--accent);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.testimonial-arrow--prev::before {
  transform: translateX(-105%);
}

.testimonial-arrow--next::before {
  transform: translateX(105%);
}

.testimonial-arrow > * {
  position: relative;
  z-index: 1;
}

.testimonial-arrow:hover {
  color: #fff;
  box-shadow: 0 18px 32px rgba(93, 144, 199, 0.28);
  transform: translateY(-2px);
}

.testimonial-arrow:hover::before {
  transform: translateX(0);
}

.testimonial-arrow:active {
  transform: translateY(0);
}

.testimonial-arrow__icon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-arrow--prev:hover .testimonial-arrow__icon {
  transform: translateX(-6px);
}

.testimonial-arrow--next:hover .testimonial-arrow__icon {
  transform: translateX(6px);
}

.testimonial-arrow.is-pulsing {
  animation: testimonial-arrow-pulse 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes testimonial-arrow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(93, 144, 199, 0.35);
  }
  60% {
    box-shadow: 0 0 0 14px rgba(93, 144, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(93, 144, 199, 0);
  }
}

.testimonial-person {
  text-align: center;
}

.testimonial-person img {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border: 6px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.testimonial-person h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.testimonial-person span {
  padding: 4px 18px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
}

.testimonial-text {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  color: var(--ink-soft);
  font-family: var(--jp-serif);
  line-height: 2;
}

.testimonial-text span {
  color: var(--accent-soft);
  font-family: var(--serif);
  font-size: 72px;
  line-height: 0.8;
}

.testimonial-text p {
  margin: 0;
}

/* --- Contact --- */

.contact-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  align-items: center;
  margin-top: 28px;
  padding: 48px;
  border-radius: 14px;
}

.contact-image {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.contact-card h2 {
  margin: 0 0 20px;
  font-family: var(--jp-serif);
  font-size: clamp(24px, 3vw, 34px);
}

.contact-card p {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.contact-card .button {
  margin-top: 20px;
}

/* --- Motion helpers (JS toggles classes) --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.75s ease,
    transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Layout state: rail visibility --- */

.is-rail-hidden .profile-rail {
  transform: translateX(-100%);
}

.is-rail-hidden .site-shell {
  margin-left: 0;
}

.is-rail-hidden .site-header {
  left: 70px;
}

/* --- Theme: dark mode --- */

.is-dark {
  --ink: #eaf6ff;
  --ink-soft: #b7d0e6;
  --bg: #071822;
  --panel: #102637;
  --line: rgba(234, 246, 255, 0.16);
  background: linear-gradient(180deg, #071822 0%, #0a1f2f 100%);
}

.is-dark .profile-rail,
.is-dark .stat-card,
.is-dark .service-card,
.is-dark .work-card,
.is-dark .blog-card,
.is-dark .testimonial-card,
.is-dark .contact-card,
.is-dark .quote-card,
.is-dark .profile-summary {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .service-card--popular {
  border-color: transparent;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.24),
    var(--shadow-soft);
  background: linear-gradient(
    180deg,
    rgba(93, 144, 199, 0.12),
    rgba(16, 38, 55, 0.88)
  );
}

.is-dark .service-card--popular::before {
  border-color: rgba(93, 144, 199, 0.26);
  box-shadow:
    inset 0 0 0 1px rgba(234, 246, 255, 0.06),
    0 12px 30px rgba(0, 0, 0, 0.28);
  border-left-color: rgba(217, 128, 74, 0.22);
  background: linear-gradient(
      180deg,
      rgba(234, 246, 255, 0.06),
      rgba(234, 246, 255, 0)
    )
    padding-box;
}

.is-dark .service-card__badge {
  border-color: rgba(93, 144, 199, 0.26);
  background: rgba(16, 38, 55, 0.76);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  color: rgba(234, 246, 255, 0.82);
}

.is-dark .home-worry-list article,
.is-dark .home-education-card,
.is-dark .home-feature-list article,
.is-dark .home-seo-note,
.is-dark .home-flow-list article,
.is-dark .home-faq-list details {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .hero__trust-list li {
  background: rgba(16, 38, 55, 0.68);
  border-color: rgba(234, 246, 255, 0.12);
}

.is-dark .hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 34, 0.98) 0%,
      rgba(7, 24, 34, 0.82) 38%,
      rgba(7, 24, 34, 0.36) 75%
    ),
    linear-gradient(
      180deg,
      rgba(7, 24, 34, 0.75),
      rgba(7, 24, 34, 0) 56%,
      var(--bg)
    );
}

.is-dark .theme-toggle__switch::after {
  transform: translateX(-21px);
}

/* --- Keyframes --- */

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translate(-50%, -4px);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

/* --- Responsive: tablet --- */

@media (max-width: 1180px) {
  :root {
    --sidebar: 320px;
  }

  .profile-rail {
    padding: 38px 32px 28px;
  }

  .avatar-wrap {
    width: 210px;
  }

  .hero,
  .section-pad {
    padding-right: 42px;
    padding-left: 42px;
  }

  .stats {
    margin-inline: 42px;
    grid-template-columns: 1fr;
  }

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

  .home-worry-list,
  .home-price-grid,
  .home-flow-list {
    grid-template-columns: 1fr;
  }

  .home-worry-list article,
  .home-worry-list article:nth-child(4),
  .home-worry-list article:nth-child(5) {
    grid-column: auto;
  }

  .home-feature-layout {
    grid-template-columns: 1fr;
  }

  .section-split {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .pill-link {
    justify-self: start;
  }
}

/* --- Responsive: mobile --- */

@media (max-width: 880px) {
  html,
  body {
    overflow-x: hidden;
  }

  .profile-rail {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: calc(100vw - 40px);
    margin: -76px auto 0;
    padding: 42px 28px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px 24px 0 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: none !important;
  }

  .profile-rail__inner {
    min-height: auto;
    height: auto;
    width: 100%;
    max-width: calc(100vw - 48px);
  }

  .rail-actions {
    margin-top: 22px;
    gap: 14px;
  }

  .site-shell,
  .is-rail-hidden .site-shell {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .site-header,
  .is-rail-hidden .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    max-width: 100vw;
    min-height: 78px;
    padding: 14px 20px;
    background: rgba(252, 252, 254, 0.92);
    border-bottom: 1px solid rgba(0, 40, 58, 0.08);
    box-shadow: 0 12px 32px rgba(0, 40, 58, 0.08);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    overflow: visible;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .is-menu-open .site-header::after {
    content: "";
  }

  .mobile-brand {
    display: grid;
    gap: 3px;
    position: relative;
    width: 100%;
    max-width: none;
    padding-right: 72px;
    font-family: var(--serif);
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: none;
  }

  .mobile-brand span {
    display: block;
    max-width: calc(100vw - 108px);
    overflow: hidden;
    font-size: clamp(24px, 7vw, 31px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-brand small {
    color: rgba(0, 40, 58, 0.62);
    font-family: var(--sans);
    font-size: 10px;
    letter-spacing: 0.05em;
  }

  .brand-menu-glyph {
    position: absolute;
    top: 50%;
    right: 30px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
  }

  .is-menu-open .brand-menu-glyph {
    color: transparent;
  }

  .is-menu-open .brand-menu-glyph::before {
    content: "×";
    color: var(--ink);
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    max-width: none;
    padding: 12px;
    border: 1px solid rgba(0, 40, 58, 0.08);
    border-radius: 20px;
    background: rgba(252, 252, 254, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition:
      opacity 0.22s ease,
      transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .site-header a {
    font-size: 13px;
    white-space: nowrap;
  }

  .site-header nav a {
    padding: 16px 18px;
    border-radius: 14px;
  }

  .site-header nav a.contact-cta {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 16px 28px rgba(93, 144, 199, 0.22);
  }

  .site-header nav a.contact-cta:hover {
    background: var(--accent);
  }

  .site-header nav a:hover {
    background: var(--accent-soft);
  }

  .is-menu-open .site-header nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .menu-toggle {
    position: absolute;
    top: 50%;
    right: 22px;
    display: flex !important;
    width: 62px;
    height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    z-index: 3;
  }

  .mobile-menu-label {
    position: relative;
    z-index: 2;
    display: block;
    margin-left: auto;
    color: var(--ink);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    transform: none;
    pointer-events: none;
  }

  .is-menu-open .mobile-menu-label {
    color: transparent;
  }

  .is-menu-open .mobile-menu-label::before {
    content: "×";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
  }

  .menu-toggle::before {
    content: "";
    position: absolute;
    inset: -10px;
  }

  .menu-toggle::after {
    content: "";
    color: var(--ink);
    font-size: 34px;
    line-height: 1;
  }

  .menu-toggle span {
    display: none;
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: var(--ink);
    transition:
      opacity 0.2s ease,
      transform 0.24s ease;
  }

  .is-menu-open .menu-toggle::after {
    content: "";
  }

  .is-menu-open .menu-toggle span:first-child {
    transform: translateY(10px) rotate(45deg);
  }

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

  .is-menu-open .menu-toggle span:last-child {
    transform: translateY(-10px) rotate(-45deg);
  }

  .theme-toggle {
    display: none;
  }

  .hero {
    width: 100%;
    max-width: 100vw;
    min-height: 650px;
    padding: 132px 0 160px;
    overflow: hidden;
  }

  .hero--homepage {
    min-height: 720px;
  }

  .hero__content,
  .section-split,
  .stat-card,
  .service-card,
  .work-card,
  .blog-card,
  .testimonial-card,
  .contact-card {
    min-width: 0;
  }

  .hero__content {
    width: calc(100% - 48px);
    max-width: calc(100vw - 48px);
    margin-inline: auto;
  }

  .hero h1 {
    font-size: clamp(64px, 18vw, 88px);
    letter-spacing: -0.06em;
  }

  .hero--homepage h1 {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1.38;
    letter-spacing: 0.03em;
  }

  .hero__lead {
    max-width: 100%;
    margin-bottom: 42px;
    font-size: 14px;
    line-height: 2.05;
    letter-spacing: 0.055em;
    text-align: left;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: normal;
  }

  .hero__body {
    max-width: calc(100vw - 48px);
    font-size: 14px;
    line-height: 2;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .hero__actions {
    display: grid;
    gap: 12px;
  }

  .hero__actions .button,
  .hero__actions .outline-link {
    width: calc(100vw - 48px);
    max-width: 100%;
    min-width: 0;
  }

  .hero__trust-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-only {
    display: inline;
  }

  br.mobile-only {
    display: block;
  }

  .scroll-cue {
    display: none;
  }

  .stats {
    width: calc(100% - 48px);
    margin: 44px 24px 0;
  }

  .hero__lead,
  .stat-card,
  .service-card,
  .work-card,
  .blog-card,
  .quote-card,
  .testimonial-card,
  .contact-card {
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .hero__lead {
    word-break: normal;
    overflow-wrap: normal;
  }

  .stat-card p:last-child {
    max-width: 17em;
    margin-inline: auto;
    font-size: 13px;
  }

  .section-pad {
    padding: 64px 24px;
  }

  .pill-link {
    display: none;
  }

  .profile__top,
  .profile-summary,
  .testimonial-card,
  .contact-card,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px 24px;
    gap: 28px;
    justify-items: center;
    text-align: left;
  }

  .contact-image {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
  }

  .profile-summary {
    margin-top: 28px;
  }

  .profile-summary dl {
    margin-top: 0;
  }

  .profile-visual::after {
    right: 8px;
  }

  .signature {
    right: 8px;
  }

  .quote-card {
    padding: 74px 28px 34px;
  }

  .quote-mark {
    top: 34px;
    left: 28px;
  }

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

  .home-worry-list article,
  .home-feature-list article,
  .home-flow-list article {
    width: calc(100vw - 48px);
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 26px 24px;
  }

  .home-worries,
  .home-education,
  .home-features,
  .home-price,
  .home-flow,
  .home-faq,
  .home-worry-list,
  .home-feature-list,
  .home-price-grid,
  .home-flow-list,
  .home-faq-list,
  .home-education-card,
  .home-seo-note {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .home-worries .about-section-title h2,
  .home-flow .about-section-title h2,
  .home-faq .about-section-title h2,
  .home-education-card h2,
  .home-feature-list h3,
  .home-price-card h3,
  .home-flow-list h3,
  .home-faq-list summary {
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .home-worry-list article {
    padding-left: 50px;
    font-size: 16px;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-break: strict;
  }

  .home-worry-list article::before {
    top: 31px;
    left: 24px;
  }

  .home-education-card {
    padding: 34px 24px;
  }

  .home-education-card h2 {
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.65;
  }

  .home-education-card .prose,
  .home-price-card li,
  .home-flow-list p,
  .home-faq-list details p {
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .home-feature-list {
    grid-template-columns: 1fr;
  }

  .home-feature-list article:last-child {
    grid-column: auto;
  }

  .home-price-card {
    padding: 34px 24px 30px;
  }

  .home-seo-note,
  .home-maintenance-card {
    grid-template-columns: 1fr;
  }

  .home-seo-note {
    padding: 30px 24px;
  }

  .home-seo-note .button {
    width: 100%;
  }

  .home-faq-list summary {
    padding: 20px 58px 20px 22px;
    font-size: 16px;
  }

  .home-faq-list summary::after {
    right: 20px;
  }

  .home-faq-list details p {
    padding: 0 22px 22px;
  }

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

  .service-card__image {
    height: clamp(160px, 42vw, 220px);
  }

  .testimonial-card {
    padding: 34px 24px;
    gap: 28px;
  }

  .testimonial-text {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .testimonial-controls {
    margin-top: 20px;
  }

  .testimonial-arrow {
    min-height: 46px;
    padding: 0 22px;
    font-size: 12px;
    letter-spacing: 0.18em;
  }

  .testimonial-arrow__icon {
    font-size: 16px;
  }

  .testimonial-arrow__label {
    display: none;
  }
}

/* --- Accessibility: reduced motion --- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- About page --- */

.site-header a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.about-page {
  --earth: #b9825b;
  --leaf: #6f927d;
}

.about-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    radial-gradient(
      circle at 78% 22%,
      rgba(185, 130, 91, 0.16),
      transparent 26vw
    );
}

.about-hero {
  position: relative;
  display: grid;
  min-height: 700px;
  align-items: center;
  overflow: hidden;
  padding: 132px 80px 190px;
}

.about-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(0, 40, 58, 0.72) 0%,
      rgba(0, 40, 58, 0.36) 42%,
      rgba(244, 245, 247, 0.18) 78%
    ),
    linear-gradient(180deg, rgba(244, 245, 247, 0.08), var(--bg));
}

.about-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.95);
}

.about-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.about-hero__content p {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(58px, 8vw, 112px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.about-hero .outline-link {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.about-hero .outline-link::before {
  background: #fff;
}

.about-hero .outline-link:hover {
  color: var(--ink);
}

.about-hero .scroll-cue {
  color: #fff;
}

.about-hero .scroll-cue span {
  border-color: #fff;
}

.about-hero .scroll-cue span::after {
  background: #fff;
}

.about-rail .avatar-wrap {
  width: 236px;
}

.about-lead {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: center;
  margin-top: -110px;
}

.about-lead__image,
.about-lead__card,
.about-number-card,
.about-text-card,
.about-strength-card,
.about-skill-grid article,
.about-expertise-list article,
.about-timeline article,
.about-vision-card {
  background: rgba(252, 252, 254, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.about-lead__image {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.about-lead__image::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.about-lead__image img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  object-position: center top;
}

.about-lead__card {
  position: relative;
  padding: clamp(36px, 5vw, 68px);
  border-radius: 12px;
  color: var(--ink);
}

.about-lead__card::before {
  position: absolute;
  top: -22px;
  left: 44px;
  width: 82%;
  height: 34px;
  content: "";
  border-radius: 10px 10px 0 0;
  background: rgba(252, 252, 254, 0.42);
}

.about-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-lead__card h2 {
  margin: 0 0 10px;
  font-family: var(--jp-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: 0.08em;
}

.about-lead__card h2 span {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.06em;
}

.about-role {
  margin: 0 0 24px;
  color: var(--ink);
  font-size: 18px;
}

.about-separator {
  color: rgba(0, 40, 58, 0.45);
  font-family: var(--serif);
  letter-spacing: 0.08em;
}

.about-lead__card p:last-child,
.about-text-card p,
.about-strength-card p,
.about-skill-grid p,
.about-expertise-list p,
.about-timeline p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2.1;
}

.about-section {
  position: relative;
}

.about-section-title {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  margin-bottom: 34px;
}

.about-section-title h2 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: 0.06em;
}

.about-section-title span {
  display: block;
  min-width: 40px;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    rgba(0, 40, 58, 0.14) 50%,
    transparent 50%
  );
  background-size: 10px 2px;
}

.about-section-title p {
  margin: 0;
  color: rgba(0, 40, 58, 0.7);
  font-family: var(--serif);
  font-size: 20px;
}

.about-number-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-number-card {
  min-height: 270px;
  padding: 34px;
  border-radius: 10px;
}

.about-number-card strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  white-space: nowrap;
}

.about-number-card h3,
.about-text-card h3,
.about-strength-card h3,
.about-skill-grid h3,
.about-expertise-list h3,
.about-timeline h3 {
  margin: 22px 0 12px;
  font-family: var(--jp-serif);
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: 0.06em;
}

.about-number-card p,
.about-strength-card p,
.about-skill-grid p,
.about-expertise-list p,
.about-timeline p,
.about-text-card p {
  margin: 0;
}

.about-text-card {
  padding: clamp(34px, 5vw, 64px);
  border-radius: 12px;
}

.about-text-card--columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 54px;
}

.about-text-card h3::before {
  content: "──── ";
  color: var(--accent);
  font-family: var(--serif);
  letter-spacing: 0;
}

.about-skill-grid h3::before {
  display: block;
  width: 78px;
  height: 1px;
  margin: 0 0 12px;
  content: "";
  background: var(--accent);
}

.about-strengths {
  display: grid;
  gap: 18px;
}

.about-strength-card {
  display: grid;
  grid-template-columns: 72px minmax(210px, 0.55fr) 1fr;
  gap: 28px;
  align-items: start;
  padding: 34px;
  border-radius: 10px;
}

.about-strength-card > p:first-child {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(93, 144, 199, 0.42);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 22px;
}

.about-strength-card h3 {
  margin-top: 6px;
}

.about-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.about-skill-grid article {
  min-height: 220px;
  padding: 28px;
  border-radius: 10px;
}

.about-skill-grid article:nth-child(3),
.about-skill-grid article:nth-child(5) {
  grid-column: span 2;
}

.about-expertise-list {
  display: grid;
  gap: 16px;
}

.about-expertise-list article {
  display: grid;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  gap: 26px;
  padding: 30px 34px;
  border-radius: 10px;
}

.about-expertise-list h3 {
  margin-top: 0;
  color: var(--ink);
}

.about-expertise-list h3::before {
  content: "▶ ";
  color: var(--accent);
}

.about-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 58px 82px;
  padding: 24px 0 0;
}

.about-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  content: "";
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.about-timeline article {
  position: relative;
  min-height: 210px;
  padding: 34px;
  border-radius: 10px;
}

.about-timeline article::after {
  position: absolute;
  top: 34px;
  width: 28px;
  height: 28px;
  content: "";
  border: 5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.about-timeline article:nth-child(odd)::after {
  right: -55px;
}

.about-timeline article:nth-child(even) {
  transform: translateY(54px);
}

.about-timeline article:nth-child(even)::after {
  left: -55px;
}

.about-timeline time {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}

.about-vision-card {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  border-radius: 12px;
  overflow: hidden;
}

.about-vision-card::after {
  position: absolute;
  right: 44px;
  bottom: -8px;
  color: rgba(93, 144, 199, 0.28);
  content: "''";
  font-family: var(--serif);
  font-size: 112px;
  line-height: 1;
  transform: rotate(180deg);
}

.about-vision-card p {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-style: italic;
}

.about-vision-card h3 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.7;
}

.about-greeting {
  max-width: 1060px;
}

.about-greeting p {
  margin-bottom: 24px;
}

.about-sign {
  color: var(--ink) !important;
  font-family: var(--jp-serif);
  font-size: 20px !important;
}

.about-greeting .button {
  margin-top: 10px;
}

.is-dark .about-hero::before {
  background:
    linear-gradient(
      90deg,
      rgba(7, 24, 34, 0.82) 0%,
      rgba(7, 24, 34, 0.54) 52%,
      rgba(7, 24, 34, 0.18) 82%
    ),
    linear-gradient(180deg, rgba(7, 24, 34, 0.1), var(--bg));
}

.is-dark .about-lead__image,
.is-dark .about-lead__card,
.is-dark .about-number-card,
.is-dark .about-text-card,
.is-dark .about-strength-card,
.is-dark .about-skill-grid article,
.is-dark .about-expertise-list article,
.is-dark .about-timeline article,
.is-dark .about-vision-card {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .about-section-title span {
  background-image: linear-gradient(
    90deg,
    rgba(234, 246, 255, 0.16) 50%,
    transparent 50%
  );
}

.is-dark .about-section-title p,
.is-dark .about-separator {
  color: rgba(234, 246, 255, 0.58);
}

.is-dark .about-timeline::before {
  background: rgba(255, 255, 255, 0.08);
}

.is-dark .about-timeline article::after {
  background: var(--bg);
}

@media (max-width: 1180px) {
  .about-hero {
    padding-right: 42px;
    padding-left: 42px;
  }

  .about-lead {
    grid-template-columns: 1fr;
  }

  .about-number-grid,
  .about-skill-grid {
    grid-template-columns: 1fr;
  }

  .about-skill-grid article:nth-child(3),
  .about-skill-grid article:nth-child(5) {
    grid-column: auto;
  }

  .about-strength-card,
  .about-expertise-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .about-page .about-rail {
    display: none;
  }

  .about-hero {
    min-height: 560px;
    padding: 112px 24px 96px;
  }

  .about-hero::before {
    background:
      linear-gradient(90deg, rgba(0, 40, 58, 0.78), rgba(0, 40, 58, 0.28)),
      linear-gradient(180deg, rgba(244, 245, 247, 0.05), var(--bg));
  }

  .about-hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .about-rail {
    margin-top: -76px;
  }

  .about-lead {
    margin-top: 0;
  }

  .about-lead__image img {
    height: 460px;
  }

  .about-lead__card::before {
    left: 28px;
    width: 72%;
  }

  .about-section-title {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .about-section-title span {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .about-number-card {
    min-height: 0;
  }

  .about-text-card--columns {
    grid-template-columns: 1fr;
  }

  .about-strength-card {
    padding: 28px;
  }

  .about-timeline {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-left: 26px;
  }

  .about-timeline::before {
    left: 2px;
    transform: none;
  }

  .about-timeline article,
  .about-timeline article:nth-child(even) {
    transform: none;
  }

  .about-timeline article::after,
  .about-timeline article:nth-child(odd)::after,
  .about-timeline article:nth-child(even)::after {
    top: 30px;
    right: auto;
    left: -39px;
    width: 20px;
    height: 20px;
    border-width: 4px;
  }
}

@media (max-width: 880px) {
  .service-page .service-detail,
  .service-page .service-works,
  .service-page .service-list,
  .service-page .service-contact {
    max-width: 100vw;
    overflow: hidden;
  }

  .service-page .service-price-heading p,
  .service-page .service-target,
  .service-page .service-price-card li,
  .service-page .service-feature-card p,
  .service-page .service-contact-card h2 {
    max-width: 100%;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .service-page .service-price-grid,
  .service-page .service-work-grid {
    width: 100%;
    min-width: 0;
  }

  .service-page .service-price-card,
  .service-page .service-work-card,
  .service-page .service-maintenance-card,
  .service-page .service-feature-card {
    width: 100%;
    min-width: 0;
  }

  .service-page .service-feature-card {
    padding: 24px;
  }

  .service-page .service-price-heading p,
  .service-page .service-feature-card p,
  .service-page .service-price-card li,
  .service-page .service-target {
    font-size: 14px;
    line-height: 2;
  }
}

/* --- Blog page --- */

.blog-page .site-shell {
  margin-left: 0;
}

@media (min-width: 881px) {
  .blog-page .site-header {
    top: 0;
    right: 0;
    left: 0;
    min-height: 96px;
    padding: 18px 70px;
    background: rgba(252, 252, 254, 0.94);
    border-bottom: 1px solid rgba(0, 40, 58, 0.08);
    box-shadow: 0 12px 32px rgba(0, 40, 58, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(18px);
  }

  .blog-page .site-header::before {
    display: none;
  }

  .blog-page .site-header nav {
    gap: clamp(22px, 3.2vw, 52px);
  }
}

.blog-page.is-scrolled .site-header nav a,
.blog-page.is-scrolled .site-header .theme-toggle {
  color: var(--ink);
}

.blog-page.is-scrolled .site-header a::after {
  background: var(--accent);
}

.blog-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 82% 14%,
      rgba(185, 130, 91, 0.14),
      transparent 26vw
    ),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 44%, #f7f8fa 100%);
}

.blog-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  margin: 0 14px;
  border-radius: 0 0 28px 28px;
  padding: 190px 80px 130px;
}

.blog-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(0, 40, 58, 0.62),
      rgba(93, 144, 199, 0.2) 50%,
      rgba(185, 130, 91, 0.36)
    ),
    linear-gradient(180deg, rgba(0, 40, 58, 0.12), rgba(0, 40, 58, 0.36));
}

.blog-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.96);
}

.blog-hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.blog-hero__content p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.blog-hero .outline-link {
  min-width: 260px;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.blog-hero .outline-link::before {
  background: #fff;
}

.blog-hero .outline-link:hover {
  color: var(--ink);
}

.blog-index {
  box-sizing: border-box;
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-top: 92px;
}

.blog-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  min-width: 0;
  min-height: 220px;
}

.blog-post-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(252, 252, 254, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.blog-post-card__image-link {
  display: block;
  overflow: hidden;
}

.blog-post-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.45s ease;
}

.blog-post-card__image-link:hover img {
  filter: saturate(1.05) contrast(1.03);
  transform: scale(1.045);
}

.blog-post-card__body {
  padding: 42px 40px 36px;
}

.blog-post-card__category {
  margin: 0 0 26px;
  color: rgba(0, 40, 58, 0.54);
  font-size: 14px;
  letter-spacing: 0.12em;
}

.blog-post-card h3 {
  margin: 0 0 28px;
  font-family: var(--jp-serif);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.blog-post-card__excerpt {
  margin: 0 0 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 2;
}

.blog-post-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.blog-post-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 2px dashed rgba(0, 40, 58, 0.12);
  color: rgba(0, 40, 58, 0.5);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-post-card__meta p {
  margin: 0;
}

.blog-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 38px;
  min-width: 0;
}

.blog-category-list span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid rgba(93, 144, 199, 0.22);
  border-radius: 999px;
  background: rgba(252, 252, 254, 0.72);
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.article-layout {
  box-sizing: border-box;
  width: min(100%, 1120px);
  margin-inline: auto;
}

.article-header {
  display: grid;
  gap: 18px;
  margin: 0 0 44px;
  text-align: center;
}

.article-category {
  justify-self: center;
  margin: 0;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.article-header time {
  color: rgba(0, 40, 58, 0.48);
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.article-lead {
  width: min(100%, 860px);
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 2.1;
  text-align: left;
}

.article-figure {
  overflow: hidden;
  margin: 0 0 46px;
  border-radius: 14px;
  background: rgba(252, 252, 254, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.article-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure figcaption {
  margin: 0;
  padding: 16px 22px 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.article-toc {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 44px;
  padding: 28px;
  border-radius: 14px;
  background: rgba(252, 252, 254, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.article-toc p {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.article-toc a {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
}

.article-prose {
  width: min(100%, 880px);
  margin-inline: auto;
}

.article-prose h2 {
  margin: 58px 0 18px;
  font-family: var(--jp-serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.article-prose h2:first-child {
  margin-top: 0;
}

.article-prose p {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 2.15;
}

.article-checklist,
.article-sources,
.article-cta {
  margin-top: 54px;
  padding: 34px;
  border-radius: 14px;
  background: rgba(252, 252, 254, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.article-checklist ul,
.article-sources ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.article-sources a {
  color: var(--accent);
  overflow-wrap: anywhere;
}

.article-cta {
  width: min(100%, 880px);
  margin-inline: auto;
  text-align: center;
}

.article-cta h2 {
  margin: 0 0 16px;
  font-family: var(--jp-serif);
  font-size: clamp(26px, 3vw, 38px);
}

.article-cta p {
  width: min(100%, 660px);
  margin: 0 auto 26px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 2;
  text-align: left;
}

.is-dark .blog-post-card {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .blog-post-card__category,
.is-dark .blog-post-card__meta {
  color: rgba(234, 246, 255, 0.62);
}

.is-dark .blog-post-card__meta {
  border-top-color: rgba(234, 246, 255, 0.14);
}

.is-dark .blog-category-list span,
.is-dark .article-toc,
.is-dark .article-figure,
.is-dark .article-checklist,
.is-dark .article-sources,
.is-dark .article-cta {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .article-header time,
.is-dark .article-lead,
.is-dark .article-figure figcaption,
.is-dark .article-prose p,
.is-dark .article-checklist ul,
.is-dark .article-sources ul,
.is-dark .article-cta p,
.is-dark .blog-category-list span {
  color: rgba(234, 246, 255, 0.74);
}

@media (max-width: 1180px) {
  .blog-page .site-header {
    right: 42px;
    left: 42px;
  }

  .blog-hero,
  .blog-index {
    padding-right: 42px;
    padding-left: 42px;
  }

  .blog-post-grid {
    grid-template-columns: 1fr;
  }

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

  .article-toc {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  .blog-page .site-header,
  .blog-page .is-rail-hidden .site-header {
    right: 0;
    left: 0;
  }

  .blog-hero {
    min-height: 560px;
    margin: 0;
    padding: 130px 24px 96px;
    border-radius: 0;
  }

  .blog-hero h1 {
    font-size: clamp(34px, 11vw, 50px);
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }

  .blog-hero .outline-link {
    min-width: 0;
    width: min(100%, 260px);
  }

  .blog-index {
    max-width: 100vw;
    padding-right: 24px;
    padding-left: 24px;
    overflow: hidden;
  }

  .blog-post-card__body {
    padding: 34px 28px 30px;
  }

  .blog-post-card img {
    height: 230px;
  }

  .blog-post-card h3,
  .blog-post-card__excerpt,
  .blog-post-card__meta {
    overflow-wrap: anywhere;
  }

  .blog-category-list {
    gap: 8px;
  }

  .blog-category-list span {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 12px;
  }

  .article-layout {
    padding-right: 24px;
    padding-left: 24px;
  }

  .article-lead,
  .article-prose p {
    font-size: 16px;
    line-height: 2;
  }

  .article-toc,
  .article-checklist,
  .article-sources,
  .article-cta {
    padding: 24px;
  }

  .article-figure {
    border-radius: 10px;
  }
}

/* --- Works page --- */

.works-page .site-shell {
  margin-left: 0;
}

@media (min-width: 881px) {
  .works-page .site-header {
    top: 0;
    right: 0;
    left: 0;
    min-height: 96px;
    padding: 18px 70px;
    background: rgba(252, 252, 254, 0.94);
    border-bottom: 1px solid rgba(0, 40, 58, 0.08);
    box-shadow: 0 12px 32px rgba(0, 40, 58, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(18px);
  }

  .works-page .site-header::before {
    display: none;
  }

  .works-page .site-header nav {
    gap: clamp(22px, 3.2vw, 52px);
  }
}

.works-page.is-scrolled .site-header nav a,
.works-page.is-scrolled .site-header .theme-toggle {
  color: var(--ink);
}

.works-page.is-scrolled .site-header a::after {
  background: var(--accent);
}

.works-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #f7f8fa 100%);
}

.works-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  margin: 0 14px;
  border-radius: 0 0 28px 28px;
  padding: 190px 80px 130px;
}

.works-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(0, 40, 58, 0.7),
      rgba(0, 40, 58, 0.34) 48%,
      rgba(0, 40, 58, 0.18)
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 40, 58, 0.32));
}

.works-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) contrast(0.98);
}

.works-hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.works-hero__content p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.works-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.works-hero .outline-link {
  min-width: 260px;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.works-hero .outline-link::before {
  background: #fff;
}

.works-hero .outline-link:hover {
  color: var(--ink);
}

.works-index {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-top: 92px;
}

.portfolio-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(26px, 3vw, 46px);
  align-items: start;
}

.portfolio-work-card {
  min-width: 0;
}

.portfolio-work-card__link {
  position: relative;
  display: block;
  min-height: clamp(320px, 29vw, 500px);
  overflow: hidden;
  border-radius: 8px;
  background: rgba(252, 252, 254, 0.92);
  box-shadow: 0 18px 44px rgba(0, 40, 58, 0.1);
  isolation: isolate;
}

.portfolio-work-card__link::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(252, 252, 254, 0.1),
    rgba(252, 252, 254, 0.46)
  );
  opacity: 0.22;
  transition: opacity 0.42s ease;
}

.portfolio-work-card__link img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition:
    filter 0.48s ease,
    transform 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-work-card__panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  padding: 26px 30px;
  background: rgba(252, 252, 254, 0.96);
  overflow: visible;
  transform: translateY(0);
  transition: transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-work-card__panel > div {
  min-width: 0;
  flex: 1 1 auto;
}

.portfolio-work-card__category {
  margin: 0 0 8px;
  color: rgba(0, 40, 58, 0.56);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.portfolio-work-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--jp-serif);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.portfolio-work-card__visit {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.78;
  box-shadow: 0 12px 22px rgba(93, 144, 199, 0.28);
  margin-left: clamp(10px, 2vw, 28px);
  transform: translateX(18px);
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-work-card__visit::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -14px;
  margin-left: 0;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.portfolio-work-card__link:hover::before,
.portfolio-work-card__link:focus-visible::before {
  opacity: 0.08;
}

.portfolio-work-card__link:hover img,
.portfolio-work-card__link:focus-visible img {
  filter: saturate(0.88) contrast(0.96) brightness(1.08);
  transform: scale(1.035);
}

.portfolio-work-card__link:hover .portfolio-work-card__panel,
.portfolio-work-card__link:focus-visible .portfolio-work-card__panel {
  transform: translateY(0);
}

.portfolio-work-card__link:hover .portfolio-work-card__visit,
.portfolio-work-card__link:focus-visible .portfolio-work-card__visit {
  opacity: 1;
  transform: translateX(0);
}

.is-dark .portfolio-work-card__link {
  background: rgba(16, 38, 55, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.is-dark .portfolio-work-card__panel {
  background: rgba(16, 38, 55, 0.96);
}

.is-dark .portfolio-work-card h3 {
  color: var(--ink);
}

.is-dark .portfolio-work-card__category {
  color: rgba(234, 246, 255, 0.62);
}

@media (max-width: 1180px) {
  .works-page .site-header {
    right: 42px;
    left: 42px;
  }

  .works-hero,
  .works-index {
    padding-right: 42px;
    padding-left: 42px;
  }

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

@media (max-width: 880px) {
  .works-page .site-header,
  .works-page .is-rail-hidden .site-header {
    right: 0;
    left: 0;
  }

  .works-hero {
    min-height: 560px;
    margin: 0;
    padding: 130px 24px 96px;
    border-radius: 0;
  }

  .works-hero h1 {
    font-size: clamp(44px, 14vw, 62px);
  }

  .works-hero .outline-link {
    min-width: 0;
    width: min(100%, 260px);
  }

  .works-index {
    max-width: 100vw;
    padding-right: 24px;
    padding-left: 24px;
    overflow: hidden;
  }

  .works-index .about-section-title {
    grid-template-columns: 1fr;
  }

  .works-index .about-section-title span {
    grid-column: auto;
    grid-row: auto;
  }

  .works-index .about-section-title p {
    font-size: 16px;
  }

  .portfolio-work-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-work-card__link {
    min-height: 390px;
  }

  .portfolio-work-card__panel {
    min-height: 104px;
    padding: 24px;
    transform: translateY(0);
  }

  .portfolio-work-card h3,
  .portfolio-work-card__category {
    overflow-wrap: anywhere;
  }

  .portfolio-work-card__visit {
    position: relative;
    width: 58px;
    height: 58px;
    padding: 0;
    justify-content: center;
    text-align: center;
    opacity: 1;
    transform: translateX(0);
  }

  .portfolio-work-card__visit::after {
    position: absolute;
    top: 50%;
    right: -14px;
    margin-left: 0;
    color: var(--accent);
    transform: translateY(-50%);
  }
}

/* --- Contact page --- */

.contact-page .site-shell {
  margin-left: 0;
}

@media (min-width: 881px) {
  .contact-page .site-header {
    top: 0;
    right: 0;
    left: 0;
    min-height: 96px;
    padding: 18px 70px;
    background: rgba(252, 252, 254, 0.94);
    border-bottom: 1px solid rgba(0, 40, 58, 0.08);
    box-shadow: 0 12px 32px rgba(0, 40, 58, 0.08);
    pointer-events: auto;
    backdrop-filter: blur(18px);
  }

  .contact-page .site-header::before {
    display: none;
  }

  .contact-page .mobile-brand {
    display: grid;
    gap: 4px;
    width: 280px;
    color: var(--ink);
    font-family: var(--serif);
    line-height: 1;
    letter-spacing: -0.04em;
    pointer-events: auto;
    text-transform: none;
  }

  .contact-page .mobile-brand span {
    font-size: 38px;
  }

  .contact-page .mobile-brand small {
    color: rgba(0, 40, 58, 0.58);
    font-family: var(--sans);
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .contact-page .site-header nav {
    gap: clamp(22px, 3.2vw, 52px);
  }
}

.contact-page.is-scrolled .site-header nav a,
.contact-page.is-scrolled .site-header .theme-toggle {
  color: var(--ink);
}

.contact-page.is-scrolled .site-header a::after {
  background: var(--accent);
}

.contact-shell {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 16% 26%,
      rgba(93, 144, 199, 0.14),
      transparent 28vw
    ),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 44%, #f7f8fa 100%);
}

/* --- Dark mode: headers for standalone pages --- */

.is-dark.service-page .site-header,
.is-dark.works-page .site-header,
.is-dark.blog-page .site-header,
.is-dark.contact-page .site-header {
  background: rgba(16, 38, 55, 0.92);
  border-bottom-color: rgba(234, 246, 255, 0.1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.is-dark.service-page .site-header nav a,
.is-dark.service-page .site-header .theme-toggle,
.is-dark.works-page .site-header nav a,
.is-dark.works-page .site-header .theme-toggle,
.is-dark.blog-page .site-header nav a,
.is-dark.blog-page .site-header .theme-toggle,
.is-dark.contact-page .site-header nav a,
.is-dark.contact-page .site-header .theme-toggle {
  color: var(--ink);
}

.is-dark.service-page .site-header a::after,
.is-dark.works-page .site-header a::after,
.is-dark.blog-page .site-header a::after,
.is-dark.contact-page .site-header a::after {
  background: rgba(234, 246, 255, 0.72);
}

.is-dark.contact-page .mobile-brand {
  color: var(--ink);
}

.is-dark.contact-page .mobile-brand small {
  color: rgba(234, 246, 255, 0.62);
}

.contact-hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  margin: 0 14px;
  border-radius: 0 0 28px 28px;
  padding: 190px 80px 130px;
}

.contact-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(0, 40, 58, 0.5),
      rgba(0, 40, 58, 0.26) 48%,
      rgba(0, 40, 58, 0.44)
    ),
    linear-gradient(180deg, rgba(0, 40, 58, 0.08), rgba(0, 40, 58, 0.34));
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(0.96);
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  margin-inline: auto;
  color: #fff;
  text-align: center;
}

.contact-hero__content p {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0;
  font-family: var(--jp-serif);
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.08em;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.contact-hero .outline-link {
  min-width: 300px;
  border-color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact-hero .outline-link::before {
  background: #fff;
}

.contact-hero .outline-link:hover {
  color: var(--ink);
}

.contact-form-section {
  width: min(100%, 1560px);
  margin-inline: auto;
  padding-top: 92px;
}

.contact-form-panel {
  min-height: 470px;
  padding: clamp(30px, 5vw, 58px);
  border-radius: 14px;
  background: rgba(252, 252, 254, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.cf7-design-system {
  min-height: 340px;
}

.cf7-design-system .wpcf7 {
  width: 100%;
}

.cf7-design-system .wpcf7-form {
  display: grid;
  gap: 28px;
}

.cf7-design-system .wpcf7-form p {
  margin: 0;
}

.cf7-design-system label {
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.cf7-design-system .form-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.cf7-design-system .form-required {
  display: inline-block;
  font-size: 12px;
  line-height: 1;
  transform: translateY(-0.35em);
  color: rgba(179, 70, 70, 0.95);
}

.cf7-design-system .wpcf7-form-control-wrap {
  display: block;
}

.cf7-design-system input[type="text"],
.cf7-design-system input[type="email"],
.cf7-design-system input[type="tel"],
.cf7-design-system input[type="url"],
.cf7-design-system input[type="number"],
.cf7-design-system input[type="date"],
.cf7-design-system select,
.cf7-design-system textarea {
  width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  border: 1px solid rgba(0, 40, 58, 0.08);
  border-radius: 10px;
  outline: none;
  background: #f4f6f8;
  box-shadow: inset 0 2px 10px rgba(0, 40, 58, 0.06);
  color: var(--ink);
  font: 700 16px/1.7 var(--sans);
  letter-spacing: 0.04em;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.cf7-design-system textarea {
  min-height: 170px;
  resize: vertical;
}

.cf7-design-system input::placeholder,
.cf7-design-system textarea::placeholder {
  color: rgba(0, 40, 58, 0.42);
}

.cf7-design-system input:focus,
.cf7-design-system select:focus,
.cf7-design-system textarea:focus {
  border-color: rgba(93, 144, 199, 0.6);
  background: #fff;
  box-shadow:
    inset 0 2px 10px rgba(0, 40, 58, 0.04),
    0 0 0 4px rgba(93, 144, 199, 0.14);
}

.cf7-design-system input[type="submit"],
.cf7-design-system button[type="submit"] {
  display: inline-flex;
  width: auto;
  min-width: 210px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 24px rgba(93, 144, 199, 0.24);
  cursor: pointer;
  font: 900 15px/1 var(--sans);
  letter-spacing: 0.1em;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease;
}

.cf7-design-system input[type="submit"]:hover,
.cf7-design-system button[type="submit"]:hover {
  box-shadow: 0 18px 32px rgba(93, 144, 199, 0.28);
  transform: translateY(-2px);
}

.cf7-design-system .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #b34646;
  font-size: 13px;
}

.cf7-design-system .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(93, 144, 199, 0.32);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
}

.cf7-design-system .wpcf7-spinner {
  margin-left: 12px;
}

.is-dark .contact-form-panel {
  background: rgba(16, 38, 55, 0.88);
  border-color: rgba(255, 255, 255, 0.09);
}

.is-dark .cf7-design-system input[type="text"],
.is-dark .cf7-design-system input[type="email"],
.is-dark .cf7-design-system input[type="tel"],
.is-dark .cf7-design-system input[type="url"],
.is-dark .cf7-design-system input[type="number"],
.is-dark .cf7-design-system input[type="date"],
.is-dark .cf7-design-system select,
.is-dark .cf7-design-system textarea {
  background: rgba(234, 246, 255, 0.08);
  border-color: rgba(234, 246, 255, 0.12);
  color: var(--ink);
}

@media (max-width: 1180px) {
  .contact-page .site-header {
    right: 42px;
    left: 42px;
  }

  .contact-hero,
  .contact-form-section {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 880px) {
  .contact-page .site-header,
  .contact-page .is-rail-hidden .site-header {
    right: 0;
    left: 0;
  }

  .contact-hero {
    min-height: 560px;
    margin: 0;
    padding: 130px 24px 96px;
    border-radius: 0;
  }

  .contact-hero::before {
    background:
      linear-gradient(
        90deg,
        rgba(0, 40, 58, 0.7),
        rgba(0, 40, 58, 0.34) 48%,
        rgba(0, 40, 58, 0.18)
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 40, 58, 0.32));
  }

  .contact-hero__bg {
    object-position: center;
  }

  .contact-hero__content p {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .contact-hero h1 {
    color: #fff;
    font-size: clamp(36px, 10.6vw, 48px);
    letter-spacing: 0.04em;
    text-shadow: 0 12px 26px rgba(0, 0, 0, 0.42);
  }

  .contact-hero .outline-link {
    min-width: 0;
    width: min(100%, 300px);
  }

  .contact-form-section {
    max-width: 100vw;
    padding-top: 58px;
    padding-bottom: 72px;
    padding-right: 24px;
    padding-left: 24px;
    overflow: hidden;
  }

  .contact-form-section .about-section-title h2 {
    color: var(--ink);
    font-size: clamp(25px, 6.8vw, 28px);
    line-height: 1.35;
    letter-spacing: 0.03em;
  }

  .contact-form-panel {
    min-height: 280px;
    padding: 26px 20px;
    background: rgba(252, 252, 254, 0.98);
    border-color: rgba(0, 40, 58, 0.06);
  }

  .cf7-design-system {
    min-height: 220px;
  }

  .cf7-design-system input[type="text"],
  .cf7-design-system input[type="email"],
  .cf7-design-system input[type="tel"],
  .cf7-design-system input[type="url"],
  .cf7-design-system input[type="number"],
  .cf7-design-system input[type="date"],
  .cf7-design-system select,
  .cf7-design-system textarea {
    min-height: 58px;
    padding: 16px 18px;
    font-size: 15px;
  }
}
