/* 基本スタイル */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
:root{
    --color-main: #2c4685;
    --color-sub: #f6f6f6;
    --header-h: 60px;
}
html,body{
    width: 100%;
    position: relative;
  }
  html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}
body {
    font-family: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.5;
    word-wrap: break-word;
    font-size: 1.5rem;
    overflow-x: hidden;
    box-sizing: border-box;
}

h1, h2, h3, h4, p {
    margin: 0;
    padding: 0;
}
img{
    width: auto;
    max-width: 100%;
    height: auto;
  }
ul {
    -webkit-padding-start: 0px;
    -moz-padding-start: 0px;
    padding-start: 0px;
    padding: 0px;
    margin: 0px;
    list-style-type: none;
}
a {
    text-decoration: none;
    transition: 0.2s;
}
a:hover {
    opacity: 0.7;
}

.flex {
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
}


/* ヘッダー */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-logo a {
    font-size: 0;
    line-height: 1;
}
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 40px;
    height: clamp(15px, 3.13vw, 40px);
    margin-right: 10px;
}
@media screen and (max-width: 750px) {
    .header-logo img {
        height: 35px;
    }
}

/* ヒーローセクション */
.hero {
    width: 100%;
    min-height: 500px;
    background-image: url('/img/fv.png');
    background-image: linear-gradient(rgba(44, 70, 133, 0.5) 0%, rgba(44, 70, 133, 0.2) 100%), url("/img/fv.png");
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}
.hero-text {
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* 各セクションの共通スタイル */
.inner{
    max-width: 1040px;
    padding: 0 20px;
    margin: 0 auto;
}
.section-area{
    padding: calc(var(--header-h) + 50px) 0 50px;
    margin: calc(-1 * var(--header-h)) 0 50px;
}
.bg-sub{
    background-color: var(--color-sub);
}
.section-title{
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 2.2rem;
}
@media screen and (max-width: 750px) {
    .hero {
        background-image: linear-gradient(rgba(44, 70, 133, 0.5) 0%, rgba(44, 70, 133, 0.2) 100%), url("/img/sp_fv.png");
        background-size: cover;
        background-position: center;
        min-height: 420px;
    }
    .section-area{
        padding: calc(var(--header-h) + 30px) 0 30px;
        margin: calc(-1 * var(--header-h)) 0 30px;
    }
}

/* 薬局情報セクション */
.info-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-align: center;
}
.info-section .fax-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 10px 0 20px;
}
.info-box {
    margin: 20px auto 0;
    text-align: center;
    line-height: 1.8;
    font-size: 1.4rem;
}
.top-tel-area {
    margin: 20px auto;
    text-align: center;
}
.top-tel-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.top-tel-number a {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--color-main);
}
.top-yoyaku-btn-area {
    text-align: center;
}
.top-yoyaku-btn {
    display: block;
    background-color: var(--color-main);
    color: #FFF;
    padding: 17px 15px;
    border-radius: 50px;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    max-width: 200px;
    margin: 0 auto;
}
.top-yoyaku-btn-text {
    font-size: 1.2rem;
    margin-top: 10px;
}
@media screen and (max-width: 750px) {
    .info-box {
        text-align: left;
    }
}


/* お知らせセクション */
.announcement-section {

}
.announcement-wrapper {
    flex-direction: column;
}
.announcement-box {
    width: 100%;
}
.announcement-box-inner{
    max-width: 800px;
    margin: 0 auto;
}
.announcement-content p {
    margin-bottom: 10px;
    line-height: 1.7;
}
.news-list-item>a {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 20px 0;
    color:#333;
    font-size: 18px;
    border-bottom: 1px solid #555555;
    text-decoration: none;
}
.news-list-item:first-child>a {
    border-top: 1px solid #555555;
}
.news-list-date {
    display: block;
}
div#info-news{
    padding: calc(var(--header-h) + 0px) 0;
    margin: calc(-1 * var(--header-h)) auto 0;
}
div#info-pharmacy{
    padding: calc(var(--header-h) + 0px) 0;
    margin: calc(-1 * var(--header-h)) auto 0;
}
@media screen and (max-width: 750px) {
    .announcement-wrapper{
        flex-direction: column;
    }
    .announcement-box{
        width: 100%;
    }
    .news-list-item>a {
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
        font-size: 1.4rem;
        padding: 10px 0;
    }

}

/* 特徴セクション */
.features-section {

}
.features-wrapper{
    display: flex;
    justify-content: space-around;
    gap: 30px;
}
.feature-item {
    flex: 1;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.feature-image{
    aspect-ratio: 325 / 217;
    overflow: hidden;
}
.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}
.feature-text {
    padding: 20px;
    text-align: left;
}
.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.feature-text h4 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 15px;
}
.feature-text-link {
    margin: 12px 0 0;
}
.feature-text-link span {
    padding: 0 0 8px;
    border-bottom: 2px solid var(--color-main);
    color: var(--color-main);
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}
@media screen and (max-width: 750px) {
    .features-wrapper{
        flex-direction: column;
    }
    .feature-item{
        width: 100%;
    }
}

