/* index.css（トップページ専用） */

/* ヒーローセクション */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  overflow: hidden;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* フェード用のopacity, transitionを削除 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  /* opacity, z-indexの指定を削除 */
  z-index: 1;
  display: flex;
}

.hero-slide:not(.active) {
  display: none;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out 0.5s;
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: "Shippori Mincho", serif;
  font-size: 3.5em;
  font-style: normal;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
}

.hero-subtitle {
  font-family: "Caveat", cursive;
  font-size: 3.5em;
  font-style: normal;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
  /*font-weight: bold;*/
}

.hero-cta {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px 40px;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.hero-cta:hover {
  background: white;
  color: #1462b1;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* スライドナビゲーション */
.slide-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 3;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background: white;
  transform: scale(1.2);
}

/* 矢印ナビゲーション */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 2em;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.slide-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slide-arrow.prev {
  left: 30px;
}

.slide-arrow.next {
  right: 30px;
}

/* 単一画像表示用のスタイル */
.hero-section.single-image .hero-slideshow {
  /* スライドショー機能を無効化 */
}

.hero-section.single-image .hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  opacity: 1 !important;
  z-index: 1;
}

.hero-section.single-image .hero-slide.active {
  display: flex !important;
  opacity: 1 !important;
  z-index: 1;
}

.hero-section.single-image .hero-slide:not(.active) {
  display: none !important;
}

.hero-section.single-image .slide-dots,
.hero-section.single-image .slide-arrow {
  display: none !important;
}

/* 単一画像表示時のコンテンツ表示 */
.hero-section.single-image .hero-content {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* デバッグ用：単一画像表示時の背景色を追加 */
.hero-section.single-image {
  background-color: #f0f0f0;
}

.hero-section.single-image .hero-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 0 !important;
  display: block !important;
  opacity: 1 !important;
}

/* 情報セクション */
.info {
  padding: 30px 20px 60px 20px;
}

.info h2 {
  font-size: 3em;
  margin-bottom: 20px;
  text-align: center;
}

.info p {
  text-align: center;
  font-size: 1.5em;
}

.info img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  margin: 0 auto 15px auto;
  display: block;
}

/* 企業理念・メッセージセクション */
.philosophy-message {
  padding: 80px 0;
  background-color: #0d387c;
}

.message-section {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  background: white;
  padding: 60px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.message-content {
  flex: 1;
}

/* 経営理念セクション */
.philosophy-section {
  margin-bottom: 50px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f1f3f4;
}

.philosophy-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-family: 'Shippori Mincho', serif;
}

.philosophy-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 350px;
  height: 3px;
  background: linear-gradient(90deg, #1462b1, #3498db);
  border-radius: 2px;
}

.philosophy-main-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 15px;
  line-height: 1.2;
  font-style: italic;
}

.philosophy-subtitle {
  font-size: 1.2rem;
  color: #000000;
  line-height: 1.6;
  font-family: 'Shippori Mincho', serif;
}

/* 経営方針セクション */
.policy-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-family: 'Shippori Mincho', serif;
}

.policy-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 350px;
  height: 3px;
  background: linear-gradient(90deg, #1462b1, #3498db);
  border-radius: 2px;
}

.policy-section h4 {
  font-family: 'Shippori Mincho', serif;
  font-size: 2rem;
  color: #000000;
  margin-bottom: 25px;
  font-weight: 500;
  font-style: italic;
}

.policy-section p {
  color: #000000;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.2rem;
  font-family: 'Shippori Mincho', serif;
}

.message-signature {
  margin-top: 30px;
  text-align: right;
  color: #000000;
  font-family: 'Shippori Mincho', serif;
}

.message-signature span {
  display: block;
}

.message-signature span:first-child {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.message-signature span:last-child {
  font-size: 1.5rem;
  font-weight: 600;
}

.message-image {
  flex-basis: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

/* Newsセクション */
.news {
  background-color: rgba(64, 190, 248, 0.082);
  padding: 60px 20px;
}

.news h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.news-list {
  margin-top: 40px;
}

.news-item {
  display: flex;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 15px;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item time {
  color: #666;
  font-size: 0.9em;
  min-width: 100px;
}

.news-category {
  background-color: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: bold;
}

.news-title {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 500;
  flex: 1;
  min-width: 200px;
}

.news-title:hover {
  color: #3498db;
  text-decoration: underline;
}

.news-more {
  text-align: center;
  margin-top: 40px;
}

.btn-more {
  display: inline-block;
  background-color: #3498db;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-more:hover {
  background-color: #2980b9;
}

/* 取り組みセクション */
.initiatives {
  background-color: #1462b1e0;
  padding: 60px 20px;
}

.initiatives h2 {
  color: white;
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.initiative-item:hover {
  transform: translateY(-5px);
}

.initiative-item h3 {
  color: #2c3e50;
  font-size: 1.3em;
  margin-bottom: 15px;
  border-left: 4px solid #3498db;
  padding-left: 15px;
}

.initiative-item p {
  line-height: 1.7;
  color: #555;
}

/* お問い合わせセクション */
.contact {
  padding: 60px 20px;
}

.contact h2 {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
}

/* レスポンシブ対応 */
@media (max-width: 992px) {
  .message-section {
    flex-direction: column;
    align-items: center;
    padding: 40px;
    gap: 40px;
  }
  .message-image {
    width: 100%;
    max-width: 350px;
  }
  .philosophy-main-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* ヒーロー */
  .hero-section {
    height: 80vh;
    min-height: auto;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 2.2rem;
  }
  .hero-cta {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  .hero-arrow {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
  .hero-prev {
    left: 15px;
  }
  .hero-next {
    right: 15px;
  }

  /* 情報セクション */
  .info h2, .news h2, .initiatives h2, .contact h2 {
    font-size: 1.6rem;
  }
  .info p {
    font-size: 1rem;
  }
  .info img {
    max-width: 100%;
  }

  /* 理念・メッセージセクション */
  .philosophy-message {
    padding: 60px 0;
  }
  .message-section {
    padding: 30px;
  }
  .philosophy-section h2, .policy-section h2 {
    font-size: 1.5rem;
  }
  .philosophy-main-title {
    font-size: 2.5rem;
  }
  .philosophy-subtitle {
    font-size: 1rem;
  }
  .policy-section h4 {
    font-size: 1rem;
  }
  .policy-section p {
    font-size: 0.95rem;
  }

  /* News */
  .news-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .news-item time {
    min-width: auto;
  }

  /* 取り組み */
  .initiatives-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .initiative-item {
    padding: 25px;
  }
  .initiative-item h3 {
    font-size: 1.2rem;
  }

  .workflow-image-container {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  /* ヒーロー */
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1.0rem;
    margin-bottom: 30px;
  }
  .hero-arrow {
    width: 40px;
    height: 40px;
  }
  .hero-nav {
    bottom: 20px;
  }
}

.workflow-image-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid #005f9e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.workflow-text h3 {
    font-size: 1.2rem;
}

/* フェードイン・アウトエフェクト */
.hero-slideshow.fade-effect .hero-slide {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slideshow.fade-effect .hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slideshow.fade-effect .hero-slide:not(.active) {
  pointer-events: none;
}
