@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:wght@700&family=Noto+Sans+JP:wght@400;500;600;700&family=Shippori+Mincho:wght@600;700&display=swap');


@font-face {
  font-family: 'Local Noto Serif JP';
  src: url('../fonts/NotoSerifJP-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'Local Shippori Mincho B1';
  src: url('../fonts/ShipporiMinchoB1-Bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}


:root {
  --navy: #071c3b;
  --blue: #0864ad;
  --orange: #eb710b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  color: #172235;
  font-size: 14px;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.container {
  max-width: 1250px;
  margin: auto;
  padding: 0 35px;
}

.serif { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 700; }
.serif_r { font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 700; }
.goshic_b { font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif; font-weight: 700; }
.goshic_r { font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif; font-weight: 400; }
/* ヘッダー */
.header {
  background: white;
  border-top: 7px solid #004c9a;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: 1250px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  gap: 0.428571em;
  white-space: nowrap;
  color: #111;
  font-size: min(28px, 6vw);
}

.brand img {
  flex: 0 0 auto;
  width: 3em;
  height: auto;
  object-fit: contain;
}

.brand strong {
  flex: 0 0 auto;
  font-size: inherit;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2cb8ed, #004d9d);
  color: white;
  display: inline-grid;
  place-items: center;
  font: 700 37px Arial;
  transform: rotate(-20deg);
}

.nav {
  display: flex;
  align-items: stretch;
}

.nav a {
  min-width: 95px;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif; font-weight: 700;
  text-align: center;
  padding: 9px 9px 9px;
  border-left: 1.5px solid #d6d2d2;
  white-space: nowrap;
}

.nav a small {
  display: block;
  color: #555;
  font-size: 10px;
  margin-top: 2px;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif; font-weight: 400;
}

.nav a:hover,
.nav a.active {
  color: #0066b6;
  border-bottom: 3px solid #0066b6;
}

.nav .contact-button {
  display: inline-flex;
  align-items: center;
  align-self: center;
  justify-content: center;
  gap: 4px;
  margin-left: 6px;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: #005a9c;
  color: #fff;
}

.nav .contact-button.active {
  color: #fff;
  border-bottom: 0;
}

.nav .contact-button:focus-visible {
  background: #004576;
  color: #fff;
  border-bottom: 0;
}
.nav .contact-button:hover{
  background: #4581ac;
  color: #fff;
}

.nav .contact-button small {
  display: none;
}

.menu-toggle {
  display: none;
}

/* メインビジュアル */
.hero {
  height: clamp(380px, 38.125vw, 610px);
  background: url('../img/wa_hero.webp') center center/cover no-repeat;
  position: relative;
}

.hero-copy {
  position: absolute;
  left: max(4%, calc((100vw - 1200px)/2));
  top: 18%;
  color: #FFFF;
  text-shadow: 0 1px 6px black;
}

.hero h1 {
  font: 700 clamp(28px, 4.3vw, 66px)/1.5 'Local Shippori Mincho B1', serif;
  margin: 0 0 12px;
  line-height: 1.3;
}

.hero p {
  font-size: clamp(14px, 1.7vw, 1.5em);
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 15px;
}

.btn-hero-link {
  text-shadow: none;
  display: inline-block;
  background: #fff;
  color: var(--blue);
  padding: 9px 18px;
  padding-bottom: 10px;
  border-radius: 3px;
  font-size: clamp(12px, 1.7vw, 18px);
  font-weight: 700;
}

.btn-hero-link:hover {
  background: #e3f6fd;
}


/* 共通セクション */
.section {
  padding: 60px 0 60px;
}

.blue {
  background: #e3f6fd;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.heading-group {
  display: flex;
  flex-direction: column;
}
.hero-copy .heading-en {
  font-size: clamp(8px, 1.5vw, 14px) ;
  font-weight: bold;
  color: #bad5e1;
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin: 0 0 0px 3px;
  padding: 0;
}
.heading-en {
  font-size: clamp(8px, 1.5vw, 14px) ;
  font-weight: bold;
  color: #0089c7;
  letter-spacing: 0.15em;
  line-height: 1.2;
  margin: 0 0 -3px 3px;
  padding: 0;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  font-size: clamp(2em, 2vw, 3.1em) ;
  color: var(--navy);
  margin: 0;
  letter-spacing: 0.05em;
}

.section-heading h2 span {
  font-size: clamp(0.5em, 1vw, 0.65em) ;
  color: var(--blue);
  margin-left: 0px;
  letter-spacing: 0em;
}

.heading-description {
  font-size: 12px;
  margin: 0;
  align-self: flex-end;
}

.section-heading p {
  font-size:  14px ;
  color: black;
  margin: 0;
}

.more-link {
  font-size: clamp(12px, 1.8vw, 14px);
  color: var(--blue);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

/* 事業内容 */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(calc((100% - 24px) / 2), 250px), 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.service {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
}

.service img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.65 / 1;
  object-fit: cover;
}

.service-body {
  padding: 12px 14px;
}

.service h3 {
  font-size: clamp(15px, 2vw, 20px) ;
  margin: 0 0 4px;
  color: #0a1d37;
}

.service p {
  line-height: 1.6;
  font-size: clamp(13px, 1vw, 15px) ;
  margin: 0;
  color: #333;
}

/* 導入実績 */
.works-section {
  --works-pattern: url('../img/gara.webp');
  background: #eaf7fc url('../img/gara.webp') center 65% / min(100%, 1850px) auto no-repeat;
}

.works-wrap {
  container: works-cards / inline-size;
  position: relative;
  margin-bottom: 25px;
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(calc((100% - 25px) / 2), 210px), 1fr));
  grid-auto-rows: 1fr;
  gap: 30px;
}

.works::-webkit-scrollbar {
  display: none;
}

.works figure {
  min-width: 0;
  margin: 0 0 40px;
  position: relative;
  border: 1px solid #8a9aaa;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
  transform: skew(-10deg, 0deg);
}

.works figure:nth-child(even) {
  top: 40px;
}

.works figcaption {
  background: #182b3b;
  color: white;
  padding: 0;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* 画像 */
.works figure img {
  height: 160px;
}

/* 紺色のタイトル帯 */
.works-title {
  background: #061b3d;
  color: #fff;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: bold;
  line-height: 1.4;
  padding: 5px 2px;
}

/* 白背景の説明文 */
.works-description {
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  padding: 4px 2px;
}

.arrow {
  position: absolute;
  top: 38%;
  z-index: 1;
  border: 0;
  background: #d7f0ff;
  color: #0061aa;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 10px;
}

.prev {
  left: -20px;
}

.next {
  right: -20px;
}

/* 取引実績データ */
.stats-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.stats-box {
  background: #fff;
  padding: 18px;
  border-radius: 6px;
  border: 1px solid #dce1e8;
}

.stats-box h3 {
  font-size: 22px;
  color: var(--navy);
  border-bottom: 2px solid var(--blue);
  padding-bottom: 6px;
  margin: 0 0 14px;
}

.stats-flex {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stats-chart {
  width: 100px;
  flex-shrink: 0;
}

.stats-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 11px;
}

.stats-item span {
  display: block;
  color: #666;
}

.stats-item strong {
  font-size: 22px;
  color: var(--navy);
}

.client-table {
  width: 100%;
  font-size: 15px;
  border-collapse: collapse;
}

.client-table th, .client-table td {
  padding: 5px 6px;
  border-bottom: 1px solid #eee;
  text-align: left;
}

.client-table th {
  color: var(--blue);
  width: 120px;
}

.client-table td span {
  font-size: 13px;
  font-weight: 400;
}

/* お知らせ */
.news-section {
  background: white;
}

.news-list > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 1px;
  border-bottom: 1px solid #666;
  min-height: 60px;
  padding: 12px 0;
  font-weight: 600;
}

.news-list > div:first-child {
  border-top: 1px solid #666;
}

.news-list time {
  flex: 0 0 80px;
  text-align: left;
  color: #555;
  font-size: clamp(11px, 1.5vw, 15px) ;
}

.news-list span {
  flex: 0 0 auto;
  white-space: nowrap;
  background: #a75e95;
  color: white;
  text-align: center;
  padding: 4px 12px;
  font-size: clamp(13px, 1vw, 15px) ;
  border-radius: 2px;
  margin-right: 13px;
  margin-left: 10px;
}

.news-list p {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: clamp(11px, 1.5vw, 15px) ;
}

/* ご挨拶：左に背景写真、中央右に社長写真、右に本文 */
.greeting-section {
  background: #fff;
  position: relative;
  overflow: hidden;
}
.greeting-section .container { position: relative; z-index: 1; }
.greeting-container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 120px minmax(0, 1.35fr);
  gap: 26px;
  align-items: start;
  min-height: 420px;
}
.greeting-left {
  min-height: 420px;
  background: url('../img/wa_15.webp') left bottom / contain no-repeat;
}
.greeting-catch {
  font-size: clamp(19px, 2vw, 27px);
  color: var(--navy);
  line-height: 1.65;
  margin: 0;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.greeting-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 8px;
  text-align: center;
}
.greeting-profile img {
  width: 118px;
  height: 145px;
  object-fit: cover;
  border-radius: 2px;
}
.greeting-profile p {
font-size: 13px; color: #555; margin: 0; line-height: 1.2;
font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 700; 
}
.greeting-profile strong { display: block; font-size: 14px; color: #111; margin-top: 3px; }

/* フッター */
.footer {
  background: #00558c url('../img/wa_17.webp') center / cover no-repeat;
  color: white;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding-top: 30px;
  padding-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer p {
  line-height: 1.8;
  font-size: 13px;
  margin: 0;
}

.footer h3 {
  font-size: 14px;
  border-bottom: 1px solid #9dbbd5;
  padding-bottom: 6px;
  margin: 0 0 10px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 14px;
}

.copyright {
  border-top: 1px solid #ffffff55;
  padding: 12px max(35px, calc((100vw - 1110px)/2));
  font-size: 11px;
  text-align: center;
}

.top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 4;
  border: 2px solid white;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #005a9c;
  box-shadow: 0 2px 8px #0003;
  font-size: 22px;
  color: white;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.top:hover,
.top:focus-visible {
  background: #004576;
}

/* レスポンシブ */

/* スマホではカード一覧の左右余白を10pxにする */

/* 見出しと説明文が横に収まらない場合は、説明文を次の行へ */
.section-heading {
  flex-wrap: wrap;
  row-gap: 8px;
}

.section-heading > .heading-group,
.section-heading > h2,
.section-heading > p {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
}
/* 横並びのメニューが折り返す前に開閉式へ切り替える */

/* 施工事例と主要取引先 */
#works .works-wrap {
  margin-bottom: 42px;
}

#works .stats-container {
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
}

#works .stats-box {
  border-color: #c6c6c6;
  border-radius: 4px;
  box-shadow: 0 2px 4px #0002;
}

