/* スムーズスクロールのためのスタイル */
html {
    scroll-behavior: smooth;
}

/* 共通スタイル */
:root {
    --background-color: #fbf9f3;
    --text-color: #545454;
    --blue-color: #3881b7;
    --green-color: #6db72f;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.7;
}

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

.content-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 65px;
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.note-small {
    font-size: 0.875rem;
}

/* ヘッダースタイル */
header {
    padding: 20px 0;
}

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

.logo-link {
    display: block;
}

.logo {
    width: 240px;
    height: auto;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ナビゲーションのスタイル */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity 0.3s ease;
}

/* メインナビゲーションリンクのサイズ拡大 */
.nav-link.main-nav {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
}

.nav-link .nav-text {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
}

/* 「私たちについて」のサイズ縮小 */
.nav-link.about-nav {
    font-size: 0.9rem;
}

/* ホバー時の明るさ調整 */
.nav-link:hover {
    opacity: 0.8;
    filter: brightness(1.2);
}

/* アイコンのベーススタイル */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ホバー時のアイコンアニメーション */
.nav-link:hover .nav-icon {
    transform: translateX(3px);
}

/* アイコン内のSVGスタイル */
.nav-icon svg {
    width: 100%;
    height: 100%;
}

/* 企業向けアイコンの色 */
.nav-icon.companies svg circle {
    fill: #3881b7;
}

/* 外国人向けアイコンの色 */
.nav-icon.foreigners svg circle {
    fill: #6db72f;
}

/* アイコン内の矢印の色 */
.nav-icon svg path {
    fill: white;
}

/* 言語切り替えスイッチャーのスタイル */
.language-switcher {
    display: flex;
    background: #F0F0F0;
    border-radius: 20px;
    padding: 2px;
    gap: 2px;
}

.lang-button {
    border: none;
    background: transparent;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 18px;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #737373;
    transition: all 0.3s ease;
    min-width: 40px;
    letter-spacing: 0.02em;
}

/* Added styles for the button link */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

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

.lang-button:hover {
    background-color: rgba(115, 115, 115, 0.1);
}

.lang-button.active {
    background: #737373;
    color: white;
}

/* フォーカス時のアウトラインを調整 */
.lang-button:focus {
    outline: none;
}

.lang-button:focus-visible {
    box-shadow: 0 0 0 2px rgba(115, 115, 115, 0.3);
}

h1, h2 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-weight: 500;
}

/* Footer Styles */
footer {
    background-color: #b3b3b3;
    color: white;
    padding: 0;
    height: 105px;
    margin-top: 100px;
    display: flex;
    align-items: center;
}

footer .content-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
}

.footer-info p {
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    font-size: small;
    letter-spacing: 0.08em;
}

footer-info p:first-child {
    margin-right: 15px;
}

.copyright {
    font-size: 0.8rem;
    margin: 0;
}

/* トップに戻るボタン */
.top-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    transform: translateY(20px);
    z-index: 1000;
}

.top-button.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.top-button img {
    width: 34px;
    height: 34px;
}

.top-button:hover {
    opacity: 0.8;
}

/* ヒーロースタイル */
.page-hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    min-height: 150px;
  background-color: #fbf9f3; /* ヒーローセクションにも背景色を追加 */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    z-index: 1;
    background-image: url('../img/hero-bg.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 0.08em;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 共通のスタイル */
.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
    letter-spacing: 0.06em;
}

.section-title svg {
    margin-right: 10px;
    flex-shrink: 0;
}

.section-title rt {
    font-size: 0.4em;
    text-align: start;
    position: relative;
    top: -1.4em;
    margin-bottom: -1.4em;
    letter-spacing: 0;
}

.section-title ruby {
    display: inline-flex;
    flex-direction: column-reverse;
}


/* ヒーローセクションの基本スタイル */
.home-page .hero {
    position: relative;
    height: 500px;
    overflow: hidden;
  }

/* メインビジュアルのレイアウト */
  .home-page .main-visual {
    position: relative;
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
  }

/* ヒーローコンテンツ（テキスト部分）のスタイル */
  .home-page .hero-content {
    width: 45%;
    z-index: 3;
    padding-top: 120px;
    position: relative;  /* 追加 */
  }

/* 円形画像のコンテナスタイル */
  .home-page .circle-images {
    position: relative;
    width: 55%;
    height: 100%;
    overflow: visible;
  }

/* 画像ラッパーの基本スタイルとアニメーション設定 */
.home-page .image-wrapper {
    position: absolute;
    opacity: 0;
    visibility: hidden;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility, transform;
  }
  
  .home-page .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 画像が表示される時のスタイル */
  .home-page .image-wrapper.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  /* 背景画像用のスタイル */
