/*
Theme Name: Hawks Corporate
Theme URI: https://hawks-corp.net
Description: 株式会社Hawks公式WordPressテーマ - モダンでプロフェッショナルな企業サイト
Version: 1.0
Author: Hawks Corporation
Author URI: https://hawks-corp.net
Tags: corporate, business, modern, responsive
Text Domain: hawks
*/

/* ========================================
   リセット & ベーススタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B00;
    --secondary-orange: #FF8C2D;
    --primary-black: #1a1a1a;
    --secondary-black: #333333;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
    line-height: 1.8;
    color: var(--secondary-black);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   左サイドバーメニュー
======================================== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: white;
    z-index: 100;
    padding: 50px 40px;
    box-shadow: 1px 0 0 rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    margin-bottom: 4rem;
}

.sidebar-logo img {
    height: 140px;
    width: auto;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav a {
    display: block;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
    border-bottom: 1px solid #e5e5e5;
    transition: color 0.3s ease;
}

.sidebar nav a:hover {
    color: var(--primary-orange);
}

/* モバイルメニューボタン */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 150;
    width: 48px;
    height: 48px;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 16px;
    height: 1px;
    background-color: var(--primary-black);
    transition: all 0.3s ease;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ========================================
   メインコンテンツ
======================================== */
.main-content {
    margin-left: 240px;
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.1) 0%, rgba(26, 26, 26, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 2rem;
    max-width: 56rem;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--primary-orange);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-weight: 300;
}

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

/* ========================================
   セクション共通
======================================== */
.section {
    padding: 6rem 1.5rem;
}

.section-light {
    background-color: var(--white);
}

.section-dark {
    background-color: var(--light-gray);
}

.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* ========================================
   コンセプトセクション
======================================== */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.concept-image {
    aspect-ratio: 4/3;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.concept-text h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.concept-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   事業内容セクション
======================================== */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.service-item {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-item:nth-child(even) .service-text {
    order: 1;
}

.service-image {
    aspect-ratio: 4/3;
    background-color: #e5e5e5;
    border-radius: 2px;
    overflow: hidden;
}

.service-text h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1rem;
}

.service-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-text a {
    color: var(--primary-orange);
    font-size: 0.875rem;
}

.service-text a:hover {
    text-decoration: underline;
}

/* ========================================
   会社概要セクション
======================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.company-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--primary-black);
}

.info-value a {
    color: var(--primary-orange);
}

.info-value a:hover {
    text-decoration: underline;
}

.mission-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 1.5rem;
}

.mission-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ========================================
   Contact Form 7 スタイル
======================================== */
.contact-form-wrapper {
    background: white;
    padding: 3rem;
}

.contact-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-wrapper .wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.contact-form-wrapper label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper .wpcf7-form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form-wrapper .wpcf7-form-control:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.contact-form-wrapper textarea.wpcf7-form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-form-wrapper .wpcf7-acceptance {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.contact-form-wrapper .wpcf7-acceptance label {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.contact-form-wrapper .wpcf7-acceptance a {
    color: var(--primary-orange);
}

.contact-form-wrapper .wpcf7-acceptance a:hover {
    text-decoration: underline;
}

.contact-form-wrapper .wpcf7-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-orange);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form-wrapper .wpcf7-submit:hover {
    background-color: var(--secondary-orange);
}

.contact-form-wrapper .wpcf7-response-output {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #d1d5db;
}

.contact-form-wrapper .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

.contact-form-wrapper .wpcf7-validation-errors {
    color: #dc2626;
    border-color: #dc2626;
}

.contact-form-wrapper .wpcf7-mail-sent-ok {
    color: #059669;
    border-color: #059669;
}

/* 連絡先情報 */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.contact-info-item {
    text-align: center;
    padding: 2rem 0;
}

.contact-info-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.contact-info-item a {
    color: var(--primary-orange);
}

.contact-info-item a:hover {
    text-decoration: underline;
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background-color: var(--primary-black);
    color: var(--white);
    padding: 4rem 1.5rem 2rem;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-orange);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}


/* ========================================
   プライバシーポリシー モーダルスタイル
======================================== */
.modal {
    display: none; 
    position: fixed;
    z-index: 10000; /* サイドバー(100)より上に表示 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px); /* 背景を少しぼかすとおしゃれです */
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 40px;
    border-radius: 4px;
    width: 90%;
    max-width: 650px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    color: var(--text-gray);
    line-height: 1;
}

.close-btn:hover {
    color: var(--primary-orange);
}

.policy-text {
    font-size: 0.95rem;
    color: var(--secondary-black);
}

.policy-text h3 {
    color: var(--primary-black);
    font-size: 1.1rem;
    margin: 25px 0 10px;
    padding-left: 10px;
    border-left: 3px solid var(--primary-orange); /* テーマカラーに合わせました */
}

/* モバイル対応：スマホの時は余白を調整 */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 30px 20px;
        width: 95%;
    }
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 20px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .concept-grid,
    .service-item,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-item:nth-child(even) .service-image,
    .service-item:nth-child(even) .service-text {
        order: 0;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-info-grid,
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}



