html{
    margin:0;
    height:200%;
    background-color: #ECECEC;
    overflow-x: hidden;
}

body{
background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.8;
    margin: 0;
}

header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px); /* 背景をぼかす（高級感） */
    -webkit-backdrop-filter: blur(10px); /* Safari用 */
    
    /* 下側に薄い線を入れて区切りを出す */
    border-bottom: 1px solid #eee;
    
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0; /* 上下に少し余白を作る */
}

header nav {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

/* リンク（文字）の色 */
header a {
    color: #333; /* 真っ黒より少し薄い方がオシャレ */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

/* マウスを乗せたときの色 */
header a:hover {
    color: #2563eb; /* アクセントカラーの青に変える */
}

/* リストの並び */
header ul {
    display: flex;
    list-style: none;
    gap: 20px; /* メニュー同士の間隔 */
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--card-bg);
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 122, 255, 0.2);
}

.work-img {
    background: #222;
    border-radius: 8px;
    aspect-ratio: 16 / 9; /* 画像の比率を固定 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    margin-bottom: 20px;
}

.work-img-wrapper img {
    width: 100%;       /* 親要素の幅いっぱいに広げる */
    height: 100%;      /* 親要素の高さに合わせる */
    object-fit: cover; /* 縦横比を保ったまま、枠を綺麗に埋める */
    display: block;    /* 画像の下にできる謎の隙間を消す */
}

/* 親要素（枠）側にも高さを指定しておくと安定します */
.work-img-wrapper {
    width: 100%;
    height: 200px;     /* 好きな高さに調整してください */
    overflow: hidden;  /* 万が一はみ出しても隠す */
    border-radius: 12px 12px 0 0; /* 上側だけ角を丸くすると綺麗 */
}

.skill-list li {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    list-style: none;
}

.btn {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}
.btn:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 20px rgba(0, 122, 255, 0.5);
}

:root {
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #1a1a1a;
    --text-sub: #666666;
    --accent: #2563eb; /* 鮮やかなブルー */
    --border: #e5e7eb;
}

/* ヒーローセクションをかっこよく */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at top right, #f0f7ff, #ffffff);
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -0.02em;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--accent);
}

/* 制作物カード（白背景に薄い影） */
.work-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--accent);
}

.work-img-wrapper {
    background: #eee;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-info {
    padding: 24px;
}
