@charset "utf-8";
/*
Theme Name: KODAIRA-CITY GOLF ASSOCIATION
Description: 小平市ゴルフ協会オリジナルテーマ
Version: 1.0
Author: Design-I
*/

/* ==========================================================================
   小平市ゴルフ協会 共通スタイルシート
   ========================================================================== */

/* 基本設定 */
body {
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
  background-color: #f4f7f4;
}

/* ==========================================================================
   ヘッダー（白背景でロゴとタイトルのみ）
   ========================================================================== */
.header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 4px solid #2e7d32;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 15px;
}

.header-text-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-logo {
  padding-left: 10px;
  width: 60px;
  height: 60px;
}

.header-site-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
  color: #2e7d32;
  line-height: 1.1;
  font-family: "Noto Serif JP", serif;
}

.header-site-subtitle {
  font-size: 0.85rem;
  color: #5677ba;
  letter-spacing: 1.5px;
  margin-top: 5px;
}

/* ==========================================================================
   トップ画像（ヘッダーとメインコンテンツの間）
   ========================================================================== */
.top-image {
  width: 100%;
  height: 350px;
  background-image: url("../img/1W5Z5593.jpg");
  background-size: cover;
  animation: panImage 35s linear infinite alternate;
}

@keyframes panImage {
  0% {
    background-position: center bottom;
  }
  100% {
    background-position: center top;
  }
}

.top-image-slider {
  position: relative;
  width: 100%;
  height: 350px;
  background-color: #000; /* 画像読み込み前のチラつき防止 */
  overflow: hidden; /* ズームではみ出た部分を隠す */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0; /* 初期状態は透明 */
  /* 1枚6秒 × 4枚 = 24秒で1周するアニメーション */
  animation: fadeZoom 24s infinite;
}

/* 各画像へのパス指定（ファイル名を指定） */
.slide1 {
  background-image: url("img/1W5Z2681.jpg");
}
.slide2 {
  background-image: url("img/1W5Z5593.jpg");
}
.slide3 {
  background-image: url("img/1W5Z5832.jpg");
}
.slide4 {
  background-image: url("img/IMG_0642.jpg");
}

/* アニメーションの開始タイミングをずらす（6秒ずつ） */
.slide1 {
  animation-delay: 0s;
}
.slide2 {
  animation-delay: 6s;
}
.slide3 {
  animation-delay: 12s;
}
.slide4 {
  animation-delay: 18s;
}

/* フェードイン・アウトと、ゆっくりズームする動きの定義 */
@keyframes fadeZoom {
  0% {
    opacity: 0;
    transform: scale(1); /* 等倍 */
  }
  8% {
    opacity: 1; /* 約2秒かけてフェードイン */
  }
  25% {
    opacity: 1; /* そのまま表示を維持（6秒時点） */
  }
  33% {
    opacity: 0; /* 次の画像に切り替わるためにフェードアウト（約8秒時点） */
    transform: scale(1.08); /* ゆっくり8%ズームする */
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

/* ==========================================================================
   全体のレイアウト（Flexboxで横並び）
   ========================================================================== */
.layout-wrapper {
  max-width: 1200px;
  margin: 30px auto;
  display: flex;
  gap: 20px;
  padding: 0 15px;
}

/* サイドバー（左側） */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  align-self: flex-start;
}

.side-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav li {
  margin-bottom: 5px;
}

.side-nav a {
  display: block;
  padding: 12px 15px;
  color: #333;
  text-decoration: none;
  font-weight: bold;
  background: #f9f9f9;
  border-left: 5px solid #ccc;
  border-radius: 4px;
  transition: all 0.2s;
}

.side-nav a:hover {
  background: #e8f5e9;
  border-left-color: #43a047;
  color: #2e7d32;
}

.side-nav a.current {
  background: #2e7d32;
  border-left-color: #1b5e20;
  color: #fff;
}

/* メインコンテンツ（右側） */
.main-content {
  flex-grow: 1;
  background: #fff;
  padding: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* ==========================================================================
   共通パーツ（見出し・パンくず・ボタン等）
   ========================================================================== */
nav.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 20px;
  color: #666;
}

nav.breadcrumb a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: bold;
}

