@charset "UTF-8";

/* モノクロのカラー設定 */
:root {
    --bg-color: #ffffff;
    --text-color: #000000;
    --header-bg: #000000;
    --link-color: #ffffff;
    --link-bg: transparent;
    --link-hover-bg: #333333;
}

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

html, body {
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: sans-serif;
}

/* 縦方向のレイアウト設定 */
body {
    display: flex;
    flex-direction: column;
}

/* ナビゲーションメニュー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg); /* コンテンツと重なった際に見えるように背景色を指定 */
    padding: 20px;
    z-index: 1000;
}

#navigation-menu ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#navigation-menu a {
    text-decoration: none;
    color: var(--link-color);
    background-color: var(--link-bg);
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#navigation-menu a:hover {
    background-color: var(--link-hover-bg);
}

/* メインコンテンツ（画面中央配置） */
main {
    flex: 1;
    display: block;
}

h1 {
    font-family: 'Michroma', sans-serif;
    /* clamp(最小サイズ, 推奨サイズ, 最大サイズ) で画面幅に合わせて自動調整 */
    font-size: clamp(1.8rem, 8vw, 4rem);
    letter-spacing: 2px;
    text-align: center;
    word-break: break-word;
    padding: 0 20px;
}

/* フッターを画面下部に固定 */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    z-index: 1000;
    text-align: center;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-color);
}

/* 各セクションを画面いっぱいの高さ（100vh）にして、中央に配置 */
section {
    min-height: 100vh; /* 画面の高さいっぱいを最小の高さにする */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 60px 20px; /* 固定ヘッダー・フッターにコンテンツが隠れないように余白を設定 */
    box-sizing: border-box;
}

/* technologies セクションの背景画像設定 */
#technologies {
    background-image: url('/background.jpg'); /* ここに実際の画像ファイル名を指定してください */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff; /* 画像の上で文字が見やすいように白にしています */
    /* 黒い縁取り */
    /*
    text-shadow: 
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000; */
}

/* 下からもわっと表示されるアニメーションの初期状態 */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px); /* 50px下にずらしておく */
    transition: opacity 1s ease-out, transform 1s ease-out; /* 1秒かけて変化させる */
}

/* JSで「is-visible」クラスが付与されたら元の位置にフェードイン */
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Michroma', sans-serif;
    font-size: clamp(1.2rem, 5vw, 2.5rem); /* h1より少し小さなサイズで自動調整 */
    font-weight: normal;
    text-align: center;
    padding: 0 20px;
}

/* プロフィールセクションのレイアウトとアイコンスタイル */
.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    text-align: center;
    margin-top: 30px; /* 見出し(h2)とプロフィール領域の間に余白を追加 */
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%; /* 画像を丸くする */
    object-fit: cover;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icon {
    font-size: 2rem; /* FontAwesomeのアイコンサイズを設定 */
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #555555; /* ホバー時の色 */
    transform: scale(1.3); /* ホバー時に少し大きくするアニメーション */
}
