@charset "UTF-8";

:root {
  --primary: #1C2A52;
  --gold: #af914d;
}

.main-title {
  margin-top: 32px;
  margin-bottom: 24px;
  font-weight: bold;
  font-size: 38px;
  color: var(--primary);
}
.main-title span {
  display: block;
  font-size: 26px;
}

.border-box {
  padding: 24px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(175, 145, 77, 0.15);
}

.three-points li {
  font-weight: bold;
  font-size: 22px;
  color: var(--primary);
}
.three-points li + li {
  margin-top: 16px;
}

.point-text {
  margin-top: 24px;
  font-size: 22px;
}

.point-title {
  margin-top: 48px;
  font-weight: bold;
  font-size: 26px;
  color: var(--primary);
}
.point-title + span {
  display: block;
  margin-bottom: 16px;
  font-weight: bold;
  font-size: 20px;
  color: var(--primary);
}

/* 写真ギャラリー */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 3 / 2;
  background-color: #f5f5f5;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* モーダル（拡大表示） */
.modal {
  display: none;
  position: fixed;
  z-index: 99999 !important;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  margin: 0;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 100000 !important;
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 100001 !important;
}

.modal-close:hover,
.modal-close:focus {
  color: var(--gold);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* 左右2枚の写真レイアウト */
.two-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background-color: #f5f5f5;
}

.photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-image {
  transform: scale(1.05);
}

/* タブUI */
.category-tabs {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  gap: 8px;
  flex-wrap: wrap;
  /* border-bottom: 2px solid var(--gold); */
}

.tab-item {
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: var(--primary);
  background-color: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-item:hover {
  color: var(--gold);
  background-color: rgba(175, 145, 77, 0.1);
}

.tab-item.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* テーブルコンテナ */
.table-container {
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* スクロールヒントの位置を調整・固定 */
.js-scrollable {
  position: relative;
}

/* スクロールヒントの位置のみ調整（デフォルトスタイルは保持） */
.js-scrollable .scroll-hint {
  position: absolute !important;
  right: 10px !important;
  top: 80px !important;
  bottom: auto !important;
}

.works-table {
  width: 100%;
  border-collapse: collapse;
  display: none;
  font-size: 16px;
  min-width: 600px;
}

.works-table.active {
  display: table;
}

.works-table thead {
  background-color: var(--gold);
  color: var(--primary);
}

.works-table th {
  padding: 16px;
  text-align: left;
  font-weight: bold;
  border: 1px solid rgba(28, 42, 82, 0.2);
}

.works-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
}

.works-table tbody tr:hover {
  background-color: #f9f9f9;
}

.works-table td {
  padding: 16px;
  border-right: 1px solid #e0e0e0;
  vertical-align: top;
}

.works-table td:first-child {
  white-space: nowrap;
  min-width: 140px;
}

.works-table td:last-child {
  border-right: none;
}

/* ユーティリティークラス */
.br-sp {
  display: none;
}

/* マージントップ ユーティリティークラス */
.mt-8 {
  margin-top: 8px !important;
}

.mt-16 {
  margin-top: 16px !important;
}

.mt-24 {
  margin-top: 24px !important;
}

.mt-32 {
  margin-top: 32px !important;
}

.mt-40 {
  margin-top: 40px !important;
}

.mt-48 {
  margin-top: 48px !important;
}

.mt-56 {
  margin-top: 56px !important;
}

.mt-64 {
  margin-top: 64px !important;
}

.mt-72 {
  margin-top: 72px !important;
}

.mt-80 {
  margin-top: 80px !important;
}

/* ol-list スタイル */
.ol-list li {
  font-size: 18px;
  line-height: 1.8;
}

.ol-list li + li {
  margin-top: 24px;
}

/* リンクボタン */
.link-button-wrapper {
  margin-top: 24px;
  text-align: center;
}

.link-button {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--primary);
  border-radius: 4px;
  background-color: var(--primary);
  transition: all 0.3s ease;
}

.link-button:hover {
  background-color: transparent;
  color: var(--primary);
  text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .br-sp {
    display: inline;
  }
  
  .main-title {
    font-size: 32px;
  }
  
  .main-title span {
    font-size: 20px;
  }
  
  .three-points li {
    font-size: 18px;
  }
  
  .point-text {
    font-size: 18px;
  }
  
  .point-title {
    font-size: 22px;
  }
  
  .point-title + span {
    font-size: 16px;
    margin-top: 8px;
  }
  
  .border-box {
    padding: 24px 8px;
  }
  
  .photo-gallery {
    gap: 4px;
  }
  
  .table-container {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px;
  }
  
  .works-table {
    font-size: 14px;
    min-width: 600px;
  }
  
  .works-table th,
  .works-table td {
    padding: 12px 8px;
  }
  
  .works-table td:first-child {
    min-width: 100px;
    font-size: 12px;
  }
  
  /* スマホ時のスクロールヒント位置 */
  .js-scrollable .scroll-hint {
    top: 60px !important;
  }
  
  .category-tabs {
    gap: 4px;
    align-items: flex-start;
  }
  
  .tab-item {
    padding: 8px 16px;
    font-size: 14px;
    margin-bottom: 0;
    border-bottom: none;
  }
  
  .tab-item.active {
    border-bottom: 3px solid var(--gold);
  }
}