﻿@charset "utf-8";

/* ========================================================
   1. 라이브러리 및 기본 설정
   ======================================================== */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css");
@import url('https://fonts.googleapis.com/css2?family=Reddit+Sans:ital,wght@0,200..900;1,200..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');
@import url("inview.css");
@import url("saiyou.css");
@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;700&display=swap');

:root {
    --text-color: #333;
    --primary-inverse-color: #fff;
    --global-space: 5vw;
}

@keyframes animation1 { 0% {left: -200px;} 100% {left: 0px;} }
@keyframes opa1 { 0% {opacity: 0;} 100% {opacity: 1;} }
@keyframes fadeIn { 0% {opacity: 0;transform: scale(0.8);} 100% {opacity: 1;transform: scale(1);} }

body * {box-sizing: border-box;}
html,body {
    height: 100%;
    font-size: clamp(12px, 0.8vw + 8px, 16px);
    overflow-x: visible;
}
@media screen and (min-width: 800px) {
    html, body { font-size: clamp(16px, 0.5vw + 11px, 18px); }
}

body {
    margin: 0;padding:0;
    font-family: "Noto Sans JP", "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Meiryo, "メイリオ", "Osaka", "MS PGothic", "ＭＳ Ｐゴシック", sans-serif;
    font-optical-sizing: auto;
    -webkit-text-size-adjust: none;
    background: #fff;
    color: var(--text-color);
}

/* 리셋 및 유틸리티 */
figure {margin: 0;} dd {margin: 0;} nav,ul,li,ol {margin: 0;padding: 0;} nav ul {list-style: none;} section li {margin-left: 1rem;}
table {border-collapse:collapse;} img {border: none;max-width: 100%;height: auto;vertical-align: middle;}
video {max-width: 100%;} iframe {width: 100%;} input {font-size: 1rem;} section + section { margin-top: 3rem; }

a { color: var(--text-color); transition: 0.3s; }
a:hover { text-decoration: none; color: #3E7EC1; }

/* 컨테이너 */
body:not(.home) #container { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
#contents { flex: 1; padding: 3vw 5vw; }
@media screen and (max-width:600px) { #contents { padding-top: 80px; } }

/* 홈 전용 설정 */
.home #contents { max-width: 100%; margin: 0 auto; background: transparent !important; border-radius: 0; box-shadow: none; padding: 0; }
@media screen and (max-width:900px) { .home #contents { margin: 0 auto; border-radius: 0; padding: 0; } }


/* ========================================================
   2. 상단 네비게이션 바 (메뉴)
   ======================================================== */
header {
    display: flex; align-items: center; justify-content: space-between;
    height: 70px; padding-left: 5vw;
    font-family: "Reddit Sans", "Noto Sans JP", sans-serif;
    font-optical-sizing: auto; font-weight: 700; font-style: normal;
    position: fixed; z-index: 100; width: 100%; background-color: rgb(255, 255, 255);
}

#logo{ display: flex; align-items: center; justify-content: center; gap: 5px; }
#logo img { display: block; width: 60px; z-index: 5; }
#logo a { display: block;text-decoration: none; font-size: clamp(1.6rem, 1vw + 1.2rem, 2.2rem); font-weight: 800; z-index: 5; }
@media screen and (max-width:900px) { #logo img { width: 40px; } }

/* 메뉴 동작 설정 */
#menubar {display: none;} #menubar ul {list-style: none;margin: 0;padding: 0;} #menubar a {display: block;text-decoration: none;}
.large-screen #menubar {display: block;} .small-screen #menubar.display-block {display: block;}
#menubar_hdr.display-none {display: none;} .ddmenu_parent ul {display: none;}
a.ddmenu {cursor: default;}
a.ddmenu::before { font-family: "Font Awesome 6 Free"; content: "\f078"; font-weight: bold; margin-right: 0.5em; }

.large-screen #menubar > nav > ul {
    display: flex; font-size: clamp(0.9rem, 0.25vw + 0.85rem, 1.1rem);
    gap: 1.5rem; position: absolute; left: 50%; top: 30%; transform: translateX(-50%);
    white-space: nowrap; cursor: default;
}
.large-screen #menubar li a { border-radius: 100px; padding: 0.2rem 1rem; cursor: default; }
.large-screen #menubar li:hover > ul {
    display: block; background-color: rgba(237, 252, 255, 0.9); padding: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); border-radius: 8px;
}
.large-screen #menubar_hdr{ display: none; }
.large-screen #menubar ul ul, .small-screen #menubar ul ul { animation: opa1 0.1s both; }
.large-screen #menubar ul ul { position: absolute;z-index: 100; cursor: default; display: none; min-width: 100px; }
.large-screen #menubar ul ul a { margin-top: 0.4rem; cursor: default; }

.menubox { text-align: center; padding: 10px; } .menubox > ul > li { display: inline-block; padding: 5px 5px; margin: 0 4px; cursor: default; }

.small-screen #menubar.display-block {
    position: fixed;overflow: auto;z-index: 100; left: 0px;top: 0px; width: 100%; height: 100%;
    padding-top: 90px; background: rgba(0, 0, 0, 0.9); animation: animation1 0.2s both; cursor: default;
}
.small-screen #menubar nav ul li {
    border: 1px solid #ccc; margin: 1rem 0; border-radius: 5px; padding: 0 2rem; cursor: default; width: 100%; box-sizing: border-box;
}
.small-screen #menubar a { padding: 1rem; } .small-screen #menubar, .small-screen #menubar a { color: #fff; }
#menubar .sh { font-weight: normal; padding: 1rem 2rem 2rem; }

/* 햄버거 버튼 */
#menubar_hdr {
    animation: opa1 0s 0.2s both; position: fixed;z-index: 101; cursor: pointer;
    right: 3vw; top: 1vw; padding: 16px 14px; width: 46px; height: 46px;
    display: flex; flex-direction: column; justify-content: space-between;
}
#menubar_hdr span { display: block; transition: 0.3s; border-top: 1.5px solid #333; }
#menubar_hdr.ham { background: #ff0000; }
#menubar_hdr.ham span:nth-of-type(1), #menubar_hdr.ham span:nth-of-type(3) { transform-origin: center center; width: 20px; border-color: #fff; }
#menubar_hdr.ham span:nth-of-type(1){ transform: rotate(45deg) translate(3.8px, 5px); }
#menubar_hdr.ham span:nth-of-type(3){ transform: rotate(-45deg) translate(3.8px, -5px); }
#menubar_hdr.ham span:nth-of-type(2){ display: none; }


/* ========================================================
   3. 메인 콘텐츠 및 공통 요소
   ======================================================== */
