:root {
    --primary-color: #1A2E63;
    --secondary-color: #F4D6D9;
    --text-color: #333;
    --background-color: #fff;
    --footer-color: #f5f5f5;
}

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

html{
    font-size: 62.5%;
}

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.service-card p, .multi-bed-cards p, .features-grid p{
    text-align: left;
}

.br_sp {
    display: none;
}

/* Header & Navigation */
header {
    background: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

#main-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

#main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

#main-nav a:hover,
#main-nav a.active {
    color: var(--primary-color);
}

#menu-toggle {
    display: none;
}

/* Main Content */
main {
    /*margin-top: 80px;*/
}

h2{
    font-size: 2.5rem;
    font-weight: bold;
}

h3{
    font-size: 2rem;
    font-weight: bold;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../img/K142.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 400px 20px;
    padding-top: 100px;
    padding-bottom: 400px;
}

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

.hero img{
    margin-bottom:1rem;
    width: 40rem;
    height: auto;
}


/*  スライダー  */
.slider-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  .slider-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;

  }

  .slider-wrapper:hover .slider-track {
    animation-play-state: paused;
  }

  .slide {
    flex-shrink: 0;
    width: 320px;
    margin: 0 10px;
  }

  .slide img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }




/* Services Section */
.services {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}

.service-card img {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

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

/* About Section */
.about {
    background: var(--footer-color);
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about h2{
    text-align: left;
}

.about h3{
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about-content {
    /*max-width: 800px;*/
    margin: 0 auto 30px;
    text-align: left;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.features-list .icon {
    font-size: 24px;
    margin-right: 10px;
    color: #4CAF50;
}

.features-list h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.features-list p {
    margin: 5px 0 0;
    color: #555;
}

.about-table {
    display: flex;
    flex-flow: column nowrap;
    font-size:1.8rem;
    margin-bottom:5rem;
}

.about-table .col{
    display: flex;
    flex-flow: row nowrap;
}

.row1{
    width: 30%;
}

.row2{
    width: 70%;
}


/*home-vcare*/
.service-item {
    margin-top:10px;
}

.service-item h3{
    color: var(--primary-color);
}


/* Footer */
/* footer {
    background: var(--footer-color);
    padding: 3rem 2rem 1rem;
} */

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {

    .br_sp {
    display: inline-block;
    }

    #main-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    #main-nav ul.show {
        display: flex;
    }

    #menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    #menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--text-color);
        margin: 5px 0;
        transition: 0.3s;
    }

    .hero img{
    width: 25rem;
    height: auto;
}

      /* スライダー */
    .slide {
      width: 220px;
      margin: 0 6px;
    }


    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2.0rem;
    }

}