
/* 
   Field Transport Co., Ltd. 
   Custom Stylesheet
   Theme: Compact Blue & Legacy Text
*/

:root {
    --primary: #0095d9; /* Updated Cyan/Blue */
    --primary-dark: #007bb5;
    --accent: #ffcc00;
    
    --text: #333333;
    --text-light: #666666;
    --bg-light: #f0f6fa;
    --white: #ffffff;
    
    /* Header Background Color matched to Logo Background (Exact Match) */
    --header-bg: #ccdfe0; 
    
    --font-base: 'Noto Sans JP', sans-serif;
    --max-width: 960px;
    --header-height: 60px;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-base);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 15px;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Utility */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.bg-light { background-color: var(--bg-light); }
.btn {
    display: inline-block; padding: 8px 20px; border-radius: 4px;
    font-weight: 700; transition: 0.3s; font-size: 0.9rem;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid white; color: white; background: rgba(0,0,0,0.1); }
.btn-outline:hover { background: white; color: var(--primary); }
.btn-sm { padding: 5px 15px; font-size: 0.85rem; }

/* Header */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--header-bg); /* Matched to logo background */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    height: var(--header-height);
    border-bottom: 1px solid #b0d0e0;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo a { display: flex; align-items: center; height: 100%; }
.logo-img { height: 45px; width: auto; } 

.desktop-nav ul { display: flex; gap: 15px; align-items: center; }
.desktop-nav a { font-size: 13px; font-weight: 700; color: #224455; } 
.desktop-nav a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 5px 12px; border-radius: 3px; }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 25px; height: 18px; position: relative; z-index: 1002; }
.mobile-menu-btn span { position: absolute; width: 100%; height: 2px; background: var(--primary-dark); transition: 0.3s; }
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.mobile-menu-btn span:nth-child(3) { bottom: 0; }
.mobile-menu-btn.active span { background: white; }
.mobile-menu-btn.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { bottom: 50%; transform: rotate(-45deg) translateY(1px); }

.mobile-nav {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
    background: var(--primary); z-index: 1001; transition: 0.4s;
    display: flex; justify-content: center; align-items: center;
}
.mobile-nav.active { right: 0; }
.mobile-nav a { color: white; font-size: 18px; font-weight: 700; display: block; margin: 20px 0; text-align: center; }

