/* ===== 全体設定 ===== */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* ===== ヘッダー ===== */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    box-shadow: none;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* スクロール後 */
header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

nav {
    white-space: nowrap;
}

nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #0077cc;
    font-weight: bold;
}

/* ===== ヒーロー ===== */
.hero {
    height: 100vh;
    background: url("images/hero.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 42px;
    line-height: 1.4;
}

.hero p {
    font-size: 18px;
}

/* ===== セクション ===== */
section {
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    flex: 1;
    min-width: 250px;
    background: #f5f7fa;
    padding: 20px;
    border-radius: 10px;
}

/* ===== フォーム ===== */
form {
    max-width: 600px;
    margin: auto;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

button {
    background: #0077cc;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ===== フッター ===== */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 20px;
}