/* assets/css/styles.css */

/* index.php のスタイル */
/* <h1>のスタイル */
/* <section>内のレイアウトを横並びにする */
.title-section {
  display: flex; /* 横並び */
  align-items: center; /* 垂直方向で中央揃え */
}

h1 {
  font-family: "Kaisei Tokumin", serif;
  font-size: 70px;
  color: #432f2f; /* 文字を黒鳶に */
  margin-top: 100px;
  margin-left: 100px;
  text-align: left;
}

h1 br {
  display: block;
  margin-top: 10px;
}

h1 span {
  display: inline-block;
  padding-left: 100px;
  white-space: nowrap;
}

/* 足跡画像のスタイル */
.footprint-img {
  position: absolute; /* 画像を絶対配置 */
  top: 10%; /* 足跡画像の垂直位置（h1の上に少し配置） */
  left: 35%; /* 水平方向で中央 */
  transform: translateX(-50%); /* 中央揃え補正 */
  width: 350px; /* 足跡画像の大きさを設定 */
  height: auto; /* 自動調整の高さ */
  z-index: 1; /* 他の要素より上に表示 */
}

/* プロフィール画像のスタイル */
.profileimg {
  max-width: 550px; /* 画像の最大幅 */
  margin-left: 90px; /* 画像とテキストの間にスペースを作る */
  margin-top: 100px; /* 画像の上の空白を増やす */
  border-radius: 5% !important; /* 丸い画像 */
}

.bg-light {
  background-color: transparent !important;
}


/* ナブリンクのスタイル */
.nav-link {
  font-size: 25px; /* 文字サイズ */
  font-weight: bold; /* 太字 */
  color: #432f2f; /* 文字を黒鳶に */
  text-decoration: none; /* 下線を消す */
  margin-left: 50px;
}

.nav-link:hover {
  color: #956f29; /* ホバー時の文字色 */
  text-decoration: none; /* ホバー時も下線なし */
}

.nav-icon {
  width: 60px; /* アイコンの幅 */
  height: 60px; /* アイコンの高さ */
  display: inline-block;
  vertical-align: middle; /* アイコンと文字を中央揃え */
}

.nav-link span {
  vertical-align: middle; /* 文字も中央揃え */
}

/* ホバー時に少し大きくする */
.nav-link:hover {
  transform: scale(1.1);
}


/* 全体のリセット（オプション） */
h2 {
  margin-top: 100px; /* デフォルトのマージンを完全に削除 */
  padding: 0; /* 必要に応じてパディングも削除 */
  margin-left: 50px;
  margin-bottom: 0;
  font-size:  35px;
}

/* 作ったもののテキスト */
.works-text {
  text-align: left; /* 左揃え */
  font-size: 24px; /* 文字サイズ */
  color: #432f2f; /* 文字の色 */
  margin: 0; /* デフォルトのマージンを完全に削除 */
  padding: 0; /* デフォルトのパディングも削除 */
  margin-left: 5%; /* 必要な左余白だけ設定 */
}

/* 作ったものセクションのライン */
.works-line {
  border-top: 4px solid #432f2f; /* ラインの太さと色 */
  width: 50%; /* 画面の左から4分の1の長さ */
  margin: 0; /* 余計なマージンを完全に削除 */
}

/* プロジェクト全体を横並びに配置 */
.project-item {
  display: flex; /* 横並びにする */
  align-items: center; /* 縦方向で中央揃え */
  gap: 20px; /* 画像と詳細の間のスペース */
  margin-bottom: 100px; /* 下のプロジェクトとの間隔 */
  margin-top: 100px;
  position: relative; /* 親要素にrelativeを指定 */
}

/* プロジェクトの詳細 */
.project-details {
  display: flex; /* フレックスボックスで配置 */
  flex-direction: column; /* アイテムを縦方向に並べる */
  align-items: center; /* 水平方向で中央揃え */
  text-align: center; /* テキストを中央揃え */
  width: 100%; /* コンテナの幅を全体に */
  margin: auto; /* コンテナ全体を中央揃え */
}

