:root {
    --bg-paper: #e3f9ff;      /* 古文書・和紙風の生成り色 */
    --card-bg: #fcfaf5;       /* 少し明るい紙の質感 */
    --ink-black: #2554f0;     /* 墨色 */
    --ink-gray: #595349;      /* 淡墨色 */
    --vermilion: #1b7488;     /* 朱色（落款・アクセント） */
    --border-gold: #195fe0;   /* 古風な枠線色 */
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 40px 160px;
    background-color: var(--bg-paper);
    color: var(--ink-black);
    font-family: 'Ma Shan Zheng', cursive; /* 全てのフォントを Ma Shan Zheng に修正 */
    line-height: 1.9;
  }




/* スマホサイズ（画面幅767px以下）の指定 */
@media screen and (max-width: 767px) {
    body {
        padding: 0;
        /* 0px 0px と同じ意味です */
    }
}



/********** Template CSS ************/
.btn {
    font-weight: 800;
    text-transform: uppercase;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.navbar .navbar-nav .nav-link {
    font-weight: 600;
    text-transform: uppercase;
    padding: 45px 15px;
    color: var(--bs-light);
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .navbar-nav.border-end {
    border-color: rgba(255, 255, 255, .3) !important;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        padding: 10px 0px;
    }

    .navbar .navbar-nav.border-end {
        border-right: none !important;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.hero-header {
    margin-bottom: 90px;
    padding-top: 9rem;
    padding-bottom: 12rem;
    background: url(../img/bg-bottom.png) center bottom no-repeat;
    background-size: contain;
}

@media (max-width: 991.98px) {
    .hero-header {
        padding-top: 6rem;
        padding-bottom: 9rem;
    }
}

.hero-header img {
    border-radius: 10% 30% 20% 40%;
}

.page-header {
    height: 400px;
    margin-bottom: 90px;
}

@media (max-width: 991.98px) {
    .page-header {
        height: 300px;
    }
}

.service-item {
    height: 320px;
    background: var(--bs-light);
    transition: .5s;
}

.service-item:hover {
    background: var(--bs-dark);
}

.service-item h4 {
    transition: .5s;
}

.service-item:hover h4 {
    color: var(--bs-light);
}

.gallery-item .gallery-btn {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    background: rgba(34, 36, 41, .7);
    border: 1px solid transparent;
    border-radius: 15px;
    opacity: 0;
    transition: .5s;
}

.gallery-item:hover .gallery-btn {
    opacity: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 30px solid rgba(34, 36, 41, .3);
}

.gallery-item i {
    opacity: 0;
    transition: .3s;
    transition-delay: .3s;
}

.gallery-item:hover i {
    opacity: 1;
}

.pricing-item .position-absolute {
    width: calc(100% - 1.5rem);
    background: rgba(34, 36, 41, .7);
}

.pricing-item .position-absolute * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.pricing-item .position-absolute::after {
    position: absolute;
    content: "";
    width: 1.5rem;
    height: 100%;
    top: 0;
    left: 0;
    background: var(--bs-dark);
    border-radius: 15px 0 0 15px;
    transition: .5s;
}

.pricing-item:hover .position-absolute::after {
    width: 100%;
    border-radius: 15px;
}

.team-carousel .owl-nav {
    position: absolute;
    width: 60px;
    height: 180px;
    top: calc(50% - 90px);
    left: 0;
    z-index: 1;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-dark);
    background: var(--bs-primary);
    border-radius: 60px;
    font-size: 30px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    color: var(--bs-primary);
    background: var(--bs-dark);
}

.team-item .team-overlay {
    position: absolute;
    width: 0;
    height: 0;
    top: 50%;
    left: 50%;
    background: rgba(34, 36, 41, .7);
    border: 1px solid transparent;
    border-radius: 15px 15px 0 0;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-overlay {
    opacity: 1;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 30px solid rgba(34, 36, 41, .3);
}

.team-item .team-overlay .btn {
    opacity: 0;
    transition: .3s;
    transition-delay: .3s;
}

.team-item:hover .team-overlay .btn {
    opacity: 1;
}

.testimonial-carousel .owl-dots {
    margin-top: 30px;
    text-align: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    border-radius: 15px;
    background: var(--bs-secondary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    background: var(--bs-primary);
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-item .testimonial-item {
    opacity: .5;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    background: var(--bs-dark);
    opacity: 1;
}

.testimonial-carousel .owl-item.center .testimonial-item h5 {
    color: var(--bs-primary);
}

.testimonial-carousel .owl-item.center .testimonial-item::before {
    position: absolute;
    content: "";
    top: 45px;
    left: -30px;
    right: -30px;
    bottom: 45px;
    background: var(--bs-primary);
    border-radius: 15px;
    z-index: -1;
}

/* 醫療旅遊網站樣式 */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    color: #233344;
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Nunito", sans-serif;
    line-height: 1.8;
}

h1,
h2,
h3,
.navbar-brand {
    font-weight: 800;
    line-height: 1.45;
}


h6 {
  font-size: 3rem;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #06477c;
    box-shadow: 0 4px 18px rgba(9, 70, 120, 0.12);
}

.site-header .navbar {
    min-height: 76px;
}

.site-header .navbar-brand {
    color: #fff;
    font-size: 1.2rem;
    white-space: nowrap;
}

.site-header .navbar .navbar-nav .nav-link {
    padding: .7rem .75rem;
    color: rgba(255, 255, 255, .86);
    font-weight: 600;
    white-space: nowrap;
}

.site-header .navbar .navbar-nav .nav-link:hover,
.site-header .navbar .navbar-nav .nav-link:focus {
    color: #d3b477;
}

.site-header .btn,
.medical-hero .btn,
.final-cta .btn,
.section-block .btn {
    text-transform: none;
}

.btn-primary {
    border-color: #1a814f;
    background-color: #8fd075;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #7d6033;
    background-color: #337d4d;
}

.medical-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* テキストの可読性を保つため、画像の上に半透明の白オーバーレイを重ねています */
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        url("../img/pic_1.jpg") center center / cover no-repeat;
    padding: 80px 0 50px;
    width: 100%;
    height: 840px;
}

.section-background-pic {
    /* 画像の上に薄い黒のオーバーレイを重ねています */
    background:
        linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
        url("../img/pic_8.jpg") center center / cover no-repeat;
    padding: 80px 0 50px;
}




/* スマホサイズ（画面幅767px以下）の指定 */
@media screen and (max-width: 767px) {
    .medical-hero .container {
        padding: 0;
        position: absolute;
        /* 絶対配置に変更 */
        bottom: 0;
        /* 一番下に配置 */
        left: 0;
        /* 左端に合わせる */
        width: 100%;
        /* 横幅いっぱいに広げる（崩れ防止） */
        background-color: rgba(255, 255, 255, 0.8);
            /* 白背景・透明度0.8の場合 */
    }
}


/* スマホサイズ（画面幅767px以下）の指定 */
@media screen and (max-width: 767px) {
    .medical-hero .container {
        padding: 0;
        margin-top: auto;
        /* これで一番下へ配置されます */
    }
}


.hero-copy {
    max-width: 46rem;
}

.medical-hero h1 {
    margin-bottom: 1rem;
    color: #172a3a;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
}

.medical-hero .lead {
    max-width: 46rem;
    color: #34495a;
    line-height: 1.9;
}

.medical-hero img,
.section-block img {
    object-fit: cover;
}

.hero-chinese {
    margin-bottom: 1.5rem;
    color: #8d6a35;
    font-size: 1.15rem;
    font-weight: 700;
}

.eyebrow {
    margin-bottom: .65rem;
    color: #9c7840;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.section-block {
    padding: 5.5rem 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 2.75rem;
}

.section-heading h2,
.section-block h2 {
    margin-bottom: 1rem;
    color: #172a3a;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.section-heading p:last-child {
    margin-bottom: 0;
    color: #637383;
}

.content-card,
.plan-card,
.contact-panel,
.hero-copy {
    height: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: linear-gradient(to left, #cbd5e1, #f1f5f9);
    color: #475569;
    box-shadow: 0 4px 6px -1px rgba(37, 135, 177, 0.407), 0 2px 4px -2px rgba(39, 87, 200, 0.1);
}

#benefits .mt-custom-spacing > div {
    display: flex;
}

.tourism-place-card {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.tourism-place-card-hiroshima {
    background:
        linear-gradient(rgba(255, 255, 255, 0.438), rgba(255, 255, 255, 0.484)),
        url("../img/pic_3.jpg") center / cover no-repeat;
}

.tourism-place-card-kintaikyo {
    background:
        linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .6)),
        url("../img/pic_4.jpg") center / cover no-repeat;
}

.tourism-place-card-miyajima {
    background:
        linear-gradient(rgba(255, 255, 255, .4), rgba(255, 255, 255, .6)),
        url("../img/pic_5.jpg") center / cover no-repeat;
}

.content-card h3,
.content-card h2,
.plan-card h3,
.plan-card h2,
.contact-panel h2 {
    margin: .4rem 0 .8rem;
    color: #3a86c5;
    font-size: 1.25rem;
}

.content-card p,
.plan-card p,
.contact-panel p {
    margin-bottom: .7rem;
}

.card-index {
    color: #23b5e2;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.feature-icon {
    display: flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: #62cbd4;
    color: #e4faff;
    font-size: 1.5rem;
}

.plan-card {
    border-top: 1px solid #cbd5e1;
}

.plan-label {
    display: inline-block;
    margin-bottom: .65rem;
    color: #62cbd4;
    font-size: 1.44rem;
    font-weight: 700;
}

.plan-card ul {
    padding-left: 1.2rem;
    margin: 1.25rem 0;
}

.plan-card li {
    margin-bottom: .5rem;
}

.text-link {
    color: #765a31;
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    color: #4c3920;
    text-decoration: underline;
}

.steps-list {
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 1.25rem;
    margin-bottom: .75rem;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: linear-gradient(to left, #cbd5e1, #f1f5f9);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, .1), 0 2px 4px -2px rgba(15, 23, 42, .1);
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    display: flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #172a3a;
    color: #fff;
    font-weight: 800;
}

.step-item h3 {
    margin-bottom: .35rem;
    color: #172a3a;
    font-size: 1.2rem;
}

.step-item p {
    margin-bottom: 0;
}

.check-list {
    padding-left: 0;
    list-style: none;
}

.check-list li {
    margin: .8rem 0;
}

.check-list li::before {
    margin-right: .65rem;
    color: #9c7840;
    content: "\f00c";
    font-family: "Font Awesome 7 Free";
    font-weight: 900;
}

.faq-list {
    max-width: 900px;
    margin: auto;
}

.faq-list .accordion-item {
    margin-bottom: .75rem;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: .5rem;
    background: linear-gradient(to left, #cbd5e1, #f1f5f9);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, .1), 0 2px 4px -2px rgba(15, 23, 42, .1);
}

.faq-list .accordion-button {
    background: transparent;
    color: #475569;
    font-weight: 700;
}

.faq-list .accordion-button:not(.collapsed) {
    background: transparent;
    color: #334155;
    box-shadow: none;
}

.faq-list .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(156, 120, 64, .18);
}

.notice-box {
    padding: 1.4rem 1.6rem;
    border-left: 4px solid #b69a68;
    border-radius: .5rem;
    background: #f7f5f0;
}

.notice-box strong {
    display: block;
    margin-bottom: .35rem;
    color: #172a3a;
}

.page-hero {
    padding: 4.5rem 0;
    background: #f3f5f2;
}

.page-hero h1 {
    max-width: 850px;
    margin-bottom: .75rem;
    color: #172a3a;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.page-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: #637383;
    font-size: 1.05rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: 1rem;
    background: #172a3a;
    color: #fff;
}

.pricing-feature h2 {
    color: #fff;
}

.pricing-feature p {
    margin-bottom: 0;
}

.price-range {
    min-width: 230px;
    text-align: center;
}

.price-range span,
.price-range strong {
    display: block;
}

.price-range strong {
    color: #e6cd9d;
    font-size: 1.55rem;
}

.gallery-container img {
    min-height: 230px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.contact-panel {
    height: auto;
}

.contact-placeholder {
    padding: .9rem 1rem;
    border-radius: .5rem;
    background: rgba(255, 255, 255, .55);
    color: #475569;
    font-size: .92rem;
}

.final-cta {
    padding: 5rem 0;
    background: #172a3a;
    color: rgba(255, 255, 255, .82);
}

.final-cta h2 {
    max-width: 850px;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.final-cta .eyebrow {
    color: #e6cd9d;
}

.site-footer {
    padding: 3rem 0 2rem;
    background: #0564b7;
    color: rgba(255, 255, 255, .72);
}

.site-footer .footer-brand {
    margin-bottom: .5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    margin: 1.25rem 0;
}

.footer-links a,
.site-footer a {
    color: #e6cd9d;
    text-decoration: none;
}

.footer-links a:hover,
.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .medical-hero {
        min-height: 840px;
        height: auto;
        padding: 4rem 0 200px;
    }

    .section-block {
        padding: 4rem 0;
    }

    .site-header .navbar .navbar-nav .nav-link {
        padding: .45rem 0;
    }
}

@media (max-width: 575.98px) {
    .step-item {
        grid-template-columns: 44px 1fr;
        gap: .85rem;
    }

    .step-number {
        width: 42px;
        height: 42px;
    }

    .pricing-feature {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.6rem;
    }

    .price-range {
        text-align: left;
    }
}







.btn-wechat {
    background-color: #ffffff;
    color: #1e293b;
    border: 2px solid #07C160;
    /* WeChatグリーン枠線 */
    font-weight: bold;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.btn-wechat:hover {
    background-color: #07C160;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.3);
}

.btn-wechat .wechat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ※wechat.svgが単色アイコンの場合、ホバー時に白く反転させたいときは以下を有効にしてください */

.btn-wechat:hover .wechat-icon {
  filter: brightness(0) invert(1);
}


.mt-wechat-cta {
    background-color: #ffffff;
    color: #1e293b;
    border: 2px solid #07C160;
    /* WeChatグリーン枠線 */
    font-weight: bold;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.15);
}

.mt-wechat-cta:hover {
    background-color: #07C160;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 193, 96, 0.3);
}

.mt-wechat-cta .mt-wechat-cta__icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ※wechat.svgが単色アイコンの場合、ホバー時に白く反転させたいときは以下を有効にしてください */
/*
.mt-wechat-cta:hover .mt-wechat-cta__icon {
  filter: brightness(0) invert(1);
}
*/



.mt-custom-spacing {
    margin-top: 8rem !important;
}



.tourisum {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* テキストの可読性を保つため、画像の上に半透明の白オーバーレイを重ねています */
    background:
        linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)),
        url("../img/pic_2.png") center center / cover no-repeat;
    padding: 80px 0 50px;
    width: 100%;
    min-height: 840px;
    height: auto;
}

@media (max-width: 767px) {
    #benefits {
        height: auto;
        justify-content: flex-start;
    }

    #benefits .mt-custom-spacing {
        margin-top: 2rem !important;
    }
}
    

.onsen {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* テキストの可読性を保つため、画像の上に半透明の暗いオーバーレイを重ねるのがおすすめです（白抜き文字にするため） */
    background:
        linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
        url("../img/pic_6.jpg") center center / cover no-repeat;
    padding: 80px 0 50px;
    width: 100%;
    min-height: 840px;
    height: auto;
}

/* 子孫要素のすべてのpタグではなく、特定のクラスや構造に限定する */
.onsen .onsen-title-text {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}

.onsen p.onsen-text {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.45;
    color: #ffffff;
}

.undertextwhite{
    color: #ffffff;
}