/* --- Global Styles & Variables --- */
:root {
  --primary-color: #034439; /* 濃い青 */
  --secondary-color: #e9a40e; /* 明るい青 */
  --accent-color: #ef4444; /* 赤 */
  --bg-color: #f8fafc; /* 背景色 */
  --text-color: #55334a;
  --heading-color: #1e293b;
  --white-color: #ffffff;
  --gray-color: #94a3b8;
  --light-gray-color: #e2e8f0;
  --font-body: "Noto Sans JP", sans-serif;
  --font-heading: "Playfair Display", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Header & Navigation --- */
#header {
  background-color: var(--white-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

#header.scrolled {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

#header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: none; /* Hidden on mobile */
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 700;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.nav-links a:hover::after {
  width: 80%;
}

#mobile-menu-button {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

#mobile-menu {
  display: none;
  background-color: var(--white-color);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#mobile-menu.active {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  opacity: 1;
}

#mobile-menu a {
  padding: 1rem 5%;
  text-decoration: none;
  color: var(--text-color);
  border-bottom: 1px solid var(--light-gray-color);
  transition: background-color 0.2s;
}

#mobile-menu a:hover {
  background-color: #f1f5f9;
}

/* --- Hero Section --- */

.hero-slider {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

/* --- Announcement Section --- */
.announcement-section {
  padding: 4rem 0;
  background-color: var(--bg-color);
}

.toiawase_senter {
  text-align: center;
}

/* ---100号写真の位置設定--- */
.class01 {
  text-align: center;
}

.class01 a {
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  color: rgb(40, 21, 204);
}

/* --- 会則のデザイン --- */
.section_kaisoku {
  h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1em;
  }
  h2 {
    border-bottom: 2px solid #666666;
    padding-bottom: 5px;
    margin-top: 2em;
    font-size: 1.4em;
  }
  h3 {
    margin-top: 1em;
    font-size: 1.2em;
    color: #444;
  }
  ul {
    padding-left: 1.5em;
  }
  .bold {
    font-weight: bold;
  }
  .section {
    margin-bottom: 2em;
  }
}
/* ---会則デザイン　ここまで ---*/

.announcement-card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 5px solid var(--accent-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.announcement-header .date {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.announcement-header .title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--accent-color);
}

.announcement-body h3 {
  font-size: 2rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.btn:hover {
  background-color: #dc2626; /* Darker red */
  transform: translateY(-2px);
}

/* --- Content Grid Section --- */
.content-grid-section {
  padding: 4rem 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-image-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card-image-container img {
  transform: scale(1.05);
}

.card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.card-content p {
  margin-bottom: 1rem;
  flex-grow: 1;
}

.card-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 700;
  align-self: flex-start;
}

.card-link i {
  transition: transform 0.3s ease;
}

.card-link:hover i {
  transform: translateX(5px);
}

/* --- Footer --- */
footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-info h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.footer-info p {
  color: var(--gray-color);
}

/* --- Animations --- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive Media Queries --- */
@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
  #mobile-menu-button {
    display: none;
  }
  .announcement-card {
    flex-direction: row;
    align-items: center;
  }
  .announcement-header {
    text-align: right;
    border-right: 2px solid var(--light-gray-color);
    padding-right: 2rem;
  }
  .announcement-body {
    padding-left: 2rem;
  }
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
