/* 名古屋金属 ワイヤーフレーム用スタイル */

/* ========================================
   Openingアニメーション
   ======================================== */
.opening {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.opening.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.opening-inner {
  text-align: center;
  padding: 20px;
}

.opening-logo {
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(10px);
  animation: openingFadeIn 0.8s ease 0.3s forwards;
}

.opening-logo img {
  max-width: 400px;
  height: auto;
}

.opening-text {
  margin: 0;
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.opening-text-em {
  display: block;
  font-weight: 600;
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: openingFadeIn 0.8s ease 1.2s forwards;
}

.opening-text-sub {
  display: block;
  font-weight: normal;
  opacity: 0;
  transform: translateY(10px);
  animation: openingFadeIn 0.8s ease 2.0s forwards;
}

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

/* SP：オープニングの文字サイズ調整 */
@media (max-width: 768px) {
  .opening-logo img {
    max-width: 280px;
  }

  .opening-text {
    font-size: 0.95rem;
  }

  .opening-text-em {
    font-size: 1.1rem;
  }
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  color: #464646;
  background: #fff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* メインビジュアル以下：2カラム（左固定追従・右メイン） */
.layout-two-col {
  display: flex;
  flex-wrap: wrap;
}

/* 左：固定追従サイドバー（ロゴ・メニュー・電話・CTA・SNS）※フッターまで画面高さ100％ */
.sidebar {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  align-self: stretch;
  padding: 0;
  background: #efece0;
  border-right: 1px solid #ddd;
}

/* サイドバーの中身のみ追従＋天地中央維持（短いときは中央、長いときはスクロール） */
.sidebar-inner {
  position: sticky;
  top: 0;
  max-height: 100vh;
  min-height: 100vh;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.sidebar-logo {
  margin: 0;
  text-align: center;
}

.sidebar-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ロゴ下：キャッチフレーズ（強調＋普通） */
.sidebar-logo-block {
  text-align: center;
}

.sidebar-company-name {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #816930;
}

.sidebar-catchphrase {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #333;
}

.sidebar-catchphrase-em {
  font-weight: bold;
  color: #816930;
}

.sidebar-catchphrase-txt {
  font-weight: normal;
}

.sidebar-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.sidebar-nav-list li {
  margin-bottom: 4px;
}

.sidebar-nav-list a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 6px 0;
}

.sidebar-nav-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* サイドバー：アコーディオンメニュー */
.sidebar-accordion .accordion-item {
  margin-bottom: 4px;
}

.sidebar-accordion .accordion-details {
  margin: 0;
}

.sidebar-accordion .accordion-summary {
  list-style: none;
  padding: 8px 0;
  cursor: pointer;
  font-weight: bold;
  color: #fff;
  user-select: none;
  text-align: left;
}

.sidebar-accordion .accordion-summary::-webkit-details-marker {
  display: none;
}

.sidebar-accordion .accordion-summary::before {
  content: none;
  display: none;
}

.sidebar-accordion .accordion-details[open] .accordion-summary::before {
  transform: rotate(90deg);
}

.sidebar-accordion .accordion-inner {
  list-style: none;
  margin: 0 0 8px 0;
  padding: 0 0 0 1em;
  border-left: 1px solid #ccc;
  text-align: center;
}

.sidebar-accordion .accordion-inner li {
  margin-bottom: 2px;
}

.sidebar-accordion .accordion-inner a {
  padding: 4px 0;
  font-size: 0.95rem;
}

.sidebar-accordion .current {
  display: block;
  padding: 8px 0;
  font-weight: bold;
  color: #fff;
}

/* ========================================
   PC：サイドバーナビ デザイン強化（769px以上）
   ======================================== */
@media (min-width: 769px) {
  .sidebar-nav {
    width: 100%;
  }

  .sidebar-nav-list {
    background: #816930;
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  }

  .sidebar-nav-list > li {
    margin-bottom: 0;
    border-bottom: 1px solid #eee;
  }

  .sidebar-nav-list > li:last-child {
    border-bottom: none;
  }

  .sidebar-nav-list > li > a {
    padding: 10px 14px;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .sidebar-nav-list > li > a:hover {
    background: transparent;
    border-left-color: transparent;
    text-decoration: none;
  }

  /* アコーディオン親項目（業者様・会社情報など） */
  .sidebar-accordion .accordion-item {
    margin-bottom: 0;
  }

  .sidebar-accordion .accordion-summary {
    padding: 10px 14px;
    background: #816930;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
  }

  .sidebar-accordion .accordion-summary:hover {
    background: transparent;
    border-left-color: transparent;
    color: #fff;
  }

  .sidebar-accordion .accordion-details[open] .accordion-summary {
    border-left-color: #816930;
    background: #816930;
  }

  .sidebar-accordion .accordion-summary.current {
    border-left-color: #333;
    background: #eee;
  }

  .sidebar-accordion .accordion-inner {
    margin: 0;
    padding: 20px 0 20px 14px;
    border-left: none;
    border-bottom: 1px solid #eee;
    background: #efece0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 8px;
  }

  .sidebar-accordion .accordion-inner li {
    margin-bottom: 0;
    flex: 0 0 170px;
    width: 170px;
  }

  .sidebar-accordion .accordion-inner a {
    display: block;
    width: 100%;
    padding: 6px 10px;
    text-align: center;
    background: #fff;
    border: 1px solid #816930;
    color: #816930;
    border-radius: 10px;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .sidebar-accordion .accordion-inner a::after {
    content: "\f0c1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.85em;
    line-height: 1;
  }

  .sidebar-accordion .accordion-inner a:hover {
    background: #816930;
    color: #fff;
    text-decoration: none;
  }
}

/* サイドバーCTA：PCは番号テキスト表示、SPは電話ボタン表示 */
.sidebar-contact-sns-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  container-type: inline-size;
}

.sidebar-call-title {
  margin: 0;
  color: #816930;
  font-size: 0.95rem;
  font-weight: bold;
  text-align: center;
}

.sidebar-tel-text {
  margin: 0;
  color: #816930;
  font-size: 0.95rem;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.sidebar-call-lead {
  margin: 0;
  color: #464646;
  font-size: 0.86rem;
  line-height: 1.6;
}

.sidebar-call-hours {
  margin: 0;
  color: #666;
  font-size: 0.8rem;
  text-align: center;
}

/* SP専用の電話ボタン（PCでは非表示） */
.sidebar-tel-btn {
  display: none;
}

/* サイドバー：SNSブロック（タイトル・リード・リンク） */
.sidebar-sns-block {
  margin-top: 0;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.sidebar-sns-title {
  margin: 0 0 8px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #816930;
  text-align: center;
}

.sidebar-sns-lead {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #555;
}

/* SNSボタン：4等分・ロゴマーク＋ラベル */
.sidebar-sns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.sidebar-sns li {
  margin: 0;
}

.sidebar-sns a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.75rem;
  min-height: 56px;
}

.sidebar-sns a:hover {
  background: #111;
}

/* sidebar-sns：各SNSごとにブランドカラー */
.sidebar-sns li:nth-child(1) a {
  background: #111111; /* TikTok */
}

.sidebar-sns li:nth-child(1) a:hover {
  background: #000000;
}

.sidebar-sns li:nth-child(2) a {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%); /* Instagram */
}

.sidebar-sns li:nth-child(2) a:hover {
  background: linear-gradient(135deg, #e17420 0%, #c7246c 45%, #6f2d98 75%, #454eb8 100%);
}

.sidebar-sns li:nth-child(3) a {
  background: #06c755; /* LINE */
}

.sidebar-sns li:nth-child(3) a:hover {
  background: #05b34b;
}

.sidebar-sns li:nth-child(4) a {
  background: #1877f2; /* Facebook */
}

.sidebar-sns li:nth-child(4) a:hover {
  background: #166fe5;
}

.sidebar-sns .sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-sns .sns-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.sidebar-sns .sns-icon i {
  font-size: 20px;
  line-height: 1;
}

.sidebar-sns .sns-label {
  line-height: 1.2;
  text-align: center;
}

@media (min-width: 769px) {
  .sidebar-contact-sns-row {
    flex-direction: row;
    align-items: stretch;
    gap: 12px;
  }

  .sidebar-contact-sns-row .sidebar-cta,
  .sidebar-contact-sns-row .sidebar-sns-block {
    flex: 1 1 0;
  }

  /* 高さが揃ったとき、TELを余白の天地中央に配置 */
  .sidebar-cta .sidebar-tel-text {
    margin-top: auto;
    margin-bottom: auto;
  }
}

@media (max-width: 768px) {
  .sidebar-sns-block {
    width: 100%;
    align-self: stretch;
  }

  .sidebar-sns-title {
    text-align: left;
  }

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

.sidebar-sns-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #555;
}

/* 右：メインコンテンツ（asideと同幅・隣接） */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.main-content .container {
  max-width: none;
}

/* パンくずリスト（下層ページ main-content 内） */
.breadcrumb {
  padding: 12px 16px;
  background: #efece0;
  border-bottom: 1px solid #ddd;
}

.breadcrumb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 0.85rem;
  color: #816930;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.breadcrumb-list li:not(:last-child)::after {
  content: ">";
  margin-left: 4px;
  color: #816930;
  font-weight: normal;
}

.breadcrumb-list a {
  color: #816930;
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
  color: #816930;
  font-weight: bold;
}

/* SP用：ハンバーガーボタン（右上・768px以下で表示） */
.hamburger-btn {
  display: none;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 102;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: #111;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.hamburger-btn:hover {
  background: #333;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* メニュー開時：ハンバーガーを×に */
body.nav-open .hamburger-btn .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .hamburger-btn .hamburger-line:nth-child(2) {
  opacity: 0;
}

body.nav-open .hamburger-btn .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* SP用：オーバーレイ（メニュー背後の暗転・クリックで閉じる） */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

body.nav-open .nav-overlay {
  display: block;
  opacity: 1;
}

/* 2カラム：SP時はサイドバー非表示→ハンバーガーで開くドロワーに */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .layout-two-col .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 99;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-right: 1px solid #ddd;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
  }

  body.nav-open .layout-two-col .sidebar {
    transform: translateX(0);
  }

  .sidebar-inner {
    min-height: auto;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .sidebar-logo {
    flex: none;
  }

  .sidebar-nav {
    flex: none;
  }

  .sidebar-nav-list {
    display: block;
    flex-wrap: nowrap;
  }

  .sidebar-nav-list li {
    margin-bottom: 4px;
  }

  .sidebar-nav-list a,
  .sidebar-accordion .accordion-summary,
  .sidebar-accordion .current {
    color: #816930;
  }

  .sidebar-nav-list a:hover {
    color: #816930;
  }

  /* SP：アコーディオン子階層は開かず非表示固定 */
  .sidebar-accordion .accordion-inner {
    display: none !important;
  }

  /* SP：電話ボタンを表示し、PC用の番号テキストは非表示 */
  .sidebar-cta {
    flex: none;
    padding: 0;
    background: transparent;
    border: none;
  }

  .sidebar-tel-text {
    display: none;
  }

  .sidebar-tel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 10px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
  }

  .sidebar-tel-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    flex-shrink: 0;
  }

  .sidebar-tel-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .main-content {
    padding-left: 0;
  }
}

/* FV（全画面メインビジュアル：1.mp4 → 2.jpg → 3.mp4 → 4.mp4 リピート） */
.fv {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 全画面メディアレイヤー */
.mv-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mv-media .mv-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mv-media .mv-item.mv-active {
  opacity: 1;
  z-index: 1;
}

/* テキスト読みやすさ用オーバーレイ（任意） */
.fv-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.fv-content {
  position: relative;
  z-index: 3;
  padding: 48px 16px;
}

.fv-logo {
  margin: 0 0 20px;
  text-align: center;
}

.fv-logo img {
  display: inline-block;
  max-width: 400px;
  height: auto;
}

.fv-text {
  margin: 0;
  text-align: center;
  font-family: "游明朝", "Yu Mincho", "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "MS P明朝", "MS PMincho", serif;
}

.fv-text-em {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  margin-bottom: 8px;
}

.fv-text-sub {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.fv-assurance {
  margin-bottom: 24px;
}

/* FV内カード・ボタンは白/コントラスト確保 */
.fv .card {
  background: rgba(255, 255, 255, 0.95);
}

.fv .btn,
.fv .btn-fax {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* SP：FVセクションの文字サイズ調整 */
@media (max-width: 768px) {
  .fv-content {
    padding: 32px 16px;
  }

  .fv-logo {
    margin-bottom: 16px;
  }

  .fv-logo img {
    max-width: 280px;
  }

  .fv-text-em {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .fv-text-sub {
    font-size: 0.9rem;
  }

  .fv-assurance {
    margin-bottom: 16px;
  }

  .fv .card {
    padding: 12px 14px;
    font-size: 0.85rem;
    min-width: 0;
  }
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.card {
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  min-width: 180px;
  text-align: center;
}

.card p {
  text-align: left;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
}

.btn-fax {
  background: #555;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .cta-row {
    flex-direction: column;
  }
  .btn,
  .btn-fax {
    display: block;
    text-align: center;
  }
}

/* セクション共通 */
.section {
  padding: 40px 0;
  border-bottom: 1px solid #eee;
  scroll-margin-top: 20px;
}

.section-title {
  color: #6d5353; /* 文字色 */
  font-size: 20px; /* 文字サイズ */
  margin: 0 0 24px;
  padding: 20px; /* 文字回りの余白（上下左右） */
  padding-right: 56px;
  display: block;
  border: 1px solid #816930; /* 囲み線（太さ 実線 色） */
  position: relative;
  z-index: 0;
}

.section-title::before {
  content: "\f4d8";
  position: absolute;
  right: 16px;
  bottom: 0px;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: #6aa84f;
  z-index: 1;
  pointer-events: none;
}

.section-title::after {
  content: "";
  position: absolute;
  background: #efece0; /* 背景色 */
  width: calc(100% + 3px);
  height: calc(100% + 3px);
  top: 5px; /* 背景の上下位置ずらし */
  left: 5px; /* 背景の左右位置ずらし */
  opacity: 0.6;
  z-index: -1;
}

/* お悩み共感 */
.worry-lead {
  margin: 0 0 16px;
}

.worry-layout {
  display: block;
  margin-bottom: 20px;
}

.worry-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.worry-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 16px;
  background: #ddd;
}

.worry-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: opacity;
  animation: worryFade 16s steps(1, end) infinite;
}

.worry-slide-1 {
  animation-delay: 0s;
  opacity: 1; /* 初回描画時のちらつき対策 */
}

.worry-slide-2 {
  animation-delay: 4s;
}

.worry-slide-3 {
  animation-delay: 8s;
}

.worry-slide-4 {
  animation-delay: 12s;
}

@keyframes worryFade {
  /* 4枚構成を等間隔で表示（1枚あたり4秒・フェードなし） */
  0%,
  24.99% {
    opacity: 1;
  }
  25%,
  100% {
    opacity: 0;
  }
}

@media (min-width: 769px) {
  .worry-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .worry-slider {
    margin-bottom: 0;
  }
}

.worry-list {
  margin: 0 0 20px;
  padding-left: 1.5em;
}

.worry-list li {
  margin-bottom: 8px;
}

/* プライバシーポリシーページ：お問い合わせ窓口リスト */
.privacy-contact-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.privacy-contact-list li {
  margin-bottom: 6px;
}

.privacy-section .section-title-sub:first-child {
  margin-top: 0;
}

.notice-emphasis {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111;
  padding: 12px;
  background: #eee;
  border-radius: 10px;
}

.conversion-content {
  padding: 18px 20px;
  border: 1px solid #d6c79f;
  background: #f5f4ec;
  font-weight: normal;
  position: relative;
  margin-top: 8px;
}

.conversion-content::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 20px solid #d6c79f;
  transform: translateX(-50%);
}

.conversion-content::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #f5f4ec;
  transform: translateX(-50%);
}

.conversion-content-title {
  margin: 0 0 10px;
  color: #816930;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

.conversion-content-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}

.conversion-content-image {
  margin: 0;
}

.conversion-content-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.conversion-content-text {
  min-width: 0;
  display: flex;
  align-items: center;
}

.conversion-content-text p {
  margin: 0;
}

.conversion-content p {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.8;
  color: #464646;
}

.conversion-content p:last-child {
  margin-bottom: 0;
}

.items-conversion-title {
  margin: 0 0 10px;
  color: #816930;
  font-size: 1.15rem;
  font-weight: bold;
  line-height: 1.6;
  text-align: center;
}

.items-conversion-subtitle {
  margin: 10px 0 8px;
  color: #816930;
  font-size: 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .conversion-content-body {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.reasons-lead,
.items-lead,
.company-lead,
.recruit-lead {
  margin: 0 0 20px;
}

/* 選ばれる理由（3カラム） */
.cards-three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-three {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-three {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px;
    margin: 0 -16px;
  }

  .cards-three .card {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
  }
}

/* 2カラムカードレイアウト */
.cards-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cards-two .card .img-placeholder {
  margin-bottom: 12px;
  width: 100%;
}

.cards-two .card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cards-two .card p {
  margin: 0;
  font-size: 0.95rem;
}

.cards-two .card .card-photo {
  margin: 0 0 12px;
}

.cards-two .card .card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* 業者様ページ：理由②（eco.png）の表示サイズ調整 */
.cards-two .card .reason-eco-photo {
  width: 100%;
  margin: 0 auto 12px;
}

.cards-two .card .reason-eco-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 768px) {
  /* 選ばれる理由：card-photo画像をスマホで高さ半分に調整 */
  #reasons .card-photo img {
    aspect-ratio: 8 / 7;
    object-fit: cover;
  }
}

.cards-three .card .img-placeholder {
  margin-bottom: 12px;
  width: 100%;
}

.cards-three .card .card-photo {
  margin: 0 0 12px;
}

.cards-three .card .card-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.cards-three .card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.cards-three .card p {
  margin: 0;
  font-size: 0.95rem;
  text-align: left;
}

.section-reasons .card {
  text-align: left;
}

@media (min-width: 769px) {
  /* TOP：選ばれる理由はPCで縦積み + 左サムネ右テキスト */
  .section-reasons .cards-three {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-reasons .cards-three .card {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto 1fr;
    gap: 10px 16px;
    align-items: start;
  }

  .section-reasons .cards-three .card .card-photo {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .section-reasons .cards-three .card .card-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .section-reasons .cards-three .card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  .section-reasons .cards-three .card > p:last-child {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }
}

/* 取扱品目 */
.items-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.items-box {
  padding: 16px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.items-box h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.items-box-ng {
  border-color: #ccc;
  background: #f0f0f0;
}

/* 取扱品目：転換コンテンツ風ボックスを conversion-content と同トーンに統一 */
.items-box.items-conversion {
  padding: 18px 20px;
  border: 1px solid #d6c79f;
  background: #f5f4ec;
}

.items-box .items-conversion-title {
  margin: 0 0 10px;
  color: #816930;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

.items-box .items-conversion-subtitle {
  margin: 10px 0 8px;
  color: #816930;
  font-size: 1rem;
  font-weight: bold;
}

/* 取扱品目：お取り扱いできないものも転換コンテンツと同トーン＋吹き出し */
.items-box.items-box-ng {
  padding: 18px 20px;
  border: 1px solid #d6c79f;
  background: #f5f4ec;
  position: relative;
}

.items-box.items-box-ng::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 20px solid #d6c79f;
  transform: translateX(-50%);
}

.items-box.items-box-ng::after {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 18px solid #f5f4ec;
  transform: translateX(-50%);
}

.items-box.items-box-ng h3 {
  margin: 0 0 10px;
  color: #816930;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.5;
  text-align: center;
}

.items-box.items-box-ng p {
  margin: 0 0 8px;
  color: #464646;
  line-height: 1.8;
}

.items-box.items-box-ng p:last-child {
  margin-bottom: 0;
}

.items-box.items-box-ng ul {
  margin: 0 0 10px;
  padding-left: 0;
  list-style: none;
}

.items-box.items-box-ng li {
  margin-bottom: 4px;
  color: #464646;
}

.items-box.items-box-ng li::before {
  content: "・";
}

.notice {
  margin: 8px 0;
  font-size: 0.95rem;
}

.notice-small {
  font-size: 0.85rem;
  color: #666;
}

/* 施設・流れ */
.facility-scale {
  margin: 0 0 24px;
  font-weight: bold;
  color: #111;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.step {
  flex: 1;
  min-width: 120px;
  padding: 16px;
  text-align: left;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.step-num {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #111;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

.step strong {
  display: inline;
  margin: 0;
}

/* step内の本文下に入れるイメージ用 */
.step .step-image {
  margin: 10px 0 0;
}

.step .step-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* SP：steps・step を1カラムに */
@media (max-width: 768px) {
  .steps {
    flex-direction: column;
    gap: 12px;
  }

  .step {
    flex: none;
    width: 100%;
    min-width: 0;
  }
}

.img-placeholders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.img-placeholders .card-photo {
  margin: 0;
}

.img-placeholders .card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* 取扱品目：items-lead下の3枚横並び */
.img-placeholders-three {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 24px;
}

.img-placeholders-three .card-photo {
  margin: 0;
}

.img-placeholders-three .card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .img-placeholders-three {
    grid-template-columns: 1fr;
  }
}

/* 取扱品目：買取できないものの上、2枚横並び */
.img-placeholders-two {
  grid-template-columns: repeat(2, 1fr);
}

.img-placeholders-two .card-photo {
  margin: 0;
}

.img-placeholders-two .card-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 480px) {
  .img-placeholders-two {
    grid-template-columns: 1fr;
  }
}

/* SP（768px以下）：連続で写真が表示されるブロックを横スクロールスライダーに（選ばれる理由は除く） */
@media (max-width: 768px) {
  /* 写真のみのブロック（img-placeholders / three / two）をスライダーに */
  .img-placeholders,
  .img-placeholders-three,
  .img-placeholders-two {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: unset;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding: 0 16px 8px;
    margin: 0 -16px;
  }

  .img-placeholders .img-placeholder,
  .img-placeholders-three .img-placeholder,
  .img-placeholders-two .img-placeholder,
  .img-placeholders .card-photo,
  .img-placeholders-three .card-photo,
  .img-placeholders-two .card-photo {
    flex: 0 0 85%;
    min-width: 0;
    scroll-snap-align: start;
  }
}

.img-placeholder {
  aspect-ratio: 4/3;
  background: #ddd;
  border: 1px dashed #999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.9rem;
}

/* 遺品整理・業者様 */
.section-legacy p,
.section-business p {
  margin: 0 0 12px;
}

.cta-single {
  margin: 20px 0 0 !important;
}

/* 会社情報 */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.company-table th,
.company-table td {
  border: 1px solid #ddd;
  padding: 10px 12px;
  text-align: left;
}

.company-table th {
  background: #f5f5f5;
  width: 140px;
}

/* 会社概要：主要取引先（社名リンク＋外部リンクアイコン） */
.company-partners-cell .company-partner-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.8;
}

.company-partners-cell .company-partner-row + br + .company-partner-row {
  margin-top: 2px;
}

.company-partners-cell a {
  color: #333;
  text-decoration: none;
}

.company-partners-cell a:hover {
  text-decoration: underline;
}

.company-partners-cell .ext-link-icon {
  display: inline-flex;
  align-items: center;
  color: #666;
  flex-shrink: 0;
}

.sub-title {
  font-size: 1rem;
  margin: 16px 0 8px;
}

.partner-list {
  margin: 0;
  padding-left: 1.5em;
}

/* 求人 */
.section-recruit p {
  margin: 0 0 8px;
}

/* お問い合わせ */
.contact-lead {
  margin: 0 0 16px;
}

.contact-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.contact-list li {
  margin-bottom: 16px;
}

.contact-note {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-top: 4px;
}

.sns-lead {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.contact-list a {
  color: #111;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.sns-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sns-list a {
  padding: 8px 16px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
}

.sns-list a:hover {
  background: #111;
}

/* Googleマップ（mainとfooterの間） */
.map-section {
  width: 100%;
  background: #eee;
}

.map-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 450px;
  vertical-align: top;
}

/* 名古屋金属までのルート案内ボタン（map-sectionとフッターの間） */
.map-route-section {
  width: 100%;
  padding: 24px 0;
  background: #f5f5f5;
  border-top: 1px solid #ddd;
}

.map-route-wrap {
  text-align: center;
}

.btn-map-route {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: #3a62bc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.btn-map-route-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-map-route-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.btn-map-route:hover {
  background: #333;
}

/* フッター */
.footer {
  background: #efece0;
  color: #6d5353;
  padding: 24px 0;
  text-align: center;
}

.footer .container {
  padding: 0 16px;
}

.copyright {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.footer-links {
  margin: 0;
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
}

.footer-privacy-link,
.footer-compliance-link {
  color: #6d5353;
  text-decoration: underline;
}

.footer-privacy-link:hover,
.footer-compliance-link:hover {
  color: #fff;
}

/* プライバシーポリシーモーダル */
.privacy-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.privacy-modal-overlay.is-open {
  display: block;
  opacity: 1;
}

.privacy-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.privacy-modal.is-open {
  display: block;
}

.privacy-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.privacy-modal-title {
  margin: 0;
  padding: 20px 20px 12px;
  font-size: 1.25rem;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}

.privacy-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.7;
}

.privacy-modal-body h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: #111;
}

.privacy-modal-body h3:first-child {
  margin-top: 0;
}

.privacy-modal-body p {
  margin: 0 0 12px;
  color: #333;
}

.privacy-modal-body ul {
  margin: 0 0 12px;
  padding-left: 1.5em;
}

.privacy-modal-body ul li {
  margin-bottom: 4px;
}

.privacy-modal-date {
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: #666;
}

.privacy-modal-close {
  margin: 0 20px 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  color: #111;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.privacy-modal-close:hover {
  background: #ddd;
}

/* ========================================
   適正処理・コンプライアンスモーダル
   ======================================== */
.compliance-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.compliance-modal-overlay.is-open {
  display: block;
  opacity: 1;
}

.compliance-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.compliance-modal.is-open {
  display: block;
}

.compliance-modal-inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.compliance-modal-title {
  margin: 0;
  padding: 20px 20px 16px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #111;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}

.compliance-modal-body {
  padding: 16px 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  flex: 1;
}

.compliance-modal-body h3 {
  margin: 20px 0 8px;
  font-size: 1rem;
  color: #111;
}

.compliance-modal-body h3:first-child {
  margin-top: 0;
}

.compliance-modal-body p {
  margin: 0 0 12px;
  color: #333;
}

.compliance-modal-body ul {
  margin: 0 0 12px;
  padding-left: 1.5em;
}

.compliance-modal-body ul li {
  margin-bottom: 4px;
}

.compliance-modal-close {
  margin: 0 20px 20px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  color: #111;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
}

.compliance-modal-close:hover {
  background: #ddd;
}

/* フッターリンクのセパレーター */
.footer-separator {
  margin: 0 8px;
  color: #999;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 6px;
  }

  .footer-separator {
    display: none;
  }

  /* SP固定下部バーと重ならないようフッター下余白を確保 */
  .footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0));
  }
}