h1 {
  color: #2e7d32;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.8rem;
}

section {
  margin-bottom: 35px;
}

h2 {
  border-bottom: 2px solid #2e7d32;
  color: #2e7d32;
  padding-bottom: 5px;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* サブページ用のh2装飾 */
.page-h2 {
  border-left: 5px solid #2e7d32;
  border-bottom: none;
  background: #e8f5e9;
  color: #1b5e20;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
}

.update-text {
  font-size: 0.85rem;
  color: #888;
  text-align: right;
  margin-top: 0;
}

.intro {
  background: #e8f5e9;
  padding: 20px;
  border-left: 5px solid #2e7d32;
  font-weight: bold;
  margin: 0 0 25px 0;
  border-radius: 0 4px 4px 0;
}

ul.activity-list {
  list-style-type: none;
  padding-left: 5px;
}

ul.activity-list li {
  margin-bottom: 8px;
}

ul.activity-list li::before {
  content: "⛳";
  margin-right: 10px;
}

.info-box {
  border: 1px solid #ddd;
  padding: 20px;
  background: #fafafa;
  border-radius: 8px;
}

/* 中央揃え用ラッパー（旧 btn-container を統合） */
.btn-center {
  text-align: center;
  margin: 20px 0 10px 0;
}

.btn-link {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-link:hover {
  background: #1b5e20;
}

.contact {
  background: #fff3e0;
  padding: 20px;
  border: 1px dashed #ef6c00;
  border-radius: 8px;
  margin-top: 30px;
}

.contact h3 {
  margin-top: 0;
  color: #e65100;
}

/* ==========================================================================
   共通：お知らせ・カテゴリ用バッジ
   ========================================================================== */
/* ベースの形と、指定がない場合（デフォルト）の色 */
.news-badge {
  display: inline-block;
  background: #666666; /* デフォルトはグレーなど無難な色に */
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 「お知らせ(news または info)」ならオレンジ */
.news-badge.news,
.news-badge.info {
  background: #ef6c00;
}

/* 「大会情報(event)」なら緑（協会カラー） */
.news-badge.event {
  background: #2e7d32;
}

/* 「大会結果(result)」なら青 */
.news-badge.result {
  background: #1565c0;
}

/* もし「重要(important)」などのカテゴリを作った場合は赤、といった追加も簡単です */
.news-badge.important {
  background: #d32f2f;
}

/* ==========================================================================
   ページネーション（一覧ページの下部）
   ========================================================================== */
.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.pagination .page-numbers {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}
.pagination .page-numbers:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
}
.pagination .current {
  background: #2e7d32;
  color: #fff;
  border-color: #1b5e20;
}

/* ==========================================================================
   トップページ：新着お知らせリスト（カード型レイアウト）
   ========================================================================== */
.top-news-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  border-top: 1px solid #ddd;
}

.top-news-item {
  padding: 15px 0;
  border-bottom: 1px dashed #ddd;
  display: block;
}

.top-news-header {
  display: flex;
  align-items: center;
  gap: 15px; /* バッジとの隙間を自動調整 */
  margin-bottom: 8px;
}

.news-text {
  margin: 0 0 10px 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.news-photos img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
}

/* ==========================================================================
   お知らせ一覧ページ用 (news.html - 1行リスト型)
   ========================================================================== */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  gap: 15px; /* ここで日付・バッジ・タイトルの隙間を管理 */
  transition: background-color 0.2s;
}

.news-item:hover {
  background-color: #fafafa;
}

/* news.html専用の日付幅固定 */
.news-item .news-date {
  width: 90px;
  color: #666;
}

.news-title {
  flex-grow: 1;
  margin: 0;
  font-size: 1.1rem;
}

.news-title a {
  color: #333;
  text-decoration: none;
  font-weight: bold;
  display: block;
}

.news-title a:hover {
  color: #2e7d32;
  text-decoration: underline;
}

/* ==========================================================================
   大会日程用 (tournament.html)
   ========================================================================== */
