/* 📌 [コメンアウト: Custom Navigation Layout] */
/* デスクトップのみ: ナビゲーションメニューを75%幅でspace-between配置 */
@media (min-width: 768px) {
  .navbar-nav-custom {
    /*width: 75% !important;*/
    justify-content: space-between !important;
    gap: 1rem !important;
    display: flex !important;
    flex-wrap: wrap !important;
  }
  
  .navbar-nav-custom .nav-item {
    margin: 0 !important;
    flex: 0 0 auto !important;
  }
  
  .navbar-nav-custom .nav-link {
    width: auto !important;
    min-width: auto !important;
  }
}

/* 📌 [コメンアウト: Custom Navigation Link Spacing] */
.navbar-nav .nav-link {
  line-height: 1.75 !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

.navbar-nav .nav-link span {
  line-height: 1.75 !important;
}

/* 📌 [コメンアウト: Custom Navigation Japanese Title] */
.nav-jp-title {
  color: #2B323C !important;
  transition: opacity 0.3s ease !important;
}

.navbar-nav .nav-link {
  color: #2B323C !important;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #62D642 !important;
}

.navbar-nav .nav-link:hover .nav-jp-title,
.navbar-nav .nav-link:focus .nav-jp-title {
  color: #62D642 !important;
  opacity: 1 !important;
}

.nav-link:hover .nav-jp-title {
  opacity: 1 !important;
}

/* 📌 [コメンアウト: PC Submenu Styles] */
@media (min-width: 768px) {
  .nav-item {
    position: relative;
  }
  
  .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 250px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
  }
  
  .nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .submenu-item {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  
  .submenu-link {
    color: #2B323C !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-size: 14px;
    padding: 8px 20px;
    display: block;
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1.4;
  }
  
  .submenu-link:hover {
    color: #62D642 !important;
    background-color: #f8f9fa;
  }
}

/* 📌 [コメンアウト: Slider Progress Bar] */
.slider-progress .progress {
    background-color: #62D642 !important;
    height: 10px !important;
    border-radius: 2px !important;
  }
  
/* 📌 [コメンアウト: Custom Bootstrap Shadow] */
.shadow {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2) !important;
}

#our-service {
    position: relative;
    z-index: 5;
}
  
  /* 📌 [コメンアウト: Custom 80px Padding Classes] */
  .p-80 { padding: 80px !important; }
  .pt-80 { padding-top: 80px !important; }
  .pb-80 { padding-bottom: 80px !important; }
  .pl-80 { padding-left: 80px !important; }
  .pr-80 { padding-right: 80px !important; }
  .px-80 { padding-left: 80px !important; padding-right: 80px !important; }
  .py-80 { padding-top: 80px !important; padding-bottom: 80px !important; }
  
  /* !important를 사용하면 Bootstrap의 기본 유틸리티를 덮어쓸 수 있습니다. */

#bar{
    width: 80px;
    z-index: -1;
    position: relative;
}

