/* 
   エンド薬局 
*/

:root {
    --color-bg: #FAF9F6;
    /* オフホワイト・明るく清潔 */
    --color-bg-light: #FDF7F4;
    /* ほんのり暖かみのある薄い背景色（清潔感） */
    --color-text: #3E3A39;
    /* 墨色・チャコールブラウン */
    --color-primary: #D94601;
    /* 指定によるキーカラー（温かみ・伝統） */
    --color-primary-light: #F56B2A;
    --color-secondary: #C4A052;
    /* 上品なゴールド（歴史・プレミアム） */
    --color-white: #FFFFFF;

    --font-heading: 'Shippori Mincho', serif;
    --font-body: 'Noto Sans JP', sans-serif;

    --transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   Base
========================================= */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.8;
    letter-spacing: 0.05em;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-primary);
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-light);
}

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

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

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

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-secondary);
}

.contents-row .section-title::after {
    left: 0;
    transform: none;
}

/* =========================================
   Header
========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

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

.logo a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.global-nav ul {
    display: flex;
    gap: 30px;
}

.global-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

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

.global-nav a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* 清潔感・明るさを保ちつつ文字を読ませるための薄い白オーバーレイ */
    filter: brightness(1.1);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    padding: 3rem 4rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: left;
    max-width: 600px;
    margin-right: auto;
    margin-left: 10%;
    border-left: 4px solid var(--color-primary);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.hero-subtitle span {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--color-text);
}

/*
インフォメーション
*/
.info-container {
    margin-top: 50px;
}

.info-item {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
    padding: 1rem 1.5rem;
}

.info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.info-item:not(:last-child) {
    margin-bottom: 20px;
}

.info-item-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.info-item-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.info-item-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}

.info-item-content {
    padding: 20px;
    font-size: 1rem;
    color: var(--color-text);
}

/* =========================================
   Two Column Layouts (About, Products)
========================================= */
.contents-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.contents-row.reverse {
    flex-direction: row-reverse;
}

.contents-text {
    flex: 1;
}

.contents-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.image-wrapper img {
    transition: transform 0.6s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

.product-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 1.5rem;
}

.product-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--color-secondary);
    border-radius: 50%;
}

/* =========================================
   Features
========================================= */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.feature-card {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.feature-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.feature-card:hover .feature-img img {
    transform: scale(1.08);
}

.feature-body {
    padding: 2rem;
}

.feature-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-body h3 span {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-secondary);
    opacity: 0.6;
}

/* =========================================
   Lineで処方箋を送る
========================================= */
.line-btn {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;

}

.line-btn a {
    background-color: #07b53b;
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--color-white);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.line-btn a:hover {
    background-color: #fff !important;
    color: #07b53b;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* =========================================
   Access
========================================= */
.access-container {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 50px;
}

.access-info {
    flex: 1;
    padding: 4rem;
}

.access-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.access-info .tel {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-primary);
    margin: 1.5rem 0;
}

.business-hours h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.access-map {
    /*flex: 1;*/
    height: 500px;
    min-height: 400px;
}

.access-info dl {
    width: 45%;
    float: left;
    margin-left: 5%;
}

.access-info dt {
    clear: left;
    font-weight: normal;
    float: left;
    width: 20%;
    line-height: 2.0;
    border-top: solid thin #ccc;
    font-size: 1.0rem;
    padding: 1rem 0;
    color: var(--color-secondary);
}

.access-info dd {
    float: left;
    line-height: 2.0;
    border-top: solid thin #ccc;
    font-size: 1.0rem;
    width: 80%;
    padding: 1rem 0;
}

/* =========================================
   Footer
========================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0;
}

.footer-logo {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* =========================================
   Animations
========================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 900px) {

    .contents-row,
    .contents-row.reverse {
        flex-direction: column;
        gap: 40px;
    }

    .feature-cards {
        grid-template-columns: repeat(1, 1fr);
    }

    /*
    .access-container {
        flex-direction: row;
    }
*/
    .access-info {
        padding: 3rem 2rem;
    }

    .hero-content {
        margin: 0 5%;
        padding: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        cursor: pointer;
        z-index: 101;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 11px;
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    .hamburger.is-active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.is-active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    .global-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .global-nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .global-nav a {
        font-size: 1.4rem;
    }

    .access-info dl {
        width: 90%;
        margin-left: 5%;
    }

    .access-info dt {
        clear: left;
        font-weight: normal;
        float: left;
        width: 20%;
        line-height: 2.0;
        border-top: solid thin #ccc;
        font-size: 1.0rem;
        padding: 1rem 0;
        color: var(--color-secondary);
    }

    .access-info dd {
        float: left;
        line-height: 2.0;
        border-top: solid thin #ccc;
        font-size: 1.0rem;
        width: 80%;
        padding: 1rem 0;
    }


}