.tournament-card {
  border: 1px solid #ddd;
  border-top: 5px solid #2e7d32;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.tournament-card h2 {
  border-bottom: 1px dashed #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: #1b5e20;
  font-size: 1.3em;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.info-table th {
  width: 80px;
  text-align: left;
  padding: 6px 0;
  color: #666;
  font-weight: normal;
  vertical-align: top;
}

.info-table td {
  padding: 6px 0;
  font-weight: bold;
}

.btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.btn {
  display: inline-block;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  transition: 0.2s;
}

.btn-outline {
  border: 1px solid #2e7d32;
  color: #2e7d32;
  background: #fff;
}
.btn-outline:hover {
  background: #e8f5e9;
}

.btn-filled {
  border: 1px solid #2e7d32;
  color: #fff;
  background: #2e7d32;
}
.btn-filled:hover {
  background: #1b5e20;
}

.btn-disabled {
  border: 1px solid #ccc;
  color: #999;
  background: #f5f5f5;
  pointer-events: none;
}

/* ==========================================================================
   入会案内用 (join.html)・役員名簿
   ========================================================================== */
.greeting-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.greeting-text {
  flex-grow: 1;
}

.greeting-author {
  text-align: right;
  font-weight: bold;
  margin-top: 15px;
}

/* 役員名簿用のリスト */
.officer-table th {
  white-space: nowrap;
  width: 25%;
}
.officer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
}
.officer-list li {
  white-space: nowrap;
}
.officer-sub-role {
  margin-bottom: 5px;
}

.condition-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.condition-table th,
.condition-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
}

.condition-table th {
  background-color: #fafafa;
  width: 20%;
  text-align: left;
  color: #555;
}

.btn-doc {
  display: inline-block;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #333;
  border: 1px solid #ccc;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: 0.2s;
}
.btn-doc:hover {
  background: #e0e0e0;
  border-color: #999;
}
.btn-doc::before {
  content: "📄";
  margin-right: 8px;
}

.step-list {
  list-style: none;
  padding: 0;
}

.step-item {
  position: relative;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 20px;
  padding-left: 70px;
  margin-bottom: 15px;
}

.step-number {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: #2e7d32;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: bold;
  font-size: 1.1rem;
}

.step-item h3 {
  margin: 0 0 5px 0;
  color: #2e7d32;
  font-size: 1.1rem;
}

.step-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

.btn-form {
  display: inline-block;
  background: #ef6c00;
  color: #fff;
  padding: 15px 40px;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn-form:hover {
  background: #e65100;
  transform: translateY(-2px);
}

.strong {
  border: 2px dashed red;
  padding: 2px;
}

/* iframe対応 */
.join-formStyle {
  align-items: center;
}
.form-wrapper {
  width: 100%;
  overflow: hidden;
}
iframe {
  width: 100%;
  max-width: 640px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* ==========================================================================
   規約ページ用 (rules.html)
   ========================================================================== */
.rule-container {
  background: #fff;
  padding: 10px 20px;
}
.rule-block {
  margin-bottom: 25px;
}
.rule-heading {
  font-weight: bold;
  color: #1b5e20;
  margin-bottom: 5px;
  font-size: 1.1rem;
}
.rule-article {
  margin: 0;
  padding-left: 3.5em;
  text-indent: -3.5em;
  line-height: 1.8;
}
.rule-item {
  margin: 5px 0 0 0;
  padding-left: 4.5em;
  text-indent: -1.5em;
  line-height: 1.8;
}
.supplementary-provisions {
  margin-top: 40px;
  border-top: 2px dashed #ccc;
  padding-top: 30px;
}
.supplementary-heading {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 15px;
}
.supplementary-item {
  margin: 5px 0;
  padding-left: 1.5em;
  text-indent: -1.5em;
  line-height: 1.8;
}

/* ==========================================================================
   ログイン画面用 (login.html)
   ========================================================================== */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.login-box {
  background: #fff;
  border: 1px solid #ddd;
  border-top: 5px solid #2e7d32;
  border-radius: 8px;
  padding: 30px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.login-box h2 {
  text-align: center;
  border: none;
  margin-bottom: 10px;
  padding-bottom: 0;
  color: #1b5e20;
}

.login-box p {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}
.form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  border-color: #2e7d32;
  outline: none;
  background-color: #fff;
}

.login-info {
  background: #e8f5e9;
  padding: 25px;
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  /* border-left: 5px solid #2e7d32; */
  box-sizing: border-box;
}

.login-info h3 {
  color: #1b5e20;
  margin-top: 0;
  font-size: 1.1rem;
  border-bottom: 1px dashed #43a047;
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.login-note {
  font-size: 0.85rem;
  color: #d32f2f;
  margin-top: 15px;
  margin-bottom: 0;
}

/* ==========================================================================
   WP-Members ログインフォームの上書きスタイル
   ========================================================================== */
/* WP-Members特有の枠線とデフォルトのタイトルを消す */
#wpmem_login fieldset {
  border: none;
  padding: 0;
  margin: 0;
}
#wpmem_login legend {
  display: none;
}

/* ラベルのスタイル */
#wpmem_login label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

/* 入力フィールドのスタイル */
#wpmem_login input[type="text"],
#wpmem_login input[type="password"] {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background-color: #fafafa;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

#wpmem_login input[type="text"]:focus,
#wpmem_login input[type="password"]:focus {
  border-color: #2e7d32;
  outline: none;
  background-color: #fff;
}

