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

/* タブレット（768px以下） */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* ヘッダー */
    .menu-icon {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding-top: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-menu li a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        color: var(--text-color) !important;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: var(--light-color);
        margin-top: 0.5rem;
    }

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

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

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

    /* パンくずナビ */
    .breadcrumb {
        margin-top: 70px;
    }

    /* ページヘッダー */
    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 0.8rem;
    }

    /* 会社情報テーブル */
    .company-table {
        font-size: 0.9rem;
    }

    .company-table th,
    .company-table td {
        padding: 15px 10px;
        display: block;
        width: 100%;
    }

    .company-table th {
        background-color: var(--primary-color);
        color: white;
        font-weight: bold;
        border-bottom: none;
    }

    .company-table td {
        border-bottom: 2px solid #eee;
        margin-bottom: 1rem;
    }

    .company-table tr:last-child td {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* 社長挨拶 */
    .message-content {
        padding: 20px;
    }

    .highlight-text {
        font-size: 1.2rem;
        margin: 1.5rem 0;
    }

    /* ヒーローセクション */
    .hero-title {
        font-size: 2rem;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* 企業理念 */
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* サービス */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-item {
        margin-bottom: 1rem;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-logo .group-logo {
        height: 35px;
    }

    /* 採用情報 */
    .recruitment-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    .feature img {
        max-width: 200px;
        margin: 0 auto;
    }

    .recruitment-sidebar {
        order: -1;
    }

    .company-info address {
        text-align: center;
    }

    /* セクションパディング調整 */
    section {
        padding: 40px 0;
    }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .company-name {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .recruitment-title {
        font-size: 1.3rem;
    }

    .feature {
        padding: 1rem;
    }

    .recruitment-sidebar {
        padding: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 30px 0;
    }
}

/* 超小型デバイス（360px以下） */
@media (max-width: 360px) {
    .container {
        padding: 0 5px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .highlight {
        font-size: 1.1em;
    }

    .philosophy-text h3 {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .service-item h3 {
        font-size: 1.1rem;
    }

    .recruitment-title {
        font-size: 1.1rem;
    }

    .feature-text h3 {
        font-size: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* 大画面対応（1200px以上） */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .company-name {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1.3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }

    .recruitment-content {
        gap: 60px;
    }
}

/* プリント対応 */
@media print {
    .header,
    .menu-icon,
    .nav-menu,
    .hero-slider,
    .hero-overlay,
    .btn,
    .footer {
        display: none !important;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: white !important;
    }

    .hero-content {
        color: black !important;
        text-shadow: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* アクセシビリティ：動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-slide {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #60a5fa;
        --secondary-color: #fbbf24;
        --accent-color: #10b981;
        --text-color: #f3f4f6;
        --text-gray: #d1d5db;
        --background-color: #111827;
        --section-bg: #1f2937;
        --card-bg: #374151;
        --border-color: #4b5563;
    }

    body {
        background-color: var(--background-color);
        color: var(--text-color);
    }

    .header {
        background-color: rgba(255, 255, 255, 0.7) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        color: var(--text-color) !important;
    }

    .nav-menu {
        background-color: transparent !important;
        color: var(--text-color) !important;
    }

    .nav-menu li a {
        color: var(--text-color) !important;
    }

    .service-item,
    .recruitment-office,
    .feature {
        background-color: var(--card-bg);
    }

    .hero-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* Recruitment Page Responsive Styles */
@media (max-width: 768px) {
    .recruitment-hero {
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .education-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .campaign-section {
        padding: 2rem 1rem;
    }

    .campaign-title {
        font-size: 1.4rem;
    }

    .examples-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .example-card {
        padding: 1.5rem;
    }

    .contact-info {
        padding: 2rem 1rem;
    }

    .phone-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .recruitment-hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .campaign-section {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .campaign-title {
        font-size: 1.2rem;
    }

    .example-card {
        padding: 1.2rem;
    }

    .phone-number {
        font-size: 1.2rem;
    }

    .btn-large {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .campaign-title {
        font-size: 1.1rem;
    }

    .example-card h3 {
        font-size: 1.1rem;
    }

    .contact-info {
        padding: 1.5rem;
    }
}

/* Q&A Page Responsive Styles */
@media (max-width: 768px) {
    .qa-category-title {
        font-size: 1.4rem;
    }

    .question {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
    }

    .answer {
        padding: 1.5rem;
    }

    .qa-contact {
        padding: 2rem 1rem;
    }

    .contact-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .qa-category-title {
        font-size: 1.2rem;
    }

    .question {
        padding: 1rem;
        font-size: 1rem;
    }

    .answer {
        padding: 1.2rem;
    }

    .qa-contact {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

@media (max-width: 360px) {
    .qa-category-title {
        font-size: 1.1rem;
    }

    .question {
        font-size: 0.95rem;
    }

    .answer {
        padding: 1rem;
    }
}

/* Day Page Responsive Styles */
@media (max-width: 768px) {
    .day-hero {
        padding: 2rem 0;
    }

    .intro-text {
        padding: 1rem;
        margin-top: 1.5rem;
    }

    .schedule-timeline::before {
        left: 1rem;
    }

    .timeline-item {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .timeline-time {
        flex: none;
        text-align: left;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .time-icon {
        margin: 0;
    }

    .time-icon::after {
        display: none;
    }

    .timeline-content {
        margin-left: 0;
        padding: 1.5rem;
    }

    .checklist li {
        padding: 0.6rem 0;
        padding-left: 1.5rem;
    }

    .points-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .point-card {
        padding: 1.5rem;
    }

    .recruitment-cta {
        padding: 2rem 1rem;
    }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .day-hero {
        padding: 1.5rem 0;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .time-title {
        font-size: 1.1rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .point-icon {
        font-size: 2.5rem;
    }

    .point-card h3 {
        font-size: 1.1rem;
    }

    .recruitment-cta {
        padding: 1.5rem;
        margin: 2rem 0;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.3rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .checklist li {
        padding-left: 1.2rem;
    }

    .point-card {
        padding: 1.2rem;
    }
}

/* Inquiries (お問い合わせ・アクセス) Page Responsive */
@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .inquiry-form {
        padding: 25px;
    }

    .access-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .access-card {
        padding: 25px;
    }

    .detail-item {
        flex-direction: column;
        gap: 5px;
    }

    .detail-label {
        min-width: auto;
    }

    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .phone-contact {
        margin: 25px 0;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-title {
        font-size: 1.1rem;
    }

    .inquiry-form-section .phone-number {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .inquiry-form-section {
        margin: 40px 0;
    }

    .inquiry-form {
        padding: 20px;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-input,
    .form-select,
    .form-textarea {
        padding: 10px 14px;
        font-size: 0.9rem;
    }

    .access-card {
        padding: 20px;
    }

    .access-title {
        font-size: 1.1rem;
    }

    .map-container iframe {
        height: 250px;
    }
}

@media (max-width: 360px) {
    .contact-card {
        padding: 15px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .inquiry-form {
        padding: 15px;
    }

    .form-note {
        padding: 15px;
    }

    .form-note p {
        font-size: 0.8rem;
    }

    .access-card {
        padding: 15px;
    }
}

/* Recruitment2 (募集情報詳細) Page Responsive */
@media (max-width: 768px) {
    .job-card {
        padding: 25px;
    }

    .job-title {
        font-size: 1.3rem;
    }

    .detail-label {
        font-size: 1rem;
    }

    .detail-content {
        margin-left: 10px;
    }

    .benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .benefit-card {
        padding: 20px;
    }

    .training-item {
        padding: 20px;
    }

    .application-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .method-card {
        padding: 25px;
    }

    .method-card .phone-number {
        font-size: 1.5rem;
    }

    .application-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .job-card {
        padding: 20px;
    }

    .job-title {
        font-size: 1.2rem;
    }

    .detail-grid {
        gap: 20px;
    }

    .detail-item {
        padding-bottom: 15px;
    }

    .detail-label {
        font-size: 0.95rem;
        padding: 6px 12px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .benefit-card {
        padding: 18px;
    }

    .benefit-icon {
        font-size: 2rem;
    }

    .benefit-card h3 {
        font-size: 1rem;
    }

    .benefit-card p {
        font-size: 0.85rem;
    }

    .training-item {
        padding: 18px;
    }

    .training-item h3 {
        font-size: 1.1rem;
    }

    .method-card {
        padding: 20px;
    }

    .method-card h3 {
        font-size: 1.1rem;
    }

    .method-card .phone-number {
        font-size: 1.3rem;
        letter-spacing: 0.5px;
    }

    .application-note {
        padding: 18px;
    }

    .application-note h3 {
        font-size: 1rem;
    }

    .application-note li {
        font-size: 0.9rem;
        padding-left: 20px;
    }
}

@media (max-width: 360px) {
    .job-card {
        padding: 15px;
    }

    .job-title {
        font-size: 1.1rem;
    }

    .detail-label {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .benefit-card {
        padding: 15px;
    }

    .training-item {
        padding: 15px;
    }

    .method-card {
        padding: 18px;
    }

    .application-note {
        padding: 15px;
    }

    .application-note li {
        font-size: 0.85rem;
        padding-left: 18px;
    }

    /* 統合ページ用レスポンシブスタイル */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .company-table th,
    .company-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .company-table th {
        width: 35%;
    }

    .qa-category-title {
        font-size: 1.3rem;
    }

    .qa-item .question {
        font-size: 1rem;
        padding: 1rem;
    }

    .qa-item .answer {
        padding: 1rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-item {
        padding: 1.5rem;
    }

    .phone-number {
        font-size: 1.5rem;
    }
}
