:root {
    --primary-color: #00a4d4; /* イメージカラー */
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #ffffff;
    --section-bg-color: #f8f9fa;
    --footer-bg-color: #1a1a1a;
    --white-color: #ffffff;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --header-height: 60px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%; /* HTMLの高さを100%に */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    height: 100%; /* Bodyの高さを100%に */
    overflow-x: hidden; /* 横スクロールを防止 */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

.container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- Header --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-title img {
    height: 30px;
    width: auto;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

/* --- Main Content --- */
.main-content {
    padding-top: var(--header-height);
}

/* --- Content Section --- */
.content-section {
    width: 100%;
    min-height: 100vh; /* ウィンドウの高さに合わせる */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
}

.content-section:nth-child(odd) {
    background-color: var(--section-bg-color);
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-content .section-title {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-content .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

/* --- Hero Section (#hero) --- */
#hero {
    background-image: url('img/First_view.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    min-height: 100vh;
}

#hero .section-content {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 40px;
    border-radius: 10px;
}

#hero h1 {
    font-size: 3rem;
}


/* --- About Section --- */
#about {
    background-image: linear-gradient(rgba(0, 164, 212, 0.7), rgba(0, 164, 212, 0.7)), url('img/push_bg.png'); /* イメージカラーと画像を重ねる */
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

#about .section-title::after {
    background-color: var(--white-color);
}

/* --- Service Section --- */
#service {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/background.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

#service .section-title::after {
    background-color: var(--white-color);
}


/* --- Flow Section --- */
.flow-container {
    display: grid;
    grid-template-columns: 1fr; /* 常に1列表示 */
    gap: 20px; /* 縦方向の間隔を調整 */
    margin-top: 4rem;
    text-align: left;
}

.flow-item {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.flow-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.flow-step {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.flow-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#flow {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('img/flow1_bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

#flow .section-title::after {
    background-color: var(--white-color);
}

#flow .flow-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-top-color: var(--primary-color);
    color: var(--white-color);
}

.flow-item-content {
    text-align: center;
}

#flow .flow-title, #flow .flow-description {
    color: var(--white-color);
}

#flow .flow-step {
    color: var(--primary-color);
}


/* --- Blog Section --- */
.blog-posts-container {
    display: grid;
    grid-template-columns: 1fr; /* 常に1列表示 */
    gap: 20px; /* 縦方向の間隔を調整 */
    margin-top: 4rem;
    text-align: left;
}

.blog-post-item {
    background-color: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-post-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.blog-post-item a {
    display: block;
    padding: 30px;
    color: inherit;
}
.blog-post-item a:hover {
    color: var(--primary-color);
}


.blog-post-title {
    font-size: 1.2rem;
}

.view-more-button {
    margin-top: 3rem;
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Profile Section --- */
#profile dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    text-align: left;
    max-width: 600px;
    margin: 4rem auto 0;
}

#profile dt {
    font-weight: 700;
    color: var(--secondary-color);
}

#profile dd {
    margin-left: 0;
}

/* --- Map Section --- */
#map {
    padding: 0;
    min-height: auto; /* マップは高さを固定 */
}

/* --- Contact Section --- */


/* --- Footer --- */
.footer {
    background-color: var(--footer-bg-color);
    color: #aaa;
    padding: 30px 0;
    text-align: center;
}

.footer a {
    color: #aaa !important;
}

/* --- Scroll Top Button --- */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 100;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* --- Responsive --- */
@media (max-width: 1100px) {
    .nav ul {
        gap: 20px;
    }
    .nav a {
        font-size: 0.85rem;
    }
}

@media (max-width: 1024px) {
    h1 { font-size: 2rem; }
    #hero h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.3rem; }

    .header {
        background-color: var(--bg-color);
        backdrop-filter: none; /* containig block化を防ぐためにモバイルでは無効化 */
        -webkit-backdrop-filter: none; /* Safari対応 */
    }
    
    .nav {
        display: none;
        position: fixed; /* 画面全体を覆うように固定 */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999; /* コンテンツの上に表示 */
        opacity: 0; /* 最初は非表示 */
        visibility: hidden;
        transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.5s;
    }

    .nav.is-open {
        display: flex;
        opacity: 1; /* 表示 */
        visibility: visible;
        background-color: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        height: 100vh;
        width: 100vw;
    }

    /* ハンバーガーメニューが開いているときに背景のスクロールを止める */
    body.nav-open {
        overflow: hidden;
    }

    .nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        height: 100%; /* メニューリストの高さを親要素いっぱいに */
        width: 100%;  /* メニューリストの幅を親要素いっぱいに */
        justify-content: center; /* 縦方向中央揃え */
        align-items: center; /* 横方向中央揃え */
    }

    .nav a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
        text-shadow: none;
        letter-spacing: 0.1em;
        padding: 5px 0;
        transition: transform 0.3s ease, letter-spacing 0.3s ease;
    }

    .nav a:active {
        transform: scale(0.98);
    }

    .nav a::after {
        background-color: var(--white-color);
        height: 3px;
        bottom: -5px;
    }

    .hamburger-menu {
        display: block;
        width: 30px;
        height: 22px;
        position: relative;
    }

    .hamburger-menu span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: var(--secondary-color);
        position: absolute;
        left: 0;
        transition: all 0.3s ease, background-color 0.3s ease;
    }

    .hamburger-menu span:nth-child(1) { top: 0; }
    .hamburger-menu span:nth-child(2) { top: 9px; }
    .hamburger-menu span:nth-child(3) { bottom: 0; }

    .hamburger-menu.is-open span {
        background-color: var(--primary-color);
        height: 3px;
    }

    .hamburger-menu.is-open span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--primary-color);
    }
    .hamburger-menu.is-open span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-open span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--primary-color);
    }

    .content-section {
        min-height: auto;
        padding: 80px 0;
    }
}

