/* ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro', 'Meiryo', 'メイリオ', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #fafaf8;
  color: #1c1917;
}

/* ユーティリティクラス */
.min-h-screen { min-height: 100vh; }
.bg-stone-50 { background-color: #fafaf8; }
.text-stone-900 { color: #1c1917; }
.max-w-7xl { max-width: 1280px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.space-y-12 > * + * { margin-top: 3rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.hidden { display: none; }
.cursor-pointer { cursor: pointer; }
.tracking-widest { letter-spacing: 0.1em; }

/* ナビゲーション */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e7e5e4;
}

nav .max-w-7xl {
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-circle {
  width: 2rem;
  height: 2rem;
  background: #1c1917;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-flex {
  display: flex;
}

.md-hidden {
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: #57534e;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.95rem;
}

.nav-item:hover {
  background: #f5f5f4;
}

.nav-item.active {
  background: #1c1917;
  color: white;
}

.icon {
  width: 18px;
  height: 18px;
  margin-right: 0.5rem;
}

.menu-toggle {
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.mobile-menu {
  background: white;
  border-bottom: 1px solid #e7e5e4;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item-mobile {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  color: #57534e;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.nav-item-mobile:hover,
.nav-item-mobile.active {
  background: #1c1917;
  color: white;
}

/* ヒーローセクション */
.hero-section {
  position: relative;
  height: 450px;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-family: serif;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 48rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn-primary {
  padding: 0.75rem 2rem;
  background: white;
  color: #1c1917;
  border: none;
  border-radius: 9999px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

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

.btn-secondary {
  padding: 0.75rem 2rem;
  background: transparent;
  color: white;
  border: 2px solid white;
  border-radius: 9999px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* 特徴グリッド */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
  text-align: center;
  transition: all 0.3s;
}

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

.feature-icon {
  width: 3rem;
  height: 3rem;
  background: #f5f5f4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #57534e;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: serif;
}

.feature-text {
  color: #57534e;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* セクションヘッダー */
.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 2rem;
}

.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-family: serif;
}

.section-subtitle {
  color: #78716c;
  font-size: 0.95rem;
}

/* 流派グリッド */
.schools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.school-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.school-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.school-image-container {
  position: relative;
  height: 12rem;
}

.school-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.school-tag span {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.school-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.school-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  font-family: serif;
}

.school-description {
  color: #57534e;
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: auto;
}

.learn-more {
  display: flex;
  align-items: center;
  color: #1c1917;
  font-weight: bold;
  font-size: 0.95rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 1rem;
  padding: 0;
  transition: all 0.2s;
}

.learn-more:hover {
  text-decoration: underline;
}

.chevron {
  width: 16px;
  height: 16px;
  margin-left: 0.25rem;
  transition: transform 0.2s;
}

.learn-more:hover .chevron {
  transform: translateX(4px);
}

/* イベントセクション */
.events-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-container {
  position: relative;
  width: 100%;
  max-width: 20rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #a8a29e;
}

.search-input {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2.5rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: #1c1917;
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.1);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #f5f5f4;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  transition: all 0.2s;
  flex-wrap: wrap;
}

.event-item:hover {
  border-color: #d6d3d1;
}

.event-content {
  flex: 1;
  min-width: 250px;
}

.event-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.event-badge {
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 0.25rem;
}

.event-badge-experience {
  background: #fef3c7;
  color: #92400e;
}

.event-badge-course {
  background: #dbeafe;
  color: #1e40af;
}

.event-title {
  font-size: 1.25rem;
  font-weight: bold;
  font-family: serif;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: #78716c;
}

.event-detail {
  display: flex;
  align-items: center;
}

.detail-icon {
  width: 14px;
  height: 14px;
  margin-right: 0.25rem;
}

.event-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 140px;
}

.event-price {
  font-size: 1.125rem;
  font-weight: bold;
  color: #44403c;
}

.event-button {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: #1c1917;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
}

.event-button:hover {
  background: #292524;
}

.no-results {
  text-align: center;
  padding: 3rem;
  background: #f5f5f4;
  border-radius: 0.75rem;
  color: #78716c;
}

/* お問い合わせ */
.contact-container {
  max-width: 48rem;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
}

.contact-form {
  margin-top: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.form-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: #1c1917;
  box-shadow: 0 0 0 3px rgba(28, 25, 23, 0.1);
}

select.form-input {
  cursor: pointer;
  background: white;
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.submit-button {
  width: 100%;
  padding: 0.75rem;
  background: #1c1917;
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
}

.submit-button:hover {
  background: #292524;
}

/* フッター */
.footer {
  background: #1c1917;
  color: #a8a29e;
  padding: 4rem 1rem;
  margin-top: 5rem;
  border-top: 1px solid #292524;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.footer-logo-circle {
  width: 1.5rem;
  height: 1.5rem;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1c1917;
  font-weight: bold;
  font-size: 0.75rem;
}

.footer-logo-text {
  font-size: 1.125rem;
  font-weight: bold;
  letter-spacing: 0.1em;
}

.footer-description {
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-heading {
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links li button,
.footer-links li a {
  font-size: 0.875rem;
  color: #a8a29e;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
  text-align: left;
}

.footer-links li button:hover,
.footer-links li a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #44403c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.875rem;
}

.social-icon:hover {
  border-color: white;
  color: white;
}

.footer-bottom {
  max-width: 1280px;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid #292524;
  text-align: center;
  font-size: 0.75rem;
}

/* タブコンテンツ */
.tab-content {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* モーダル */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal:not(.hidden) {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 1rem;
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: #f5f5f4;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover {
  background: #e7e5e4;
  transform: rotate(90deg);
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-school-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 1rem;
  font-family: serif;
  padding-right: 3rem;
}

.modal-school-tag {
  display: inline-block;
  background: #f5f5f4;
  color: #57534e;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.modal-school-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-bottom: 2rem;
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 1rem;
  font-family: serif;
}

.modal-section p {
  color: #57534e;
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.modal-section ul {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.modal-section ul li {
  padding: 0.75rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #57534e;
  line-height: 1.7;
}

.modal-section ul li::before {
  content: "🌸";
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

/* 香道とはページ */
.about-section {
  margin-bottom: 3rem;
}

.about-card {
  background: white;
  padding: 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
}

.about-heading {
  font-size: 1.8rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 1.5rem;
  font-family: serif;
}

.about-text {
  color: #57534e;
  line-height: 1.9;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.about-section-title {
  font-size: 2rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 2rem;
  text-align: center;
  font-family: serif;
  position: relative;
  padding-bottom: 1rem;
}

.about-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #8b6f54;
}

/* タイムライン */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #e7e5e4, #8b6f54, #e7e5e4);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
}

.timeline-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.timeline-item:nth-child(even) .timeline-marker {
  order: 2;
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  order: 1;
  text-align: right;
}

.timeline-marker {
  font-weight: bold;
  color: #705e4a;
  font-size: 1.1rem;
  padding: 1rem;
  background: #f8f5f0;
  border-radius: 0.5rem;
  text-align: right;
  position: relative;
  font-family: serif;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 2px solid #8b6f54;
}

.timeline-marker::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -1.5rem;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: #8b6f54;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 2px #8b6f54;
}

.timeline-item:nth-child(even) .timeline-marker::after {
  right: auto;
  left: -1.5rem;
}

.timeline-content {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
}

.timeline-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 0.75rem;
  font-family: serif;
}

.timeline-text {
  color: #57534e;
  line-height: 1.8;
  font-size: 0.95rem;
}

/* 特徴カード（香道とはページ用） */
.about-feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border: 1px solid #f5f5f4;
  text-align: center;
  transition: all 0.3s;
}

.about-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.about-feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.about-feature-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #1c1917;
  margin-bottom: 0.75rem;
  font-family: serif;
}

.about-feature-text {
  color: #57534e;
  line-height: 1.7;
  font-size: 0.9rem;
}

/* 六国五味 */
.rikkoku-gomi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.rikkoku-section {
  background: #f8f5f0;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.rikkoku-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #705e4a;
  margin-bottom: 1rem;
  font-family: serif;
}

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

.rikkoku-list li {
  padding: 0.75rem 0;
  color: #57534e;
  line-height: 1.7;
  border-bottom: 1px solid #e7e5e4;
}

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

.modern-kodo {
  background: linear-gradient(135deg, #f8f5f0 0%, #ffffff 100%);
  border-left: 4px solid #8b6f54;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .md-flex {
    display: none;
  }
  
  .md-hidden {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .events-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .event-item {
    flex-direction: column;
  }
  
  .event-action {
    flex-direction: row;
    align-items: center;
    width: 100%;
    border-top: 1px solid #f5f5f4;
    padding-top: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  /* 香道とはページのタイムラインをモバイル対応 */
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 60px;
  }
  
  .timeline-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
  
  .timeline-item:nth-child(even) .timeline-marker {
    order: 1;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    order: 2;
    text-align: left;
  }
  
  .timeline-marker {
    text-align: left;
    justify-content: flex-start;
  }
  
  .timeline-marker::after {
    right: auto;
    left: -2.5rem;
  }
  
  .timeline-item:nth-child(even) .timeline-marker::after {
    left: -2.5rem;
  }
  
  .rikkoku-gomi {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) {
  .events-header {
    flex-direction: row;
  }
}