.home-page .image-wrapper.background {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-out, visibility 1.2s ease-out, transform 1.2s ease-out;
  }
  
  .home-page .image-wrapper.background.visible {
    opacity: 0.7;
    visibility: visible;
  }
  

/* アニメーションの遅延をランダムに設定 */
.home-page .image-wrapper:nth-child(1) { animation-delay: 0.7s; }
.home-page .image-wrapper:nth-child(2) { animation-delay: 1.2s; }
.home-page .image-wrapper:nth-child(3) { animation-delay: 0.3s; }
.home-page .image-wrapper:nth-child(4) { animation-delay: 1.5s; }
.home-page .image-wrapper:nth-child(5) { animation-delay: 0.9s; }
.home-page .image-wrapper:nth-child(6) { animation-delay: 0.5s; }
.home-page .image-wrapper:nth-child(7) { animation-delay: 1.8s; }
.home-page .image-wrapper.background:nth-child(8) { animation-delay: 0.2s; }
.home-page .image-wrapper.background:nth-child(9) { animation-delay: 1.1s; }
.home-page .image-wrapper.background:nth-child(10) { animation-delay: 0.8s; }
.home-page .image-wrapper.background:nth-child(11) { animation-delay: 1.4s; }
  
  
  @keyframes fadeIn {
    0% {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(30px);
    }
    100% {
      opacity: 1;
      filter: blur(0);
      transform: translateY(0);
    }
  }

  .home-page .image-wrapper.background img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  /* 背景画像が表示される時のスタイル */
  .home-page .image-wrapper.background.visible {
    opacity: 0.7;
    filter: blur(0);
    transform: scale(1);
  }
  
  /* パソコン作業の2人 */
  .home-page .image-wrapper:nth-child(1) {
    top: 40%;
    left: -35%;
    width: 32%;
    z-index: 2;
  }
  
  /* コールセンター */
  .home-page .image-wrapper:nth-child(2) {
    top: 68%;
    left: -8%;
    width: 27%;
    z-index: 2;
  }
  
  /* パン屋さん */  
  .home-page .image-wrapper:nth-child(3) {
    top: 30%;
    right: 57%;
    width: 36%;
    z-index: 2;
  }
  
  /* 料理人 */  
  .home-page .image-wrapper:nth-child(4) {
    top: 3.6%;
    left: 0;
    width: 27%;
    z-index: 2;
  }
  
  /* エプロンの女性 */  
  .home-page .image-wrapper:nth-child(5) {
    top: 0;
    left: 40%;
    width: 32%;
    z-index: 2;
  }
  
  /* 作業着の2人 */ 
  .home-page .image-wrapper:nth-child(6) {
    top: 16%;
    right: -2%;
    width: 29%;
    z-index: 2;
  }
  
  /* 工場作業員 */
  .home-page .image-wrapper:nth-child(7) {
    bottom: 0;
    right: 20%;
    width: 39%;
    z-index: 2;
  }
  
  /* 各背景画像の配置 */
  .home-page .image-wrapper.background:nth-child(8) {
    width: 43%;
    top: 40%;
    left: -40%;
    height: 43%;
  }
  
  .home-page .image-wrapper.background:nth-child(9) {
    width: 23%;
    top: 5%;
    left: 15%;
    height: 23%;
  }
  
  .home-page .image-wrapper.background:nth-child(10) {
    width: 32%;
    top: 5%;
    left: 70%;
    height: 32%;
  }
  
  .home-page .image-wrapper.background:nth-child(11) {
    width: 32%;
    top: 60%;
    right: 0;
    height: 32%;
  }
  /* アニメーションの開始 */
.home-page.loaded .image-wrapper {
    animation-play-state: running;
  }
  

  /* 曲線 */
.home-page .mv-line-wrapper {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}


.home-page .mv-line {
    position: absolute;
    width: 120%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* キャッチコピー */
.home-page .hero-content {
    width: 40%;
    z-index: 3;
    padding-top: 90px;
    position: relative;
}

.home-page .hero h1 {
    font-size: 2.5rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
    white-space: nowrap;
    letter-spacing: 0.07em;
    z-index: 3;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.9); /* 追加: 白いシャドウ */
}

.home-page .subtitle {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--blue-color);
}
.home-page .intro {
    text-align: center;
    padding: 0;
}

