/* レスポンシブデザイン - スマホ最適化版 */
@media (max-width: 768px) {
    /* 基本設定 */
    * {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    body {
        font-size: 1rem;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
    }

    /* ナビゲーション */
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100vw;
        max-width: 100vw;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 0;
        overflow: hidden;
        gap: 0;
        box-sizing: border-box;
        margin: 0;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-link {
        padding: 1rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--gray-200);
        width: 100%;
        text-align: left;
        min-height: 44px;
        display: flex;
        align-items: center;
        white-space: nowrap;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link::after {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 0.75rem;
        min-width: 44px;
        min-height: 44px;
        background: none;
        border: none;
        justify-content: center;
        align-items: center;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

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

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

    /* ロゴ */
    .logo h1 {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .logo-sub {
        font-size: 0.75rem;
    }

    /* ヒーローセクション */
    .hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 1rem;
        margin-top: 5rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
        line-height: 1.3;
        text-align: center;
    }

    .hero-description {
        font-size: clamp(1rem, 3vw, 1.25rem);
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .company-name h3 {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    /* ボタン */
    .btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .btn svg {
        width: 18px;
        height: 18px;
    }

    /* セクションタイトル */
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        text-align: center;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }

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

    /* セクション共通 */
    .services,
    .mission,
    .testimonials,
    .careers,
    .about,
    .contact {
        padding: 3rem 0;
    }

    /* 事業内容 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-description p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: center;
    }

    .service-description br {
        display: none;
    }

    .service-card {
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .service-image {
        height: 200px;
    }

    .service-content {
        padding: 1.5rem;
    }

    .service-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        text-align: left;
    }

    .service-content p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    /* 企業の強み */
    .mission-values {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .value-item {
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .value-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .value-item h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    .value-item p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .mission-text p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    /* お客様の声 */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        flex-direction: column;
    }

    .testimonial-image {
        width: 100%;
        height: 200px;
    }

    .testimonial-content {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }

    .author-name {
        font-size: 0.875rem;
    }

    /* 採用情報 */
    .tab-buttons {
        flex-direction: row;
        align-items: stretch;
        gap: 0.5rem;
    }

    .tab-button {
        flex: 1;
        height: 60px;
        padding: 0.5rem;
        font-size: 0.875rem;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tab-panel {
        padding: 1.5rem 1rem;
    }

    .career-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .career-info-grid {
        gap: 1.5rem;
    }

    .info-section h4 {
        font-size: 1.125rem;
    }

    .info-section li {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* 会社概要 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-text .section-title {
        text-align: center;
    }

    .outline-list {
        padding: 0;
        max-width: 100%;
    }

    .outline-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0;
        gap: 0.5rem;
    }

    .outline-label {
        font-size: 1rem;
        font-weight: 600;
        min-width: auto;
        width: 100%;
    }

    .outline-value {
        font-size: 1rem;
        width: 100%;
        text-align: left;
    }

    /* お問い合わせ */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem 1rem;
        max-width: 100%;
    }

    .form-notice p {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 1rem;
        padding: 0.875rem;
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .btn-full {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
        min-height: 48px;
    }

    /* フッター */
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-info h3 {
        font-size: 1.25rem;
        text-align: center;
    }

    .footer-info p {
        font-size: 1rem;
        text-align: center;
    }

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

    .footer-section h4 {
        font-size: 1rem;
        text-align: center;
    }

    .footer-section ul {
        text-align: center;
    }

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

    .footer-bottom p {
        font-size: 0.75rem;
    }

    /* コンテナ */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    /* 背景画像の最適化 */
    .hero-image,
    .careers-image,
    .about-image {
        background-attachment: scroll;
    }

    /* スクロールインジケーター */
    .scroll-indicator {
        display: none;
    }

    /* 画像最適化 */
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* フォーカス表示 */
    a:focus,
    button:focus,
    input:focus,
    textarea:focus,
    select:focus {
        outline: 2px solid var(--accent-color);
        outline-offset: 2px;
    }

    /* タップ領域の確保 */
    a,
    button,
    .nav-link,
    .tab-button,
    .btn {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

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

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .service-content,
    .testimonial-content,
    .contact-form,
    .outline-list {
        padding: 1.25rem;
    }

    .tab-panel {
        padding: 1.25rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .btn {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

