/* ==================================== */
/* 1. 基本設定とフォント */
/* ==================================== */
:root {
    --primary-color: #FFC0CB; /* パステルピンク */
    --secondary-color: #FFEBEE; /* 薄いピンク */
    --accent-color: #FF69B4; /* 濃いめのピンク */
    --text-color: #4B0082; /* 濃いめの紫（キュートな印象） */
    --light-text: #6A5ACD; /* 少し明るい紫 */
    --bg-color: #F8F8FF; /* 非常に薄い青/白 */
    --radius: 12px;
}

body {
    font-family: 'M PLUS Rounded 1c', sans-serif; 
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    font-family: 'Mochiy Pop P One', cursive; 
    color: var(--accent-color);
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* アイコンの色をテキストに合わせる */
.fas, .fab {
    color: var(--light-text);
    margin-right: 5px;
}

/* ==================================== */
/* 2. ヘッダーとナビゲーション */
/* ==================================== */
header {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
    color: white;
}

header nav ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

header nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: var(--radius);
    transition: background-color 0.3s;
}

header nav ul li a:hover {
    background-color: var(--accent-color);
}

/* ==================================== */
/* 3. ヒーローセクション (写真セクションを含む) */
/* ==================================== */
.hero {
    background: var(--secondary-color);
    padding: 80px 0;
    text-align: center;
}

.hero-layout {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
}

/* 写真コンテナのデザイン */
.hero-image-container {
    margin-bottom: 30px;
    width: 200px; 
    height: 200px;
    border-radius: 50%; /* 写真を丸くする */
    overflow: hidden;
    background-color: white; 
    padding: 5px; 
    border: 5px solid var(--accent-color); /* キュートな枠線 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 写真がコンテナに合わせてきれいに表示されるようにする */
    border-radius: 50%;
    display: block;
}

.hero h2 {
    font-size: 2.2em;
    line-height: 1.4;
    color: var(--text-color);
}

.hero .cute-text {
    color: var(--accent-color);
}

/* ボタン */
.hero-buttons {
    margin-top: 30px;
}

/* ==================================== */
/* 4. ボタンの共通スタイル */
/* ==================================== */
.cute-button {
    display: inline-block;
    padding: 12px 25px;
    margin: 5px 10px;
    border-radius: 25px; /* 丸いボタン */
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.2); /* 3D的な影 */
    border: none;
}

.cute-button:hover {
    transform: translateY(-2px); 
    box-shadow: 0 6px 0px rgba(0, 0, 0, 0.2);
}

.project-btn {
    background-color: var(--accent-color);
    color: white;
}

.contact-btn {
    background-color: #C0FFEE; /* キュートな緑 */
    color: var(--text-color);
}

.mini-button {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8em;
    transition: opacity 0.3s;
}
.mini-button:hover {
    opacity: 0.8;
}

/* ==================================== */
/* 5. セクションとグリッドレイアウト */
/* ==================================== */
section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 40px;
    border-bottom: 3px dashed var(--primary-color);
    padding-bottom: 5px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.separator {
    border: none;
    height: 30px;
    background: repeating-linear-gradient(
        45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        white 10px,
        white 20px
    ); /* 破線ボーダー */
    margin: 40px 0;
    opacity: 0.5;
}

.info-grid, .skill-grid, .project-grid {
    display: grid;
    gap: 20px;
    padding: 0 20px;
}

.info-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.skill-grid {
    grid-template-columns: repeat(3, 1fr);
}

.project-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}


.info-card, .skill-item, .project-card {
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary-color);
}

/* プロジェクトカードボタン */
.demo-btn {
    background-color: #6A5ACD; 
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: none; 
    margin-top: 15px;
}

.demo-btn:hover {
    transform: translateY(0);
    opacity: 0.9;
}

/* ==================================== */
/* 6. フッター/コンタクト */
/* ==================================== */
footer {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
}

footer .section-title {
    color: white;
    border-bottom: 3px dashed white;
}

.contact-info p {
    font-size: 1.1em;
    font-weight: bold;
}

.footer-buttons {
    margin-top: 25px;
}

.primary-btn {
    background-color: white;
    color: var(--accent-color);
}

.secondary-btn {
    background-color: var(--accent-color);
    color: white;
}

.copyright {
    margin-top: 30px;
    font-size: 0.9em;
}
.copyright .fas.fa-heart {
    color: white;
}

/* ==================================== */
/* 7. モバイル対応 */
/* ==================================== */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }

    header nav ul {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .skill-grid, .info-grid, .project-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.8em;
    }

    .cute-button {
        padding: 10px 20px;
    }
}