/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

a {
  text-decoration: none;
}

/* Container - Updated with Better Mobile Padding */
.container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 601px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1025px) {
  .container {
    padding: 0 80px;
  }
}

/* Typography - Updated Breakpoints */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }

@media (min-width: 601px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
}

/* Header Styles - Updated Breakpoints */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  z-index: 1000;
  height: 60px;
}

.navbar {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 20px;
}

.nav-logo img {
  height: 24px;
  width: auto;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 20px;
  height: 2px;
  background: #333;
  margin: 2px 0;
  transition: 0.3s;
}

/* Desktop Navigation */
.nav-menu {
  display: none;
}

@media (min-width: 1025px) {
  .site-header {
    height: 80px;
  }
  
  .nav-logo img {
    height: 32px;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
  }
  
  .nav-link {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: #0068DE;
  }
}



/* Common Components - Updated Breakpoints */
.home-section-title {
  font-size: 3rem;
  font-weight: 400;
  color: #303030;
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

@media (min-width: 601px) {
  .home-section-title {
    font-size: 4rem;
    text-align: left;
  }
}

.category-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0068DE;
  margin-bottom: 20px;
}

.category-label::before {
  content: "◆";
  margin-right: 8px;
  color: #0068DE;
  font-size: 14px;
}

@media (min-width: 601px) {
  .category-label {
    justify-content: flex-start;
    font-size: 16px;
    margin-bottom: 30px;
  }
}

.cta-button {
  background-color: #0068DE;
  color: white;
  border: none;
  padding: 16px 32px;
  font-size: 16px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.cta-button::after {
  content: "→";
  font-size: 18px;
}

.cta-button:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

/* News Section - Mobile First */
.news-section {
  padding: 60px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #ffffff;
}

.news-left {
  text-align: center;
}

.news-right {
  width: 100%;
}

.news-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
  margin-bottom: 0;
}

.news-meta {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #303030;
  margin-bottom: 10px;
  gap: 12px;
}

.news-tag {
  background-color: transparent;
  color: #0068DE;
  border: 1px solid #0068DE;
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
}

.news-text {
  color: #303030;
  font-size: 16px;
  line-height: 1.6;
}

.news-text a {
  color: #303030;
  transition: color 0.3s ease;
}

.news-text a:hover {
  color: #0068DE;
}

