/* Custom CSS for Field Time Corporate Website */

/* Global Styles */
:root {
    --primary-green: #3C9E90;
    --bs-success-rgb: #3C9E90;
    --dark-green: #3C6B64;
    --light-green: #d4edda;
    --neutral-gray: #6c757d;
    --light-gray: #f8f9fa;

}

body {
    font-family: 'M PLUS 1p', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Font Awesome アイコン用のフォント設定 */
.fas, .far, .fab, .fal, .fad, .fa, i[class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Pro" !important;
    font-style: normal !important;
    font-weight: 900 !important;
}

/* 事業内容のアイコン専用設定 */
.business-icon i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

/* Navigation */
.navbar-brand {
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
}

/* Hero Section */
.hero-section {
    padding-top: 40px;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 17, 40, 0.2), rgba(3, 13, 30, 0.4));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
    justify-content: center;
    text-align: center;
}

.hero-slide h1 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-slide p {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-slide .btn {
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    transition: all 0.3s ease;
}

.hero-slide .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Business Cards */
.business-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

.business-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.business-card:hover .business-icon {
    transform: scale(1.1);
}

.business-card .card {
    border-left: 4px solid var(--primary-green);
    transition: border-color 0.3s ease;
}

.business-card:hover .card {
    border-left-color: var(--dark-green);
}

.business-card .img-fluid {
    margin-top: 20px;
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    position: relative;
    bottom: 0;
}

/* Team Cards */
.team-card {
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo .rounded-circle {
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo .rounded-circle {
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--light-green);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.btn-success {
    /*background-color: var(--primary-green);
    border-color: var(--primary-green); */
    background: #1490D9;
    background: linear-gradient(135deg,rgba(20, 144, 217, 1) 0%, rgba(75, 201, 100, 1) 100%);
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-1px);
}

/* Section Spacing */
section {
    padding: 80px 0;
}

/* Company Info Styling */
.company-info h5 {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.company-info p {
    font-weight: 300;
}

.contact-info {
}

.contact-info a {
    color: var(--primary-green);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--dark-green);
}

/* Tags */
.tags .badge {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
}

/* Card Text */
.card-text {
    font-weight: 300;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    font-weight: 300;
}

footer a {
    transition: color 0.3s ease;
    font-weight: 300;
}

footer a:hover {
    color: var(--primary-green) !important;
}

/* Footer Contact Info */
footer .col-lg-6 .mb-2,
footer .col-lg-6 .mb-3 {
    font-size: 0.8rem;
}

footer .col-lg-6 .mb-2 a,
footer .col-lg-6 .mb-3 a {
    font-size: 0.8rem;
}

footer .col-lg-6 .small {
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide h1 {
        font-size: 2rem;
    }
    
    .hero-slide p {
        font-size: 1rem;
    }
    
    .business-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .contact-form {
        padding: 2rem !important;
    }
}

@media (max-width: 576px) {
    .hero-slide h1 {
        font-size: 1.75rem;
    }
    
    .hero-slide .btn {
        font-size: 1rem;
        padding: 0.75rem 2rem;
    }
    
    .business-card .card-title {
        font-size: 1.1rem;
    }
    
    .team-photo .rounded-circle {
        width: 100px !important;
        height: 100px !important;
    }
    
    .team-photo .fas {
        font-size: 2.5rem !important;
    }
}

/* Slick Carousel Customization */

.slick-dots li button:before {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.slick-dots li.slick-active button:before {
    color: var(--primary-green);
}

.slick-prev,
.slick-next {
    z-index: 3;
}

.slick-prev:before,
.slick-next:before {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.slick-prev {
    left: 30px;
}

.slick-next {
    right: 30px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* Additional responsive improvements */
@media (max-width: 991px) {
    .hero-section {
        height: 70vh;
    }
    
    .hero-slide {
        height: 70vh;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 60vh;
    }
    
    .hero-slide {
        height: 60vh;
    }
    
    .hero-slide h1 {
        font-size: 1.5rem;
    }
    
    .hero-slide p {
        font-size: 0.9rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
        word-break: keep-all;
        overflow-wrap: anywhere;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-section,
    footer,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: 100% !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-success {
        border: 2px solid #000;
    }
    
    .text-success {
        color: #000 !important;
    }
    
    .bg-success {
        background-color: #000 !important;
    }
}

/* Reduced motion support */
@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;
    }
}

/* Focus styles for accessibility */
.focus-visible {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Events badges visibility tweaks */
#home-events-container .badge.bg-success,
#events-container .badge.bg-success,
#event-detail .badge.bg-success {
    background-color: var(--primary-green) !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(60, 158, 144, 0.2);
}

#home-events-container .badge.bg-info,
#events-container .badge.bg-info,
#event-detail .badge.bg-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.2);
}

#home-events-container .badge.bg-secondary,
#events-container .badge.bg-secondary,
#event-detail .badge.bg-secondary {
    background-color: #6c757d !important;
    color: #fff !important;
    font-weight: 500;
    padding: 0.5em 0.8em;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

/* Square thumbnails for event cards */
#home-events-container .card-img-top,
#events-container .card-img-top {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    display: block;
}

/* Team section card height alignment */
#team .row {
    display: flex;
    flex-wrap: wrap;
}

#team .col-lg-4 {
    display: flex;
    margin-bottom: 1.5rem;
}

