/* 全体のリセットと共通設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    color: #2c3e50;
    line-height: 1.6;
    background-color: #f4f7f9;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo {
    font-size: 24px;
    font-weight: bold;
    color: #1e3a8a;
}
.nav-links {
    display: flex;
    gap: 20px;
}
.nav-links a {
    font-weight: bold;
    color: #4b5563;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: #2563eb;
}

/* メインビジュアル */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.5), rgba(30, 58, 138, 0.5)), url('/img/headimg.jpg') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px;
}
.hero-content h1 {
    font-size: 36px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}
.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}
.btn-cta {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s, transform 0.2s;
}
.btn-cta:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* セクション共通 */
section {
    padding: 80px 0;
}
.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    color: #1e3a8a;
}
.section-title::after {
    content: '🐾';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    color: #2563eb;
}

/* 特徴セクション */
.features {
    background-color: #fff;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: transform 0.3s;
}
.card:hover {
    transform: translateY(-5px);
}
.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
}
.card h3 {
    margin-bottom: 10px;
    color: #1e3a8a;
}

/* サービス内容 */
.services {
    background-color: #f1f5f9;
}
.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.service-item {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    border-left: 4px solid #2563eb;
    text-align: center;
    font-weight: bold;
    color: #1e3a8a;
}

/* 料金目安 */
.pricing {
    background-color: #fff;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #fff;
}
.price-table th, .price-table td {
    border: 1px solid #e2e8f0;
    padding: 15px;
    text-align: left;
}
.price-table th {
    background-color: #e0f2fe;
    color: #0369a1;
    font-weight: bold;
}

/* お問い合わせ */
.contact {
    background-color: #f8fafc;
}
.contact-info {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}
.btn-phone {
    display: inline-block;
    background-color: #0ea5e9;
    color: white;
    font-size: 22px;
    padding: 15px 40px;
    border-radius: 50px;
    margin: 20px 0 40px 0;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    transition: background 0.3s, transform 0.2s;
}
.btn-phone:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

/* メールフォーム */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    color: #1e3a8a;
}
.form-control {
    width: 100%;
    padding: 11px;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8fafc;
    transition: border-color 0.3s;
}
.form-control:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
}
.btn-submit {
    display: block;
    width: 100%;
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background 0.3s;
}
.btn-submit:hover {
    background-color: #1d4ed8;
}

/* フッター */
footer {
    background-color: #0f172a;
    color: #94a3b8;
    text-align: center;
    padding: 30px 0;
    font-size: 14px;
}

/* 右下の「上へ戻る」ボタン */
#page-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 110;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
#page-top.is-show {
    opacity: 1;
    visibility: visible;
}
#page-top a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #2563eb;
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    transition: background 0.3s, transform 0.3s;
}
#page-top a:hover {
    background-color: #1d4ed8;
    transform: translateY(-3px);
}

/* ➔➔ 【ここから新規追加：モーダルウィンドウの専用装飾】 */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 35px 25px;
    border-radius: 8px;
    max-width: 550px;
    width: 90%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
.modal-content h3 {
    color: #1e3a8a;
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}
.confirm-group {
    margin-bottom: 15px;
    text-align: left;
}
.confirm-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    color: #1e3a8a;
    margin-bottom: 3px;
}
.confirm-text {
    background-color: #f8fafc;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    font-size: 15px;
    word-break: break-all;
}
.modal-btn-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}
.btn-modal-back {
    display: block;
    width: 40%;
    background-color: #94a3b8;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-modal-back:hover {
    background-color: #64748b;
}
.btn-modal-close {
    display: block;
    width: 100%;
    background-color: #1e3a8a;
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-modal-close:hover {
    background-color: #2563eb;
}
#modal-error {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    display: none;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero-content p {
        font-size: 16px;
    }
    #page-top a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}
