/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo h1 a {
    color: #003366;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
}

.header-nav ul {
    display: flex;
    list-style: none;
}

.header-nav ul li {
    margin-left: 30px;
}

.header-nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.header-nav ul li a:hover {
    color: #003366;
}

.header-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #003366;
    transition: width 0.3s ease;
}

.header-nav ul li a:hover::after {
    width: 100%;
}

/* パンくずリスト */
.breadcrumb {
    padding: 100px 0 30px;
    background-color: #f9f9f9;
}

.breadcrumb ul {
    display: flex;
    list-style: none;
}

.breadcrumb ul li {
    margin-right: 10px;
    color: #666;
}

.breadcrumb ul li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
}

.breadcrumb ul li a {
    color: #003366;
    text-decoration: none;
}

.breadcrumb ul li a:hover {
    text-decoration: underline;
}

/* ページヘッダー */
.page-header {
    text-align: center;
    margin: 50px 0;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
}

.page-subtitle {
    color: #666;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* メインビジュアル */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1500&q=80') center/cover no-repeat;
    opacity: 0.2;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: #ff6600;
    color: white;
}

.btn-primary:hover {
    background-color: #e55b00;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.btn-outline:hover {
    background-color: #003366;
    color: white;
    transform: translateY(-3px);
}

/* セクション共通 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ff6600;
}

.section-subtitle {
    color: #666;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 会社概要 */
.company-overview {
    padding: 100px 0;
    background-color: #f9f9f9;
}

.company-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.company-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #003366;
}

.company-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #666;
}

.company-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 会社概要ページ */
.company-page {
    padding: 50px 0 100px;
    background-color: #f9f9f9;
}

.info-section {
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-section h2 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

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

.info-table th {
    width: 25%;
    font-weight: bold;
    color: #003366;
}

.philosophy h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #003366;
}

.history ul {
    list-style: none;
}

.history ul li {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.history-year {
    font-weight: bold;
    color: #003366;
    min-width: 100px;
    padding-top: 5px;
}

.history-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* サービスページ */
.services-page {
    padding: 50px 0 100px;
    background-color: #f9f9f9;
}

.services-intro {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-item:nth-child(even) {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
}

.service-details {
    flex: 1;
}

.service-details h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #003366;
}

.service-details p {
    margin-bottom: 20px;
    color: #666;
    font-size: 1.1rem;
}

.service-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.service-details ul li {
    padding: 8px 0 8px 25px;
    position: relative;
}

.service-details ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

/* お問い合わせページ */
.contact-page {
    padding: 50px 0 100px;
    background-color: #f9f9f9;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2,
.contact-form h2 {
    font-size: 1.8rem;
    color: #003366;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
}

.company-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #003366;
}

.company-details p {
    margin-bottom: 10px;
}

.map-container {
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #003366;
}

.required {
    color: #ff0000;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.2);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* サービス */
.services {
    padding: 100px 0;
    background-color: white;
}

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

.service-card {
    background: white;
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

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

.service-icon img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #003366;
}

.service-card p {
    color: #666;
    font-size: 1rem;
}

/* 実績 */
.achievements {
    padding: 100px 0;
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: white;
}

.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* お問い合わせCTA */
.contact-cta {
    padding: 100px 0;
    background-color: #f0f8ff;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* フッター */
.footer {
    background-color: #003366;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.footer-nav ul {
    display: flex;
    list-style: none;
}

.footer-nav ul li {
    margin-left: 20px;
}

.footer-nav ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.slide-in-left {
    animation: fadeIn 0.8s ease 0.2s forwards;
}

.slide-in-bottom {
    animation: fadeIn 0.8s ease 0.4s forwards;
}

.slide-in-right {
    animation: fadeIn 0.8s ease 0.6s forwards;
}

/* 数字カウントアップアニメーション */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .company-content {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-nav ul {
        flex-wrap: wrap;
    }
    
    .footer-nav ul li {
        margin: 0 10px 10px 0;
    }
    
    .stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        flex-direction: column;
    }
    
    .service-item:nth-child(even) {
        flex-direction: column;
    }
    
    .history ul li {
        flex-direction: column;
        gap: 10px;
    }
    
    .history-year {
        min-width: auto;
    }
}