@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0; padding: 0; color: #333; line-height: 1.6;
    background-image: url('http://sheepnight.com/background.jpg');
    background-size: cover; background-position: center center; background-repeat: no-repeat; background-attachment: fixed;
    background-color: #f9f9f9;
}
a { text-decoration: none; color: inherit; }

/* ▼▼▼ スパム対策: 隠しフィールド非表示 ▼▼▼ */
.spam-trap { display: none !important; }

/* ヘッダー・ナビ */
.hero { width: 100%; height: 250px; position: relative; background: rgba(51, 51, 51, 0.5); }
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.hero-text { position: absolute; bottom: 20px; left: 20px; color: white; font-size: 2.5em; font-weight: bold; text-shadow: 0 2px 5px rgba(0,0,0,0.7); }
.nav { background: rgba(255, 255, 255, 0.95); box-shadow: 0 2px 5px rgba(0,0,0,0.1); display: flex; justify-content: center; gap: 20px; padding: 15px; position: sticky; top: 0; z-index: 100; }
.nav a { padding: 10px 20px; font-weight: bold; color: #555; border-radius: 4px; transition: 0.3s; }
.nav a:hover, .nav a.active { background: #f0f0f0; color: #007bff; border-bottom: 2px solid #007bff; }

/* コンテナ */
.container { max-width: 900px; margin: 40px auto; padding: 30px; background-color: rgba(255, 255, 255, 0.92); border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
h2 { border-left: 5px solid #007bff; padding-left: 15px; margin-bottom: 20px; font-size: 1.5em; }
.intro-box, .service-section, .admin-panel { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); margin-bottom: 30px; }

/* カードデザイン */
.project-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; align-items: center; padding: 15px 10px; text-align: center; cursor: pointer; height: 100%; box-sizing: border-box; }
.card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.card-icon { width: 60px; height: 60px; margin-bottom: 10px; border-radius: 12px; overflow: hidden; background: #f0f0f0; flex-shrink: 0; }
.card-icon img { width: 100%; height: 100%; object-fit: cover; }
.card-content { width: 100%; }
.card-title { font-size: 0.95em; font-weight: bold; color: #333; margin-bottom: 5px; line-height: 1.3; }
.card-desc { font-size: 0.8em; color: #666; line-height: 1.4; word-break: break-all; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* その他 */
.price-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.price-table th, .price-table td { border-bottom: 1px solid #eee; padding: 12px; text-align: left; }
.price-table th { background: #f9f9f9; width: 60%; }
.price-table td { font-weight: bold; color: #d63384; }
.form-group { margin-bottom: 15px; }
label { display: block; margin-bottom: 5px; font-weight: bold; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; font-size: 1em; }
button.btn-submit { background: #007bff; color: white; border: none; padding: 15px 30px; border-radius: 5px; font-size: 1.1em; cursor: pointer; width: 100%; }
button.btn-submit:hover { background: #0056b3; }
.admin-tab { display: flex; gap: 10px; margin-bottom: 15px; flex-wrap: wrap; }
.admin-tab button { padding: 10px 15px; cursor: pointer; }
table.admin-table { width: 100%; border-collapse: collapse; background: white; font-size: 0.9em; }
table.admin-table th, table.admin-table td { border: 1px solid #999; padding: 5px; }
@media (max-width: 600px) { .hero { height: 200px; } .hero-text { font-size: 2em; } .nav a { padding: 10px 10px; font-size: 0.9em; } .container { margin: 10px auto; padding: 15px; } }