/* 基本設定 */

html {
  scroll-behavior: smooth; /* これでふわっと移動します */
}

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

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
  text-align: center; /* 全体を中央寄せ */
}

/* --- セクションの見出し（共通設定） --- */
h2 {
  margin: 100px auto 40px;
  font-size: 26px;
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.15em;
  color: #333;
  display: block;
}

h2::after { 
content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #333;
  margin: 15px auto 0;
}

/* ヘッダー・ナビゲーション */
header {
  background-color: #fff;
}

.company-name-area {
  padding: 40px 0; /* 上下の余白 */
  text-align: center;
  background-color: #fcfcfc;
}

.company-name-area h1 {
  font-size: 24px; /* スマホで見やすいサイズ */
  font-weight: bold;
  letter-spacing: 0.2em;
  color: #333;
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

/* ② メイン画像エリアの設定 */
.main-visual-container {
  width: 100%;
  overflow: hidden;
  line-height: 0; /* 画像の下の隙間を消す */
  margin-bottom: 40px;
}

.main-visual-container img {
  width: 100%;       /* 横幅いっぱい */
  max-width: 2560px; /* Canvaのサイズに合わせる */
  height: auto;      /* 縦横比を維持 */
  display: block;
  margin: 0 auto;
}

nav {
  border-bottom: 1px solid #eee;
  background-color: #fff;
  margin-bottom: 100px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px; 
  padding: 25px 10px; 
}

nav a {/* --- 見出し（共通） --- */
  text-decoration: none;
  color: #333;
  font-size: 15px; 
  font-weight: bold;
  letter-spacing: 0.1em; 
  transition: color 0.3s;
}

/* マウスを乗せた時に色を変える（遊び心） */
nav a:hover {
  color: #999;
}


/* --- 事業内容（追加部分） --- */
.service-container {
  display: flex;
  flex-direction: column; /* スマホでは縦並び */
  gap: 30px;
  width: 90%;
  max-width: 800px; 
  margin: 0 auto 120px; /* ★ここを 150px や 200px にするとさらに広がります！ */
}

.service-box {
  background-color: #fff;
  border: 1px solid #eee; 
  padding: 50px 10px;
  text-align: center; 
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  line-height: 2;
}

.service-box h3 {
  margin: 0 0 20px;
  font-size: 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  border-bottom: 2px solid #333; 
  display: inline-block;
  padding-bottom: 8px;
}

.service-box p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.8;
}

.indent {
  display: inline-block;
  padding-left: 1em;
}

/* PC向けの調整（画面幅が768px以上の場合） */
@media (min-width: 768px) {
  .service-container {
    display: flex;       /* 念のためここにも追加 */
    flex-direction: row; /* PCでは横並び */
    gap: 40px;
  }
  .service-box {
      flex: 1;
  }
}

/* 会社概要（テーブル） */
table {
  width: 90%;
  max-width: 600px;
  margin: 0 auto 40px;
  border-collapse: collapse;
  text-align: left; 
  border: 2px solid #333;
  overflow: hidden;
}

th, td {
  padding: 15px 10px;
  border-bottom: 1px solid #eee;
  border-right: 1px solid #eee;
  display: block; /* スマホで縦に並べる */
  width: 100%;
}

th {
  background-color: #f9f9f9;
  font-weight: bold;
  font-size: 14px;
}

td {
  font-size: 15px;
}

/* マップ */
.map-container {
  width: 90%;
  margin: 0 auto;
}

.map-container iframe {
  width: 100% !important;
  height: 300px; /* スマホで見やすい高さ */
  border-radius: 8px;
}

/* ボタン */
.submit-btn {
  background-color: #333; /* ロゴに合わせた黒系 */
  color: #fff;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  opacity: 0.8;
}

/* PC向けの調整（画面幅が768px以上の場合） */
@media (min-width: 768px) {
  th, td {
    display: table-cell; /* 横並びに戻す */
    width: auto;
  }
  
  th {
    width: 30%;
  }

  .map-container iframe {
    height: 450px;
  }
}

/* --- お問い合わせフォームのスタイル --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto 100px;
  padding: 0 5%;
}

.form-group {
  margin-bottom: 25px;
}

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

.form-group label span {
  background: #ff4d4d;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 10px;
  vertical-align: middle;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px; /* スマホでズームされないサイズ */
  box-sizing: border-box; /* 枠線を含めた幅にする */
}

.form-submit {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background-color: #333;
  color: #fff;
  padding: 15px 60px;
  border: none;
  border-radius: 30px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #666;
}
