/**
 * KITSUKI portal — modern layer (CSS variables)
 */
:root {
  --color-bg: #f4f6f9;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-border: #e2e8f0;
  --color-border: color-mix(in srgb, var(--color-text) 10%, transparent);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 20px 50px -24px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-section: clamp(3.5rem, 8vw, 6rem);
  --content-max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(13, 148, 136, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(56, 189, 248, 0.06), transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--color-bg) 78%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 85%, transparent);
}

.site-header__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.site-logo:hover {
  color: var(--color-accent);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.35rem 0.65rem;
  margin: -0.35rem -0.65rem;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background: rgba(13, 148, 136, 0.1);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

.hero {
  position: relative;
  padding: clamp(4rem, 12vw, 7rem) 1.25rem var(--space-section);
  background: linear-gradient(135deg, #0f766e 0%, #115e59 38%, #0c4a6e 72%, #0f172a 100%);
  color: #f1f5f9;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06'%3E%3Cpath d='M0 0h40v40H0z'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 75% 15%, rgba(45, 212, 191, 0.35), transparent 50%),
    radial-gradient(ellipse 50% 45% at 10% 80%, rgba(56, 189, 248, 0.12), transparent 55%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  font-size: 1.125rem;
  opacity: 0.92;
  line-height: 1.7;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.65rem;
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0f172a;
  background: #5eead4;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-hero:hover {
  color: #0f172a;
  background: #99f6e4;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.section {
  padding: var(--space-section) 1.25rem;
}

.section--surface {
  background: var(--color-surface);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--color-border) 70%, transparent);
}

.section--services {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, #ecf6f4 0%, var(--color-bg) 42%, #eef4f9 100%);
}

.section--services::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 85% 55% at 50% 0%, rgba(13, 148, 136, 0.11), transparent 65%);
  pointer-events: none;
}

.section--services .section__title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin: 0.85rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), #22d3ee);
}

.section--services .section__subtitle {
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.section--strengths {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.section--strengths .section__subtitle {
  margin-bottom: 2.25rem;
}

.strengths-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.strengths-grid > li {
  margin: 0;
}

.strength-card {
  height: 100%;
  margin: 0;
  padding: 1.5rem 1.35rem 1.5rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.strength-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.35;
}

.strength-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.section__title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__subtitle {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 36rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.card-grid {
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* margin: 0 は .card-grid の左右 auto を潰すため使わない（ブロック全体の中央寄せを維持） */
.service-grid {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-max);
}

.service-grid > li {
  margin: 0;
  display: flex;
  min-width: 0;
  flex: 0 1 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 36rem) {
  .service-grid > li {
    flex: 0 1 calc((100% - 1.5rem) / 2);
    max-width: calc((100% - 1.5rem) / 2);
  }
}

@media (min-width: 60rem) {
  .service-grid > li {
    flex: 0 1 calc((100% - 3rem) / 3);
    max-width: calc((100% - 3rem) / 3);
  }
}

.section--services .card-service {
  width: 100%;
  text-align: center;
}

.section--services .card-service__icon {
  margin-left: auto;
  margin-right: auto;
}

.card-service {
  height: 100%;
  padding: 1.85rem 1.6rem;
  background: linear-gradient(160deg, #ffffff 0%, #f8fafc 48%, #ffffff 100%);
  border: 1px solid rgba(13, 148, 136, 0.14);
  border-radius: var(--radius);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -18px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.card-service:hover {
  border-color: color-mix(in srgb, var(--color-accent) 40%, var(--color-border));
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 28px 56px -22px rgba(13, 148, 136, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  transform: translateY(-5px);
}

.card-service:hover .card-service__icon {
  transform: scale(1.05);
  background: color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.card-service__icon {
  width: 3.25rem;
  height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--color-accent);
  background: rgba(13, 148, 136, 0.1);
  background: color-mix(in srgb, var(--color-accent) 14%, transparent);
  border-radius: calc(var(--radius) * 0.75);
  transition: transform 0.25s ease, background 0.25s ease;
}

.card-service__icon svg {
  width: 1.45rem;
  height: 1.45rem;
  flex-shrink: 0;
}

.card-service h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.card-service p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.about-block {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-block {
    grid-template-columns: 1fr 1.2fr;
  }
}

.about-block__body {
  padding-top: 0.25rem;
}

.about-block__body h2 {
  margin-top: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--color-accent);
}

.about-block__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(13, 148, 136, 0.12),
    0 20px 40px -24px rgba(13, 148, 136, 0.15);
  aspect-ratio: 4 / 3;
  background: var(--color-border);
}

.about-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-block h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.about-block p {
  margin: 0;
  color: var(--color-text-muted);
}

.about-block__body p + p {
  margin-top: 1rem;
}

.section--company .section__subtitle {
  margin-bottom: 2.25rem;
}

.company-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 56.25rem) {
  .company-layout {
    grid-template-columns: minmax(17rem, 1fr) minmax(0, 1.35fr);
    gap: 2.5rem;
  }
}

.company-facts {
  padding: 1.75rem 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.company-facts__heading {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.company-dl {
  margin: 0;
}

.company-dl dt {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.company-dl dt:first-of-type {
  margin-top: 0;
}

.company-dl dd {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

.company-dl__address {
  font-style: normal;
  color: var(--color-text-muted);
}

.company-map__heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section--contact {
  background: #ecf4f2;
  background: linear-gradient(180deg, color-mix(in srgb, var(--color-accent) 6%, var(--color-bg)) 0%, var(--color-bg) 100%);
}

.contact-panel {
  max-width: 36rem;
  margin: 0 auto;
  padding: 0 0.25rem;
  text-align: center;
}

.contact-panel__title {
  margin-bottom: 0.75rem;
}

.contact-panel__lead {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.contact-panel__hint {
  margin: 0 0 1.75rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-panel__cta {
  display: inline-flex;
}

.map-embed {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
}

.site-footer {
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    background-attachment: scroll;
  }

  a,
  .site-nav a,
  .btn-hero,
  .card-service,
  .card-service__icon {
    transition: none;
  }

  .btn-hero:hover,
  .card-service:hover {
    transform: none;
  }

  .card-service:hover .card-service__icon {
    transform: none;
  }
}
