/* repair_request.css */

/* 基本設定（修理ページ専用） */
.base-page .main-content {
    background-color: #f4f7f9; /* 少しグレーがかった白 */
    color: #333;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'sans-serif';
    line-height: 1.6;
}

.main-content .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ヒーローセクション */
.main-content .hero {
    position: relative;
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.main-content .hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.main-content .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* テキスト視認性向上オーバーレイ */
    z-index: 2;
}

.main-content .hero-text {
    position: relative;
    z-index: 3;
}

.main-content .hero h1 {
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* === カードデザイン（安定レイアウト版） === */
.main-content .card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
  justify-items: center; /* 各カードを中央寄せ */
}

.main-content .card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  max-width: 340px;  /* ← 固定widthをやめ、最大値だけ設定 */
  width: 100%;
}

.main-content .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.main-content .card img {
  width: 100%;
  aspect-ratio: 4 / 3;  /* ← 600×450を保ちながら自動調整 */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

.main-content .card h3 {
  font-size: 1rem;
  margin: 14px 16px 6px;
  color: #005E98;
  text-align: center;
}

.main-content .card p {
  font-size: 0.9rem;
  padding: 0 16px 16px;
  color: #444;
  text-align: center;
  line-height: 1.6;
}

/* === スマホ対応 === */
@media (max-width: 768px) {
  .main-content .card-container {
    grid-template-columns: 1fr; /* 1列に */
  }

  .main-content .card {
    max-width: 90%;
  }
}


/* 依頼セクション */
.main-content .request-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.main-content .button {
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
}

.main-content .button:first-child {
    background-color: #005E98; /* Podeaブルー */
    color: #fff;
}

.main-content .button:first-child:hover {
    background-color: #004a7a;
    transform: scale(1.05);
}

.main-content .button:last-child {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
}

.main-content .button:last-child:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.main-content h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 30px;
    color: #333;
    border-bottom: 2px solid #005E98;
    padding-bottom: 10px;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}

.main-content ul {
    list-style: none;
    padding-left: 0;
}

.main-content ul li {
    background: #e9f2f9;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 5px solid #005E98;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .main-content .hero {
        height: 30vh;
    }

    .main-content .hero h1 {
        font-size: 2rem;
    }

    .main-content h2 {
        font-size: 1.6rem;
    }

    .main-content .container {
        padding: 30px 15px;
    }

    .main-content .request-buttons {
        flex-direction: column;
        align-items: center;
    }

    .main-content .button {
        width: 80%;
        text-align: center;
    }
}

.main-content .card figure {
  margin: 0;
  position: relative;
}

.main-content .card figcaption {
  font-size: 0.85rem;
  padding: 8px 10px;
  text-align: center;
  line-height: 1.4;
}
