/* ==========================================================================
   Common Stylesheet for 植木鉢団 (Uekibachidan)
   ========================================================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@400;500;700&display=swap');

/* Color Variables */
:root {
  --primary: #2c5e43;        /* Forest Green */
  --primary-light: #eaf2ec;  /* Soft Green Tint */
  --primary-dark: #1e422f;
  --accent: #d97706;         /* Terracotta Accent */
  --accent-light: #fef3c7;
  --accent-dark: #b45309;
  
  --bg-main: #fcfbfa;        /* Clean organic warm-white */
  --bg-card: #ffffff;
  --text-main: #1c1917;      /* Soft dark brown-slate */
  --text-muted: #6b6661;
  --border: #e7e5e4;
  --max-width: 1000px;
  
  --font-sans: 'Outfit', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(28, 25, 23, 0.08), 0 2px 4px -1px rgba(28, 25, 23, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(28, 25, 23, 0.08), 0 4px 6px -2px rgba(28, 25, 23, 0.03);
  
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Base Elements */
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 1.75rem;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
.site-header {
  background-color: rgba(252, 251, 250, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0;
}

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

.site-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.site-title-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--primary);
  color: var(--bg-main);
  border-radius: 8px;
  font-size: 1.125rem;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.site-nav a {
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.25rem 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Main Content Styles */
.site-main {
  flex-grow: 1;
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(254, 243, 199, 0.4) 100%);
  border-radius: var(--radius);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Card Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-title {
  color: var(--primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  width: fit-content;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  flex-grow: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
}

.btn-accent {
  background-color: var(--accent);
  color: #ffffff;
  gap: 0.5rem;
}

.btn-accent:hover {
  background-color: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Info Section (For Organization Details) */
.info-section {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-sm);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.info-table th, 
.info-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.info-table th {
  width: 30%;
  color: var(--text-muted);
  font-weight: 500;
  vertical-align: top;
}

.info-table td {
  color: var(--text-main);
  font-weight: 400;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

/* Form Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-container {
    grid-template-columns: 2fr 1fr;
  }
}

.iframe-container {
  position: relative;
  width: 100%;
  min-height: 1650px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.contact-fallback {
  background-color: var(--primary-light);
  border: 1px dashed var(--primary);
  padding: 1.5rem;
  border-radius: var(--radius);
  color: var(--primary-dark);
}

/* Privacy Policy Layout */
.privacy-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.privacy-content section {
  margin-bottom: 2rem;
}

.privacy-content h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.privacy-content ul,
.privacy-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* Footer Styles */
.site-footer {
  background-color: #1c1917; /* Dark Slate Brown */
  color: #e7e5e4;
  padding: 3rem 0;
  margin-top: auto;
  font-size: 0.875rem;
  border-top: 4px solid var(--primary);
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr;
  }
}

.footer-info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: #a8a29e;
}

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

.footer-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.footer-bottom {
  border-top: 1px solid #44403c;
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
  color: #a8a29e;
  font-size: 0.75rem;
}

.footer-meta-list {
  list-style: none;
  margin-top: 0.5rem;
}

.footer-meta-list li {
  margin-bottom: 0.5rem;
  color: #d6d3d1;
}

.footer-meta-label {
  color: #a8a29e;
  display: inline-block;
  width: 90px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.font-bold { font-weight: 700; }
