/* --- 変数・ベース設定 --- */
:root {
    --text-color: #333;
    --main-blue: #81d4fa;   
    --main-pink: #f06292;   
    --accent-blue: #e0f2f7;
    --accent-pink: #fce4ec;
    --accent-yellow: #fff9c4;
    --text-outline: 0 0 10px #fff, 0 0 5px #fff;
    --font-main: 'Noto Sans JP', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* サイト全体背景（画像+ぼかし） */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('img/サイト背景.png'); 
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transform: scale(1.05);
    z-index: -1;
    opacity: 0.7;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.8;
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

/* --- レイアウト共通 --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 25px; }
.section { padding: 100px 0; }

.section-title {
    font-size: 2.8rem; text-align: center; margin-bottom: 60px;
    font-weight: 700; text-shadow: var(--text-outline);
}
.section-title::after {
    content: ""; display: block; width: 60px; height: 6px;
    background: var(--main-blue); margin: 15px auto 0; border-radius: 10px;
}

/* --- ヘッダー --- */
.header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px);
}
.header-inner {
    max-width: 1100px; margin: 0 auto; padding: 15px 25px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 700; font-size: 1.3rem; color: var(--main-blue); }
.nav ul { display: flex; gap: 15px; list-style: none; }
.nav a {
    text-decoration: none; font-size: 0.85rem; font-weight: 700;
    padding: 8px 18px; border-radius: 50px; background: var(--accent-blue); color: var(--main-blue);
}
.nav li:last-child a { background: var(--main-pink); color: #fff; }

/* --- ヒーロー（トップ背景を薄いグレーに） --- */
.hero { 
    height: 100vh; 
    display: flex; 
    align-items: center; 
    text-align: center; 
    /* 背景を薄いグレーのグラデーションに戻しました */
    background: linear-gradient(rgba(245, 245, 245, 0.5), rgba(245, 245, 245, 0.5));
}
.hero-title, .hero-desc { text-shadow: var(--text-outline); margin-bottom: 25px; }
.hero-cta { display: flex; justify-content: center; gap: 20px; }

/* --- ボタン --- */
.btn { display: inline-block; padding: 16px 40px; border-radius: 100px; font-weight: 700; text-decoration: none; transition: 0.3s; }
.btn-primary { background: rgba(255,255,255,0.9); color: var(--main-blue); border: 2px solid var(--main-blue); }
.btn-secondary { background: rgba(255,255,255,0.9); color: var(--main-pink); border: 2px solid var(--main-pink); }
.btn-primary:hover, .btn-secondary:hover { background: var(--main-blue); color: #fff; border-color: var(--main-blue); }

/* --- Strengths (タイルのカラー) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.card { padding: 40px; border-radius: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card-blue { background-color: rgba(224, 242, 247, 0.9); }
.card-pink { background-color: rgba(252, 228, 236, 0.9); }
.card-yellow { background-color: rgba(255, 249, 196, 0.9); }
.card h3 { font-size: 0.9rem; color: rgba(0,0,0,0.3); margin-bottom: 10px; }
.card-lead { font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; display: block; }

/* --- Works --- */
.works-wrapper { display: flex; justify-content: center; }
.work-card {
    max-width: 900px; width: 100%; border-radius: 40px; overflow: hidden;
    background: rgba(255, 255, 255, 0.95); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.work-thumb { height: 500px; background: #fff; position: relative; }
.slider-container { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; }
.slider-container img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: start; }
.slider-hint { position: absolute; bottom: 20px; right: 20px; background: rgba(0,0,0,0.6); color: #fff; padding: 8px 18px; border-radius: 50px; font-size: 0.8rem; }
.work-content { padding: 50px; }
.work-tags { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; flex-wrap: wrap; }
.work-tags span { background: var(--accent-pink); color: var(--main-pink); padding: 5px 15px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; }
.work-links { display: flex; justify-content: center; align-items: center; gap: 15px; margin-bottom: 30px; }
.work-details { background: #f9f9f9; padding: 30px; border-radius: 20px; text-align: left; display: inline-block; max-width: 600px; width: 100%; }

/* --- About --- */
.about-profile { text-align: center; margin-bottom: 50px; }
.name { font-size: 2.2rem; font-weight: 700; text-shadow: var(--text-outline); }
.area { display: inline-block; background: var(--main-blue); color: #fff; padding: 5px 20px; border-radius: 50px; margin: 15px 0; font-weight: 700; }
.about-desc { background: rgba(255, 255, 255, 0.85); padding: 35px; border-radius: 30px; text-align: left; }
.skills-heading { text-align: center; font-size: 1.6rem; margin: 40px 0 25px; font-weight: 700; text-shadow: var(--text-outline); }
.skill-list-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; }
.skill-list-new li { background: rgba(255, 255, 255, 0.9); padding: 25px; border-radius: 20px; border: 2px solid var(--accent-blue); }

/* --- Contact --- */
.contact-msg { text-align: center; font-weight: 700; text-shadow: var(--text-outline); margin-bottom: 30px; }
.contact-email { text-align: center; margin-bottom: 40px; }
.email-text { font-weight: 700; text-shadow: var(--text-outline); margin-top: 10px; }
.contact-form-container { display: flex; justify-content: center; }
.contact-form { background: rgba(255, 255, 255, 0.9); padding: 40px; border-radius: 30px; width: 100%; max-width: 650px; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 700; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 12px; font-family: inherit; }
.divider { border: none; border-top: 2px dashed var(--main-blue); opacity: 0.2; margin: 50px 0; }
.btn-wide { width: 100%; cursor: pointer; border: none; }

/* --- フッター --- */
.footer { padding: 50px 0; text-align: center; font-weight: 700; text-shadow: var(--text-outline); color: #666; font-size: 0.85rem; }

/* --- レスポンシブ --- */
@media (max-width: 768px) {
    .nav ul { display: none; }
    .section-title { font-size: 2.2rem; }
    .work-thumb { height: 300px; }
    .work-content { padding: 30px 20px; }
    .hero-cta { flex-direction: column; align-items: center; }
}