/**
 * SHINSEI GROUP Portal Site Responsive Stylesheet
 * モバイル優先設計
 * 
 * @author SHINSEI GROUP
 * @version 2.0
 */

/* ============================================
   タブレット（768px ~ 1023px）
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    /* セクション */
    section {
        padding: 4rem 2rem;
    }

    /* ヒーローセクションはsectionのスタイルを上書き */
    .hero-section {
        aspect-ratio: 1920 / 600;
        min-height: 350px;
        padding: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-container {
        height: 70px;
    }

    .main-content {
        margin-top: 70px;
    }

    .logo-img {
        height: 45px;
    }

    .nav-list {
        gap: 30px;
    }

    .nav-link {
        font-size: 14px;
    }

    .hero-title-main {
        font-size: 56px;
    }

    .hero-title-sub {
        font-size: 20px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title-main {
        font-size: 36px;
    }

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

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

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

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

    .footer-about {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

/* ============================================
   モバイル（~767px）
   ============================================ */

@media (max-width: 767px) {
    /* ヘッダー */
    .header-container {
        height: 60px;
        padding: 0 15px;
    }

    .logo-img {
        height: 40px;
    }

    .header-nav {
        display: none;
    }

    .hamburger-menu-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

    .nav-link-contact {
        margin-left: 0;
    }

    /* メインコンテンツ */
    .main-content {
        margin-top: 60px;
    }

    /* ヒーローセクション */
    .hero-content {
        padding: 30px 15px;
    }

    .hero-title-main {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .hero-title-sub {
        font-size: 16px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    .hero-br {
        display: none;
    }

    .btn-hero {
        font-size: 16px;
        padding: 14px 28px;
    }

    /* セクション */
    section {
        padding: 4rem 1.5rem;
    }

    /* ヒーローセクションはsectionのスタイルを上書き */
    .hero-section {
        aspect-ratio: 1920 / 600;
        min-height: 300px;
        padding: 0;
        padding-top: 0;
        padding-bottom: 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title-main {
        font-size: 28px;
        padding-bottom: 15px;
    }

    .section-title-sub {
        font-size: 12px;
    }

    .section-description {
        font-size: 14px;
        margin-top: 15px;
    }

    /* グループ会社セクション */
    .companies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .company-card-image-wrapper {
        height: 180px;
    }

    .company-card-content {
        padding: 20px;
    }

    .company-card-name {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .company-card-name-en {
        font-size: 12px;
    }

    .company-card-description {
        font-size: 13px;
    }

    /* グループについてセクション */
    .about-grid {
        margin-top: 40px;
    }

    .about-card {
        padding: 35px 25px;
    }

    .about-card-icon {
        font-size: 48px;
        margin-bottom: 20px;
    }

    .about-card-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .about-card-text {
        font-size: 14px;
    }

    .strengths-section {
        margin-top: 60px;
    }

    .strengths-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

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

    .strength-icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    .strength-title {
        font-size: 18px;
    }

    .strength-text {
        font-size: 13px;
    }

    /* ニュースセクション */
    .news-list {
        margin-top: 40px;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }

    .news-item:hover {
        margin: 0 -15px;
        padding: 20px 15px;
    }

    .news-date {
        min-width: auto;
        font-size: 13px;
    }

    .news-category {
        font-size: 11px;
        padding: 3px 10px;
    }

    .news-title {
        font-size: 15px;
    }

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

    /* 採用セクション */
    .recruit-content {
        padding: 0 15px;
    }

    .recruit-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .recruit-description {
        font-size: 14px;
        margin-bottom: 30px;
    }

    /* フッター */
    .site-footer {
        padding: 40px 0 15px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-logo-img {
        height: 45px;
    }

    .footer-group-name {
        font-size: 18px;
    }

    .footer-contact {
        gap: 10px;
    }

    .footer-contact-name,
    .footer-contact-address,
    .footer-contact-tel,
    .footer-business-hours,
    .footer-holiday {
        font-size: 13px;
    }

    .footer-address,
    .footer-tel {
        font-size: 13px;
    }

    .footer-section-title {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-links {
        gap: 5px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-copyright {
        padding-top: 20px;
        font-size: 11px;
    }

    /* トップに戻るボタン */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 18px;
    }
}

/* ============================================
   小さいモバイル（~480px）
   ============================================ */

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title-main {
        font-size: 28px;
    }

    .hero-title-sub {
        font-size: 14px;
    }

    .hero-description {
        font-size: 13px;
    }

    .section-title-main {
        font-size: 24px;
    }

    .section-title-sub {
        font-size: 11px;
    }

    .company-card-image-wrapper {
        height: 160px;
    }

    .about-card {
        padding: 30px 20px;
    }

    .about-card-icon {
        font-size: 40px;
    }

    .about-card-title {
        font-size: 18px;
    }

    .recruit-title {
        font-size: 28px;
    }

    .recruit-description {
        font-size: 13px;
    }
}

/* ============================================
   高解像度ディスプレイ対応
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img,
    .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   印刷スタイル
   ============================================ */

@media print {
    .site-header,
    .mobile-nav,
    .scroll-to-top,
    .hero-cta,
    .recruit-cta,
    .news-more {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }

    .hero-section {
        aspect-ratio: 1920 / 600;
        min-height: 250px;
        padding: 0;
    }

    .companies-section,
    .about-section,
    .news-section,
    .recruit-section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}

/* ============================================
   アクセシビリティ対応
   ============================================ */

/* モーションを減らす設定に対応 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
    /* 必要に応じてダークモードスタイルを追加 */
    /* 現時点では未実装 */
}

