/* ==========================================================================
   AsaBee Consulting - Responsive Styles
   ========================================================================== */

/* ==========================================================================
   Large Devices (Desktops, 1200px and down)
   ========================================================================== */

@media screen and (max-width: 1200px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Medium Devices (Tablets, 992px and down)
   ========================================================================== */

@media screen and (max-width: 992px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .navbar {
        padding: 14.4px 0;
    }
    
    .navbar.scrolled {
        padding: 12px 0;
    }
    
    .logo-image {
        height: 90px;
        margin: -18.75px 0;
    }
    
    .navbar.scrolled .logo-white {
        display: none;
    }
    
    .navbar.scrolled .logo-dark {
        display: block;
    }
    
    .navbar.scrolled .logo-image {
        height: 75px;
        margin: -15px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 0;
        align-items: flex-start;
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        color: var(--text-dark);
        width: 100%;
    }
    
    /* Mobile: Show Japanese by default */
    .nav-link .nav-text {
        display: none;
    }
    
    .nav-link::before {
        position: static;
        transform: none;
        opacity: 1;
    }
    
    .nav-link.cta-btn .nav-text {
        display: inline-block;
    }
    
    .nav-link.cta-btn::before {
        display: none;
    }
    
    .nav-link.cta-btn {
        margin-top: 20px;
        text-align: center;
        justify-content: center;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Hero */
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Philosophy */
    .philosophy-pillars {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        order: 2;
    }
    
    .about-text {
        order: 1;
    }
    
    /* Career Section */
    .credentials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Career Detail Section */
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .advisor-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .career-summary {
        padding: 30px;
    }
    
    /* Financial Report */
    .financial-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Footer */
    .footer-logo-image {
        height: 90px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    /* Team Section */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
        gap: 25px;
    }
    
    .team-image {
        height: 400px;
    }
}

/* ==========================================================================
   Small Devices (Landscape Phones, 768px and down)
   ========================================================================== */

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 50px;
    }
    
    .container {
        max-width: 540px;
    }
    
    html {
        font-size: 15px;
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.938rem;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* Page Hero */
    .page-hero {
        min-height: 350px;
        padding-top: 95px; /* タブレットのナビゲーションバーの高さ分 */
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero-content p {
        font-size: 1.125rem;
    }
    
    /* Section Header */
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Stats */
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-grid {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
    
    /* News */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .news-title {
        font-size: 1.125rem;
        min-height: auto;
    }
    
    .news-excerpt {
        min-height: auto;
    }
    
    /* Philosophy */
    .philosophy-quote h3 {
        font-size: 1.75rem;
    }
    
    .quote-subtitle {
        font-size: 1.063rem;
    }
    
    .philosophy-text p {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    /* About */
    .about-message h3 {
        font-size: 1.5rem;
    }
    
    .about-message p {
        font-size: 1rem;
    }
    
    .read-more-btn {
        padding: 10px 24px;
        font-size: 0.938rem;
    }
    
    .message-expandable .highlight-text {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .message-expandable .final-message {
        font-size: 1.125rem;
    }
    
    .about-features {
        gap: 15px;
    }
    
    .feature-item {
        flex: 1 1 100%;
    }
    
    /* Career Detail Section */
    .career-detail-content {
        gap: 50px;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .career-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .advisor-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .career-card {
        padding: 20px 18px;
    }
    
    .advisor-card {
        padding: 18px;
    }
    
    .career-summary {
        padding: 25px;
    }
    
    .summary-title {
        font-size: 1.5rem;
    }
    
    .summary-content p {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%) !important;
        padding: 60px 0;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.063rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 30px 25px;
    }
    
    /* Career Details */
    .career-profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 35px 25px;
    }
    
    .career-profile-image img {
        height: 400px;
    }
    
    .career-profile-info h2 {
        font-size: 2rem;
    }
    
    .career-profile-name-en {
        font-size: 1.25rem;
    }
    
    .career-profile-role {
        font-size: 1rem;
    }
    
    .position-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .position-grid.three-columns {
        grid-template-columns: 1fr;
    }
    
    .position-card {
        padding: 30px 25px;
    }
    
    .career-timeline {
        padding-left: 40px;
    }
    
    .career-timeline::before {
        left: 10px;
    }
    
    .timeline-item::before {
        left: -38px;
    }
    
    .timeline-year {
        font-size: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 1.125rem;
    }
    
    .career-cta {
        padding: 40px 25px;
    }
    
    .career-cta h3 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Scroll to Top */
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* ==========================================================================
   Extra Small Devices (Portrait Phones, 576px and down)
   ========================================================================== */

@media screen and (max-width: 576px) {
    :root {
        --section-padding: 40px;
        --container-padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    html {
        font-size: 14px;
    }
    
    /* Navigation */
    .navbar {
        padding: 12px 0;
    }
    
    .navbar.scrolled {
        padding: 9.6px 0;
    }
    
    .logo-image {
        height: 75px;
        margin: -15px 0;
    }
    
    .navbar.scrolled .logo-white {
        display: none;
    }
    
    .navbar.scrolled .logo-dark {
        display: block;
    }
    
    .navbar.scrolled .logo-image {
        height: 63.75px;
        margin: -13.5px 0;
    }
    
    .logo-text {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        width: 100%;
        padding: 80px 30px 30px;
    }
    
    /* Hero */
    .hero {
        min-height: 550px;
        padding-top: 90px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.938rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Page Hero */
    .page-hero {
        min-height: 300px;
        padding-top: 90px; /* スマホのナビゲーションバーの高さ分 */
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-label {
        font-size: 0.813rem;
    }
    
    /* Stats */
    .stats-section {
        padding: 30px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 25px 15px;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    /* Philosophy */
    .philosophy-content {
        gap: 40px;
    }
    
    .philosophy-quote h3 {
        font-size: 1.5rem;
    }
    
    .quote-subtitle {
        font-size: 0.938rem;
    }
    
    .quote-icon {
        font-size: 2.5rem;
    }
    
    .pillar-card {
        padding: 30px 20px;
    }
    
    .pillar-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }
    
    .pillar-card h4 {
        font-size: 1.25rem;
    }
    
    /* Services */
    .service-card {
        padding: 25px 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        border-radius: 12px;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    .featured-badge {
        top: 15px;
        right: 15px;
        padding: 5px 12px;
    }
    
    /* About */
    .about-message h3 {
        font-size: 1.25rem;
    }
    
    .signature .title {
        font-size: 1.125rem;
    }
    
    .read-more-btn {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    .message-expandable .highlight-text {
        padding: 14px 16px;
        font-size: 0.938rem;
        margin: 20px 0;
    }
    
    .message-expandable .final-message {
        font-size: 1.063rem;
        margin-top: 25px;
    }
    
    /* Career Detail Section - Mobile */
    .career-detail-section {
        padding: 40px 0;
    }
    
    .career-detail-content {
        gap: 40px;
    }
    
    /* Career Details Page */
    .career-profile {
        padding: 30px 20px;
    }
    
    .career-profile-image img {
        height: 350px;
    }
    
    .career-profile-info h2 {
        font-size: 1.75rem;
    }
    
    .career-profile-name-en {
        font-size: 1.125rem;
    }
    
    .career-profile-role {
        font-size: 0.938rem;
        padding: 10px 20px;
    }
    
    .career-profile-description {
        font-size: 1rem;
    }
    
    .position-card {
        padding: 25px 20px;
    }
    
    .position-card h3 {
        font-size: 1.125rem;
    }
    
    .position-role {
        font-size: 0.938rem;
    }
    
    .career-timeline {
        padding-left: 35px;
    }
    
    .timeline-year {
        font-size: 0.938rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content p {
        font-size: 0.938rem;
    }
    
    .career-cta {
        padding: 35px 20px;
    }
    
    .career-cta h3 {
        font-size: 1.25rem;
    }
    
    .career-cta p {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.25rem;
        gap: 10px;
    }
    
    .category-title i {
        font-size: 1.125rem;
    }
    
    .career-card {
        padding: 18px 15px;
    }
    
    .career-company {
        font-size: 0.938rem;
        margin-bottom: 12px;
    }
    
    .career-position {
        font-size: 0.875rem;
        padding: 5px 10px;
    }
    
    .advisor-card {
        padding: 15px;
    }
    
    .advisor-company {
        font-size: 0.938rem;
    }
    
    .advisor-role {
        font-size: 0.813rem;
    }
    
    .career-summary {
        padding: 20px;
    }
    
    .summary-title {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .summary-content p {
        font-size: 0.938rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    
    /* CTA */
    .cta-section {
        background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 50%, #2a2a2a 100%) !important;
        padding: 50px 0;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Contact */
    .contact-form-wrapper {
        padding: 25px 20px;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .info-card {
        padding: 25px 20px;
    }
    
    .info-icon {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    /* Team Section */
    .team-section {
        padding: 60px 0;
    }
    
    .team-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .team-image {
        height: 400px;
    }
    
    .team-info {
        padding: 25px 20px;
        gap: 10px;
    }
    
    .team-name {
        font-size: 1.375rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-description {
        font-size: 0.938rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-logo-image {
        height: 70px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    /* Scroll to Top */
    .scroll-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 15px;
        right: 15px;
    }
}

/* ==========================================================================
   Tiny Devices (Very Small Phones, 400px and down)
   ========================================================================== */

@media screen and (max-width: 400px) {
    :root {
        --section-padding: 30px;
    }
    
    html {
        font-size: 13px;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .philosophy-quote h3 {
        font-size: 1.25rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Landscape Orientation (Mobile Devices)
   ========================================================================== */

@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        height: auto;
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 30px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .navbar,
    .menu-toggle,
    .scroll-top,
    .hero-buttons,
    .scroll-indicator,
    .cta-section,
    .contact-form-wrapper {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
        background: #fff;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description {
        color: #000;
    }
    
    section {
        padding: 30px 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@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;
    }
}

/* ==========================================================================
   High Contrast Mode
   ========================================================================== */

@media (prefers-contrast: high) {
    :root {
        --primary-color: #0052a3;
        --text-gray: #333;
        --border-color: #666;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .service-card,
    .pillar-card,
    .info-card {
        border: 2px solid var(--border-color);
    }
}

/* ==========================================================================
   Dark Mode Support (Future Enhancement)
   ========================================================================== */

/* ==========================================================================
   News Modal Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .news-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .news-modal-body {
        padding: 40px 30px;
    }
    
    .news-modal-title {
        font-size: 1.5rem;
    }
    
    .news-modal-text {
        font-size: 1rem;
    }
    
    .news-modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.125rem;
    }
}

@media screen and (max-width: 480px) {
    /* Page Hero */
    .page-hero {
        min-height: 280px;
        padding-top: 85px;
    }
    
    .page-hero-content {
        padding: 15px;
    }
    
    .page-hero-content h1 {
        font-size: 1.75rem;
    }
    
    .page-hero-content p {
        font-size: 0.938rem;
    }
    
    .breadcrumb {
        font-size: 0.875rem;
        gap: 8px;
    }
    
    /* News Modal */
    .news-modal-body {
        padding: 30px 20px;
    }
    
    .news-modal-title {
        font-size: 1.25rem;
    }
    
    .news-modal-text {
        font-size: 0.938rem;
    }
}

/* ==========================================================================
   Dark Mode Support
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
}