main h2 { font-family: "Reddit Sans", "Noto Sans JP", sans-serif; font-size: clamp(2.0rem, 3vw + 0.5rem, 3.4rem); letter-spacing: 0.1em; color: #3E7EC1; margin: 25px 0px; }
.bg1 h2 { color: var(--primary-inverse-color); } .bg2 h2 { color: #3E7EC1; }
main h2 .hosoku { display: block;font-weight: normal; font-size: 0.3em; }
.titleH1{
    font-size: 2.5rem;
    color:#3E7EC1;
}
main h3 { display: inline-block; border-bottom: 3px solid var(--text-color); }

.main-contents { margin-bottom: 5rem; }
@media screen and (min-width:900px) {
    main.column { display: flex; justify-content: space-between; gap: 2rem; }
    .main-contents { margin-bottom: 0; order: 2; flex: 1; }
    .sub-contents { width: 230px; }
    .sub-contents:nth-child(2) { order: 1; } .sub-contents:nth-child(3) { order: 3; }
}

.sub-contents h3 { display: block; margin: 0; text-align: center; border-radius: 5px 5px 0px 0px; border: 1px solid #ccc; background: linear-gradient(transparent, rgba(0,0,0,0.03)); padding: 0.5rem 0; }
.submenu { padding: 0; margin: 0 0 1rem; } .submenu a { display: block;text-decoration: none; padding: 0.2rem 1rem; }
.submenu > li { border: 1px solid #ccc; border-top: none; } .submenu li li a { padding-left: 2rem; }
.sub-contents h3 + nav .submenu { border-top: none; }

/* 레거시 푸터 설정 */
#footermenu { position: relative; margin-top: 0 !important; padding: 0vh; text-align: center; font-size: 0.8rem; }
#footermenu li { display: inline-block; padding: 0 10px; }
footer small {font-size: 100%;} footer { font-size: 0.7rem; text-align: center; padding: 20px; } footer a {color: inherit;text-decoration: none;} footer .pr {display: block;}

.fade-in-text { visibility: hidden; } .char { display: inline-block; opacity: 0; animation: fadeIn 0.1s linear both; }

.new dd { padding-bottom: 1rem; }
.new dt span { display: inline-block; text-align: center; line-height: 1.8; border-radius: 3px; width: 8rem; transform: scale(0.8); background: #fff; color:#777; border: 1px solid #333; }
.new .icon-bg1 { background: #333; color: #fff; } .new .icon-bg2 { background: #ff0000; color: #fff; }
@media screen and (min-width:700px) { .new { display: grid; grid-template-columns: auto 1fr; } }

/* List Grids */
.list-grid1 { display: grid; color: var(--text-color); } .list-grid1 .list { display: grid; }
.list-grid1 .list * { margin: 0;padding: 0; cursor: default; } .list-grid1 .list h1 { text-align: center; cursor: default; } .list-grid1 .list p { font-size: 0.85rem; }
@media screen and (min-width:500px) { .list-grid1 { grid-template-columns: repeat(3, 1fr); gap: 1rem; box-shadow: 0px 0px 30px rgb(14, 14, 14); } }
@media screen and (min-width:800px) { .list-grid1 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0rem; } }
.list-grid1 .list { display: grid; padding: 0rem; background: rgba(255, 255, 255, 0); grid-template-rows: auto 1fr; }
.list-grid1 .list figure { position: relative; overflow: hidden; margin: 0; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background-color: #000; }
.list-grid1 .list figure img { width: 100%; display: block; position: relative; z-index: 1; transition: filter 0.3s ease; height: 100%; object-fit: contain; }
.list-grid1 .list:hover figure img { filter: brightness(0.45); } .list-grid1:not(:hover) .list { filter: none; }
.list-grid1 .list figure::after { content: "もっと見る"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 1.5rem; font-weight: bold; padding: 0.8rem 1.5rem; border-radius: 5px; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; z-index: 2; }
.list-grid1 .list:hover figure::after { opacity: 1; }

.list-grid2 { display: grid; color: var(--text-color); justify-content: center; padding-top: 40px; }
.list-grid2 .list { display: flex; flex-direction: column; align-items: center; position: relative; overflow: hidden; }
.list-grid2 .list * { margin: 0;padding: 0; } .list-grid2 .list p { font-size: 0.85rem; } .list-grid2 .list h1 { font-size: 2rem; }
@media screen and (max-width:900px) { .list-grid2 { grid-template-columns: repeat(1, 1fr); gap: 1rem; max-width: 300px; margin: 0 auto; } }
@media screen and (min-width:901px) { .list-grid2 { grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 1100px; margin: 0 auto; } }
.list-grid2 .list { box-shadow: 10px 10px 15px rgba(0,0,0,0.1); }
.list-grid2 .list figure img { transform: scale(0.3); transition: transform 0.3s ease-in-out; }
.list-grid2 .list .mouseovertext{ color: #fff; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(63, 112, 189, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 20px; box-sizing: border-box; opacity: 0; pointer-events: none; transition: opacity 0.35s ease-in-out; z-index: 2; }
.list-grid2 .list:hover .mouseovertext{ opacity: 1; }

/* 버튼 */
.btn a, .btn-border-radius a { display: block;text-decoration: none; font-size: 1rem; text-align: center; background: #3E7EC1 !important; color: var(--primary-inverse-color) !important; padding: 0.5rem !important; margin-top: 1rem !important; }
.btn a:hover, .btn-border-radius a:hover { filter: brightness(1.2); }
.btn-border-radius a { display: inline-block; padding: 0.5rem 2rem !important; border-radius: 100px; }

/* 배경 블록 (bg1, bg2) */
.bg1 { position: relative; background: #3E7EC1; color: var(--primary-inverse-color); padding: 2vw var(--global-space); margin: 2vw 0 0; margin-left: calc(-1 * var(--global-space)); margin-right: calc(-1 * var(--global-space)); }
.bg1 a { color: inherit; } .bg1::before, .bg1::after { content: ""; position: absolute; left: 0; width: 100%; height: calc(5vw + 1px); background: #3E7EC1; }
.bg1::before { top: -5vw; clip-path: polygon(0 100%, 100% 0, 100% 100%); } .bg1::after { bottom: -5vw; clip-path: polygon(0 0, 100% 0, 0 100%); }

.bg2 { position: relative; background: rgb(255, 255, 255); color: rgb(255, 171, 62); padding: 2vw var(--global-space); margin: 2vw 0 0; margin-left: calc(-1 * var(--global-space)); margin-right: calc(-1 * var(--global-space)); }
.bg2 a { color: inherit; } .bg2::before, .bg2::after { content: ""; position: absolute; left: 0; width: 100%; height: calc(5vw + 1px); background: rgb(255, 255, 255); }
.bg2::before { top: -5vw; clip-path: polygon(0 100%, 100% 0, 100% 100%); } .bg2::after { bottom: -5vw; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* 썸네일, 테이블 */
.thumbnail-view-parts { max-width: 1000px; margin: 0 auto 1rem; text-align: center; }
.thumbnail-parts { display: flex; justify-content: center; margin-bottom: 2rem; }
.thumbnail-parts img { width: 100px; margin: 2px; cursor: pointer; transition: 0.3s; }
.thumbnail-parts img:hover { opacity: 0.8; }

.ta1 caption { font-weight: bold; padding: 0.5rem 1rem; background: #3E7EC1; color: #fff; margin-bottom: 1rem; border-radius: 5px; }
.ta1 { table-layout: fixed; border-top: 1px solid #333; width: 100%; margin-bottom: 1rem; }
.ta1 tr { border-bottom: 1px solid #333; } .ta1 th, .ta1 td { padding: 1rem; word-break: break-all; }
.ta1 th { width: 30%; text-align: left; background: #eee; }
@media screen and (min-width:900px) { .ta1 th { width: 20%; } }

/* Page Top (New Style) */
.pagetop { position: fixed; right: 20px; bottom: 20px; z-index: 999; }
.pagetop a { display: flex; justify-content: center; align-items: center; text-decoration: none; color: #fff; font-size: 1.2rem; background: #cccccc; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; transition: background 0.3s ease; }
.pagetop a:hover { background: #999999; }
.pagetop.show { display: block; }

/* Utility */
.clearfix::after {content: "";display: block;clear: both;}
.color-check, .color-check a {color: #ff0000 !important;}
.l {text-align: left !important;} .c {text-align: center !important;} .r {text-align: right !important;}
.ws {width: 95%;display: block;} .wl {width: 95%;display: block;}
.mb0 {margin-bottom: 0px !important;} .mb30 {margin-bottom: 30px !important;}
.look {display: inline-block;padding: 0px 10px;background: #eee;color: #333;border: 1px solid #ccc; border-radius: 3px;margin: 5px 0; word-break: break-all;}
.small {font-size: 0.75em;} .large {font-size: 2em; letter-spacing: 0.1em;}
.pc {display: none;} .dn {display: none !important;} .block {display: block !important;}
@media screen and (min-width:900px) { .ws {width: 48%;display: inline;} .sh {display: none;} .pc {display: block;} }


/* ========================================================
   4. 헤더(Hero) & 배경 애니메이션 (최종 통합)
   ======================================================== */

/* Background Animation */
.backgroundAnim {
    background: linear-gradient(90deg, rgb(245, 247, 255) 0%, rgb(235, 250, 255) 50%, rgb(237, 255, 238) 100%) !important;
    background-size: 200% 200% !important;
    animation: bggradient 15s ease infinite !important;
}
@keyframes bggradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Hero Section */
#mainimg { height: 100vh; position: relative; display: flex; justify-content: center; align-items: center; }
.slide1 {
    width: 100%; height: 100vh; position: relative; left: 0px; top: 0vh; z-index: -1;
    display: flex; align-items: flex-start; justify-content: flex-start; /* PC: 왼쪽 정렬 */
    /*padding: 15vh 30vw 0 32vw; user-select: none;*/
   padding: 15vh 15vw 0 35vw; user-select: none;
}
#mainimg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; z-index: -5; }

/* [PC] 텍스트 왼쪽 정렬 & 흰색 강제 & 로고 숨김 */
.logo-text-container, .PCFontColorWhite { color: #ffffff !important; text-align: left; z-index: 2; padding-left: 5vw; }
#mainimg h1 {
    margin: 0 0 15px 0; padding: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1;
    font-weight: 700; color: #ffffff !important; opacity: 0;
    animation: am_move6 1s ease-out forwards; animation-delay: 0.5s;
}
#mainimg p {
    font-size: clamp(1rem, 1.5vw, 1.5rem); margin: 0; padding: 0;
    color: #ffffff !important; opacity: 0; animation: am_move6 1s ease-out forwards;
    animation-delay: 1.2s; word-break: keep-all; line-height: 1.6;
}
#mainimg .logo-container { display: none !important; } /* PC에서 로고 이미지 숨김 */

@keyframes am_move6 { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }

.scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); cursor: pointer; z-index: 10; opacity: 0; animation: fadeInArrow 2s ease 2s forwards, bounce 2s ease-in-out 4s infinite; }
.scroll-more-button { background: none; border: none; color: #ffffff !important; font-size: 0.9rem; cursor: pointer; text-align: center; }
.arrow-down { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid #ffffff; margin-bottom: 5px; display: inline-block; }
@keyframes fadeInArrow { from { opacity: 0; } to { opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }

/* 서브 페이지 헤더 */
#mainimg2, #mainimg3, #mainimg4, #mainimg5 { height: 40vh; position: relative; display: flex; justify-content: center; align-items: center; background-size: cover; background-repeat: no-repeat; animation: am_move6 1s ease-out forwards; }
#mainimg2 { background-image: url('../images/bg2.jpg'); background-position: center 100%; }
#mainimg3 { background-image: url('../images/bg3.jpg'); background-position: center 40%; }
#mainimg4 { background-image: url('../images/bg4.jpg'); background-position: center 30%; }
#mainimg5 { background-image: url('../images/bg5.jpg'); background-position: center 60%; }
#mainimg2 h1, #mainimg3 h1, #mainimg4 h1, #mainimg5 h1 { position: relative; z-index: 10; margin: 0; font-size: 5vw; line-height: 1; font-weight: 500; opacity: 1; animation-delay: 1s; color: #ffffff; text-shadow: 1px 5px 15px rgb(0, 0, 0); }

/* 구분선 */
hr.hr-17 { border: 0; height: 1px; margin-left: 0; background-image: linear-gradient(to right, #f0f0f0, #8c8c8c, #f0f0f0); }


/* ========================================================
   Footer Section (Final Design)
   ======================================================== */
.new-footer-wallpaper {
    background: #f5f5f5 !important; border-radius: 40px 40px 0 0; box-shadow: 0 -5px 20px rgba(0,0,0,0.03);
    color: #333; padding: 72px 5vw 72px !important; font-family: "Noto Sans JP", sans-serif; position: relative; z-index: 10;
}
.footer-content-wrapper {
    max-width: 90% !important; width: 90% !important; margin: 0 auto 30px;
    display: flex; align-items: stretch; justify-content: center; gap: 80px;
}
.footer-left {
    flex: 1; min-width: 300px; display: flex; flex-direction: column;
    justify-content: space-between; align-items: flex-start !important; text-align: left !important;
}
.footer-company { font-size: 1rem !important; font-weight: 700; margin: 0 0 10px 0; color: #333; padding-top: 5px; }
.company-address p {
    margin: 0 0 3px 0; font-size: 1rem !important; font-weight: 400 !important; color: #555 !important;
    line-height: 1.5; margin-left: -0.4em !important;
}
.cert-images-large { width: 100%; display: flex; justify-content: flex-start !important; margin: 0; }
.cert-images-large img { width: 400px; height: auto; max-width: 100%; }

.footer-right { flex: 1; min-width: 300px; display: flex; flex-direction: column; }
.footer-menu-list {
    list-style: none; padding: 0; margin: 0; border-top: 1px solid #dcdcdc;
    height: 100%; display: flex; flex-direction: column; justify-content: space-between;
}
.footer-menu-list li { border-bottom: 1px solid #dcdcdc; padding: 25px 0; flex: 1; display: flex; align-items: center; }
.footer-menu-list a { display: flex; align-items: center; text-decoration: none; color: #333; font-weight: 700; font-size: 1.1rem; width: 100%; }
.footer-menu-list a:hover { color: #bf5b28; }
.en-text { font-size: 0.85rem; font-weight: 400; color: #888; margin-left: 8px; font-family: "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; }
.arrow-icon {
    display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    background-color: #bf5b28; border-radius: 50%; margin-right: 15px; color: #fff; font-size: 0.9rem; flex-shrink: 0;
}

.footer-bottom-center { text-align: center; padding-top: 0 !important; }
.footer-policy-links { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; }
.footer-policy-links a { font-size: 0.95rem; color: #555; text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.3s; }
.footer-policy-links a:hover { opacity: 0.7; color: #bf5b28; }
.copyright small { font-size: 0.85rem; color: #888; }

@media screen and (max-width: 900px) {
    .new-footer-wallpaper { padding: 20px 5vw 15px !important; }
    .footer-content-wrapper { width: 95% !important; flex-direction: column; gap: 20px !important; align-items: center; margin-bottom: 20px !important; }
    .footer-left { width: 100%; gap: 10px !important; align-items: center !important; text-align: center !important; }
    .footer-company { font-size: 1.2rem !important; margin-bottom: 5px !important; }
    .company-address p { font-size: 0.85rem !important; line-height: 1.3 !important; margin-bottom: 0 !important; margin-left: 0 !important; }
    .cert-images-large img { width: 240px !important; margin-top: 5px; }
    .footer-right { width: 100%; }
    .footer-menu-list { display: block; height: auto; margin-bottom: 0 !important; }
    .footer-menu-list li { display: block; padding: 5px 0 !important; }
    .footer-menu-list a { gap: 10px !important; flex-wrap: wrap; }
    .arrow-icon { width: 24px !important; height: 24px !important; font-size: 0.7rem !important; }
    .menu-title { display: flex; flex-direction: column; align-items: flex-start; text-align: left; line-height: 1.1 !important; font-size: 0.95rem !important; }
    .en-text { display: block; margin-left: 0 !important; margin-top: 1px !important; font-size: 0.7rem !important; color: #999; }
    .footer-bottom-center { padding-top: 10px !important; }
    .footer-policy-links { flex-direction: column; gap: 5px !important; margin-bottom: 10px !important; }
    .copyright small { font-size: 0.7rem !important; }
}

/* ========================================================
   [Final] Jessica Parker Style Cards (Integrated Fix)
   ======================================================== */
:root {
    --surface-color: #fff;
    --curve: 40;
    --primary-color: #1e293b;
    --accent-color: #3b82f6;
    --text-gray: #64748b;
}

/* --- 1. 카드 기본 설정 (공통) --- */
/* 카드 컨테이너 (Grid Layout) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin: 120px auto 100px;      /* 상단 여백 120px, 하단 여백 100px, 좌우는 자동(중앙 정렬) */
    max-width: 1200px;      /* 최대 너비를 1200px로 제한 (너무 늘어남 방지) */
    width: 90%;             /* 평소에는 화면의 90% 너비 사용 */
    padding: 0;
    list-style-type: none;
}

.card {
    position: relative;
    display: block;
    height: 100%;
    min-height: 400px;
    border-radius: calc(var(--curve) * 1px);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
    z-index: 0;
    transition: transform 0.5s ease;
}

/* PC: 호버 효과 */
.card:hover .card__image { transform: scale(1.05); }

/* Overlay & Header (텍스트 박스) */
.card__overlay {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 1;
    border-radius: calc(var(--curve) * 1px);
    background-color: var(--surface-color);
    transform: translateY(100%);
    transition: .2s ease-in-out;
}
.card:hover .card__overlay, .card.active .card__overlay { transform: translateY(0); }

.card__header {
    position: relative; display: flex; align-items: center; gap: 1em; padding: 2em;
    border-radius: calc(var(--curve) * 1px) 0 0 0;
    background-color: var(--surface-color);
    transform: translateY(-100%);
    transition: .2s ease-in-out;
}
.card:hover .card__header, .card.active .card__header { transform: translateY(0); }

/* 곡선(Arc) */
.card__arc { width: 80px; height: 80px; position: absolute; bottom: 100%; right: 0; z-index: 1; }
.card__arc path { fill: var(--surface-color); d: path("M 40 80 c 22 0 40 -22 40 -40 v 40 Z"); }

/* 텍스트 스타일 */
.card__thumb { flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%; background-color: #eff6ff; color: var(--accent-color); display: flex; justify-content: center; align-items: center; font-size: 1.5rem; }
.card__title { font-size: 1.1rem; margin: 0 0 .3em; color: var(--primary-color); font-weight: 700; line-height: 1.3; border-bottom: none !important; text-decoration: none !important; display: block !important; }
.card__status { font-size: .8rem; color: #999; font-weight: 700; }
.card__description { padding: 0 2em 2em; margin: 0; color: var(--text-gray); font-family: "Noto Sans JP", sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 0.95rem; line-height: 1.6; }


/* --------------------------------------------------------
   1. [PC 전용] 카드 이미지 위치 정밀 조정 (901px 이상)
   -------------------------------------------------------- */
@media screen and (min-width: 901px) {

    /* 1. 2번째 카드(퍼즐): 강제 이동 제거하고 초점만 맞춤 */
    .cards li:nth-child(2) .card__image {
        /* 높이를 100%로 맞춰서 카드에 딱 맞게 채움 (빈 공간 원천 차단) */
        height: 100% !important;
        width: 100% !important;

        /* 이미지 비율 유지하며 꽉 채우기 */
        object-fit: cover !important;

        /* 초점을 '아래쪽 80%' 지점에 맞춰서 손이 보이게 함 */
        object-position: center 10% !important;

        /* 기존에 적용된 강제 이동(translateY) 삭제 */
        transform: translateY(-80px) !important;
        margin: 0 !important;
        top: 0 !important;
    }

    /* 3번째 카드(악수): 기존 설정 유지 */
    /* 만약 3번 카드도 빈 공간이 보인다면 위 2번 카드와 똑같은 방식(height:100%, transform:none)으로 바꾸세요. */
    .cards li:nth-child(3) .card__image {
        height: 140% !important;
        object-position: center bottom !important;
        transform: translateY(-190px) !important;
    }

    /* PC용 푸터 스타일 */
    .new-footer-wallpaper {
        border-radius: 40px 40px 0 0 !important;
        box-shadow: 0 -15px 30px rgba(0,0,0,0.1) !important;
        background-color: #f5f5f5 !important;
    }

    /* 3. 카드 컨테이너 최대 너비 제한 (와이드 화면 깨짐 방지) */
    .cards {
        max-width: 1200px !important;
        margin: 160px auto 100px !important;
        gap: 4rem !important;
    }
}


/* --- 3. [모바일 전용] 전체 설정 및 카드 최적화 --- */
@media screen and (max-width: 900px) {

    /* (A) 배경 & 헤더 설정 */
    body.home.backgroundAnim {
        background: linear-gradient(90deg, rgb(245, 247, 255) 0%, rgb(235, 250, 255) 50%, rgb(237, 255, 238) 100%) !important;
        background-size: 200% 200% !important;
        animation: bggradient 15s ease infinite !important;
        padding-top: 0 !important;
    }
    @keyframes bggradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

    #mainimg { position: relative !important; height: 100vh !important; min-height: 600px !important; width: 100% !important; display: flex !important; justify-content: center !important; align-items: center !important; background: transparent !important; z-index: 999 !important; overflow: hidden !important; }
    #mainimg #bgImage { display: none !important; } /* 배경 이미지 숨김 */

    /* 로고 및 텍스트 레이아웃 */
    .slide1 { position: relative !important; width: 100% !important; height: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 0 !important; margin: 0 !important; }
    #mainimg .logo-text-container { display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; width: 100% !important; gap: 40px !important; z-index: 1000 !important; }
    #mainimg .logo-container { display: flex !important; justify-content: center !important; align-items: center !important; width: 100% !important; height: 200px !important; max-width: 400px !important; order: 1 !important; position: relative !important; visibility: visible !important; }
    #mainimg .logo-container img { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%); width: 60% !important; height: auto !important; max-height: 100% !important; object-fit: contain !important; opacity: 0; visibility: visible !important; }

    #mainimg h1 { order: 2 !important; font-size: 10vw !important; color: #333 !important; margin: 0 !important; text-align: center !important; text-shadow: none !important; opacity: 0; animation: am_move6 1s ease-out forwards !important; animation-delay: 0.8s !important; }
    #mainimg p { order: 3 !important; font-size: 3.5vw !important; color: #555 !important; margin: 0 !important; padding: 10px 1rem 0 !important; text-align: center !important; text-shadow: none !important; word-break: keep-all !important; opacity: 0; animation: am_move6 1s ease-out forwards !important; animation-delay: 1.2s !important; }

    @keyframes mob_logo_LeftIn { 0% { opacity: 0; transform: translate(-150%, -50%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
    @keyframes mob_logo_CenterIn { 0% { opacity: 0; transform: translate(-50%, -150%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
    @keyframes mob_logo_RightIn { 0% { opacity: 0; transform: translate(50%, -50%); } 100% { opacity: 1; transform: translate(-50%, -50%); } }
    #mainimg .logo-container .logoL { z-index: 1; animation: mob_logo_LeftIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important; }
    #mainimg .logo-container .logoC { z-index: 2; animation: mob_logo_CenterIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards !important; }
    #mainimg .logo-container .logoR { z-index: 3; animation: mob_logo_RightIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards !important; }

    .scroll-indicator { position: absolute !important; bottom: 20vh !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 1001 !important; }
    .scroll-more-button { color: #333 !important; }
    .arrow-down { border-top-color: #333 !important; }

    #mainimg .SMTFontSizeh1{
        font-size: 11vw;
    }
    #mainimg .SMTFontSizep{
        font-size: 3vw;
    }

    /* (B) 카드 스타일 수정 */
    .cards { grid-template-columns: 1fr !important; gap: 50px !important; margin: 60px 5vw 60px !important; }
    .card { height: 320px !important; min-height: auto !important; }

    /* [2번째 카드: 퍼즐] 손 잘리지 않게 전체 보여주기 (기존 만족 상태 유지) */
    .cards li:nth-child(2) .card__image {
        /* 1. 꽉 채우기 (배경색 제거) */
        object-fit: cover !important;
        background-color: transparent !important;

        /* 2. 높이를 125%로 키워서 위로 움직일 공간 확보 */
        height: 120% !important;

        /* 3. 기준점을 바닥(bottom)으로 설정 */
        object-position: center bottom !important;

        /* 4. ★ 핵심: 위로 60px 강제로 끄집어 올림 ★ */
        /* 숫자가 클수록(마이너스가 클수록) 더 많이 올라갑니다 */
        transform: translateY(-90px) !important;

        /* 기타 초기화 */
        margin: 0 !important;
        top: 0 !important;
    }

    /* [3번째 카드: 악수] 손 잘리지 않게 전체 보여주기 (기존 만족 상태 유지) */
    .cards li:nth-child(3) .card__image {
        object-fit: contain !important;
        background-color: #1e293b !important;
        object-position: center top !important;
        height: auto !important;
        width: 100% !important;
        margin-top: 0 !important;
        top: 0 !important;
    }


    /* (C) Footer 수정 (간격 좁힘) */
    .new-footer-wallpaper { border-radius: 30px 30px 0 0 !important; box-shadow: 0 -15px 30px rgba(0,0,0,0.1) !important; background-color: #f5f5f5 !important; padding: 30px 5vw 20px !important; position: relative; z-index: 10; }
    .footer-content-wrapper { width: 100% !important; gap: 30px !important; }

    /* 사명 */
    .footer-company { margin-bottom: 0px !important; padding-bottom: 0px !important; line-height: 1.1 !important; }
    /* 주소 (위로 5px 당김) */
    .company-address { margin-top: -5px !important; }
    .company-address p { margin: 0 !important; line-height: 1.4 !important; }
}

/* ========================================================
   [Mobile Fix] Footer 인증 마크 중앙 정렬
   ======================================================== */
@media screen and (max-width: 900px) {
    /* 인증 마크 컨테이너 선택 */
    .cert-images-large {
        /* 가로 방향 중앙 정렬 강제 적용 */
        justify-content: center !important;

        /* 혹시 모를 여백 조정 */
        display: flex !important;
        width: 100% !important;
        margin: 10px auto 0 !important;
    }
}

/* ========================================================
   [Mobile Fix] Footer 메뉴 제목 가로 배치 (PC 스타일)
   ======================================================== */
@media screen and (max-width: 900px) {

    /* 1. 제목과 영문을 감싸는 틀: 가로 정렬로 변경 */
    .menu-title {
        display: flex !important;
        flex-direction: row !important; /* 세로(column) -> 가로(row) */
        align-items: baseline !important; /* 글자 밑줄 기준 맞춤 */
        gap: 8px !important; /* 일본어와 영어 사이 간격 */
        flex-wrap: wrap !important; /* 화면이 너무 좁으면 자연스럽게 줄바꿈 */
    }

    /* 2. 영문 텍스트: 강제 줄바꿈 해제 */
    .en-text {
        display: inline !important; /* 블록(줄바꿈) 속성 제거 */
        margin-top: 0 !important;
        margin-left: 0 !important;
        color: #888 !important;
        font-size: 0.75rem !important;
    }

    /* (참고) 링크 전체 레이아웃 미세 조정 */
    .footer-menu-list a {
        align-items: center !important;
    }
}

/* ========================================================
   [Company Page Fix] 회사 이념 슬라이더 (모바일 배경 복구)
   ======================================================== */

/* 슬라이더 전체 컨테이너 */
.rinen-swiper {
    margin-top: 2rem;
    padding: 1rem;
    min-height: 250px;
}

/* 개별 슬라이드 카드 */
.swiper-slide {
    padding: 2rem;
    border-radius: 12px;
    text-align: center; /* 텍스트 중앙 정렬 */
}

/* 제목 스타일 (기본) */
.rinen-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6); /* 글자 그림자 */
    font-weight: 700;
}

/* 본문 텍스트 스타일 (기본) */
.rinen-text {
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.8;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.6); /* 글자 그림자 */
}

/* --------------------------------------------------------
   PC 화면 (901px 이상)
   -------------------------------------------------------- */
@media screen and (min-width: 901px){
    .rinen-swiper {
        min-height: 400px; /* 높이 확보 */
    }
    .rinen-title{
        font-size: 2.5rem; /* PC에서 폰트 크게 */
    }
    .rinen-text{
        font-size: 1.3rem; /* PC에서 폰트 크게 */
    }
}

/* --------------------------------------------------------
   모바일 화면 (900px 이하) - ★높이 고정 & 텍스트 최적화★
   -------------------------------------------------------- */
@media screen and (max-width: 900px){

    /* 1. 슬라이드 높이 고정 및 배치 설정 */
    .swiper-slide {
        /* 높이를 280px로 강제 고정 (들쭉날쭉 해결) */
        height: 280px !important;

        /* 배경 이미지 꽉 채우기 */
        background-size: cover !important;
        background-position: center center !important;

        /* 텍스트를 정중앙에 배치 */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;

        /* ★ 핵심: 좌우 여백을 5px로 확 줄여서 글자가 길게 써지게 함 ★ */
        padding: 0 5px !important;
    }

    /* ★ 핵심 수정: 2번째 슬라이드(사람)만 오른쪽을 보여줌 ★ */
    .swiper-slide[style*="rinen2.jpg"] {
        background-position: 80% center !important;
    }

    /* 2. 제목 스타일 */
    .rinen-title {
        color: #ffffff !important;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.8) !important;
        font-size: 1.15rem !important; /* 적절한 크기 */
        margin-bottom: 10px !important;
        width: 100% !important;
    }

    /* 3. 본문 텍스트 스타일 (2줄 만들기) */
    .rinen-text {
        color: #ffffff !important;
        text-shadow: 1px 1px 5px rgba(0,0,0,0.8) !important;

        /* 글자 크기를 0.8rem(약 12~13px)로 줄여서 한 줄에 많이 들어가게 함 */
        font-size: 0.8rem !important;

        line-height: 1.5 !important;
        width: 100% !important;
        word-break: keep-all !important; /* 단어 중간 끊김 방지 */
    }
}

/* ========================================================
   Contact Form (251117 Version)
   ======================================================== */

/* 배경 설정 (PC에서만 이미지 적용) */
@media screen and (min-width: 901px){
    .form-bg {
        background: url("../images/toiawasebg.png") no-repeat left 0 bottom 10px;
        background-size: 600px auto;
        position: relative;
        width: 100%;
    }
}

/* 폼 카드 (흰색 박스) */
.form-card {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 1);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    padding: 40px;
    text-align: left;
    transition: transform 0.3s ease;
}
.form-card:hover {
    transform: translateY(-5px);
}

/* 폼 내부 텍스트 */
.form-card h2 {
    text-align: center;
    margin-bottom: 20px;
}
.form-card p {
    text-align: center;
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* 입력 필드 그룹 */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0078d7;
    box-shadow: 0 0 5px rgba(0,120,215,0.3);
}

/* 버튼 영역 */
.actions {
    text-align: center;
    margin-top: 25px;
}
.actions input[type="submit"],
.actions input[type="reset"] {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px;
    font-size: 1rem;
}

/* 전송 버튼 (Primary) */
.actions input[type="submit"].primary {
    background-color: #0078d7;
    color: white;
}
.actions input[type="submit"].primary:hover {
    background-color: #005fa3;
}

/* 리셋 버튼 */
.actions input[type="reset"] {
    background-color: #eee;
}
.actions input[type="reset"]:hover {
    background-color: #ddd;
}

/* ID 기반 버튼 스타일 (중복 정의되어 있었음) */
#btnSubmit {
    font-size: 25px;
    min-width: 200px;
    max-width: 800px;
    border-radius: 8px;
    background-color: #3E7EC1; /* #3E7EC1 */
    color: white;
    font-weight: bold;
    border: none;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

#btnClear {
    background: none;
    border: none;
    color: #5a5a5a;
    font-size: 16px;
    cursor: default;
    height: 50px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 완료 메시지 */
.thankyou_message {
    text-align: center;
    color: green;
    margin-top: 20px;
}

/* ========================================================
   [Recruit Page Final v10]
   1. 순서 변경: 영어 제목(Top) / 일본어 설명(Bottom)
   2. 정렬: 텍스트 왼쪽 정렬 + 시작점 일치
   3. 디자인: 일본어 그림자 제거, 투명 배경
   ======================================================== */

@media screen and (max-width: 900px) {

    /* 1. 컨테이너 설정 */
    .wave-container {
        transform: scale(1) !important;
        position: relative !important;
        height: 400px !important; /* 높이 유지 */
        width: 100% !important;
        margin-top: 40px !important;
        margin-bottom: 20px !important;
        left: 0 !important;
        display: block !important;
    }

    /* 2. 개별 원(Wave) 래퍼 설정 */
    .wave1, .wave2, .wave3 {
        position: absolute !important;
        width: 42vw !important;
        height: 42vw !important;
        max-width: 170px !important;
        max-height: 170px !important;

        /* 텍스트 박스를 원의 정중앙에 배치 */
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    /* --- 원 위치 (삼각형 구도 겹침 유지) --- */
    .wave1 {
        top: 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1 !important;
    }
    .wave2 {
        top: 130px !important;
        left: 5% !important;
        right: auto !important;
        bottom: auto !important;
        z-index: 2 !important;
    }
    .wave3 {
        top: 130px !important;
        left: auto !important;
        right: 5% !important;
        bottom: auto !important;
        transform: none !important;
        z-index: 3 !important;
    }

    /* 3. 텍스트 컨테이너 (h2) 설정 */
    .wave-container h2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important; /* ★ 왼쪽 정렬 (시작점 일치) ★ */
        justify-content: center !important;

        position: relative !important;
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;

        /* 영어 제목 스타일 */
        font-size: 1.1rem !important;
        white-space: nowrap !important;
        text-shadow: 1px 1px 2px rgba(255,255,255, 0.8) !important;
        z-index: 10 !important;
    }

    /* 4. 기존 ::before 숨김 (순서 변경을 위해 사용 안 함) */
    .tooltip-link::before {
        content: none !important;
        display: none !important;
    }

    /* 5. ::after로 일본어 설명 재정의 (★영어 제목 아래로 배치됨★) */
    .tooltip-link::after {
        content: attr(data-tooltip);
        position: relative !important;
        display: block !important;

        /* 디자인: 투명 배경, 그림자 제거 */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-top: 5px !important; /* 영어 제목과의 간격 */

        /* 텍스트 스타일 */
        color: #000 !important; /* 검은색 */
        font-weight: 700 !important;
        font-size: 11px !important;
        line-height: 1.3 !important;

        /* ★ 핵심: 텍스트 왼쪽 정렬 ★ */
        text-align: left !important;
        width: max-content !important;
        max-width: 140px !important;
        white-space: normal !important;

        /* ★ 핵심: 그림자 제거 ★ */
        text-shadow: none !important;

        /* 항상 보이기 */
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* PC 호버 무시 */
    .tooltip-link:hover::after {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 배경 원 위치 초기화 */
    .wave-one, .wave-two {
        position: absolute !important;
        top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
        margin: auto !important;
        width: 100% !important; height: 100% !important;
        z-index: -1 !important;
    }

    /* 하단 여백 */
    .fadesection .hr-17 {
        margin-top: 30px !important;
    }
}

/* ========================================================
   [Missing Styles] 텍스트 박스 (Service/Company 페이지용)
   ======================================================== */
.TxtBox01 {
    margin: 5em 0em;
    padding: 5em;
    border-radius: 30px;
    background-color: #c9dbf8;
    display: flex;
    align-items: center;
    gap: 4.5em;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
}
.TxtBox01 .icon img {
    width: 400px;
    height: auto;
}
.TxtBox01 .text-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.TxtBox01 .title {
    margin: 0;
    font-weight: bold;
    font-size: 1.8rem;
    color: #002d4b;
}
.TxtBox01 .text {
    margin-top: 0.5em;
    line-height: 1.8;
}

@media screen and (max-width: 900px) {
    .TxtBox01 {
        padding: 5em;
        display: flex;
        align-items: flex-start;
    }
}
@media screen and (max-width: 700px) {
    .TxtBox01 .icon {
        display: none;
    }
}

.txtbox02 {
    margin: 5em 0em;
    padding: 1em 5em;
    border-radius: 30px;
    background-color: #c9dbf8;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
}


/* ========================================================
   [Missing Styles] PC/모바일 표시 제어 유틸리티
   ======================================================== */
.pcVisible { display: block; }
.SMTVisible { display: none; }

@media screen and (max-width:901px) {
    .pcVisible { display: none; }
    .SMTVisible { display: block; }
}


/*---------------------------------------------------------------------------*/
/* GAON作業 */
/* グラフ設定 */
/* --- 1. 社員情報 (도넛 그래프) --- */
#graph {
    width: 40vw;
    max-width: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    /* ★ 핵심 수정: 상하 여백 분리 조정 ★ */
    margin-top: -5rem;      /* 상단 (노란색 영역) 유지 */
    margin-bottom: -10rem;  /* 하단 (녹색 영역) -> 더 많이(-10rem) 당겨서 빈 공간 제거 */
    margin-left: auto;
    margin-right: auto;

    gap: 0 15vw;
}

@media screen and (max-width: 900px) {
    #graph {
        width: 40vw;
        height: 50vw;
        gap: 0 5vw;
        /* 모바일에서도 하단 여백을 당겨줍니다 */
        margin-bottom: -1rem;
    }
}
/* --- 2. 経験分野 (가로 막대 1) --- */
#graph2 {
    width: 100%;
    height: 40vh;
    max-width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -4rem auto;
}

@media screen and (max-width: 900px) {
    #graph2 {
        width: 100%;
        height: 40vh;
    }
}

/* --- 3. 保有技術 (가로 막대 2) --- */
#graph3 {
    width: 100%;
    height: 30vw;
    max-width: 100vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -4rem;
    margin-bottom: 4rem;
}

@media screen and (max-width: 900px) {
    #graph3 {
        width: 100%;
        height: 50vw;
    }
}

/* ========================================================
   [Mobile Fix] Footer Policy Links 1행 정렬
   ======================================================== */
@media screen and (max-width: 900px) {
    .footer-policy-links {
        /* ★ 핵심: 세로(column)를 가로(row)로 변경하여 1행으로 만듦 ★ */
        flex-direction: row !important;

        /* 줄바꿈 방지 */
        flex-wrap: nowrap !important;

        /* 링크들을 중앙에 배치 */
        justify-content: center !important;

        /* 링크 사이 간격 조정 */
        gap: 10px !important;

        /* 폰트 사이즈를 조금 줄여 좁은 화면에서도 1행에 들어가게 함 */
        font-size: 0.8rem !important;
        padding: 0 10px !important; /* 양옆 패딩 */

        /* 상단 마진을 추가하여 Copyright 부분과 분리 */
        margin-top: 20px !important;
    }

    /* 개별 링크의 줄바꿈 방지 */
    .footer-policy-links a {
        white-space: nowrap !important;
    }
}

/* ========================================================
   [JS/CSS Fix] Homepage Hamburger Click Bug
   ======================================================== */

/* Header 전체의 Z-index를 최상위로 설정하여 오버랩 방지 */
header {
    z-index: 9999 !important;
}

/* 햄버거 아이콘 자체의 Z-index를 최상위로 올림 */
#menubar_hdr {
    z-index: 10000 !important;
}

/* 만약 PC에서 #mainimg가 헤더를 가리는 경우를 대비해 하단으로 밀기 */
@media screen and (min-width: 901px) {
    #mainimg {
        /* 헤더 높이(70px)만큼 아래로 밀기 */
        padding-top: 70px !important;
        height: calc(100vh - 70px) !important; /* 높이 조정 */
    }
}
/* 모바일에서는 #mainimg가 이미 70vh로 설정되어 있으므로 충돌 방지 */
@media screen and (max-width: 900px) {
    #mainimg {
        padding-top: 0 !important;
        z-index: 1; /* 히어로 섹션 Z-index 낮춤 */
    }
}

/* ========================================================
   [Mobile Only] Sub header (会社情報 / 事務分野 / 採用情報 / お問い合わせ)
   251117 레이아웃 복원
   ======================================================== */
@media screen and (max-width: 900px) {

    /* 서브 헤더 높이 축소 (이미지 영역 얕게) */
    #mainimg2,
    #mainimg3,
    #mainimg4,
    #mainimg5 {
        height: 25vh;
    }

    /* 서브 헤더 타이틀 폰트 확대 + 중앙 정렬 */
    #mainimg2 h1,
    #mainimg3 h1,
    #mainimg4 h1,
    #mainimg5 h1 {
        font-size: 9vw;       /* 251117과 동일 */
        line-height: 1.5;
        font-weight: 500;
        padding-left: 0;
        text-align: center;
        white-space: nowrap;
    }
}
/* ========================================================
   [Company Page Fix] 인증 마크 설명 문구 스타일 (최종)
   ======================================================== */
.cert-description {
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-top: 0 !important;      /* 위쪽 여백 제거 */
    margin-bottom: 5px !important; /* 아래쪽 여백 최소화 */
    display: block;
    line-height: 1.4;
    white-space: pre-wrap; /* 줄바꿈 문자(\n) 등을 인식하게 함 */
    text-align: left !important;
}

@media screen and (max-width: 900px) {
    .cert-description {
        font-size: 0.95rem;
    }

    .cert-description {
        width: 100%; /* 너비 확보 */
        display: inline-block; /* 블록 속성 부여 */
    }
}

/* ========================================================
   [Mobile Fix Final v11] 로고 크기 확대 & 텍스트 바짝 붙이기
   ======================================================== */

@media screen and (max-width: 900px) {

    /* 1. 로고 컨테이너: 높이 확보 */
    html body #mainimg .logo-container {
        width: 200% !important;
        height: 320px !important;
        position: relative !important;
        display: block !important;
        margin: 0 auto !important;
        opacity: 1 !important;
        visibility: visible !important;
        z-index: 50 !important;
        overflow: hidden !important;
    }

    /* 2. 이미지 공통 설정: 75vw */
    html body #mainimg .logo-container img {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 75vw !important;
        max-width: 800px !important;
        height: auto !important;
        opacity: 0;
    }

    /* --- 애니메이션 --- */
    html body #mainimg .logo-container .logoL {
        animation: flyInLeft 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    }
    html body #mainimg .logo-container .logoR {
        animation: flyInRight 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    }
    html body #mainimg .logo-container .logoC {
        animation: flyInRight 2.5s cubic-bezier(0.19, 1, 0.22, 1) 0.2s forwards !important;
    }

    /* 3. 제목 (We are GAON) 위치 조정 */
    #mainimg h1 {
        margin-top: -100px !important;  /* 위로 당겨서 로고와 붙임 */

        /* ★ 핵심: 제목 아래쪽 여백을 5px로 줄임 ★ */
        margin-bottom: 3px !important;

        padding-top: 0 !important;
        position: relative;
        z-index: 60;
    }

    /* 4. 설명글 (GAON(ガオン)は...) 위치 조정 */
    #mainimg p {
        /* ★ 핵심: 설명글 위쪽 여백 완전 제거 ★ */
        padding-top: 0 !important;
        margin-top: -20px !important;

        position: relative;
        z-index: 60;
    }
}

/* --- 키프레임 정의 --- */
@keyframes flyInLeft {
    0% { opacity: 0; transform: translate(-120vw, -50%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes flyInRight {
    0% { opacity: 0; transform: translate(120vw, -50%); }
    100% { opacity: 1; transform: translate(-50%, -50%); }
}

/* ========================================================
   [Mobile Fix] 서브페이지 헤더-본문 간격 축소
   ======================================================== */
@media screen and (max-width: 900px) {

    /* 1. 본문 영역(#contents)의 상단 여백을 80px -> 20px로 줄임 */
    #contents {
        padding-top: 20px !important;
    }

    /* 2. "会社概要" 같은 첫 번째 제목의 위쪽 여백도 제거하여 더 바짝 붙임 */
    .fadesection:first-child h1.titleH1 {
        margin-top: 0 !important;
    }
}

/* ========================================================
   [Company Page Fix] Access Section Spacing
   본사 지도(위)와 후추 오피스(아래) 사이의 간격을 넓힘
   ======================================================== */
.access-item {
    /* 각 지점(본사, 지사) 정보 덩어리마다 아래쪽에 여백 추가 */
    margin-bottom: 6rem !important; /* 약 96px 정도 띄움 */
}

/* 마지막 요소(후추 오피스) 아래에는 불필요한 여백 제거 */
.access-item:last-child {
    margin-bottom: 0 !important;
}

/* 모바일에서는 간격을 조금 줄여서 적당하게 */
@media screen and (max-width: 900px) {
    .access-item {
        margin-bottom: 4rem !important; /* 약 64px */
    }
}

/* ========================================================
   [Company Page Fix] 테이블 헤더 모바일 줄바꿈
   ======================================================== */

/* PC: 줄바꿈 없이 한 줄로 표시 */
.mobile-break {
    display: inline;
}

/* 모바일: 블록 요소로 변환하여 강제 줄바꿈 */
@media screen and (max-width: 900px) {
    .mobile-break {
        display: block;
    }

    /* 테이블 헤더 줄 간격 조정 (겹침 방지) */
    .ta1 th {
        line-height: 1.4 !important;
    }
}