/* 基本設定 */
h1, h2, h3, .logo {
  font-family: 'Lora', serif;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  background-color: #fdfdfd;
  color: #343a40;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: #48a9a6;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ccc;
  margin: 40px 0;
}

/* ヘッダー */
.main-header {
  background-color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.main-header nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}

.main-header nav ul li {
  margin-left: 10px;
}

.main-header nav a {
  color: #555;
  font-weight: 700;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.main-header nav a:hover {
  color: #48a9a6;
}

/* ボタン */
.btn {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #2c3e50;
  color: #fff;
  border: 2px solid #2c3e50;
}

.btn-primary:hover {
  background-color: #1a252f;
  border-color: #1a252f;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: #2c3e50;
  border: 2px solid #2c3e50;
}

.btn-secondary:hover {
  background-color: #2c3e50;
  color: #fff;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(rgba(20, 30, 40, 0.5), rgba(20, 30, 40, 0.5)), url('images/top.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-blend-mode: multiply;
  filter: grayscale(50%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* セクション共通 */
.section-padding {
  padding: 80px 0;
}

.section-padding h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
}

.bg-light {
  background-color: #f8f8f8;
}

/* ミッションステートメント */
.mission-statement-text {
  font-size: 1.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: #343a40;
  font-weight: normal;
}

/* 組合概要 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.info-item {
  background-color: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.info-item h3 {
  font-size: 1.2rem;
  color: #111;
  margin-top: 0;
}

/* 事業内容 */
.business-content {
  text-align: center;
}

.business-content h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
}

.business-content p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
}

.business-image {
  margin-top: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* スライドショー */
#gallery {
  background-color: #fff;
}

.swiper {
  width: 100%;
  height: 500px;
  margin-top: 30px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 組合員募集 */
.recruit-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.recruit-content h3 {
  font-size: 1.8rem;
  margin-top: 40px;
  margin-bottom: 15px;
}

.recruit-content p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* お問い合わせ */
#contact {
  background-color: #f8f8f8;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #48a9a6;
  box-shadow: 0 0 0 3px rgba(72, 169, 166, 0.25);
}

.contact-form button {
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  background-color: #2c3e50;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a252f;
}

/* フッター */
.main-footer {
  background-color: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  margin-top: 60px;
}

/* 組合員紹介ページ用 */
.page-hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/member.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 80px 0;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.member-card {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
}

.member-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.member-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.member-card p {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.7;
  flex-grow: 1;
}

/* 詳細ページ用 */
.member-detail-header {
  text-align: center;
  margin-bottom: 60px;
}
.member-detail-header img {
  max-width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.member-detail-header h1 {
  font-size: 2.8rem;
}
.member-detail-content h2 {
  text-align: left;
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 10px;
}
.member-detail-content p, .member-detail-content ul {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.btn-back {
  display: inline-block;
  margin-top: 40px;
  color: #2c3e50;
  border: 2px solid #2c3e50;
  padding: 10px 25px;
  border-radius: 5px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.btn-back:hover {
  background-color: #2c3e50;
  color: #fff;
}

/* メンバーカードのリンク化対応 */
a.member-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 12px; /* For hover shadow */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
a.member-card-link:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
.member-card {
  cursor: default; /* Remove pointer cursor from card itself */
}
.member-card:hover {
  transform: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15); /* Revert hover to default */
}

/* 詳細ページの追加画像用 */
.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}
.detail-image-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
@media (max-width: 768px) {
  .detail-image-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .detail-image-grid img {
    height: 250px;
  }
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
  .main-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .main-header nav.is-active {
    display: block;
  }

  .main-header nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-header nav ul li {
    margin: 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .main-header nav a {
    display: block;
    padding: 15px;
    font-size: 1rem;
  }

  .hamburger {
    display: block;
  }
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
}

#confirmation-screen {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
}

#confirmation-screen h3 {
  margin-top: 0;
}

#confirmation-screen ul {
  list-style: none;
  padding: 0;
}

#confirmation-screen li {
  margin-bottom: 10px;
}

.required-note {
  color: red;
  text-align: center;
  font-weight: bold;
}

#ninokura-card-img {
  object-position: center 80%;
}

#lamp-card-img {
  object-position: center bottom;
}

#ninokura-card-img {
  object-position: center 80%;
}
