@charset "UTF-8";

/* --- 基本設定 (変数) --- */
:root {
    --main-color: #333333;
    --accent-color: #3b82f6;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* --- リセット & 全体スタイル --- */
body {
    font-family: var(--font-family);
    color: var(--main-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --- ヘッダー --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

nav ul {
    display: flex;
    gap: 20px;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- ドロップダウンメニュー --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--card-bg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 150px;
    border-radius: 5px;
    padding: 10px 0;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--main-color);
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
    color: var(--accent-color);
}

/* --- ヒーローセクション --- */
.hero {
    text-align: center;
    max-width: 100%;
    margin: 0;
    padding: 100px 20px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
}

/* --- 共通セクションスタイル --- */
section {
    padding: 80px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50px;
    font-weight: bold;
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
}

/* --- About --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: #ddd;
    object-fit: cover;
    flex-shrink: 0;
}

/* --- Hobbies (カード型レイアウト) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* リンク化したカードの設定 */
a.card {
    display: block;
    background-color: var(--card-bg);
    padding: 20px; /* カード全体に余白を設ける */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

a.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card-img {
    width: 100%;
    height: auto; /* 高さは自動（トリミングしない） */
    margin-top: 20px; /* テキストと画像の間を空ける */
    border-radius: 5px; /* 画像の角を少し丸くする（お好みで） */
}

/* --- Contact --- */
.contact {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    font-size: 1.2rem;
}

/* --- フッター --- */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--main-color);
    color: white;
    font-size: 0.9rem;
}

.hobbiestitle {
    text-align: center;
    margin-bottom: 60px;
    font-size: 70px;
    font-weight: bold;
    color: rgb(132, 43, 216);
    position: relative;
    -webkit-text-stroke: 1px #000000;
}

.hobbiessubtitle {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    font-size: 40px;
    font-weight: bold;
    color: rgb(235, 218, 73);
    position: relative;
    -webkit-text-stroke: 1px #3b82f6;
}

.hobbiessubtitle::after {
    content: "";
    display: block;
    width: 60px; /* ここで下線の長さを自由に決められます！ */
    height: 4px; /* ここで下線の太さを決められます */
    background-color: #3b82f6; /* 線の色 */
    margin: 10px auto 0; /* 線を中央に配置し、文字との隙間(10px)を作る */
}

.hobbiesothersubtitle {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 60px;
    font-size: 40px;
    font-weight: bold;
    color: rgb(210, 255, 253);
    position: relative;
    -webkit-text-stroke: 1px #000000;
}

.hobbiesothersubtitle::after {
    content: "";
    display: block;
    width: 60px; /* ここで下線の長さを自由に決められます！ */
    height: 4px; /* ここで下線の太さを決められます */
    background-color: #3b82f6; /* 線の色 */
    margin: 10px auto 0; /* 線を中央に配置し、文字との隙間(10px)を作る */
}

/* --- スマホ用調整 --- */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    .hero h1 {
        font-size: 2rem;
    }
}