/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
:root {
    --primary-blue: #1a237e;
    --accent-gold: #c5a572;
    --dark: #1a1a1a;
    --light: #ffffff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--dark);
}

/* ヘッダー */
header {
    background-color: var(--dark);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-gold);
}

/* メインビジュアル */
#hero {
    height: 100vh;
    background: linear-gradient(rgba(26, 35, 126, 0.7), rgba(26, 26, 26, 0.7)), url('image/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding: 0 2rem;
}

#hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

#hero p {
    font-size: 1.2rem;
    color: var(--accent-gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* セクション共通 */
section {
    padding: 5rem 10%;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--dark);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* 偶数セクションの背景 */
section:nth-child(even) {
    background-color: #f8f9fa;
}

/* フッター */
footer {
    background-color: var(--dark);
    color: var(--light);
    text-align: center;
    padding: 2rem;
}

/* サービスセクション */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* 会社概要セクション */
.about-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.about-text {
    text-align: center;
}

.about-lead {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-description {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--dark);
    margin-bottom: 2rem;
}

/* お問い合わせフォーム */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-lead {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--dark);
}

.required {
    color: #e53935;
    margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(26, 35, 126, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
}

.submit-btn {
    background: var(--primary-blue);
    color: var(--light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    background-color: #151b54;
    transform: translateY(-2px);
}

/* レスポンシブ対応の更新 */
@media (max-width: 768px) {
    .contact-content {
        padding: 1.5rem;
    }
    
    .submit-btn {
        width: 100%;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* モバイルでのズームを防ぐ */
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    nav ul {
        display: none;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 3rem 5%;
    }
    
    .about-lead {
        font-size: 1.4rem;
    }
    
    .about-description {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* 実績セクション */
.works-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.work-card {
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    margin-bottom: 2rem;
}

.work-image {
    background: linear-gradient(45deg, var(--primary-blue), var(--dark));
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

.work-image i {
    font-size: 4rem;
    color: var(--light);
}

.work-content {
    padding: 2rem;
    flex: 1;
}

.work-content h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 1rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background-color: rgba(26, 35, 126, 0.1);
    color: var(--primary-blue);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.work-description {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.work-points {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.work-points li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark);
}

.work-points li i {
    color: var(--accent-gold);
}

/* レスポンシブ対応の更新 */
@media (max-width: 768px) {
    .work-card {
        flex-direction: column;
    }

    .work-image {
        min-width: auto;
        padding: 2rem;
    }

    .work-content {
        padding: 1.5rem;
    }

    .work-content h3 {
        font-size: 1.5rem;
    }

    .work-points {
        grid-template-columns: 1fr;
    }
}

/* アニメーション用キーフレーム */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* スクロールアニメーション用クラス */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* サービスカードのアニメーション */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.3s; }
.service-card:nth-child(3) { animation-delay: 0.5s; }
.service-card:nth-child(4) { animation-delay: 0.7s; }

/* 会社情報セクション */
.company-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 3rem;
}

.info-table th,
.info-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #eee;
    line-height: 1.8;
}

.info-table th {
    width: 25%;
    color: var(--dark);
    font-weight: 700;
    text-align: left;
    vertical-align: top;
}

.info-table td {
    color: #666;
}

.info-table td ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-table td ul li {
    margin-bottom: 0.5rem;
}

.company-message {
    text-align: center;
    padding: 2rem;
    background: rgba(26, 35, 126, 0.05);
    border-radius: 8px;
}

.company-message h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.company-message p {
    color: var(--dark);
    line-height: 2;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        padding-bottom: 0.5rem;
    }

    .info-table td {
        padding-top: 0.5rem;
    }

    .company-message {
        padding: 1.5rem;
    }
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.modal-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--dark);
}

.modal-close {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: #151b54;
}

/* プライバシーポリシーページ */
.privacy-policy-section {
    padding-top: 120px;
    padding-bottom: 5rem;
}

.privacy-policy-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.privacy-policy-section h1 {
    font-size: 2.5rem;
    color: var(--dark);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.privacy-policy-section h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent-gold);
}

.policy-content {
    background: var(--light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.policy-content h2 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin: 2.5rem 0 1rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--dark);
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--dark);
}

.contact-info {
    background: rgba(26, 35, 126, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.policy-date {
    text-align: right;
    margin-top: 3rem;
    color: #666;
}

/* ロゴのリンクスタイル */
.logo a {
    color: var(--light);
    text-decoration: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .privacy-policy-section {
        padding-top: 100px;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .privacy-policy-section h1 {
        font-size: 2rem;
    }
}

/* プライバシーポリシーリンク */
.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--accent-gold);
}

.checkbox-label a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.checkbox-label a:hover::after {
    transform: scaleX(1);
} 