.link-top {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.link-top:hover {
  text-decoration: underline;
}

/* お問い合わせページ（contact/index.html）用 */
.contact-header {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  padding: 16px 0;
}

.contact-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-header-logo {
  margin: 0;
  font-weight: bold;
  font-size: 1.25rem;
}

.contact-header-logo a {
  color: #111;
  text-decoration: none;
}

.contact-header-logo a:hover {
  text-decoration: underline;
}

.contact-back {
  color: #333;
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-back:hover {
  color: #111;
  text-decoration: underline;
}

.contact-page .contact-container,
.contact-page .container {
  max-width: 600px;
  margin: 0 auto;
  padding: 48px 16px;
}

/* お問い合わせページ：メールフォーム */
.contact-form {
  margin: 0 0 40px;
  padding: 24px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.contact-form-item {
  margin-bottom: 20px;
}

.contact-form-item label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.95rem;
  color: #111;
}

.contact-form-item .required {
  color: #c00;
  font-size: 0.85rem;
  font-weight: normal;
}

.contact-form-item input,
.contact-form-item textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: #111;
  background: #fff;
  border: 1px solid #999;
  border-radius: 10px;
  box-sizing: border-box;
}

.contact-form-item input:focus,
.contact-form-item textarea:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-form-item input::placeholder,
.contact-form-item textarea::placeholder {
  color: #999;
}

.contact-form-item textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-submit {
  margin-top: 28px;
}

.contact-form-submit .btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  border-radius: 10px;
}

