/* ═══════════════════════════════════════════════════════
   Roopt.jp — home.css  (トップページ専用)
   ═══════════════════════════════════════════════════════ */

/* ─── HERO ────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

/* 左：写真 */
.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ∞マーク */
.hero-infinity {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 9rem;
  font-weight: 900;
  color: rgba(58,140,92,.18);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-en);
}

/* 右：テキスト */
.hero-text {
  background: var(--bg);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-eyebrow {
  font-family: var(--font-en);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--green);
  margin-bottom: .75rem;
}

.hero-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: var(--text);
  font-family: var(--font-ja);
}

.hero-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 2rem;
  max-width: 360px;
}

.btn-primary {
  display: inline-block;
  background: var(--green-xdk);
  color: var(--bg-card);
  padding: .85rem 2.25rem;
  border-radius: 100px;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .18s, box-shadow .18s, transform .12s;
  align-self: flex-start;
  box-shadow: 0 4px 16px rgba(10,30,18,.22);
}

.btn-primary:hover {
  background: var(--green-hero);
  box-shadow: 0 8px 24px rgba(10,30,18,.3);
  transform: translateY(-2px);
}

/* ─── 宿・シェアハウスセクション ──────────────────────── */
.home-section { padding: 3.5rem 2rem; max-width: var(--max); margin: 0 auto; }

/* ─── エリアから探す（写真カードグリッド） ────────────── */
/* ─── RENOVATION FOR AKIYA ────────────────────────────── */
.akiya-section {
  padding: 4rem 2rem;
  background: var(--bg);
}

.akiya-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.akiya-text-col { }

.akiya-eyebrow {
  font-family: var(--font-en);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--green);
  margin-bottom: .75rem;
  display: block;
}

.akiya-icon {
  width: 56px; height: 56px;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.akiya-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
  font-family: var(--font-ja);
}

.akiya-desc {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--green);
  color: var(--green);
  padding: .6rem 1.75rem;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .15s, color .15s;
}

.btn-outline:hover { background: var(--green); color: var(--bg-card); }

.akiya-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.akiya-photos img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ─── レスポンシブ ─────────────────────────────────── */
@media (max-width: 860px) {
  /* スマホ: 写真を背景に、テキストをオーバーレイ */
  .hero-inner {
    display: block;
    position: relative;
    min-height: 520px;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    min-height: unset;
    max-height: unset;
    z-index: 0;
  }
  /* 下から暗くなるグラデーションオーバーレイ */
  .hero-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,.15) 0%,
      rgba(0,0,0,.45) 45%,
      rgba(0,0,0,.72) 100%
    );
  }
  .hero-text {
    position: relative;
    z-index: 1;
    background: transparent;
    padding: 3rem 1.75rem 2.5rem;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-eyebrow { color: rgba(255,255,255,.75); }
  .hero-title   { color: #fff; }
  .hero-desc    { color: rgba(255,255,255,.82); max-width: none; }
  .hero-infinity { color: rgba(255,255,255,.08); }

  .akiya-inner { grid-template-columns: 1fr; gap: 2rem; }
  .akiya-photos img { height: 160px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 1.5rem; }
  .hero-inner { min-height: 460px; }
  .hero-text  { min-height: 460px; }
  .home-section { padding: 2.5rem 1.25rem; }
  .area-section { padding: 2.5rem 1rem; }
  .akiya-section { padding: 2.5rem 1.25rem; }
}
