* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Helvetica, Arial, sans-serif;
}

.site-header {
    padding: 20px;
    position: fixed;
    width: 100%;
    z-index: 100;
}



.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.square-logo {
    width: 80px;
    height: 80px;
    background-color: #ffe100;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.global-nav a {
    font-size: 14px;
    text-decoration: none;
    color: #000;
    position: relative;
}

.global-nav a.active {
    color: #000;
}

.global-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffe100;
}

.global-nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ffe100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
  }
  
 
/* logo-text の基本スタイル */
.logo-text {
    max-width: 100%; /* 親要素に合わせて幅を100%に */
    height: auto;    /* 高さを自動調整して、縦横比を維持 */
    display: block;  /* 画像の余白をなくすためにブロック要素として表示 */
    margin-left: 10px; 
    min-height: 24px;
    min-width: auto;
  }
  
/* モバイルの画面サイズ 768px 以下 */
@media (max-width: 768px) {
    .logo-text {
        width: 80%;  
        height: auto;
        transform: scale(0.8);
        transform-origin: left center; /* 左側を基準に縮小 */
        margin-left: 5px; /* 必要に応じて間隔を調整 */
    }
}

/* スマホ用の画面サイズ 480px 以下 */
@media (max-width: 480px) {
    .logo-text {
        width: 80%;  
        height: auto;
        transform: scale(0.8);
        transform-origin: left center; /* 左側を基準に縮小 */
        margin-left: 5px; /* 必要に応じて間隔を調整 */
    }
}

  /* Adjust header padding to accommodate fixed logo size */
@media (max-width: 768px) {
    .site-header {
      padding: 15px 20px; /* Slightly reduced padding */
    }
    
    .square-logo {
      width: 60px;
      height: 60px;
    }
    
    /* We're removing the height reduction for logo-text here */
  }
  
  @media (max-width: 480px) {
    .site-header {
      padding: 12px 15px; /* Further reduced padding for smaller screens */
    }
    
    .square-logo {
      width: 50px;
      height: 50px;
    }
    
    /* The logo-text will maintain its minimum size */
  }
  
  /* Additional improvements for better responsive design */
  @media (max-width: 768px) {
    .header-container {
      align-items: center;
    }
    
    /* Improve menu button positioning */
    #menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* Ensure global nav items are properly centered when menu is open */
    .global-nav.active ul {
      padding: 0 20px;
      width: 100%;
      text-align: center;
    }
  }

.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    background-image: url('../img/1212.jpg');
    background-size: 60% auto;
    background-position: 20px center;
    background-repeat: no-repeat;
}

/* Hero Section Image Animation - Add to your styles.css */
.hero {
    position: relative;
    overflow: hidden; /* Ensures the animation stays within bounds */
    background-image: none; /* Remove default background */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px; /* Match your background-position x value */
    width: 60%; /* Match your background-size width */
    height: 100%;
    background-image: url('../img/1212.jpg');
    background-size: 100% auto;
    background-position: center center;
    background-repeat: no-repeat;
    animation: heroImageRise 1.2s ease-out forwards;
    transform: translateY(100%);
}