#works .stats-box h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

#works .stats-box h3::before {
  content: "";
  flex: 0 0 22px;
  height: 22px;
  background: url('../img/tour.gif') center / contain no-repeat;
}

#works .stats-flex {
  display: block;
}

#works .stats-details {
  grid-template-columns: repeat(3, minmax(0, max-content));
  justify-content: space-between;
  column-gap: 24px;
  color: #005584;
  font-weight: 700;
}

#works .stats-item > span {
  font-size: 14px;
  line-height: 1.5;
}

#works .stats-item:first-child {
  grid-row: span 2;
}

#works .stats-item span,
#works .stats-item strong {
  color: inherit;
}
/* 数字の大きさ */
#works .stats-item strong {
  font-size: 43px;
  font-family: 'Google Sans Flex', 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

#works .stats-item strong span {
  display: inline;
  font-size: 0.55em;
}

#works .stats-item strong .stats-base-count {
  font-size: 1em;
}

#works .stats-item > span small {
  font-size: 1em;
}

#works .stats-total {
  width: fit-content;
  max-width: 100%;
}

#works .stats-chart {
  width: min(100%, 108px);
  margin: 0 auto;
}

#works .client-table {
  color: #005584;
  font-weight: 700;
}

#works .client-table th,
#works .client-table td {
  border-bottom: 1px dotted #ccc;
}

