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

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.7;
  color: #333;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Header & Navigation */
.header {
  background: rgba(26, 54, 93, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(37, 99, 235, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav-logo {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-subtitle {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 400;
  color: #cbd5e0;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  /* ナビゲーションメニューを横書きで統一 */
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.nav-menu li {
  /* 各メニュー項目を横書きで統一 */
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.nav-menu a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 4px;
  /* リンクテキストを横書きで統一 */
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  display: inline-block;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: white;
  background-color: rgba(255,255,255,0.1);
}

/* ハンバーガーメニューボタン（デスクトップでは非表示） */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* ハンバーガーメニューのアニメーション */
.nav-toggle-active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle-active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Layout */
.main {
  min-height: calc(100vh - 80px - 200px);
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 58, 138, 0.8) 100%);
  color: white;
  padding: 120px 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.08)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.hero .subtitle {
  font-size: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 400;
  text-align: center;
}

.hero .tagline {
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  line-height: 1.6;
}

/* スマホ専用改行 */
.mobile-br {
  display: none;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25);
}

.btn-primary:hover {
  background: rgba(21, 128, 61, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #1e40af;
  border: 2px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: white;
  color: #1e40af;
  transform: translateY(-1px);
  border-color: white;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.3);
}

.btn-white {
  background: rgba(255, 255, 255, 0.95);
  color: #1e40af;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-white:hover {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Alternative button for better visibility on light backgrounds */
.btn-outline {
  background: transparent;
  color: #1e40af;
  border: 2px solid #1e40af;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: #1e40af;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
}

/* CTA section specific button overrides for better visibility */
.cta .btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: white;
  border-color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: #1e293b;
  font-weight: 600;
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  transition: all 0.3s ease;
}

.feature:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon img {
  width: 48px;
  height: 48px;
  transition: transform 0.3s ease;
}

.feature:hover .feature-icon img {
  transform: scale(1.1);
}

.feature h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1e293b;
  font-weight: 600;
}

.feature p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1rem;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.blog-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.95);
}

.blog-card-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.blog-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumbnail img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: 1.5rem;
}

.blog-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.blog-card .meta {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.blog-card a:hover {
  text-decoration: underline;
}

/* Post Styles */
.post {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 0;
}

.post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.post-title {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-meta {
  color: #7f8c8d;
  margin-bottom: 1rem;
}

.post-tags {
  margin-top: 1rem;
}

.tag {
  background: #3498db;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
  display: inline-block;
}

.post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  color: #2c3e50;
}

.post-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem 0;
  color: #2c3e50;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul, .post-content ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

.post-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

.post-content code {
  background: #f8f9fa;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.post-content pre {
  background: #2c3e50;
  color: white;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: white;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

/* Author Section */
.author-section {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 2px solid #f1f5f9;
}

.author-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.author-title {
  font-size: 0.95rem;
  color: #3498db;
  font-weight: 500;
  margin-bottom: 1rem;
}

.author-bio {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

.author-link {
  font-size: 0.9rem;
  color: #2563eb;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.author-link:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .author-card {
    flex-direction: column;
    text-align: center;
  }
  
  .author-links {
    justify-content: center;
  }
}

/* Related Posts */
.related-posts {
  margin-top: 3rem;
  padding: 2rem 0;
  border-top: 2px solid #f1f5f9;
}

.related-posts h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

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

.related-post-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
}

.related-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-post-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.related-post-card h4 a {
  color: #1e293b;
  text-decoration: none;
  line-height: 1.4;
}

.related-post-card h4 a:hover {
  color: #2563eb;
}

.related-post-meta {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.8rem;
}

.related-post-card p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* About Page */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 0;
}

.profile-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.profile-text {
  flex: 1;
  text-align: left;
}

@media (max-width: 768px) {
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-text {
    text-align: center;
  }
}

.about-content h2 {
  font-size: 2rem;
  margin: 2rem 0 1rem 0;
  color: #2c3e50;
}

.about-content h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
  color: #2c3e50;
}

.about-content p, .about-content li {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1rem;
}

.about-content ul, .about-content ol {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.about-content blockquote {
  border-left: 4px solid #3498db;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #666;
}

/* CTA Section */
.cta {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.9) 0%, rgba(30, 58, 138, 0.85) 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.06)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================================
   記事内メディア用スタイル
   ====================================== */

/* 記事内画像の基本スタイル */
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 1.5rem 0;
}

/* 記事内動画の基本スタイル */
.post-content video {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5rem 0;
}

/* YouTube埋め込み用コンテナ */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 アスペクト比 */
  height: 0;
  overflow: hidden;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

/* figure要素（キャプション付き画像） */
.post-content figure {
  margin: 2rem 0;
  text-align: center;
}

.post-content figcaption {
  margin-top: 0.8rem;
  font-style: italic;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 画像の並列表示用 */
.image-comparison {
  display: flex;
  gap: 1.5rem;
  margin: 2rem 0;
}

.image-comparison > div {
  flex: 1;
}

.image-comparison img {
  width: 100%;
  margin: 0.5rem 0;
}

.image-comparison p {
  text-align: center;
  font-weight: 500;
  margin: 0.5rem 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .image-comparison {
    flex-direction: column;
    gap: 1rem;
  }
  
  .video-container {
    margin: 1rem 0;
  }
  
  .post-content img,
  .post-content video {
    margin: 1rem 0;
  }
}

/* Footer */
.footer {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  color: white;
  padding: 60px 0 30px 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
  margin-bottom: 1.5rem;
  color: #f1f5f9;
  font-weight: 600;
}

.footer-section p {
  color: #cbd5e0;
  line-height: 1.7;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #2563eb;
}

.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

/* Contact page specific styles */
.contact-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.contact-features .feature {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-features .feature:hover {
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.95);
}

/* Responsive for contact features */
@media (max-width: 1024px) {
  .contact-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-features {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .nav-container {
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
  }
  
  /* ハンバーガーボタンを表示 */
  .nav-toggle {
    display: flex;
  }
  
  /* ナビゲーションメニューを隠す */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(26, 54, 93, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    padding-top: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  
  /* アクティブ時にメニューを表示 */
  .nav-menu-active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  
  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
  }
  
  .container {
    padding: 0 20px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero .subtitle {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .post-title {
    font-size: 2rem;
  }
  
  .features {
    grid-template-columns: 1fr;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
  
  /* スマホ表示時のタグサイズ調整 */
  .tag {
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    margin-right: 0.4rem;
    margin-bottom: 0.25rem;
  }
  
  .post-tags {
    margin-top: 0.5rem;
  }
  
  /* スマホ表示で改行を表示 */
  .mobile-br {
    display: inline;
  }
}
