/* --- スマホ用共通スタイル --- */

/* スマホ表示用のフッタースタイル */
@media (max-width: 767px) {
  .footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }
  
  .footer-logo img {
    width: 300px;
  }
  
  .footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    padding-left: 10px;
  }
  
  .footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-link {
    font-size: 1.2rem;
    text-align: left;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-bottom div {
    margin: 0;
  }
  
  .footer-copyright {
    margin-top: 0;
  }
}

/* プライバシーポリシーページのスマホ表示用スタイル */
@media (max-width: 767px) {
  /* ヘッダーのCONTACTボタンを非表示 */
  header .contact-link {
    display: none;
  }
  
  /* ロゴサイズ調整 */
  header .logo img {
    width: 200px !important;
  }

  header .logo {
    margin:initial!important;
  }
  
  /* ハンバーガーメニューボタンの右マージン調整 */
  header .menu-button {
    margin-right: 1rem;
  }

  .header-right {
    margin-right: initial!important;
    transform: scale(0.6);
  }
  
  /* === 全ページ共通のサイドメニュー調整 === */
  #side-menu {
    width: 100% !important;
    padding: 2rem;
    max-width: 100% !important;
  }
  
  #side-menu a {
    font-size: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  /* タイトルのフォントサイズ調整 */
  .title-text {
    font-size: 2.5rem;
  }
  
  /* メインコンテンツの上部余白調整 */
  main {
    padding-top: 2rem;
  }
  
  /* プライバシーポリシーのコンテンツ調整 */
  .container {
    padding: 0 1rem;
  }
  
  /* Contactセクションのスマホ表示用スタイル */
  #contact .contact-section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    padding-top: initial!important;
  }
  
  #contact .contact-section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }
  
  #contact .contact-grid {
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
  
  #contact .contact-card {
    padding: 2rem 1.5rem;
    border-radius: 12px;
  }
  
  #contact .contact-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  #contact .contact-card-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
  
  /* ダイヤモンドコンテナの調整 */
  #contact .diamonds-container {
    padding: 2rem 0;;
  }

  .contact-card{
    min-height: 220px!important;
    border:initial!important;
  }

  /* conactページ */
  .contact-area > div{
    margin:initial!important;
  }

  .contact-area{
    padding:20px!important;
  }

  /* serviceページ */
  .service-number{
    font-size: 3rem!important;
    top: -40px!important;
  }
  
  .service-title-container{
    padding: initial!important;
  }

  .service-title-container h2{
    padding: initial!important;
    font-size: 1.5rem!important;
  }

  .service-text{
    font-size: 0.9rem!important;
    margin: initial!important;
    font-weight: 600!important;
  }

  .title-text{
    margin: initial!important;
    margin-bottom: 50px!important;
  }

  /* ourbuissinnesページ */
  .ourbuissines-top{
    display: block!important;
  }

  .hero-title-container{
    margin-top: 6rem!important;
  }

  /* ヒーロータイトルのSP表示調整 */
  .hero-title-container h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  /* 1行目のタイトル（BEYOND CONVENTION.）- 右側にライン */
  .hero-title-container h1:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .hero-title-container h1:first-child .flex-grow {
    margin-left: 1rem !important;
    margin-right: 0 !important;
  }

  /* 2行目のタイトル（IN PURSUIT OF EVERY IDEAL.）- 左側にライン */
  .hero-title-container h1:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .hero-title-container h1:last-child .flex-grow {
    margin-right: 1rem !important;
    margin-left: 0 !important;
    order: -1 !important;
  }

  /* ヒーローセクションの全体調整 */
  .hero-section {
    padding: 3rem 1rem !important;
  }

  .hero-content {
    padding: 0 1rem !important;
  }

  /* OUR BISINESSタイトルのSP調整 */
  .ourbuissines-top p:first-child {
    margin-bottom: 1rem !important;
  }

  .ourbuissines-top p:last-child {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
  }

  .sp-about-service{
    top: -1px;
  }

  .sp-ourbuissines-service{
    top: 1px;
  }

  .service-title{
    margin-left: 20px!important;
    font-size: 2rem!important;
  }

  .scrolling-text-background{
    display: none!important;
  }

  .menu{
    margin: 25px!important;
  }

  .service-list {
    min-height: 300px!important;
  }


  .service-list h4{
    font-size: 22px!important;
  }

  .service-list h3{
    font-size: 15px!important;
    margin-bottom: 20px!important;
  }

  .achievements-title{
    margin-left: 20px !important;
    font-size: 2rem !important;
  }

  .view-none-sp{
    display: none!important;
  }

  /* aboutページ */
  .about-hero-content{
    display: block!important;
  }

  .hero-description-white{
    margin-bottom: 1rem!important;
    left: initial!important;
  }

  .hero-title-container-white{
    margin-top: 6rem!important;
  }

  /* ヒーロータイトルのSP表示調整 */
  .hero-title-container-white h1 {
    font-size: 1.8rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  /* 1行目のタイトル（BEYOND CONVENTION.）- 右側にライン */
  .hero-title-container-white h1:first-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  .hero-title-container-white h1:first-child .flex-grow {
    margin-left: 1rem !important;
    margin-right: 0 !important;
  }

  /* 2行目のタイトル（IN PURSUIT OF EVERY IDEAL.）- 左側にライン */
  .hero-title-container-white h1:last-child {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    text-align: right !important;
  }

  .hero-title-container-white h1:last-child .flex-grow {
    margin-right: 1rem !important;
    margin-left: 0 !important;
    order: -1 !important;
  }

  .vision-section {
    padding: 4rem 1rem;
  }

  .vision-item,
  .value-item {
    margin: 0px;
    padding: 1rem 0.5rem;
  }

  .mission-item {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }

  .mission-container {
    flex-direction: column;
    min-height: 400px;
  }

  .mission-image-container {
    margin-right: 0;
    margin-bottom: 0;
    flex: 0 0 200px;
    background: initial!important;
  }

  .mission-image {
    min-height: 250px;
  }

  .mission-content {
    display: flex;
    flex-direction: column-reverse;
    padding: 0;
  }

  .mission-content > .mission-content-container {
    padding: 15px;
  }

  .vision-title,
  .mission-title,
  .value-title {
    line-height: 1.4;
    padding: 0.2rem 0;
    letter-spacing: 1px;
  }

  .vision-subtitle,
  .mission-subtitle,
  .value-subtitle {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1;
    margin: 0.6rem 0 1.5rem; /* top right/left bottom */
    padding: 0.3rem 0;
  }

  /* SP表示時はmobile-textのみ表示 */
  .desktop-text {
    display: none !important;
  }
  
  .mobile-text {
    display: block !important;
    line-height: 1.5;
  }

  .about-ceo-section{
    padding-top: 0!important;
    padding-bottom: 0!important;
  }

  .about-ceo-title{
    display: none!important;
  }

  .about-ceo-title-sp{
    display: block!important;
    font-size: 2rem!important;
    margin-top: 2rem!important;
  }

  .about-ceo-text{
    font-size: 0.8rem;
    font-weight: bold;
  }

  .about-ceo-image-container{
    flex: initial!important;
  }
}