/* 5列分（210px × 5 + 25px × 4）が入らない場合は段差をなくす */
@container works-cards (width < 1150px) {
  .works figure {
    margin-bottom: 0;
  }

  .works figure:nth-child(even) {
    top: auto;
  }
}

/* ご挨拶 */
#greeting {
  background: #fff url('../img/wa_15.webp') max(-40px, calc(50vw - 680px)) bottom / auto 410px no-repeat;
  padding-top: 40px;
  padding-bottom: 0;
}

#greeting .greeting-container {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 38px;
  min-height: 590px;
}

#greeting .greeting-left {
  min-height: 590px;
  background: none;
}

#greeting .section-heading {
  margin-bottom: 26px;
}

#greeting .greeting-catch {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.45;
}

#greeting .greeting-text {
  display: flow-root;
  padding-top: 28px;
  padding-bottom: 30px;
}

#greeting .greeting-profile {
  float: left;
  display: block;
  width: 122px;
  margin: 0 30px 16px 0;
  padding: 0;
  text-align: center;
}

#greeting .greeting-profile img {
  width: 122px;
  height: auto;
}

#greeting .greeting-text p {
  font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 600; 
  font-size: 16px;
  line-height: 2.15;
  font-weight: 700;
  margin-bottom: 10px;
  text-indent: 1em;
  color: #333;
}

#greeting .greeting-profile p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.2;
  text-indent: 0;
}

