/* ========================================
   株式会社SZK コーポレートサイトLP
   CSS スタイルシート
   ======================================== */

/* ========================================
   リセット・ベース設定
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* ========================================
   共通設定
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #333333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #0057FF, #FF8A00);
}

/* ========================================
   ローディング画面
   ======================================== */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f9d513;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f9d513 0%, #8b8079 50%, #e5322d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: loadingPulse 2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: 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.1);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f9d513 0%, #8b8079 50%, #e5322d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo a:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

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

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0057FF;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

.contact-btn {
    background: #FF8A00;
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF8A00;
}

.contact-btn:hover {
    background: transparent;
    color: #FF8A00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   ファーストビュー
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* モバイル用動画の最適化 */
@media (max-width: 768px) {
    .hero-video {
        object-fit: cover;
        object-position: center;
    }
    
    /* 縦向き動画の場合の調整 */
    .hero-video source[media="(max-width: 768px)"] {
        object-fit: cover;
    }
}

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

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.8s both;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   ミッションセクション
   ======================================== */
.mission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.mission-problem h3,
.mission-solution h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #0057FF;
}

.mission-problem ul {
    list-style: none;
}

.mission-problem li {
    padding: 15px 0;
    border-bottom: 1px solid #E5E5E5;
    position: relative;
    padding-left: 30px;
}

.mission-problem li::before {
    content: '❌';
    position: absolute;
    left: 0;
    top: 15px;
}

.mission-solution p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666666;
}

/* ========================================
   サービスセクション
   ======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #FFFFFF;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #F0F0F0;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

.service-card p {
    color: #666666;
    line-height: 1.6;
}

/* ========================================
   強みセクション
   ======================================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.strength-item {
    text-align: center;
    padding: 30px 20px;
}

.strength-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.strength-item h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333333;
}

.strength-item p {
    color: #666666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.strength-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0057FF;
}

.strength-number small {
    display: block;
    font-size: 0.9rem;
    color: #666666;
    font-weight: 400;
    margin-top: 5px;
}

/* ========================================
    よくある質問セクション
    ======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    border-color: #0057FF;
}

.faq-question {
    padding: 28px 32px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #F8F9FA, #E9ECEF);
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.faq-question:hover {
    background: linear-gradient(135deg, #E9ECEF, #DEE2E6);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-bottom-color: #0057FF;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #333333;
    margin: 0;
    flex: 1;
    padding-right: 24px;
    line-height: 1.4;
}

.faq-toggle {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0057FF;
    transition: all 0.3s ease;
    min-width: 24px;
    text-align: center;
    background: rgba(0, 87, 255, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: rgba(0, 87, 255, 0.2);
    color: #0057FF;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
}

.faq-answer p {
    padding: 32px;
    margin: 0;
    color: #555555;
    line-height: 1.7;
    font-size: 1rem;
    text-align: justify;
    display: flex;
    align-items: center;
    min-height: 80px;
}

/* ========================================
   会社概要セクション
   ======================================== */
.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.company-table th {
    background: #F8F9FA;
    font-weight: 600;
    color: #333333;
    width: 30%;
}

.company-table td {
    color: #666666;
}

.company-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   採用セクション
   ======================================== */
.recruit {
    position: relative;
    background: #F8F9FA;
}

.recruit-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.recruit-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
}

/* オフィスプレースホルダー */
.office-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    position: relative;
}

.office-placeholder::before {
    content: '🏢';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    opacity: 0.3;
}

.recruit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FFE600 !important;
    z-index: 2;
}

.recruit-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #FFFFFF;
}

.recruit-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.3;
}

.recruit-btn {
    display: inline-block;
    background: #FFFFFF;
    color: #333333;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid #FFFFFF;
}

.recruit-btn:hover {
    background: #0057FF;
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 87, 255, 0.3);
    border-color: #0057FF;
}

/* ========================================
   お問い合わせセクション
   ======================================== */
.contact-lead {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 50px;
}

/* タブスタイル */
.contact-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: #FFFFFF;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    font-family: inherit;
}

.tab-btn:hover {
    border-color: #0057FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.1);
}

.tab-btn.active {
    background: linear-gradient(135deg, #FF8A00, #FFE600);
    border-color: transparent;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 138, 0, 0.3);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* フォームスタイル */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: none;
    animation: fadeIn 0.5s ease;
}

.contact-form.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.form-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666666;
    font-size: 0.95rem;
    line-height: 1.4;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333333;
}

.required {
    color: #FF8A00;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0057FF;
}

/* セレクトボックス */
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background: #FFFFFF;
    cursor: pointer;
}

/* チェックボックスグループ */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666666;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #0057FF;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

/* フェードインアニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 送信メッセージアニメーション */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.submit-btn {
    background: #FF8A00;
    color: #FFFFFF;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #E67A00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.3);
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: #1A1A1A;
    color: #FFFFFF;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f9d513 0%, #8b8079 50%, #e5322d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.footer-address {
    color: #CCCCCC;
    line-height: 1.6;
    font-style: normal;
}

.footer-nav ul {
    list-style: none;
    margin-bottom: 30px;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #CCCCCC;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #0057FF;
}

.copyright {
    color: #999999;
    font-size: 0.9rem;
}

/* ========================================
   スクロールアニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* ========================================
   レスポンシブデザイン
   ======================================== */

/* タブレット */
@media (max-width: 1023px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .mission-content {
        gap: 40px;
    }
    
    .service-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .strength-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .company-content {
        gap: 40px;
    }
}

/* スマートフォン */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .header-container {
        height: 70px;
        padding: 0 15px;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 40px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
    }
    
    .nav.active {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .strength-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .company-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .company-table th {
        width: 40%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .recruit-content h2 {
        font-size: 2rem;
    }
    
    /* タブのレスポンシブ対応 */
    .contact-tabs {
        gap: 10px;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 12px 15px;
    }
    
    .tab-text {
        font-size: 0.8rem;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* 超小型デバイス */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        font-weight: 600;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .works-grid {
        grid-template-columns: 1fr;
    }
    
    /* FAQのモバイル対応 */
    .faq-question {
        padding: 28px 32px;
    }
    
    .faq-question h3 {
        font-size: 1.15rem;
        padding-right: 24px;
    }
    
    .faq-toggle {
        width: 32px;
        height: 32px;
        font-size: 1.6rem;
    }
    
    .faq-answer p {
        padding: 32px;
        font-size: 1rem;
    }
}

/* ========================================
   ロゴの3色グラデーション
   ======================================== */
.logo a,
.footer-logo,
.loading-logo {
    /* グラデーションテキストのフォールバック */
    color: #0057FF;
}

/* グラデーションテキストをサポートするブラウザ用 */
@supports (-webkit-background-clip: text) or (background-clip: text) {
    .logo a,
    .footer-logo,
    .loading-logo {
        color: transparent;
        background: linear-gradient(135deg, #f9d513 0%, #8b8079 50%, #e5322d 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

/* ========================================
   アクセシビリティ
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* フォーカス表示 */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #0057FF;
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .section-title::after {
        background: #0057FF;
    }
}