.section-title-sub {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.contact-sns-lead {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #333;
}

.contact-page-sns {
  margin-bottom: 0;
}

/* 業者様向けページ：FV・補足リスト */
.section-partners-fv .img-placeholder {
  margin-bottom: 20px;
  aspect-ratio: 5 / 3;
}

.partners-fv-main-photo {
  margin: 0 0 20px;
}

.partners-fv-main-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.section-partners-fv .section-title {
  margin-bottom: 12px;
}

.partners-subcopy {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #333;
}

.partners-lead-list {
  margin: 0 0 24px;
  padding-left: 1.5em;
}

.partners-lead-list li {
  margin-bottom: 6px;
}

.partners-fv-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.partners-fv-side-photo {
  margin: 0;
}

.partners-fv-side-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

.partners-lead-list-side {
  margin: 0;
}

@media (min-width: 769px) {
  .partners-fv-two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
  }
}

/* for_partners: 金属系カード内 2カラム（左リスト / 右画像） */
.metal-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.metal-list {
  margin: 0;
  padding-left: 1.2em;
}

.metal-list li {
  margin-bottom: 4px;
}

.metal-image {
  margin: 0;
}

.metal-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 10px;
}

@media (min-width: 769px) {
  .metal-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: center;
  }
}

/* 会社情報ページ：FV・代表署名 */
.section-company-fv .img-placeholder {
  margin-bottom: 20px;
  aspect-ratio: 5 / 3;
}

