/* ===================================
   リセット & 基本設定
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  overflow-x: hidden;
}

/* ローディング中はスクロールを無効化 */
body.loading {
  overflow: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

/* ===================================
   ヘッダー
   =================================== */
.site-header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
  transition: color 0.3s ease;
}

.logo-link:hover h1 {
  color: #3498db;
}

.logo-image {
  height: 50px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.logo-image:hover {
  opacity: 0.8;
}

.main-navigation ul {
  display: flex;
  gap: 2rem;
}

.main-navigation a {
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-navigation a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3498db;
  transition: width 0.3s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* モバイル対応（ヘッダー） */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .logo-image {
    height: 40px;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .logo-link {
    gap: 0.5rem;
  }
}

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

/* Swiperカルーセル用スタイル */
.hero-swiper {
  width: 100%;
  height: 100%;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
}

/* Swiperページネーションのスタイル */
.hero-swiper .swiper-pagination {
  bottom: 30px;
  z-index: 10;
}

.hero-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #fff;
  width: 30px;
  border-radius: 6px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  text-align: center;
  color: #fff;
  padding: 2rem;
  max-width: 800px;
  z-index: 10;
  opacity: 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.25rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.8;
}

/* タブレット対応（ヒーロー） */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

/* モバイル対応（ヒーロー） */
@media (max-width: 768px) {
  .hero-section {
    height: 70vh;
    min-height: 500px;
    max-height: 700px;
  }

  .hero-title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

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

  .hero-content {
    padding: 1.5rem;
  }
  
  .hero-swiper .swiper-pagination {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    height: 60vh;
    min-height: 400px;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
  }
  
  .hero-swiper .swiper-pagination {
    bottom: 15px;
  }
  
  .hero-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .hero-swiper .swiper-pagination-bullet-active {
    width: 20px;
  }
}

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

/* ===================================
   代表メッセージセクション
   =================================== */
.message-section {
  padding: 5rem 0;
  background-color: #fff;
}

.message-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.message-image {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.representative-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  display: block;
}

.message-content {
  padding-top: 1rem;
}

.message-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.representative-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #3498db;
  margin-bottom: 2rem;
}

.company-logo {
  background-color: #f5f6fa;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.message-text,
.company-overview {
  font-size: 1rem;
  line-height: 2;
  color: #666;
}

.message-text p,
.company-overview p {
  margin-bottom: 1.5rem;
}

.message-text p:last-child,
.company-overview p:last-child {
  margin-bottom: 0;
}

.company-highlights {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #2c3e50;
  font-weight: 500;
}

.company-highlights li {
  list-style: disc inside;
}

.company-cta {
  margin-top: 1.5rem;
}

/* 企業沿革 */
.company-history {
  margin: 1.5rem 0;
}

.history-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: #666;
  line-height: 1.8;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.history-list.collapsed {
  max-height: 120px;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black 70%,
    transparent 100%
  );
}

.history-list.expanded {
  max-height: 1000px;
  mask-image: none;
  -webkit-mask-image: none;
}

.history-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.history-year {
  font-weight: bold;
  color: #2c3e50;
  min-width: 60px;
  flex-shrink: 0;
}

.history-toggle-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: transparent;
  color: #3498db;
  border: 1px solid #3498db;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-toggle-btn:hover {
  background-color: #3498db;
  color: #fff;
}

.history-toggle-btn:active {
  transform: scale(0.98);
}

/* モバイル対応（代表メッセージ） */
@media (max-width: 768px) {
  .message-section {
    padding: 3rem 0;
  }

  .message-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .message-image {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .message-content {
    order: 2;
    padding-top: 0;
  }

  .message-title {
    font-size: 1.75rem;
  }

  .representative-name {
    font-size: 1rem;
  }

  .message-text {
    text-align: left;
    font-size: 0.95rem;
  }

  .representative-image {
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }
}

/* ===================================
   事業紹介セクション
   =================================== */
.business-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: #2c3e50;
}

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

