/* スマホ版専用スタイル */

/* 768px以下 */
@media (max-width: 768px) {
    /* ナビゲーション */
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        z-index: 1000;
        justify-content: center;
        align-items: center;
    }
    

    
    /* コンテナ */
    .container {
        padding: 0 1.5rem;
    }
    
    /* ヒーローセクション */
    .hero .container {
        padding: 0 1.5rem;
    }
    
    .hero-content {
        padding: 0.5rem 0;
        margin: 0 auto;
        align-items: center;
        text-align: center;
        min-height: 85vh;
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 10vw, 5rem);
        line-height: 1.1;
        word-wrap: break-word;
        word-break: keep-all;
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-line {
        display: block;
        margin-bottom: 0.3rem;
        text-align: center;
    }
    
    .hero-eyecatch {
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }
    
    .eyecatch-text {
        font-size: 0.8rem;
        letter-spacing: 0.2em;
        text-align: center;
        display: inline-block;
    }
    
    .hero-bg-element {
        display: none;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        padding: 0.5rem 1rem;
        text-align: center;
        width: 100%;
        position: relative;
    }

    .hero-subtitle::before {
        left: 2px;
        width: 6px;
        height: 50%;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-description p {
        font-size: 0.8rem;
        line-height: 1.6;
        text-align: center;
        width: 100%;
    }
    
    .mobile-break {
        display: block;
        margin-top: 0.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    
    /* セクションタイトル */
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
        line-height: 1.3;
    }
    
    .page-title {
        font-size: 2.8rem;
    }
    
    /* Features セクション */
    .features {
        padding: 4rem 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .feature-card {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    
    .feature-number {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .feature-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* MVV セクション */
    .mvv {
        padding: 4rem 0;
    }
    
    .mvv-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .mvv-card {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    
    .mvv-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .mvv-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .mvv-text {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .mvv-section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Why Us セクション */
    .why-us {
        padding: 4rem 0;
    }
    
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .why-us-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    
    .why-us-number {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .why-us-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }
    
    .why-us-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* 年収UP事例セクション */
    .salary-cases {
        padding: 4rem 0;
    }
    
    .salary-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .salary-card {
        padding: 2.5rem 2rem;
        border-radius: 16px;
    }
    
    .salary-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .salary-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin: 0 auto;
    }
    
    .salary-change {
        flex-direction: row;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
        justify-content: center;
        align-items: center;
    }
    
    .before, .after {
        flex-direction: column;
        gap: 0.5rem;
        flex: 1;
        max-width: 120px;
    }
    
    .salary-details {
        margin-bottom: 2rem;
    }
    
    .salary-details p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* コンセプトセクション */
    .concept {
        padding: 2.5rem 0 1.5rem 0;
    }
    
    .concept-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }
    
    .concept-list {
        gap: 0.6rem;
    }
    
    .concept-item {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 1rem 0.6rem;
        border-radius: 12px;
        font-size: 0.85rem;
    }
    
    .concept-item i {
        font-size: 1.4rem;
        margin-right: 0;
    }
    
    /* Company セクション */
    .company {
        padding: 4rem 0;
    }
    
    .company-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .company-card {
        padding: 2.5rem 2rem;
        text-align: center;
        border-radius: 16px;
    }
    
    .company-card-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .company-card-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    /* フッター */
    .footer-content {
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-nav-list {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .footer-nav-list a {
        padding: 0.8rem 0;
        font-size: 1rem;
    }
    
    /* その他のセクション */
    .profile-content {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .info-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .info-term {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .page-title-main {
        font-size: 2.8rem;
    }
    
    .section-subtitle {
        font-size: 1.2rem;
    }
    
    .company-info-section,
    .access-section {
        padding: 4rem 0;
    }
    
    .ceo-profile-image {
        text-align: center;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .ceo-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
        border: 3px solid var(--accent-color);
        box-shadow: 0 4px 20px rgba(234, 67, 53, 0.3);
        flex-shrink: 0;
    }
    
    /* タッチ操作の最適化 */
    .btn:hover {
        transform: none;
    }
    
    .feature-card:hover,
    .mvv-card:hover,
    .why-us-card:hover,
    .company-card:hover {
        transform: none;
    }
    
    /* スクロールバーの改善 */
    ::-webkit-scrollbar {
        width: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--bg-dark);
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 3px;
    }
}

/* 480px以下 */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero .container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0.5rem 0;
        margin: 0 auto;
        width: 100%;
        text-align: center;
        justify-content: center;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: clamp(3rem, 9vw, 4rem);
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        line-height: 1.1;
    }
    
    .hero-line:first-child {
        font-size: clamp(2rem, 6vw, 2.5rem);
        text-align: center;
    }
    
    .hero-eyecatch {
        margin-bottom: 0.8rem;
    }
    
    .eyecatch-text {
        font-size: 0.7rem;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        padding: 0.4rem 0.7rem;
        text-align: center;
        width: 100%;
        position: relative;
    }

    .hero-subtitle::before {
        left: 1px;
        width: 5px;
        height: 45%;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
    
    .hero-description p {
        font-size: 0.8rem;
        text-align: center;
        width: 100%;
    }
    
    .mobile-break {
        display: block;
        margin-top: 0.15rem;
    }
    
    .hero-cta {
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .features {
        padding: 3rem 0;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-number {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    .mvv {
        padding: 3rem 0;
    }
    
    .mvv-card {
        padding: 2rem 1.5rem;
    }
    
    .mvv-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mvv-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .mvv-text {
        font-size: 0.95rem;
    }
    
    .mvv-section-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .why-us {
        padding: 3rem 0;
    }
    
    .why-us-card {
        padding: 2rem 1.5rem;
    }
    
    .why-us-number {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .why-us-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .why-us-description {
        font-size: 0.95rem;
    }
    
    .salary-cases {
        padding: 3rem 0;
    }
    
    .salary-card {
        padding: 2rem 1.5rem;
    }
    
    .salary-header {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .salary-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .salary-change {
        flex-direction: row;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
        justify-content: center;
        align-items: center;
    }
    
    .before, .after {
        flex-direction: column;
        gap: 0.4rem;
        flex: 1;
        max-width: 100px;
    }
    
    .salary-details p {
        font-size: 0.95rem;
    }
    
    .concept {
        padding: 2rem 0 1rem 0;
    }
    
    .concept-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        margin-top: 1rem;
    }
    
    .mobile-break-concept {
        display: block;
    }
    
    .concept-list {
        gap: 0.4rem;
    }
    
    .concept-item {
        padding: 0.6rem 0.4rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }
    
    .concept-item i {
        font-size: 1rem;
    }
    
    .company {
        padding: 3rem 0;
    }
    
    .company-card {
        padding: 2rem 1.5rem;
    }
    
    .company-card-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .company-card-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    .salary-section-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .ceo-profile-image {
        text-align: center;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .ceo-avatar {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
        display: block;
        border: 3px solid var(--accent-color);
        box-shadow: 0 4px 20px rgba(234, 67, 53, 0.3);
        flex-shrink: 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .ceo-profile-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        width: 100%;
    }
    .ceo-profile-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .ceo-profile-info {
        width: 100%;
        text-align: center;
    }

    /* ヒーロー画面タイトル調整：上を小さく一行、下を少し大きく */
    .hero-title {
        font-size: initial !important;
    }
    .hero-line {
        font-size: clamp(2.1rem, 8vw, 2.6rem) !important;
        white-space: nowrap !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 0.3rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        display: block !important;
    }
    .hero-line:first-child {
        margin-left: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }
    .hero-line.highlight {
        font-size: clamp(2rem, 8vw, 2.7rem) !important;
        font-weight: 700 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
        white-space: normal !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ハンバーガーメニューの改善 */
@media (max-width: 768px) {

    

}

/* タッチデバイス用の最適化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
    
    .feature-card:hover,
    .mvv-card:hover,
    .why-us-card:hover,
    .company-card:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    .nav-link:active {
        color: var(--accent-color);
    }
    
    .nav-link:active::after {
        width: 100%;
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg-pattern {
        background-size: 200px 200px;
    }
}

/* 横画面（ランドスケープ）対応 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-content {
        min-height: 90vh;
        padding: 0.3rem 0;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
        margin-bottom: 0.8rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
        padding: 0.4rem 0.8rem;
        position: relative;
    }

    .hero-subtitle::before {
        left: 1px;
        width: 5px;
        height: 48%;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .hero-description p {
        font-size: 0.8rem;
    }
    
    .hero-cta {
        flex-direction: row;
        gap: 0.8rem;
        max-width: 600px;
    }
    
    .btn {
        width: auto;
        flex: 1;
    }
} 

/* 代表メッセージページのCEO写真中央寄せ強制 */
@media (max-width: 768px) {
  .ceo-profile-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .ceo-profile-section .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .ceo-profile-section .ceo-profile-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  .ceo-profile-section .ceo-profile-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    gap: 1.5rem !important;
    padding: 2rem 0 !important;
  }
  
  .ceo-profile-section .ceo-profile-image {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    position: relative !important;
  }
  
  .ceo-profile-section .ceo-avatar {
    display: block !important;
    width: 120px !important;
    height: 120px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 auto !important;
    border: 3px solid var(--accent-color) !important;
    box-shadow: 0 4px 20px rgba(234, 67, 53, 0.3) !important;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  
  .ceo-profile-section .ceo-profile-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
  }
} 