/* 全体のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    padding-top: 60px;  /* 固定メニューの高さ分だけコンテンツを下にずらす */
}

header {
    background-color: #333;
    padding: 10px 0;
    position: fixed;  /* メニューを画面に固定 */
    top: 0;           /* 上部に配置 */
    left: 0;
    width: 100%;      /* 横幅を100%にして画面いっぱいに広げる */
    z-index: 1000;    /* 他の要素より前面に表示 */
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.navbar a:hover {
    background-color: #555;
}

/* セクション */
.section {
    padding: 50px 20px;
    text-align: center;
}

h1, h2 {
    color: #333;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    font-size: 18px;
    margin: 10px 0;
}


/* 自己紹介リンクブロックのスタイル */
.links-container {
    margin-top: 30px;
    overflow: hidden; /* float のクリアリング */
}

.link-block {
    background-color: #fff; /* カードの背景色 */
    padding: 20px;
    border-radius: 12px; /* 角を丸くする */
    width: 30%; /* 3つ並べるための幅 */
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* 影を追加して浮き上がらせる */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* 内容がはみ出さないようにする */
    margin: 10px; /* 各カード間のスペース */
    float: left; /* 左に浮かせる */
}

.link-block img {
    width: 100px;
    height: 100px; /* アイコンのサイズ調整 */
    border-radius: 50%; /* 画像を円形に */
    margin-bottom: 15px; /* 画像とテキストの間隔 */
    object-fit: cover; /* 画像が枠に収まるように */
}

.link-block a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: block;
    padding: 12px 0;
    border-radius: 5px;
    margin-top: 15px;
    background-color: #f7f7f7; /* リンクの背景色 */
    transition: background-color 0.3s ease, color 0.3s ease;
}

.link-block:hover {
    transform: translateY(-8px); /* 上に少し浮かせる */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* 影を強調 */
}

.link-block a:hover {
    background-color: #333; /* リンク背景色 */
    color: white; /* リンク文字色 */
}



/* フォーム */
form {
    display: grid;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

input[type="text"],
input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    padding: 12px;
    font-size: 16px;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #555;
}

/* フッター */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}
#socials {
	float: right;
	margin-top: -18px;
}

#socials li {
	float: left;
	margin-left: 15px;
}

#socials li a {
	display: block;
	text-indent: -99999px;
	height: 24px;
	width: 24px;
	background-image: url(images/sprite.png);
	background-repeat: none;
}

.facebook {
	background-position: 0 0;
}

.twitter {
	background-position: -24px 0;
}

.google {
	background-position: -48px 0;
}

.instagram {
	background-position: -72px 0;
}

.dribbble {
	background-position: -96px 0;
}

.pinterest {
	background-position: -120px 0;
}

.skype {
	background-position: -144px 0;
}

.linkedin {
	background-position: -168px 0;
}

.vimeo {
	background-position: -192px 0;
}

.behance {
	background-position: -216px 0;
}

.rss {
	background-position: -240px 0;
}

.youtube {
	background-position: -264px 0;
}

.dropbox {
	background-position: -288px 0;
}

.flickr {
	background-position: -312px 0;
}

.blogger {
	background-position: -336px 0;
}
li:last-child{
	margin-left: 0;
}
/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .navbar ul {
        flex-direction: row;
        justify-content: space-around;
    }
    .section {
        padding: 40px 20px;
    }
    form {
        padding: 10px;
    }
    .links-container {
        justify-content: space-around; /* 中央配置を変更して均等に並べる */
    }
    .link-block {
        width: 45%; /* タブレットサイズでは2つ並べる */
    }
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .section {
        padding: 30px 20px;
    }

    .section h1,
    .section h2 {
        font-size: 24px;
    }

    form {
        padding: 10px;
        width: 100%;
    }

    input[type="text"],
    input[type="email"] {
        width: 100%;
    }

    button {
        width: 100%;
    }
    .links-container {
        justify-content: center;
        gap: 15px; /* 間隔を少し狭く */
    }

    .link-block {
        width: 100%; /* スマホサイズでは1つ並べる */
    }
}

@media (max-width: 480px) {
    .navbar ul {
        flex-direction: column;
        gap: 10px;
        padding: 10px;
    }

    .section {
        padding: 20px 15px;
    }

    .section h1,
    .section h2 {
        font-size: 20px;
    }

    form {
        width: 100%;
    }

    input[type="text"],
    input[type="email"],
    button {
        font-size: 14px;
        padding: 10px;
    }
    .links-container {
        justify-content: center;
        gap: 10px; /* 更に間隔を狭く */
    }

    .link-block {
        width: 100%; /* 幅を100%にして縦並びに */
    }
}