/* プロジェクト名（タイトル） */
.project-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px; /* タイトルと説明文の間に余白 */
  margin-top: 0; /* 上部の余白を削除 */
}

/* 説明文 */
.project-description {
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 20px; /* 説明文とボタンの間に余白 */
}

/* 詳しく見るボタン */
.project-details .btn {
  text-decoration: none;
  background-color: #6f4b3e; /* ボタンの背景色 */
  color: white; /* 通常時の文字色 */
  padding: 10px 20px; /* ボタンの内側余白 */
  border-radius: 5px; /* ボタンの角丸 */
  display: inline-block; /* ボタンをインラインブロックに設定 */
  margin-top: 10px; /* 上部に余白を追加 */
  transition: background-color 0.3s, color 0.3s; /* ホバー時のスムーズな色変化 */
  font-size:  20px;
}

/* ホバー時のスタイル */
.project-details .btn:hover {
  background-color: #956f29; /* ホバー時の背景色 */
  color: black; /* ホバー時の文字色 */
}

/* プロジェクト画像 */
.project-image1 {
  /* width: 500px; */ /* 画像の幅 */
  max-width: 500px;
  height: 300px; /* アスペクト比を維持 */
  border-radius: 10px; /* 画像の角を丸く */
  /* margin-left: 10%; */
}

/* プロジェクトアイテム（横並び） */
.project-item2 {
  display: flex; /* 横並びにする */
  align-items: center; /* 縦方向で中央揃え */
  justify-content: space-between; /* 左右に均等に配置 */
  gap: 20px; /* テキストと画像の間のスペース */
  margin: 0 auto; /* 中央揃え */
  width: 80%; /* コンテナの幅を調整 */
  position: relative; /* 矢印画像の基準を設定 */
}

/* プロジェクト詳細 */
.project-details {
  flex: 1; /* テキスト部分を伸縮可能にする */
  text-align: center; /* テキストを中央揃え */
  z-index: 2; /* 矢印より上に表示 */
}

/* プロジェクト画像 */
.project-image2 {
  max-width: 500px; /* 最大幅500px */
  height: 300px; /* アスペクト比を維持 */
  border-radius: 10px; /* 画像の角を丸く */
  z-index: 2; /* 矢印より上に表示 */
}

/* 自己紹介セクション */
.about-content {
  display: flex; /* 横並び */
  align-items: center; /* 縦方向で中央揃え */
  gap: 20px; /* 文章と画像の間のスペース */
  position: relative; /* ボタンの位置基準にする */
}

/* 文章部分 */
.about-text {
  font-size: 25px;
  flex: 1; /* 文章部分の幅を調整 */
  margin: 50px;
  width: 60%; /* 文章の幅を設定 */
  position: relative; /* ボタンの位置を相対的に配置 */
}

/* 画像部分 */
.about-image {
  flex-shrink: 0; /* 画像が縮まないように */
}

.about-img {
  margin-right: 100px;
  max-width: 500px; /* 画像の最大幅 */
  height: auto; /* アスペクト比を維持 */
  border-radius: 10px; /* 画像の角を丸く */
  margin-left: 50px;
  margin-top: 50px;
}

/* 詳しく見るボタン（自己紹介セクション） */
.about-btn {
  text-decoration: none;
  background-color: #6f4b3e; /* ボタンの背景色 */
  color: white; /* 通常時の文字色 */
  padding: 10px 20px; /* ボタンの内側余白 */
  border-radius: 5px; /* ボタンの角丸 */
  font-size: 20px;
  position: absolute;
  right: 0; /* 右側に配置 */
  transition: background-color 0.3s, color 0.3s;
}

/* ホバー時のスタイル */
.about-btn:hover {
  background-color: #956f29; /* ホバー時の背景色 */
  color: black; /* ホバー時の文字色 */
}

/* お問い合わせセクション */
#contact {
  position: relative;
}

#contact p {
  font-size: 25px; /* 説明文のフォントサイズ */
  margin-left: 4%;
  margin-bottom: 30px; /* 説明文の下に余白 */
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 垂直方向は通常通り */
  align-items: flex-start; /* 水平方向は左寄せ */
  width: 100%;
  margin-bottom: 50px;
}

