/* 全体設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.8;
    color: #333;
    background-color: #f0f7f9;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

h1,
h2,
h3 {
    color: #444;
}

h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

/* ヘッダー */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e0eef2;
}

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

/* ロゴ周辺の調整 */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: #a7d9f7;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.7;
}

/* ヒーローセクション */
.hero-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f0f7f9 100%);
}

.hero-section h1 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 700;
}

/* 事業内容 */
.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.service-item {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(167, 217, 247, 0.1);
}

.service-item h3 {
    color: #8cc6e7;
    margin-top: 0;
}

/* 会社概要テーブル */
.company-table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

.company-table th,
.company-table td {
    padding: 25px;
    border-bottom: 1px solid #f0f7f9;
}

.company-table th {
    width: 30%;
    background-color: #fafdfe;
    text-align: left;
    color: #888;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fcfcfc;
}

.contact-form input[aria-invalid="true"],
.contact-form textarea[aria-invalid="true"] {
    border-color: #e74c3c;
    background: #fef5f5;
}

.contact-form textarea {
    height: 150px;
}

.contact-button {
    width: 100%;
    background-color: #a7d9f7;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-button:hover {
    background-color: #8cc6e8;
}

/* フッター */
.footer {
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: #999;
}

.footer-link {
    color: #8cc6e7;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

/* --- ナビゲーション全体の共通設定 (PC・スマホ共通) --- */
.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: color 0.3s;
    display: block;
}

.nav a:hover {
    color: #a7d9f7;
}

/* --- スマホ表示（画面幅768px以下） --- */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

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

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .service-item {
        padding: 25px;
    }

    /* 会社概要テーブルをスマホでブロック表示 */
    .company-table,
    .company-table tr,
    .company-table th,
    .company-table td {
        display: block;
    }

    .company-table tr {
        padding: 15px 0;
        border-bottom: 1px solid #e0eef2;
    }

    .company-table tr:last-child {
        border-bottom: none;
    }

    .company-table th {
        width: 100%;
        padding: 0 0 8px 0;
        background: none;
        font-size: 12px;
        color: #888;
    }

    .company-table td {
        width: 100%;
        padding: 0;
        border: none;
    }

    /* ナビは横並びのまま（縦書きをやめて可読性向上） */
    .nav ul {
        gap: 16px;
    }

    .nav a {
        font-size: 13px;
    }
}

/* --- プライバシーポリシーページ --- */
.privacy-page .container {
    max-width: 700px;
}

.privacy-page .privacy-main {
    padding: 60px 0 80px;
}

.privacy-page h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.privacy-page h2 {
    font-size: 1.1rem;
    text-align: left;
    margin: 1.5rem 0 0.5rem;
}

.privacy-page .privacy-main p {
    margin: 0 0 0.75rem;
}

.privacy-page .back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #8cc6e7;
    text-decoration: none;
}

.privacy-page .back-link:hover {
    text-decoration: underline;
}