.business-card {
  background-color: #fff;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.business-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

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

.btn-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background-color: #3498db;
  color: #fff;
  border-radius: 4px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn-link:hover {
  background-color: #2980b9;
  opacity: 1;
}

/* モバイル対応（事業紹介） */
@media (max-width: 768px) {
  .business-section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .business-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .business-card {
    padding: 2rem;
  }
}

/* ===================================
   フッター
   =================================== */
.site-footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 3rem 0 1rem;
}

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

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #fff;
}

.footer-section h3 {
  font-size: 1.25rem;
}

.footer-section h4 {
  font-size: 1rem;
  font-weight: 600;
}

.footer-section p {
  margin-bottom: 0.5rem;
  color: #bdc3c7;
}

.footer-representative-link {
  color: #bdc3c7;
  text-decoration: underline;
}

.footer-representative-link:hover {
  color: #fff;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-section ul a {
  color: #bdc3c7;
  transition: color 0.3s ease;
}

.footer-section ul a:hover {
  color: #fff;
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #34495e;
  color: #95a5a6;
  font-size: 0.9rem;
}

/* モバイル対応（フッター） */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2rem 0 1rem;
  }
}

/* ===================================
   コンテンツセクション
   =================================== */
.content-section {
  padding: 5rem 0;
}

.content-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.section-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

/* ===================================
   画像ショーケースセクション
   =================================== */
.image-showcase {
  margin: 4rem 0;
}

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

.image-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.showcase-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.image-caption {
  padding: 2rem;
  background-color: #fff;
}

.image-caption h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.image-caption p {
  color: #666;
  line-height: 1.8;
}

/* モバイル対応（画像ショーケース） */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .showcase-image {
    height: 300px;
  }

  .image-caption {
    padding: 1.5rem;
  }
}

/* ===================================
   特徴セクション
   =================================== */
.features-section {
  margin-top: 5rem;
  padding-top: 5rem;
  border-top: 1px solid #e0e0e0;
}

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

