:root {
    --primary-color: #005a9c;
    --secondary-color: #f4f4f4;
    --dark-color: #333;
    --light-color: #fff;
    --font-family: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--secondary-color);
}

header {
    background: var(--light-color);
    color: var(--dark-color);
    padding: 1rem 0;
    text-align: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--primary-color);
}

main {
    padding-top: 70px; /* header height */
}

#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=2832&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--light-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #003d6b;
}

section {
    padding: 4rem 20px;
    max-width: 1100px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-image {
    width: 100%;
    height: 180px; /* 画像の高さ固定 */
    object-fit: cover; /* 画像がカードに収まるように調整 */
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.3rem; /* 見出しのフォントサイズ調整 */
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card p {
    font-size: 0.95rem; /* 本文のフォントサイズ調整 */
    line-height: 1.7;
    text-align: left; /* 本文は左寄せ */
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 3.5rem; /* アイコンサイズ調整 */
}

.card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    width: 100%;
}

.card ul li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.profile-card {
    background: var(--light-color);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.profile-card p {
    margin-bottom: 1.5rem;
    text-align: left;
}

.qualifications {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-weight: 600;
}

.qualifications span i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

#contact form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.privacy-policy {
    display: flex;
    align-items: center;
}

.privacy-policy input {
    width: auto;
    margin-right: 0.5rem;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #003d6b;
}

footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 20px;
    background: var(--dark-color);
    color: var(--light-color);
}

/* Animation */
.card, .profile-card, .hero-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.visible, .profile-card.visible, .hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.link-style {
    text-decoration: underline;
    cursor: pointer;
    color: var(--primary-color);
}

.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); 
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 800px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.privacy-policy-content {
    max-height: 50vh;
    overflow-y: auto;
    margin-top: 20px;
    padding-right: 15px; /* スクロールバーのスペース */
}

.privacy-policy-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.3rem;
}

.privacy-policy-content p, 
.privacy-policy-content ol {
    margin-bottom: 1rem;
    text-align: left;
    line-height: 1.8;
}

.privacy-policy-content ol {
    padding-left: 2rem;
}