/* --- 基础设置 (Reset & Variables) --- */
:root {
    --primary-color: #0F2350; /* 深海军蓝：专业、稳重 */
    --accent-color: #C69C6D;  /* 哑光金：高雅点缀 */
    --text-color: #333333;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    background-color: var(--white);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { width: 100%; height: auto; object-fit: cover; }

/* --- 通用组件 --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title .en {
    display: block;
    font-size: 14px;
    color: var(--accent-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-title .jp {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title .jp::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    margin: 15px auto 0;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 2px;
}

/* --- Hero Carousel Section (主视觉轮播) --- */
.hero-carousel {
    position: relative;
    height: 80vh;
    margin-top: 70px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 35, 80, 0.5), rgba(15, 35, 80, 0.5));
    z-index: 1;
}

.carousel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.carousel-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.carousel-content p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    border-radius: 4px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.indicator.active {
    background-color: var(--white);
    width: 14px;
    height: 14px;
}

/* --- Philosophy --- */
.philosophy {
    background-color: var(--white);
    text-align: center;
}

.philosophy p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: #555;
}

/* --- Services (业务介绍) --- */
.services {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    transition: var(--transition);
}

.service-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.card-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.card-list {
    font-size: 13px;
    color: #555;
    padding-left: 18px;
}

.card-list li {
    list-style: disc;
    margin-bottom: 5px;
}

.card-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: var(--accent-color);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 25px;
    transition: var(--transition);
}

.card-link:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

/* --- Company Info (会社概要) --- */
.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    width: 30%;
    color: var(--primary-color);
    font-weight: 700;
    background-color: #fcfcfc;
}

.company-table td {
    color: #444;
}

/* --- Contact --- */
.contact-cta {
    text-align: center;
    margin-top: 40px;
}

.contact-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: var(--transition);
}

.contact-btn:hover {
    background-color: #0a193d;
    transform: scale(1.02);
}

/* --- Footer --- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    font-size: 14px;
    text-align: center;
}

.footer-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* --- Contact Page Styles --- */
.page-header {
    height: 350px;
    background: linear-gradient(rgba(15, 35, 80, 0.6), rgba(15, 35, 80, 0.6)), 
                url('https://images.unsplash.com/photo-1423666639041-f14005171858?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    color: var(--white);
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.page-header span {
    font-size: 16px;
    opacity: 0.9;
    letter-spacing: 1px;
}

.contact-info-block {
    text-align: center;
    margin-bottom: 60px;
    background: var(--bg-light);
    padding: 40px 20px;
    border-radius: 8px;
}

.contact-info-block p {
    font-size: 15px;
    margin-bottom: 20px;
    color: #555;
}

.info-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.info-value.email {
    font-size: 18px;
}

.contact-form-wrapper {
    background: var(--white);
    padding: 0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 25px;
    align-items: center;
}

.form-label {
    width: 200px;
    font-weight: 700;
    color: var(--primary-color);
    padding-right: 20px;
    display: flex;
    align-items: center;
}

.required-tag {
    font-size: 11px;
    background: #d9534f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
}

.any-tag {
    font-size: 11px;
    background: #999;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.form-input-box {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 35, 80, 0.1);
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.privacy-box {
    background: var(--bg-light);
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin: 30px 0;
    font-size: 13px;
    color: #666;
    height: 150px;
    overflow-y: scroll;
}

.privacy-check {
    text-align: center;
    margin-bottom: 30px;
    font-weight: 500;
}

.privacy-check input {
    transform: scale(1.2);
    margin-right: 10px;
}

.submit-area {
    text-align: center;
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 60px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(15, 35, 80, 0.2);
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(198, 156, 109, 0.3);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .carousel-content h1 { font-size: 32px; }
    .carousel-content p { font-size: 16px; }
    .carousel-btn { 
        font-size: 18px; 
        padding: 10px 15px; 
    }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }
    .carousel-indicators { bottom: 20px; }
    .nav-menu { display: none; /* 简化版：移动端暂隐菜单，实际项目需添加汉堡菜单 */ }
    .header-inner { justify-content: center; }
    .company-table th, .company-table td { display: block; width: 100%; padding: 10px; }
    .company-table th { background: transparent; padding-top: 20px; }
    
    .page-header h1 { font-size: 32px; }
    .info-grid { flex-direction: column; gap: 20px; }
    .form-row { flex-direction: column; align-items: flex-start; }
    .form-label { width: 100%; margin-bottom: 10px; padding-right: 0; }
    .form-input-box { width: 100%; }
    .submit-btn { width: 100%; }
}

