/* 基本設定 */
* {
  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.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.site-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-title {
  font-weight: bold;
  font-size: 1.2rem;
  color: #1e5027; /* スカウトグリーン */
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ヒーローセクション */
.hero {
  background: linear-gradient(rgba(30, 80, 39, 0.85), rgba(30, 80, 39, 0.85)), url('images/temple.jpg') center/cover;
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

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

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.9;
}

.btn-header {
  background-color: #e67e22;
  color: #fff !important;
}

.btn-primary {
  background-color: #e67e22;
  color: #fff;
}

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

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

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #1e5027;
}

.section-lead {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

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

.bg-primary {
  background-color: #1e5027;
}

.text-white {
  color: #fff !important;
}

/* 団の紹介・アクセントイラスト */
.accent-illustration {
  text-align: center;
  margin-bottom: 30px;
}

.accent-illustration img {
  max-width: 650px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  opacity: 0.95;
}

/* 団の概要・歴史 */
.data-box {
  margin-bottom: 40px;
  background: #f4f6f4;
  padding: 25px;
  border-radius: 8px;
}

.data-box h3 {
  color: #1e5027;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.data-box ul {
  list-style: none;
  padding: 0;
  line-height: 1.8;
}

.sub-title {
  color: #1e5027;
  margin-bottom: 20px;
  text-align: center;
}

/* 歴史セクション内の写真 */
.history-image-box {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #eee;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.history-image-box img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  margin-bottom: 10px;
}

.history-image-box .caption {
  font-size: 0.9rem;
  color: #555;
  font-weight: 500;
}

.history-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border: 1px solid #eee;
  line-height: 1.8;
}

.history-content p {
  margin-bottom: 15px;
}

.history-content p:last-child {
  margin-bottom: 0;
}

/* カードレイアウト（部門） */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.dept-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  position: relative;
}

.dept-card small {
  color: #666;
}

.badge {
  display: inline-block;
  background: #1e5027;
  color: #fff;
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* ギャラリー */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.gallery-item .caption {
  display: block;
  padding: 10px;
  font-size: 0.85rem;
  color: #555;
  font-weight: 500;
}

/* SNSエリア */
.sns-box {
  text-align: center;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px dashed #ddd;
}

.sns-box p {
  margin-bottom: 15px;
  font-weight: bold;
  color: #555;
}

.sns-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-sns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}

.btn-sns:hover {
  opacity: 0.85;
}

.btn-facebook {
  background-color: #1877f2;
}

.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* アクセス・マップ */
.access-box {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #1e5027;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.access-info {
  margin-bottom: 20px;
}

.access-info h3 {
  color: #1e5027;
  margin-bottom: 15px;
}

.access-info p {
  margin-bottom: 10px;
}

.map-wrapper {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;
}

/* 関連リンク集スタイル */
.link-list {
  max-width: 700px;
  margin: 0 auto;
  list-style: none;
  padding: 0;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.03);
  overflow: hidden;
}

.link-list li {
  border-bottom: 1px solid #eee;
}

.link-list li:last-child {
  border-bottom: none;
}

.link-list a {
  display: block;
  padding: 16px 20px;
  color: #1e5027;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.link-list a:hover {
  background-color: #f4f6f4;
  color: #e67e22;
}

/* メール問い合わせエリア */
.contact-card {
  max-width: 640px;
  margin: 30px auto 0;
  background: #ffffff;
  color: #333333;
  padding: 35px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.contact-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333333;
  font-weight: 500;
  margin-bottom: 15px;
}

.welcome-badge {
  display: inline-block;
  background-color: #fff3e0;
  color: #d35400;
  font-weight: bold;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.card-divider {
  border: 0;
  border-top: 1px solid #eeeeee;
  margin: 20px 0;
}

.contact-card h3 {
  color: #1e5027;
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-desc {
  margin-bottom: 15px;
  color: #666666;
  font-size: 0.95rem;
}

.email-link {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: bold;
  color: #1e5027;
  text-decoration: underline;
  margin-bottom: 25px;
  word-break: break-all;
}

.email-link:hover {
  color: #e67e22;
}

.contact-tips {
  background: #f4f6f4;
  padding: 18px;
  border-radius: 8px;
  text-align: left;
  font-size: 0.9rem;
}

.contact-tips p {
  margin-bottom: 8px;
  color: #1e5027;
}

.contact-tips ul {
  padding-left: 20px;
  color: #444444;
  line-height: 1.6;
}

/* フッター */
.site-footer {
  background: #111;
  color: #888;
  text-align: center;
  padding: 30px 0 20px;
  font-size: 0.85rem;
}

.footer-notice {
  font-size: 0.8rem;
  color: #aaa;
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.6;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.footer-notice-title {
  font-weight: bold;
  color: #ccc;
  margin-bottom: 5px;
}

/* レスポンシブ (スマホ対応) */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 15px;
  }
  .site-nav ul {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero-buttons {
    flex-direction: column;
  }
}