 /* --- CSS 重置與變數 --- */
:root {
    --primary: #78350f; 
    --primary-hover: #c95919; 
    --secondary: #4b342d; 
    --slate-100: #f4f1ed;
    --slate-200: #f4e6d4;
    --slate-300: #e1d1cb;
    --slate-400: #b09f9b;
    --slate-500: #9b6c64;
    --slate-600: #694e47;
    --slate-700: #4b4542;
    --slate-800: #433c39;
    --slate-900: #291e1a;
    --contrast-100:#f8fafc;
    --contrast-200:#ecf2f6;
    --contrast-300:#b1bfc9;
    --contrast-400:#9dbcd4;
    --contrast-500:#8aa8be;
    --red:#e71c25;
    --white: #ffffff;
    --black: #000000;
    --font-sans: "Noto Sans TC", "微軟正黑體", Arial, sans-serif;
    --font-serif: "Noto Serif TC", "微軟正黑體", Arial, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
img {width: 100%;}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: #f4f1e8; color: var(--slate-800); overflow-x: hidden; line-height: 1.5; }

::selection { background-color: #ff8409; color: white; }
section h1,section h2,section h3,section h4,section h5,section h6,section p,section span,section a{position: relative;z-index: 999;color: var(--slate-700);}
section a:hover {color: #ff8409;}
h1, h2, h3, h4, h5, h6 { font-weight: 600; }

section p,section li,section table tr td{color: var(--slate-700);font-size: 1.1rem;line-height: 1.7;font-weight: 400;}




/* 輪播 */
.owl-theme .owl-dots .owl-dot.active span, .owl-theme .owl-dots .owl-dot:hover span { background: #ff7876 !important; }
.owl-theme .owl-dots .owl-dot span, .owl-theme .owl-dots .owl-dot span { background: #c5b9b6 !important; }



/* 共通 */
section {padding: 100px 0;position: relative;}
section .container{position: relative;}
section p br { content: ""; margin: 1em; display: block; }

.video-container { position: relative; padding-bottom: 56.25%; padding-top: 30px; height: 0; overflow: hidden; }
.video-container iframe, .video-container object, .video-container embed { position: absolute; top: 0;left: 0; width: 100%; height: 100%;}  

.container{position: relative;max-width:1280px;}


/* 大小標題共用 */
.master-title {margin: 0 0 20px;}
.master-title.center {margin: 0 auto 20px;}
.master-title h2 {font-weight: 900;display: inline-block;letter-spacing: .05em;color: var(--primary);font-family: var(--font-serif);}
.master-title h2 br {display: none;}
.master-title span {color: var(--secondary);display: block;}
.master-title p {font-weight: 600;color: var(--secondary);margin: 0;}
.master-title.white h2 {color: #edcd81;}
.master-title.white p {color: var(--slate-300);}

.master-title.center {text-align: center;} 



/* 主視覺 */
header#visual { position: relative; width: 100%; height: 100vh; overflow: hidden; transform-origin: center bottom; }
header#visual h1 {z-index: -99;position: absolute;color: var(--slate-200);}
header#visual::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url(../images/header-bg.jpg) top center / cover; z-index: -1; animation: slowZoom .5s ease-out forwards; }
@keyframes slowZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}
header#visual .header-title {width: 58%;margin: 15px auto;}
header#visual .header-sub {width: 20%;margin: 15px auto;position: absolute;bottom: 5%;left:15% ;}
section#rule {background: url(../images/rule-bg.png) no-repeat 10% center ;background-size: 50%;}  
section#rule .photo {border-radius:.75rem ;overflow: hidden;}
section#rule .photo img { width: 100%;border: 5px solid var(--white);border-radius:.75rem ; }
section .sub {padding: 10px 30px;border-left:5px solid var(--slate-500) ;background-color: var(--slate-200);margin: 0 0 40px;}
section .sub h5 {margin: 0;color: var(--slate-800);}


section#rule .link {color: var(--slate-700);}


section#no {position: relative; background: url(../images/bg-2.jpg) ;background-size:40%;background-repeat: repeat;background-attachment: fixed;}
section#no .master-title {margin: 0 0 60px;}







section#no .box-g .box {background-color: #fff;border-radius:.75rem ;overflow: hidden;    box-shadow: var(--shadow-xl);}
section#no .box-g .box .text{padding: 40px;grid-column: span 2;}
section#no .box-g .box .text-lnk {background: url(../images/text-lnk.svg) no-repeat center / cover;padding: 15px 40px;display: inline-block;}
section#no .box-g .box .text-lnk h4 {margin: 0;}
section#no .box-g .box .photo {overflow: hidden;}
section#no .box-g .box .photo  img{transition: transform 0.7s;width: 100%;}
section#no .box-g .box:hover .photo img{transform: scale(1.1);}
section#no .box-g .box:nth-child(even) .photo{order: 1;}
section#no .box-g .box:nth-child(even) .text{order: 2;}

section#no .box-g .box .text p span {background: linear-gradient(to bottom, var(--white),#ffe7e3);}








section#why {position: relative; background:linear-gradient(to bottom , rgba(73, 53, 52, 0.4),rgba(31, 30, 30, 0.8) 50%), url(../images/bg-3.jpg) ;background-size: 20%;background-repeat: repeat;background-attachment: fixed;}
section#why .box-g .box {border: 1px solid #ffffffbc;padding: 20px;border-radius:.75rem ;}
section#why .box-g .box h4 ,
section#why .box-g .box p {color: var(--white);margin: 0;}
section#why .box-g .box .icon {width: 90px;margin: 40px auto;}
section#why .box-g .box p {color: var(--slate-100);}


section#lesson {position: relative; background:url(../images/bg-1.jpg) ;background-size:10%;background-repeat: repeat;}
section#lesson a {text-decoration: none;transition:all .3s ease-in ;}
section#lesson a:hover .box{transform: translateY(2px);border: 1px solid var(--contrast-400);}
section#lesson a:hover .box .lesson-info .lesson-title h4{color: var(--primary-hover);}
section#lesson .box-g .box {background-color: #fff;border-radius:.75rem ;padding: 50px;border: 1px solid var(--slate-300);position: relative;transition:all .3s ease-in ;}
section#lesson .box-g .box .num {position: absolute;right: 0%;top: 4%;opacity: .1;width: 20%;}


section#lesson .box-g .box .lesson-info .lesson-title h4 {font-family: var(--font-serif);color: var(--slate-800);}
section#lesson .box-g .box .lesson-info .lesson-list-g .lesson-list {background-color: var(--contrast-200);padding: 20px;margin: 0 0 1.25rem;}
section#lesson .box-g .box .lesson-info .lesson-list-g .lesson-list p {margin: 0;}
section#lesson .box-g .box .lesson-info .lesson-list-g .lesson-list i{color: var(--contrast-300);margin-right: 5px;}


section#lesson .box-g .box .lesson-content {padding:0 20px;grid-column: span 2;}
section#lesson .box-g .box .lesson-content ul {padding: 0 0 0 30px;}section#lesson .box-g .box .lesson-content ul li {margin: 0 0 5px;}
section#lesson .box-g .box .lesson-content ul li::marker {color: var(--slate-400);}
section#lesson .box-g .box .lesson-content ul.im  {padding: 0 0 0 30px;list-style: none;}
section#lesson .box-g .box .lesson-content ul.im li {position: relative;margin: 0 0 5px;font-weight: 400;font-size: 1.2rem;}
section#lesson .box-g .box .lesson-content ul.im li::after {content: "";background: url(../images/icon-kunai.svg) center  / cover ;
    background-repeat: no-repeat;
    width: 20px;height: 20px;background-size: contain;left: -28px;top: 8px;position: absolute;}



/* 按鈕*/ 
section#BTN {position: relative;padding: 0 0 60px;background:url(../images/bg-1.jpg) top center;background-size:10%;background-repeat: repeat;}
section#BTN  .btn h5{margin: 0;padding: 0; font-weight: 600;font-size: 1.4rem;transition: all ease 200ms;display: inline-block;color: var(--slate-800);text-wrap: wrap;}
section#BTN  a:hover h5 {color: #fff;}
section#BTN a {  text-decoration: none;display: block;color: var(--slate-800); text-align: center; width:100%;font-size: 1.2rem;font-weight: 600;transition: all ease 200ms;margin: 0 auto 20px;text-align: center;background-color: transparent;border: 1px solid var(--slate-800);padding: 10px;border-radius: 10px;background-color: #E7CDA5;}
section#BTN a:hover{background-color: #B67D5D;}
section#BTN .btn {padding: 0;}










@media(max-width:1690px){
    .title h2 {font-size: 2rem;}
    /* 主視覺 */



}

@media(max-width:1440px){
     /* 主視覺 */
   

}

@media(max-width:1300px){
    /* 主視覺 */
    header#visual .logo { width: 25%; }
    .container{position: relative;max-width:1150px;}



}
@media(max-width:1199px){
     /* 主視覺 */

     nav ul li { font-size: 1.1rem; }
     header#visual .header-title { width: 100%; }
   
}


@media(max-width:991px){


   section#BTN a {  width: 400px;}

     
     
}


@media(max-width: 767px){
    .container { padding: 15px;max-width: 98%; }
    .title h3 { font-size: 1.6rem; }
    h2{font-size: 1.6rem;}
    nav {position: relative;padding: 0;box-shadow: none;}
    nav ul li img { width: 20px; }
    nav ul { flex-direction: column;max-width: 100%; }
    nav ul li { margin:10px 0; }

    .master-title h2 {font-size: 1.8rem;line-height: 1.5;margin: 5px 0 0;}
    .master-title p {font-size: 1.2rem;}
    .master-title h2 br {display: block;}

    section {padding: 20px 0;}
    section p, section li, section table tr td { font-size: 1.05rem; }

    

    header#visual { height: 700px; padding: 10% 2% 0; }

    section#no .box-g .box .text{padding: 20px;order: 2;}
    section#no .box-g .box .photo {order: 1;}

    section#why .box-g .box { padding: 20px; }
    section#lesson .box-g .box .num { width: 40%; }
    section#lesson .box-g .box .lesson-content { padding: 0; }

    section#lesson .box-g .box { padding: 20px; }
    section#lesson .box-g .box .lesson-info {width: 100%;}

    section#BTN a { width:100%;margin: 0 0 40px;}





}












@media(max-width: 575px){
    .title h3 { font-size: 1.6rem; }
    h2{font-size: 1.6rem;}
    h3{font-size: 1.3rem;}
    h4{font-size: 1.2rem;}
    h5{font-size: 1.1rem;}
    .title h4 { font-size: 1.3rem; }

    header#visual { height:480px; padding: 5% 2% ; }
}