/* =====================
   基本スタイル
   ===================== */
body {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    background-color: #f8f8f8;
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    max-width: 960px;
    margin: 0 auto;
}

/* =====================
   ヘッダー透過＋ナビ
   ===================== */
header.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.059); 
    padding: 20px 0 10px 0;
    box-sizing: border-box;
}

header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
    margin: 0 auto;
}

header .logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

header .logo img {
    height: 75px; 
    width: auto;
}

header .site-nav {
    transform: translateY(-3px);
}

header .site-nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: 400; 
    transition: color 0.3s; 
}

header .site-nav a:hover {
    text-decoration: none; 
    color: #83c5c9; 
}

/* =====================
   ヒーロー画像 (CSSアニメーションで切り替え・ズームイン)
   ===================== */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: #000; 
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    
    /* 3枚用 (17秒 x 3枚) */
    animation: imageSlide 51s infinite; 
    transform: scale(1);
}

.hero-image-slide:nth-child(1) {
    animation-delay: 0s;
}
.hero-image-slide:nth-child(2) {
    animation-delay: 17s;
}
.hero-image-slide:nth-child(3) {
    animation-delay: 34s; 
}

/* 3枚用 (全体51秒) */
@keyframes imageSlide {
    0%    { opacity: 0; transform: scale(1); }
    5.88% { opacity: 1; transform: scale(1); } 
    33.33%   { opacity: 1; transform: scale(1.08); } 
    39.21% { opacity: 0; transform: scale(1.08); } 
    100%  { opacity: 0; }
}


.hero-text {
    position: absolute;
    bottom: 40px;
    right: 40px;
    transform: none; 
    color: white;
    text-align: center; 
    text-shadow: none; 
    z-index: 100;
}

.hero-text h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 10px;
    font-weight: 300; 
    white-space: nowrap; 
}

.hero-text p {
    font-size: 18px; 
    margin: 10px 0 0 0; 
    font-weight: 300; 
    line-height: 1.6; 
}


/* =====================
   main以降の余白
   ===================== */
main {
    max-width: 960px;
    margin: 0 auto;
}


/* =====================
   セクション
   ===================== */
section {
    padding: 60px 20px;
}

main section {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
    min-height: 50vh; 
    box-sizing: border-box;
}

main section.line-animation-target {
    position: relative; 
}

main section.line-animation-target::before {
    content: '';
    position: absolute;
    top: 30px; 
    left: 50%;
    transform: translateX(-50%); 
    
    width: 0; 
    height: 2px;
    background-color: #cfcfcf;
    
    transition: width 1.5s ease-out;
}

main section.line-animation-target.is-visible::before {
    width: 80%;
}

h2 {
    font-size: 28px;
    color: #83c5c9;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 400;
    margin-top: 30px;
}

/* =====================
   サービスカード
   ===================== */
.services .card {
    background-color: white;
    padding: 20px;
    margin: 20px auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 400px;
    text-align: center;
    border-radius: 6px;
}

.services .card h3 {
    color: #458583;
    font-weight: 400; 
}

.services .card p {
    margin: 10px 0;
}

/* =====================
   ボタン
   ===================== */
.button {
    display: inline-block;
    background-color: #458583;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    margin-top: 10px;
}

.button:hover {
    background-color: #3B4F1F;
}

/* =====================
   フッター
   ===================== */
footer.site-footer {
    background-color: #f0f0f0;
    color: #333;
    text-align: center;
    padding: 40px 20px; 
    font-size: 14px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    display: block;
    margin: 0 0 20px 0; 
    height: 75px; 
    width: auto;
}

/* =====================
   レスポンシブ
   ===================== */
@media (max-width: 600px) {
    header.site-header {
        padding: 15px 20px;
    }
    header .header-inner {
        flex-direction: column;
        gap: 10px;
        padding: 0 20px;
    }
    
    header .site-nav {
        transform: none;
    }
    
    header .site-nav a {
        margin-left: 10px;
        font-size: 14px;
    }
    
    main section {
        min-height: auto;
        padding: 40px 20px; 
    }
    
    main section.line-animation-target::before {
        top: 20px; 
    }
    
    .hero-text {
        bottom: 20px;
        right: 20px;
        left: 20px; 
    }

    .hero-text h2 {
        font-size: 24px; 
        white-space: normal;
    }
    .hero-text p {
        font-size: 14px; 
        white-space: normal;
    }

    h2 {
        font-size: 22px;
    }
    
    .services .card {
        max-width: 90%;
    }
    .button {
        padding: 10px 18px;
    }
    
    .footer-logo {
        height: 50px; 
    }
}

/* ======== お問い合わせフォームの調整 ======== */

/* 他の項目に線と見出しの間の余白合わせる */
#contact {
    padding-top: 145px;
}

/* 1. 他の項目に見出しと内容の間の余白合わせる */
#contact h2 {
    margin-bottom: 18px;
}

/* 2. #contact内のpタグの基本マージンをリセット */
#contact p {
    margin-top: 0;
    margin-bottom: 0;
}

/* 3. 最初の項目(TEL)の上にスペース作成 */
#contact h2 + .contact-label {
    margin-top: 40px;
}

/* 4. 項目ラベル（TEL）とその内容（番号）の間にスペース */
#contact .contact-label + p {
    margin-top: 6px; /* 「TEL」と「050-...」の間の小さなスペース */
}

/* 5. 項目ブロック（FAX, メール...）の上にスペース */
#contact p + .contact-label {
    margin-top: 42px; /* 項目間のスペース */
}

/* ======================================================= */