/*
Theme Name: Sakyo-ent
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/

/* Reset and Base Styles */
/* CSS Variables */
/*
Theme Name: Sakyoshoji Child
Template: lightning
Version: 1.0
*/

/* 親テーマのCSSをリセット */
.entry-header,
.entry-title,
.page-header,
.page-title,
h1, h2, h3, h4, h5, h6 {
    border: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    background: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.site-footer-title:after, .sub-section-title:after, h3:where(:not(.wp-block-post-title)):after {
    display: none;
}

.more-btn:focus, .main-navigation a:focus, .mobile-menu-toggle:focus, .logo a:focus, .footer-navigation a:focus , .mobile-has-sub:focus {
    outline: none !important;
}

.entry-header::before,
.entry-title::before,
.page-header::before,
.page-title::before,
h1::before, h2::before, h3::before, h4::before, h5::before, h6::before {
    display: none !important;
    content: none !important;
}

/* CSS Variables */
:root {
    --accent-color: #ff0044;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #333333;
}

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

body {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

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

.card-icon i , .biz-icon i {
    margin-right: 0px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0px;
}

.logo a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 20px 0px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin: 15px 0;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ---------- PC Recruit Dropdown ---------- */
.has-sub            { position: relative; }
.has-sub > .menu-label { cursor: default; display: flex; align-items: center; gap:4px; }
.has-sub .sub-menu  {
    position: absolute; top:100%; left:0;
    min-width:160px; padding:10px 0;
    background:#fff; border:1px solid #eee; border-radius:8px;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    display:none; z-index:20;
}
.has-sub:hover .sub-menu { display: block; }
.sub-menu li a {
    display: block; padding: 10px 20px;
    white-space: nowrap; color: var(--text-dark);
    font-weight: 500;
}
.sub-menu li a:hover { background: var(--bg-light); color: var(--accent-color); }

.has-sub.open .sub-menu { display:block; }   /* ← JS で付与するクラス */

span.menu-label {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    margin-top: 3px;
}

/* ---------- Mobile Menu Accordion ---------- */
.mobile-has-sub { margin: 15px 0; }
.mobile-sub-toggle {
    width: 100%; background: none; border: none; color: var(--text-dark);
    font-size: 16px; font-weight: 700; display: flex; justify-content: space-between;
    align-items: center; padding: 10px 0;
}
.mobile-sub-menu {
    list-style: none; padding-left: 15px; margin: 0; display: none;
}
.mobile-sub-menu li a { display: block; padding: 8px 0; color: var(--text-dark); }
.mobile-sub-menu li a:hover { color: var(--accent-color); }


/* Hero Section - 白文字タイプライター版 */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 2;
}

.hero-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-title {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.hero-subtitle {
    font-size: 2rem;
    max-width: 560px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    color: #ffffff !important;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

.cutout-text {
    color: #ffffff !important;
    
    /* タイプライター効果 */
    width: 0;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid rgba(255, 255, 255, 0.8);
    animation: 
        typewriter 4s steps(40, end) 1s forwards,
        blink 1s infinite;
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { border-color: rgba(255, 255, 255, 0.8); }
    51%, 100% { border-color: transparent; }
}

.cutout-text.typing-complete {
    border-right: none;
    animation: none;
    width: 100%;
}

/* Talents Section - スライダー対応 */
.talents-section {
    padding: 100px 0;
    background-color: var(--bg-white);
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem !important;
    font-weight: 900 !important;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 2px;
    color: var(--text-dark) !important;
    border: none !important;
    background: none !important;
}

.talents-slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.talents-slider {
    display: flex;
    animation: slideShow 15s infinite linear;
    width: calc(300px * 10); /* 5枚 × 2セット */
}

.talent-slide {
    flex: 0 0 300px;
    padding: 0 20px;
}

.talent-card {
    text-align: center;
    transition: transform 0.3s ease;
}

.talent-card:hover {
    transform: translateY(-10px);
}

.talent-image {
    width: 260px;
    height: 260px;
    margin: 0 auto 20px;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.talent-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.talent-card:hover .talent-image::after {
    opacity: 1;
}

.talent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.talent-card:hover .talent-image img {
    transform: scale(1.1);
}

.talent-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.talent-role {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- Talent Social Icons ---------- */
.talent-social{
    margin-top:10px;
    display:flex;
    justify-content:center;
    gap:16px;
}
.talent-social a{
    font-size:20px;
    color:var(--text-dark);
    transition:color .3s;
}
.talent-social a:hover{color:var(--accent-color);}


/* スライダーのフェードエフェクト */
.slider-fade-left,
.slider-fade-right {
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.slider-fade-left {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.slider-fade-right {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

/* スライダーアニメーション */
@keyframes slideShow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1500px); } /* 5枚分 */
}

.section-more {
    text-align: center;
}

.more-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--bg-dark);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    border-radius: 30px;
    font-size: 14px;
}

.more-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 0, 68, 0.3);
}


/* ===========================
   Business Section
   =========================== */
.business-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    z-index: 10;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.biz-icon i {
    margin-right: 0px;
}

.business-card {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.business-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, #ff6b6b 100%);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.business-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.business-card:hover::before {
    transform: translateX(0);
}

.biz-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ff6b6b 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: #fff;
    font-size: 36px;
    transition: transform 0.3s ease;
}

