:root {
  --ink: #132033;
  --muted: #5d6b7c;
  --line: #dce3ea;
  --paper: #f7f9fb;
  --white: #ffffff;
  --navy: #10243c;
  --blue: #1b5f91;
  --green: #2f7d62;
  --yellow: #f3b52b;
  --yellow-soft: #fff4d8;
  --shadow: 0 24px 60px rgba(15, 30, 48, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
  background: var(--white);
  overflow-wrap: anywhere;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(220, 227, 234, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  color: var(--navy);
  font-weight: 800;
  background: linear-gradient(135deg, var(--yellow), #ffe398);
  border: 1px solid rgba(19, 32, 51, 0.08);
  border-radius: 8px;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: clamp(12px, 2.2vw, 28px);
  color: #2f3c4c;
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-color: var(--yellow);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  font-weight: 800;
  line-height: 1.35;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta {
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(16, 36, 60, 0.18);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 16px 30px rgba(243, 181, 43, 0.25);
}

.button.secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.66);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 34, 0.92) 0%, rgba(8, 20, 34, 0.72) 42%, rgba(8, 20, 34, 0.18) 100%),
    linear-gradient(0deg, rgba(8, 20, 34, 0.72) 0%, rgba(8, 20, 34, 0) 46%);
}

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

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5.5vw, 5rem);
  line-height: 1.12;
  letter-spacing: 0;
}

h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead span,
.intro h2 span {
  display: block;
}

.hero-lead span {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.28;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.45;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
}

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

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 48px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-facts div {
  padding: 18px 20px;
}

.hero-facts div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-facts dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-facts dd {
  margin: 2px 0 0;
  font-weight: 900;
}

.section {
  padding: clamp(72px, 9vw, 116px) clamp(18px, 4vw, 56px);
}

.section-grid,
.section-head,
.service-grid,
.strength-grid,
.area,
.company-table-wrap,
.contact-inner,
.flow {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: 42px;
  align-items: start;
}

