/* =========================================================
   Hokkaido Route Design LLC
   Corporate website styles
   ========================================================= */

:root {
  --color-navy-950: #0b2334;
  --color-navy-900: #0f3047;
  --color-navy-800: #16445f;
  --color-blue-700: #176b8a;
  --color-blue-100: #e8f4f8;
  --color-blue-050: #f4f9fb;
  --color-green-700: #237565;
  --color-green-100: #e8f3ef;
  --color-text: #172631;
  --color-muted: #5a6a75;
  --color-border: #d9e3e8;
  --color-white: #ffffff;
  --shadow-soft: 0 24px 60px rgba(11, 35, 52, 0.12);
  --shadow-card: 0 14px 36px rgba(11, 35, 52, 0.09);
  --radius-large: 28px;
  --radius-medium: 18px;
  --container-width: 1120px;
  --header-height: 82px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
}

/* Reset and base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

address {
  font-style: normal;
}

p,
h1,
h2,
dl,
dd {
  margin-top: 0;
}

h1,
h2 {
  color: var(--color-navy-950);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem);
  font-weight: 750;
  letter-spacing: 0.035em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  font-weight: 750;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.container {
  width: min(calc(100% - 48px), var(--container-width));
  margin-inline: auto;
}

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

.section {
  padding-block: 104px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--color-white);
  background: var(--color-navy-950);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 227, 232, 0.88);
  backdrop-filter: blur(12px);
}

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

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--color-navy-950);
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: var(--color-navy-900);
  background: linear-gradient(145deg, var(--color-blue-100), var(--color-green-100));
  border: 1px solid rgba(23, 107, 138, 0.18);
  border-radius: 14px;
}

.brand-mark svg {
  width: 31px;
  height: 31px;
}

.brand-mark path:first-child {
  fill: currentColor;
}

.brand-mark .brand-mark-route {
  fill: none;
  stroke: var(--color-green-700);
  stroke-width: 3.2;
  stroke-linecap: round;
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.brand-en {
  margin-top: 3px;
  color: var(--color-muted);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.global-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.global-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding-inline: 18px;
  color: var(--color-navy-900);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.global-nav a:hover {
  color: var(--color-blue-700);
  background: var(--color-blue-050);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 96px 108px;
  background:
    radial-gradient(circle at 84% 18%, rgba(35, 117, 101, 0.1), transparent 26%),
    radial-gradient(circle at 14% 20%, rgba(23, 107, 138, 0.09), transparent 30%),
    linear-gradient(180deg, #f8fbfc 0%, var(--color-white) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -140px;
  bottom: -230px;
  width: 630px;
  height: 630px;
  border: 1px solid rgba(23, 107, 138, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(23, 107, 138, 0.028),
    0 0 0 104px rgba(35, 117, 101, 0.022);
}

.hero-pattern {
  position: absolute;
  z-index: -1;
  top: 42px;
  left: max(24px, calc((100vw - var(--container-width)) / 2 - 74px));
  width: 170px;
  height: 170px;
  opacity: 0.26;
  background-image: radial-gradient(circle, rgba(23, 107, 138, 0.46) 1.3px, transparent 1.5px);
  background-size: 18px 18px;
  mask-image: linear-gradient(145deg, #000, transparent 74%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: clamp(52px, 7vw, 96px);
}

.hero-content {
  max-width: 680px;
}

.eyebrow,
.section-label,
.card-kicker {
  margin-bottom: 18px;
  color: var(--color-blue-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 32px;
  height: 2px;
  background: var(--color-green-700);
}

.hero-description {
  max-width: 660px;
  margin-bottom: 34px;
  color: #40515d;
  font-size: clamp(1.02rem, 1.55vw, 1.16rem);
  line-height: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.button-primary {
  color: var(--color-white);
  background: var(--color-navy-900);
  box-shadow: 0 10px 24px rgba(15, 48, 71, 0.18);
}

.button-primary:hover {
  background: var(--color-navy-800);
  box-shadow: 0 12px 28px rgba(15, 48, 71, 0.23);
}

.button-secondary {
  color: var(--color-navy-900);
  background: rgba(255, 255, 255, 0.72);
  border-color: #bdced7;
}

.button-secondary:hover {
  background: var(--color-white);
  border-color: var(--color-blue-700);
}

.hero-card {
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid rgba(184, 204, 214, 0.72);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-soft);
}

.hero-card-visual {
  overflow: hidden;
  height: 190px;
  background: linear-gradient(155deg, #dceff4 0%, #eff7f4 55%, #f8fbfc 100%);
}

.hero-card-visual svg {
  width: 100%;
  height: 100%;
}

.land-back {
  fill: rgba(22, 68, 95, 0.16);
}

.land-front {
  fill: rgba(35, 117, 101, 0.2);
}

.route-line {
  fill: none;
  stroke: var(--color-navy-900);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 7 10;
}

.route-point {
  fill: var(--color-white);
  stroke: var(--color-green-700);
  stroke-width: 4;
}

.hero-card-body {
  padding: 28px 30px 30px;
}

.card-kicker {
  margin-bottom: 7px;
  font-size: 0.67rem;
}

.card-company {
  margin-bottom: 22px;
  color: var(--color-navy-950);
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: 0.025em;
}

.quick-facts {
  margin-bottom: 0;
  border-top: 1px solid var(--color-border);
}

.quick-facts > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--color-border);
}

.quick-facts > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.quick-facts dt,
.quick-facts dd {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.quick-facts dt {
  color: var(--color-muted);
  font-weight: 650;
}

.quick-facts dd {
  color: var(--color-navy-950);
  font-weight: 700;
}

.quick-facts a {
  color: var(--color-blue-700);
}

/* Section headings */
.section-heading {
  margin-bottom: 34px;
}

