/* ========================================
   ヒーローセクション
======================================== */
.hero {
  position: relative;
  height: auto;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 0.2;
  transition: opacity 1s ease;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-color: rgba(245, 245, 245, 0.8);
  z-index: -1;
  transform: skewX(-15deg) translateX(10%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
}

.hero h1 span {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.hero h1 span::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(224, 32, 32, 0.2);
  z-index: -1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards 0.4s;
}

.hero-image {
  flex: 1;
  max-width: 650px;
}

/* ========================================
   ABOUTセクション
======================================== */
.about-section {
  position: relative;
  padding: 180px 0;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}

.about-inner {
  padding: 0 8%;
}

.about-header {
  text-align: center;
  margin-bottom: 120px;
  animation: fadeSlideUp 1.2s ease-out forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.about-title {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

.about-diagonal-section {
  padding: 140px 5vw 80px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "top-left top-right"
    "bottom-left bottom-right";
  gap: 5vw;
  align-items: stretch;
}

.about-block {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: none;
  padding: 0;
  position: relative;
  overflow: visible;
}

.about-block.big {
  height: 100%;
}

.about-block.small {
  font-size: 1.8rem;
  line-height: 2.2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
  background-color: transparent;
}

.about-block p {
  font-size: 1.6rem;
  line-height: 2.1;
  color: inherit;
}

/* 吹き出し風テキストブロック */
.visual-block {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.text-overlay {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: #ffffff;
  background-color: #9b9b9b;
  border-radius: 20px;
  height: 100%;
}

.text-overlay-left {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 95%, 0 100%);
  padding-bottom: 3rem;
}

.text-overlay-right {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 100% 100%, 85% 95%, 0 100%);
  padding-bottom: 3rem;
}

.text-overlay h3 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0.4rem 0;
}

.highlight {
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--primary-light);
  z-index: -1;
}


/* 見出しタイトル */
.result-title {
  font-size: 2.0rem;
  font-weight: 300;
  color: #333;
  line-height: 1.6;
  margin: 40px 0;
  display: inline-block;
  text-align: center;
  transform: translateX(2%);
}

.main-text {
  font-size: 2.0rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 2rem;
}

/* フェードイン系アニメーション */
@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLetter {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 900px) {
  .about-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {

  .about-block p {
    font-size: 1.0rem;
  }

  .result-title {
    font-size: 1.2rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top-left"
      "top-right"
      "bottom-left"
      "bottom-right";
    gap: 40px;
  }

  .text-overlay-left,
  .text-overlay-right {
    clip-path: none;
    border-radius: 16px;
  }

  .about-block.small {
    font-size: 1.5rem;
    line-height: 2;
    padding: 30px 20px;


  }

  .message-inner {
    padding: 2rem 1rem;
    margin-top: 40px;
  }


  .main {
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 2rem;
  }

}

/* パーティクル装飾 */
.particles-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  z-index: 2;
}

.particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(224, 32, 32, 0.4);
  animation: drip 3s infinite;
}

@keyframes drip {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  100% {
    transform: translateY(80px);
    opacity: 0;
  }
}

/* about セクション最下部メッセージ */
.message-inner {
  line-height: 1.6;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.message-inner strong {
  padding-bottom: 2px;
}

.service-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  color: #fff;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.service-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.service-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f0f0f0;
  white-space: pre-line;
  margin-bottom: 16px;
}

.service-link-text {
  font-size: 1rem;
  font-weight: 500;
  color: #f0f0f0;
  opacity: 0.85;
  transition: color 0.3s, opacity 0.3s;
}

.service-card:hover .service-link-text {
  color: var(--primary-color);
  opacity: 1;
}

.service-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 40px;
  align-items: stretch;
}

/* 背景画像指定 */
.strategy-bg {
  background-image: url('../images/common/bg-strategy.JPG');
}

.finance-bg {
  background-image: url('../images/common/bg-finance.JPG');
}

.org-bg {
  background-image: url('../images/common/bg-organization.JPG');
}

@media (max-width: 768px) {

  .services-grid {
    grid-template-columns: 1fr;
    justify-content: center;
    padding: 0 16px;
  }

  .service-card {
    width: 100%;
    max-width: 100%;
  }

}

/* ニュースセクション */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background-color: white;
  border-radius: 6px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.news-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.news-date {
  font-family: 'Poppins', sans-serif;
  min-width: 100px;
  color: #666;
  font-weight: 500;
}

.news-category {
  min-width: 100px;
  text-align: center;
  padding: 4px 12px;
  background-color: rgba(224, 32, 32, 0.1);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.news-title {
  flex: 1;
  margin-left: 20px;
  font-weight: 500;
}

.news-title a {
  transition: var(--transition);
}

.news-title a:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {

  .news-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date,
  .news-category {
    margin-bottom: 6px;
  }

  .news-title {
    margin-left: 0;
  }



}

.topics-section {
  padding: var(--section-padding);
  background-color: #fafafa;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.topic-card {
  position: relative;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--box-shadow);
}

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

.topic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

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

.topic-desc {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 15px;
}

.topic-link {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.topic-link:hover {
  background-color: #fff;
  color: var(--primary-color);
}

/* ========================================
   会社概要・MVV CTAセクション
======================================== */
.about-cta-section,
.mvv-cta-section {
  padding: 120px 0;
  overflow: hidden;
}

.cta-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  padding: 0 5%;
}

.cta-container.reverse {
  direction: rtl; /* 右画像バージョン */
}

.cta-container.reverse .cta-content {
  direction: ltr;
}

.cta-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s ease;
}

.cta-container:hover .cta-image img {
  transform: scale(1.02);
}

.cta-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #222;
}

.cta-text {
  line-height: 1.9;
  color: #333;
  margin-bottom: 2rem;
}

.cta-link {
  display: inline-block;
  color: #e02020;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid #e02020;
  padding-bottom: 2px;
  transition: 0.3s;
}

.cta-link:hover {
  opacity: 0.8;
}

.mvv-cta-section {
  background-color: #f7f7f7;
}

/* フェードスライドアニメーション（スクロール時） */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-container {
  opacity: 0;
  animation: fadeSlide 1s ease forwards;
}

.about-cta-section .cta-container {
  animation-delay: 0.2s;
}

.mvv-cta-section .cta-container {
  animation-delay: 0.4s;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .cta-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cta-container.reverse {
    direction: ltr;
  }

  .cta-image img {
    border-radius: 8px;
  }

  .cta-title {
    font-size: 1.5rem;
  }

  .cta-text {
    font-size: 0.95rem;
  }
}
