/* Reset and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; line-height: 1.5; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.btn { display: inline-block; padding: 0.5rem 1rem; background-color: #3B82F6; color: white; text-decoration: none; border-radius: 0.25rem; }
.btn:hover { background-color: #2563EB; }

/* Header styles */
header { background-color: white; box-shadow: 0 1px 3px rgba(0,0,0,0.1); position: fixed; width: 100%; z-index: 10; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.contact-info { text-align: right; font-size: 0.875rem; color: #4B5563; }
.contact-info p { margin-bottom: 0.25rem; } /* 追加：連絡先情報の行間を調整 */

/* Main content styles */
main { padding-top: 4rem; }
.hero {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 半透明の黒いオーバーレイ */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
    background-color: #3B82F6;
    border: none;
    transition: background-color 0.3s ease;
}

.hero .btn:hover {
    background-color: #2563EB;
}

.about,
.services {
    position: relative;
    z-index: 2;
    padding: 5rem 0; /* パディングを追加してセクション間のスペースを確保 */
}

.about .container,
.services .container {
    position: relative;
    z-index: 2;
}

.about h2,
.about p,
.about .logo-text,
.services h2,
.services p,
.service-card {
    color: #ffffff;
}

.about-content {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.services {
    padding: 5rem 0;
}

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

.service-card {
    background-color: rgba(29, 78, 216, 0.8);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.create-future { background-color: #F3F4F6; padding: 5rem 0; text-align: center; }
.create-future p { max-width: 36rem; margin: 0 auto 2rem; color: #4B5563; }

/* Footer styles */
footer { background-color: #1F2937; color: white; padding: 2.5rem 0; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; }
.footer-section { width: 100%; margin-bottom: 1.5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a, .footer-links button { color: #9CA3AF; text-decoration: none; background: none; border: none; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: #60A5FA; }
.footer-section p { margin-bottom: 0.25rem; } /* 追加：フッターの連絡先情報の行間を調整 */
.copyright { border-top: 1px solid #374151; margin-top: 2rem; padding-top: 2rem; text-align: center; }

/* Responsive styles */
@media (max-width: 768px) {
    /* 削除: .about, .services { background-attachment: scroll; } */
}

@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-section { width: 33.333%; }
}

/* 共通の見出しスタイル */
.about h2,
.services h2,
.create-future h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4, #45B7D1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* hero セクションの見出し調整 */
.hero h2 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* about セクションの見出し調整 */
.about h2 {
    padding-top: 20px;
    margin-bottom: 1.5rem;
}

/* services セクションの見出し調整 */
.services h2 {
    margin-bottom: 3rem;
}

/* create-future セクションの見出し調整 */
.create-future h2 {
    color: #1F2937; /* グラデーションを適用しない場合のフォールバック色 */
}

.background-wrapper {
    background-image: url('../images/top_image1.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
    position: relative;
    background-repeat: no-repeat;
    min-height: 100vh; /* 最小高さを画面の高さに設定 */
}

.background-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* 削除: .about::before, .services::before { ... } */