/* 共通設定 */
body {
  margin: 0;
  font-family: "ヒラギノ明朝 ProN W6";
  background-color: white;
}
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダー */
header {
  background-color: deepskyblue;
  padding: 20px 0;
  text-align: center;
}

header h1 {
  color: white;
  font-size: 3em;
  margin: 0;
  font-weight: bold;
}


header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* タイトルとナビゲーションの間隔 */
}

.site-title {
    font-size: 3em; /* "portfolio"の大きなフォント */
    font-weight: bold;
    color: #ffffff; /* 白い文字色 */
    margin: 0;
    letter-spacing: 2px;
}

header nav ul {
   list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 10px 0 0;
  padding: 0;
}

header nav ul li a {
    text-decoration: none;
  color: blue;
  font-size: 1.2em;
  font-weight: bold;
}

header nav ul li a:hover {
    color: #ffffff; /* ホバー時の色変更 */
}



/* メインコンテンツスタイル */
main {
    flex-grow: 1;
    /* メインコンテンツが展開してフッターを下に押しやるようにする */
    padding: 170px 0;
    display: flex;
    justify-content: center;
    /* カードを水平方向中央に配置 */
    align-items: flex-start;
    /* アイテムを垂直方向の上部に揃える */
}

.content-section {
    display: flex;
    gap: 30px;
    /* カード間の間隔 */
    flex-wrap: wrap;
    /* 画面サイズが小さい場合にカードを折り返す */
    justify-content: center;
    /* 折り返した際にカードを中央に配置 */
    width: 90%;
    /* コンテンツセクションの幅を調整 */
    max-width: 1000px;
    /* 最大幅 */
}

.item-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    /* アイテムカードの幅 */
    text-align: center;
}

.hobby-photo {
    width: 180px;
    /* 横幅はそのままか少し小さめ */
    height: 270px;
    /* 高さを大きめにして縦長に */
    object-fit: cover;
    /* 画像がはみ出ないように調整 */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.black-box {
    width: 100%;
    /* 親要素の幅に合わせる */
    height: 250px;
    /* 黒いボックスの高さ */
    background-color: #000000;
    /* 黒い背景 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    /* わずかに丸い角 */
    margin-bottom: 10px;
    /* 黒いボックスとテキストの間隔 */
}

.card-text {
    color: #000000;
    /* テキストの色を黒に */
    font-size: 1.1em;
    margin: 0;
    /* デフォルトのマージンを削除 */
}


/* フッタースタイル */
footer {
    background-color: #00bfff;
    /* スカイブルー */
    color: yellow;
    text-align: center;
    padding: 15px 0;
}

footer .container p {
    margin: 0;
    font-size: 0.9em;
    color: yellow;
    /* アリスブルー、著作権表示テキストのわずかにオフホワイト */
}

