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

body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #000;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #000, #333);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.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 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(1deg);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  opacity: 0;
  animation: fadeInUp 1s ease 0.5s forwards;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 1s ease 1.1s forwards;
  backdrop-filter: blur(10px);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

/* Sections */
.section {
  padding: 5rem 2rem;
}

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

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #000 0%, #333 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.about-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
  text-align: center;
}

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

.stat-box {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #666;
  font-size: 0.9rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.mission-box,
.vision-box {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.mission-box {
  border-left: 4px solid #000;
}

.vision-box {
  border-left: 4px solid #333;
}

.mission-box h3,
.vision-box h3 {
  color: #000;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.mission-box p,
.vision-box p {
  color: #666;
  line-height: 1.6;
}

/* Solutions Section */
.solutions {
  background: white;
}

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

.solution-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.solution-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #000, #333);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon span {
  color: white;
  font-size: 1.5rem;
}

.solution-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.solution-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.solution-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.solution-features span {
  background: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #666;
}

/* News Section */
.news {
  background: #f8fafc;
}

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

.news-item {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.news-date {
  color: #000;
  font-weight: 600;
  margin-bottom: 1rem;
}

.news-category {
  display: inline-block;
  background: linear-gradient(135deg, #000, #333);
  color: white;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.news-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.news-item p {
  color: #666;
  line-height: 1.6;
}

/* Topics Section */
.topics {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  /* 等しい高さにするためのCSS Grid設定 */
  align-items: stretch;
}

.topic-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  /* フレックスボックスで内容を配置 */
  display: flex;
  flex-direction: column;
  height: 100%; /* 親コンテナの高さに合わせる */
}

.topic-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  color: #333;
  text-decoration: none;
}

.topic-image {
  height: 200px;
  background: linear-gradient(135deg, #000, #333);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  flex-shrink: 0; /* 画像部分のサイズを固定 */
}

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

.topic-image span {
  font-size: 1.5rem;
}

.topic-content {
  padding: 2rem;
  /* フレックスで残りの空間を埋める */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topic-year {
  color: #000;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.topic-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  flex-shrink: 0;
}

.topic-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  /* フレックスで伸縮可能にして、残りの空間を埋める */
  flex: 1;
}

/* 新しく追加: topic-features（タグ部分） */
.topic-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto; /* 下に配置 */
}

.topic-features span {
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  color: #555;
  font-weight: 500;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
}

.topic-item:hover .topic-features span {
  background: linear-gradient(135deg, #e8e8e8, #d8d8d8);
  border-color: #d0d0d0;
  color: #333;
}

/* リンクのスタイルをリセット */
a.topic-link {
  text-decoration: none;
  color: inherit;
}

a.topic-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .topic-content {
    padding: 1.5rem;
  }
  
  .topic-features {
    gap: 0.3rem;
  }
  
  .topic-features span {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
}

/* Company Profile */
.company-profile {
  background: #f8fafc;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}

.profile-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.profile-section p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.company-table th,
.company-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
}

.company-table th {
  background: linear-gradient(135deg, #000, #333);
  color: white;
  font-weight: 600;
  width: 30%;
}

/* Management Section */
.management-section {
  margin-top: 4rem;
}

.management-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
  text-align: center;
}

.consultant-profile {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.consultant-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 1rem;
}

.consultant-history {
  color: #666;
  line-height: 1.6;
}

.consultant-history p {
  margin-bottom: 1rem;
}

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

.consultant-history table td:first-child {
  font-weight: 600;
  color: #000;
  width: 120px;
  vertical-align: top;
  padding-right: 1rem;
}

/* Footer */
footer {
  background: #1a1a1a;
  color: white;
  text-align: center;
  padding: 3rem 2rem;
}

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

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-subtitle {
  margin-bottom: 2rem;
  color: #ccc;
}

.footer-copyright {
  border-top: 1px solid #333;
  padding-top: 2rem;
  margin-top: 2rem;
}

.footer-copyright p {
  color: #666;
}

/* Scroll animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 3rem 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .header-content {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 1.5rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-vision {
    grid-template-columns: 1fr;
  }

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

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

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

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

a {
  text-decoration: none;
  color: #333 !important;
}

/* News Section Additional Styles */

/* Additional News - 最初は非表示 */
.additional-news {
  display: none;
  animation: fadeInDown 0.5s ease forwards;
}

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

/* More Button Center */
.more-btn-center {
  text-align: center;
  margin-top: 3rem;
}

.more-btn {
  background: linear-gradient(135deg, #000, #333);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.more-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.more-btn:hover::before {
  left: 100%;
}

.more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #333, #555);
}

.more-btn:active {
  transform: translateY(-1px);
}

/* News Item Button Alignment */
.news-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-category {
  align-self: flex-start;
  width: auto;
  flex-shrink: 0;
}

.news-item h3 {
  flex-grow: 1;
  margin-bottom: 1rem;
}

.news-item center {
  margin-top: auto;
  padding-top: 1rem;
}

/* Video Play Button (既存のボタンスタイル改良) */
.video-play-btn {
  background: linear-gradient(135deg, #000, #333);
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-decoration: none;
  display: inline-block;
}

.video-play-btn:hover {
  background: linear-gradient(135deg, #333, #555);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Fade In Down Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Button Loading State */
.more-btn.loading {
  opacity: 0.7;
  cursor: wait;
}

.more-btn.loading::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .additional-news.show {
    grid-template-columns: 1fr;
  }
  
  .more-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}


/* Solution Card Image Support */
.solution-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Solution Card Image - Full width */
.solution-card-image {
  width: calc(100% + 4rem); /* カードのpaddingを相殺 */
  height: 200px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  margin: -2rem -2rem 1.5rem -2rem; /* カードの端から端まで */
}

.solution-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.3s ease;
}

.solution-card:hover .solution-card-image img {
  transform: scale(1.05);
}

/* Alternative: Icon with background image */
.solution-icon.with-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.solution-icon.with-bg-image span {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-link {
  display: inline-block;
  width: 20%;       /* 親コンテナに対して20%の幅 */
}

.home-link img {
  width: 100%;      /* aタグ幅に合わせて常にフィット */
  height: 50px;     /* 希望する高さに設定（例：50px） */
  object-fit: contain; /* 画像の縦横比を保持しつつフィット */ 
}