/* =============================================
   有限会社赤尾組 ご提案用見本
   配色: 濃墨 × コンクリート生成り × ベンガラ × 金（褒章）
   モチーフ: ブロック積み
   ============================================= */

:root {
  color-scheme: only light;
  --sumi: #26221f;
  --sumi-light: #3a352f;
  --base: #f2efe7;
  --paper: #faf8f2;
  --white: #ffffff;
  --bengara: #96351f;
  --bengara-dark: #7c2b18;
  --gold: #a8862f;
  --gold-pale: #f4ead0;
  --ink: #2b2721;
  --ink-soft: #57503f;
  --line: #ddd6c8;
  --shadow: 0 6px 24px rgba(38, 34, 31, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--base);
  -webkit-text-size-adjust: 100%;
}

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

a {
  color: var(--bengara);
}

.nowrap {
  display: inline-block;
}

.note-small {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ---------- 提案専用注釈 ---------- */
.proposal-note {
  background: #fff7d9;
  border-bottom: 1px solid #e3d9a8;
  padding: 10px 16px;
  font-size: 14px;
  line-height: 1.6;
}

.proposal-note p {
  max-width: 1080px;
  margin: 0 auto;
}

.proposal-note__sub {
  margin-top: 4px;
  color: #6b6142;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
}

/* 現行サイトのロゴをそのまま使用 */
.brand__logo {
  width: auto;
  height: 48px;
}

.header-contact {
  text-align: right;
  line-height: 1.3;
}

.header-contact__hours {
  display: block;
  font-size: 13px;
  color: var(--ink-soft);
}

.header-contact__tel {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--sumi);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.tel-label {
  font-size: 14px;
  color: var(--bengara);
  margin-right: 4px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 56px;
  height: 48px;
  background: var(--sumi);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.menu-btn span:not(.menu-btn__label) {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.menu-btn__label {
  font-size: 12px;
  color: var(--white);
}

.global-nav ul {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.global-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.global-nav a:hover {
  color: var(--bengara);
}

.global-nav .nav-contact {
  background: var(--bengara);
  color: var(--white);
  border-radius: 6px 6px 0 0;
}

.global-nav .nav-contact:hover {
  background: var(--bengara-dark);
  color: var(--white);
}

/* ---------- ヒーロー ---------- */
.hero {
  background: var(--sumi);
  color: var(--white);
  overflow: hidden;
}

.hero__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__place {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #cfc7b8;
  margin-bottom: 12px;
}

.hero__title {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 18px;
  color: #e9e4d8;
  margin-bottom: 20px;
  max-width: 34em;
}

.hero__badges {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 15px;
  color: #d8d1c2;
}

.badge-gold {
  display: inline-block;
  background: linear-gradient(135deg, #c8a44a, #a8862f);
  color: #241d0c;
  font-weight: 700;
  font-size: 16px;
  padding: 3px 12px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
}

/* 電話とフォームを同じ段・同じ高さで並べる */
.hero__cta > .btn-tel,
.hero__cta > .btn-form {
  flex: 1 1 220px;
}

.btn-tel {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  color: var(--sumi);
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 28px;
  box-shadow: var(--shadow);
}

.btn-tel__label {
  font-size: 14px;
  font-weight: 700;
  color: var(--bengara);
}

.btn-tel__number {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.btn-tel__hours {
  font-size: 13px;
  color: var(--ink-soft);
}

.btn-form {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #cfc7b8;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 10px;
  white-space: nowrap;
}

.btn-form:hover {
  background: var(--sumi-light);
}

/* ヒーローのブロック積み */
.hero__blocks {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 72px;
  gap: 10px;
}

.hblock {
  border-radius: 6px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-26px);
  animation: blockdrop 0.55s cubic-bezier(0.2, 0.7, 0.3, 1.1) forwards;
}

.hblock img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hblock--bengara {
  background: var(--bengara);
}

.hblock--concrete {
  background: #b8b0a0;
}

.hblock--gold {
  background: linear-gradient(135deg, #c8a44a, #a8862f);
}

.hblock--sumi {
  background: var(--sumi-light);
  border: 1px solid #4a443c;
}

/* ブロックの目地：互い違い配置 */
.b1 {
  grid-column: 1 / 4;
  grid-row: 1;
  animation-delay: 0.1s;
}
.b2 {
  grid-column: 4 / 6;
  grid-row: 1;
  animation-delay: 0.25s;
}
.b3 {
  grid-column: 2 / 5;
  grid-row: 2;
  animation-delay: 0.4s;
}
.b4 {
  grid-column: 5 / 7;
  grid-row: 2;
  animation-delay: 0.55s;
}
.b5 {
  grid-column: 1 / 3;
  grid-row: 3;
  animation-delay: 0.7s;
}
.b6 {
  grid-column: 3 / 5;
  grid-row: 3;
  animation-delay: 0.85s;
}
.b7 {
  grid-column: 2 / 6;
  grid-row: 4;
  animation-delay: 1s;
}
.b8 {
  grid-column: 6 / 7;
  grid-row: 3;
  animation-delay: 1.1s;
}

@keyframes blockdrop {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hblock {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 妙義山の帯 */
.hero__myogi {
  position: relative;
}

.hero__myogi img {
  width: 100%;
  height: clamp(200px, 22vw, 280px);
  object-fit: cover;
  /* 妙義山の稜線が切れないよう、写真の上寄りを見せる */
  object-position: center 15%;
  opacity: 0.92;
}

.hero__myogi-caption {
  position: absolute;
  right: 12px;
  bottom: 8px;
  font-size: 12px;
  color: #f5f2ea;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

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

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

.section--dark {
  background: var(--sumi);
  color: #efeadf;
}

.section--dark .section__title {
  color: var(--white);
}

.section__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 章の頭にブロック積みマーク（明るい面＝生成り／本体＝墨／小口＝金） */
.section__title {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section__title::before {
  content: "";
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='4' width='20' height='20' fill='%236b675f'/%3E%3Crect x='16' y='16' width='20' height='20' fill='%2326221f'/%3E%3Crect x='16' y='16' width='8' height='8' fill='%23b08d3f'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* 濃い背景の章では、下地の墨ブロックを明るい色に置き換える */
.section--dark .section__title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect x='4' y='4' width='20' height='20' fill='%23847d70'/%3E%3Crect x='16' y='16' width='20' height='20' fill='%23e9e4d8'/%3E%3Crect x='16' y='16' width='8' height='8' fill='%23c8a44a'/%3E%3C/svg%3E");
}

.section__lead {
  margin-bottom: 32px;
  max-width: 40em;
}

/* ブロック目地の区切り帯 */
.block-divider {
  height: 26px;
  background:
    repeating-linear-gradient(90deg, transparent 0 88px, var(--base) 88px 96px),
    repeating-linear-gradient(90deg, #d9d2c2 0 180px, #cfc7b4 180px 360px);
  border-top: 4px solid var(--base);
  border-bottom: 4px solid var(--base);
}

/* ---------- 事業内容 ---------- */
.service-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--bengara);
  border-radius: 8px;
  padding: 22px 22px 18px;
  box-shadow: 0 2px 10px rgba(38, 34, 31, 0.05);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.service-card p {
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- 施工事例 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 20px;
}

/* 偶数列を半段下げてブロック積みの目地に見せる */
.works-grid .work:nth-child(even) {
  transform: translateY(20px);
}

.work {
  cursor: zoom-in;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(38, 34, 31, 0.06);
}

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.work:hover img,
.work:focus img {
  transform: scale(1.04);
}

.work figcaption {
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
  color: var(--ink);
}

/* ---------- 基礎工事の流れ ---------- */
.flow-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.flow-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(38, 34, 31, 0.06);
}

.flow-step__num {
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bengara);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 22px;
  font-weight: 700;
  border-radius: 0 0 8px 0;
  z-index: 1;
}

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

.flow-step p {
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
}

/* ---------- 公共事業 ---------- */
.public-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}

.public-photo img {
  border-radius: 8px;
  width: 100%;
}

.public-photo figcaption {
  font-size: 14px;
  color: #cfc7b8;
  margin-top: 8px;
}

.public-text p {
  margin-bottom: 16px;
}

.public-award .badge-gold {
  font-size: 20px;
  padding: 8px 20px;
}

.section--dark .note-small {
  color: #b8b0a0;
}

/* ---------- 代表プロフィール ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: stretch;
}

/* 左右の列の下端を揃える：受賞年表を右列の高さまで伸ばす */
.profile-awards {
  display: flex;
  flex-direction: column;
}

.profile-awards .awards-table {
  flex: 1 1 auto;
}

.profile-awards .note-small {
  margin-top: 10px;
}

.profile-subtitle {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.awards-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.awards-table th,
.awards-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
  vertical-align: top;
}

.awards-table th {
  width: 7.5em;
  white-space: nowrap;
  background: var(--paper);
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink-soft);
  font-weight: 700;
}

.awards-table tr:last-child th,
.awards-table tr:last-child td {
  border-bottom: none;
}

.award-rank {
  display: inline-block;
  margin-left: 8px;
  color: var(--bengara);
  font-weight: 700;
}

.awards-table__highlight td {
  background: var(--gold-pale);
}

.profile-media p {
  margin-bottom: 14px;
  font-size: 16px;
}

.magazine-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 14px;
  margin-bottom: 26px;
}

.magazine-thumbs .work img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* ---------- 企業情報 ---------- */
.company-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.company-table th,
.company-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 16px;
  vertical-align: top;
}

.company-table th {
  width: 7em;
  background: var(--paper);
  color: var(--ink-soft);
  white-space: nowrap;
}

/* 沿革タイムライン（◯と線） */
.timeline {
  list-style: none;
  margin: 6px 0 0;
  padding: 0 0 0 26px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, #e0d9c9, #c9c0ac);
}

.timeline li {
  position: relative;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bengara);
  box-shadow: 0 0 0 3px rgba(150, 53, 31, 0.15);
}

.tl-year {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
  flex-shrink: 0;
  font-size: 16px;
}

.tl-text {
  font-size: 16px;
}

@media (min-width: 640px) {
  .timeline li {
    flex-direction: row;
    gap: 20px;
  }

  .tl-year {
    width: 9.5em;
  }
}

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

.company-history .note-small {
  margin-top: 10px;
}

/* ---------- アクセス ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: stretch;
}

/* PCでは地図を左に（HTMLの順序はスマホ用に住所が先のまま） */
.access-map {
  order: -1;
}

/* 表と地図の高さを揃える：表の行を地図の高さまで均等に伸ばす */
.access-info {
  display: flex;
  flex-direction: column;
}

.access-info dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1 1 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.access-info dl > div {
  flex: 1 1 auto;
  align-items: center;
}

.access-info dl > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  border-bottom: 1px solid var(--line);
}

.access-info dl > div:last-child {
  border-bottom: none;
}

.access-info dt {
  padding: 12px 14px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 16px;
}

.access-info dd {
  padding: 12px 14px;
  font-size: 16px;
}

.access-map {
  display: flex;
}

.access-map iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* ---------- お問い合わせ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.btn-tel--large {
  width: 100%;
  padding: 24px 20px;
}

.btn-tel--large .btn-tel__number {
  font-size: 38px;
}

.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form__demo {
  font-size: 14px;
  font-weight: 700;
  color: var(--bengara);
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.contact-form__submit {
  font: inherit;
  font-weight: 700;
  background: #b8b0a0;
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  cursor: not-allowed;
}

/* ---------- リンク・ポリシー ---------- */
.links-list {
  list-style: none;
  margin-bottom: 28px;
  font-size: 16px;
}

.policy {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
}

.policy summary {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 16px;
}

.policy__body {
  padding: 0 20px 20px;
  font-size: 15px;
  color: var(--ink-soft);
}

.policy__body h4 {
  margin: 14px 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.policy__body ul {
  padding-left: 1.4em;
  margin-bottom: 10px;
}

.policy__body p {
  margin-bottom: 10px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--sumi);
  color: #cfc7b8;
  padding: 36px 0 120px;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-footer__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.site-footer__copy {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  margin-bottom: 16px;
}

.site-footer__note {
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid #4a443c;
  padding-top: 14px;
}

/* ---------- スマホ固定電話バー ---------- */
.tel-bar {
  display: none;
}

/* ---------- ライトボックス ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 14, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  max-width: min(920px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox figcaption {
  color: var(--white);
  text-align: center;
  padding: 12px 0 0;
  font-size: 16px;
}

.lightbox__zoom {
  display: block;
  margin-top: 10px;
  text-align: center;
  color: #f0d9a0;
  font-size: 15px;
  font-weight: 700;
}

.lightbox__zoom[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 48px;
  height: 48px;
  font-size: 28px;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

/* =============================================
   レスポンシブ
   ============================================= */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 目地ずらしは4列時のみ。3列以下では解除 */
  .works-grid {
    padding-bottom: 0;
  }

  .works-grid .work:nth-child(even) {
    transform: none;
  }

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

  .hero__inner,
  .public-grid,
  .profile-grid,
  .company-grid,
  .access-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__blocks {
    grid-auto-rows: 60px;
  }
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .brand__logo {
    height: 38px;
  }

  .header-contact {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .global-nav {
    display: none;
    border-top: 1px solid var(--line);
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-top: none;
  }

  .global-nav li {
    border-bottom: 1px solid var(--line);
  }

  .global-nav a {
    padding: 14px 20px;
    font-size: 17px;
  }

  .global-nav .nav-contact {
    border-radius: 0;
  }

  .hero__inner {
    padding: 36px 16px 28px;
    gap: 28px;
  }

  .hero__title {
    font-size: clamp(30px, 8.4vw, 38px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  /* 縦並びのときは flex-basis が高さに効くため解除（ボタンが縦に伸びるのを防ぐ） */
  .hero__cta > .btn-tel,
  .hero__cta > .btn-form {
    flex: 0 0 auto;
  }

  .btn-tel,
  .btn-form {
    text-align: center;
  }

  /* スマホは写真がほぼ原寸で収まるため切り抜かない */
  .hero__myogi img {
    height: auto;
  }

  .section {
    padding: 44px 0;
  }

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

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

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

  .magazine-thumbs {
    grid-template-columns: repeat(2, 1fr);
  }

  .access-map {
    order: 0;
  }

  .access-map iframe {
    height: 280px;
  }

  /* スマホ固定電話バー */
  .tel-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: var(--bengara);
    box-shadow: 0 -4px 16px rgba(38, 34, 31, 0.25);
  }

  .tel-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 16px 12px;
    color: var(--white);
    text-decoration: none;
    line-height: 1.3;
  }

  .tel-bar__label {
    font-size: 13px;
  }

  .tel-bar__number {
    font-family: "Inter", "Noto Sans JP", sans-serif;
    font-size: 24px;
    font-weight: 700;
  }

  .site-footer {
    padding-bottom: 130px;
  }
}

@media (max-width: 420px) {
  .works-grid {
    grid-template-columns: 1fr;
  }

  .hero__blocks {
    grid-auto-rows: 48px;
    gap: 8px;
  }
}
