@charset "utf-8";

/* ==========================================================================
   Responsive Styles for 1000px and below
   ========================================================================== */

/* Global reset */
* {
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
}

/* Structure */
#wrapper, #wrapper2 {
    background-image: none !important;
    /* Pastel blue top 20%, then transitioning to white */
    background: linear-gradient(to bottom, #f0f7ff 0%, #ffffff 100%) !important;
    background-color: #ffffff !important;
}

/* Remove the previous line pattern */
#wrapper::before, #wrapper2::before {
    display: none !important;
}

#container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important; /* Removed padding to let header/viewer be full width */
    text-align: left !important;
}

/* Header */
#header {
    width: 100% !important;
    height: auto !important; /* Grow for catchphrase */
    min-height: 80px !important;
    padding: 10px 15px !important; /* Horizontal padding for logo */
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important; /* Stack catchphrase above logo */
    justify-content: center !important;
    align-items: flex-start !important;
    /* Simple white header with soft shadow */
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 800;
}

/* Apply side padding to content blocks instead of container */
#mainleft, #rightnavi, #footer2, #content, .box320, p, h3 {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Except for specific elements like tables or images that handle their own padding */
.tbl1, .tbl2, iframe, #viewer {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

h2 {
    display: block !important;
    float: none !important;
    margin: 0 0 5px 0 !important;
    font-size: 11px !important;
    color: #369 !important;
    width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
    font-weight: normal !important;
}

h1 {
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
    width: auto !important;
}

h1 img {
    max-width: 200px !important; /* Adjust logo size */
    height: auto !important;
}

#header-right {
    display: none !important; /* Hide original top nav */
}

img.float-r {
    display: none !important; /* Hide contact banner image */
}

/* Navigation - Hidden on mobile by default to use Hamburger */
#navi {
    display: none !important;
}

/* Hamburger Menu Toggle */
.menu-btn {
    display: flex !important; /* Show on mobile */
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: #369;
    border: none;
    border-radius: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s;
}

.menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Drawer Navigation */
.drawer-nav {
    display: block !important; /* Show on mobile */
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    padding: 60px 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.drawer-nav.open {
    right: 0;
}

.drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Main items with images */
.drawer-nav li.nav-img {
    margin-bottom: 2px;
}

.drawer-nav li.nav-img a {
    display: block;
}

.drawer-nav li.nav-img a img {
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* Text links (Original top nav items) */
.drawer-nav .sub-nav {
    margin: 20px 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.drawer-nav .sub-nav li {
    margin-bottom: 15px;
    text-align: center;
}

.drawer-nav .sub-nav a {
    color: #369;
    text-decoration: none;
    font-weight: bold;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

.overlay.open {
    display: block;
}

/* Floating Footer Contact */
.floating-contact {
    display: flex !important; /* Show on mobile */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.floating-contact a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    border-right: 1px solid #eee;
}

.floating-contact a:last-child {
    border-right: none;
}

.floating-contact a i {
    font-size: 24px;
    margin-bottom: 2px;
    color: #369;
}

/* Ensure content doesn't get hidden by floating footer */
body {
    padding-bottom: 60px !important;
}

/* Viewer (Home Slider) */
#viewer {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 994 / 484; 
    margin: 0 auto 25px !important;
    overflow: hidden;
    position: relative;
}

#viewer img {
    width: 100% !important;
    height: auto !important;
    position: absolute;
    top: 0;
    left: 0;
}

/* Main Content Area */
#mainleft {
    float: none !important;
    width: 100% !important;
    margin: 10px 0 30px !important;
}

#mainleft img {
    max-width: 100% !important;
    height: auto !important;
}

#rightnavi {
    float: none !important;
    width: 100% !important;
    margin: 20px 0 30px !important;
}

#rightnavi ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 !important;
}

#rightnavi li {
    width: 100% !important;
    max-width: 300px;
    margin-bottom: 15px !important;
}

#rightnavi img {
    width: 100% !important;
    height: auto !important;
}

/* Common Components */
h3 {
    width: 100% !important;
    background-size: cover !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 10px 10px 10px 15px !important;
}

.box320 {
    float: none !important;
    width: 100% !important;
    margin: 0 0 20px !important;
}

.box320 img {
    max-width: 100% !important;
    height: auto !important;
}

.tbl1 table, .tbl2 table {
    width: 100% !important;
}

.tbl2 th {
    width: 35% !important;
    font-size: 13px !important;
}

.tbl2 td {
    font-size: 14px !important;
}

iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.float-l, .float-r {
    float: none !important;
    display: block !important;
    margin: 15px auto !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* Footer */
#footer2 {
    width: 100% !important;
    height: auto !important;
    padding: 30px 15px !important;
}

#footer2 img {
    max-width: 90% !important;
    height: auto !important;
}

.p-footer {
    font-size: 13px !important;
    line-height: 1.8 !important;
    margin-bottom: 15px !important;
}

/* Specific Page Adjustments */
#main {
    width: 100% !important;
    padding: 10px !important;
}

/* For images that should be centered */
p img {
    display: block;
    margin: 10px auto;
}

