@charset "utf-8";

/* ============================================================
   top – flash
============================================================ */
#flash {
  width: 100%;
  max-width: 1001px;
  margin: 0 auto 30px;
  text-align: center;
}
#flash img {
  width: 100%;
  height: auto;
}


/* ============================================================
   top – merit
============================================================ */
#merit {
  max-width: 1001px;
  margin: 0 auto 30px;
  background: url(../top/bg_merit.jpg) no-repeat center top;
  background-size: cover;
  padding: 40px 20px;
}
#merit h2 {
  text-align: center;
  margin-bottom: 30px;
}
#merit h2 img {
  width: 100%;
  max-width: 557px;
  height: auto;
}

#merit_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.merit_item {
  background: transparent;
}
.merit_item_inner {
  padding: 16px;
  overflow: hidden;
}
.merit_item h3 img {
  width: 100%;
  max-height: 45px;
  height: auto;
  object-fit: contain;
  object-position: left;
  margin-bottom: 12px;
  display: block;
}
.merit_item p {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
  clear: both;
}
.merit_item ul {
  font-size: 1rem;
  line-height: 1.8;
  color: #b83d14;
  margin-top: 6px;
  clear: both;
}
.merit_item img.merit_photo {
  width: 120px;
  height: auto;
  float: right;
  margin: 0 0 8px 12px;
}
.merit_anshin {
  width: 100%;
  max-width: 425px;
  height: auto;
  display: block;
  margin: 8px 0 12px;
  clear: both;
}


/* ============================================================
   top – ref
============================================================ */
#ref {
  max-width: 1001px;
  margin: 0 auto 30px;
}
#ref_top {
  margin-bottom: 10px;
}
#ref_top img {
  width: 100%;
  max-width: 372px;
  height: auto;
}
#ref ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
#ref ul li a img {
  width: 100%;
  height: auto;
}


/* ============================================================
   top – voice
============================================================ */
#voice {
  max-width: 1001px;
  margin: 20px auto 0;
  padding: 20px;
  background: #fff9f0;
  border-radius: 6px;
}
#voice h2 img {
  width: 100%;
  max-width: 289px;
  height: auto;
  margin-bottom: 16px;
}
#voice dl {
  max-height: 400px;
  overflow-y: auto;
}
#voice dt {
  color: #b83d14;
  font-size: 0.9rem;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 2px dotted #ccc;
  margin-bottom: 5px;
}
#voice dd {
  font-size: 0.85rem;
  margin-bottom: 18px;
  line-height: 1.6;
}
#voice dd span {
  display: block;
  font-size: 0.75rem;
  color: #888;
}


/* ============================================================
   responsive (max 768px)
============================================================ */
@media (max-width: 768px) {

  #merit { padding: 20px 10px; }

  #merit_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .merit_item img.merit_photo {
    width: 80px;
  }

  #ref ul {
    grid-template-columns: repeat(2, 1fr);
  }
}