/* Base -------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

ul, li {
  margin: 0;
  padding: 0;
  list-style: none;
}
body{
  font-family:'Zen Kaku Gothic New',sans-serif;
  line-height:1.7;
}

/* ========== Navigation ========== */
.navigation {
  background: #ffffffcf;
  border-bottom: 1px solid #ddd;
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 0;
  padding: 0.8rem 1.5rem;
  transition: padding 0.3s ease;
}
.navigation.shrink {
  padding: 0.2rem 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  background: #212529e0;
  color: #FFF;
}

.navigation.shrink a {
  color: #FFF;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
}

/* --- Main Menu --- */
.nav-menu {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  position: relative;
}
.nav-menu a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #333;
  transition: width 0.3s ease;
}
.nav-menu a:hover {
  color: #007bff;
}
.nav-menu a:hover::after {
  width: 100%;
}

/* --- Submenu --- */
.has-submenu {
  position: relative;
}
.submenu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  min-width: 180px;
  z-index: 999;
  transition: all 0.3s ease;
}
.submenu li {
  margin: 0;
}
.submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  white-space: nowrap;
}
.submenu a:hover {
  background-color: #f0f0f0;
}
.has-submenu:hover > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}
.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 2px;
  transition: all 0.4s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- Responsive --- */
@media (max-width: 768px) {

    .hamburger {
      display: flex;
    }

    .nav-menu {
      display: none;
      flex-direction: column;
      gap: 1rem;
      background: #fff;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      padding: 1rem;
      border-top: 1px solid #eee;
      z-index: 1000;
    }

    .nav-menu.active {
      display: flex;
      animation: slideDown 0.3s ease forwards;
    }

    .has-submenu {
      width: 100%;
    }

    .has-submenu > a {
      display: block;
      width: 100%;
      font-weight: bold;
    }

    .has-submenu .submenu {
      display: none;
      position: static;
      opacity: 1;
      visibility: visible;
      transform: none;
      border: none;
      box-shadow: none;
      padding-left: 1rem;
      margin-top: 0.3rem;
    }

    .has-submenu.active .submenu {
      display: block;
    }

    .nav-menu a::after {
      display: none;
    }
    section.hello .swiper.heroSwiper .swiper-button-prev,
    section.hello .swiper.heroSwiper .swiper-button-next {
      position: absolute;
      top: 277px;
    }
  }

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ========== /Navigation ========== */

/* ========== Hello ================ */
.hello{
  height: 100vh;
  min-height: 400px;
  position: relative;
  color: #fff;
  overflow: hidden;
}

/* Swiper 階層に高さを継承 */
.hello .swiper,
.hello .swiper-wrapper {
  height: 100%;
}
.hello .heroSwiper {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}
/* ---- スライド共通 ---- */
.hello .swiper-slide {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0 !important;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
  /* 追加：確実に親要素の高さを埋める */
  min-height: 100%;
}

/* ---- 表示させるスライド ---- */
.hello .swiper-slide-active,
.hello .swiper-slide-duplicate-active {
  opacity: 1 !important;
  pointer-events: auto;
}

/* 文字用アニメーション */
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hello .fade-slide-h1 {
  opacity: 0;
  animation: fadeSlideDown 1s ease-out forwards;
  animation-delay: 0.3s;
}

.hello .fade-slide-p {
  opacity: 0;
  animation: fadeSlideDown 1s ease-out forwards;
  animation-delay: 0.7s;
}

