:root{
--hero-min-h: 78vh;
--hero-max-w: 1080px;
--hero-pad: clamp(20px, 4vw, 48px);
--text: #fff;
--bg: #000;
--overlay-1: rgba(0,0,0,.15);
--overlay-2: rgba(0,0,0,.65);
--radius: 999px;
}

.hero{
position: relative;
min-height: var(--hero-min-h);
background: var(--bg);
color: var(--text);
overflow: hidden;
display: grid;
align-items: end;
}

/* 背景（共通） */
.hero__bg{
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
}

/* 画像版：画像URLを差し替えてください */
.hero__bg--image{
background:
url("assets/hero.jpg") center / cover no-repeat;
transform: scale(1.02);
filter: saturate(1.05) contrast(1.05);
}

/* 動画版 */
.hero__bg--video{
object-fit: cover;
}

/* 読みやすさ用のオーバーレイ（上：薄／下：濃） */
.hero__overlay{
position: absolute;
inset: 0;
z-index: 1;
background:
linear-gradient(to bottom, var(--overlay-1) 0%, var(--overlay-2) 70%, rgba(0,0,0,.85) 100%);
}

.hero__inner{
position: relative;
z-index: 2;
width: min(var(--hero-max-w), 100%);
margin-inline: auto;
padding: var(--hero-pad);
padding-bottom: calc(var(--hero-pad) + 18px);
display: grid;
gap: 12px;
}

.hero__kicker{
margin: 0;
letter-spacing: .12em;
text-transform: uppercase;
opacity: .85;
font-size: clamp(12px, 1.4vw, 14px);
}

.hero__title{
margin: 0;
font-weight: 700;
line-height: 1.05;
font-size: clamp(34px, 6vw, 72px);
text-wrap: balance;
}

.hero__subtitle{
margin: 0;
opacity: .9;
max-width: 52ch;
font-size: clamp(14px, 1.8vw, 18px);
}

.hero__actions{
display: flex;
gap: 12px;
flex-wrap: wrap;
margin-top: 10px;
}

.btn{
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 12px 18px;
border-radius: var(--radius);
text-decoration: none;
color: var(--text);
border: 1px solid rgba(255,255,255,.28);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
transition: transform .12s ease, background .12s ease, border-color .12s ease;
font-size: 14px;
}
.btn:active{ transform: translateY(1px); }

.btn--primary{
background: rgba(255,255,255,.18);
border-color: rgba(255,255,255,.38);
}
.btn--primary:hover{
background: rgba(255,255,255,.24);
border-color: rgba(255,255,255,.5);
}

.btn--ghost{
background: rgba(0,0,0,.18);
}
.btn--ghost:hover{
background: rgba(0,0,0,.28);
border-color: rgba(255,255,255,.45);
}

/* スクロール誘導（任意） */
.hero__scroll{
margin-top: 20px;
width: fit-content;
text-decoration: none;
color: rgba(255,255,255,.85);
display: inline-flex;
align-items: center;
gap: 10px;
opacity: .9;
}
.hero__scrollText{
font-size: 12px;
letter-spacing: .1em;
text-transform: uppercase;
}
.hero__scrollBar{
width: 44px;
height: 1px;
background: rgba(255,255,255,.55);
position: relative;
overflow: hidden;
}
.hero__scrollBar::after{
content:"";
position:absolute;
inset:0;
background: rgba(255,255,255,.95);
transform: translateX(-100%);
animation: heroScroll 1.4s ease-in-out infinite;
}
@keyframes heroScroll{
0%{ transform: translateX(-100%); }
55%{ transform: translateX(0%); }
100%{ transform: translateX(110%); }
}

/* スマホでの最低高調整 */
@media (max-width: 480px){
:root{ --hero-min-h: 72vh; }
}

/* 動きを減らす設定に配慮 */
@media (prefers-reduced-motion: reduce){
.hero__scrollBar::after{ animation: none; }
.btn{ transition: none; }
}