/*======================================
  Home
======================================*/

/*--------------------------------------
 Hero
--------------------------------------*/

.hero{

    display:flex;

    align-items:center;

    position:relative;

    overflow:hidden;

    min-height:var(--hero-height);

    color:var(--surface);

    background:
        var(--hero-overlay),
        url("../images/hero1.webp") center / cover no-repeat;

}

.hero::before{

    content:"";

    position:absolute;

    top:-120px;

    right:-120px;

    width:420px;

    height:420px;

    border-radius:50%;

    background:rgba(255,255,255,.08);

}

.hero::after{

    content:"";

    position:absolute;

    bottom:-150px;

    left:-150px;

    width:500px;

    height:500px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

}

.hero .container{

    position:relative;

    z-index:1;

}

.hero-content{

    max-width:700px;

}

.hero-title{

    margin-bottom:var(--space-md);

    color:var(--surface);

    font-size:4rem;

    line-height:1.2;

}

.hero-description{

    margin-bottom:var(--space-lg);

    color:rgba(255,255,255,.9);

    font-size:1.3rem;

}

.hero-actions{

    display:flex;

    flex-wrap:wrap;

    gap:var(--space-sm);

}

/*--------------------------------------
 Services
--------------------------------------*/

.services{

    padding:var(--section-padding);

}

.service-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:var(--space-lg);

}

.service-card{

    height:100%;

}

.service-card h3{

    margin-bottom:var(--space-sm);

}

.service-card p{

    color:var(--text-light);

}

/*--------------------------------------
 News
--------------------------------------*/

.news{

    padding:var(--section-padding);

}

.news-list{

    max-width:900px;

    margin:0 auto;

}

.news-item{

    display:grid;

    grid-template-columns:160px 1fr;

    gap:var(--space-md);

    align-items:start;

    padding:var(--space-lg) 0;

    border-bottom:1px solid var(--border);

    transition:var(--transition);

}

.news-item:hover{

    background:var(--background);

}

.news-date{

    font-weight:700;

    color:var(--text-light);

}

.news-content h3{

    margin-bottom:var(--space-xs);

}

.news-content p{

    margin:0;

    color:var(--text-light);

}

.news-more{

    margin-top:var(--space-xl);

    text-align:center;

}

/*--------------------------------------
 CTA
--------------------------------------*/

.cta{

    padding:var(--section-padding);

    background:var(--primary);

    color:var(--surface);

    text-align:center;

}

.cta-title{

    margin-bottom:var(--space-sm);

    color:inherit;

}

.cta-description{

    margin-bottom:var(--space-lg);

    color:inherit;

}

/*--------------------------------------
 Responsive
--------------------------------------*/

@media (max-width:992px){

    .hero{

        min-height:var(--hero-height-tablet);

    }

    .hero-title{

        font-size:3rem;

    }

    .service-grid{

        grid-template-columns:1fr;

    }

}

@media (max-width:768px){

    .hero{

        text-align:center;

    }

    .hero-actions{

        justify-content:center;

    }

    .news-item{

        grid-template-columns:1fr;

        gap:var(--space-sm);

    }

}

@media (max-width:576px){

    .hero{

        min-height:var(--hero-height-mobile);

        padding:var(--space-2xl) 0;

    }

    .hero-title{

        font-size:2.2rem;

    }

    .hero-description{

        font-size:var(--font-size-base);

    }

}


/* ==============================
   イベント紹介
============================== */

.services .cards {
    margin-bottom: 30px;
}

.services .card {
    padding: 30px;
}

.services .card h3 {
    margin: 0 0 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #8b1e24;

    font-size: 22px;
    line-height: 1.5;
}


/* イベント情報 */
.event-info {
    width: 100%;
}


/* 1行 */
.event-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;

    padding: 15px 0;

    border-bottom: 1px solid #e5e5e5;
}

.event-row:last-child {
    border-bottom: none;
}


/* 日時・場所・内容・主催 */
.event-label {
    color: #8b1e24;
    font-weight: bold;
    font-size: 15px;
}


/* 本文 */
.event-text {
    color: #333;

    font-size: 15px;
    line-height: 1.8;
}

.event-text strong {
    font-weight: 600;
}


/* ==============================
   スマートフォン
============================== */

@media screen and (max-width: 767px) {

    .services .card {
        padding: 20px;
    }

    .services .card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .event-row {
        display: block;
        padding: 13px 0;
    }

    .event-label {
        display: block;
        margin-bottom: 5px;
        font-size: 14px;
    }

    .event-text {
        display: block;
        font-size: 14px;
        line-height: 1.8;
    }
}


/* ==============================
   Pharmaco 商品紹介
============================== */

.services {
    padding: 80px 0;
}

.services .container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section-title {
    margin: 0 0 50px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
}


/* 商品カード */
.product-card {
    margin-bottom: 60px;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card:last-child {
    margin-bottom: 0;
}


/* 商品名 */
.product-title {
    margin: 0 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #333;
    font-size: 28px;
    line-height: 1.4;
}


/* 左：画像 / 右：説明 */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%);
    gap: 40px;
    align-items: start;
}


/* 画像 */
.product-images {
    display: grid;
    gap: 20px;
}

.product-images img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}


/* 説明 */
.product-content {
    min-width: 0;
}

.product-content h4 {
    margin: 0 0 12px;
    font-size: 21px;
    line-height: 1.5;
}

.product-content h4:not(:first-child) {
    margin-top: 30px;
}

.product-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}

.product-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.product-list li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 1.2em;
    font-size: 15px;
    line-height: 1.8;
}

.product-list li::before {
    content: "";
    position: absolute;
    top: 0.75em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #333;
}


/* ==============================
   タブレット
============================== */

@media (max-width: 900px) {

    .services {
        padding: 60px 0;
    }

    .product-card {
        padding: 30px;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-images {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==============================
   スマートフォン
============================== */

@media (max-width: 600px) {

    .services {
        padding: 40px 0;
    }

    .services .container {
        width: min(100% - 24px, 1180px);
    }

    .section-title {
        margin-bottom: 30px;
        font-size: 28px;
    }

    .product-card {
        margin-bottom: 30px;
        padding: 20px;
        border-radius: 8px;
    }

    .product-title {
        margin-bottom: 22px;
        font-size: 23px;
    }

    .product-images {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .product-content h4 {
        font-size: 19px;
    }

    .product-content p,
    .product-list li {
        font-size: 14px;
    }
}