@charset "utf-8";

/* 全体のリセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 画像を中央配置して縦に並べる */
.image-container {
    text-align: center;
}

/* 画像のサイズ設定（PC用） */
.image-container img {
    max-width: 800px; /* 最大幅1125px */
    width: 40%; /* PCでは横幅を半分程度に */
    display: block;
    margin: 0 auto;
}

/* CVセクション（背景画像を親要素にする） */
.cv-section {
    position: relative; /* ボタン配置の基準 */
    text-align: center;
    width: 40%; /* PCでは50% */
    max-width: 800px;
    margin: 0 auto;
}

/* 背景画像 */
.cv-section img {
    width: 100%;
	display: block;
    
}

/* ボタン配置（背景画像の内部、下から100pxに配置） */
.cv-button {
    position: absolute;
    left: 50%;
    bottom: 12%; /* 背景画像の下から100pxの位置 */
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
}

/* ボタンのホバーエフェクト */
.cv-button img {
    width: 100%;
    height: auto;
}

.cv-button img:hover {
    opacity: 0.8;
}

/* ボタンの固定 */
.fixed-button {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 0;
}

/* ボタン画像（PCデフォルト） */
.fixed-button img {
    max-width: 600px;
    width: 50%;
    height: auto;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .image-container img {
        width: 100%;
        max-width: none;
    }

    .cv-section {
        width: 100%;
    }

    .cv-button {
        width: 70%; /* スマホではボタンを少し大きく */
        bottom: 10%; /* スマホでも適切な比率で配置 */
    }

    .fixed-button img {
        max-width: 600px;
        width: 80%;
    }
}