.feature-card {
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.feature-card p {
  color: #666;
  line-height: 1.8;
}

/* モバイル対応（特徴セクション） */
@media (max-width: 768px) {
  .features-section {
    margin-top: 3rem;
    padding-top: 3rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* ===================================
   アクティブなナビゲーションリンク
   =================================== */
.main-navigation a.active {
  color: #3498db;
  font-weight: 600;
}

.main-navigation a.active::after {
  width: 100%;
}

/* ===================================
   ページヘッダー
   =================================== */
.page-header {
  background-color: #f8f9fa;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid #e0e0e0;
}

.page-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.page-description {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* モバイル対応（ページヘッダー） */
@media (max-width: 768px) {
  .page-header {
    padding: 3rem 0 2rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .page-description {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

/* ===================================
   お問い合わせフォーム
   =================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-form-section {
  background-color: #fff;
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-section {
  background-color: #f8f9fa;
  padding: 2.5rem;
  border-radius: 8px;
  height: fit-content;
}

.contact-info-section .section-title {
  font-size: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
  white-space: nowrap;
  word-break: keep-all;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
}

.required {
  color: #e74c3c;
  margin-left: 0.25rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #666;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  cursor: pointer;
}

.form-checkbox a {
  color: #3498db;
  text-decoration: underline;
}

.form-submit {
  margin-top: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

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

.btn-submit:active {
  transform: scale(0.98);
}

/* モバイル対応（お問い合わせフォーム） */
@media (max-width: 1024px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .contact-form-section,
  .contact-info-section {
    padding: 2rem;
  }
}

/* ===================================
   お問い合わせ先情報
   =================================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.info-item p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.info-note {
  font-size: 0.9rem;
  color: #999;
}

.info-item .link-text {
  color: #3498db;
  text-decoration: underline;
}

/* ===================================
   アクセスポージ
   =================================== */
.access-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.access-info {
  margin-bottom: 3rem;
}

.address-box {
  background-color: #f8f9fa;
  padding: 2rem;
  border-radius: 8px;
  margin-top: 1.5rem;
}

.address-label {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.address-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.access-transport {
  margin-bottom: 3rem;
}

.transport-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e0e0e0;
}

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

.transport-item h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.transport-list {
  list-style: none;
  padding-left: 0;
}

.transport-list li {
  padding: 0.75rem 0;
  line-height: 1.8;
  color: #666;
}

.transport-list li strong {
  color: #2c3e50;
}

.access-map {
  margin-top: 3rem;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
  color: #999;
  padding: 2rem;
  font-style: italic;
}

.map-container iframe {
  width: 100%;
  height: 450px;
  border: none;
}

/* モバイル対応（アクセス） */
@media (max-width: 768px) {
  .address-box {
    padding: 1.5rem;
  }

  .map-container {
    min-height: 300px;
  }

  .map-container iframe {
    height: 300px;
  }
}

/* ===================================
   プライバシーポリシー
   =================================== */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
}

.policy-section {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
}

.policy-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.policy-section h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #2c3e50;
}

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

.policy-list {
  list-style: disc;
  padding-left: 2rem;
  margin: 1rem 0;
}

.policy-list li {
  line-height: 1.8;
  color: #666;
  margin-bottom: 0.5rem;
}

.contact-box {
  background-color: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.contact-box p {
  margin: 0;
  line-height: 1.8;
  color: #333;
}

.policy-date {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #999;
  font-style: italic;
}

/* モバイル対応（プライバシーポリシー） */
@media (max-width: 768px) {
  .policy-section h2 {
    font-size: 1.3rem;
  }

  .policy-list {
    padding-left: 1.5rem;
  }
}

/* ===================================
   ローディングアニメーション
   =================================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.loader-text {
  position: absolute;
  bottom: 30%;
  font-size: 1rem;
  color: #666;
  font-weight: 500;
}

/* ===================================
   Hero画像アニメーション
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ローディング完了後にアニメーションを開始 */
body.loading .hero-section,
body.loading .hero-content {
  animation: none !important;
  opacity: 0;
}

body:not(.loading) .hero-section {
  animation: fadeInUp 1.5s ease 0.3s forwards;
}

body:not(.loading) .hero-content {
  animation: fadeInUp 1.5s ease 0.8s forwards;
}

/* ===================================
   スクロールアニメーション
   =================================== */
.scroll-animate {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-animate.animate {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-delay-1 {
  transition-delay: 0.15s;
}

.scroll-animate-delay-2 {
  transition-delay: 0.3s;
}

.scroll-animate-delay-3 {
  transition-delay: 0.45s;
}

/* セクション単位のアニメーション（横からのスライド） */
.section-scroll-animate {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.section-scroll-animate.animate {
  opacity: 1;
  transform: translateX(0);
}

/* カード単位のアニメーション（横からのスライド） */
.card-scroll-animate {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 1s ease, transform 1s ease;
}

.card-scroll-animate.animate {
  opacity: 1;
  transform: translateX(0);
}

/* 右からのスライドアニメーション（オプション） */
.scroll-animate-from-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s ease, transform 1s ease;
}

.scroll-animate-from-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* セクションタイトルのアニメーション（下から上） */
.section-title.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.section-title.scroll-animate.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   新着情報セクション
   =================================== */
.news-section {
  padding: 80px 0;
  background-color: #f8f9fa;
}

.news-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.news-item {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-date {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 10px;
  font-weight: 500;
}

.news-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
  line-height: 1.4;
}

.news-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  white-space: pre-wrap;
}

.news-author {
  font-size: 0.9rem;
  color: #888;
  text-align: right;
}

.no-news {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

/* アラートメッセージ */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

@media (max-width: 768px) {
  .news-section {
    padding: 60px 0;
  }

  .news-item {
    padding: 20px;
  }

  .news-title {
    font-size: 1.3rem;
  }
}

/* ===================================
   ギャラリーセクション
   =================================== */
.gallery-section {
  margin: 5rem 0;
  padding-top: 5rem;
  border-top: 1px solid #e0e0e0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* モバイル対応（ギャラリー） */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .gallery-section {
    margin: 3rem 0;
    padding-top: 3rem;
  }
}