.section-heading .section-label {
  margin-bottom: 9px;
}

.section-heading > p:last-child:not(.section-label) {
  margin-bottom: 0;
  color: var(--color-muted);
}

.section-heading-centered {
  margin-bottom: 46px;
  text-align: center;
}

/* About */
.about {
  position: relative;
  background: var(--color-white);
}

.about::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(calc(100% - 48px), var(--container-width));
  height: 1px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.about-text {
  margin-bottom: 0;
  color: #334550;
  font-size: clamp(1.03rem, 1.8vw, 1.2rem);
  line-height: 2.15;
  letter-spacing: 0.015em;
}

/* Company profile */
.company {
  background: var(--color-blue-050);
}

.company-profile {
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
}

.profile-row {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

.profile-row:last-child {
  border-bottom: 0;
}

.profile-row dt,
.profile-row dd {
  margin: 0;
  padding: 24px 28px;
}

.profile-row dt {
  display: flex;
  align-items: center;
  color: var(--color-navy-900);
  background: #f4f8fa;
  font-weight: 750;
}

.profile-row dd {
  color: #2f404b;
  font-weight: 500;
}

.text-link {
  color: var(--color-blue-700);
  font-weight: 700;
}

.breakable {
  overflow-wrap: anywhere;
}

/* Contact */
.contact {
  color: var(--color-white);
  background:
    radial-gradient(circle at 86% 26%, rgba(67, 156, 138, 0.26), transparent 30%),
    linear-gradient(135deg, var(--color-navy-950), var(--color-navy-800));
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(440px, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 100px);
}

.contact-copy h2 {
  color: var(--color-white);
}

.contact-copy > p:last-child {
  max-width: 520px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.section-label-light {
  color: #8fd0c2;
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-card {
  min-width: 0;
  min-height: 96px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  color: var(--color-navy-950);
  background: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(4, 17, 27, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(4, 17, 27, 0.25);
}

.contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--color-blue-700);
  background: var(--color-blue-100);
  border-radius: 14px;
}

.contact-icon svg {
  width: 23px;
  height: 23px;
}

.contact-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  display: block;
  margin-bottom: 1px;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.contact-card strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-card-text {
  min-width: 0;
}

.contact-arrow {
  color: var(--color-green-700);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding-block: 36px;
  color: #9badb9;
  background: #071a28;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}

.footer-company {
  color: var(--color-white);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-brand span:last-child {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.footer-inner p {
  margin-bottom: 0;
  text-align: right;
}

/* Keyboard focus */
a:focus-visible {
  outline: 3px solid #3e9fc4;
  outline-offset: 4px;
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .hero {
    padding-block: 76px 88px;
  }

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

  .hero-content {
    max-width: 760px;
  }

  .hero-card {
    width: min(100%, 620px);
  }

  .contact-inner {
    gap: 42px;
  }

  .contact-options {
    max-width: 680px;
  }
}

@media (max-width: 700px) {
  :root {
    --header-height: auto;
  }

  html {
    scroll-padding-top: 132px;
  }

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

  .section {
    padding-block: 74px;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
    padding-block: 14px 10px;
  }

  .brand {
    align-self: flex-start;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 0.9rem;
    white-space: normal;
  }

  .brand-en {
    font-size: 0.63rem;
  }

  .global-nav {
    width: 100%;
    border-top: 1px solid var(--color-border);
  }

  .global-nav a {
    flex: 1;
    justify-content: center;
    min-height: 42px;
    padding-inline: 10px;
    border-radius: 0;
    font-size: 0.85rem;
  }

  .hero {
    padding-block: 62px 72px;
  }

  .hero::before {
    right: -280px;
    bottom: -300px;
  }

  .hero-pattern {
    top: 16px;
    left: -30px;
  }

  .hero-grid {
    gap: 46px;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
  }

  .hero-description {
    margin-bottom: 28px;
    line-height: 1.9;
  }

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

  .button {
    width: 100%;
  }

  .hero-card-visual {
    height: 152px;
  }

  .hero-card-body {
    padding: 24px 22px 25px;
  }

  .card-company {
    font-size: 1rem;
  }

  .section-heading,
  .section-heading-centered {
    margin-bottom: 28px;
    text-align: left;
  }

  .about::after {
    width: calc(100% - 32px);
  }

  .about-text {
    font-size: 1rem;
    line-height: 2;
  }

  .company-profile {
    border-radius: 14px;
  }

  .profile-row {
    grid-template-columns: 1fr;
  }

  .profile-row dt,
  .profile-row dd {
    padding: 17px 20px;
  }

  .profile-row dt {
    padding-bottom: 7px;
    background: var(--color-white);
    font-size: 0.84rem;
  }

  .profile-row dd {
    padding-top: 0;
  }

  .contact-card {
    min-height: 88px;
    grid-template-columns: 44px minmax(0, 1fr) 18px;
    gap: 13px;
    padding: 17px 16px;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .contact-card strong {
    font-size: 0.91rem;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .footer-inner p {
    text-align: left;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 0.82rem;
  }

  .brand-en {
    letter-spacing: 0.04em;
  }

  .quick-facts > div {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }

  .contact-card {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .contact-arrow {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