/* デスクトップ表示時はdesktop-textのみ表示 */
@media (min-width: 768px) {
  .mobile-text {
    display: none !important;
  }
  
  .desktop-text {
    display: block !important;
  }

  .about-ceo-title-sp {
    display: none !important;
  }
}

/* トップページ固有のスマートフォン版レイアウト */
@media (max-width: 767px) {
  
  /* === トップページ固有の横スクロール防止 === */
  body.top-page {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* === トップページのロゴアニメーション === */
  .animation-wrapper {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: #111;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .animation-wrapper #logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
  }
  
  .animation-wrapper #logo img {
    width: 250px !important;
    margin-bottom: 30px;
    transform: scale(1.5);
  }
  
  .animation-wrapper #logo .new {
    color: white;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 2px;
  }
  
  /* トップページのヘッダーのスマートフォン版調整 */
  .animation-wrapper ~ header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 15px 20px;
    background: transparent;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .animation-wrapper ~ header .logo img {
    width: 180px !important;
  }
  
  .animation-wrapper ~ header .header-right {
    margin-right: 0 !important;
  }
  
  .animation-wrapper ~ header .menu-button {
    width: 45px;
    height: 45px;
    margin-right: 0;
  }
  
  .animation-wrapper ~ header .contact-link {
    display: none;
  }
  
  /* === トップページのdiamonds-containerのスマートフォン対応 === */
  .animation-wrapper .diamonds-container,
  .about .diamonds-container {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    z-index: 0 !important;
  }
  
  #top-animation-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-width: 100% !important;
    z-index: 3 !important;
  }
  
  /* トップページのダイヤモンドのサイズ調整 */
  .animation-wrapper .diamond,
  .about .diamond {
    width: 8px !important;
    height: 8px !important;
  }
  
  .animation-wrapper .diamonds-background .diamond,
  .about .diamonds-background .diamond {
    width: 10px !important;
    height: 10px !important;
  }
  
  /* === トップページのABOUTセクション === */
  .about.about-diamonds-bg {
    padding: 80px 20px 60px;
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    min-height: initial!important;
  }

  .about-content{
    margin: initial!important;
  }
  
  .about.about-diamonds-bg .about-content {
    position: relative;
    z-index: 5;
  }
  
  .about.about-diamonds-bg .about-content .sub-title {
    font-size: 2.7rem !important;
    margin-left: 0 !important;
    margin-bottom: 20px;
    /* color: white; */
  }
  
  .about.about-diamonds-bg .about-content .about-title {
    font-size: 1.5rem;
    margin-left: 0 !important;
    margin-bottom: 30px;
    /* color: white; */
    line-height: 1.3;
  }
  
  .about.about-diamonds-bg .about-content .about-text {
    font-size: 1rem;
    margin-left: 0 !important;
    margin-bottom: 25px;
    line-height: 1.8;
  }
  
  .about.about-diamonds-bg .about-content .view-more-button {
    margin-top: 40px;
  }
  
  .about.about-diamonds-bg .about-content .circle-button {
    margin-left: 0 !important;
  }
  
  /* === トップページのNEWSセクション === */
  .news-section {
    display: block;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 40px 20px;
    background: white;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .news-section .news-container {
    max-width: 100%;
    margin: 0 !important;
  }
  
  .news-section .news-card {
    border-radius: 0 !important;
    padding: 0;
    background: white;
    box-shadow: none !important;
  }
  
  .news-section .news-content {
    margin-right: 0 !important;
    margin-top: 0 !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
  }
  
  .news-section .news-heading {
    font-size: 3rem !important;
    margin-bottom: 0;
    color: #000;
    font-weight: bold;
  }

  .news-heading{
    text-align: initial!important;
  }
  
  .news-section .view-more-button {
    margin: 0;
  }
  
  .news-section .circle-button {
    background: #000 !important;
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }
  
  .news-section .check-icon {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
  }
  
  .news-section .check-icon::after {
    content: '✓';
    color: #000;
    font-size: 12px;
    font-weight: bold;
  }
  
  .news-section .news-list {
    margin-bottom: 0;
    list-style: none;
    padding: 0;
  }
  
  .news-section .news-item {
    margin-bottom: 30px;
    padding: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
  }
  
  .news-section .news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .news-section .news-date {
    font-size: 1.1rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 8px;
  }
  
  .news-section .news-title {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  .news-section .news-content {

    font-size: 1rem;
    color: #000;
    line-height: 1.5;
    margin: 0;
    display: block;
  }
  
  .news-section .scrolling-text-background {
    display: none !important;
  }
  
  /* === トップページのOUR BUSINESSセクション === */
  .business {
    padding-top: 100px !important;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
    background: #111;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .business .business-content .sub-title {
    font-size: 2.5rem !important;
    margin-left: 0 !important;
  }
  
  .business .business-content .about-title {
    font-size: 22px !important;
	font-weight: bold!important;
    margin-left: 0 !important;
    margin-bottom: 30px;
    line-height: 1.4;
  }
  
  .business .business-content .about-text {
    font-size: 0.9rem !important;
    margin-left: 0 !important;
    line-height: 1.7;
    margin-bottom: 40px;
  }
  
  .business .business-content .circle-button {
    margin-left: 0 !important;
  }
  
  /* === トップページのSERVICEセクション === */
  .business .service-header-wrapper {
    margin-top: 60px !important;
    padding: 0 20px;
  }
  
  .business .service-header-wrapper .sub-title {
    font-size: 2.5rem !important;
    margin-left: 0 !important;
  }
  
  .business .grid {
    margin: 0px 0px !important;
    gap: 20px;
  }
  
  .business .service-card {
    padding: 25px !important;
    min-height: auto !important;
  }
  
  .business .service-card h3 {
    font-size: 1rem !important;
    margin-bottom: 10px;
  }
  
  .business .service-card h4 {
    font-size: 1.3rem !important;
    margin-bottom: 15px;
  }
  
  .business .service-card p {
    font-size: 0.85rem !important;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  
  /* === トップページのACHIEVEMENTSセクション === */
  .achievements-section-white {
    padding: 60px 0px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .achievements-section-white .sub-title {
    font-size: 2rem !important;
    margin-left: 0 !important;
  }
  
  .achievements-section-white .scroll-container {
    margin-top: 30px;
  }
  
  .achievements-section-white .scroll-item {
    min-width: 280px;
    margin-right: 20px;
  }
  
  .achievements-section-white .achievement-card {
    height: 200px !important;
  }
  
  .achievements-section-white .achievement-content h3 {
    font-size: 1.2rem !important;
  }
  
  .achievements-section-white .achievement-content p {
    font-size: 0.85rem !important;
  }
  
  .achievements-section-white .scroll-indicator {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
  }
  
  /* === 新しいachievements-sectionクラス対応 === */
  .achievements-section {
    padding: 60px 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    background: #111;
  }
  
  .achievements-section .sub-title {
    font-size: 2rem !important;
    margin-left: 0 !important;
    color: white;
    padding-left: 30px!important;
  }
  
  .achievements-section .flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 30px !important;
  }
  
  .achievements-section .scroll-container {
    margin-top: 30px;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  
  .achievements-section .infinite-scroll-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .achievements-section .scroll-items {
    display: flex !important;
    gap: 20px !important;
    width: max-content !important;
    padding-right: 20px !important;
  }
  
  .achievements-section .scroll-item {
    min-width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0 !important;
  }
  
  .achievements-section .achievement-card {
    height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .achievements-section .achievement-content {
    padding: 20px !important;
  }
  
  .achievements-section .achievement-content h3 {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }
  
  .achievements-section .achievement-content p {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }
  
  .achievements-section .scroll-indicator {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: white;
  }
  
  /* === トップページのRECRUITセクション === */
  .recruit-section {
    padding: 60px 0px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }
  
  .recruit-section .recruit-content-wrapper {
    max-width: 100%;
  }
  
  .recruit-section .recruit-content {
    flex-direction: column;
  }
  
  .recruit-section .recruit-title {
    font-size: 2.5rem !important;
    margin-bottom: 20px;
  }
  
  .recruit-section .recruit-image {
    margin-bottom: 30px;
    height: 250px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .recruit-section .recruit-text .recruit-description {
    font-size: 0.9rem !important;
    line-height: 1.7;
  }
  
  .recruit-section .space-page-background {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    width: 100% !important;
  }

  .universe-container{
    width: 100%!important;
  }
  
  .recruit-section .universe-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
  }
  
  /* === トップページの共通要素の調整 === */
  .animation-wrapper ~ * .view-more-button,
  .about .view-more-button,
  .news-section .view-more-button,
  .business .view-more-button,
  .achievements-section-white .view-more-button,
  .recruit-section .view-more-button {
    display: block ;
  }
  
  /* トップページのダイヤモンドアニメーション調整 */
  .about .diamonds-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
  }
  
  .about .diamond {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
  }
  
  .about .blue-diamond {
    background: rgba(59, 130, 246, 0.7);
    animation: floatBlue 6s ease-in-out infinite;
  }
  
  .about .red-diamond {
    background: rgba(239, 68, 68, 0.7);
    animation: floatRed 8s ease-in-out infinite;
  }
  
  /* トップページのダイヤモンドの配置 */
  .about .diamond-1 { top: 15%; left: 10%; animation-delay: 0s; }
  .about .diamond-2 { top: 25%; right: 15%; animation-delay: 1s; }
  .about .diamond-3 { top: 40%; left: 5%; animation-delay: 2s; }
  .about .diamond-4 { top: 55%; right: 20%; animation-delay: 3s; }
  .about .diamond-5 { top: 70%; left: 15%; animation-delay: 1.5s; }
  .about .diamond-6 { top: 80%; right: 10%; animation-delay: 2.5s; }
  .about .diamond-7 { top: 35%; left: 80%; animation-delay: 4s; }
  .about .diamond-8 { top: 60%; left: 75%; animation-delay: 0.5s; }
  .about .diamond-9 { top: 20%; left: 60%; animation-delay: 3.5s; }
  .about .diamond-10 { top: 85%; left: 70%; animation-delay: 1.8s; }
  
  @keyframes floatBlue {
    0%, 100% { transform: rotate(45deg) translateY(0px); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(-15px); opacity: 0.4; }
  }
  
  @keyframes floatRed {
    0%, 100% { transform: rotate(45deg) translateY(0px); opacity: 0.7; }
    50% { transform: rotate(45deg) translateY(-20px); opacity: 0.4; }
  }

  .english-text{
    font-size: 22px;
    margin-bottom: 100px!important;
    /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-weight: 800 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale; */
  }

  .japanese-text{
    margin-top: 50px!important;
    font-size: 20px!important;
  }

  .news-container{
    margin: 0 0 0 20px!important;
  }

  .sp-about-text{
    font-size: 18px!important;
    font-weight: bold!important;
  }

  .about-content h3{
    font-size: 22px!important;
	font-weight: bold!important;
    margin: initial !important;
  }

  .news-title{
    position: initial!important;
  }

  .news-card{
    display: block!important;
  }

  .news-container > .view-more-button{
    position: initial!important;
  }

  .wavy-lines-section{
    opacity: 0.5!important;
  }

  .recruit-content{
    display: block!important;
  }

  .recruit-content-wrapper > .view-more-button{
    bottom: -30px!important;
    left: 15px;
  }

  /* recruit */
  .animation-hero{
    display: none!important;
  }

  .recruit-hero{
    display: block;
    margin-bottom: -2px;
  }

  .recruit-main{
    padding-top: initial;
  }

  .recruit-hero > .container{
    padding: initial;
  }

  /* photo-scroller-itemの画像をSP用に調整 */
  .photo-scroller-item {
    width: 100%;
    height: auto; /* 高さを自動に設定 */
    background-color: transparent; /* 背景を透明に変更 */
  }

  .photo-scroller-item img {
    max-width: 100%; /* 画面幅を超えないが、元サイズより大きくしない */
    height: initial!important;
    object-fit: scale-down; /* 元サイズを超えて拡大しない */
    object-position: center; /* 画像の中央を表示 */
  }

  /* recruit-hero-containerをSP用に調整 */
  .recruit-hero-container {
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }

  .recruit-hero-text > h1{
    margin-right: initial!important;
    margin-bottom: initial!important;
  }

  .recruit-charm > h2{
    font-size: 2rem!important;
  }

  .recruit-grid{
    padding: 0 30px!important;
  }

  .recruit-card {
    height: 50%;
  }

  .charm {
    padding-bottom: 30px;
  }

  .charm p {
    margin: 22px;
  }

  .recruit-charm-title{
    font-size: 22px;
    font-weight: bold;
  }

  .recruit-charm-title-sub{
    font-size: 17px;
    font-weight: bold;
  }

  .recruit-area{
    display: block;
  }

  .rectuit-box{
    margin: initial;
  }

  .rectuit-box img{
    padding: 30px;
  }

  .recruit-area-section{
    padding-top: initial;
  }

  /* 採用の流れをSP用に調整 */
  .recruitment-flow-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
  }

  .recruitment-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 40px;
    position: relative;
    flex-direction: initial;
    text-align: initial;
  }

  .recruitment-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 10px);
    background-color: #3b5998;
    z-index: 1;
  }

  .recruitment-step:last-child {
    margin-bottom: 0;
  }

  .step-circle {
    width: 50px;
    height: 50px;
    background-color: #3b5998;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .step-text {
    color: white;
    font-weight: bold;
    font-size: 10px;
    text-align: center;
  }

  .step-content {
    padding: 0;
    border-radius: 8px;
    flex: 1;
    margin-top: 0;
  }

  .step-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    background-color: #d3d3d3;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 0 0 10px 0;
  }

  .step-description {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0 20px;
    font-weight: bold;
  }

  /* 採用の流れタイトル調整 */
  .recruit-top {
    font-size: 1.8rem !important;
    margin-left: 20px;
    margin-bottom: 30px !important;
  }

  .sp-only{
    display: block!important;
  }

  .pc-only{
    display: none!important;
  }
}