/* --- Fade-in Animation on Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.is-visible {

    opacity: 1;

    transform: translateY(0);

}



/* --- Contact Form Page --- */

.contact-form {

    display: grid;

    gap: 20px;

    margin-top: 3rem;

    text-align: left;

}



.contact-form label {

    font-weight: 600;

    margin-bottom: 5px;

    display: block;

}



.contact-form input[type="text"],

.contact-form input[type="email"],

.contact-form textarea {

    width: 100%;

    padding: 12px;

    border: 1px solid #ccc;

    border-radius: 5px;

    font-size: 1rem;

    font-family: var(--font-body);

    transition: border-color 0.3s, box-shadow 0.3s;

}



.contact-form input[type="text"]:focus,

.contact-form input[type="email"]:focus,

.contact-form textarea:focus {

    outline: none;

    border-color: var(--primary-color);

    box-shadow: 0 0 0 3px rgba(0, 164, 212, 0.2);

}



.contact-form textarea {

    min-height: 150px;

    resize: vertical;

}



.contact-form button[type="submit"] {

    width: 100%;

    padding: 15px;

    background-color: var(--primary-color);

    color: var(--white-color);

    border: none;

    border-radius: 5px;

    font-size: 1.1rem;

    font-weight: 700;

    cursor: pointer;

    transition: background-color 0.3s;

}



.contact-form button[type="submit"]:hover {

    background-color: var(--secondary-color);

}



.captcha-container {

    padding: 20px;

    background-color: #f0f0f0;

    border-radius: 5px;

    margin-top: 10px;

}



.captcha-image-container {

    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 10px;

}



.captcha-image {

    border: 1px solid #ccc;

    border-radius: 5px;

}



.reload-button {



    padding: 8px 15px;



    background-color: var(--secondary-color);



    color: var(--white-color);



    border: none;



    border-radius: 5px;



    cursor: pointer;



}







/* --- Single Blog Post Page --- */



.blog-container {



    max-width: 800px;



    margin: 40px auto;



    padding: 20px;



    background-color: var(--bg-color);



}







.blog-post-detail {



    margin-bottom: 40px;



}







.post-title {



    font-size: 2.2rem;



    margin-bottom: 15px;



    color: var(--secondary-color);



    line-height: 1.3;



}







.post-meta {



    font-size: 0.9rem;



    color: #777;



    margin-bottom: 30px;



}







.post-actions {



    margin-bottom: 30px;



}







.edit-button {



    display: inline-block;



    padding: 8px 15px;



    background-color: var(--secondary-color);



    color: var(--white-color);



    text-decoration: none;



    border-radius: 5px;



    font-size: 0.9rem;



}



.edit-button:hover{



    color: var(--white-color);



}







.post-content {



    font-size: 1.1rem;



    line-height: 1.8;



}







.post-content p {



    margin-bottom: 20px;



}







.post-content h2 {



    font-size: 1.8rem;



    margin: 40px 0 20px;



}







.post-content h3 {



    font-size: 1.5rem;



    margin: 30px 0 15px;



}







.post-navigation {



    display: flex;



    justify-content: space-between;



    margin-bottom: 30px;



    border-top: 1px solid #eee;



    border-bottom: 1px solid #eee;



    padding: 20px 0;



}







.back-to-list {



    text-align: center;



    margin-top: 40px;



}







#contact .button {







    margin-top: 30px; /* Adjust as needed */







}















/* --- Blog List Page --- */







.post-list {







    list-style: none;







    margin-top: 3rem;







    display: grid;







    gap: 20px;







}















.post-list-item {







    background-color: var(--section-bg-color);







    border-radius: 8px;







    box-shadow: 0 4px 15px rgba(0,0,0,0.05);







    transition: transform 0.3s, box-shadow 0.3s;







}















.post-list-item:hover {







    transform: translateY(-5px);







    box-shadow: 0 8px 25px rgba(0,0,0,0.1);







}















.post-list-item a {







    display: block;







    padding: 30px;







    color: inherit;







    text-decoration: none;







}















.post-list-item a:hover {







    color: var(--primary-color);







}















.post-list-item .post-title {







    font-size: 1.2rem;







    margin: 0;







}










