/* 基本設定 */
body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* ===== ヘッダー ===== */
.main-header {
    background-image: url("../img/poster02.png");
    background-size: cover;
    background-position: right center;

    width: 100%;
    height: 700px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    color: white;
    position: relative;
}

/* 暗幕 */
.main-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* 文字を前面に */
.main-header h1,
.main-header h2 {
    position: relative;
    z-index: 1;
}

/* 文字装飾 */
.main-header h1 {
    font-size: 3rem;
    color: #FFD700;
    text-shadow: 3px 3px 8px rgba(0,0,0,0.7);
}

.main-header h2 {
    color: #5b04dc;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}


/* ===== コンテナ ===== */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

/* カード */
.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* 見出し */
.section-title {
    font-size: 1.8rem;
    border-left: 6px solid #00aaff;
    padding-left: 15px;
    margin-bottom: 20px;
}

/* プロフィール */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
}

/* リスト */
ul {
    padding-left: 20px;
    line-height: 1.8;
}

/* フッター */
.site-footer {
    text-align: center;
    padding: 30px;
}


/* =========================
   スマホ対応（ここが重要）
   ========================= */
@media (max-width: 768px) {

	/* 追加：スマホの時だけ h2（キャッチコピー）を消す */
    .main-header h2 {
        display: none;
    }
	
	/* ここを修正：名前を下に下げる */
    .main-header h1 {
        font-size: 2.2rem;
        margin-top: 150px; /* この数値を大きくするほど下に下がります */
    }
	
    /* ヘッダーを左寄せ */
    .main-header {
        align-items: flex-start;
        text-align: left;
        padding-left: 20px;

        /* 背景画像を少し左へ */
        background-position: 90% center;

        height: 420px;
    }

    /* 文字サイズ調整 */
    .main-header h1 {
        font-size: 2.2rem;
    }

    .main-header h2 {
        font-size: 1.2rem;
    }

    /* プロフィール縦並び */
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== SNS ===== */
.sns-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 常に2列 */
    gap: 25px;
    justify-items: center;
}

/* カード */
.sns-card {
    width: 100%;
    max-width: 240px;
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: #f8fbff;
}

/* QRコード */
.qr-img {
    width: 100%;
    max-width: 170px;
}

/* CSSの最後に追加 */
.qr-image-container a {
    display: block;
    transition: opacity 0.3s;
}

.qr-image-container a:hover {
    opacity: 0.7; /* 重ねた時に少し薄くする */
}

/* フッターの装飾 */
.site-footer {
    background: #333; /* 背景を濃い色にして引き締める */
    color: #fff;       /* 文字を白くする */
    padding: 40px 20px;
    line-height: 1.6;
}

.footer-info {
    margin-bottom: 20px;
    font-size: 0.9rem; /* 少し小さめにして上品に */
}

.footer-info p {
    margin: 5px 0;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7; /* コピーライトは少し薄く */
    border-top: 1px solid #555;
    padding-top: 20px;
    display: inline-block;
}
