/* ===========================
   リセットとベーススタイル
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #e74c3c;
  --secondary-color: #c0392b;
  --accent-color: #f39c12;
  --text-color: #2c3e50;
  --light-gray: #ecf0f1;
  --medium-gray: #bdc3c7;
  --dark-gray: #34495e;
  --white: #ffffff;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ===========================
   ヘッダー
   =========================== */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.container-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===========================
   ヒーローセクション
   =========================== */
.hero-section {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.8), rgba(192, 57, 43, 0.9));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
  background-color: var(--white);
  color: var(--primary-color);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   コンテナ
   =========================== */
.container-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===========================
   情報セクション
   =========================== */
.info-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.info-card p {
  color: var(--text-color);
  line-height: 1.8;
}

/* ===========================
   記事プレビュー
   =========================== */
.featured-posts {
  padding: 5rem 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.post-preview {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-preview:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.post-content {
  padding: 1.5rem;
}

.post-content h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.post-content p {
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.8;
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===========================
   統計セクション
   =========================== */
.statistics-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
}

.statistics-section .section-heading {
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-box {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
}

/* ===========================
   CTAセクション
   =========================== */
.cta-section {
  padding: 5rem 0;
  background-color: var(--dark-gray);
  color: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button-secondary {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.cta-button-secondary:hover {
  background-color: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===========================
   ページヒーロー
   =========================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.3rem;
}

/* ===========================
   ブログコンテナ
   =========================== */
.blog-container {
  padding: 5rem 0;
}

.blog-grid {
  display: grid;
  gap: 2rem;
}

.blog-card {
  display: flex;
  gap: 2rem;
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-image {
  position: relative;
  width: 400px;
  flex-shrink: 0;
}

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

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.blog-info {
  padding: 2rem;
  flex: 1;
}

.blog-info h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.blog-info h2 a {
  transition: var(--transition);
}

.blog-info h2 a:hover {
  color: var(--primary-color);
}

.blog-meta {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
}

.blog-info p {
  color: var(--text-color);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.blog-link {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.blog-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* ===========================
   記事ページ
   =========================== */
.post-article {
  padding-bottom: 5rem;
}

.post-header-section {
  background-color: var(--light-gray);
  padding: 3rem 0;
}

.post-meta-info {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-category-tag {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.post-date-info {
  color: var(--medium-gray);
  display: flex;
  align-items: center;
}

.post-title-main {
  font-size: 2.5rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-excerpt {
  font-size: 1.2rem;
  color: var(--text-color);
  line-height: 1.6;
}

.post-featured-image {
  max-width: 1200px;
  margin: 0 auto;
  height: 500px;
  overflow: hidden;
}

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

.post-content-section {
  padding: 3rem 0;
}

.post-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
}

.post-main-content {
  max-width: 800px;
}

.post-main-content h2 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary-color);
}

.post-main-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: var(--text-color);
}

.post-main-content ul {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-main-content li {
  list-style: disc;
  margin-bottom: 0.8rem;
  line-height: 1.8;
  color: var(--text-color);
}

.post-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--light-gray);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.tag-label {
  font-weight: 600;
  color: var(--dark-gray);
}

.post-tag {
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.post-tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===========================
   サイドバー
   =========================== */
.post-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-widget {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark-gray);
}

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

.related-posts-list li a {
  color: var(--text-color);
  transition: var(--transition);
  line-height: 1.6;
}

.related-posts-list li a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.sidebar-cta {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
  margin-top: 1rem;
}

.sidebar-cta:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ===========================
   ミッションセクション
   =========================== */
.mission-section {
  padding: 5rem 0;
}

.mission-content {
  max-width: 900px;
  margin: 0 auto;
}

.mission-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

/* ===========================
   チームセクション
   =========================== */
.team-section {
  padding: 5rem 0;
  background-color: var(--light-gray);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--dark-gray);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* ===========================
   価値観セクション
   =========================== */
.values-section {
  padding: 5rem 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.value-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.value-item p {
  color: var(--text-color);
  line-height: 1.8;
}

/* ===========================
   コンタクトセクション
   =========================== */
.contact-section {
  padding: 5rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

.contact-detail {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.contact-detail h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.contact-detail p {
  color: var(--text-color);
  line-height: 1.6;
}

/* ===========================
   コンタクトフォーム
   =========================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
  padding: 0.8rem;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

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

.submit-btn {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
  cursor: pointer;
}

.submit-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===========================
   モーダル
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  position: relative;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  color: var(--medium-gray);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--danger-color);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--success-color);
}

.modal-content h2 {
  font-size: 2rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

/* ===========================
   フッター
   =========================== */
.main-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h4 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.footer-column p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

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

.footer-links a {
  color: var(--white);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 0.5rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* ===========================
   クッキーバナー
   =========================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1500;
  padding: 1.5rem;
  display: none;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.cookie-content p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.cookie-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.cookie-btn.accept {
  background-color: var(--success-color);
  color: var(--white);
}

.cookie-btn.accept:hover {
  background-color: #229954;
}

.cookie-btn.reject {
  background-color: var(--medium-gray);
  color: var(--white);
}

.cookie-btn.reject:hover {
  background-color: var(--dark-gray);
}

.cookie-btn.customize {
  background-color: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.cookie-btn.customize:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* ===========================
   スペルチェックボタン
   =========================== */
.spell-check-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: var(--transition);
  z-index: 1000;
}

.spell-check-btn:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}

/* ===========================
   レスポンシブデザイン
   =========================== */
@media (max-width: 1024px) {
  .post-content-wrapper {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .blog-card {
    flex-direction: column;
  }

  .blog-image {
    width: 100%;
    height: 300px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container-header {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-heading {
    font-size: 2rem;
  }

  .post-title-main {
    font-size: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .cookie-buttons {
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .cta-button,
  .cta-button-secondary {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.8rem;
  }

  .post-title-main {
    font-size: 1.7rem;
  }

  .info-grid,
  .posts-grid,
  .team-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .spell-check-btn {
    width: 50px;
    height: 50px;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ===========================
   プリントスタイル
   =========================== */
@media print {
  .main-header,
  .hero-section,
  .cta-section,
  .main-footer,
  .cookie-banner,
  .spell-check-btn,
  .post-sidebar {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
  }

  .post-main-content {
    max-width: 100%;
  }
}