.contact-link {
  display: inline-block; /* インライン要素にすることで、画像を中央に配置 */
  margin: 0 auto; /* 左右のマージンを自動設定して中央配置 */
}

.contact-link img {
  max-width: 100%; /* 画像が親要素を超えないように */
  height: auto; /* アスペクト比を保つ */
}

/* Bootstrapのボタンの境界線の色を無効にする */
button, .btn {
  border-color: transparent !important;
}


/* 全体の背景色を象牙色に設定 */
body {
  background-color: #f8f4e6; /* 象牙色 */
  font-family: "Kaisei Tokumin", serif;
  margin: 0; /* ページの余白を削除 */
   /* ページのパディングを削除 */
}
 
/* フッター */
footer {
  padding: 30px; /* 上下の余白を広げる */
  background-color: #f8f9fa; /* 背景色 */
}

footer .container {
  text-align: center; /* 文字を中央揃え */
  width: 100%; /* 幅を広げる */
}

footer p {
  margin: 0; /* 余計な余白を削除 */
  font-size: 15px; /* フォントサイズ調整 */
}

/* works.php のスタイル */
/* 作ったものページではマージンをリセット */
.works-page h2 {
  margin-top: 0; /* 作ったものページではmargin-topをリセット */
}

.works-section {
  padding: 0px 0 !important;
}

.works-items {
  display: flex;
  justify-content: center; /* アイテムを左寄せにして、均等に配置しすぎないようにする */
  gap: 100px;  /* アイテム間の間隔を狭く設定 */
  flex-wrap: wrap;
  margin-top: 50px;
}

.works-item {
  flex: 1 1 calc(50% - 10px);  /* アイテムの幅を少し調整 */
  max-width: 500px; /* 最大幅 */
  box-sizing: border-box;
  margin-top: 20px; /* 上部に少しスペースを追加 */
}

.works-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.works-link:hover {
  color: #956f29; /* ホバー時の文字色 */
  transform: scale(1.1);
}

.works-img {
  width: 100%;
  height: 300px;  /* 高さを統一して調整 */
  object-fit: cover;  /* 画像が枠内にフィットするように */
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.works-img:hover {
  transform: scale(1.05);
}

.works-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}


/* works詳細部分のスタイル */
.works-detail {
  margin-top: 400px;
}

.works-detail2 {
  margin-top: 200px;
}

/* Swiper全体のスタイル */
.swiper-container {
  width: 100%;
  max-width: 100%; /* 横幅の調整 */
  margin-top: 50px;
  margin-bottom: 50px;
  position: relative; /* スライダー内で絶対配置される要素を基準にする */
  overflow: visible; /* コンテンツがスライダーからはみ出すのを許可 */
}

/* スライドを横並びにする */
.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  width: auto; /* スライド幅を自動調整 */
  flex-shrink: 0; /* 縮まないようにする */
}

/* 画像のサイズ調整 */
.swiper-slide img {
  width: 480px;
  height: auto; /* 縦横比を維持 */
  object-fit: cover; /* 画像をいい感じに収める */
}

/* 詳細文のスタイル */
.works-summary {
  font-size: 20px;
}

/* about.php のスタイル */
/* 自己紹介ページではマージンをリセット */
.about-section {
  padding: 0px 0 !important;
}

.about-page h2 {
  margin-top: 0; /* 作ったものページではmargin-topをリセット */
}

.aboutpage-content {
  display: block;
}

.about-item {
  display: block;
  margin-bottom: 30px; /* 各項目間の余白 */
}

.about-item.with-image {
  display: flex;
  flex-direction: row; /* 横並びにする */
  align-items: center;
  gap: 20px; /* 画像と文章の間隔 */
}

.about-text {
  flex: 1; /* 文章部分が自由に広がる */
}

/* 段落部分のフォントサイズ */
.about-item p {
  font-size: 1.3rem; /* 段落の文字を少し小さく */
  margin: 0;
}

