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

/* タブレット */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-item {
        padding: 40px 25px;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .feature-item:nth-child(2n) {
        border-right: none;
    }

    .scenes-grid {
        grid-template-columns: 1fr;
    }

    .flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }

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

/* モバイル */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        padding: 0 15px;
        max-width: 100%;
    }

    section {
        padding: 60px 0 !important;
        overflow-x: hidden;
    }

    .features {
        padding: 0 !important;
    }

    * {
        max-width: 100vw;
    }

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

    /* ヘッダー */
    .header {
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .header .container {
        padding: 0px 15px;
    }

    .logo-img {
        height: 75px;
    }

    .header-logo h1 {
        font-size: 16px;
    }

    .header-subtitle {
        font-size: 8px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background-color: var(--bg-white);
        padding: 70px 30px 30px;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

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

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header-nav a {
        font-size: 15px;
        color: var(--text-dark) !important;
    }

    .header-nav a.btn-nav {
        color: var(--bg-white) !important;
        border: none;
        border-radius: 0;
        margin-top: 1em;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        color: #FFFFFF !important;
        background-color: var(--text-dark) !important;
    }

    .btn-nav:hover {
        color: #FFFFFF !important;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translateY(10px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-10px);
    }

    /* ヒーロー */
    .hero {
        min-height: calc(100vh - 75px);
        margin-top: 75px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 0 20px !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .hero-label {
        font-size: 10px;
        margin-bottom: 20px;
    }

    .hero-title {
        font-size: 28px !important;
        line-height: 1.4 !important;
    }

    .sp-br {
        display: block !important;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 13px;
        flex: 1;
        min-width: 0;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 14px !important;
        margin-bottom: 40px !important;
        white-space: normal !important;
        line-height: 1.7 !important;
    }

    .hero-description br {
        display: block !important;
    }

    .hero-buttons {
        flex-direction: row !important;
        gap: 10px !important;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        flex: 1;
        min-width: 0;
        text-align: center;
        padding: 12px 15px !important;
        font-size: 13px !important;
    }

    .hero-scroll-indicator {
        bottom: 20px;
    }

    .scroll-line {
        height: 40px;
    }

    /* 特徴 */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .feature-item {
        padding: 25px 15px;
        border-right: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
    }

    .feature-item:nth-child(2n) {
        border-right: none;
    }

    .feature-item:nth-child(3),
    .feature-item:nth-child(4) {
        border-bottom: none;
    }

    .feature-icon-box {
        width: 45px;
        height: 45px;
    }

    .feature-icon-box svg {
        width: 22px;
        height: 22px;
    }

    .feature-number {
        font-size: 10px;
    }

    .feature-item h3 {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .feature-item p {
        font-size: 11px;
        line-height: 1.6;
    }

    .features {
        padding: 80px 0;
    }

    .features-intro {
        margin-bottom: 60px;
    }

    /* セクション */
    .section-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    /* 特徴 */

    /* 魅力 */
    .appeal {
        padding: 80px 0;
    }

    .appeal-header {
        margin-bottom: 60px;
    }

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

    .infinite-slider {
        padding: 0;
    }

    .section-header {
        margin-bottom: 30px !important;
    }

    .section-title {
        font-size: 22px !important;
        margin-bottom: 0 !important;
    }

    .section-label {
        margin-bottom: 7px !important;
    }

    .appeal-label {
        margin-bottom: 7px;
    }

    .appeal-content {
        gap: 0px;
    }

    .appeal-header {
        margin-bottom: 30px !important;
    }

    .appeal {
        padding: 60px 0 0 !important;
    }

    .appeal-item {
        gap: 12px;
        margin-bottom: 20px !important;
    }

    .appeal-number {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .appeal-item-content h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }

    .appeal-item-content p {
        font-size: 12px !important;
    }

    .appeal-item-content h3 {
        font-size: 15px;
    }

    .appeal-item-content p {
        font-size: 13px;
    }

    .appeal-item h3 {
        font-size: 15px;
    }

    .appeal-item p {
        font-size: 13px;
    }

    /* 募集内容 */
    .details-row {
        grid-template-columns: 1fr;
    }

    .details-label {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .details-value {
        padding: 15px 20px;
    }

    .details-row-price strong {
        font-size: 24px;
    }

    /* 利用シーン */
    .details-table {
        display: block;
        width: 100%;
    }

    .details-table tbody {
        width: 100%;
        display: block;
    }

    .details-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }

    .details-table tr:last-child {
        border-bottom: none;
    }

    .details-table th {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 11px !important;
        background-color: #EEEEEE !important;
        border-bottom: none;
    }

    .details-table td {
        width: 100% !important;
        padding: 12px 15px !important;
        font-size: 12px !important;
    }

    .price-row th,
    .price-row td {
        padding: 15px !important;
    }

    .price-highlight {
        font-size: 28px !important;
    }

    .price-tax {
        font-size: 12px !important;
    }

    .scenes {
        padding: 60px 0 !important;
    }

    .scenes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .scene-image {
        height: 180px !important;
    }

    .scene-content {
        padding: 15px 12px !important;
    }

    .scene-card h3 {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .scene-card p {
        font-size: 11px !important;
        line-height: 1.6 !important;
    }

    .slider-item {
        width: 250px;
        height: 188px;
        margin: 0 10px;
    }

    .scene-card {
        padding: 0;
    }

    .scene-image {
        height: 180px;
    }

    .scene-icon {
        font-size: 35px;
        margin: 25px 0 15px;
    }

    .scene-card h3 {
        font-size: 15px;
        padding: 0 0;
    }

    .scene-card p {
        padding: 0 0 0;
    }

    /* フロー */
    .details-table th,
    .details-table td {
        display: block;
        width: 100%;
        padding: 15px 20px;
    }

    .details-table th {
        background-color: var(--bg-gray);
        font-weight: 600;
        padding-bottom: 8px;
    }

    .details-table td {
        padding-top: 8px;
        padding-bottom: 20px;
    }

    .flow {
        padding: 60px 0 !important;
    }

    .flow-item {
        gap: 15px !important;
        padding: 20px 0 !important;
    }

    .flow-num {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
    }

    .flow-content h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }

    .flow-content p {
        font-size: 12px !important;
        line-height: 1.7 !important;
    }

    .cta {
        padding: 80px 0 !important;
    }

    .cta-content h2 {
        font-size: 22px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .cta-description {
        font-size: 12px !important;
        margin-bottom: 30px !important;
    }

    .btn-cta {
        padding: 15px 40px !important;
        font-size: 13px !important;
    }

    .faq {
        padding: 60px 0 !important;
    }

    .contact {
        padding: 60px 0 !important;
    }

    .footer-logo-img {
        height: 80px !important;
    }

    .contact-intro {
        font-size: 13px !important;
        margin-top: 15px !important;
    }

    .step-icon {
        font-size: 35px;
    }

    .flow-step h3 {
        font-size: 14px;
    }

    .flow-step p {
        font-size: 12px;
    }

    /* FAQ */
    .faq-question {
        padding: 15px 20px;
        font-size: 13px;
    }

    .faq-answer p {
        padding: 0 20px 15px;
        font-size: 13px;
    }

    .faq-contact h3 {
        font-size: 16px;
    }

    .faq-contact p {
        font-size: 13px;
    }

    /* CTA */
    .cta {
        padding: 80px 0;
    }

    .cta-icon {
        font-size: 40px;
    }

    .cta-subtitle {
        font-size: 13px;
    }

    .cta-title {
        font-size: 26px;
    }

    .btn-cta {
        padding: 16px 40px;
        font-size: 14px;
    }

    .cta-note {
        font-size: 12px;
    }

    /* お問い合わせ */
    .contact {
        padding: 80px 0;
    }

    .contact-description {
        font-size: 13px;
        margin-bottom: 40px;
    }

    .contact-info {
        margin-bottom: 30px;
    }

    .contact-notice {
        font-size: 12px;
        margin-bottom: 40px;
    }

    .contact-form {
        padding: 40px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 25px;
    }

    .form-group label {
        font-size: 12px;
    }

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

    .radio-group {
        gap: 20px;
    }

    .checkbox-label {
        font-size: 11px;
    }

    .btn-submit {
        padding: 16px 30px;
        font-size: 14px;
    }

    /* フッター */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-icon {
        font-size: 35px;
    }

    .footer-brand h3 {
        font-size: 16px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

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

    .footer-info p {
        font-size: 12px;
    }

    .footer-copyright p {
        font-size: 10px;
    }
}

/* 小型モバイル */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

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

    .section-title {
        font-size: 22px;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* ランドスケープモード（横向き） */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }

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

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

    .hero-icon {
        margin: 25px 0;
    }
}

/* アクセシビリティ：アニメーション削減 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