/* 📌 [コメンアウト: Responsive Design for #bar and padding] */
@media (max-width: 767px) {
    #bar {
        display: none !important;
    }
    
    .pl-80 {
        padding-left: 1rem !important;
    }
    .pr-80 { padding-right: 1rem !important; }
    
    /* モバイル版ナビゲーションの背景色 */
    .navbar {
        background-color: #62D642 !important;
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        z-index: 9999 !important;
        padding: 0 !important;
        height: 56px;
    }
    
    .navbar .container-fluid {
        padding: 8px 16px !important;
        margin: 0 !important;
        max-width: 100% !important;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .navbar-brand {
        z-index: 10000 !important;
        position: relative;
        height: auto;
        margin: 0 !important;
        padding: 0 !important;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand img {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .navbar-toggler {
        z-index: 10000 !important;
        position: relative;
        border: none !important;
        padding: 8px !important;
        height: 40px;
        width: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
    }
    
    .navbar-toggler:focus {
        box-shadow: none !important;
    }
    
    .navbar-toggler-icon {
        width: 20px !important;
        height: 2px !important;
        background-color: #333 !important;
        background-image: none !important;
        position: relative;
        transition: all 0.3s ease;
        display: block;
    }
    
    /* ハンバーガーメニューの線 */
    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background-color: #333;
        transition: all 0.3s ease;
        left: 0;
    }
    
    .navbar-toggler-icon::before {
        top: -6px;
    }
    
    .navbar-toggler-icon::after {
        top: 6px;
    }
    
    /* メニューが開いている時のX字 */
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        background-color: transparent !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
        background-color: #333 !important;
    }
    
    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
        background-color: #333 !important;
    }
    
    /* ヘッダーの高さ分、bodyにpadding追加 */
    body {
        padding-top: 56px;
    }
    
    .navbar-collapse {
        background-color: #F0F0E8 !important;
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 56px) !important;
        overflow-y: auto;
        padding: 20px;
        z-index: 999 !important;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s ease;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        transform: translateX(0);
        opacity: 1;
    }
    
    .navbar-collapse.collapsing {
        transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.3s ease;
        transform: translateX(100%);
        opacity: 0;
    }
    
    /* ナビゲーションリンクのテキスト色 */
    .navbar-nav {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 15px 0 !important;
    }
    
    /* 英語テキストの色 */
    .navbar-nav .nav-link .text-green-500 {
        color: #62D642 !important;
    }
    
    /* 日本語テキストの色 */
    .navbar-nav .nav-link .nav-jp-title {
        color: #2B323C !important;
    }
    
    /* サブメニューのスタイル */
    .submenu {
        list-style: none;
        padding: 0;
        margin: 10px 0 0 20px;
    }
    
    .submenu-item {
        margin-bottom: 8px;
    }
    
    .submenu-link {
        color: #2B323C !important;
        text-decoration: none !important;
        border-bottom: none !important;
        font-size: 14px;
        padding: 5px 0;
        display: block;
        transition: color 0.3s ease;
    }
    
    .submenu-link:hover {
        color: #62D642 !important;
        text-decoration: none !important;
        border-bottom: none !important;
    }
}

/* 📌 [コメンアウト: Sun Clean Yanagi Text Style] */
.fw-bold.ls-3 {
    font-size: 12px !important;
    letter-spacing: 0.3em !important;
}

/* 📌 [コメンアウト: Scroll Indicator Line] */
.scroll-line {
    position: absolute;
    top: 70px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background-color: #333;
    animation: growLine 6s ease-in-out infinite;
}

.scroll-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 12px;
    font-weight: bold;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
    width: 100%;
    height: 100px;
    background-color: #62D642 !important;
    display: flex;
    align-items: center;
    justify-content: center;}

@keyframes growLine {
    0% {
        height: 0px;
        top: 110px;
    }
    25% {
        height: calc(100vh - 110px);
        top: 110px;
    }
    50% {
        height: calc(100vh - 110px);
        top: 110px;
    }
    100% {
        height: 0px;
        top: calc(100vh - 110px);
    }
}

/* 📌 [コメンアウト: Service Slideshow Styles] */
.service-slideshow-wrapper {
    position: relative;
}

.service-slideshow {
    position: relative;
}

/* PCでのみFirstview左側カラムの高さを700pxに設定 */
@media (min-width: 769px) {
    #firstview {
        height: 700px !important;
    }
    .service-slideshow.col.slick-initialized.slick-slider{
        padding-top: 100px !important;
    }
    .service-slideshow-wrapper button{
        margin-top: 100px !important;
    }
    div#slick-1{
        min-height: calc(100% + 30px) !important;
    }
    /* Slick Listの高さ調整 */
    .slick-list {
        height: 100% !important; /* 高さを調整 */
    }
    .slick-track{
        height: 100% !important;
    }
    .slick-slide img{
        height: 100% !important;
        object-fit: cover;
        width: 100% !important;
    }
}



.service-slide {
    outline: none;
}

