/* ========== Basic Styles ======== */
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;
}

.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: 400px;
  text-align: left;
}
/* ========== Basic Styles ======== */



/* ========== 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: #1f1f1fad;
  color: #FFF;
}

.navigation.shrink a {
  color: #FFF;
}
@media (max-width: 768px) {
  .navigation.shrink a { color: #333; }
  .shrink nav .hamburger span { background-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;
}
.has-submenu li a:hover {
  background-color: rgba(51, 51, 51, 0.29);
}
.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: 80vh;
  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-1cfd528db47dc41a606c67b8c38e203b0737d5c1e6ae2f7f53b2b02c4e6a59c7.png);
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position: center 60%; */
  background-attachment: scroll; /* 追加：スクロール時の動作を安定化 */
  animation: zoomPan1 20s ease-in-out infinite alternate;
}

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

.bg-3 {
  background-image: url(/assets/slide/degital01c-91e6bdbb7ccd0031ae436bf1ae0de6b262844df56debb85f9c192422b74cefd6.png);
  background-size: cover;
  background-repeat: no-repeat;
  /* background-position: center bottom; */
  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 60%;
    background-size: 120%;
  }
  50% {
    background-size: 128%;
  }
  100% {
    background-position: center 60%;
    background-size: 136%;
  }
}

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

@keyframes zoomPan3 {
  0% {
    background-position: center top;
    background-size: 120%; /* より大きくして余白を埋める */
  }
  50% {
    background-size: 115%;
  }
  100% {
    background-position: center top;
    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 =============== */

/* ========== Our Vision =========== */
.vision-columns > div.vision-box {
  margin-bottom: 1em;
}
.vision-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  background-color: #fff;
}
@media (min-width: 768px) {
  .vision-columns {
    display: flex;
    gap: 2rem;
  }
}
/* ========== /Our Vision ========== */

#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 ============== */
#services { padding-block: clamp(32px, 6vw, 96px); }

#services .container{
  max-width: min(1280px, 92vw);
  margin-inline: auto;
}

/* 変数で幅とギャップを一元管理 */
#services .services-grid{
  --card-min: 320px;
  --card-max: 400px;
  --gap: clamp(16px, 2.4vw, 28px);

  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-start;   /* 行内は左寄せ */
  margin-inline: auto;           /* かたまりごと中央配置 */
}

/* 各カード：最小320〜最大400 */
#services .service-card,
#services .services-grid > .card{
  flex: 1 1 var(--card-min);
  max-width: var(--card-max);
  text-align: left;
}

/* 768px以下は1カラム固定 */
@media (max-width: 768px){
  #services .service-card,
  #services .services-grid > .card{
    flex: 1 1 100%;
    max-width: 100%;
  }
  /* 幅制限は不要（全幅1列） */
  #services .services-grid{ max-width: none; }
}

/* 769–1199px は“実質2カラム幅”にして中央配置（最終行も左寄せ） */
@media (min-width: 769px) and (max-width: 1199.98px){
  #services .services-grid{
    max-width: calc((var(--card-max) * 2) + var(--gap)); /* 400*2 + gap */
  }
}

/* 1200px以上は“3カラム幅”で中央配置（最終行は左寄せ） */
@media (min-width: 1200px){
  #services .services-grid{
    max-width: calc((var(--card-max) * 3) + (var(--gap) * 2)); /* 400*3 + gap*2 */
  }
}

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


/* ========== About ================ */
.about-image-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 22px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.about-image {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
}
/* ========== /About ============== */









/* ========== Pricing ============== */

/* ========== /Pricing ============= */


/* ========== 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 ========== */

/* ========== Contact Flash ========== */
.contact-alert-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 1rem;
}

.contact-alert {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.contact-alert .alert {
  max-width: 560px;
  width: 100%;
  text-align: center;
  margin: 0;
}
/* ========== /Contact Flash ========== */

/* .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.
 *



 */
