@charset "UTF-8";

/* 色の変数設定（ピンク・水色・ラベンダー・白） */
:root {
    --pink: #ffb7d5;
    --light-blue: #a8e6ff;
    --lavender: #d8c2ff;
    --white: #ffffff;
    --bg-tint: #fcfaff;
    --text-color: #554e63;
}

/* 全体の設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; /* リンククリック時に滑らかにスクロール */
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-tint);
    line-height: 1.7;
}

/* ナビゲーションメニュー */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 15px rgba(216, 194, 255, 0.25);
}

.navbar {
    max-width: 1000px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(45deg, #ff85b3, #9b82ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff85b3;
}

/* TOP（メインビジュアル） */
.hero {
    height: 65vh;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    /* ピンク・ラベンダー・水色のグラデーション */
    background: linear-gradient(135deg, var(--pink) 0%, var(--lavender) 50%, var(--light-blue) 100%);
    color: var(--white);
}

.hero-content {
    background: rgba(255, 255, 255, 0.25);
    padding: 40px 50px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(155, 130, 255, 0.15);
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 8px rgba(130, 100, 180, 0.25);
}

/* 各セクション共通 */
.section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 45px;
    position: relative;
}

/* タイトル下のグラデーションライン */
.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 5px;
    margin: 10px auto 0;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--pink), var(--lavender), var(--light-blue));
}

/* About（自己紹介） */
.about-card {
    background: var(--white);
    border-radius: 25px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 35px;
    box-shadow: 0 10px 30px rgba(216, 194, 255, 0.25);
    border: 2px solid #f4edff;
}

.profile-img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--lavender);
    flex-shrink: 0;
}

.about-text h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #7c68a8;
}

/* Works（作品） */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.work-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(168, 230, 255, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid #eef8ff;
}

.work-card:hover {
    transform: translateY(-6px);
}

.work-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.work-info {
    padding: 20px;
}

.work-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: #6b7ba8;
}

/* Skill（使用できるソフト） */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}

.skill-badge {
    background: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.skill-badge:hover {
    transform: scale(1.05);
}

.skill-badge.pink {
    border: 3px solid var(--pink);
    color: #d96b98;
}

.skill-badge.blue {
    border: 3px solid var(--light-blue);
    color: #4ea3c7;
}

.skill-badge.lavender {
    border: 3px solid var(--lavender);
    color: #8768c7;
}

/* フッター */
footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(90deg, #ffe6f0, #f0e6ff, #e6f7ff);
    font-size: 0.9rem;
    color: #776e8a;
}

/* スマホ画面用の調整 */
@media (max-width: 650px) {
    .about-card {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
}
/* 作品カードをクリック可能にする */
.work-card {
    cursor: pointer;
}

/* 拡大表示（モーダル）のデザイン */
.modal {
    display: none; /* 最初は隠しておく */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 78, 99, 0.65);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 表示されたときの状態 */
.modal.show {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content {
    position: relative;
    background-color: var(--white);
    border-radius: 25px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    text-align: center;
    border: 3px solid var(--lavender);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-content img {
    max-width: 100%;
    max-height: 65vh; /* 画面からはみ出さずに全体が収まる高さ */
    object-fit: contain; /* 切り抜かずに画像全体を表示 */
    border-radius: 15px;
    margin-bottom: 15px;
}

.modal-text h3 {
    color: #7c68a8;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    font-weight: bold;
    color: #b5a6d4;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #ff85b3;
}
.work-card {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(85, 78, 99, 0.65);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 25px;
    max-width: 750px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    text-align: center;
    border: 3px solid #d8c2ff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.modal-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 15px;
    margin-bottom: 15px;
}

.modal-text h3 {
    color: #7c68a8;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2rem;
    font-weight: bold;
    color: #b5a6d4;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #ff85b3;
}