
/* ===== contact.html ===== */

:root{
  --main:#0d4ea6;
  --sub:#2f6fcb;
  --light:#eef5ff;
  --text:#1d3557;
  --header-height-desktop: 160px;
  --header-height-1024: 100px;
  --header-height-768: 80px;
  --header-height-480: 70px;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ font-family:-apple-system,BlinkMacSystemFont,'Yu Gothic',sans-serif; color:var(--text); background:#fff; line-height:1.8; }
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:1200px; margin:auto; padding:0 24px; }

/* Header */
header{ position:fixed; top:0; left:0; width:100%; z-index:1000; background:rgba(255,255,255,.94); backdrop-filter:blur(8px); border-bottom:1px solid rgba(13,78,166,.08); transition:.4s; }
header.scrolled{ box-shadow:0 10px 30px rgba(13,78,166,.08); }
.head{ height:var(--header-height-desktop); display:flex; align-items:center; justify-content:space-between; }
.logo img{ height:calc(var(--header-height-desktop) - 20px); }
.nav-menu{ display:flex; flex:1; justify-content:flex-end; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero-btns { display: flex; gap: 10px; }
.hero-btn { display: block; width: 180px; padding: 8px 10px; border-radius: 2px; text-align: center; transition: all 0.3s ease; border: 1px solid var(--text); line-height: 1.2; }
.hero-btn.client { background: var(--text); color: #fff !important; }
.hero-btn.staff { background: transparent; color: var(--text) !important; }
.hero-btn-label { display: block; font-size: 8px; margin-bottom: 1px; opacity: 0.8; letter-spacing: 0.15em; }
.hero-btn-text { display: block; font-size: 12px; font-weight: bold; }
.left-menu{ display:flex; gap:34px; font-size:16px; letter-spacing:.08em; margin-left:50px; align-items: center; }
.left-menu a{ text-align:center; line-height:1.2; }
.left-menu a small{ font-size:10px; color:#666; display:block; }
.dropdown { position: relative; display: flex; }
.dropdown-content { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; box-shadow: 0 10px 30px rgba(13,78,166,0.1); min-width: 140px; padding: 10px 0; z-index: 1001; border-radius: 4px; border: 1px solid rgba(13,78,166,0.05); }
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content a { display: block; padding: 8px 20px; font-size: 12px; }
.dropdown-content a:hover { background: var(--light); color: var(--main); }
.menu-toggle{
  display:none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor:pointer;
  margin-left:20px;
}
.menu-toggle span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: var(--main);
  transition: .3s;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 9px; }
.menu-toggle span:nth-child(3) { top: 18px; }

/* Hamburger Animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Hero */
.hero-sub{ height:40vh; min-height:300px; background:url('../images/jpg/img7.png') center/cover no-repeat; position:relative; display:flex; align-items:center; margin-top:160px; }
.hero-sub:before{ content:''; position:absolute; inset:0; background:rgba(13,78,166,0.4); }
.hero-sub h1{ position:relative; z-index:1; color:#fff; font-size:48px; font-weight:300; letter-spacing: 0.1em; }
.hero-sub{ margin-top:var(--header-height-desktop); }
/* Breadcrumb */
.breadcrumb-nav { padding: 15px 24px; background-color: #f8f8f8; border-bottom: 1px solid #eee; font-size: 14px; color: #666; }
.breadcrumb { list-style: none; display: flex; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: " > "; padding: 0 8px; color: #999; }
.breadcrumb li a { color: var(--main); }

/* Form Styles */
.contact-section { padding: 80px 0; }
.ttl { font-size: 32px; font-weight: 300; color: var(--main); margin-bottom: 40px; text-align: center; }
.form-wrap { max-width: 900px; margin: 0 auto; background: #fff; }
.form-table { width: 100%; border-collapse: collapse; margin-bottom: 40px; }
.form-table th, .form-table td { padding: 24px; border-bottom: 1px solid #eee; }
.form-table th { width: 30%; text-align: left; background: #f8faff; color: var(--main); vertical-align: top; }
.tag-req { background: #e74c3c; color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 2px; margin-left: 10px; vertical-align: middle; }
.form-table input[type="text"], .form-table input[type="email"], .form-table select, .form-table textarea {
  width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; font-family: inherit;
}
.form-table textarea { height: 200px; resize: vertical; }
.submit-btn {
  display: block; width: 320px; margin: 40px auto; padding: 20px; background: var(--main); color: #fff;
  border: none; border-radius: 4px; font-size: 18px; font-weight: bold; cursor: pointer; transition: .3s;
}
.submit-btn:hover { background: var(--sub); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13,78,166,.2); }

.privacy-agreement { text-align: center; margin: 30px 0; }
.privacy-agreement p { font-size: 14px; margin-bottom: 10px; color: #666; }
.privacy-agreement a { color: var(--main); text-decoration: underline; }
.privacy-agreement label { font-weight: bold; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; }
.privacy-agreement input[type="checkbox"] { width: auto; height: auto; margin: 0; }

.left-menu a.is-active { color: var(--main); border-bottom: 2px solid var(--main); padding-bottom: 3px; }

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 120px;
  right: 20px;
  z-index: 1002;
  background: var(--main);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.scroll-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}
.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

footer{ padding:42px 0; border-top:1px solid rgba(13,78,166,.08); }
.foot{ color:#678; font-size:13px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.foot-menu{ display: flex; gap: 24px; }

@media(max-width:1024px){
  .head{height:var(--header-height-1024);}
  .logo img{height:calc(var(--header-height-1024) - 20px);}
  .hero-sub{margin-top:var(--header-height-1024);}
  .left-menu{flex-direction:column; gap:10px; margin-left:0; font-size:12px;}
}

@media(max-width:768px){
  .head{height:var(--header-height-768);}
  .logo img{height:calc(var(--header-height-768) - 10px);}
  .hero-sub{margin-top:var(--header-height-768);}
  .menu-toggle{display:block;}
  .nav-menu{display:none;}
  .nav-menu.active{display:flex; flex-direction:column; position:absolute; top:100%; left:0; width:100%; background:#fff; padding:20px; box-shadow:0 10px 30px rgba(0,0,0,.1); z-index:1000; align-items:flex-start; max-height:calc(100vh - var(--header-height-768)); overflow-y:auto;}
  .left-menu{display:none; flex-direction:column; gap:5px; width:100%; text-align:left; margin-top:15px; border-top:1px solid rgba(13,78,166,0.08); padding-top:15px; margin-left: 0;}
  .nav-menu.active .left-menu{display:flex;}
  .hero-btns{flex-direction:column; gap:12px;}
  .hero-btn{width:100%; padding:14px 15px;}
  .hero-btn-label{font-size:10px; margin-bottom:2px;}
  .hero-btn-text{font-size:13px; font-weight:bold;}
  .dropdown.open .dropdown-content {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 10px 20px 0;
  }
  .form-table th, .form-table td { display: block; width: 100%; }
  .form-table th { background: #f0f4f9; padding: 10px 24px; }
}

@media(max-width:480px){
  .head{height:var(--header-height-480); padding:0 12px;}
  .logo img{height:calc(var(--header-height-480) - 20px);}
  .hero-sub{margin-top:var(--header-height-480); min-height:280px;}
  .ttl{font-size:24px;}
  .submit-btn, .back-btn { width: 100%; padding: 15px; font-size: 16px; }
  .wrap{padding:0 12px;}
  .left-menu{gap:8px; font-size:11px;}
  .foot-menu { justify-content: center; flex-wrap: wrap; gap: 8px; font-size: 11px; }
}