/* 送信（ログイン）ボタンのスタイル */
#wpmem_login input[type="submit"] {
  display: inline-block;
  background: #ef6c00;
  color: #fff;
  padding: 15px 40px;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition:
    background 0.2s,
    transform 0.2s;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

#wpmem_login input[type="submit"]:hover {
  background: #e65100;
  transform: translateY(-2px);
}

/* ==========================================================================
   会員専用ページ サブメニュー（四角いアイコン並び）
   ========================================================================== */
.member-nav {
  display: flex;
  gap: 15px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.member-nav-item {
  flex: 1;
  min-width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-decoration: none;
  color: #333;
  transition: all 0.2s ease;
}

.member-nav-item:hover {
  background: #e8f5e9;
  border-color: #2e7d32;
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.member-nav-item.current {
  background: #2e7d32;
  border-color: #1b5e20;
  color: #fff;
}

.member-nav-item .nav-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.member-nav-item .nav-text {
  font-weight: bold;
  font-size: 0.95rem;
}

/* ==========================================================================
   フッター
   ========================================================================== */
.footer {
  background-color: #2e7d32;
  color: #ffffff;
  text-align: center;
  padding: 25px 0;
  margin-top: 50px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ==========================================================================
   レスポンシブ対応（スマートフォン用）
   ========================================================================== */
@media (max-width: 768px) {
  /* ヘッダー */
  .header {
    padding: 15px 0;
  }
  .header-inner {
    justify-content: center;
  }
  .header-logo {
    padding-left: 0px;
    width: 45px;
    height: 45px;
  }
  .header-site-title {
    font-size: 1.8rem;
  }
  .header-site-subtitle {
    font-size: 0.65rem;
    margin-top: 3px;
  }
  .top-image {
    height: 200px;
  }

  .top-image-slider {
    height: 200px;
  }

  /* レイアウト */
  .layout-wrapper {
    max-width: 720px;
    flex-direction: column;
    margin: 15px auto;
  }
  .sidebar,
  .main-content {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
  .side-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .side-nav li {
    margin-bottom: 0;
  }
  .side-nav a {
    text-align: center;
    padding: 10px 5px;
    font-size: 0.85rem;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: none;
    border-bottom: 3px solid #ccc;
  }
  .side-nav a:hover,
  .side-nav a.current {
    border-left: none;
    border-bottom-color: #1b5e20;
  }

  /* トップページ:お知らせ欄用 */
  .top-news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .news-photos img {
    width: calc(50% - 5px);
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* お知らせ一覧 (news.html) 用 */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px; /* スマホ時の隙間調整 */
  }

  /* 大会日程 */
  .btn-group {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* 入会案内 */
  .greeting-box {
    flex-direction: column;
  }
  .condition-table th,
  .condition-table td {
    display: block;
    width: auto;
  }
  .condition-table th {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-weight: bold;
    border-bottom: none;
  }
  .step-item {
    padding-left: 20px;
    padding-top: 55px;
  }
  .step-number {
    top: 15px;
    transform: none;
  }
  .btn-form {
    width: 100%;
    box-sizing: border-box;
  }
  .rule-container {
    padding: 0;
  }
}