#greeting .greeting-profile strong {
  margin-top: 3px;
  font-size: 16px;
}


/* フッター詳細 */
.footer .footer-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(170px, 0.7fr);
  align-items: start;
  gap: 30px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.footer-brand {
  gap: 12px;
  margin-bottom: 0;
}

.footer-brand img {
  flex: 0 0 80px;
  width: 80px;
  height: auto;
  object-fit: contain;
}

.footer-brand strong {
  font-size: clamp(20px, 1vw, 28px);
  line-height: 1.3;
  margin-bottom: 4px;
}

.footer-contact-details {
  padding-left: 92px;
}

.footer p {
  font-size: 14px;
  line-height: 1;
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  font-size: 24px;
  font-weight: 700;
}

.footer-phone img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-contact-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 3px;
  background: white;
  color: #00558c;
  font-size: 15px;
  font-weight: 700;
}

.footer-contact-button:hover,
.footer-contact-button:focus-visible {
  background: #e6f5ff;
  color: #003958;
}

.footer .footer-links {
  grid-template-columns: auto auto;
  gap: 9px 20px;
  padding-top: 8px;
  font-weight: 700;
}

.footer-map {
  display: block;
  width: 100%;
  height: 140px;
  border: 3px solid #ffffff99;
}

.footer .copyright {
  padding: 8px 65px;
  font-size: 11px;
}
.footer {
  container: footer-layout / inline-size;
  --footer-logo-space: 92px;
}

.footer .footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: start;
  gap: 30px 60px;
  padding-left: calc(35px + var(--footer-logo-space));
}

.footer .footer-info {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.footer-brand {
  position: relative;
}

.footer-brand img {
  position: absolute;
  right: calc(100% + 12px);
  top: 0;
}

.footer-brand strong {
  font-size: clamp(22px, 2.3vw, 32px);
}

.footer-contact-details {
  padding-left: 0;
}

.footer .footer-links {
  flex: 0 1 auto;
  width: max-content;
  max-width: 100%;
  margin: 0;
  grid-template-columns: minmax(0, max-content) minmax(0, max-content);
  justify-content: start;
  justify-items: start;
  text-align: left;
  column-gap: 4em;
}

.footer .footer-links a {
  overflow-wrap: anywhere;
}

.footer .footer-map {
  flex: 0 1 360px;
  width: 360px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 18 / 11;
  margin: 0;
}

@container footer-layout (width > 1100px) {
  .footer .footer-grid {
    justify-content: space-between;
    column-gap: 30px;
  }

  .footer .footer-map {
    flex-basis: 240px;
    width: 240px;
  }
}

/* 取引先実績のスロット数字 */
#works .stats-item strong .stats-number {
  display: inline-flex;
  height: 1.15em;
  overflow: hidden;
  vertical-align: bottom;
  font-size: 1em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

#works .stats-number .slot-digit {
  display: inline-block;
  font-size: 1em;
}

#works .stats-number .slot-track,
#works .stats-number .slot-track > span {
  display: block;
  font-size: 1em;
  line-height: 1.15;
}

#works .stats-number .slot-track > span {
  height: 1.15em;
}
.br-sp {
  display: block;
}
/* ------------------------------------------------------------------------------------------------------ */
/* 画面幅ではなく取引先パネルの幅で配置を切り替える */
#works .stats-box:first-child {
  container: national-stats / inline-size;
}

#works .stats-total strong {
  white-space: nowrap;
}

@container national-stats (width < 680px) {
  #works .stats-details {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 24px 28px;
    align-items: start;
  }

  #works .stats-item:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  #works .stats-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  #works .stats-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  #works .stats-item:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  #works .stats-item > span {
    font-size: clamp(10px, 2.7cqw, 14px);
    line-height: 1.4;
  }

  #works .stats-item > span small {
    font-size: 0.7em;
  }

  #works .stats-item strong {
    font-size: clamp(32px, 8cqw, 43px);
  }

  #works .stats-total strong {
    font-size: clamp(32px, 8cqw, 43px);
    white-space: nowrap;
  }

  #works .stats-total strong .stats-base-count {
    font-size: 1em;
  }

  #works .stats-chart {
    margin-top: 12px;
  }
}

/* 同じ文字サイズで合計を1行に収めるため、狭いパネルでは全幅を使う */
@container national-stats (width < 360px) {
  #works .stats-item:first-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #works .stats-item:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  #works .stats-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }
}

.footer-links .footer-chevron {
  display: inline-block;
  margin-right: 0.5em;
}

@media (width < 1294px) {
  .works-section {
    --works-pattern: url('../img/gara-m.webp');
    background-image: url('../img/gara-m.webp');
  }
}

