/* css/style.css */

/* 全体の基本スタイル */
body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー分の余白（ヘッダーがfixedなので） */
main {
  padding-top: 90px; /* ヘッダー70px + 余裕20px */
}

/* スライドショー */
.hero-slider {
  height: 70vh;
  min-height: 500px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slider-container {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 1.5s ease-in-out;
}

/* SNSセクション */
.sns-section {
  padding: 80px 0;
  background: #fff;
  text-align: center;
}

.sns-section h2 {
  margin-bottom: 2.5rem;
  font-size: 2.2rem;
  color: #333;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.sns-links a {
  display: block;
  width: 90px;
  height: 90px;
  transition: transform 0.25s ease;
}

.sns-links a:hover {
  transform: translateY(-10px);
}

.sns-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* オーナー挨拶セクション */
.owner-greeting-section {
  padding: 80px 0;
  background: #ffdada; /* 少し薄い背景で差別化 */
}

.greeting-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
}

.greeting-text {
  flex: 1;
  min-width: 300px;
}

.greeting-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.greeting-text p,
.greeting-content {          /* id="greeting-content" にも適用 */
  font-size: 1.1rem;
  line-height: 1.9;
  color: #555;
}

.greeting-image {
  flex: 0 0 320px;           /* 画像を右側に固定幅で配置 */
  text-align: center;
}

.greeting-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  object-fit: cover;
}

/* レスポンシブ対応（768px以下で縦並び） */
@media (max-width: 768px) {
  .greeting-card {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
  
  .greeting-image {
    flex: 0 0 auto;
  }
  
  .greeting-image img {
    max-width: 280px;
  }
  
  .sns-links {
    gap: 2rem;
  }
  
  .sns-links a {
    width: 70px;
    height: 70px;
  }
}

/* 追加の微調整（必要に応じて） */
#greeting-content {
  margin: 0;
}
/* フッター用調整（コンテンツが短い場合でも下部にスペース） */
main {
  min-height: calc(100vh - 90px - 120px);  /* ヘッダー + フッターのおおよその高さ分 */
}
/* お問い合わせページ */
.contact-section {
  padding: 100px 0 120px;
  background: #fff;
  text-align: center;
}

.contact-section h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.contact-section .notice {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 3rem;
}

form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 1.8rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.required {
  color: #e74c3c;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

textarea {
  resize: vertical;
  min-height: 140px;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #3498db;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
  background: #2980b9;
}

.submit-btn:active {
  transform: translateY(2px);
}

/* レスポンシブ */
@media (max-width: 768px) {
  .contact-section {
    padding: 80px 0 100px;
  }
  
  .contact-section h1 {
    font-size: 2.4rem;
  }
}
.success-message,
.error-message {
  padding: 20px;
  margin: 2rem 0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.1rem;
}

.success-message {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}
/* ニュースページ */
.news-section {
  padding: 100px 0 120px;
  background: #f9f9f9;
}

.news-section h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #333;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 横3列 */
  gap: 2rem;
}

.news-card {
  position: relative;
  height: 320px;                /* 高さ固定で統一感 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: white;
  background-size: cover;
  background-position: center;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.news-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75));
  z-index: 1;
}

.news-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.8rem;
  z-index: 2;
}

.news-card-title {
  font-size: 1.4rem;
  margin: 0 0 0.6rem;
  line-height: 1.4;
}

.news-card-date {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr); /* タブレット: 2列 */
  }
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr; /* スマホ: 縦1列 */
  }
  
  .news-card {
    height: 280px;
  }
}