@media (min-width: 768px) {
  .news-section {
    padding: 60px 40px 40px;
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }

  .news-left {
    min-width: 350px;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .news-section {
    padding: 80px 60px 60px;
  }
}

/* About Section - Mobile First */
.about-section {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #ffffff;
}

.about-left {
  text-align: center;
}

.about-right {
  width: 100%;
}

.about-title {
  font-size: 1.25rem;
  font-weight: 400;
  color: #303030;
  margin-bottom: 20px;
  line-height: 1.6;
  text-align: center;
}

.about-text {
  font-size: 16px;
  color: #303030;
  line-height: 2;
  margin-bottom: 30px;
  text-align: left;
}

.logo img {
  max-width: 120px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
}

@media (min-width: 768px) {
  .about-section {
    padding: 80px 40px;
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
  }

  .about-left {
    min-width: 350px;
    text-align: left;
  }

  .about-right {
    flex: 1;
  }

  .about-title {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 40px;
  }

  .about-text {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .logo img {
    margin: 0 0 40px 0;
  }
}

@media (min-width: 1024px) {
  .about-section {
    padding: 160px 60px;
  }

  .about-title {
    font-size: 2rem;
    margin-bottom: 80px;
  }

  .about-text {
    font-size: 20px;
  }
}

/* Business Banner Section - Mobile First */
.business-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
              url('/static/img/business-back.jpg') no-repeat center center/cover;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.business-label {
  font-size: 14px;
  color: #fff;
  margin-bottom: 30px;
  font-weight: 400;
  font-family: 'Raleway', sans-serif;
}

.business-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 100%;
}

.business-text {
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  max-width: 90%;
}

@media (min-width: 768px) {
  .business-section {
    padding: 100px 40px;
  }

  .business-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .business-text {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .business-section {
    padding: 160px 40px;
  }

  .business-label {
    font-size: 16px;
    margin-bottom: 60px;
  }

  .business-title {
    font-size: 4.875rem;
    margin-bottom: 60px;
  }

  .business-text {
    font-size: 20px;
  }
}

/* Business Items Section - Updated Breakpoints */
.sidebar-section {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: #ffffff;
}

.sidebar {
  width: 100%;
  text-align: center;
}

.content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.business-item {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #ffffff;
}

.business-item img {
  width: 100%;        /* 横幅いっぱいに広げる */
  height: auto;       /* 高さは自動で比率維持 */
  object-fit: contain;/* 画像全体を収める（切れない） */
  border-radius: 8px;
  display: block;     /* 隙間が出ないように */
}

.business-item-description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.business-item-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.home-number {
  font-size: 20px;
  font-weight: 600;
  color: #0068DE;
  font-family: 'Raleway', sans-serif;
  flex-shrink: 0;
}

.business-item-title h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #303030;
  line-height: 1.6;
  margin: 0;
}

.business-item-text p {
  font-size: 16px;
  color: #303030;
  line-height: 1.6;
  margin: 0;
}

/* Tablet Business Layout (601px - 1024px) */
@media (min-width: 601px) and (max-width: 1024px) {
  .sidebar-section {
    padding: 80px 40px;
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }

  .sidebar {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin-bottom: 20px;
  }

  .content {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .business-item {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
  }

  .business-item img {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    border-radius: 8px;
  }

  .business-item-description {
    flex: 1;
    gap: 20px;
  }

  .business-item-title h3 {
    font-size: 1.5rem;
  }

  .business-item-text p {
    font-size: 16px;
  }

  .home-number {
    font-size: 24px;
  }
}

/* Desktop Business Layout (1025px+) - Fixed Image Height */
@media (min-width: 1025px) {
  .sidebar-section {
    padding: 100px 60px;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .sidebar {
    width: 300px;
    min-width: 300px;
    text-align: left;
    flex-shrink: 0;
  }

  .content {
    flex: 1;
    max-width: none;
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .business-item {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #ffffff;
    align-items: flex-start;
  }

  .business-item img {
    width: 100%;
    max-width: 600px;
    height: auto;       
    object-fit: contain;
    object-position: center center;
    border-radius: 12px;
  }

  .business-item-description {
    width: 100%;
    padding: 0;
    gap: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .business-item-title {
    margin-bottom: 0;
    gap: 20px;
    align-items: flex-start;
  }

  .home-number {
    font-size: 28px;
    font-weight: 600;
    color: #0068DE;
    line-height: 1;
  }

  .business-item-title h3 {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 400;
    color: #303030;
  }

  .business-item-text p {
    font-size: 18px;
    line-height: 1.6;
    color: #303030;
  }
}

/* Case Section - Mobile First */
.case-section {
  padding: 40px 20px;
  background: #ffffff;
}

.case-home-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
  text-align: center;
}

.case-home-left {
  width: 100%;
}

.case-home-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

.sub-title {
  color: #0068DE;
  font-weight: bold;
  font-size: 14px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #0068DE;
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #0056b3;
  transform: translateY(-2px);
}

.case-home-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.case-home-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.case-home-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tag {
  color: #0068DE;
  background-color: transparent;
  border: 1px solid #0068DE;
  display: inline-block;
  padding: 4px 12px;
  font-size: 14px;
  border-radius: 50px;
  margin: 15px;
  font-family: 'Raleway', sans-serif;
}

.case-home-title {
  font-size: 20px;
  font-weight: bold;
  margin: 15px;
  line-height: 1.6;
  color: #303030;
}

.case-home-desc {
  font-size: 16px;
  color: #303030;
  line-height: 1.6;
  margin: 15px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .case-section {
    padding: 80px 40px;
  }

  .case-home-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: end;
    text-align: left;
  }

  .case-home-right {
    justify-content: flex-end;
  }

  .case-home-container {
    flex-direction: row;
    gap: 20px;
  }

  .case-home-card {
    flex: 1;
  }

  .case-home-card img {
    height: 250px;
  }
}

@media (min-width: 1024px) {
  .case-section {
    padding: 100px 60px;
  }

  .case-home-container {
    gap: 30px;
  }

  .case-home-card img {
    height: 280px;
  }

  .case-home-title {
    font-size: 18px;
    margin: 20px;
  }

  .case-home-desc {
    font-size: 15px;
    margin: 20px;
    margin-bottom: 25px;
  }

  .tag {
    margin: 20px;
  }
}

/* Company Section - Mobile First */
.company-section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #ffffff;
}

.company-left {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-header {
    text-align: center;
}

.company-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e5e5; /* 上の線 */
}

.company-link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e5e5e5; /* 下の線 */
}

.company-link-item p {
    font-size: 16px;
    color: #303030;
    margin: 0;
}

.company-link-item p:last-child {
    font-size: 14px;
    color: #303030;
}

.company-right {
    width: 100%;
}

.company-right img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Tablet Company Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .company-section {
        padding: 80px 40px;
        flex-direction: row;
        gap: 60px;
        align-items: flex-start;
    }

    .company-left {
        min-width: 300px;
        flex: 0 0 300px;
    }

    .company-header {
        text-align: left;
    }

    .company-right {
        flex: 1;
    }

    .company-right img {
        width: 100%;
        height: auto;
        min-height: 300px;
        object-fit: cover;
        border-radius: 8px;
    }

    .company-link-item p:first-child {
        font-size: 22px;
    }
}

