:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf4fa;
  --text: #14213a;
  --muted: #607086;
  --primary: #006d9c;
  --accent: #00a7c7;
  --line: rgba(20, 33, 58, 0.12);
  --shadow: 0 22px 60px rgba(20, 46, 78, 0.12);
  --radius: 24px;
  --hero-image: url("../../img/ta2.jpg");
  --font-heading: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 218px;
  height: auto;
}

.brand-mark {
  width: 12px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

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

.global-nav a {
  position: relative;
  text-decoration: none;
}

.global-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  transition: transform 180ms ease;
}

.global-nav a:hover::after,
.global-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-contact {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.nav-contact::after {
  display: none;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 98%, transparent) 0 35%, color-mix(in srgb, var(--bg) 65%, transparent) 60%, transparent 100%),
    var(--hero-image) center / cover no-repeat;
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 28%),
    linear-gradient(180deg, transparent 65%, var(--bg));
}

.hero-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0 130px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.hero-copy {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
}

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

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 35, 58, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 35, 58, 0.16);
}

.section {
  padding: 110px 0;
}

.section.soft {
  background: var(--surface-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 46px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.solutions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.solution-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.solution-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%),
    var(--surface-soft);
}

.solution-image img {
  max-height: 190px;
  object-fit: contain;
  transition: transform 300ms ease;
}

.solution-card:hover .solution-image img {
  transform: translateY(-5px) scale(1.03);
}

.solution-body {
  padding: 26px;
}

.solution-number {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.solution-body h3 {
  margin: 8px 0 12px;
  font-family: var(--font-heading);
  font-size: 24px;
}

.solution-body p {
  min-height: 6.5em;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 160ms ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.capability {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease;
}

.capability:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.capability small {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.14em;
}

.capability strong {
  display: block;
  margin-top: 16px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.35;
}

.capability span {
  color: var(--muted);
  font-size: 13px;
}

.news-layout {
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 70px;
}

.news-intro h2 {
  margin: 8px 0 18px;
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
}

.news-intro p {
  color: var(--muted);
}

.news-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-list a {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.news-list time {
  color: var(--muted);
  font-size: 13px;
}

.news-list strong {
  font-size: 15px;
}

.news-list a::after {
  content: "↗";
  color: var(--accent);
}

.contact-band {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 60%, #111b38));
  color: #fff;
}

.contact-band .section-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-band h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 46px);
}

.contact-band p {
  margin: 8px 0 0;
  opacity: 0.78;
}

.contact-band .button {
  flex: none;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--primary);
}

.site-footer {
  padding: 58px 0 28px;
  background: #0e1728;
  color: #d6e0ed;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-top img {
  width: 210px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 22px;
  font-size: 13px;
}

.footer-nav a {
  color: #d6e0ed;
  text-decoration: none;
}

.copyright {
  margin: 42px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #8696aa;
  font-size: 12px;
}

.theme-editorial {
  --bg: #f7f5f0;
  --surface: #fffdf8;
  --surface-soft: #eae5dc;
  --text: #182138;
  --muted: #6f716e;
  --primary: #203a62;
  --accent: #bc6c3f;
  --line: rgba(32, 58, 98, 0.14);
  --shadow: 0 24px 70px rgba(69, 57, 43, 0.11);
  --radius: 8px;
  --hero-image: url("../../img/tb2.jpg");
  --font-heading: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.theme-editorial .brand-mark {
  border-radius: 0;
}

.theme-editorial .hero {
  min-height: 720px;
  background:
    linear-gradient(90deg, var(--bg) 0 43%, rgba(247, 245, 240, 0.86) 56%, rgba(247, 245, 240, 0.08) 100%),
    var(--hero-image) center / cover no-repeat;
}

.theme-editorial .hero h1 {
  max-width: 690px;
  letter-spacing: 0.01em;
}

.theme-editorial .button,
.theme-editorial .nav-contact {
  border-radius: 3px;
}

.theme-editorial .solution-image {
  min-height: 260px;
}

.theme-dark {
  color-scheme: dark;
  --bg: #07121c;
  --surface: #0d1d2b;
  --surface-soft: #0b1925;
  --text: #edf8f6;
  --muted: #9bb2b5;
  --primary: #00a98f;
  --accent: #5ee6c4;
  --line: rgba(139, 255, 224, 0.15);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --hero-image: url("../../img/tc2.jpg");
}

.theme-dark .site-header {
  background: rgba(7, 18, 28, 0.86);
}

.theme-dark .brand img {
}

.theme-dark .hero {
  min-height: 740px;
  background:
    linear-gradient(90deg, #07121c 0 30%, rgba(7, 18, 28, 0.83) 54%, rgba(7, 18, 28, 0.16) 100%),
    var(--hero-image) center / cover no-repeat;
}

.theme-dark .hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.13;
  background-image:
    linear-gradient(var(--accent) 1px, transparent 1px),
    linear-gradient(90deg, var(--accent) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, #000, transparent 72%);
}

.theme-dark .solution-card,
.theme-dark .capability {
  background: linear-gradient(145deg, rgba(20, 47, 63, 0.88), rgba(8, 25, 37, 0.95));
}

.theme-dark .button:not(.primary) {
  color: var(--text);
}

@media (max-width: 920px) {
  .global-nav {
    display: none;
  }

  .hero {
    min-height: 620px;
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--bg) 95%, transparent), color-mix(in srgb, var(--bg) 62%, transparent)),
      var(--hero-image) center / cover no-repeat;
  }

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

  .solution-card {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
  }

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

  .section-heading,
  .news-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .hero-content {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 178px;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 90px 0 110px;
  }

  .section {
    padding: 76px 0;
  }

  .solution-card {
    display: block;
  }

  .solution-body p {
    min-height: 0;
  }

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

  .news-list a {
    grid-template-columns: 1fr auto;
  }

  .news-list time {
    grid-column: 1 / -1;
  }

  .contact-band .section-inner,
  .footer-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
