
/* ===== index.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);
}

.sub-menu{
  display:flex;
  gap:20px;
  font-size:12px;
  justify-content:flex-end;
}

.sub-menu a:hover{
  color:var(--main);
}

.left-menu{
  display:flex;
  gap:34px;
  font-size:16px;
  letter-spacing:.08em;
  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;
  transition: .3s;
}

.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; }

.nav-menu{
  display:flex;
  flex:1;
  justify-content:flex-end;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.nav-menu.active{
  display:flex;
  flex-direction:column;
  position:absolute;
  top:var(--header-height-768);
  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-desktop));
  overflow-y:auto;
}

.contact{
  padding:12px 20px;
  border:1px solid var(--main);
  border-radius:0;
  color:var(--main);
}

.contact:hover{
  background:var(--main);
  color:#fff;
}

/* Hero */
.hero{
  height:55vh;
  min-height:450px;
  background:url('./images/jpg/img1.png') center/cover no-repeat;
  position:relative;
  margin-top:var(--header-height-desktop);
}

.hero::after{
  content:'';
  position:absolute;
  inset:0;
  background:#fff;
  opacity:0;
  transition:opacity .6s ease-in-out;
  pointer-events:none;
  z-index:0;
}

.hero.whiteout::after{
  opacity:1;
}

.hero:before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(to right, rgba(255,255,255, 0.95) 0%, rgba(255,255,255, 0.7) 50%, rgba(255,255,255, 0) 100%);
}

.hero-inner{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  align-items:center;
}

.copy{
  max-width:620px;
}

.copy > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.copy .sub { animation-delay: 0.3s; }
.copy h1 { animation-delay: 0.5s; }
.copy p { animation-delay: 0.7s; }

.sub{
  font-size:14px;
  letter-spacing:.3em;
  color:var(--sub);
  font-weight: 700;
}

.copy h1{
  font-size:42px;
  font-weight:600;
  line-height:1.25;
  margin:18px 0 5px;
  color: var(--text);
}

.copy p{
  font-size:13px;
  color:var(--main);
  letter-spacing: 0.5em;
  font-weight: 600;
}

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

/* Hero Buttons */
.hero-btns {
  display: flex;
  gap: 10px;
}
.hero-btn {
  display: block;
  width: 180px;
  padding: 8px 10px;
  border-radius: 2px;
  text-align: center;
  text-decoration: none;
  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:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 53, 87, 0.1);
  opacity: 0.8;
}
.btn {
  display:inline-block;
  padding:16px 34px;
  background:var(--main);
  color:#fff;
  border-radius:999px;
  transition:.3s;
}
.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; }

.btn:hover{
  background:var(--sub);
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(13,78,166,.20);
}

/* Section */
section{
  padding:110px 0;
}

.ttl{
  font-size:32px;
  font-weight:300;
  color:var(--main);
  margin-bottom:5px;
}

.lead{
  color:#667;
  max-width:720px;
  margin-bottom:48px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.card img{
  height:320px;
  object-fit:cover;
  transition:1.4s;
}

.card:hover img{
  transform:scale(1.06);
}

.card h3{
  font-size:24px;
  margin:18px 0 8px;
}

.card p{
  color:#666;
  font-size:14px;
}

.bg{
  background:var(--light);
}

.split{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:56px;
  align-items:center;
}

.numrow{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  text-align:center;
  margin-top:44px;
}

.num{
  font-size:52px;
  font-weight:200;
  color:var(--main);
}

.small{
  font-size:12px;
  color:#777;
}

.cta{
  padding:90px;
  border:1px solid rgba(13,78,166,.15);
  text-align:center;
}

.cta h2{
  font-size:44px;
  color:var(--main);
  margin-bottom:14px;
}

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;
}

.foot-menu a:hover{
  color: var(--main);
}

/* Animation */
.fade{
  opacity:0;
  transform:translateY(40px);
  transition:all .9s ease;
}

.fade.show{
  opacity:1;
  transform:translateY(0);
}

/* Form */
input,textarea{
  padding:14px;
  border:1px solid #ccc;
  width:100%;
  font-size:16px;
}

input:focus,textarea:focus{
  outline:none;
  border:1px solid var(--main);
}

