
/* 基本 ここから↓ */
body {
  font-family: 'Raleway', Arial, sans-serif;
  color: #222222;
}

.raleway {
    font-family: "Raleway", Arial, serif;
  }

.container {
    width: 80%; /* 全体幅の80%を指定：レスポンシブ対応のために幅を相対値に */
    max-width: 1920px; /* 最大幅を1920pxに制限：大きな画面でもこれ以上広がらないようにする */
    margin: 0 auto; /* 上下のマージンは0、左右は自動で中央寄せ（横中央配置） */
    position: relative; /* 子要素の絶対配置（position: absolute）に対応するための基準位置を設定 */
}

.flex {
    display: flex; /* フレックスボックスを使用して横並びのレイアウトを可能にする */
    justify-content: space-between; /* 子要素の間に均等なスペースを作る（両端揃え） */
    flex-wrap: wrap; /* 子要素がはみ出る場合に折り返し可能にする（1行に収まらないときの対応） */
    align-items: center; /* 子要素を縦方向の中央に揃える */
}
/* 基本 ここまで↑ */


/* Home ここから↓ */
/* ヘッダー */
header {
    padding: 30px 0; /* ヘッダー上下に余白を追加 */
}
.logo {
    width: 220px; /* ロゴ幅を固定 */
}
.header_menu li {
    margin-left: 40px; /* メニュー項目の間隔を40px空ける（左側に余白）→横並びの見た目を整える */
}
.header_menu li a {
    transition: .3s; /* リンクに対するホバーなどの変化を0.3秒かけてなめらかに実行する */
}
.header_menu li a:hover {
  color: #1A525F; /* ホバー時にリンク文字色に変更 */
}

/* メイン */
#image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1920px;
    gap: 0px;
    margin-bottom: 10px;
}

#image-grid a {
    position: relative;
    overflow: hidden; /* はみ出しを防ぐ */
    display: block; /* 必要に応じて追加 */
}

#image-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s;
}

#image-grid a:hover img {
	transform:scale(1.1); /* ズームイン */
}

/* 横帯の背景とテキスト */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6); /* 横帯の半透明背景 */
  color: #fff;
  padding: 10px 15px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-sizing: border-box;
}

.caption span {
  font-family: "Raleway", serif;
  font-size: 16px;
}

/* ホバー時に帯を表示 */
#image-grid a:hover .caption {
  opacity: 1;
  transform: translateY(0);
}


/* フッター */
footer {
    height: 40px;       /* 必要に応じてフッターの高さを調整 */
    text-align: center;     /* テキストの中央揃え */
    margin-bottom: 20px;
  }
/* Home ここまで↑ */

/* About ここから↓ */
/* Slider */
.slider img {
    /* 各スライダー全体の横幅を画面の高さいっぱい（100%）にする */
    width: 100%;
    /* height: 100vh;各スライダー全体の縦幅を画面の高さいっぱい（100vh）にする */
    height: calc(100vh - 100px); /* 画面の高さからヘッダー分の100pxを引いた高さにする */
}
.slider {
    margin-bottom: 45px;
}
/* タイトルとポートレイト */
.imgtext {
    font-family: "Arial", sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: black;
    margin-bottom: 90px;  
}
img {
    display: block;
    max-width: 100%;
    min-height: auto;
    margin-right: 30px;
}
.titletext h2 {
    margin-left: 30px;
}
/* 私の人生観について */
.life-container {
    background-color: #f2f2f2; /* 薄いグレー */
    padding: 50px;
    margin-bottom: 50px;  
  }
  
  .life-title {
    font-family: "Raleway", serif;
    font-weight: bold;
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
  }
  
  .life-message {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.8;
  }
  
  .life-text {
    font-family: serif;
    padding-left: 20%;
    margin-bottom: 16px;
  }
  
  .spaced {
    margin-bottom: 24px; /* 特に間隔を開けたい部分 */
  }
  .life-logo {
    width: 160px;
    margin-left: auto; /* 左側の余白を自動調整して右端に移動 */
    display: block; /* ブロック要素として扱う */
    transform: translateX(-250px); /* 右寄せ状態から20%左へ移動 */
  }

