/*
Theme Name: AOIROSERVER
Theme URI: https://aoiroserver.tokyo
Author: AOIROSERVER Team
Author URI: https://aoiroserver.tokyo
Description: AOIROSERVERの公式テーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aoiroserver
*/

/* ==========================================================================
   CSS変数の定義
   ========================================================================== */

:root {
  --primary-color: #00a0e9;
  --primary-dark: #0085c3;
  --secondary-color: #00c8ff;
  --accent-green: #8cc63f;
  --accent-yellow: #f9a825;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ==========================================================================
   基本スタイル
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  opacity: 0.8;
}

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

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--text-dark);
}

.logo-icon {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  font-style: italic;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  letter-spacing: 0.05em;
}

.logo-wave {
  display: block;
  height: 6px;
  margin-top: 2px;
}

.logo-wave svg {
  width: 140px;
  height: 6px;
}

.hamburger {
  width: 28px;
  height: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
  transition: var(--transition);
}

.hamburger:hover span {
  background: var(--primary-dark);
}

/* ==========================================================================
   ページヘッダー
   ========================================================================== */

.page-header {
  margin-top: 60px;
  padding: 40px 4%;
  background: var(--white);
  border-bottom: 3px solid var(--primary-color);
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title-icon svg {
  width: 32px;
  height: 32px;
  fill: var(--primary-color);
}

.breadcrumb {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary-color);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   メインコンテンツ
   ========================================================================== */

.main-content {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 4%;
}

.intro-text,
.intro-section {
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.intro-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--primary-color);
}

/* ==========================================================================
   セクションタイトル
   ========================================================================== */

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 14px;
  position: relative;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--primary-color);
  border-radius: 2px;
}

.credit-section,
.contact-methods,
.faq-section {
  margin-bottom: 50px;
}

/* ==========================================================================
   フィルタータブ
   ========================================================================== */

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 8px 20px;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-tab:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ==========================================================================
   ニュースグリッド
   ========================================================================== */

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.news-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.news-image {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.news-image.blue {
  background: linear-gradient(180deg, #e8f4fc 0%, #c5d8e8 100%);
}

.news-image.green {
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
}

.news-image.yellow {
  background: linear-gradient(180deg, #fff9e6 0%, #ffe4b3 100%);
}

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

.news-image .mini-train {
  position: absolute;
  bottom: 15%;
  left: 10%;
  width: 75%;
  height: 35%;
  border-radius: 4px 4px 2px 2px;
}

.news-image .mini-train.blue-train {
  background: linear-gradient(90deg, #00a0e9, #0077b6);
}

.news-image .mini-train.green-train {
  background: linear-gradient(90deg, #8cc63f, #689f38);
}

.news-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-color);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.news-badge.event {
  background: var(--accent-green);
}

.news-badge.update {
  background: var(--text-light);
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.news-tag {
  padding: 3px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-dark);
}

/* ==========================================================================
   イベントグリッド
   ========================================================================== */

.event-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.event-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.event-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.event-image {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
  position: relative;
  background-size: cover;
  background-position: center;
}

.event-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 3px;
}

.event-badge svg {
  width: 9px;
  height: 9px;
  fill: currentColor;
}

.event-info {
  padding: 10px;
}

.event-title {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.event-desc {
  font-size: 0.7rem;
  color: var(--text-light);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ==========================================================================
   お問い合わせカード
   ========================================================================== */

.contact-methods {
  display: grid;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.contact-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-desc {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-color);
  font-weight: 600;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  transition: var(--transition);
}

.contact-link:hover {
  background: var(--primary-color);
  color: var(--white);
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   フォーム
   ========================================================================== */

.contact-form {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-light);
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.form-label .required {
  color: #d32f2f;
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

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

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 6px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.form-submit:hover {
  background: var(--primary-dark);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.faq-question {
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.faq-q-icon {
  color: var(--primary-color);
  font-weight: 700;
  flex-shrink: 0;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.7;
  padding-left: 20px;
}

/* ==========================================================================
   クレジットグリッド
   ========================================================================== */

.credit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.credit-card {
  background: var(--white);
  padding: 24px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.credit-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.credit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.credit-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.credit-info {
  flex: 1;
}

.credit-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.credit-role {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
}

.credit-desc {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.credit-contributions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.contribution-tag {
  padding: 4px 10px;
  background: var(--bg-light);
  border-radius: 12px;
  font-size: 0.75rem;
  color: var(--text-dark);
}

/* ==========================================================================
   チームリスト
   ========================================================================== */

.team-list {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.team-category {
  margin-bottom: 30px;
}

.team-category:last-child {
  margin-bottom: 0;
}

.team-category-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-light);
}

.team-members {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-light);
  border-radius: 6px;
  transition: var(--transition);
}

.team-member:hover {
  background: #e8f4fc;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.member-name {
  font-weight: 600;
  font-size: 0.95rem;
}

/* ==========================================================================
   ツールグリッド
   ========================================================================== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.tool-card {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.tool-card:hover {
  box-shadow: var(--shadow-hover);
}

.tool-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

.tool-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--primary-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.tool-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Special Thanks
   ========================================================================== */

.thanks-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
  padding: 40px;
  border-radius: 8px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow);
}

.thanks-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.thanks-text {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   ページネーション
   ========================================================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
  font-family: inherit;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ==========================================================================
   ローディング・エラー
   ========================================================================== */

.loading,
.no-posts,
.error-message {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}

.error-message {
  color: #d32f2f;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
  background: #f8f9fa;
  padding: 30px 4%;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 60px;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .credit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }
  
  .news-grid,
  .credit-grid,
  .team-members,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  
  .event-list {
    grid-template-columns: 1fr;
  }
  
  .filter-tabs {
    gap: 6px;
  }
  
  .filter-tab {
    padding: 6px 16px;
    font-size: 0.85rem;
  }
  
  .contact-form,
  .intro-section,
  .team-list,
  .thanks-section {
    padding: 20px;
  }
  
  .form-title {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  
  .logo-icon {
    font-size: 1.5rem;
  }
  
  .page-title {
    font-size: 1.3rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

.hidden {
  display: none;
}

.show {
  display: block;
}