/* 背景画像の設定を改善 */
.bg-1 {
  background-image: url(/assets/slide/support01c-546aad2adee7893006b218b94a689298626aea363ebbda58341e6109b4116fd5.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll; /* 追加：スクロール時の動作を安定化 */
  animation: zoomPan1 20s ease-in-out infinite alternate;
}

.bg-2 {
  background-image: url(/assets/slide/subsidy01c-61fc97f7382a2a170381edb8d56dc745690782378290a47a25cd33d4ab6508a0.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  animation: zoomPan2 25s ease-in-out infinite alternate;
}

.bg-3 {
  background-image: url(/assets/slide/degital01c-0cd96dd4cf91cff6138d4035fd73ed6c617bea55a84ac12f622c065612462c76.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: scroll;
  animation: zoomPan3 35s ease-in-out infinite alternate;
  /* 3番目の画像専用の調整 */
  min-height: 100%;
}
.wave-shape svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px; /* 滑らかにつなげる */
}
/* アニメーション調整：より安定した動き */
@keyframes zoomPan1 {
  0% {
    background-position: center center;
    background-size: 120%;
  }
  50% {
    background-size: 128%;
  }
  100% {
    background-position: center center;
    background-size: 136%;
  }
}

@keyframes zoomPan2 {
  0% {
    background-position: center center;
    background-size: 125%;
  }
  50% {
    background-size: 135%;
  }
  100% {
    background-position: center center;
    background-size: 145%;
  }
}

@keyframes zoomPan3 {
  0% {
    background-position: center center;
    background-size: 120%; /* より大きくして余白を埋める */
  }
  50% {
    background-size: 115%;
  }
  100% {
    background-position: center center;
    background-size: 125%;
  }
}

/* ナビ類は前面に */
.hello .swiper-pagination {
  z-index: 20;
}
.hello .swiper-button-prev,
.hello .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}
.hello .swiper-button-prev {
  left: 30px;
}
.hello .swiper-button-next {
  right: 30px;
}




/* テキスト影 */
.hello h1,
.hello p {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .6);
}

/* ドットの位置 */
.hello .swiper-pagination {
  bottom: 20px;
}

/* responsive */
@media (max-width: 768px) {
  .hello {
    height: 500px;
    min-height: 350px;
  }
  
  .hello .fade-slide-h1 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .hello .fade-slide-p {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  /* モバイルでのパディング調整 */
  .hello .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .hello {
    height: 350px;
    min-height: 300px;
  }
  
  .hello .fade-slide-h1 {
    font-size: 1.3rem;
  }
  
  .hello .fade-slide-p {
    font-size: 0.9rem;
  }
  section.hello .swiper.heroSwiper .swiper-button-prev,
  section.hello .swiper.heroSwiper .swiper-button-next {
    position: absolute;
    top: 227px;
  }
}

/* 極端に横幅が狭い場合の対応 */
@media (max-width: 390px) {
  .hello {
    height: 300px;
    min-height: 280px;
  }
  
  .hello .fade-slide-h1 {
    font-size: 1.2rem;
  }
  
  .hello .fade-slide-p {
    font-size: 0.85rem;
  }
  
  /* 3番目の画像の特別対応 */
  .bg-3 {
    background-size: 140% !important; /* より大きく表示 */
    background-position: center 30% !important; /* 上寄りに配置 */
  }
  section.hello .swiper.heroSwiper .swiper-button-prev,
  section.hello .swiper.heroSwiper .swiper-button-next {
    position: absolute;
    top: 207px;
  }
}
/* ========== /Hello =============== */

#local-tag {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1rem;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
/* ふわっと出すアニメーションクラス */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}
/* アニメーション定義 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ========== Service ============== */
/* ---------- Service Grid ---------- */
.services-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 428px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* service table */
.service-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.service-table th,
.service-table td {
  padding: 0.75rem;
  border: 1px solid #ccc;
  vertical-align: top;
}
.service-table div.dot-line {
  border-bottom: 1px dotted #999;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex: 0 0 300px;
  max-width: 300px;
  text-align: left;
}

@media (max-width: 768px) {
  .service-table th,
  .service-table td {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
}


/* ========== /Service ============= */


/* ========== Staff =============== */
.staff-photo{
  width:180px;
  height:180px;
  border-radius:50%;
  object-fit:cover;
  object-position:center;
}
/* ========== /Staff ============== */

/* ========== Footer =============== */
/* Footer 初期状態（非表示・下にずらす） */
.fade-in-footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* 表示トリガー時にフェード＋上に移動 */
.fade-in-footer.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 光るホバー効果 */
.footer-brand {
  transition: text-shadow 0.4s ease, color 0.4s ease;
}

.footer-brand:hover {
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
/* ========== /Footer ============== */

/* ========== Scroll top =========== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid #ccc;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-3px);
  background-color: #ffffff;
  color: #000;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.scroll-top svg {
  transition: transform 0.3s ease;
}

.scroll-top:hover svg {
  transform: scale(1.1);
}
/* ========== /Scroll top ========== */

/* .bg-light {
   background-color: #e0f4ff !important;
   } */
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
