/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.8;
  color: #333;
  background-color: #fff;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #004499;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a1a1a;
}

.logo a {
  color: inherit;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  color: #333;
  font-size: 0.95rem;
  padding: 10px 0;
  position: relative;
}

nav a:hover {
  color: #0066cc;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0066cc;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Page Header */
.page-header {
  background-color: #f8f9fa;
  padding: 60px 0;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
  font-size: 2rem;
  color: #1a1a1a;
}

/* Section */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  text-align: center;
  color: #1a1a1a;
}

/* Table Style */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

.info-table th,
.info-table td {
  padding: 20px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.info-table th {
  width: 200px;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #1a1a1a;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #1a1a1a;
}

.card p {
  color: #666;
}

/* Notice Section (電子公告) */
.notice-section {
  background-color: #fff;
}

.notice-list {
  max-width: 800px;
  margin: 0 auto;
}

.notice-item {
  padding: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.notice-item h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #1a1a1a;
}

.notice-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.notice-item p {
  color: #333;
}

.no-notice {
  text-align: center;
  color: #666;
  padding: 60px 0;
}

/* Contact Form */
.contact-intro {
  text-align: center;
  margin-bottom: 40px;
  color: #666;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a1a1a;
}

.required {
  color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0066cc;
}

.form-group textarea {
  resize: vertical;
}

.privacy-note {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
}

/* Google Form Embed */
.google-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.google-form-wrapper iframe {
  display: block;
  border: none;
}

.submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.9;
}

/* Legal Pages */
.legal-content h2 {
  font-size: 1.3rem;
  margin: 40px 0 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
  text-align: left;
}

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

.legal-content ul {
  margin: 15px 0 15px 25px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-date {
  margin-top: 50px;
  text-align: right;
  color: #666;
}

/* Footer Links */
.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 15px;
  font-size: 0.85rem;
}

.footer-links a:hover {
  color: #fff;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
  }

  .logo {
    margin-bottom: 15px;
  }

  nav ul {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  section {
    padding: 50px 0;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    border-bottom: none;
    padding-bottom: 5px;
  }

  .info-table td {
    padding-top: 5px;
  }
}