.service-slide img {
    border-radius: 3px;
    width: 100%;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.slide-info {
    padding: 15px 10px;
}

.slide-date {
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
    flex-shrink: 0;
}

.slide-title {
  font-weight: 600;
  color: #333;
  margin: 0;
  flex: 1;
}

.slide-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.slide-title a:hover {
  color: #62D642;
}

/* 矢印ボタンのスタイル */
.service-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    width: 0;
    height: 0;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.service-arrow svg {
    display: none;
}

.service-arrow-prev {
    left: -50px;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-right: 35px solid rgba(98, 214, 66, 0.8);
    border-radius: 5px;
}

.service-arrow-prev:hover {
    border-right-color: rgba(98, 214, 66, 1);
    transform: translateY(-50%) translateX(-3px);
}

.service-arrow-next {
    right: -50px;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-left: 35px solid rgba(98, 214, 66, 0.8);
    border-radius: 5px;
}

.service-arrow-next:hover {
    border-left-color: rgba(98, 214, 66, 1);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.4));
}

/* 📌 [コメンアウト: About Us Background Image] */
#about-us {
    background-image: url('https://test.sunclean-y.co.jp/wp-content/themes/sunclean-y-btstrp/img/about-us-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    min-height: 286px;
    display: flex;
    align-items: center;
}

/* 📌 [コメンアウト: News Section Styles] */
.news-list {
    padding: 20px 0;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.news-category {
    font-size: 14px;
    font-weight: 600;
    margin-right: 20px;
    flex-shrink: 0;
    min-width: 80px;
}

.news-title {
    font-size: 16px;
    font-weight: 400;
    flex: 1;
}

/* 📌 [コメンアウト: YouTube Section Styles] */
#youtube-section {
    background-color: #62D642;
}

.youtube-header {
    background-color: #62D642;
}

.youtube-slideshow-wrapper {
    overflow: hidden;
    width: 100%;
}

.youtube-slideshow {
    /* Slick will handle the layout */
    width: 100%;
}

.youtube-slide {
    width: 300px !important;
    margin: 0 15px;
    display: block !important;
}

.youtube-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}

.youtube-logo {
    align-self: flex-start;
    background: #1e3a8a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    color: #62D642;
    font-weight: bold;
    font-size: 14px;
}

.youtube-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.youtube-title {
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-top: auto;
    margin-bottom: 10px;
}