/* Hero Section */
.hero {
    position: relative; height: 60vh; min-height: 400px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: white; padding-top: var(--header-height);
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('images/herotop.png');
    background-size: cover; background-position: center; z-index: 1;
    background-attachment: fixed; /* Parallax effect */
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(0,149,217,0.3), rgba(0,40,80,0.7));
    z-index: 2;
}
.hero-content { position: relative; z-index: 3; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-sub { color: var(--accent); font-weight: 700; letter-spacing: 0.2em; font-size: 11px; margin-bottom: 0.5rem; }
.hero-title { font-size: 2.2rem; font-weight: 900; line-height: 1.3; margin-bottom: 1rem; }
.hero-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
.hero-btns { display: flex; gap: 10px; justify-content: center; }

/* Compact Sections */
.section.compact-section { padding: 50px 0; }
.compact-header { margin-bottom: 30px; text-align: center; }
.section-title {
    font-size: 1.4rem; font-weight: 900; color: var(--text);
    display: inline-block; border-bottom: 2px solid var(--primary); padding-bottom: 5px;
}

/* News */
.news-section { padding: 15px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; background: #fafafa; }
.news-wrapper { display: flex; align-items: center; gap: 15px; }
.news-header-label {
    background: var(--primary); color: white; padding: 2px 10px;
    border-radius: 2px; font-weight: 700; font-size: 0.8rem; white-space: nowrap;
}
.news-item { display: flex; flex-direction: column; gap: 2px; margin-right: 20px; }
.news-date { font-weight: 700; color: var(--primary); font-size: 0.85rem; }
.news-detail { font-size: 0.85rem; color: #666; margin-left: 10px; }

/* Compact Profile */
.profile-content { border-top: 1px solid var(--primary); margin-top: 10px; }
.profile-row {
    display: flex; border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}
.profile-row dt {
    width: 25%; background: #eaf4f9; padding: 10px 15px;
    font-weight: 700; color: var(--primary-dark);
    display: flex; align-items: center;
}
.profile-row dd {
    width: 75%; padding: 10px 15px;
}
.small-text { font-size: 0.85rem; line-height: 1.5; }

/* Compact Message */
.message-wrapper { display: flex; gap: 30px; align-items: flex-start; }
.message-image { width: 35%; position: relative; cursor: pointer; transition: 0.3s; }
.message-image:hover { opacity: 0.9; }
.message-image img { border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); width: 100%; }
.click-hint { font-size: 0.75rem; text-align: center; color: #666; margin-top: 5px; }
.message-text { width: 65%; font-size: 0.95rem; line-height: 1.7; text-align: justify; }
.message-body p { margin-bottom: 15px; }
.compact-sign {
    margin-top: 20px; text-align: right; border-top: 1px dotted #ccc; padding-top: 10px;
}
.sign-row { font-size: 0.9rem; margin-bottom: 2px; }
.sign-row strong { font-size: 1.1rem; margin-left: 10px; }

/* Services (Full List Styles) */
.services-full-list {
    background: white; padding: 30px;
    border-radius: 4px; border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.service-item { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px dashed #ddd; }
.service-item:last-of-type { border-bottom: none; }
.service-item h4 {
    font-size: 1.1rem; font-weight: 700; color: var(--primary-dark);
    margin-bottom: 10px; border-left: 5px solid var(--primary); padding-left: 10px;
}
.service-item p { font-size: 0.95rem; color: #333; margin-bottom: 10px; }
.service-example {
    background: #f4f4f4; padding: 10px 15px; border-radius: 4px;
    font-size: 0.9rem; color: #555; margin-top: 5px;
}

.request-section { margin-top: 40px; padding: 25px; background: #eaf6fb; border-radius: 5px; border: 1px solid #d0e0eb; }
.request-section h4 { font-weight: 700; color: var(--primary-dark); margin-bottom: 15px; font-size: 1.1rem; }
.request-steps p { margin-bottom: 10px; font-size: 0.95rem; }

.rates-section { margin-top: 25px; padding: 15px; border: 1px solid #eee; background: #fff; }
.rates-section h4 { font-weight: 700; display: inline-block; margin-right: 10px; }
.rates-section p { display: inline-block; }

/* Compact Access */
.access-wrapper { display: flex; gap: 20px; }
.access-info { width: 35%; }
.access-map { width: 65%; height: 350px; background: #eee; }
.access-item .address { font-weight: bold; margin-bottom: 10px; font-size: 1rem; }
.access-item .tel { font-size: 1.3rem; font-weight: 900; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* Compact Recruit */
.recruit-box { text-align: center; border: 2px dashed #ccc; padding: 30px; background: white; }
.recruit-sub { font-size: 1rem; color: #555; margin-top: 10px; }

/* Contact (Full Details Styles) */
.contact-section { background: #3a3a3a; color: white; }
.contact-full-details {
    max-width: 800px; margin: 0 auto;
    background: rgba(255,255,255,0.1); padding: 40px; border-radius: 4px;
}
.contact-row {
    display: flex; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 25px;
}
.contact-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.contact-label {
    width: 20%; font-size: 1.2rem; font-weight: 700; color: var(--accent);
    display: flex; align-items: flex-start; padding-top: 5px;
}
.contact-text { width: 80%; font-size: 1rem; line-height: 1.8; }
.contact-number { font-size: 1.6rem; font-weight: 900; margin-bottom: 5px; letter-spacing: 1px; }

/* Footer */
footer { background: #111; color: #666; padding: 20px 0; text-align: center; font-size: 0.8rem; }

/* Gallery (Slideshow - Square) */
.gallery-section { padding: 40px 0; background: #f9f9f9; }
.gallery-sub { text-align: center; font-size: 0.9rem; color: var(--primary); letter-spacing: 2px; margin-bottom: 20px; }
.gallery-container {
    width: 300px; height: 300px; /* Fixed Square Size 300px */
    margin: 0 auto; position: relative;
    overflow: hidden; border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #333;
}
.gallery-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1.5s ease-in-out;
}
.gallery-slide.active { opacity: 1; }
.gallery-slide img {
    width: 100%; height: 100%; object-fit: cover;
}

/* Lightbox */
.lightbox {
    display: none; position: fixed; z-index: 2000; padding-top: 50px;
    left: 0; top: 0; width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.9);
}
.lightbox-content {
    margin: auto; display: block; width: 80%; max-width: 800px;
    animation: zoom 0.6s;
}
@keyframes zoom { from {transform:scale(0)} to {transform:scale(1)} }
.close-lightbox {
    position: absolute; top: 15px; right: 35px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer;
}
.close-lightbox:hover { color: #bbb; }

/* Animations */
.fade-in { opacity: 0; transition: 1s; }
.fade-in-up { opacity: 0; transform: translateY(10px); transition: 0.8s; }
.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-title { font-size: 1.6rem; }
    
    .profile-row { flex-direction: column; }
    .profile-row dt { width: 100%; }
    .profile-row dd { width: 100%; }
    
    .message-wrapper { flex-direction: column; }
    .message-image, .message-text { width: 100%; }
    
    .access-wrapper { flex-direction: column; }
    .access-info, .access-map { width: 100%; }
    
    .contact-row { flex-direction: column; }
    .contact-label { width: 100%; margin-bottom: 10px; }
    .contact-text { width: 100%; }
    
    .news-wrapper { flex-direction: column; align-items: flex-start; gap: 5px; }
    
    /* Gallery Responsive */
    .gallery-container { width: 280px; height: 280px; }
}