.map-container {
  margin-bottom: 60px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(13,78,166,.1);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* Access & License Styling */
.access-item {
  margin-bottom: 50px;
  text-align: center;
}
.access-item-ttl {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  color: var(--main);
  border-bottom: 1px solid var(--main);
  padding-bottom: 3px;
  margin-bottom: 15px;
  letter-spacing: 0.2em;
}
.access-item-content {
  font-size: 15px;
  color: #556;
  line-height: 1.8;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 30px;
  text-align: left;
  max-width: 800px;
  margin: auto;
}
.client-grid div {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 4px;
}

/* Responsive */
@media(max-width:1024px){
  .wrap{padding:0 20px;}
  .grid{grid-template-columns:1fr 1fr;}
  .split{gap:40px;}
  .ttl{font-size:28px;}
  .copy h1{font-size:36px;}
  .numrow{gap:16px;}
  .cta{padding:60px 40px;}
  section{padding:80px 0;}
}

@media(max-width:768px){
  .head{height:80px;}
  .logo img{height:60px;}
  .hero{margin-top:80px; min-height:300px;}
  .hero-inner{padding:30px 0;}
  .copy{max-width:100%;}
  .sub{font-size:12px;}
  .copy h1{font-size:28px; margin:12px 0 5px;}
  .copy p{font-size:12px;}
  .grid,.split,.numrow{grid-template-columns:1fr;}
  .split{gap:30px;}
  .ttl{font-size:24px; margin-bottom:3px;}
  .lead{font-size:14px; margin-bottom:32px;}
  .card img{height:240px;}
  .card h3{font-size:20px; margin:14px 0 6px;}
  .card p{font-size:13px;}
  .btn{padding:14px 28px; font-size:15px;}
  .hero-btns{flex-direction:column; gap:12px; margin-top:0;}
  .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;}
  .num{font-size:42px;}
  .small{font-size:11px;}
  .numrow{gap:16px; margin-top:32px;}
  .cta{padding:50px 30px; margin:0 20px;}
  .cta h2{font-size:32px; margin-bottom:12px;}
  .cta p{font-size:14px;}
  section{padding:60px 0;}
  input,textarea{padding:12px; font-size:16px;}
  .map-container iframe{height:300px;}
  .client-grid{grid-template-columns:1fr; gap:6px; max-width:100%; padding:0 20px;}
  .foot-menu{gap:16px; font-size:12px;}
  .left-menu{display:none; flex-direction:column; gap:15px; width:100%; text-align:right; margin-top:15px; border-top:1px solid rgba(13,78,166,0.08); padding-top:15px;}
  .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 - 80px); overflow-y:auto;}
  .nav-menu.active .left-menu{display:flex;}
  .wrap{padding:0 16px;}
}

@media(max-width:480px){
  .head{height:70px;}
  .logo img{height:50px;}
  .hero{margin-top:70px; min-height:280px;}
  .hero::before{background:linear-gradient(to right, rgba(255,255,255, 0.98) 0%, rgba(255,255,255, 0.85) 50%, rgba(255,255,255, 0) 100%);}
  .copy{max-width:100%; padding:0;}
  .sub{font-size:11px; letter-spacing:0.2em;}
  .copy h1{font-size:22px; line-height:1.3; margin:10px 0 5px; font-weight:700;}
  .copy p{font-size:11px; letter-spacing:0.3em;}
  .hero-btns{gap:8px;}
  .hero-btn{padding:12px 10px; font-size:12px;}
  .hero-btn-label{font-size:9px;}
  .hero-btn-text{font-size:12px;}
  .ttl{font-size:20px; margin-bottom:2px;}
  .lead{font-size:13px; margin-bottom:24px;}
  .grid{gap:16px;}
  .card img{height:200px;}
  .card h3{font-size:16px; margin:10px 0 5px;}
  .card p{font-size:12px;}
  .numrow{gap:12px; margin-top:24px;}
  .num{font-size:32px;}
  .small{font-size:10px;}
  .btn{padding:12px 24px; font-size:14px;}
  .cta{padding:40px 20px; margin:0;}
  .cta h2{font-size:24px; margin-bottom:10px;}
  .cta p{font-size:13px;}
  section{padding:50px 0;}
  .left-menu{gap:10px;}
  .wrap{padding:0 12px;}
  input,textarea{padding:11px; font-size:16px; border-radius:4px;}
  .map-container iframe{height:250px;}
  .sub-menu{gap:12px; font-size:11px;}
  .foot{font-size:12px; gap:16px;}
  .foot-menu{gap:12px; font-size:11px;}
  .access-item{margin-bottom:40px;}
  .access-item-ttl{font-size:12px;}
  .access-item-content{font-size:13px;}
}

/* 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); }

/* Mobile Dropdown */
@media(max-width:980px){
  .dropdown.open .dropdown-content {
    display: block;
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 10px 20px 0;
  }
}
/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 120px; /* Position above sticky-contact on desktop */
  right: 20px;
  z-index: 1002; /* Ensure it's above sticky-contact */
  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;
}
.scroll-to-top svg {
  width: 24px;
  height: 24px;
}