.youtube-bottom-bar {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

.watch-text {
    color: white;
    font-size: 14px;
}

.youtube-text {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.youtube-description p {
    color: white;
    font-size: 14px;
    margin: 0;
    text-align: center;
}

/* Slick handles the animation */

.youtube-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.youtube-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 📌 [コメンアウト: RECRUIT Section Styles] */
.recruit-section {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.recruit-container {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.recruit-left {
    width: 30%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.recruit-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #2C333A;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.recruit-left .worker-image-placeholder {
    position: relative;
    z-index: 2;
}
.recruit-left .worker-image-placeholder img{
    position: absolute;
    bottom: 0;
    right: -60px;
}

.recruit-right {
    width: 70%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: start;
    position: relative;
    background-color: #2C333A;
}

.recruit-right::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.recruit-right .recruit-content {
    position: relative;
    z-index: 2;
}

.recruit-content {
    text-align: left;
    padding: 0 60px;
}

.recruit-subtitle {
    font-size: 18px;
    color: #62D642;
    margin-bottom: 10px;
    font-weight: 500;
}

.recruit-title {
    font-size: 48px;
    color: #62D642;
    font-weight: 900;
    margin-bottom: 30px;
    line-height: 1;
}

.recruit-btn {
    margin-top: 20px;
}

.worker-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.worker-placeholder {

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: 8px;
}

/* Hover Animation */
.recruit-container:hover .recruit-left::before {
    width: 100vw;
}

.recruit-container:hover .recruit-right::before {
    width: 0%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recruit-section {
        height: 300px;
    }
    
    .recruit-left {
        width: 100%;
    }
    
    .recruit-right {
        position: absolute;
        right: 0;
        top: 0;
        width: 70%;
    }
    
    .recruit-right::before {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .recruit-content {
        padding: 0 30px;
    }
    
    .recruit-title {
        font-size: 36px;
    }
}

/* 📌 [コメンアウト: CONTACT Section Styles] */
.contact-section {
    background-color: #F5F5F0;
    min-height: 600px;
}

.contact-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.contact-title-vertical {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.contact-title {
    font-size: 64px;
    font-weight: 900;
    color: #8bc34a;
    margin: 0;
    line-height: 0.8;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.contact-subtitle {
    font-size: 16px;
    color: #333;
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.contact-form-wrapper {
    padding: 40px 0;
}

.form-instruction {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

/* Contact Form 7 スタイル */
.wpcf7-form {
    max-width: 100%;
}

.wpcf7-form p {
    margin-bottom: 20px;
}

/* Radio Button (お問い合わせ項目) - 新しいデザイン */
.wpcf7-form .fstyle_a1 {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item {
    margin: 0;
    display: flex;
    align-items: center;
    position: relative;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item input[type="radio"]:hover {
    border-color: #62D642;
    box-shadow: 0 0 0 3px rgba(98, 214, 66, 0.1);
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item input[type="radio"]:checked {
    border-color: #62D642;
    background-color: #62D642;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item label {
    margin: 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcf7-form .fstyle_a1 .wpcf7-list-item:hover label {
    color: #62D642;
}
span.wpcf7-list-item-label{
    display: inline-block!important;
}

/* Form Labels */
.wpcf7-form span {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.font-weight-normal {
    font-weight: normal !important; /* font-weightを薄く */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.font-weight-normal:hover,
.font-weight-normal:focus {
    color: #62D642 !important;
    text-decoration: none !important;
}

/* 📌 [Blog Page Styles] */
.blog-page {
    background-color: #F7F7F3;
}

.blog-header {
    max-width: 720px;
    margin: 0 auto 48px auto;
}

.blog-subtitle {
    letter-spacing: 0.2em !important;
}

.blog-description {
    color: #4b5563;
    letter-spacing: 0;
}

.blog-list {
    display: grid;
    gap: 32px;
}

@media (min-width: 768px) {
    .blog-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
}

.blog-card {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card-link {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
    height: 100%;
}

.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.blog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 12px;
    letter-spacing: 0;
    font-size: 13px;
}

.blog-card-date {
    color: #6b7280;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #2B323C;
    margin-bottom: 12px;
    line-height: 1.5;
}

.blog-card-excerpt {
    color: #4b5563;
    margin: 0;
    letter-spacing: 0;
}

.blog-pagination {
    margin-top: 48px;
    text-align: center;
}

.blog-pagination ul {
    display: inline-flex;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #2B323C !important;
    text-decoration: none !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination a:focus,
.blog-pagination .current {
    background-color: #62D642;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.blog-empty {
    padding: 60px 0;
    color: #6b7280;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    transition: border-color 0.3s ease;
}
/* お名前フィールド専用スタイル */
.wpcf7-form p:has(span:contains("お名前")) input[type="text"],
.wpcf7-form p:has(span:contains("お名前 * 必須")) input[type="text"],
.wpcf7-form input[name="your-name"] {
    width: auto !important;
    max-width: 300px;
}

/* より具体的なセレクター（ブラウザサポート用） */
.wpcf7-form input[name="your-name"].wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    width: auto !important;
    max-width: 300px;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #8bc34a;
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.1);
}


.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Acceptance (個人情報) */
.wpcf7-form table {
    width: 95% !important;
    border: none;
    margin: 20px 0;
}

.wpcf7-form table tr {
    border: none;
}

.wpcf7-form table td {
    border: none;
    padding: 0;
    vertical-align: top;
}

.wpcf7-form table td:first-child {
    width: auto;
    padding-right: 8px;
}

.wpcf7-form table td:last-child {
    width: 100%;
    font-size: 14px;
    line-height: 1.4;
}

.wpcf7-form input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* Submit Button */
.wpcf7-form .wpcf7-submit {
    background-color: #8bc34a;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wpcf7-form .wpcf7-submit:hover {
    background-color: #7cb342;
}

.wpcf7-form .wpcf7-submit::after {
    content: '▶';
    font-size: 12px;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-title {
        font-size: 48px;
    }
    
    .contact-title-vertical {
        flex-direction: row;
        gap: 30px;
    }
    
    .contact-title,
    .contact-subtitle {
        writing-mode: horizontal-tb;
        text-orientation: initial;
    }
    
    .contact-form-wrapper {
        padding: 20px 0;
    }
}

/* Footer Styles */
.footer-section {
    background-color: #f8f8f5;
    padding: 60px 0;
    font-family: 'Noto Sans JP', sans-serif;
}

.footer-content {
    display: flex;
    gap: 60px;
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    left: 35%;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #dddddd;
}

.footer-left {
    flex: 0 0 35%;
    padding-right: 30px;
}

.footer-right {
    flex: 1;
    padding-left: 30px;
}

/* Company Information Styles */
.company-info {
    color: #2B323C;
}

.company-name {
    margin-bottom: 20px;
}

.company-category {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #2B323C;
}

.company-main-name {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.company-logo {
    width: auto;
    margin-right: 8px;
}

.company-type {
    font-size: 16px;
    color: #2B323C;
}

.company-full-name {
    font-size: 16px;
    margin: 0;
    color: #2B323C;
}

.youtube-icon {
    width: 62px;
    height: 62px;
    background-color: #2B323C;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}

.contact-info {
    margin-top: 20px;
}

.address {
    font-size: 14px;
    margin: 0 0 4px 0;
    color: #2B323C;
}

.phone-fax {
    display: flex;
    gap: 20px;
    margin: 8px 0;
}

.phone,
.fax {
    font-size: 14px;
    color: #2B323C;
}

.business-hours {
    font-size: 12px;
    margin: 12px 0 0 0;
    color: #2B323C;
    line-height: 1.4;
}

/* Navigation Styles */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.nav-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    min-height: 120px;
    margin-bottom: 20px;
}

.nav-item {
    flex: 1;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.nav-title {
    font-size: 13px;
    font-weight: bold;
    color: #62D642;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-subtitle {
    font-size: 18px;
    color: #2B323C!important;
    font-weight: bold;
    margin: 0 0 8px 0;
  transition: color 0.3s ease;
}

.nav-subtitle a {
  color: inherit !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.nav-subtitle a:hover,
.nav-subtitle a:focus {
  color: #62D642 !important;
}

.nav-sublinks {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.nav-sublinks li {
    font-size: 12px;
    color: #2B323C;
    margin-bottom: 4px;
    line-height: 1.3;
}

.nav-sublinks li a {
    color: #2B323C !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.nav-sublinks li a:hover {
    color: #62D642 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0 !important; /* スマートフォンでgapを解除 */
    }
    
    .footer-content::before {
        display: none;
    }
    .footer-nav{
        gap: 0;
    }
    
    .footer-left,
    .footer-right {
        flex: none;
        padding: 0;
    }
    
    .nav-row {
        flex-direction: column;
        gap: 0 !important; /* スマートフォンでgapを解除 */
        min-height: auto;
        margin-bottom: 0 !important; /* スマートフォンでmargin-bottomを解除 */
    }
    
    .nav-item {
        min-height: auto;
        margin-bottom: 15px;
    }
    
    .phone-fax {
        flex-direction: column;
        gap: 8px;
    }
}

/* 📌 [コメンアウト: CEO Message Section Styles] */
.ceo-message-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 0;
    background-color: #F8F7F2;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    z-index: 10;
}

.ceo-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
}

.ceo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ceo-text-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.company-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}

.position {
    font-size: 16px;
    color: #333;
    margin: 0;
}

.signature {
    margin-top: 10px;
}

.signature-image {
    width: auto;
}

/* Service Types Section Styles */
.service-types-section {
    padding: 40px 30px;
    border-radius: 8px;
}

.service-types-title {
    font-size: 24px;
    font-weight: bold;
    color: #2B323C;
    text-align: center;
    margin-bottom: 30px;
}

.service-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 100px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-item {
    display: flex;
    align-items: center;
    background-color: white;
    border: 4px solid #333;
    border-radius: 100px;
    padding: 0px;
    margin-bottom: 15px;
    /* position: relative; */
    height: 170px;
    border-left-width: 0;
    transition: all 0.3s ease;
}

.service-image {
    width: 170px;
    height: 170px;
    flex-shrink: 0;
    padding: 0;
    position: relative;
    left: 0;
}

.service-image img {
    width: 170px;
    height: 170px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #333;
    box-sizing: border-box;
    left: 0;
    position: absolute;
}

.service-content {
    flex: 1;
    padding-right: 40px;
}

.service-title {
    font-weight: bold;
    color: #469C2C;
    margin: 0 0 5px 0;
}

.service-subtitle {
    font-size: 16px;
    color: #000;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design for Service Types */
@media (max-width: 768px) {
    /* Read Moreボタンを中央に配置 */
    .col-12.col-md-6 .btn {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }
    
    /* Read Moreとサービス種類の間隔を広げる */
    .col-12.col-md-6 {
        margin-bottom: 40px;
    }
    
    .service-types-section {
        padding: 15px 10px !important; /* スマートフォンでパディングを小さく */
        margin-top: 15px !important; /* スマートフォンでマージンを小さく */
    }
    
    .service-types-title {
        font-size: 18px !important; /* スマートフォンでタイトルサイズを小さく */
        margin-bottom: 20px !important; /* マージンも調整 */
    }
    
    .service-item {
        height: auto;
    }
    
    .service-image {
        width: 120px;
        height: 120px;
        flex-shrink: 0;
    }
    
    .service-image img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 50%;
        border: 4px solid #333;
    }
    
    .service-content {
        flex: 1;
        padding-right: 10px;
        padding: 10px !important; /* スマートフォンでパディングを小さく */
    }
    
    .service-title {
        font-size: 1.25rem !important;
    }
    
    .service-subtitle {
        font-size: 1.25rem !important;
    }
    
    /* CEO Messageをスマートフォンで横方向に表示 */
    .transform-deg-90 {
        transform: none !important;
        writing-mode: horizontal-tb !important;
        text-orientation: initial !important;
        font-size: 2rem !important; /* スマートフォンで文字サイズを小さく */
    }
    
    /* CEO Message Sectionをスマートフォンで縦並びに変更 */
    .ceo-message-section {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    /* CEO画像を上に配置 */
    .ceo-image-container {
        width: 150px;
        height: 150px;
        flex-shrink: 0;
        order: 1;
    }
    
    .ceo-image {
        width: 150px;
        height: 150px;
    }
    
    /* CEOテキストを下に配置 */
    .ceo-text-container {
        flex: 1;
        min-width: 0;
        order: 2;
        text-align: center;
    }
    
    .company-name {
        white-space: nowrap;
        font-size: 16px;
    }
    
    /* YouTubeスライドショーをスマートフォンで1列表示に */
    .youtube-slide {
        width: 220px !important;
    }
    
    /* YouTubeタイトルをスマートフォンで2行表示に */
    .youtube-header h2 {
        font-size: 1.5rem !important; /* スマートフォンで文字サイズを小さく */
        line-height: 1.2 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    
    .youtube-header h2 .text-bk {
        margin-top: 5px; /* 2行目の間隔を調整 */
    }
    
    /* RECRUITセクションのスマートフォン対応 */
    .recruit-left .worker-image-placeholder img {
        right: auto !important; /* スマートフォンでright: -60pxを解除 */
    }
    
    .recruit-right {
        width: 100% !important; /* スマートフォンで幅を100%に */
    }
    
    .recruit-title.fs-74 {
        font-size: 2rem !important; /* スマートフォンで文字サイズを小さく */
    }
    
    /* Service Slideshowのslide-infoをスマートフォンで上下配置に */
    .slide-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    /* Service Arrowをスマートフォンでスタイル調整 */
    
    .service-arrow-next{
        right: 0 !important;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left: 25px solid rgba(98, 214, 66, 0.8);
    }
    .service-arrow-prev{
        left: 0 !important;
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-right: 25px solid rgba(98, 214, 66, 0.8);
    }
    .service-slideshow-wrapper{
        padding-right: 30px !important;
        padding-left: 30px !important;
    }
    
    
    /* CONTACTセクションのスマートフォン対応 */
    .contact-section .container {
        padding: 20px !important;
    }
    
    .contact-section .row {
        margin: 10px !important;
        padding: 20px !important;
    }
    
    /* お問い合わせをCONTACTの下に横並び */
    .contact-title-vertical {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px;
        text-align: center;
    }
    
    .contact-title,
    .contact-subtitle {
        writing-mode: horizontal-tb !important;
        text-orientation: initial !important;
    }
    
    /* スマートフォンで順番を逆にする */
    .contact-subtitle {
        order: 2;
    }
    
    .contact-title {
        order: 1;
    }
    
    /* ラジオボタンを縦並びに */
    .wpcf7-form .fstyle_a1 {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* お名前の入力欄の幅を調整 */
    .wpcf7-form input[name="your-name"] {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* 必須項目の赤色表示 */
    .wpcf7-form span:contains("* 必須") {
        color: red !important;
    }
    
    .wpcf7-form label:contains("* 必須") {
        color: red !important;
    }
    
    /* より具体的なセレクター */
    .wpcf7-form p:has(span:contains("* 必須")) span {
        color: red !important;
    }
}

/* 全画面共通の必須項目スタイル */
.wpcf7-form span:contains("* 必須"),
.wpcf7-form label:contains("* 必須"),
.wpcf7-form p:has(span:contains("* 必須")) span {
    color: red !important;
}

/* 個人情報同意チェックボックスのスタイル */
.wpcf7-form table {
    width: 100% !important;
    border: none;
    margin: 20px 0;
}

.wpcf7-form table tr {
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.wpcf7-form table td {
    border: none;
    padding: 0;
    vertical-align: top;
}

.wpcf7-form table td:first-child {
    width: auto;
    flex-shrink: 0;
}

.wpcf7-form table td:last-child {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
}

.wpcf7-form table input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wpcf7-form table input[type="checkbox"]:checked {
    background-color: #62D642;
    border-color: #62D642;
    position: relative;
}

.wpcf7-form table input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Sidebar Styles */
.sidebar {
    padding-left: 1.5rem;
}

.sidebar-widget {
    background-color: #F8F9FA;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: bold;
    color: #2B323C;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.sidebar-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 20px;
    background: #62D642;
    border-radius: 2px;
}

.sidebar-categories li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #E0E0E0;
}

.sidebar-categories li a {
    color: #2B323C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-categories li a:hover {
    color: #4CAF50;
}

.sidebar-post {
    display: flex;
    align-items: start;
}

.sidebar-post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.sidebar-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-post-content {
    flex: 1;
}

.sidebar-post-title {
    font-size: 0.875rem;
    line-height: 1.4;
    margin: 0;
}

.sidebar-posts {
    list-style: none;
    padding: 0;
}

.sidebar-post-date {
    font-size: 0.75rem;
    color: #6C757D;
}

/* Sidebar Search Form Styles */
.search-form {
    display: flex;
    gap: 0;
}

.input-group {
    display: flex;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 0;
    background: white;
    outline: none;
}

.search-btn {
    width: 48px;
    height: 48px;
    background-color: #62D642 !important;
    border: none !important;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #42B622 !important;
    border-color: #42B622 !important;
    color: white !important;
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 767.98px) {
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
}

/* News Article Styles */
.news-article {
    border-bottom: 1px solid #E0E0E0;
    padding-bottom: 2rem;
}

.news-article:last-child {
    border-bottom: none;
}

.news-thumbnail {
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
}

.news-thumbnail img {
    object-fit: cover;
    height: 100%;
}

.news-title a {
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #62D642 !important;
}

.news-excerpt {
    color: #6C757D;
    line-height: 1.6;
}

/* Career Banner Styles */
.career-banner {
    background-color: #F8F9FA;
    border-radius: 8px;
}

.career-banner-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.career-banner-link:hover {
    transform: translateY(-2px);
}

.career-banner-content {
    border: 2px solid #DC3545;
    border-radius: 4px;
    padding: 1rem;
    background-color: white;
}

.career-banner-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 0.5rem;
}

.career-banner-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #2B323C;
    margin: 0;
}

/* Rich Entry Title Styles */
.entry-title {
    position: relative;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-left: 6px solid #62D642;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.entry-title::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #62D642 0%, #42B622 100%);
    border-radius: 4px 0 0 4px;
}

.entry-header {
    position: relative;
    margin-bottom: 2rem;
}

/* Page Title - Same Style as Entry Title */
.page-title {
    position: relative;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    border-left: 6px solid #62D642;
    border-radius: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.page-title::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(180deg, #62D642 0%, #42B622 100%);
    border-radius: 4px 0 0 4px;
}