.about-image2 img {
  width: 500px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;

}

.about-item h3 {
  margin-top: 0;
  margin-bottom: 10px; /* 項目タイトルと内容の間にスペース */
  font: weight 50px;;
}

.about-item p {
  margin: 10px; /* 余計なマージンを排除 */
}

.about-item:not(.with-image) .about-text {
  width: 100%; /* 画像がない場合、文章が画面の右端まで表示される */
  margin-right: 0; /* 右側に余白を取らない */
}

/* 画像がある場合はそのサイズに合わせて折り返し */
.about-item.with-image .about-text {
  width: calc(100% - 170px); /* 画像分を引いて、文章の幅を調整 */
}

/* エスイメージのデザイン */
/* 画像を中央に配置（横並び） */
.es-image {
  display: flex;
  justify-content: center; /* 左右中央揃え */
  align-items: center; /* 縦方向の中央揃え */
  gap: 20px; /* 画像同士の間隔 */
  margin: 0 auto; /* コンテナ自体も中央に配置 */
}

/* 画像のスタイル */
.es-image img {
  max-width: 25%;
  height: auto;
}

/* コンタクトフォームのデザイン */
/* コンタクトセクション全体 */
.contact-section {
  background-color: #ddbb99; /* 背景色 */
  padding: 50px 0;
  text-align: center;
}

/* 上のコンタクト画像 */
.contact-image img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
}

/* テキストと画像を中央配置 */
.about-contact-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃え */
  justify-content: center;
}

/* メールアイコンのリンク */
.contact-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* メールアイコン画像 */
.contact-link img {
  width: 100%; /* 画像の幅を大きく */
  height: auto; /* 画像の高さを大きく */
}

/* ホバー時のエフェクト（少し大きくなる） */
.contact-link:hover img {
  transform: scale(1.1);
}

/* ページトップナビのデザイン*/
/* ページトップのナビ画像を右端に固定 */
.page-top-nav {
  position: fixed;
  right: 20px; /* 画面の右端から20px内側 */
  bottom: 20px; /* 画面の下から20px上 */
  z-index: 1000; /* 他のコンテンツより前面に表示 */
}

/* ナビ画像のサイズ */
.page-top-nav img {
  width: 60%;
  height: auto;
  transition: transform 0.3s ease;
}

/* ホバー時のエフェクト（少し大きくなる） */
.page-top-nav img:hover {
  transform: scale(1.1);
}

/* ヘッダーのデザイン */
/* ハンバーガーメニュー */
.hamburger-menu {
  display: block;
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

/* ハンバーガーメニューアイコン */
.hamburger-icon {
  display: block;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 25px;
}

.hamburger-icon span {
  background-color: #333;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  transition: transform 0.3s ease;
}

/* ハンバーガーメニューの表示 */
#menu-toggle {
  display: none; /* チェックボックスを非表示 */
}

/* メニューを閉じる画像アイコン */
.close-btn {
  width: 40px; /* アイコンのサイズ */
  height: 40px; /* アイコンのサイズ */
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
}

/* 画像のサイズ */
.close-btn .close-icon {
  width: 50%; /* ボタン内で画像がぴったり収まるように */
  height: 50%; /* ボタン内で画像がぴったり収まるように */
  object-fit: contain; /* 画像が歪まないように調整 */
}

/* ホバー時に少し大きくする */
.close-btn:hover {
  transform: scale(1.2);
}

/* メニューウィンドウ */
.hamburger-nav {
  display: none; /* 初期状態では非表示 */
  position: fixed;
  top: 0;
  right: 0;
  background-color: #ede4cd;
  height: 350px;
  width: 300px;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  padding-top: 20px;
  z-index: 1000;
}

#menu-toggle:checked + .hamburger-icon + .hamburger-nav {
  display: block; /* チェックされているとメニューが表示される */
}

/* リストアイテムのデザイン */
.hamburger-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

/* ハンバーガーメニューのリンク */
.hamburger-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-nav li {
  margin-top: 50px;
  margin-left: 50px;
  margin-bottom: 20px;
}

