/* === Hero Title (PC) === */
.hero-title,
.page-featured-title {
    margin-bottom: 80px;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--hero-title-color);
    text-shadow: 0 2px 8px rgba(0,0,0,0.45);
    position: relative;
    z-index: 5;
    line-height: 1.2;
    transform: translateY(10px);
}

/* === Mobile (≤767px) === */
@media (max-width: 767px) {
    .hero-title,
    .page-featured-title {
        margin-bottom: 70px;
        font-size: 1.6rem;
        transform: translateY(0);
    }
}

/* === Tablet (768px–1023px) === */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title,
    .page-featured-title {
        margin-bottom: 70px;
        font-size: 1.8rem;
        transform: translateY(5px);
    }

    .eyecatch-hero,
    .page-featured-header {
        height: 180px;
    }
}

/* === Hero Overlay Black Mask === */
.eyecatch-hero::after,
.page-featured-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1;
}

/* === Works Card Hover === */
.works-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.2);
	transform: translateY(-4px);
}

/* === Portfolio Links === */
.site-main a {
	color: #007acc;
	text-decoration: none;
	transition: all 0.3s ease;
}
.site-main a:hover {
	color: #005fa3;
	text-decoration: underline;
}

/* === Hero Text Color === */
.hero-slider .overlay h1 {
    color: var(--hero-title-color);
}
.hero-slider .overlay p {
    color: var(--hero-subcopy-color);
}

/* Hero テキスト位置制御（変数をそのまま使用） */
.hero-slider .overlay {
  display: flex;
  flex-direction: column;
  justify-content: var(--hero-text-position, center);
  padding-top: var(--hero-offset-top, 0);
  padding-bottom: var(--hero-offset-bottom, 0);
}

.burger-menu-toggle span {
	background-color: var(--burger-color, #333) !important;
}


/* ===== Layout locks: 900 / 1200 / 100% ===== */
:root {
  --content-max: 900px;
  --wide-max: 1200px;
}

/* =============================
   481px以上でもhero中央寄せを維持
============================= */
@media screen and (min-width: 481px) {
  .eyecatch-hero {
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    height: 150px !important; /* 必要に応じて調整 */
    background-position: center center !important;
  }
}

/* Heroタイトルの余白リセット */
.eyecatch-hero .hero-title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
  position: relative;
  top: 0;
  transform: none !important; /* ← translateYを無効化 */
}

/* Hero全体を常に中央寄せ */
.eyecatch-hero {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  background-position: center center !important;
  height: 160px !important; /* 高さを一定にする */
}