.intro {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro p:last-child {
  margin-bottom: 0;
  color: #334155;
  font-size: 1.08rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head.compact {
  margin-bottom: 26px;
}

.section-head p:not(.section-label),
.area-copy p {
  color: var(--muted);
}

.services {
  background: var(--white);
}

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

.service-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px rgba(15, 30, 48, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 3px 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  background: #e9f4ef;
  border-radius: 999px;
}

.service-card p,
.strength-grid p,
.flow p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(1180px, 100%);
  margin: 28px auto 0;
}

.service-list span {
  padding: 8px 13px;
  color: #334155;
  font-weight: 700;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.strength,
.process {
  background: linear-gradient(180deg, #f5f8fb 0%, #ffffff 100%);
}

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

.strength-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.number {
  display: block;
  margin-bottom: 22px;
  color: var(--yellow);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.flow li {
  padding: 26px;
  background: var(--white);
}

.flow span {
  display: block;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 900;
}

.flow strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.area {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(360px, 1fr);
  gap: 34px;
  align-items: stretch;
}

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

.area-list li {
  padding: 9px 13px;
  font-weight: 800;
  background: var(--yellow-soft);
  border: 1px solid #f7d98d;
  border-radius: 999px;
}

.map-panel {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 390px;
  border: 0;
}

.company {
  background: var(--paper);
}

.company-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 18px 22px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 220px;
  color: #344255;
  background: #edf2f6;
}

.contact {
  padding: clamp(72px, 9vw, 110px) clamp(18px, 4vw, 56px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(16, 36, 60, 0.96), rgba(27, 95, 145, 0.92)),
    var(--navy);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 42px;
  align-items: end;
}

.contact-inner .section-label,
.contact-inner h2,
.contact-inner p {
  grid-column: 1 / 2;
}

.contact-inner p {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
}

.contact-actions,
.contact-form {
  grid-column: 2 / 3;
  grid-row: 1 / span 3;
}

.contact .note {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}

.contact-form {
  width: min(420px, 100%);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
}

.contact-form label,
.contact-form span {
  display: block;
}

.contact-form label {
  margin-bottom: 14px;
}

.contact-form span {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.78);
  background: #091421;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.site-footer strong {
  color: var(--white);
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    order: 3;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero {
    min-height: 640px;
  }

  .section-grid,
  .service-grid,
  .strength-grid,
  .area,
  .contact-inner {
    grid-template-columns: 1fr;
  }

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

  .contact-actions,
  .contact-form,
  .contact-inner .section-label,
  .contact-inner h2,
  .contact-inner p {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 16px;
    overflow: hidden;
  }

  .brand {
    flex: none;
    min-width: 0;
  }

  .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.96rem;
  }

  .brand-sub {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    grid-column: 1 / -1;
    flex: 0 0 100%;
    max-width: 100%;
    gap: 16px;
    font-size: 0.86rem;
    white-space: nowrap;
  }

  h1,
  h2,
  h3,
  p,
  li,
  dd,
  td {
    line-break: anywhere;
    word-break: break-all;
    overflow-wrap: anywhere;
  }

  .section-grid,
  .section-head,
  .service-grid,
  .strength-grid,
  .area,
  .company-table-wrap,
  .contact-inner,
  .flow,
  .section-grid > *,
  .section-head > *,
  .area > * {
    min-width: 0;
    max-width: 100%;
  }

  h2 {
    font-size: 1.72rem;
    max-width: 13em;
  }

  h1 {
    font-size: clamp(1.86rem, 7.7vw, 2.1rem);
    max-width: 100%;
  }

  .hero-lead span,
  .intro h2 span {
    display: block;
  }

  .hero-lead {
    font-size: clamp(0.83rem, 3.45vw, 1rem);
  }

  .hero-lead span::after,
  .intro h2 span::after {
    content: none;
  }

  .hero-lead,
  .intro p:last-child,
  .section-head p:not(.section-label),
  .area-copy p,
  .contact-inner p {
    max-width: 20em;
  }

  .hero {
    min-height: auto;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(8, 20, 34, 0.72) 0%, rgba(8, 20, 34, 0.9) 58%, rgba(8, 20, 34, 0.96) 100%);
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding: 92px 0 32px;
  }

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

  .contact-form {
    width: 100%;
    padding: 18px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 32px;
  }

  .hero-facts div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .section {
    padding: 64px 16px;
  }

  .service-card div,
  .strength-grid article,
  .flow li {
    padding: 22px;
  }

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

  .map-panel,
  .map-panel iframe {
    min-height: 320px;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
    padding: 14px 16px;
  }

  .company-table th {
    border-bottom: 0;
  }

  .site-footer {
    display: block;
  }

  .site-footer small {
    display: block;
    margin-top: 12px;
  }
}

@media print {
  * {
    color: #111 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  body {
    font-size: 10.5pt;
    line-height: 1.6;
  }

  .site-header {
    position: static;
    display: block;
    padding: 0 0 10mm;
    border-bottom: 1px solid #999;
  }

  .site-nav,
  .header-cta,
  .hero-actions,
  .contact-actions,
  .map-panel iframe {
    display: none;
  }

  .hero {
    min-height: 0;
    display: block;
  }

  .hero-image {
    position: static;
    width: 100%;
    height: 70mm;
    object-fit: cover;
    margin-bottom: 8mm;
    border: 1px solid #bbb;
  }

  .hero-overlay {
    display: none;
  }

  .hero-inner,
  .section,
  .contact,
  .site-footer {
    width: auto;
    padding: 0;
    margin: 0;
  }

  h1 {
    font-size: 24pt;
  }

  h2 {
    font-size: 18pt;
    margin-top: 10mm;
  }

  h3 {
    font-size: 12pt;
  }

  .section-grid,
  .service-grid,
  .strength-grid,
  .flow,
  .area,
  .contact-inner,
  .contact-form {
    display: block;
    width: auto;
  }

  .service-card,
  .strength-grid article,
  .flow li,
  .company-table-wrap,
  .map-panel {
    break-inside: avoid;
    margin-bottom: 6mm;
    border: 1px solid #aaa;
  }

  .service-card img {
    height: 42mm;
    object-fit: cover;
  }

  .hero-facts {
    display: table;
    width: 100%;
    margin: 6mm 0;
    border: 1px solid #aaa;
  }

  .hero-facts div {
    display: table-cell;
    padding: 4mm;
    border-left: 1px solid #aaa;
  }

  .company-table th,
  .company-table td {
    border: 1px solid #aaa;
  }

  .contact .note::after {
    content: " 公開URL: https://uriage-labo.com/sinko-denki/";
  }
}
