/* =========================
   Home Page (ホーム)
========================= */

/* Hero */
.hero {
  position: relative;
  height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-photo-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}
.hero-photo.is-active {
  opacity: 1;
  visibility: visible;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo--portrait img { object-position: center 20%; }
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero-box {
  background: rgba(250, 247, 242, 0.52);
  padding: 50px 60px;
  max-width: 600px;
  border-left: 4px solid #5a7a4a;
  box-shadow: 0 12px 32px rgba(61, 47, 36, 0.12);
}
.hero h1 {
  font-size: 36px;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}
.hero p {
  font-size: 15px;
  color: #3d2f24;
  margin-bottom: 28px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo { transition: none; }
}

/* Concept */
.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.concept-img { height: 320px; border-radius: 6px; overflow: hidden; }
.concept-img img { width: 100%; height: 100%; object-fit: cover; }
.concept-text h3 {
  font-size: 26px;
  margin-bottom: 24px;
  line-height: 1.6;
}
.concept-text p { margin-bottom: 16px; }

/* Service Cards */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  display: block;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(90, 62, 43, 0.08);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  color: inherit;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(90, 62, 43, 0.12); color: inherit; }
.service-card .img-placeholder { min-height: 180px; border-radius: 0; }
.service-card-body { padding: 28px 24px; }
.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #5a3e2b;
}
.service-card .en {
  font-size: 11px;
  color: #7a9968;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  display: block;
}
.service-card p { font-size: 14px; color: #6a5a48; }
.service-card .more {
  display: inline-block;
  margin-top: 16px;
  color: #5a7a4a;
  font-size: 13px;
  font-weight: 600;
}

/* Page Links */
.page-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.page-link-card {
  display: block;
  background: #fff;
  padding: 30px 20px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid #e8dcc4;
  transition: all .25s;
  color: inherit;
}
.page-link-card:hover {
  background: #5a7a4a;
  border-color: #5a7a4a;
  transform: translateY(-4px);
  color: inherit;
}
.page-link-card:hover h4, .page-link-card:hover .en { color: #fff; }
.page-link-card h4 {
  font-size: 17px;
  margin-bottom: 6px;
}
.page-link-card .en {
  font-size: 11px;
  color: #8b6a4f;
  letter-spacing: 0.15em;
}
.page-link-card--recruit {
  background: #5a7a4a;
  border-color: #5a7a4a;
  box-shadow: 0 8px 20px rgba(61, 90, 48, 0.22);
}
.page-link-card--recruit h4,
.page-link-card--recruit .en { color: #fff; }

/* Instagram */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.instagram-photo { aspect-ratio: 1 / 1; min-height: 0; }
.instagram-photo img { object-fit: cover; }
.instagram-photo:nth-child(4) img { object-position: 50% 10%; }
.home-sns-block { margin-top: 36px; text-align: center; }
.home-sns-block > p { color: #5a3e2b; font-family: "Yu Mincho", serif; font-size: 18px; margin-bottom: 18px; }
.home-sns-items { display: flex; justify-content: center; gap: 40px; }
.home-sns-item { display: grid; gap: 8px; color: #5a3e2b; font-weight: 600; }
.home-sns-item img { width: 150px; height: 150px; object-fit: contain; background: #fff; }
.support-banners { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.support-banners img { width: 234px; height: 60px; object-fit: contain; }

@media (max-width: 1024px) {
  .service-cards { grid-template-columns: 1fr; }
  .page-link-grid { grid-template-columns: repeat(2, 1fr); }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 28px; }
  .hero-box { padding: 36px 32px; }
}

@media (max-width: 768px) {
  .hero { height: 440px; }
  .hero-box { padding: 28px 24px; max-width: 100%; }
  .hero h1 { font-size: 22px; }

  .concept-grid { grid-template-columns: 1fr; gap: 30px; }
  .concept-img { height: 220px; }

  .service-cards { grid-template-columns: 1fr; }
  .page-link-grid { grid-template-columns: 1fr; }
  .home-sns-items { gap: 24px; }
  .home-sns-item img { width: 130px; height: 130px; }
}