/* About ここまで↑ */

/* Contact ここから↓ */
/* GPT案 */

/* ▼ 全体のコンテナ設定 ▼ */
.contact-wrapper {
  display: flex; /* 子要素を横並びにする */
  flex-wrap: wrap; /* 幅が狭くなったら折り返す */
  gap: 40px; /* カラム間に40pxの間隔を空ける */
  padding: 40px 20px; /* 上下40px、左右20pxの内側余白をつける */
  max-width: 1000px; /* 最大幅を1000pxに制限 */
  margin: 0 auto; /* 中央寄せにする */
}

/* ▼ 左右カラムの基本スタイル（共通）▼ */
.contact-detail,
.contact-form {
  flex: 1; /* 均等に幅を分け合う */
  min-width: 300px; /* 幅が狭くなりすぎないよう最小幅を指定 */
}

/* ▼ 各カラムのタイトル（h2）▼ */
.contact-detail h2,
.contact-form h2 {
  font-size: 24px; /* フォントサイズを24pxに設定 */
  margin-bottom: 10px; /* 下に10pxの余白を追加 */
}

.contact-detail h2 {
  margin-bottom: 40px;
}

/* ▼ Contact Detail 内のサブ見出し（h3）▼ */
.contact-detail h3 {
  margin-top: 60px; /* 上に20pxの余白を追加 */
  font-size: 18px; /* フォントサイズを18pxに設定 */
}

/* ▼ 段落テキストのスタイル ▼ */
.contact-detail p,
.contact-form p {
  line-height: 1.8; /* 行間を1.8に設定して読みやすくする */
  font-size: 16px; /* フォントサイズを16pxに設定 */
}

/* ▼ 入力欄とテキストエリアの基本スタイル ▼ */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; /* 幅を100%にして親要素いっぱいに広げる */
  padding: 10px; /* 内側に10pxの余白をつける */
  font-size: 16px; /* フォントサイズを16pxに設定 */
  margin-top: 5px; /* 上に5pxの余白を追加 */
  margin-bottom: 20px; /* 下に20pxの余白を追加 */
  border: 1px solid #ccc; /* 薄いグレーの枠線 */
  border-radius: 4px; /* 角を少し丸くする */
}

/* ▼ テキストエリア専用のスタイル ▼ */
.contact-form textarea {
  height: 150px; /* 高さを150pxに設定 */
  resize: vertical; /* 縦方向のサイズ変更は許可する */
}

/* ▼ 送信ボタンのスタイル ▼ */
.contact-form input[type="submit"] {
  background-color: #333; /* 背景色を濃いグレーにする */
  color: #fff; /* 文字色を白にする */
  padding: 12px 24px; /* 上下12px・左右24pxのパディング */
  border: none; /* 枠線を消す */
  border-radius: 4px; /* 角を丸くする */
  cursor: pointer; /* ホバー時にカーソルをポインターにする */
}

/* ▼ 送信ボタンのホバー時のスタイル ▼ */
.contact-form input[type="submit"]:hover {
  background-color: #555; /* ホバーで少し明るいグレーに変化 */
}

/* ▼ SNSアイコンのスタイル ▼ */
.social-icons a {
  display: inline-block; /* インライン＋ブロック要素として表示 */
  margin-right: 10px; /* 右に10pxの余白を追加 */
  font-size: 20px; /* アイコンのサイズを20pxにする */
  color: #333; /* アイコンの基本色を濃いグレーに設定 */
}

/* ▼ SNSアイコンのホバー時のスタイル ▼ */
.social-icons a:hover {
  color: #0077b5; /* ホバー時に青色に変化（LinkedIn風） */
}

/* ▼ スマホなどの狭い画面用のスタイル ▼ */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column; /* カラムを縦並びに切り替える */
  }
}

/* Contact ここまで↑ */