/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ベースのスタイル */
body {
    font-family: "NotoSansJP";
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    line-height: 2.0;
}

/* セクションのスタイル */
section {
    margin-bottom: 40px;
    padding: 20px;
}

section h1,
section h2,
section h3 {
    margin-bottom: 20px;
    color: #333;
    font-weight: bold;
}

section h1 {
    font-size: 2rem;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

section h2 {
    font-size: 1.75rem;
}

section h3 {
    font-size: 2rem;
}

/* 表のスタイリング */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th,
table td {
    padding: 10px 15px;
    text-align: left;
    border: 1px solid #ddd;
}

table th {
    background-color: #333;
    color: #fff;
}

table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 差別化点の強調 */
article {
    margin-bottom: 20px;
}

article p {
    margin-bottom: 10px;
}

article p strong {
    color: #e74c3c;
    font-weight: bold;
}

/* お問い合わせセクション */
#contact {
    background-color: #333;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
}

#contact h2 {
    color: #ffd700;
}

#contact h3 {
    font-size: 2rem;
    margin: 10px 0;
}

#contact p {
    margin: 5px 0;
}

/* フッター */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    main {
        margin: 10px;
        padding: 15px;
        border-radius: 12px;
    }

    .introduction {
        text-align: center;
        padding: 30px 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 8px;
        margin-bottom: 30px;
    }

    section h1 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2c3e50;
        border-bottom: none;
        position: relative;
        padding-bottom: 15px;
        margin-bottom: 25px;
    }

    section h1::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #3498db, #2ecc71);
        border-radius: 3px;
    }

    section h3 {
        font-size: 1.3rem;
        color: #34495e;
        padding: 10px 0;
        margin-bottom: 15px;
        border-left: 4px solid #3498db;
        padding-left: 15px;
        background: #f8f9fa;
        border-radius: 0 4px 4px 0;
    }

    article {
        background: #ffffff;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        margin-bottom: 25px;
        transition: transform 0.3s ease;
    }

    article:hover {
        transform: translateY(-2px);
    }

    article p {
        font-size: 0.95rem;
        line-height: 1.7;
        color: #555;
        margin-bottom: 15px;
    }

    article p strong {
        color: #e74c3c;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 5px;
        font-size: 1rem;
    }

    .back-to-services {
        margin: 15px auto;
        text-align: center;
    }

    .back-to-services a {
        display: inline-block;
        padding: 12px 24px;
        background: #f8f9fa;
        color: #2c3e50;
        border: none;
        border-radius: 25px;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .back-to-services a:hover {
        background: #2c3e50;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    footer {
        margin-top: 40px;
        padding: 20px 0;
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }

    footer p {
        font-size: 0.9rem;
        opacity: 0.9;
    }
}

/* 新しいスタイルの追加 */

/* ボタンスタイル */
button {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #c0392b;
}

/* リンクのスタイル */
a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* フォームのスタイル */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

input[type="submit"] {
    background-color: #3498db;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

/* レスポンシブデザインの改善 */
@media (max-width: 768px) {
    section {
        padding:  10% 10px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

.back-to-services {
    text-align: right;
    margin: 20px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.back-to-services a {
    display: inline-block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    border: 1px solid #333;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.back-to-services a:hover {
    background-color: #333;
    color: #fff;
}