@keyframes heroImageRise {
    0% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Media queries for responsive design */
@media (max-width: 1280px) {
    .hero::before {
        left: 80px;
    }
}

@media (max-width: 768px) {
    .hero::before {
        width: calc(100% - 80px);
        left: 50%;
        transform: translateX(-50%) translateY(100%);
    }
    
    @keyframes heroImageRise {
        0% {
            transform: translateX(-50%) translateY(100%);
        }
        100% {
            transform: translateX(-50%) translateY(0);
        }
    }
}

@media (max-width: 480px) {
    .hero::before {
        width: calc(100% - 40px);
    }
}

/* Update the hero background to be transparent since we're using ::before */
.hero {
    background-image: none;
}

.hero-title {
    font-size: 180px;
    font-weight: bold;
    margin: 0;
    line-height: 0.8;
    font-family: Helvetica, Arial, sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    padding: 15px 40px;
}

.logo img {
    height: 32px;
}

.recruit-link {
    position: relative;
}

.recruit-link::after {
    content: '→';
    margin-left: 5px;
}

.header-buttons {
    display: none;
}

.header-button {
    display: none;
}

.menu-button {
    display: none;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    padding: 120px 60px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
    gap: 60px;
}

.hero-left {
    flex: 1;
}

.hero-subtitle {
    font-size: 24px;
    color: #666;
}

.hero-right {
    flex: 1.5;
}

.hero-image {
    width: 100%;
}

.isometric-illustration {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scroll-indicator span {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 1px;
    height: 40px;
    background: #333;
    margin: 0 auto;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border: solid #333;
    border-width: 0 1px 1px 0;
    padding: 3px;
    transform: rotate(45deg);
}

/* Scroll Line Animation - Complete replacement for the existing scroll-line styles */
.scroll-down {
    position: absolute;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.scroll-down span {
    font-size: 12px;
    margin-bottom: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 5px;
    height: 60px;
    background-color: transparent; /* Changed to transparent */
    position: relative;
    overflow: hidden;
}

.scroll-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffe100;
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0% {
        height: 0;
        top: 0;
        opacity: 0;
    }
    30% {
        height: 100%;
        top: 0;
        opacity: 1;
    }
    100% {
        height: 0;
        top: 100%;
        opacity: 0;
    }
}

@media (max-width: 1280px) {
    .hero {
        background-position: 80px center;
    }
}

@media (max-width: 768px) {
    .hero {
        background-position: center center;
        background-size: calc(100% - 80px) auto;
    }

    .square-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .hero {
        background-position: center center;
        background-size: calc(100% - 40px) auto;
    }

    .square-logo {
        width: 50px;
        height: 50px;
    }
}


/* indexメインセクション */


main {
    padding-top: 80px;
    margin-bottom: 60px;
}

section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-box {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

input, textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

button {
    padding: 0.8rem 1.5rem;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #3498db;
}

footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: 0 auto 2rem auto;
}

.slide {
    display: none;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.slide-caption {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    border: none;
    border-radius: 50%;
    transition: 0.3s;
}

.next {
    right: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    text-align: center;
    padding: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: 0.3s;
}

.active, .dot:hover {
    background-color: #2c3e50;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

.goals-logo {
    height: 32px;
    width: auto;
}

/* アニメーション効果 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-image svg {
    animation: float 6s ease-in-out infinite;
}




.message-section {
    min-height: 100vh;
    position: relative;
    background-color: #f5f5f5;
    overflow: hidden;
    margin-top: 100px;
    margin-bottom: 200px; /* 余白を追加 */
}

.message-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 2;
    width: 16em;
    text-align: justify; /* 事業内容と同じ最大幅 */
}

.message-title {
    font-size: 36px;
    font-weight: normal;
    line-height: 1.6;
    margin-bottom: 10px;
}

.message-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

.message-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 60px;
}

.message-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
    overflow: hidden;
    background-color: #e6f2ff;
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9) contrast(1.1);
}

@media (max-width: 768px) {
    .message-section {
        min-height: auto;
        padding: 60px 20px;
        background-color: #fff;
        margin-top: 60px;
        display: flex;
        flex-direction: column;
    }

    .message-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100% - 80px);
        margin: 0 auto;
        order: 1; /* テキストを上に */
    }

    .message-title {
        font-size: 28px;
        text-align: center;
    }

    .message-subtitle {
        text-align: center;
    }

    .message-text {
        font-size: 14px;
        text-align: justify; /* テキストを両端揃え */;
        margin-bottom: 40px;
    }

    .message-image {
        position: relative;
        width: calc(100% - 80px);
        height: 300px;
        margin: 0 auto;
        order: 2; /* 画像を下に */
    }
}

@media (max-width: 480px) {
    .message-section {
        padding: 40px 20px;
        margin-top: 40px;
    }

    .message-title {
        font-size: 24px;
    }

    .message-content {
        width: calc(100% - 40px);
    }

    .message-image {
        width: calc(100% - 40px);
        height: 220px;
    }
}

/* ハンバーガーメニューのスタイル */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* グローバルナビの表示制御 */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .global-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .global-nav.active {
        display: flex;
        opacity: 1;
        justify-content: center;
        align-items: center;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .global-nav a {
        font-size: 24px;
        padding: 10px;
        display: inline-block;
        position: relative;
    }

    /* ハンバーガーメニューがアクティブ時 */
    .hamburger.active .hamburger-icon {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .hamburger-icon {
        width: 20px;
        height: 20px;
    }

    .global-nav a {
        font-size: 16px;
    }
}





    /* index-内容のセクション */

.work-content,
.recruit-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 110px;
    align-items: center;
    width: 100%;
}