@media (max-width: 1100px) {
  #greeting .greeting-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #greeting .greeting-left {
    min-height: 0;
    background: none;
  }

  #greeting .greeting-text {
    padding-top: 0;
  }

  #greeting {
    padding-bottom: 220px;
    background: #fff url('../img/wa_15.webp') -25px bottom / auto 320px no-repeat;
  }
}

@media (max-width: 1000px) {
  .nav .contact-button {
    display: block;
    align-self: stretch;
    margin: 0;
    padding: 12px 16px;
    border: 0;
    border-top: 1px solid #e6e6e6;
    border-radius: 0;
    background: #fff;
    color: inherit;
  }

  .nav .contact-button svg {
    display: none;
  }

  .nav .contact-button small {
    display: block;
  }

  .nav a:hover,
  .nav a:focus-visible,
  .nav .contact-button:hover,
  .nav .contact-button:focus-visible,
  .nav .contact-button.active {
    background: #e6f4fc;
    color: #0066b6;
    border-bottom: 3px solid #0066b6;
  }

  .greeting-container { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1.2fr); gap: 15px; }
  .greeting-left { min-height: 350px; }

  .stats-container, .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 8px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    font-size: min(28px, 5.5vw);
  }

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d6d2d2;
    border-radius: 4px;
    background: #fff;
    color: var(--navy);
    font-size: 26px;
    cursor: pointer;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  }

  .nav.open {
    display: flex;
    flex-direction: column;
  }

  .nav a {
    border-left: 0;
    border-top: 1px solid #e6e6e6;
    padding: 12px 16px;
  }

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

  .footer-info {
    grid-column: 1 / -1;
  }

.br-sp {display: none;}
}

@media (max-width: 740px) {
  #works .stats-container {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 732px) {
  #works {
    background-image: none;
    overflow-x: clip;
  }

  #works .works-wrap {
    isolation: isolate;
  }
  #works .works-wrap::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -77px;
    width: 100vw;
    height: clamp(150px, 38vw, 700px);
    transform: translateX(-50%);
    background: var(--works-pattern) center bottom / min(100%, 1850px) auto no-repeat;
    pointer-events: none;
    z-index: -1;
  }
}

@media (max-width: 700px) {
  .greeting-container { grid-template-columns: 1fr; gap: 20px; min-height: 0; }
  .greeting-left { min-height: 320px; background-size: auto 260px; background-position: left bottom; }
  .greeting-profile { flex-direction: row; justify-content: flex-end; text-align: left; gap: 12px; padding: 0; }
  .greeting-profile img { width: 85px; height: 110px; }
}

@media (max-width: 600px) {
  .works-section {
    --works-pattern: url('../img/gara-s.webp');
    background-image: url('../img/gara-s.webp');
  }

  .hero h1 {
    font-size: min(40px, 9.5vw);
  }

  #business .heading-en,
  #works .heading-en,
  #news .heading-en,
  #greeting .heading-en {
    font-size: 12px;
  }

  #business .section-heading h2,
  #works .section-heading h2,
  #news .section-heading h2,
  #greeting .section-heading h2 {
    font-size: 32px;
  }

  .section-heading p {
    font-size: 14px;
    line-height: 1.7;
  }

  #business > .container,
  #works > .container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .works {
    padding-inline: 14px;
  }

  .works figure {
    transform: skewX(-5deg);
  }

  .footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    padding-inline: 20px;
  }

  .footer-brand img {
    flex-basis: 68px;
    width: 68px;
  }

  .footer-brand {
    gap: 8px;
  }

  .footer .footer-map {
    flex-basis: 220px;
    width: 220px;
    height: auto;
  }

  .footer .copyright {
    padding: 10px 58px 10px 15px;
  }

  .news-list span {
  margin-right: 13px;
  margin-left: -10px;
  }
  .footer {
    --footer-logo-space: 76px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .footer .footer-grid {
    padding-left: calc(20px + var(--footer-logo-space));
    padding-right: 20px;
    row-gap: 20px;
    padding-bottom: 24px;
  }

  .footer-brand img {
    right: calc(100% + 8px);
  }

  .footer-brand strong {
    font-size: clamp(22px, 5.8vw, 30px);
  }

  .footer .footer-links {
    column-gap: 3em;
  }
}

@media (max-width: 420px) {

  #greeting .greeting-container {
    padding-inline: 15px;
  }

  #greeting .greeting-profile {
    width: 100px;
    margin-right: 18px;
  }

  #greeting .greeting-profile img {
    width: 100px;
  }
}

