@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* Colors - Light Blue Theme */
  --primary-color: #5c8dc2;        /* 落ち着いた薄い青 */
  --secondary-color: #8bb3db;      /* さらに薄い青（アクセント） */
  --accent-color: #d1e3f8;         /* 背景やかすかな装飾用の極薄い青 */
  --text-dark: #333333;            /* 基本テキスト色 */
  --text-light: #777777;           /* サブテキスト色 */
  --bg-light: #fdfdfd;             /* 背景色（完全な白より少し柔らかく） */
  --bg-offwhite: #f5f8fa;          /* セクションごとの背景切り替え用 */
  --white: #ffffff;
  
  /* Typography */
  --font-family: 'Noto Sans JP', sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
  
  /* Animation / Transition */
  --transition-fast: 0.3s ease;
  --transition-normal: 0.5s ease;
  --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul {
  list-style: none;
}

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

/* =========================================================================
   Typography & Utility Classes
   ========================================================================= */
.section-title {
  text-align: center;
  font-size: 3.6rem;
  font-weight: 700;
  margin-bottom: 6rem;
  position: relative;
  letter-spacing: 0.05em;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: 10rem 0;
}

.bg-offwhite {
  background-color: var(--bg-offwhite);
}

/* =========================================================================
   Preloader
   ========================================================================= */
#preloader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background-color: #ffffff; /* アニメーション時画面真っ白に */
  z-index: 9999;
  display: flex; justify-content: center; align-items: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.loader-logo-img {
  width: 320px; /* 画面全体でインパクトが出るように大きく */
  height: auto;
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

/* =========================================================================
   Dynamic Elements (Animations)
   ========================================================================= */
/* Fade in from bottom */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fade in scale */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* =========================================================================
   Header & Navigation
   ========================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: height var(--transition-fast), background-color var(--transition-fast);
}

.header.scrolled {
  height: 70px;
  background-color: rgba(255, 255, 255, 0.98);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header__logo a {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}
.header__logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.1em;
}

.nav__list {
  display: flex;
  gap: 3rem;
}

.nav__item a {
  font-weight: 500;
  font-size: 1.5rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav__item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav__item a:hover::after {
  width: 100%;
}

/* Hamburger Menu (Mobile) */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  transition: all var(--transition-fast);
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* =========================================================================
   Hero / MV
   ========================================================================= */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-light);
}

.myHeroSwiper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.myHeroSwiper .swiper-slide {
  background-size: cover;
  background-position: center;
  transform: scale(1); /* Reset */
}

/* 画像が少しずつズームインするアニメーション */
.myHeroSwiper .swiper-slide-active {
  animation: bgZoomSwiper 8s linear forwards;
}

@keyframes bgZoomSwiper {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(245, 248, 250, 0.7) 0%, rgba(209, 227, 248, 0.5) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero__content {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  /* fade-in-up class handles its own translateY init, we must override it here because it conflicts with standard centering transform */
}

.hero__content.fade-in-up {
  transform: translate(-50%, -30%);
}
.hero__content.fade-in-up.active {
  transform: translate(-50%, -50%);
}

.swiper-pagination-bullet {
  background: var(--primary-color) !important;
  opacity: 0.5 !important;
}
.swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
  opacity: 1 !important;
}