.hamburger-nav a {
  display: flex;
  align-items: center;
  text-decoration: none; /* デフォルトのリンクの下線を消す */
  color: #333; /* アイコンと文字の色 */
  font-size: 25px;
}

/* アイコンのサイズ */
.hamburger-nav .nav-icon {
  width: 30px; /* アイコンの幅 */
  height: 30px; /* アイコンの高さ */
  margin-right: 10px; /* アイコンと文字の間のスペース */
}

/* ホバー時のエフェクト */
.hamburger-nav a:hover {
  color: #956f29; /* ホバー時に文字の色が変わる */
  transform: scale(1.2); /* アイコンが少し大きくなる */
  transition: transform 0.3s ease;

}

/* フッターのデザイン
/* フッターリンクのデザイン */
.footer-links {
  display: flex;
  justify-content: center; /* 横並びに中央配置 */
  gap: 30px; /* リンク間のスペース */
  flex-wrap: wrap; /* 幅が狭くなったときに折り返し */
  margin-bottom: 20px;
}

/* アイコンと文字の並び */
.footer-links .nav-link {
  display: flex;
  align-items: center;
  text-decoration: none; /* デフォルトのリンクの下線を消す */
  color: #333; /* アイコンと文字の色 */
  font-size: 25px;
}

/* アイコンのサイズ */
.footer-links .nav-icon {
  width: 30px; /* アイコンの幅 */
  height: 30px; /* アイコンの高さ */
  margin-right: 30px; /* アイコンと文字の間のスペース */
}

/* ホバー時のエフェクト */
.footer-links .nav-link:hover {
  color: #956f29; /* ホバー時に文字の色が変わる */
}

.footer-links .nav-link:hover .nav-icon {
  transform: scale(1.5); /* アイコンが少し大きくなる */
  transition: transform 0.3s ease;
}


/* コンタクトフォームのスタイル */
.wpcf7-form {
  background-color: #ddbb99;
  border: 1px solid #6f4b3e;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  max-width: 700px;
  margin: 40px auto;
}

.wpcf7-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #6f4b3e;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 15px;
}

.wpcf7-form input[type="submit"] {
  background-color: #6f4b3e;
  color: #FFFFFF;
  font-family: 'Georgia', serif;
  font-size: 17px;
  padding: 14px 40px;
  border-radius: 30px;
  border: 2px solid #956f29;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #956f29;
}

/* お問い合わせセクション用 */
.contact-heading {
  margin-bottom: 30px;
}