.service-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row-reverse;
    gap: 60px;
    align-items: center;
    width: 100%;
}

.work-image,
.service-content-image,
.recruit-content-image {
    flex: 1;
    height: 500px;
}

.work-image img,
.service-content-image img,
.recruit-content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-text-content,
.service-text-content,
.recruit-text-content {
    flex: 1;
    padding-left: 40px;
    padding-right: 0;
}

.work-text,
.service-text,
.recruit-text {
    max-width: 600px;
}

.work-text p,
.service-text p,
.recruit-text p {
    margin-bottom: 20px;
    line-height: 2;
    text-align: justify;
}

.work-header,
.service-header,
.recruit-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.square-icon,
.square-icon,
.square-icon {
    width: 24px;
    height: 24px;
    background-color: #ffe100;
    flex-shrink: 0;
}

.work-title,
.service-title,
.recruit-title {
    font-size: 24px;
    font-weight: normal;
    letter-spacing: 0.1em;
}

.work-subtitle,
.service-subtitle,
.recruit-subtitle {
    color: #666;
    font-size: 14px;
}

.work-button,
.service-more-button,
.recruit-button {
    display: inline-flex;
    align-items: center;
    padding: 15px 40px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.work-button .arrow,
.service-more-button .arrow,
.recruit-button .arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.work-button:hover,
.service-more-button:hover,
.recruit-button:hover {
    background-color: #000;
    color: #fff;
}
.work-button:hover .arrow,
.service-more-button:hover .arrow,
.recruit-button:hover .arrow {
    transform: translateX(5px);
}

.service-content,
.work-content,
.recruit-content {
    display: flex;
    flex-direction: row; /* 左にテキスト、右に画像 */
    gap: 60px; /* 画像とテキストの間の余白 */
    align-items: flex-start; /* テキストと画像の上端を揃える */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 画像とテキストの幅を統一 */
.service-text-content {
    flex: 1;
    max-width: 600px; /* テキストの横幅を統一 */
}

.service-content-image {
    flex: 1;
    max-width: 600px; /* 画像の横幅も統一 */
}

.service-content-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


/* 画像とテキストの配置を統一 */
.work-content,
.recruit-content {
    flex-direction: row-reverse; /* 画像を右側、テキストを左側に配置 */
    gap: 60px; /* .service-content と統一 */
}

.service-content {
    flex-direction: row; /* 左にテキスト・右に画像 */
    gap: 60px;
}

/* 画像とテキストの横幅を統一 */
.work-image,
.recruit-content-image,
.service-content-image {
    flex: 1.2; /* 画像の比率を統一 */
    height: 500px;
}

.work-text-content,
.recruit-text-content,
.service-text-content {
    flex: 1;
    padding-left: 0; /* 左側に寄せる */
    padding-right: 0; /* 右側も余白なしで統一 */
    max-width: 600px; /* テキストの横幅を統一 */
}

/* pタグ内のテキストの横幅を統一 */
.work-text p,
.service-text p,
.recruit-text p {
    max-width: 600px; /* 横幅を統一 */
    margin: 0 auto; /* 中央寄せ */
    line-height: 2;
    text-align: justify; /* 文字揃えを統一 */
}

/* 画像を横幅いっぱいに表示 */
.work-image img,
.recruit-content-image img,
.service-content-image img {
    width: 100%;
    height: 80%;
    object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .work-content,
    .recruit-content,
    .service-content {
        flex-direction: column;
        gap: 40px;
    }

    .work-text-content,
    .recruit-text-content,
    .service-text-content {
        width: calc(100% - 80px);
        margin: 0 auto;
    }

    .work-image,
    .recruit-content-image,
    .service-content-image {
        width: calc(100% - 80px);
        height: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .work-text-content,
    .recruit-text-content,
    .service-text-content {
        width: calc(100% - 40px);
    }

    .work-image,
    .recruit-content-image,
    .service-content-image {
        width: calc(100% - 40px);
        height: 220px;
    }
}





@media (max-width: 768px) {
    .work-content,
    .service-content,
    .recruit-content {
        flex-direction: column;
        gap: 40px;
    }

    .work-text-content,
    .service-text-content,
    .recruit-text-content {
        padding: 0;
        width: calc(100% - 80px);
        margin: 0 auto;
    }

    .work-image,
    .service-content-image,
    .recruit-content-image,
    .message-image {
        height: 300px;
        width: calc(100% - 80px);
        margin: 0 auto;
    }

    .work-text,
    .service-text,
    .recruit-text {
        font-size: 14px;
    }

    .work-button,
    .service-more-button,
    .recruit-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .work-text-content,
    .service-text-content,
    .recruit-text-content {
        width: calc(100% - 40px);
    }

    .work-image,
    .service-content-image,
    .recruit-content-image,
    .message-image {
        width: calc(100% - 40px);
        height: 220px;
    }
}





@media (max-width: 1280px) {
    .recruit-section,
    .work-section,
    .service-content-section {
        padding: 100px 80px;
    }
}

@media (max-width: 768px) {
    .recruit-section,
    .work-section,
    .service-content-section{
        padding: 60px 40px;
    }
}

@media (max-width: 480px) {
    .recruit-section,
    .work-section,
    .service-content-section{
        padding: 40px 20px;
    }
}

.footer-section {
    padding: 60px 40px; /* Match the site-header padding */
    background-color: #fff;
    border-top: 1px solid #eee;
}

.footer-content {
    max-width: 1200px; /* Match the header-container max-width */
    margin: 0 auto;
    position: relative;
    width: 100%; /* Ensure it takes full width within constraints */
}

/* Adjust footer-info to align with the logo position */
.footer-info {
    max-width: 400px;
    margin-left: 0; /* Align with left edge of header content */
}

.footer-company {
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
}

.footer-address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-tel {
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-business {
    font-size: 11px;
    color: #666;
}

.footer-business1 {
    font-size: 10px;
    color: #666;
}

.scroll-top {
    position: fixed;
    right: 40px;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #000;
}

.scroll-top span {
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 10px;
}

.scroll-arrow {
    display: none;
}

.scroll-top span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffe100;
    transition: width 0.3s ease;
}

.scroll-top:hover span::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-section {
        padding: 40px;
    }

    .scroll-top {
        right: 20px;
        bottom: 20px;
    }

    .scroll-top span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 40px 20px;
    }
}

html {
    scroll-behavior: smooth;
}

.footer-nav {
    position: absolute;
    right: 0;
    bottom: 0;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav a {
    text-decoration: none;
    color: #000;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    padding: 5px 0;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ffe100;
    transition: width 0.3s ease;
}

.footer-nav a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .footer-nav {
        right: 40px;
    }
    
    .footer-nav a {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .footer-nav {
        right: 20px;
    }
    
    .footer-nav a {
        font-size: 11px;
    }
}

/* メニューボタンのスタイル */
#menu-btn {
    display: none;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger-icon {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

/* グローバルナビの表示制御 */
@media (max-width: 768px) {
    #menu-btn {
        display: block;
    }

    .global-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .global-nav.active {
        display: flex;
        opacity: 1;
        justify-content: center;
        align-items: center;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .global-nav a {
        font-size: 24px;
        padding: 10px;
        display: inline-block;
        position: relative;
    }

    /* メニューボタンがアクティブ時 */
    #menu-btn.active .hamburger-icon {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .hamburger-icon {
        width: 30px;
        height: 30px;
    }

    .global-nav a {
        font-size: 16px;
    }
}



/* Alternative: For full-width headings with text-only underline */
.work-title span, 
.service-title span, 
.message-title span, 
.recruit-title span, 
.hero-title span,
.footer-company span {
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.work-title span:after, 
.service-title span:after, 
.message-title span:after, 
.recruit-title span:after, 
.hero-title span:after,
.footer-company span:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #ffe100;
}

@media (max-width: 768px) {
    .work-title:after, 
    .service-title:after, 
    .message-title:after, 
    .recruit-title:after, 
    .hero-title:after,
    .footer-company:after {
        width: 30px; /* Slightly narrower on smaller screens */
        height: 2px; /* Slightly thinner on smaller screens */
    }
}

/* 共通スタイルはそのまま */

/* service.html 用の追加スタイル */
.page-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    background-color: #f8f9fa;
}

.page-hero-content {
    max-width: 800px;
}

.page-hero-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-hero-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

.page-hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.content-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.content-text {
    font-size: 16px;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.service-item-header {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.service-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.service-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #2c3e50;
}

.content-extra {
    text-align: center;
    margin-top: 60px;
}

.facility-types {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.facility-type {
    background: #ffe100;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
}