/*ローディング画面*/

#loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #05070a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* グリッド背景 */
.loader-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 107, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 107, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.loader-logo-wrap {
    position: relative;
    width: 150px;
    margin-bottom: 30px;
    overflow: hidden;
}

.loader-logo {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1); /* 一旦白抜きにして洗練させる */
}

/* ロゴを走る光の筋 */
.logo-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    100% { left: 100%; }
}

.loader-info {
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Inter', 'Space Mono', monospace;
}

.loader-count {
    color: #FF6B00;
    font-size: 1.2rem;
    font-weight: 300;
    min-width: 40px;
}

.loader-line {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
}

.loader-line::after {
    content: '';
    position: absolute;
    left: 0;
    width: 0%;
    height: 100%;
    background: #FF6B00;
    transition: width 0.3s;
}

.loader-task {
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* 終了アニメーション：スリット */
.loader-slits {
    position: absolute;
    inset: 0;
    display: flex;
    pointer-events: none;
    z-index: 20;
}

.slit {
    flex: 1;
    background: #05070a;
    height: 100%;
    transition: transform 1s cubic-bezier(0.8, 0, 0.2, 1);
}

#loader-wrapper.loaded .slit {
    transform: translateY(-100%);
}

#loader-wrapper.loaded .slit:nth-child(even) {
    transform: translateY(100%);
}

#loader-wrapper.loaded {
    pointer-events: none;
    background: transparent;
    transition: 1s;
}

#loader-wrapper.loaded .loader-content {
    opacity: 0;
    transition: 0.5s;
}

/* --- Ultra Minimal Tech Loader --- */
#loader-wrapper {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    background: #0a0c10; /* 深みのあるテックブラック */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

/* 完了時：上にスライドして消える */
#loader-wrapper.loaded {
    transform: translateY(-100%);
}

.loader-main {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.loader-logo-container {
    position: relative;
    margin-bottom: 50px;
    display: inline-block;
}

.loader-logo-img {
    width: 120px; /* サイズ調整 */
    height: auto;
    display: block;
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.2));
}

/* ロゴの下のオレンジライン */
.loader-accent-line {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: #FF6B00;
    box-shadow: 0 0 10px #FF6B00;
    animation: line-expand 2s infinite ease-in-out;
}

@keyframes line-expand {
    0%, 100% { width: 20px; opacity: 0.3; }
    50% { width: 80px; opacity: 1; }
}

.loader-progress-area {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    color: #FF6B00;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loader-bar-container {
    width: 200px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    position: relative;
}

.loader-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #FF6B00;
    box-shadow: 0 0 8px #FF6B00;
}

.loader-label {
    font-size: 9px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}






/*営業勧誘警告文*/
/* --- Contact Form Warning Style --- */
.contact-notice-box {
    background-color: #fff8f8; /* 非常に薄い赤 */
    border: 1px solid #ff4d4d;
    border-left: 5px solid #ff4d4d;
    padding: 20px;
    margin-bottom: 35px;
    border-radius: 4px;
}

.notice-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.notice-icon {
    background: #ff4d4d;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin-right: 10px;
}

.contact-notice-box h4 {
    color: #ff4d4d;
    font-size: 0.95rem;
    font-weight: bold;
    margin: 0;
}

.contact-notice-box p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.contact-notice-box strong {
    color: #d63031;
    font-weight: bold;
}

/* 確認チェックボックスの強調 */
.acceptance-field {
    margin-top: 30px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.acceptance-field .wpcf7-list-item-label {
    font-weight: bold;
    color: #1a1a1a;
}