/* ベース設定 */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Noto Serif JP', serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

h1, h3 {
  font-family: 'Inter', sans-serif;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-left: 5px solid #FFD700;
  padding-left: 10px;
}

/* レイアウト */
main, section:not(.hero) {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ヒーローセクション */
.hero {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-text {
  position: relative;
  color: white;
  z-index: 1;
  animation: fadeIn 2s ease-in-out;
}

.hero-text h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: 4.8rem;
  margin: 0;
}

.hero-text p {
  font-size: 2.4rem;
}

@media (max-width: 768px) {
  .hero {
    height: 70vh; /* モバイルは高さを70%に抑える */
  }
  
  .hero-text h1 {
    font-size: 2.2rem; /* モバイルで少し小さめに調整 */
  }

  .hero-text p {
    font-size: 1.2rem;
  }
}

/* アニメーション */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 企業理念 強調 */
.philosophy p {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.highlight-cloud { color: #55c1ff; font-weight: bold; }
.highlight-sea { color: #00b894; font-weight: bold; }

/* サービスカード */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background: #fafafa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 220px;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: #fffbe7;
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  display: block;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .card-img {
    height: 120px;
  }
}

/* ロゴスライダー */
.logo-slider {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
}

.logo-card {
  flex: 0 0 auto;
  width: 160px;
  text-align: center;
}

.logo-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* お問い合わせフォーム */

.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  padding: 20px;
  margin:0 auto; /*追加*/
}

/* PC表示時だけ横幅を大きくする */
@media (min-width: 768px) {
  .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ← h2とフォームの左端を揃える */
  }
  .contact form {
    /* margin-left: auto;
    margin-right: 0; */
    margin: 0; /*追加*/
    max-width: none;     /* ← 幅の上限を解除 */
    width: 100%;         /* ← 親要素に対していっぱいに広げる */
  }
}

input, textarea {
  margin-bottom: 1rem;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  background-color: #FFD700;
  color: #333;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: #e0b800;
}

/* フッター */
footer {
  text-align: center;
  padding: 20px;
  background: #f5f5f5;
  font-size: 0.9rem;
  color: #777;
}

/* カード開閉 */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #FFD700;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}

.modal-close:hover {
  background: #ffb700;
}