/* Desktop Company Layout - FIXED */
@media (min-width: 1024px) {
    .company-section {
        /* ★★★ 修正点1: display: flex; を追加しました！ ★★★ */
        display: flex;
        flex-direction: row;
        padding: 100px 60px;
        gap: 80px;
        align-items: flex-start;
        justify-content: space-between;
    }

    .company-left {
        width: 380px;
        min-width: 380px;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 60px;
    }

    .company-header {
        text-align: left;
    }

    /* ★★★ 修正点2: 線で区切るデザインに変更しました ★★★ */
    .company-links {
        background: transparent;
        border-radius: 0;
        border-top: 1px solid #e5e5e5; /* 最初の線 */
        padding: 0;
        border: none;
    }

    .company-link-item {
        padding: 24px 0;
        border-bottom: 1px solid #e5e5e5; /* 区切り線と最後の線 */
        transition: background-color 0.3s ease;
    }

    .company-link-item:hover {
        background-color: #f8f9fa;
    }

    .company-link-item p:first-child {
        font-size: 18px;
        font-weight: 500;
        color: #303030;
    }

    .company-link-item p:last-child {
        font-size: 14px;
        color: #303030;
        font-weight: 400;
    }

    .company-right {
        flex: 1;
        max-width: 600px;
    }

    .company-right img {
        width: 100%;
        height: 480px;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
}

/* Recruit Section - Mobile First */
.recruit-section {
  display: flex;
  flex-direction: column;
  background-color: #0068DE;
  color: white;
  padding: 60px 20px;
  margin-bottom: 40px;
  gap: 40px;
}

.text-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.text-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.text-header h1 {
  font-size: 3rem;
  font-weight: 400;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  margin: 0;
}

.text-header p {
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.text-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-title {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.text {
  font-size: 16px;
  color: #fff;
  line-height: 1.6;
  margin: 0;
}

.image-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px 0;
}

.group1, .group2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.group1 {
  margin-top: -30px;
}

.group2 {
  margin-top: 30px;
}

.image-section img {
  width: 100%;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .recruit-section {
    flex-direction: row;
    padding: 80px 40px;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
  }

  .text-section {
    flex: 1;
    text-align: left;
    gap: 60px;
  }

  .image-section {
    flex: 1;
    max-width: 500px;
    gap: 16px;
  }

  .image-section img {
    height: 200px;
  }

  .group1 {
    margin-top: -100px;
  }

  .group2 {
    margin-top: 50px;
  }
}

@media (min-width: 1024px) {
  .recruit-section {
    padding: 80px 0;
    gap: 80px;
    min-height: 500px;
    overflow: hidden;
    margin-bottom: 80px;
  }

  .text-section {
    flex: 1;
    max-width: 500px;
    justify-content: center;
    margin-left: 80px;
  }

  .text-header h1 {
    font-size: 4rem;
  }

  .text-header p {
    font-size: 18px;
  }

  .image-section {
    flex: 1;
    max-width: 600px;
    gap: 16px;
    margin-right: 80px;
    position: relative;
  }

  .image-section img {
    height: 250px;
  }

  .group1 {
    margin-top: -120px;
  }

  .group2 {
    margin-top: -30px;
  }

  /* Prevent overflow */
  .group1 img:first-child,
  .group2 img:first-child {
    margin-top: 0;
  }
}

/* Contact Section - Mobile First */
.contact-section {
  position: relative;
  background: linear-gradient(rgba(0, 104, 222, 0.8), rgba(0, 104, 222, 0.8)), 
              url('/static/img/contact.jpg') center/cover no-repeat;
  color: white;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-left {
  width: 100%;
  max-width: 600px;
}

.contact-title {
  font-size: 4rem;
  font-weight: 500;
  margin-bottom: 30px;
  font-family: 'Raleway', sans-serif;
  color: #fff;
}

.contact-text {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  margin: 0;
}

.contact-right {
  width: 100%;
  display: flex;
  justify-content: center;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: white;
  color: #0068DE;
  border-radius: 50px;
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.contact-button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.contact-button::after {
  content: '→';
  margin-left: 8px;
  font-size: 16px;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 120px 40px;
    text-align: left;
  }

  .contact-container {
    flex-direction: row;
    justify-content: space-between;
    gap: 60px;
  }

  .contact-left {
    flex: 1;
    max-width: none;
  }

  .contact-right {
    width: auto;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .contact-section {
    padding: 160px 40px;
  }
}

/* Footer Styles - Match Exact Design */
.footer {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  color: white;
  padding: 60px 0 30px;
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 40px;
}

/* Footer Logo Section */
.footer-logo {
  text-align: center;
  margin-bottom: 20px;
}

.footer-logo-icon {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
  font-family: 'Raleway', sans-serif;
}

.footer-logo-icon::before {
  content: "✕ ";
  font-size: 20px;
  margin-right: 8px;
  font-weight: 300;
}

.footer-address {
  font-size: 14px;
  color: #cbd5e0;
  margin: 0;
}

/* Footer Lists */
.footer-lists {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  text-align: center;
  margin: 40px 0;
}

.footer-list h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
}

.footer-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list li {
  margin: 0;
  padding: 0;
}

.footer-list a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
  display: block;
}

.footer-list a:hover {
  color: #0068DE;
}

/* Footer Buttons */
.footer-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  margin: 30px 0;
}

.footer-entry-button,
.footer-contact-button {
  padding: 12px 30px;
  border-radius: 25px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 120px;
  font-weight: 500;
}

.footer-entry-button {
  background-color: #6b7280;
  color: white;
}

.footer-entry-button:hover {
  background-color: #4b5563;
}

.footer-contact-button {
  background-color: #0068DE;
  color: white;
}

.footer-contact-button:hover {
  background-color: #0056b3;
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #4a5568;
}

.footer-bottom p {
  font-size: 12px;
  color: #a0aec0;
  margin: 0;
}

.footer-bottom a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

/* Desktop Footer Layout */
@media (min-width: 1024px) {
  .footer {
    padding: 80px 0 40px;
  }

  .footer-container {
    padding: 0 80px;
  }

  .footer-row {
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 60px;
  }

  /* Footer Logo - Left aligned */
  .footer-logo {
    text-align: left;
    width: 220px;
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .footer-logo-icon {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .footer-address {
    font-size: 16px;
  }

  /* Footer Lists - 5 columns horizontal */
  .footer-lists {
    flex: 1;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    margin: 0;
    padding: 0 40px;
  }

  .footer-list {
    flex: 1;
    min-width: 0;
  }

  .footer-list h3 {
    font-size: 18px;
    margin-bottom: 20px;
    white-space: nowrap;
  }

  .footer-list ul {
    gap: 10px;
  }

  .footer-list a {
    font-size: 15px;
  }

  /* Footer Buttons - Right aligned */
  .footer-buttons {
    flex-direction: column;
    gap: 20px;
    margin: 0;
    align-items: flex-end;
    flex-shrink: 0;
  }

  .footer-entry-button,
  .footer-contact-button {
    padding: 14px 35px;
    font-size: 15px;
    min-width: 140px;
    border-radius: 30px;
  }

  /* Footer Bottom - Horizontal */
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding-top: 30px;
  }

  .footer-bottom p {
    font-size: 14px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .footer-lists {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: left;
  }

  .footer-buttons {
    flex-direction: row;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Hero Section - 左端余白を完全に除去 */
.hero {
  position: relative;
  width: 100vw; /* ビューポート幅いっぱい */
  margin: 0;
  padding: 0;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

.hero--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  width: 100vw;
  margin: 0;
  padding: 0;
  margin-top: 0; /* ナビバーが浮いているので0に */
}

.hero-stage {
  position: relative; /* 子要素を重ねるための基準位置 */
  width: 100%;
  aspect-ratio: 1500 / 860; /* 画像の比率を維持 */
  overflow: hidden;

}

.hero-img, .hero-gradient, .hero-text {
  position: absolute; /* 要素を重ねるために必須 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-img {
  object-fit: cover; /* コンテナに合わせて画像を満たす */
}

/* z-indexで重なり順を制御 */
.hero-bg {
  z-index: 1; /* 1番下: 背景画像 */
}

.hero-x {
  z-index: 2; /* 2番目: Xのオーバーレイ画像 */
}

.hero-gradient {
  z-index: 3; /* 3番目: テキストを読みやすくするグラデーション */
}

.hero-text {
  z-index: 4; /* 4番目:一番上のテキスト */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 0 80px; /* デスクトップ用の左右パディング */
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero-text p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-text h1 {
      font-size: 1.8rem;
  }
  .hero-text p {
      font-size: 0.9rem;
  }
}

/* Mobile Hero Section */
.hero-mobile {
  display: none; /* デフォルトでは非表示 */
  margin-top: 0; /* ナビバーが浮いているので0に */
}

.hero-mobile-images {
  position: relative;
  width: 100%;
  height: 40vh; /* 30vhから40vhに戻す */
  min-height: 250px; /* 200pxから250pxに戻す */
  overflow: hidden;
}

.hero-mobile-bg,
.hero-mobile-x {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* 右端を基準に、左側が見切れるように */
}

.hero-mobile-bg {
  z-index: 1;
}

.hero-mobile-x {
  z-index: 2;
}

.hero-mobile-text {
  padding: 50px 20px; /* 40pxから50pxに拡大 */
  background: #ffffff;
  text-align: center;
}

.hero-mobile-text h1 {
  font-size: 2.2rem; /* 1.8remから2.2remにさらに拡大 */
  margin-bottom: 1.5rem; /* 1remから1.5remに拡大 */
  line-height: 1.3; /* 1.4から1.3に調整 */
  color: #333;
  font-weight: 700; /* 太字を追加 */
}

.hero-mobile-text p {
  font-size: 1.1rem; /* 1remから1.1remに拡大 */
  line-height: 1.6;
  color: #666;
  font-weight: 400;
}

/* Show mobile hero on mobile, hide desktop hero */
@media (max-width: 768px) {
  .hero-desktop {
    display: none !important;
    position: static !important;
  }
  
  .hero-mobile {
    display: block !important;
    margin-top: 0; /* ナビバーが浮いているので0に */
  }
}

/* Show desktop hero on desktop, hide mobile hero */
@media (min-width: 769px) {
  .hero-desktop {
    display: block;
  }
  
  .hero-mobile {
    display: none;
  }
}