.home-page .blue-heading {
    color: var(--blue-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.home-page .intro p {
    max-width: 960px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8;
}

.home-page .cta {
    padding: 0;
}

.home-page .cta .content-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ホームページのCTAボタンスタイル */
.home-page .cta {
    padding: 20px 0;
}

.home-page .cta .content-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.home-page .cta-button {
    width: 380px;
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: opacity 0.3s ease;
    border-radius: 0 40px 0 40px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.8rem;
    position: relative;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-page .cta-button.blue {
    background-color: #69a1cc;
}

.home-page .cta-button.green {
    background-color: #acd689;
}

.home-page .cta-button:hover {
    opacity: 0.85;
    transform: translateY(2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-page .cta-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.home-page .cta-icon svg {
    width: 100%;
    height: 100%;
}

/* SVGの色を指定 */
.home-page .cta-button .cta-icon svg circle {
    fill: white;
}

.home-page .cta-button.blue .cta-icon svg path {
    fill: #69a1cc;
}

.home-page .cta-button.green .cta-icon svg path {
    fill: #acd689;
}

.home-page .about {
    background-color: #e3eaed;
    padding: 0px 0;
}

.home-page .about-content {
    display: flex;
    align-items: center;
    gap: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.home-page .about-image {
    width: 50%;
}

.home-page .about-text {
    width: 50%;
}

.home-page .about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.home-page .about-link-wrapper {
    text-align: right;
}

.home-page .about-link {
    color: var(--blue-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.home-page .about-link .blue-circle {
    background-color: var(--blue-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-page .about-link .blue-circle i {
    font-weight: bold;
}

.home-page .about-link {
    font-size: 1.2rem;
}

.home-page .about-link-text {
    font-weight: bold;
}

.home-page .about-icon {
    display: flex;
    align-items: center;
}

.home-page .about-icon svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* ホバー時のスタイル */
.home-page .about-link:hover {
    opacity: 0.8;
    filter: brightness(1.2);
}

.home-page .about-link:hover .about-icon svg {
    transform: translateX(3px);
}

.home-page .contact {
    padding: 0px 0;
}

.home-page .contact h2 {
    font-family: 'Lato', sans-serif;
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 5px;
    font-weight: bold;
}

.home-page .contact-subtitle {
    font-size: 1.2rem;
    margin-bottom: 20px;
    margin-top: 0px;
    font-weight: bold;
}

.home-page .contact-content {
    margin: 0 auto;
}

.home-page .contact-text {
    margin-bottom: 10px;
    line-height: 1.6;
}

.home-page .contact-hours {
    margin-top: 40px;
}

.home-page .contact-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 2rem;
    margin-top: 40px;
}

.home-page .contact-phone a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 2rem;
}

.home-page .phone-icon {
    width: 2rem;
    height: 2rem;
    fill: currentColor;
    vertical-align: middle;
}

/* Companies Page Styles */
.companies-page .page-hero {
    background-color: #3881b7;
    color: white;
}

.companies-page .section-title svg {
    color: #3881b7;
}

.companies-page .section-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 30px;
    margin-top: 10px;
}

.companies-page .section-text {
    flex: 1;
}

.companies-page .section-image {
    flex: 0 0 40%;
    margin-top: -70px;
}

.companies-page .section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.companies-section .section-content {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.companies-section .section-text {
    justify-content: center;
}

.companies-section .section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 0.06em;
}

.companies-section p {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.8;
}

/* 要件セクションのスタイル更新 */
.requirements-section {
    margin-top: 0px;
}

.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #545454;
    font-size: 1.1rem;
    line-height: 1.6;
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.check-icon path {
    stroke: #545454;
}

.companies-page .industry-types {
    background-color: #e3eaed;
    padding: 25px 0;
    margin: 80px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.companies-page .industry-types-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.companies-page .industry-types h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #3881b7;
    letter-spacing: 0.08em;
}

.companies-page .industry-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.companies-page .industry-type-item {
    background: white;
    border: 2px solid #3881b7;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3881b7;
    font-weight: 600;
}

.companies-page .industry-number {
    background: #3881b7;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.companies-page .industry-name {
    flex-grow: 1;
    text-align: center;
}

.companies-page .job-notes {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.companies-page .job-notes p {
    margin: 5px 0;
}

.companies-page .support-content {
    padding: 0 0;
    margin-bottom: 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.companies-page .support-content-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.companies-page .support-description {
    margin-bottom: 40px;
    line-height: 1.8;
}

.companies-page .support-section {
    margin-bottom: 50px;
}

.companies-page .support-section-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #3881b7;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.companies-page .support-bar {
    background-color: #69a1cc;
    color: white;
    padding: 5px 20px;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-left: 30px;
}

.companies-page .support-bar::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 4px;
    background-color: white;
}

.companies-page .support-item {
    padding: 0 20px;
    margin-bottom: 30px;
    background-color: #fbf9f3;
}

.companies-page .support-item li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.companies-page .support-plans {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.companies-page .support-plan-box {
    flex: 1;
    border: 2px solid #3881b7;
    border-radius: 10px;
    padding: 20px;
    background-color: #ffffff;
}

.companies-page .support-plan-title {
    text-align: center;
    font-size: 1.3rem;
    margin-top: 10px;
    margin-bottom: 15px;
    font-weight: 600;
}

.companies-page .support-plan-list {
    list-style: none;
    padding: 0;
}

.companies-page .support-plan-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.companies-page .support-plan-number {
    background: #3881b7;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.companies-page .full-width-image {
    width: 100vw;
    height: 280px;
    background-image: url('../img/workers.jpg');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 60px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 外国人の方へページ*/
.foreigners-page .page-hero {
    background-color: #6db72f;
    color: white;
}

.foreigners-page .section-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 10px;
}

.foreigners-page .section-text {
    flex: 1;
}

.foreigners-page .section-image {
    flex: 0 0 40%;
    margin-top: -70px;
}

.foreigners-page .section-image img {
    width: 100%;
    height: auto;
    display: block;
}

.foreigners-page .section-text p {
    margin-top: 0;
    margin-bottom: 15px;
}

.foreigners-page .section-text p:last-child {
    margin-bottom: 0;
}

.foreigners-page .section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 0.06em;
}

.foreigners-page .section-title svg {
    color: #6db72f;
}

.foreigners-page .job-types {
    background-color: #e7f0d7;
    padding: 25px 0;
    margin: 40px 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.foreigners-page .job-types-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.foreigners-page .job-types h3 {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #6db72f;
    letter-spacing: 0.08em;
}

.foreigners-page .job-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.foreigners-page .job-type-item {
    background: white;
    border: 2px solid #6db72f;
    border-radius: 50px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6db72f;
    font-weight: 600;
}

.foreigners-page .job-number {
    background: #6db72f;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.foreigners-page .job-name {
    flex-grow: 1;
    text-align: center;
}

.foreigners-page .job-notes {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.foreigners-page .job-notes p {
    margin: 5px 0;
}

.foreigners-page .support-section {
    margin-top: 100px;
}

.foreigners-page .timeline-section {
    margin-bottom: 60px;
    background-color: white;
    border-radius: 20px;
    overflow: visible;
    border: 6px solid #efefef;
    position: relative;
    padding-top: 50px;
}

.foreigners-page .timeline-title {
    background-color: #6db72f;
    color: white;
    padding: 15px 30px;
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    text-align: center;
    letter-spacing: 0.1em;
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    border-radius: 14px 14px 0 0;
    z-index: 1;
}

.foreigners-page .support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 30px;
    padding-top: 60px;
}

.foreigners-page .support-item {
    background: white;
    border-radius: 10px;
    padding: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.foreigners-page .support-item.wide {
    grid-column: span 1.5;
}

.foreigners-page .support-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.foreigners-page .support-number {
    width: 30px;
    height: 30px;
    background-color: #6db72f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 10px;
    flex-shrink: 0;
}

.foreigners-page .support-item h4 {
    color: #333;
    font-size: 1rem;
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    line-height: 1.8;
}

.foreigners-page .support-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: auto;
}

.foreigners-page .support-grid > .support-item:nth-child(4),
.foreigners-page .support-grid > .support-item:nth-child(5) {
    grid-column: span 1.5;
}

.foreigners-page .support-grid > .support-item:nth-child(4) {
    justify-self: end;
}

.foreigners-page .support-grid > .support-item:nth-child(5) {
    justify-self: start;
}

.foreigners-page .full-width-image {
    width: 100vw;
    height: 280px;
    background-image: url('../img/foreigners-workers.jpg');
    background-size: cover;
    background-position: center;
    margin: 0;
    padding: 60px 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* 私たちについてページ */
.about-page .page-hero {
    background-color: #b3b3b3;
    color: white;
}

.about-page .section-title svg {
    color: #3881b7;
}

.about-page .about-content {
    margin-top: 40px;
}

.about-page .flow-chart {
    margin-top: 60px;
    text-align: center;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.about-page .flow-chart img {
    max-width: 100%;
    height: auto;
}

.about-page .company-info {
    margin-top: 60px;
}

.about-page .info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 30px;
}

.about-page .info-table th,
.about-page .info-table td {
    padding: 15px;
    border-bottom: 1px solid #737373;
}

.about-page .info-table th {
    width: 30%;
    text-align: left;
    color: #545454;
    font-weight: bold;
}

.about-page .info-table tr:first-child th,
.about-page .info-table tr:first-child td {
    border-top: 1px solid #737373;
}

/* FAQ スタイル */
.faq-section {
    padding: 0;
}

.faq-container {
    max-width: 860px;
    margin: 100px auto;
    padding: 40px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.faq-header {
    text-align: center;
    margin-bottom: 40px;
}

.faq-title {
    font-family: 'Zen Maru Gothic', sans-serif;
    font-size: 2rem;
    color: #3881b7;
    margin-bottom: 5px;
    letter-spacing: 0.06em;
    ruby-align: center;
    ruby-position: over;
    line-height: 1.4;
}

.faq-title rt {
    font-size: 0.5em;
    text-align: center;
    line-height: 1;
    display: block;
    margin-bottom: -0.5em;
}

.faq-title ruby {
    display: inline-flex;
    flex-direction: column-reverse;
    vertical-align: bottom;
}

.faq-title > span:not(ruby) {
    display: inline-block;
    padding-top: 0.5em;
}

.faq-subtitle {
    font-size: 0.9rem;
    font-weight: bold;
    color: #545454;
    margin: 0;
}

.faq-subtitle {
    font-size: 0.9rem;
    font-weight: bold;
    color: #545454;
    margin: 0;
}

.faq-list {
    list-style-type: none;
    padding: 0;
}

.faq-list .faq-item ruby {
    display: inline-flex;
    flex-direction: column-reverse;
    vertical-align: bottom;
    ruby-align: center;
    ruby-position: over;
    line-height: 1.4;
  }
  .faq-list .faq-item rt {
    font-size: 0.5em;
    text-align: center;
    line-height: 1;
    display: block;
    margin-bottom: -0.5em;
  }
  
  .faq-list .faq-item > span:not(ruby) {
    display: inline-block;
    padding-top: 0.5em;
  }
  
.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.faq-question {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3881b7;
    display: flex;
    align-items: flex-start;
    padding-bottom: 15px;
    letter-spacing: 0.06em;
    gap: 10px;
    flex-wrap: nowrap;
    position: relative;
    padding-left: 0px;
    min-height: 30px; /* 追加: Qマークの高さに合わせる */
}

.faq-question::before {
    content: 'Q';
    background-color: #3881b7;
    color: white;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-weight: bold;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    margin-top: 0.2em; /* 追加: テキストとの位置調整 */
}

.faq-question-text {
    display: inline;
    min-width: 0;
}

.faq-question ruby {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0;
    line-height: 1.4;
    height: auto;
    vertical-align: bottom;
}

.faq-question rt {
    display: block;
    font-size: 0.5em;
    line-height: 1;
    text-align: center;
    transform: translateY(0.1em);
    letter-spacing: -0.05em; /* 追加: ルビ文字間のスペースを少し詰める */
}

.faq-question rb {
    display: inline-block;
    line-height: 1.4;
}

.faq-answer {
    padding-left: 46px;
    position: relative;
    font-size: 1rem;
    line-height: 1.6;
}

.faq-answer::before {
    content: 'A';
    position: absolute;
    left: 0;
    top: 0;
    background-color: #69a1cc;
    color: white;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.foreigners-page .faq-section {
    background-color: #f7faf4;
}

.foreigners-page .faq-title {
    color: #6db72f;
}

.foreigners-page .faq-question {
    color: var(--green-color);
    padding-bottom: 0;
}

.foreigners-page .faq-question::before {
    background-color: #6db72f;
}

.foreigners-page .faq-answer::before {
    background-color: #aad484;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* h2のルビのずれ修正 */

.about-section .section-title,
.foreigners-section .section-title,
.section-title {
    display: flex;
    align-items: center;
    font-size: 2rem;
    color: var(--text-color);
    letter-spacing: 0.06em;
    position: relative;
    padding-top: 0.7em; /* ふりがなのためのスペースを確保 */
}

.about-section .section-title ruby,
.foreigners-section .section-title ruby,
.section-title ruby {
    position: relative;
    display: inline-block;
    margin: 0 2px;
}

.about-section .section-title rt,
.foreigners-section .section-title rt,
.section-title rt {
    position: absolute;
    top: -1.2em; /* 上方向への位置調整 */
    left: 0;
    right: 0;
    font-size: 0.4em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
}

/* foreigners-page と about-page の h2 スタイル */
.foreigners-page .section-title,
.about-page .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 2rem;
}

.foreigners-page .section-title svg,
.about-page .section-title svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.foreigners-page .section-title img,
.about-page .section-title img {
  height: 2em;
  width: auto;
  max-width: calc(100% - 1.5em);
}



  