.company-fv-main-photo {
  margin: 0 0 20px;
}

.company-fv-main-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.section-company-fv .section-title {
  margin-bottom: 12px;
}

/* 会社情報：代表メッセージ画像はサイズ維持で上側表示 */
.company-ceo-photo img {
  object-position: top;
}

.company-subcopy {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #333;
}

.company-sign {
  margin: 24px 0 0;
  font-size: 0.95rem;
  text-align: right;
  color: #555;
}

/* 会社情報：代表メッセージ・事業内容・地域・社会との関わり 2カラム（写真＋本文） */
.company-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.company-two-col-img .img-placeholder {
  width: 100%;
  margin: 0;
}

.company-two-col-body .section-title {
  margin-top: 0;
}

@media (max-width: 768px) {
  .company-two-col {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .company-two-col-img {
    order: 1;
  }

  .company-two-col-body {
    order: 2;
  }
}

/* 採用ページ：FV・FAQ */
.section-recruit-fv .img-placeholder {
  margin-bottom: 20px;
  aspect-ratio: 5 / 3;
}

.recruit-fv-main-photo {
  margin: 0 0 20px;
}

.recruit-fv-main-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 10px;
}

.section-recruit-fv .section-title {
  margin-bottom: 12px;
}

.recruit-subcopy {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #333;
}