/* 代表挨拶セクション */
.message-section {
    text-align: center;
}
.message-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}
.message-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}
.message-content p:last-child {
    margin-bottom: 0;
}
.message-name {
    font-size: 1.7rem;
    font-weight: bold;
    margin-top: 20px;
}
.message-name span {
    padding-right: 20px;
}
.message-section .bg-sub {
    padding: 50px 0;
}
@media screen and (max-width: 750px) {
    .message-content {
        max-width: 100%;
    }
    .message-content p {
        text-align: left;
    }
}


/* 会社概要・採用情報 */
.company-info, .recruit-box {
    margin: 20px auto;
    text-align: left;
    max-width: 800px;
    background: #fff;
    padding: 20px;
    border-left: 5px solid var(--color-main);
}
.recruit-box h3 {
    margin-bottom: 15px;
}
.company-info p, .recruit-box p {
    margin-bottom: 8px;
}
.company-info span {
    padding-left: 25px;
}
.table-wrap {
    width: 100%;
    border-collapse: collapse;
    max-width: 800px;
    margin: 0 auto 20px;
}
.table-wrap tr {
    border-bottom: 1px solid #555555;
}
.topbordernone .table-wrap tr:nth-child(1) {
    border-top: none;
}
.table-wrap th {
    width: 148px;
    text-align: left;
}
.table-wrap th, .table-wrap td {
    padding: 10px 0;
}
@media screen and (max-width: 750px) {
    .table-wrap th, .table-wrap td {
        display: block;
        width: 100%;
    }
    .table-wrap th {
        width: 100%;
        padding-bottom: 0;
    }
    .company-info span{
        display: block;
        padding: 10px 0;
    }
}

/* アクセスセクション */
.access-wrapper{
    gap: 30px;
}
.access-section{
    margin-bottom: 0;
}
.map-container {
    margin-bottom: 20px;
    width: calc((100% - 30px) / 2);
    position: relative;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}
.access-info {
    line-height: 1.8;
    width: calc((100% - 30px) / 2);
}
.access-text h3 {
    margin: 10px 0 5px;
    font-size: 1.5rem;
    font-weight: bold;
}
.access-text-link {
    margin: 15px 0;
}
.access-text-link span{
    padding: 5px 0 5px 10px;
    border-left: 2px solid var(--color-main);
    color: var(--color-main);
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 10px;
    display: inline-block;
}
@media screen and (max-width: 750px) {
    .access-wrapper{
        flex-direction: column;
        gap: 10px;
    }
    .map-container {
        width: 100%;
        height: 300px;
    }
    .access-info {
        width: 100%;
    }
}

/* フッター */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* ナビゲーションメニュー（PC） */
.nav-menu{
    display: flex;
    align-items: center;
}
.nav-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu li {
    margin-left: 20px;
    margin-left: clamp(9px, 1.56vw, 20px);
}
.nav-menu a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
    font-size: clamp(1.2rem, 1.09vw, 1.4rem);
}
.hamburger-menu {
    display: none; /* PCでは非表示 */
}
.yoyaku-btn {
    margin-left: 20px;
}
.yoyaku-btn a {
    display: block;
    background-color: var(--color-main);
    color: #FFF;
    padding: 7px 15px;
    padding: 7px clamp(5px, 1.17vw, 15px);
    border-radius: 50px;
    font-size: 1.4rem;
    font-size: clamp(1.2rem, 1.09vw, 1.4rem);
    font-weight: bold;
}
/* レスポンシブデザイン (スマホ分岐: 750px) */
@media screen and (max-width: 750px) {
    .header {
        padding: 10px 15px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
    .hero-text p {
        font-size: 1.4rem;
    }

    
    /* ハンバーガーメニュー */
    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 101;
    }
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    /* ハンバーガーメニューが開いた時のスタイル */
    .hamburger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* ナビゲーションメニュー（スマホ） */
    .nav-menu {
        display: none;
        position: absolute;
        top: 56px; /* ヘッダーの高さに合わせる */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.95);
    }
    .nav-menu.active {
        display: block;
    }
    .nav-menu ul {
        flex-direction: column;
    }
    .nav-menu li {
        margin: 0;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    .nav-menu a {
        display: block;
        padding: 15px;
        font-size: 1.4rem;
    }

    /* セクションのレイアウト調整 */
    .features-section {
        flex-direction: column;
    }
    .yoyaku-btn {
        margin: 25px auto;
    }
    .yoyaku-btn a {
        max-width: 80%;
        margin: 0 auto;
        text-align: center;
        font-size: 1.5rem;
    }
}

@media screen and (min-width: 751px) {
    .sp {
      display: none !important;
    }
    a[href*="tel:"] {
      pointer-events: none;
      cursor: default;
      text-decoration: none;
    }
  }
  @media screen and (max-width: 750px) {
    .pc {
      display: none !important;
    }
  }