#team .team-card {
    display: flex;
    width: 100%;
}

#team .team-card .card {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#team .team-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#team .team-card .card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* LINE Official Account Floating Banner */
.line-floating-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #00B900;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 280px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.line-floating-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.line-floating-banner img {
    width: auto;
    height: 36px;
    flex-shrink: 0;
    order: 2;
}

.line-floating-banner .banner-text {
    flex: 1;
    text-align: center;
    order: 1;
}

.line-floating-banner .banner-text strong {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.line-floating-banner .banner-text small {
    font-size: 12px;
    opacity: 0.9;
}

/* Responsive adjustments for LINE floating banner */
@media (max-width: 576px) {
    .line-floating-banner {
        bottom: 15px;
        right: 15px;
        max-width: 200px;
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .line-floating-banner img {
        height: 28px;
        width: auto;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .line-floating-banner {
        bottom: 15px;
        right: 15px;
        max-width: 250px;
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .line-floating-banner img {
        height: 32px;
        width: auto;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .line-floating-banner {
        bottom: 18px;
        right: 18px;
        max-width: 260px;
        padding: 11px 14px;
        font-size: 13px;
    }
    
    .line-floating-banner img {
        height: 34px;
        width: auto;
    }
}

/* LINE Brand Button */
.line-brand-btn {
    background-color: #00B900 !important;
    border-color: #00B900 !important;
    color: white !important;
    transition: all 0.3s ease;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.line-brand-btn:hover {
    background-color: #00A000 !important;
    border-color: #00A000 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 185, 0, 0.3);
}

.line-brand-btn:focus {
    background-color: #00A000 !important;
    border-color: #00A000 !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 185, 0, 0.25);
}

.line-brand-btn img {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    margin-right: 0 !important;
    order: 2;
}

.line-brand-btn .text-start {
    text-align: center !important;
    order: 1;
}

/* Floating Reservation Button */
.floating-reservation-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-reservation-btn.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-reservation-btn .btn {
    /* Use the same style as the original button */
    background: #1490D9;
    background: linear-gradient(135deg,rgba(20, 144, 217, 1) 0%, rgba(75, 201, 100, 1) 100%);
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 400;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.floating-reservation-btn .btn:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.floating-reservation-btn .btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Reservation Button Responsive Width */
#original-reservation-button .btn,
.floating-reservation-btn .btn {
    min-width: 200px;
    max-width: 400px;
    width: auto;
    padding: 0.5rem 2rem;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .floating-reservation-btn {
        bottom: 15px;
        left: 15px;
        right: 15px;
        transform: none;
    }
    
    #original-reservation-button .btn,
    .floating-reservation-btn .btn {
        width: 100%;
        max-width: none;
        min-width: auto;
        border-radius: 0.375rem;
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    #original-reservation-button .btn,
    .floating-reservation-btn .btn {
        min-width: 250px;
        max-width: 350px;
    }
}

/* Desktop adjustments */
@media (min-width: 1025px) {
    #original-reservation-button .btn,
    .floating-reservation-btn .btn {
        min-width: 300px;
        max-width: 400px;
    }
}

/* Event Detail Buttons - Make them more tappable */
#home-events-container .btn.btn-sm,
#events-container .btn.btn-sm {
    padding: 0.75rem 1rem;
    min-height: 44px;
    font-size: 0.9rem;
    line-height: 1.2;
}

/* Mobile adjustments for detail buttons */
@media (max-width: 768px) {
    #home-events-container .btn.btn-sm,
    #events-container .btn.btn-sm {
        padding: 0.8rem 1rem;
        min-height: 48px;
        font-size: 0.95rem;
    }
}