.business-card:hover .biz-icon {
    transform: rotate(5deg) scale(1.05);
}

.biz-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.biz-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* アニメーション（既存 .fade-in を利用） */
.fade-in.hidden { opacity: 0; transform: translateY(30px); }
.fade-in.animate { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 992px) {
    .business-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
    .business-card {
        padding: 50px 35px;
    }
    .biz-desc br.pc-only { display: none; }
}

@media (max-width: 480px) {
    .business-card {
        padding: 40px 25px;
    }
    .biz-icon {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}


/* News Section */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    z-index: 10;
}

.news-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

.news-header .section-title {
    text-align: left;
    margin-bottom: 0;
}

.news-list {
    background-color: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.news-item {
    display: grid;
    grid-template-columns: 80px 80px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
    transition: all 0.3s ease;
}

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

.news-item:hover {
    background-color: #f9f9f9;
    transform: translateX(5px);
    padding-left: 10px;
    border-radius: 8px;
}

.news-date {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.news-category {
    font-size: 11px;
    background-color: var(--accent-color);
    color: var(--bg-white);
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}

.news-title {
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-more {
    margin-top: 30px;
    text-align: right;
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--bg-white);
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}

.site-footer {
    border-top: none;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
        width: 100px;
    height: auto;
    display: block;
}


.footer-logo h3 {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 2px;
}

.footer-logo span {
    font-size: 12px;
    font-weight: 400;
    color: #ccc;
}

.footer-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin-bottom: 0px;
}

.footer-navigation a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-navigation a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
}

.copyright {
    font-size: 10px;
    color: #fff;
    font-weight: 400;
}

/* Animation Classes */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.fade-in.hidden {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.slide-up.hidden {
    opacity: 0;
    transform: translateY(50px);
}

.slide-up.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .news-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-header .section-title {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .news-more {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }

    /* タイプライター速度調整 */
    .cutout-text {
        animation: 
            typewriter 3.5s steps(35, end) 1s forwards,
            blink 1s infinite;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        bottom: 35%;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
    
    /* スマホ版タレントセクションのcontainerパディング削除 */
    .talents-section .container {
        padding: 0;
    }
    
    /* モバイル用スライダー調整 - グラデーション幅修正 */
    .talent-slide {
        flex: 0 0 280px;
        padding: 0 10px;
    }
    
    .talent-image {
        width: 260px;
        height: 260px;
    }
    
    .talents-slider {
        width: calc(280px * 10);
    }
    
    .slider-fade-left,
    .slider-fade-right {
        width: 30px; /* モバイルでは幅を狭く */
    }
    
    @keyframes slideShow {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1400px); }
    }
    
    /* タイプライター速度調整 */
    .cutout-text {
        animation: 
            typewriter 3s steps(30, end) 1s forwards,
            blink 1s infinite;
    }
    
    /* モバイル用ニュース項目 - 横並び統一 */
    .news-item {
        grid-template-columns: 70px 60px 1fr;
        gap: 12px;
        padding: 15px 0;
        align-items: flex-start;
    }
    
    .news-date {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .news-category {
        font-size: 10px;
        padding: 3px 6px;
        border-radius: 8px;
        line-height: 1;
    }
    
    .news-title {
        font-size: 14px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-navigation ul {
        flex-direction: column;
        gap: 10px;
        padding-left: 0px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* スマホ版タレントセクションのcontainerパディング削除を維持 */
    .talents-section .container {
        padding: 0;
    }
    .hero-section {
       height: 99vh;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-subtitle {
    font-size: 1.2rem;
    max-width: fit-content;
    }
    .hero-content {
    width: fit-content;
    }
    .cutout-text.typing-complete {
    width: fit-content;
    text-align: left;
    }

    .hero-content {
        bottom: 47%;
    }
    
    .section-title {
        font-size: 1.8rem !important;
    }
    
    .talent-image {
        width: 220px;
        height: 220px;
    }
    
    .talent-slide {
        flex: 0 0 240px;
    }
    
    .talents-slider {
        width: calc(240px * 10);
    }
    
    .slider-fade-left,
    .slider-fade-right {
        width: 25px; /* より狭く */
    }
    
    @keyframes slideShow {
        0% { transform: translateX(0); }
        100% { transform: translateX(-1200px); }
    }
    
    /* タイプライター速度調整 */
    .cutout-text {
        animation: 
            typewriter 2.5s steps(25, end) 1s forwards,
            blink 1s infinite;
    }
    
    /* 超小型画面用ニュース調整 */
    .news-item {
        grid-template-columns: 60px 50px 1fr;
        gap: 10px;
    }
    
    .news-date {
        font-size: 11px;
    }
    
    .news-category {
        font-size: 9px;
        padding: 2px 5px;
    }
    
    .news-title {
        font-size: 13px;
    }
    
    .talents-section,
    .news-section {
        padding: 60px 0;
    }
    .footer-logo {
    width: 80px;
}
}

/* Mobile menu animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}
