:root {
  --blue: #0f63ad;
  --blue-deep: #00498a;
  --ink: #1a1f2c;
  --muted: #5b6473;
  --line: #d9e2ef;
  --bg: #f5f7fb;
  --content-width: 1140px;
  --content-gutter: 56px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  line-height: 1.75;
}

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

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

.container {
  width: min(var(--content-width), calc(100% - (var(--content-gutter) * 2)));
  margin: 0 auto;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 0;
}

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

.logo img {
  width: min(286px, 56vw);
}

.global-nav {
  display: flex;
  gap: 44px;
  font-size: 13px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.08em;
}

.global-nav a {
  position: relative;
  color: #111927;
  white-space: nowrap;
}

.global-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.global-nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 680px;
  padding-top: 76px;
  background: url("../img/hero-image-20260526.png") center top/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 78px 0 96px;
  max-width: none;
}

.hero-kicker,
.hero h1,
.hero-text,
.hero-tel,
.hero-actions {
  max-width: 650px;
}

.hero-kicker {
  margin: 0 0 22px;
  color: #415b78;
  font-size: 14px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  letter-spacing: 0.1em;
}

.hero h1 {
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.hero-text {
  margin: 28px 0 0;
  font-size: 16px;
  max-width: 620px;
  color: #2c3950;
}

.hero-tel {
  display: block;
  width: fit-content;
  margin-top: 24px;
  color: var(--blue-deep);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 226px;
  height: 54px;
  padding: 0 20px;
  border: 1px solid var(--blue);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.btn::after {
  content: "→";
  margin-left: 12px;
}

.btn-primary {
  background: linear-gradient(90deg, #0b5ca8, #1b78c7);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--blue);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(20, 77, 136, 0.16);
}

.section {
  padding: 110px 0;
}

.news-strip {
  background: #fff;
  border-bottom: 1px solid #e5edf6;
  padding: 30px 0;
}

.news-inner {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 28px;
  align-items: center;
}

.news-inner h2 {
  margin: 0;
  color: var(--blue);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.news-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.news-list li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  font-size: 14px;
}

.news-list time {
  flex: 0 0 auto;
  color: #6b7890;
  font-size: 13px;
}

.news-list a {
  color: #24314a;
}

.news-text {
  color: #24314a;
}

.news-more {
  color: var(--blue);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.section-about {
  background: #fff;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.section-lead {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-about h2,
.section-sdgs h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.keep-line {
  white-space: nowrap;
}

.pc-break {
  display: inline;
}

.section-title {
  margin: 0 0 44px;
  text-align: center;
  font-size: clamp(34px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 18px auto 0;
  background: var(--blue);
}

.section-services {
  background: linear-gradient(180deg, #f9fbfe, #f2f6fb);
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eaf0f7;
  box-shadow: 0 12px 32px rgba(17, 53, 95, 0.06);
  padding: 38px 24px;
  text-align: center;
}

.icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1px solid #c8d9ee;
  display: grid;
  place-items: center;
  color: #2b73bb;
  font-size: 25px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.card h4 {
  margin: 0;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
}

.section-strengths {
  background: #fff;
}

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e2e9f1;
  border-bottom: 1px solid #e2e9f1;
}

.strength-item {
  padding: 36px 26px;
  border-right: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strength-item:last-child {
  border-right: 0;
}

.strength-item h4 {
  margin: 0;
  color: #1264b0;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: normal;
  line-height: 1.45;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.strength-item h4 br {
  display: block;
}

.strength-item p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.section-works {
  background: #f8fafd;
}

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

.work-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eaf0f7;
  box-shadow: 0 10px 26px rgba(17, 53, 95, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(17, 53, 95, 0.12);
}

.work-card img {
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
}

.work-card h4 {
  margin: 20px 18px 0;
  text-align: center;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 1.45;
  min-height: 2.9em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
}

.work-card p {
  margin: 10px 18px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.75;
  word-break: normal;
  overflow-wrap: break-word;
}

.center {
  text-align: center;
  margin: 44px 0 0;
}

.section-sdgs {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(238, 249, 255, 0.97) 0%, rgba(245, 252, 255, 0.9) 55%, rgba(255, 255, 255, 0.32) 100%),
    url("../img/sdgs-leaf-reference.png") right center/auto 100% no-repeat;
  padding: 76px 0 66px;
}

.section-sdgs::after {
  content: none;
}

.sdgs-wrap {
  display: grid;
  grid-template-columns: 0.92fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.section-sdgs h2 {
  font-size: 31px;
  line-height: 1.7;
  letter-spacing: 0.05em;
}

.section-sdgs p:not(.section-lead) {
  font-size: 14px;
  line-height: 2;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.sdgs-panel {
  display: grid;
  gap: 16px;
}

.sdgs-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(225, 237, 248, 0.82);
  border-radius: 8px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 116px;
  box-shadow: 0 12px 24px rgba(26, 69, 118, 0.06);
}

.sdgs-card img {
  width: 70px;
  height: auto;
}

.sdgs-card-wide {
  display: block;
}

.sdgs-card-wide > img {
  width: min(430px, 100%);
}

.sdgs-card p {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 600;
}

.section-contact {
  min-height: 250px;
  display: flex;
  align-items: center;
  background: url("../img/contact-replace-20260522.png") center center/cover no-repeat;
  padding: 62px 0 58px;
}

.contact-inner {
  text-align: center;
  max-width: var(--content-width);
}

.contact-inner h3,
.contact-inner p,
.contact-inner .btn {
  margin-left: auto;
  margin-right: auto;
}

.contact-inner h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.contact-inner p {
  margin: 12px 0 26px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(90deg, #0a5ea8, #125e9a 54%, #0e4e88);
  color: #e6f0fb;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.45fr) minmax(170px, 0.75fr) minmax(230px, 0.9fr);
  gap: 38px;
}

.footer-logo {
  width: min(300px, 58vw);
  margin-bottom: 14px;
}

.footer-tel {
  display: inline-block;
  margin-bottom: 10px;
  color: #fff;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-footer p,
.footer-links a {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

.site-footer p {
  white-space: nowrap;
}

.footer-links {
  display: grid;
  gap: 7px;
  align-content: start;
}

.copyright {
  margin: 26px 0 0;
  text-align: center;
  font-size: 12px;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  opacity: 0.9;
}

@media (max-width: 1080px) {
  .global-nav {
    gap: 14px;
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: minmax(420px, 1fr) minmax(220px, 0.7fr);
    gap: 28px 42px;
  }

  .footer-grid > :first-child {
    grid-row: span 2;
  }

  .cards.four,
  .strengths-grid,
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .strength-item {
    border-right: 0;
    border: 1px solid var(--line);
  }
}

@media (max-width: 780px) {
  :root {
    --content-gutter: 30px;
  }

  .site-header {
    position: static;
    background: #fff;
    backdrop-filter: none;
  }

  .header-inner {
    min-height: 62px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
  }

  .global-nav {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 6px;
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero-content {
    padding: 48px 0 58px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  }

  .hero h1 {
    font-size: clamp(32px, 11vw, 52px);
  }

  .hero-tel {
    font-size: 30px;
  }

  .news-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .news-list li {
    display: grid;
    gap: 4px;
  }

  .btn {
    min-width: 100%;
  }

  .two-col,
  .sdgs-wrap,
  .footer-grid,
  .cards.four,
  .strengths-grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .sdgs-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .sdgs-card img {
    width: min(180px, 100%);
  }

  .site-footer p {
    white-space: normal;
  }

  .keep-line {
    white-space: normal;
  }

  .pc-break {
    display: none;
  }
}

/* Post-replace layout fixes */
.section-about .two-col{
  gap:48px;
}

.section-about .two-col > div:last-child{
  padding-top:22px;
}

.work-card{
  display:flex;
  flex-direction:column;
}

.work-card h4{
  min-height:0;
  margin-top:22px;
  margin-bottom:0;
}

.work-card p{
  margin-top:14px;
  min-height:4.9em;
}

@media (max-width: 780px){
  .section-about .two-col{
    gap:26px;
  }

  .section-about .two-col > div:last-child{
    padding-top:0;
  }

  .work-card p{
    min-height:0;
  }
}

@media (max-width: 780px){
  .section-about .two-col{
    gap:14px;
  }
}

/* Service carousel */
.service-scroll{
  display:flex;
  gap:22px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  padding:4px 0 18px;
  scrollbar-color:#b8cde4 transparent;
}

.service-card{
  display:block;
  flex:0 0 clamp(300px, 32vw, 420px);
  scroll-snap-align:start;
  background:#fff;
  border:1px solid #eaf0f7;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 12px 32px rgba(17, 53, 95, 0.08);
  color:inherit;
  text-decoration:none;
}

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

.service-card p{
  margin:0;
  padding:20px 22px 24px;
  color:var(--muted);
  font-family:"Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size:15px;
  line-height:1.8;
}

@media (max-width: 780px){
  .service-scroll{
    margin-right:calc(var(--content-gutter) * -1);
    padding-right:var(--content-gutter);
  }

  .service-card{
    flex-basis:min(82vw, 360px);
  }
}

.service-heading-row{
  position:relative;
}

.service-heading-row .section-title{
  margin-bottom:28px;
}

.service-controls{
  display:flex;
  justify-content:center;
  gap:12px;
  margin-bottom:24px;
}

.service-arrow{
  width:46px;
  height:46px;
  border:1px solid #c8d9ee;
  border-radius:50%;
  background:#fff;
  color:var(--blue);
  font-size:32px;
  line-height:1;
  font-family:"Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  box-shadow:0 8px 18px rgba(17, 53, 95, 0.08);
  cursor:pointer;
  transition:background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

.service-arrow:hover:not(:disabled),
.service-arrow:focus-visible:not(:disabled){
  background:var(--blue);
  color:#fff;
  transform:translateY(-1px);
}

.service-arrow:disabled{
  opacity:.35;
  cursor:default;
}

.service-scroll{
  scrollbar-width:none;
}

.service-scroll::-webkit-scrollbar{
  display:none;
}

@media (min-width: 1081px){
  .service-card{
    flex-basis:calc((100% - 66px) / 4);
  }

  .service-heading-row .section-title{
    margin-bottom:0;
  }

  .service-controls{
    position:absolute;
    right:0;
    bottom:8px;
    margin-bottom:0;
  }
}
