/* 全体のリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  color: #333;
  background-color: #fff;
}

/* ヘッダー */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

/* ロゴ */
.logo img {
  height: 50px; /* ロゴの高さを調整 */
  width: auto;
}

/* ナビゲーション */
nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #007bff;
}

/* HERO セクション */
.hero {
  height: 100vh;
  background: url("images/toppage-bg/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* 背景の暗いオーバーレイ */
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
}

.hero-subtitle {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* お問い合わせボタン */
.hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: #ffd700;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.hero-button:hover {
  background: #e6c200;
}

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

.service-title {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #000;
}

.service-subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

/* 左右分割レイアウト */
.service-content {
  display: flex;
  align-items: stretch;
  margin-top: 50px;
}

/* 左側（テキストエリア） */
.service-text {
  flex: 1;
  padding: 50px;
  text-align: left;
  position: relative;
}

/* 黄色背景（WEBデザイン） */
.service-yellow {
  background: #ffd700;
}

/* 緑背景（グラフィックデザイン） */
.service-green {
  background: #006633;
  color: white;
}

.background-text {
  font-size: 60px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.3);
  position: absolute;
  top: 20px;
  left: 50px;
  z-index: 0;
}

.service-heading {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-text p {
  font-size: 16px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

/* 右側（画像エリア） */
.service-image {
  flex: 1;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PROFILE セクション */
.profile-section {
  background-color: #f8f5eb; /* 背景色をオフホワイトに */
  padding: 100px 20px;
  text-align: center;
}

.profile-title {
  font-size: 36px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #000;
}

.profile-subtitle {
  font-size: 18px;
  color: #666;
  margin-top: 10px;
}

/* テーブルのスタイル */
.profile-content {
  max-width: 900px;
  margin: 40px auto;
}

.profile-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.profile-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.profile-table tr td:first-child {
  font-weight: bold;
  width: 25%;
  color: #222;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .profile-table td {
    display: block;
    width: 100%;
    padding: 10px;
  }

  .profile-table tr td:first-child {
    font-weight: bold;
    background-color: #eae5d8;
    padding: 10px;
  }
}

/* CONTACT セクション */
.contact-section {
  position: relative;
  height: 60vh;
  background: url("images/contact/contact-bg.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.contact-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 50px;
  border-radius: 10px;
}

.contact-title {
  font-size: 36px;
  font-weight: bold;
}

.contact-subtitle {
  font-size: 20px;
  margin-top: 10px;
}

.contact-text {
  font-size: 16px;
  margin-top: 10px;
  opacity: 0.8;
}

/* お問い合わせボタン */
.contact-button {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  color: #000;
  background: #ffd700;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

.contact-button:hover {
  background: #e6c200;
}

/* フッター */
.footer {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  font-size: 14px;
  color: #666;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .service-content {
    flex-direction: column;
  }

  .background-text {
    font-size: 40px;
    left: 20px;
  }

  .service-text {
    padding: 30px;
  }

  .service-image img {
    height: auto;
  }
}

/* ABOUT セクション（背景画像とオーバーレイ追加） */
.about-section {
  position: relative;
  background: url("images/about-images/about-bg.jpg") center/cover no-repeat;
  padding: 100px 20px;
  color: #333;
}

/* 背景を白で薄く覆うオーバーレイ */
.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7); /* 白のオーバーレイ（70%透明） */
  z-index: 1;
}

/* コンテンツ配置 */
.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.about-text {
  flex: 1;
  max-width: 50%;
}

.about-title {
  font-size: 36px;
  font-weight: bold;
  color: #000;
}

.about-subtitle {
  font-size: 20px;
  margin-top: 10px;
  color: #666;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  margin-top: 10px;
}

/* 右側のイラスト画像 */
.about-image {
  flex: 1;
  text-align: right;
}

.about-image img {
  width: 100%;
  max-width: 500px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .about-image {
    text-align: center;
    margin-top: 30px;
  }
}

/* WEBデザインの詳細セクション */
.web-design-details {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 50px 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.detail-item {
  flex: 1;
  padding: 30px;
  position: relative;
}

/* アイコン */
.detail-icon img {
  width: 60px;
  height: auto;
  margin-bottom: 15px;
}

/* タイトル */
.detail-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 説明テキスト */
.detail-text {
  font-size: 14px;
  line-height: 1.6;
}

/* 四隅の鉤括弧デザイン */
.corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid black;
}

/* 左上 */
.corner.top-left {
  top: -10px;
  left: -10px;
  border-width: 2px 0 0 2px;
}

/* 右上 */
.corner.top-right {
  top: -10px;
  right: -10px;
  border-width: 2px 2px 0 0;
}

/* 左下 */
.corner.bottom-left {
  bottom: -10px;
  left: -10px;
  border-width: 0 0 2px 2px;
}

/* 右下 */
.corner.bottom-right {
  bottom: -10px;
  right: -10px;
  border-width: 0 2px 2px 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .web-design-details {
    flex-direction: column;
    gap: 20px;
  }
}

/* お問い合わせフォームセクション */
.contact-form-section {
  max-width: 800px;
  margin: 100px auto;
  padding: 20px;
}

.contact-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.contact-subtitle {
  text-align: center;
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

/* フォームのスタイル */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form label {
  font-weight: bold;
  margin-top: 10px;
}

.contact-form .required {
  color: red;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
}

/* チェックボックスのグループ */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  font-size: 14px;
}

/* 送信ボタン */
.submit-button {
  background-color: #007bff;
  color: white;
  font-size: 16px;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 20px;
}

.submit-button:hover {
  background-color: #0056b3;
}

/* CONTACT ヘッダーセクション */
.contact-header {
  background: url("images/contact-page/contact-bg.jpg") center/cover no-repeat;
  height: 200px;
  margin: 95px auto 50px; /* 上部のマージンを増やして重なりを防ぐ */
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-header-title {
  font-size: 36px;
  font-weight: bold;
  color: white;
}

/* お問い合わせ完了メッセージ */
.thank-you-message {
  text-align: center;
  padding: 50px;
  background-color: #f9f9f9;
  border-radius: 10px;
  max-width: 600px;
  margin: 100px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.thank-you-message h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.thank-you-message p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* トップページへ戻るボタン */
.back-to-home-button {
  display: inline-block;
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  background: #007bff;
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
}

.back-to-home-button:hover {
  background: #0056b3;
}
/* 送信ボタンを中央揃え */
.submit-button {
  display: block; /* 中央揃えにする */
  margin: 20px auto; /* 上下の余白を追加し、中央配置 */
  padding: 12px 30px;
  font-size: 20px;
  font-weight: bold;
  color: black;
  background: #ffd700; /* 明るい黄色 */
  border: none;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: auto; /* 必要なサイズに調整 */
  min-width: 180px; /* 最小幅を設定 */
}

/* ホバー時のスタイル */
.submit-button:hover {
  background: #ffcc00; /* ホバー時に少し濃い黄色 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* トップに戻るボタン */
.back-to-home-button {
  display: block; /* 中央揃えにする */
  margin: 20px auto; /* 上下の余白を追加し、中央配置 */
  padding: 12px 30px;
  font-size: 20px;
  font-weight: bold;
  color: black;
  background: #ffd700; /* 明るい黄色 */
  border: none;
  border-radius: 50px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s ease-in-out;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  width: auto; /* 必要なサイズに調整 */
  min-width: 100px; /* 最小幅を設定 */
  text-decoration: none;
}

/* ホバー時のスタイル */
.back-to-home-button:hover {
  background: #ffcc00; /* ホバー時に少し濃い黄色 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* 既存のダークグレー背景 */
.service-dark {
  background: #333;
  color: white;
}

/* 新しく追加するネイビーブルー背景 */
.service-blue {
  background: #1e3a8a; /* ネイビーブルー */
  color: white;
}