.recruit-faq {
  margin: 0;
  padding: 0;
}

.recruit-faq dt {
  margin: 16px 0 6px;
  font-weight: bold;
  color: #111;
}

.recruit-faq dt:first-child {
  margin-top: 0;
}

.recruit-faq dd {
  margin: 0 0 0 1em;
  padding: 0;
}

/* ========================================
   SP（768px以下）：全ページ共通の文字サイズ調整
   ======================================== */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .section {
    padding: 28px 0;
  }

  .section-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    padding-bottom: 16px;
  }

  .section-title-sub {
    font-size: 1rem;
    margin-top: 24px;
    margin-bottom: 12px;
  }

  .worry-list,
  .partners-lead-list,
  .recruit-lead-list {
    font-size: 0.9rem;
  }

  .worry-list li {
    margin-bottom: 6px;
  }

  .notice,
  .notice-small {
    font-size: 0.875rem;
  }

  .notice-emphasis {
    font-size: 1rem;
  }

  .card {
    padding: 14px 16px;
    font-size: 0.9rem;
    min-width: 0;
  }

  .cards-three .card h3 {
    font-size: 0.95rem;
  }

  .cards-three .card p {
    font-size: 0.875rem;
  }

  .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .breadcrumb-list {
    font-size: 0.8rem;
  }

  .breadcrumb-list li[aria-current="page"] {
    font-size: 0.8rem;
  }

  .contact-lead {
    font-size: 0.9rem;
  }

  .contact-form-item label {
    font-size: 0.9rem;
  }

  .contact-form-item input,
  .contact-form-item textarea {
    font-size: 16px;
  }

  .contact-form-submit .btn {
    font-size: 0.95rem;
  }

  .sidebar-logo img {
    max-width: 140px;
  }

  .sidebar-catchphrase {
    font-size: 0.8rem;
    margin-top: 10px;
  }

  .sidebar-nav-list a {
    font-size: 0.9rem;
  }

  .sidebar-tel-pc {
    font-size: 1.1rem;
  }

  .sidebar-sns-title {
    font-size: 0.9rem;
  }

  .sidebar-sns-lead,
  .sidebar-sns-note {
    font-size: 0.8rem;
  }

  .partners-subcopy,
  .company-subcopy,
  .recruit-subcopy {
    font-size: 1rem;
  }

  .company-lead,
  .recruit-lead {
    font-size: 0.9rem;
  }

  .company-two-col-body .section-title {
    font-size: 1.15rem;
  }

  .company-two-col-body p,
  .company-two-col-body .worry-list {
    font-size: 0.9rem;
  }

  .company-sign {
    font-size: 0.875rem;
  }

  .step-num {
    font-size: 1.25rem;
  }

  .step {
    padding: 12px;
    font-size: 0.9rem;
  }

  .facility-scale,
  .items-lead,
  .reasons-lead {
    font-size: 0.9rem;
  }

  .items-box h3,
  .items-box p {
    font-size: 0.9rem;
  }

  .items-box.items-conversion .items-conversion-title {
    font-size: 1.2rem;
  }

  .items-box.items-conversion .items-conversion-subtitle {
    font-size: 1rem;
  }

  .company-table th,
  .company-table td {
    padding: 8px 10px;
    font-size: 0.875rem;
  }

  .partner-list {
    font-size: 0.9rem;
  }

  .recruit-faq dt,
  .recruit-faq dd {
    font-size: 0.9rem;
  }

  .btn-map-route {
    font-size: 0.9rem;
    padding: 12px 16px;
  }

  .footer .copyright {
    font-size: 0.8rem;
  }
}