.hero__title {
  font-size: 5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

.hero__subtitle {
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* =========================================================================
   Message
   ========================================================================= */
.message__wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.message__lead {
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 4rem;
  line-height: 1.6;
}

.message__text {
  font-size: 1.6rem;
  text-align: left;
}

/* =========================================================================
   Our Business
   ========================================================================= */
.business__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.business__card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(92, 141, 194, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  position: relative;
}

.business__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(92, 141, 194, 0.2);
}

.business__card-img {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
}

.business__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.business__card:hover .business__card-img img {
  transform: scale(1.05);
}

/* 各事業ごとのダミー背景 */
.img-rentacar {
  background: url('https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}
.img-salon {
  /* Hair removal / clean aesthetic clinic */
  background: url('https://images.unsplash.com/photo-1515377905703-c4788e51af15?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}
.img-restaurant {
  /* Cozy small Asian restaurant / Izakaya style */
  background: url('https://images.unsplash.com/photo-1498654896293-37aacf113fd9?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80') center/cover;
}

.business__card-content {
  padding: 3rem;
}

.business__card-title {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.business__card-text {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.business__card-link {
  display: inline-flex;
  align-items: center;
  color: var(--secondary-color);
  font-weight: 500;
  font-size: 1.4rem;
  transition: color var(--transition-fast);
}

.business__card-link::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform var(--transition-fast);
}

.business__card:hover .business__card-link {
  color: var(--primary-color);
}
.business__card:hover .business__card-link::after {
  transform: translateX(5px);
}

/* =========================================================================
   News
   ========================================================================= */
.news__list {
  max-width: 800px;
  margin: 0 auto;
}

.news__item {
  border-bottom: 1px solid var(--accent-color);
}

.news__item a {
  display: flex;
  padding: 2.5rem 0;
  align-items: center;
  transition: background-color var(--transition-fast);
}

.news__item a:hover {
  background-color: var(--bg-offwhite);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  border-radius: 8px;
}

.news__date {
  font-size: 1.4rem;
  color: var(--secondary-color);
  width: 120px;
  flex-shrink: 0;
}

.news__category {
  font-size: 1.2rem;
  background-color: var(--accent-color);
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-right: 2rem;
  font-weight: 500;
}

.news__title {
  font-size: 1.6rem;
  font-weight: 500;
  flex-grow: 1;
}

/* =========================================================================
   Company
   ========================================================================= */
.company__table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company__table th,
.company__table td {
  padding: 2rem;
  border-bottom: 1px solid var(--accent-color);
  text-align: left;
}

.company__table th {
  width: 30%;
  font-weight: 500;
  color: var(--primary-color);
  background-color: var(--bg-offwhite);
}

/* =========================================================================
   Contact & Footer
   ========================================================================= */
.contact {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  background-color: var(--white);
}

.contact__text {
  font-size: 1.8rem;
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 1.5rem 5rem;
  background-color: var(--white);
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
}

.footer {
  background-color: #2c3e50;
  color: #aeb6bf;
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer__logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.footer__nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__nav a:hover {
  color: var(--white);
}

.footer__copy {
  font-size: 1.2rem;
  border-top: 1px solid #34495e;
  padding-top: 2rem;
}

/* =========================================================================
   Responsive Styles
   ========================================================================= */
@media screen and (max-width: 900px) {
  .business__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .section-title {
    font-size: 2.8rem;
    margin-bottom: 4rem;
  }
  
  section {
    padding: 6rem 0;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    background-color: rgba(92, 141, 194, 0.95); /* primary-color with opacity */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-normal);
    box-shadow: none;
    z-index: 999;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    right: auto;
  }

  .nav__list {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
  }
  
  .nav__item a {
    color: var(--white);
    font-size: 2.6rem;
    font-weight: 700;
  }
  
  .nav__item a::after {
    background-color: var(--white);
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hamburger.active span {
    background-color: var(--white);
  }

  .hero__title {
    font-size: 3.6rem;
  }

  .hero__subtitle {
    font-size: 1.6rem;
  }

  .business__cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .news__item a {
    flex-direction: column;
    align-items: flex-start;
  }

  .news__date-cat {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
  }

  .company__table th, .company__table td {
    display: block;
    width: 100%;
  }
  .company__table th {
    border-bottom: none;
    padding-bottom: 0.5rem;
  }
  .company__table td {
    padding-top: 0;
    margin-bottom: 1rem;
  }
}

/* =========================================================================
   Subpage Common Styles
   ========================================================================= */
.subpage-hero {
  padding-top: calc(var(--header-height) + 50px);
  padding-bottom: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
}

.subpage-hero__title {
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.subpage-hero__subtitle {
  font-size: 1.6rem;
  opacity: 0.8;
}

.subpage-content {
  padding: 8rem 0;
}

.btn-center {
  text-align: center;
  margin-top: 5rem;
}

.btn-secondary {
  display: inline-block;
  padding: 1.2rem 4rem;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(92, 141, 194, 0.2);
}

/* =========================================================================
   Service Page Enhancements
   ========================================================================= */
.service-section {
  padding: 10rem 0;
}

.service-header {
  text-align: center;
  margin-bottom: 6rem;
}

.service-header__title {
  font-size: 3.6rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.service-header__lead {
  font-size: 1.8rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 5rem;
}

.service-card {
  background: var(--bg-offwhite);
  padding: 4rem 3rem;
  border-radius: 12px;
  text-align: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-10px);
  background: var(--white);
  box-shadow: 0 15px 30px rgba(92, 141, 194, 0.1);
}

.service-card__icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.service-card__title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.service-card__text {
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =========================================================================
   Recruit Snippet (for index.html)
   ========================================================================= */
.recruit-snippet {
  text-align: center;
}

.recruit-snippet__lead {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* =========================================================================
   FAQ / Accordion
   ========================================================================= */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--accent-color);
  margin-bottom: 1rem;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-align: left;
  padding: 2rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}
.faq-question:hover {
  color: var(--secondary-color);
}
.faq-icon {
  font-size: 2.8rem;
  font-weight: 300;
  transition: transform var(--transition-fast);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 2rem;
}
.faq-answer p {
  font-size: 1.5rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* Service Enhancements Mobile */
@media screen and (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