.contact-title {
  font-size: 30px; 
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 0; /* 左マージンをリセット */
  text-align: center;
}
.contact-lead {
  font-size: 25px; 
  color: #555; 
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

/* --- レスポンシブ用のスタイル --- */
@media screen and (max-width: 768px) {
  body, html {
    overflow-x: hidden;  /* 横方向のオーバーフローを許可 */
  }

/* トップページ・ヘッダー・フッター */  
   /* h1のサイズを小さく */
   h1 {
    margin-left: 20px; /* 左のマージンを小さく */
  }
  
  /* 足跡画像を右にずらす */
  .footprint-img {
    top: 15%; /* 足跡画像を上に調整 */
    left: 80%; /* 水平方向で右に配置 */
    transform: translateX(-50%); /* 中央揃え補正 */
    width: 150px; /* 小さく調整 */
  }

  /* ナビゲーションリンクを縦並びに */
  .nav-link {
    font-size: 20px; /* 少し小さく */
    margin-left: 0;  /* 左マージンをなくす */
    margin-bottom: 10px; /* 下に少しスペース */
  }

  /* ナビゲーションアイコンを調整 */
  .nav-icon {
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 1.5rem; /* または 24px など、好みで */
    margin-top: 30px;
  }

  .works-line {
    width: 55%;                     /* 線の長さを短く */
    border-top: 2px solid #432f2f;    /* 線の太さを細く */
  }

  /* タイトルセクション */
  .title-section {
    flex-direction: column; /* 縦並びに変更 */
    text-align: center; /* 中央揃え */
    align-items: center; /* アイテムを中央揃え */
  }

    /* プロジェクトアイテムの並びを縦に変更 */
    .project-item {
      flex-direction: column; /* 横並びから縦並びに変更 */
      align-items: center; /* 水平方向で中央揃え */
      gap: 20px; /* アイテム間の間隔を調整 */
      margin-top: 50px; /* 上部の余白を調整 */
      margin-bottom: 50px; /* 下部の余白を調整 */
    }
  
    /* プロジェクト詳細の幅を調整 */
    .project-details {
      width: 80%; /* 画面幅に合わせて調整 */
    }
  
    /* プロジェクト名のフォントサイズを調整 */
    .project-title {
      font-size: 25px;
    }
  
    /* 説明文のフォントサイズを調整 */
    .project-description {
      font-size: 20px;
    }
  
    /* ボタンのフォントサイズを調整 */
    .project-details .btn {
      font-size: 18px;
      width: 100%; /* ボタンの幅を100%に変更 */
      text-align: center; /* ボタンのテキストを中央揃え */
    }
  
    .project-item2 {
      display: flex;
      flex-direction: column; /* 縦並びに */
      align-items: center;
      gap: 20px;
    }
  
    /* 子要素の順番を強制的に変更 */
    .project-item2 .project-details {
      order: 2;
    }
  
    .project-item2 .project-image2 {
      order: 1;
    }
    
  /* 自己紹介セクション */
  .about-content {
    flex-direction: column; /* 横並びから縦並びに変更 */
  }

  /* 文章部分 */
  .about-text p {
    font-size: 18px;
    line-height: 1.8;
  }

  /* 画像部分 */
  .about-img {
    max-width: 80%; /* 画像のサイズを調整 */
    margin-top: 20px;
  }

  /* ボタン */
  .about-btn {
    width: 80%; /* ボタンの幅を100%に */
    text-align: center; /* ボタンのテキスト中央揃え */
    margin-top: 20px; /* ボタンの間隔を空ける */
  }

  #contact p {
    font-size: 20px;
    line-height: 1.8;
    }

    #contact p {
      font-size: 20px;
      line-height: 1.8;
      }

   /* スマホ画面用フッター */
  .footer-links {
    gap: 15px; /* スマホ時のアイコン間のスペースを調整 */
  }
  .footer-links .nav-link {
    font-size: 18px; /* スマホ時のフォントサイズを小さく */
  }

    /* ナビゲーションアイコンのサイズを調整 */
    .footer-links .nav-icon {
      width: 30px;
      height: 30px;
      margin-right: 0;
    }

    .page-top-nav {
      right: 0;
    }

    .page-top-nav img {
      width: 40%;
      height: auto;
    }
/* トップページ・ヘッダー・フッター終わり */

/* aboutページ */
.about-item.with-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.about-text {
  text-align: left;
  /* padding: 0 20px; */
}

.about-image2 img {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.about-item:not(.with-image) .about-text {
  width: 100%; /* 画像がない場合、文章が画面の右端まで表示される */
  margin: 10px; 
}


.about-subtitle2 {
  font-size: 22px;
  margin-bottom: 15px;
  text-align: left; /* ← タイトルも左寄せに */
}

.about-text.full-width p {
  font-size: 16px;
  line-height: 1.7;
  text-align: left; /* ← 本文も左寄せ */
  margin: 0; /* 不要な余白が入っていないか確認 */
}

}

@media screen and (max-width: 480px) {
  /* h1のフォントサイズさらに小さく */
  h1 {
    font-size: 30px;
  }

  /* ナビゲーションリンクのフォントサイズを小さく */
  .nav-link {
    font-size: 18px;
  }

  /* プロフィール画像のサイズを調整 */
  .profileimg {
    max-width: 90%;
    margin-top: 20px;  /* 上の空白を減らす */
    margin-left: 0;
  }

  /* ナビゲーションアイコンのサイズを調整 */
  .nav-icon {
    width: 30px;
    height: 30px;
  }

  /* タイトルセクションの画像部分を調整 */
  .footprint-img {
    width: 180px; /* さらに小さく調整 */
  }
}