/* ========================================
   SP用：画面最下部固定バー（768px以下のみ表示）
   ======================================== */
.sp-fixed-bottom,
.sp-sns-sheet-overlay,
.sp-sns-sheet {
  display: none;
}

@media (max-width: 768px) {
  .sp-fixed-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 12px 8px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    background: #f5f4ec;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.2);
  }

  .sp-fixed-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 8px;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
  }

  .sp-fixed-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px;
    flex-shrink: 0;
  }

  .sp-fixed-btn-icon svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .sp-fixed-btn-sns {
    background: #c00;
    color: #fff;
    margin-right: 4px;
  }

  .sp-fixed-btn-sns:hover {
    background: #d00;
  }

  .sp-fixed-btn-tel {
    background: #333;
    color: #fff;
    margin-left: 4px;
  }

  .sp-fixed-btn-tel:hover {
    background: #444;
  }

  /* せり上がりパネル：オーバーレイ（SP時のみ表示） */
  .sp-sns-sheet-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  body.sp-sns-sheet-open .sp-sns-sheet-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  /* せり上がりパネル：本体（SP時のみ表示） */
  .sp-sns-sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    max-height: 70vh;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .sp-sns-sheet[aria-hidden="false"] {
    transform: translateY(0);
  }

  .sp-sns-sheet-inner {
    padding: 24px 20px 20px;
    overflow-y: auto;
    max-height: 70vh;
  }

  .sp-sns-sheet-title {
    margin: 0 0 16px;
    font-weight: bold;
    font-size: 1rem;
    color: #111;
  }

  .sp-sns-sheet-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }

  .sp-sns-sheet-list li {
    margin: 0;
  }

  .sp-sns-sheet-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 8px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.75rem;
  }

  .sp-sns-sheet-list a:hover {
    background: #111;
  }

  .sp-sns-sheet-list a[aria-label="Facebook"] {
    background: #1877f2;
  }

  .sp-sns-sheet-list a[aria-label="Facebook"]:hover {
    background: #166fe5;
  }

  .sp-sns-sheet-list a[aria-label="LINE"] {
    background: #06c755;
  }

  .sp-sns-sheet-list a[aria-label="LINE"]:hover {
    background: #05b34b;
  }

  .sp-sns-sheet-list a[aria-label="Instagram"] {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
  }

  .sp-sns-sheet-list a[aria-label="Instagram"]:hover {
    background: linear-gradient(135deg, #e17420 0%, #c7246c 45%, #6f2d98 75%, #454eb8 100%);
  }

  .sp-sns-sheet-list .sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sp-sns-sheet-list .sns-icon svg {
    width: 24px;
    height: 24px;
    display: block;
  }

  .sp-sns-sheet-list .sns-icon i {
    font-size: 24px;
    line-height: 1;
  }

  .sp-sns-sheet-note {
    margin: 0 0 20px;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
  }

  .sp-sns-sheet-close {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    color: #111;
    background: #eee;
    border: 1px solid #ccc;
    border-radius: 10px;
    cursor: pointer;
  }

  .sp-sns-sheet-close:hover {
    background: #ddd;
  }
}
