/* 下層ページ専用スタイル */

/* パンくずリスト */
.breadcrumb {
  background-color: #f8f8f8;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.breadcrumb .container {
  max-width: 95%;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.breadcrumb li {
  margin-right: 5px;
}

.breadcrumb li:not(:last-child)::after {
  content: " > ";
  margin-left: 5px;
  color: #666;
}

.breadcrumb a {
  color: #333;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: #d4af37;
}

.breadcrumb .current {
  color: #666;
  font-weight: bold;
}

/* メインコンテンツ */
.main-content {
  padding: 40px 0;
  min-height: 60vh;
}

/* ページごとのヒーロー画像 */
.page-hero {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: #fff;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.5) 100%);
}

.page-hero__title {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.page-hero__caption {
  margin: 6px 0 0 0;
  font-size: 1rem;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

@media (max-width: 768px) {
  .page-hero { height: 200px; }
  .page-hero__title {
    font-size: 1.6rem;
    margin-top: 2rem;
  }
}

.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 0 0px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 21px;
  align-items: start;
  grid-template-areas: "main sidebar";
}

/* メインコンテンツエリア */
.content-main {
  grid-area: main;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.page-header {
  background: linear-gradient(135deg, #d4af37, #b8941f);
  color: white;
  padding: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin: 0 0 10px 0;
  font-weight: bold;
}

.page-subtitle {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
}

.page-content {
  padding: 2rem;
  line-height: 1.8;
}

.page-content h2 {
  color: #d4af37;
  font-size: 1.8rem;
  margin: 30px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}

.page-content h3 {
  color: #333;
  font-size: 1.4rem;
  margin: 3rem 0 1rem 0;
}

.page-content p {
  margin-bottom: 15px;
  color: #555;
}

.page-content ul, .page-content ol {
    margin: 15px 0;
    padding-left: 1.2rem;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    flex-wrap: wrap;
}

.page-content li {
    margin-bottom: 8px;
    color: #555;
    margin-right: 8px;
}

/* 画像ギャラリー */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  /* background: linear-gradient(transparent, rgba(0,0,0,0.8)); */
  color: #000;
  padding: 5px 15px 10px;
  font-size: 14px;
}

/* サイドバー */
.sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-section {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.sidebar-section h3 {
  background: #d4af37;
  color: white;
  margin: 0;
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: bold;
}

.sidebar-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.sidebar-menu a:hover {
  background-color: #f8f8f8;
  color: #d4af37;
}

.contact-info {
  padding: 20px;
}

.contact-info p {
  margin: 0 0 10px 0;
  color: #555;
}

.btn-contact {
  display: inline-block;
  background: #d4af37;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease;
}

.btn-contact:hover {
  background: #b8941f;
}

.recent-works {
  padding: 20px;
}

.work-item {
  margin-bottom: 15px;
  text-align: center;
}

.work-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 8px;
}

.work-item p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.process-steps {
  display: flex;
  margin-top: 30px;
}

.step {
  text-align: left !important;
  position: relative;
  width: 100% !important;
}

.step h3 {
  text-align: left;
}

/* ボタンスタイル */
.btn-primary {
  display: inline-block;
  background: #d4af37;
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #b8941f;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #d4af37;
  padding: 15px 30px;
  border: 2px solid #d4af37;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #d4af37;
  color: white;
}

/* テーブルスタイル */
.table-responsive {
  overflow-x: auto;
  margin: 20px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

th {
  background: #d4af37;
  color: white;
  font-weight: bold;
  width: 144px;
}

tr:hover {
  background-color: #f8f8f8;
}


/* レスポンシブデザイン */
@media (max-width: 768px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "sidebar";
    gap: 20px;
  }

  .page-header {
    padding: 30px 20px;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-content {
    padding: 20px;
  }

  /* 並び順はgrid-template-areasで制御（メイン→サイド） */

  .image-gallery {
    grid-template-columns: 1fr;
  }

  th, td {
    display: block;
    width: 100%;
  }
}
