/* Normal */
@font-face {
  font-family: 'Urbanist';
  src: url('../source/txt/Urbanist-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Italic */
@font-face {
  font-family: 'Urbanist';
  src: url('../source/txt/Urbanist-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ===== Japanese typography spacing ===== */
body.lang-jp .about-text p,
body.lang-jp .message-text p,
body.lang-jp .address-info p,
body.lang-jp .recruit-desc,
body.lang-jp .contact-desc {
  line-height: 1.4;      /* 行距 */
  margin-bottom: 1.4em;  /* 段距 */
  font-weight: 600;
}

/* Message 區塊稍微再鬆一點 */
body.lang-jp .message-text p {
  line-height: 1.0;
}

body {
  padding-top: 56px;
}


html, body {
  overflow-x: hidden;
  margin: 0;
}

/* ================= Header ================= */
.header {
  position: fixed;        /* ⭐ 關鍵 */
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ddd;
  z-index: 9999;          /* ⭐ 壓過所有區塊 */
}



.nav {
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 25px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  margin-left: auto;
  font-family: 'Urbanist', sans-serif;
}

.nav-menu a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 16px;
}

.lang-icon {
  height: 24px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.menu-toggle img {
  height: 24px;
}

/* ================= Mobile Menu ================= */
/* ================= Mobile Menu (Slide from right) ================= */

/* 預設隱藏 */
/* ================= Mobile Menu ================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;

  width: 60%;
  height: 100vh;

  background: #008AC8;
  list-style: none;
  margin: 0;
  padding: 100px 24px 24px;

  display: flex;
  flex-direction: column;
  gap: 24px;

  /* ⭐ 關鍵：完全隱藏狀態 */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform 0.35s ease, opacity 0.25s ease;
  z-index: 9998;
}

/* 展開狀態 */
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* 選單文字 */
.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Urbanist', sans-serif;
  line-height: 2;

}


/* ================= Toggle Icon ================= */

.menu-toggle {
  position: relative;
  z-index: 9999;
}

.menu-toggle img {
  height: 24px;
}

/* 預設顯示 menu icon */
.icon-close {
  display: none;
}

/* 打開狀態切換 icon */
.menu-toggle.active .icon-menu {
  display: none;
}

.menu-toggle.active .icon-close {
  display: block;
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu.open {
    display: block;
  }
}

/* ================= Slider ================= */
.slider {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide video,
.slide img {
  width: 100%;
  display: block;
  background: #000;
}

/* =================================================
   ABOUT TITLE（獨立滿版標題區）
================================================= */
.about-title-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;        /* 防止橫向爆 */
  background: #fff;
}

.about-heading {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  white-space: nowrap;
  margin: 0;
  line-height: 0.8;
  font-size: 9.5vw;
  color: #000;
  display: block;
  text-align: center;

  transform: scale(1.1);
}



.about-title-section .scroll-icon {
  display: block;
  width: 60px;          /* 依你的圖調整 */
  height: auto;
  margin: 24px auto 24px;  /* 置中 + 與標題距離 */

  pointer-events: none; /* 純裝飾，避免誤點 */
}

@media (max-width: 768px) {
  .about-title-section .scroll-icon {
    display: none;
  }
}

@media (min-width: 768px) {

  .about-title-section .scroll-icon {
  width: 40px;        
  margin: 24px auto 12px;  

}   
}

@media (min-width: 1024px) {

  .about-title-section .scroll-icon {
  width: 80px;        
  margin: 36px auto 24px;  
}   
}



/* =================================================
   ABOUT CONTENT（滿版背景＋內容收斂）
================================================= */
.about-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #008AC8;

  overflow: hidden;  /* 隱藏不超出範圍 */
}


/* =================================================
   ABOUT CONTENT
================================================= */

/* ================= Mobile ================= */

.about-content {
  position: relative;
  padding: 48px 88px;
  color: #fff;
  font-family: 'Urbanist', sans-serif;
  overflow: visible;
}

/* 裝飾圓 */
.about-content::before {
  content: "";
  position: absolute;
  z-index: 0;

  width: clamp(200px, 28vw, 360px);
  height: clamp(200px, 28vw, 360px);

  top: -16vw;
  left: -16vw;

  background: url("../source/Ellipse.png") no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* 文字層 */
.about-block,
.about-text {
  position: relative;
  z-index: 1;
}

/* ================= 標題 ================= */

.about-block {
  margin-bottom: 32px;
}

.about-block h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.about-block h3:first-child {
  font-size: 32px;
  letter-spacing: 0.02em;
  text-align: left;
}

.about-block h3:last-child {
  font-size: 32px;
  margin-top: 12px;
  text-align: right;
}

/* ================= 內文（Mobile 單欄） ================= */

.about-text {
  font-size: 11.5px;
  line-height: 1.45;
}

.about-text p {
  margin: 0 0 24px;
}

.about-text .cap {
  float: left;
  font-size: 34px;
  line-height: 0.9;
  font-weight: 550;
  margin-right: 8px;
  color: #fff;
}

/* =================================================
   Tablet / iPad（核心修正在這）
================================================= */

@media (min-width: 768px) and (max-width: 1023px) {

  .about-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(32px, 4vw, 64px);
    padding: 80px 7vw;
    align-items: start;
  }

  .about-content::before {
    width: 26vw;
    height: 26vw;
    top: -8vw;
    left: -8vw;
  }

  /* 標題不要跟著 vw 爆 */
  .about-block h3:first-child,
  .about-block h3:last-child {
    font-size: 42px;
    text-align: left;
  }

  .about-block h3:last-child {
    margin-top: 16px;
  }

  /* ⭐ 關鍵：平板不要用 column-count */
  .about-text {
    font-size: 11px;
    line-height: 1.5;
    max-width: 60ch;
  }

  .about-text p {
    margin-bottom: 20px;
  }
}

/* =================================================
   Desktop（雙欄只留在這）
================================================= */

@media (min-width: 1024px) {

  .about-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: clamp(120px, 20vw, 600px);
    padding: 100px 6vw;
    align-items: start;
  }

  .about-content::before {
    width: 26vw;
    height: 26vw;
    top: -8vw;
    left: -8vw;
  }

  /* 標題可大 */
  .about-block h3:first-child,
  .about-block h3:last-child {
    font-size: clamp(72px, 7vw, 110px);
    text-align: left;
  }

  .about-block h3:last-child {
    margin-top: 100px;
  }

  /* 桌機才用雙欄 */
  .about-text {
    column-count: 2;
    column-gap: clamp(32px, 4vw, 48px);
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.5;
  }

  .about-text p {
    break-inside: avoid;
    margin-bottom: 32px;
  }

  .about-text .cap {
    font-size: 40px;
  }
}

/* =================================================
   標題細部字距（你原本的）
================================================= */

.about-heading .word {
  display: inline-block;
}

.about-heading .about-word,
.about-heading .the-word,
.about-heading .company-word {
  letter-spacing: -0.06em;
}

.about-heading .c-blue {
  color: #00a0e9;
}


/* =================================================
   MESSAGE FROM CEO － FINAL (SAFE EQUAL HEIGHT PATCH)
================================================= */

/* 外層：允許裝飾超出 */
.message-section {
  position: relative;
  overflow: visible;
}

/* 中層：只裁切下方滿寬線 */
.message-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* ================= 內容層 ================= */

.message-content {
  position: relative;
  z-index: 1;

  max-width: 1200px;
  margin: 0 auto;

  padding-block: 64px;
  padding-inline: clamp(48px, 6vw, 120px);

  font-family: 'Urbanist', sans-serif;
  color: #000;
}

/* ================= 裝飾（完全不動） ================= */

.message-deco {
  position: absolute;
  top: -60px;
  right: 0;

  width: 120px;
  height: 320px;

  background: url("../source/Intersect.png") no-repeat;
  background-size: contain;

  pointer-events: none;
  z-index: 0;
}

.message-section::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 200px;
  height: 250px;

  background: url("../source/website_RECRUIT_left.png") no-repeat left bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

.message-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;

  width: 200px;
  height: 200px;

  background: url("../source/website_RECRUIT_right.png") no-repeat right bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

/* ================= 文字（原樣） ================= */

.message-title {
  font-size: clamp(36px, 5.5vw, 96px);
  font-weight: 800;
  line-height: 0.8;
  margin: 0 0 32px;
}

.message-lead {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.5;
  max-width: 42ch;
}

.message-text p {
  font-size: clamp(12px, 0.95vw, 18px);
  line-height: 1.1;
  max-width: 42ch;
  margin: 0 0 20px;
}

.message-text .cap {
  float: left;
  font-size: 40px;
  line-height: 0.9;
  font-weight: 600;
  margin-right: 8px;
}

.message-sign {
  margin-top: 32px;
  font-size: clamp(12px, 0.9vw, 14px);
  text-align: left;
}

/* ================= 圖片（原樣） ================= */

.message-text,
.message-image {
  position: relative;
  z-index: 1;
}

.message-image {
  margin-top: 40px;
  text-align: center;

  align-self: start;
  min-height: 1px;
}

.message-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ================= 平板以上：Grid（只改這裡） ================= */

@media (min-width: 768px) {

  .message-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(32px, 5vw, 80px);

    align-items: stretch;   /* ✅ 改：start → stretch */

    padding-block: 80px;
    padding-inline: clamp(64px, 8vw, 160px);
  }

  /* ✅ 新增：文字欄撐滿圖片高度 */
  .message-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
  }

  .message-image {
    order: 1;
    margin-top: 0;
    text-align: left;
  }

  .message-text {
    order: 2;
    text-align: left;
  }

  .message-section::before {
    width: 350px;
  }
}

/* ================= 桌機（完全不動） ================= */

@media (min-width: 1024px) {

  .message-content {
    max-width: 1440px;
    margin: 0 auto;
    padding-inline: clamp(96px, 10vw, 200px);
  }

  .message-deco {
    width: 240px;
    height: 320px;
  }

  .message-section::before {
    width: 450px;
  }

  .message-section::after {
    width: 500px;
    height: 500px;
  }
}


/* ----------------------------------- 第四頁 */

/* ================= SERVICE ================= */
.service-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #008AC8;
  overflow: hidden;
}

.service-content {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 64px 88px;
  font-family: 'Urbanist', sans-serif;
  color: #fff;
  position: relative;
}

.service-title {
  font-size: 10vw;
  /* font-weight: 500; */
  margin:0px 0px;
  /* margin: 0 0 32px; */
}


.service-item {
  position: relative;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.4);
}

.service-item:last-child {
  border-bottom: 2px solid rgba(255,255,255,0.4);
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.4);
}



.service-list {
  display: flex;
  flex-direction: column;
}

.service-item {
  border-top: 1px solid rgba(255,255,255,0.4);
}

.service-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.service-no {
    font-size: 36px;
    opacity: 0.6;
}

.service-name {
  padding-top: 4px;
  font-size: 26px;
  font-weight: 600;
}

.service-sub.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 32px;
  padding-left: 0px; /* 微調用 */
}


.service-sub li {
  list-style: none;
  opacity: 0.7;
}

.service-sub li::before {
  content: "▶";
  margin-right: 6px;
  font-size: 10px;
}


.service-brand {
  position: relative;
  display: flex;
  align-items: center;

  font-size: 22px;
  font-weight: 500;

  padding-right: 48px; /* 給圓圈箭頭留空間 */
}

/* 文字 */
.service-brand .brand-text{
  display: inline-block;
}

.brand-text {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.brand-text:hover {
  text-decoration: underline;
}


/* logo：在文字後 */
.service-brand .brand-logo{
  width: 60px;
  height: 35px;
  object-fit: contain;
  display: block;
}

/* 圓圈 */
.service-brand::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;

  width: 18px;
  height: 18px;

  border: 1.5px solid #fff;
  border-radius: 50%;

  transform: translateY(-50%);
}

/* 箭頭（真正置中） */
.service-brand::before {
  content: "";
  position: absolute;

  right: 12px;   /* 圓半徑 */
  top: 50%;

  width: 5px;
  height: 5px;

  border-top: 1px solid #fff;
  border-right: 1px solid #fff;

  transform: translate(50%, -50%) rotate(45deg);
}

@media (min-width: 768px) {

  .service-sub.grid {
    display: flex;              /* 改為橫向 */
    flex-wrap: nowrap;          /* 不換行成多列 */
    gap: 32px;
  }

  .service-sub.grid li {
    display: flex;
    align-items: flex-start;    /* 文字多行時，頂齊 */
    white-space: normal;        /* ⭐ 允許文字換行 */
    line-height: 1.2;

    max-width: 140px;           /* ⭐ 控制每段寬度，才會像圖那樣斷行 */
  }
}

@media (min-width: 1024px) {

  .service-sub.grid {
    gap: 48px;
  }

  .service-sub.grid li {
    max-width: 180px;
    font-size: 20px;
  }
}



.service-content::after {
  z-index: 0;
  content: "";
  position: absolute;
  top: -120px;
  right: -210px;
  width: 420px;
  height: 100%;
  background: url("../source/service-lines.png") no-repeat;
  background-size: contain;
  opacity: 0.5;
  pointer-events: none;

  transform: rotate(-30deg);
  scale: 1.25;
}

@media (min-width: 768px) {
  .service-content::after {
    top: -140px;
    right: -140px;
    width: 520px;
    scale: 1.75;
    opacity: 0.55;
  }
}

@media (min-width: 1024px) {
  .service-content::after {
    top: -180px;
    right: -260px;
    width: 700px;
    scale: 2;
    opacity: 0.6;
  }
}


.service-title,
.service-list,
.service-item,
.service-head,
.service-sub {
  position: relative;
  z-index: 1;
}



@media (min-width: 768px) {
  .service-content {
    padding: 100px 7vw;
  }
}

@media (min-width: 1024px) {

  .service-sub.grid{
    padding-left: 70px;
  }

  .service-title{
    font-size: 6vw;
  }
  .service-content {
    padding: 80px 6vw;
  }

    .service-no {
    font-size: 60px;
  }
    .service-name {
    font-size: 60px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .service-sub li::before {
  content: "▶";
  margin-right: 6px;
  font-size: 20px;
}


.service-brand {
  position: relative;
  display: flex;
  align-items: center;

  font-size: 42px;
  font-weight: 500;

  padding-right: 48px; /* 給圓圈箭頭留空間 */
}

}

/* ================= NEWS 第五頁 ================= */
.news-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;

  background: linear-gradient(
    90deg,
    #B4E7FE 0%,
    #B4E7FE 10%,
    #ffffff 100%
  );
}

/* ================= 共用（手機） ================= */
.news-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 48px;
  font-family: 'Urbanist', sans-serif;
  position: relative;
  z-index: 1;
}

.news-body {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 64px;
  align-items: start;
  margin-left: -12px;
}

.news-title {
  font-size: 84px;
  font-weight: 800;
  color: #008AC8;
  margin: 0 0 32px;
  position: relative;
  line-height: 1;
}

.news-title::after {
  content: "";
  display: block;
  width: 230px;
  height: 4px;
  background: #008AC8;
  margin-top: -8px;
}

.news-years {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-years li {
  font-size: 18px;
  font-weight: 700;
  color: #008AC8;
  cursor: pointer;
}

.news-item {
  /* margin-bottom: 56px; */
}

.news-item img {
  width: 100%;
  max-width: 560px;
  display: block;
}

.news-text {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  margin-top: 12px;
  color: #008AC8;
}

.news-no {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  font-style: italic;
}

.news-text p {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

/* ================= NEWS 右上角裝飾 ================= */

.news-section::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: clamp(240px, 24vw, 480px);
  height: clamp(240px, 24vw, 480px);

  background: url("../source/website_NEWS.png") no-repeat right top;
  background-size: contain;

  pointer-events: none;
  z-index: 0;   /* 在內容後面 */

  opacity: 0.4;
}

@media (max-width: 767px) {
  .news-section::after {
    display: none;
  }
}


/* ================= 平板 / 桌機（共用基礎） ================= */
@media (min-width: 768px) {

  .news-content {
    max-width: 1400px;
    padding: 40px 72px;
    margin-left: 24px;
  }

  /* TITLE 保留大小 */
  .news-title {
    font-size: 12vw;
    margin-left: 0;
  }

  .news-title::after {
    width: 33vw;
  }

  .news-body {
    grid-template-columns: 60px 1fr; /* 年份欄 */
    gap: 48px;
    margin-left: 0;
  }

  .news-years {
    margin-top: 40px;
  }

  .news-years li {
    font-size: 40px;
    line-height: 3.2;
  }

  .news-panel {
    /* justify-self: end; */
    max-width: 980px;
  }

  .news-item {
    display: grid;
    grid-template-columns: 520px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 72px;
  }

  .news-item img {
    max-width: none;
  }

  .news-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
  }

  .news-no {
    font-size: 56px;
  }

  .news-text p {
    font-size: 20px;
    line-height: 1.35;
    max-width: 420px;
  }
}

/* ================= 平板專用縮小（768–1023） ================= */
@media (min-width: 768px) and (max-width: 1023px) {

  .news-years {
    margin-top: 24px;
  }

  .news-years li {
    font-size: 28px;
    line-height: 2.4;
  }

  .news-panel {
    max-width: 820px;
  }

  .news-item {
    grid-template-columns: 320px 1fr;
    gap: 32px;
    margin-bottom: 56px;
  }

  .news-no {
    font-size: 44px;
  }

  .news-text {
    gap: 10px;
    margin-top: 4px;
  }

  .news-text p {
    font-size: 16px;
    line-height: 1.3;
    max-width: 360px;
  }

  .news-deco {
    width: 200px;     /* 只改這個即可放大縮小 */
    left: -20px;
    bottom: -20px;
    opacity: 0.9;
  }
}

.news-deco {
  position: absolute;
  left: 0;
  width: 200px;
  bottom: 0;
  height: auto;
  pointer-events: none;
  z-index: 0;
}

/* ================= 桌機微調（≥1024） ================= */
@media (min-width: 1025px) {

  .news-body {
    grid-template-columns: 150px 1fr;
    gap: 36px;
  }

  .news-item {
    grid-template-columns: 380px 1fr;
    gap: 56px;
  }

  .news-years li{
   font-size: 32px;
  }

  .news-no {
    font-size: 64px;
  }

  .news-text p {
    font-size: 34px;
    max-width: 440px;
  }

  .news-deco {
    position: absolute;
    width: 360px;    
    left: -20px;
    bottom: -20px;
    opacity: 0.9;
  }
}

/* ================= 左下角裝飾圖（img，用原始比例） ================= */


/* 手機不顯示 */
@media (max-width: 767px) {
  .news-deco {
    display: none;
  }
}

/* ================= CORPORATE ADDRESS（第六頁） ================= */

/* ===== 手機（預設）：完全沿用你目前的設定，不動 ===== */
.address-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  color: #fff;

  position: relative;
  overflow: visible;
}

/* 左上裝飾（你目前手機OK就不動） */
.address-deco {
  position: absolute;
  left: 0px;
  top: -60px;
  width: 180px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.address-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;

  position: relative;
  z-index: 1;
  font-family: 'Urbanist', sans-serif;

  scale: 0.7; /* 你目前手機OK：保留 */
}

/* 右上 landmark（你原本就這樣） */
.address-landmark {
  position: absolute;
  top: 0px;
  right: 30px;
  width: 120px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* 標題 */
.address-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 64px;
}

/* 列表 */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 單筆 */
.address-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
}

/* 地圖 */
.address-map {
  position: relative;
}

.address-map iframe {
  pointer-events: none; /* 🔥 關鍵 */
}

.map-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 2;
}

.address-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* 資訊卡 */
.address-info {
  background: #e5e5e5;
  color: #000;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.address-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

/* ================= CORPORATE ADDRESS（第六頁） ================= */

/* ===== 手機（預設）：完全沿用 ===== */
.address-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #000;
  color: #fff;
  position: relative;
  overflow: visible;
}

/* 左上裝飾 */
.address-deco {
  position: absolute;
  left: 0;
  top: -120px;
  width: 200px;
  height: auto;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.address-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 20px;
  position: relative;
  z-index: 1;
  font-family: 'Urbanist', sans-serif;
  scale: 0.7; /* 手機維持 */
}

/* 右上 landmark */
.address-landmark {
  position: absolute;
  top: 0;
  right: 30px;
  width: 120px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* 標題 */
.address-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 64px;
}

/* 列表 */
.address-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* 單筆 */
.address-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: stretch;
}

/* 地圖 */
.address-map {
  width: 100%;
  aspect-ratio: 4 / 3;   /* 或 16 / 9 */
  overflow: hidden;
}

.address-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


.address-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 資訊卡 */
.address-info {
  background: #e5e5e5;
  color: #000;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.address-info h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.address-info p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

/* ================= 手機補充 ================= */
@media (max-width: 768px) {

  .address-content {
    padding: 12px 20px;
  }

  .address-title {
    font-size: 56px;
    margin-bottom: 48px;
  }

  .address-item {
    grid-template-columns: 1fr 1fr;
  }

  .address-info h3 {
    font-size: 16px;
  }

  .address-info p {
    font-size: 11px;
  }
}

/* =======================================================================
   平板 / 桌機：開始使用 grid
======================================================================= */
@media (min-width: 769px) {

  .address-content {
    scale: 1;
    /* max-width: 1400px; */
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 56px;

    /* ★ 關鍵：讓左右欄同高，提供置中基準 */
    align-items: stretch;
  }

  .address-deco {
    width: 320px;
    top: -120px;
    left: -10px;
    opacity: 0.95;
  }

  .address-landmark {
    width: 140px;
    top: 10px;
    right: 6vw;
    opacity: 0.55;
  }

  /* ★ 標題在左欄上下置中 */
  .address-title {
    grid-column: 1;
    align-self: center;   /* ✅ 上下置中 */
    margin: 0;
    font-size: 54px;
    line-height: 0.95;
  }

  .address-list {
    justify-self: end;
  }

  .address-item {
    grid-template-columns: 220px 200px;
    gap: 0;
  }

  .address-map {
    aspect-ratio: 5 / 4;
  }

  .address-info {
    padding: 22px 24px;
  }

  .address-info h3 {
    font-size: 22px;
    margin-bottom: 12px;
  }

  .address-info p {
    font-size: 13px;
    line-height: 1.55;
  }

  .address-landmark {
    top: 200px;
    left: -60px;
    width: 240px;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
  }
}

/* ================= 桌機再放大（>= 1024px） ================= */
@media (min-width: 1025px) {

  /* 標題在左欄上下置中 */
  .address-title {
    padding-left: 60px;
    align-self: center; /* ✅ 上下置中（grid item） */
    margin: 0;
    font-size: 62px;
    line-height: 0.95;
  }

  /* 你原本的桌機設定保留 */
  .address-item {
    grid-template-columns: 320px 250px;
    gap: 0;
  }

  .address-deco {
    width: 500px;
    top: -340px;
    left: 0px;
    opacity: 0.95;
  }

  .address-landmark {
    top: 200px;
    left: -60px;
    width: 340px;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
  }
  
}



/* ================= RECRUIT 第七頁 ================= */
.recruit-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
  overflow: hidden;
  position: relative;
}

/* 內容容器（手機預設） */
.recruit-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 88px 120px;
  font-family: 'Urbanist', sans-serif;
  position: relative;
}

/* ===== 滿版大標 ===== */
.recruit-title-full {
  width: 100vw;
  /* margin-top: -10px; */
  margin-left: -6px;
  margin-bottom: 32px;
  font-family: 'Urbanist', sans-serif;
  font-size: 25.2vw;
  font-weight: 800;
  line-height: 0.85;
  color: #6fd0ff;
  text-align: left;
}

/* ===== 文案 ===== */
.recruit-text {
  max-width: 520px;
  position: static;       /* ✅ 強制取消任何 absolute */
  transform: none;        /* ✅ 防止你之前用 transform 推 */
}

.recruit-text h3 {
  font-size: 36px;
  font-weight: 700;
  color: #008AC8;
  margin: 0 0 8px;
}

.recruit-lead {
  font-size: 21px;
  font-weight: 800;
  color: #008AC8;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #008AC8;
  display: inline-block;
}

.recruit-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #008AC8;
  margin: 16px 0 0;
}

/* ===== 圖片 ===== */
.recruit-image {
  margin-top: 48px;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.recruit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ================= PAD / 桌機 ================= */

@media (max-width: 768px) {
  .recruit-title-full {
  margin-top: -10px;
  }

}
@media (min-width: 768px) {

  .recruit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    align-items: center;             /* ✅ 垂直置中就是靠這行 */
    padding: 40px 88px 140px;

    /* ✅ 不管 DOM 順序，強制左圖右文 */
    grid-template-areas: "img text";
  }

  .recruit-image {
    grid-area: img;
    margin-top: 0;
    max-width: none;
    justify-self: start;
  }

  .recruit-text {
    grid-area: text;
    max-width: 520px;
    justify-self: start;
    position: static !important;     /* ✅ 直接硬壓掉任何覆蓋 */
  }

  .recruit-title-full {
    font-size: 16vw;
    padding-left: 88px;
  }
}

/* 左下裝飾圖 */
.recruit-section::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 250px;
  height: 250px;

  background: url("../source/website_RECRUIT_left.png") no-repeat left bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

/* 右下裝飾圖 */
.recruit-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;

  width: 200px;
  height: 200px;

  background: url("../source/website_RECRUIT_right.png") no-repeat right bottom;
  background-size: contain;

  pointer-events: none;
  z-index: 1;
}

/* ================= 1920 桌機 ================= */
@media (min-width: 1024px) {

  .recruit-title-full {
    margin-top: 62px;
    margin-bottom: 0;
    font-size: 18vw;
    font-weight: 600;
}

  .recruit-content {
    max-width: 1400px;
    padding-top: 60px;
    column-gap: 96px;
  }

  .recruit-text h3 {
    font-size: 60px;
  }

  .recruit-lead {
    font-size: 36px;
  }

  .recruit-desc {
    font-size: 24px;
    line-height: 1.2;
  }

  /* 左下裝飾圖 */
.recruit-section::before {
  width: 650px;
  height: 650px;
}
/* 右下裝飾圖 */
.recruit-section::after {
  width: 400px;
  height: 400px;
}
}

.recruit-content {
  position: relative; /* ⭐ 必須 */
}



/* 內容在裝飾圖之上 */
.recruit-text,
.recruit-image {
  position: relative;
  z-index: 2;
}

/* =================================================
   CONTACT
================================================= */

.contact-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #2abdff;
  position: relative;
  overflow: hidden;
}

/* ================= Content ================= */

.contact-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(64px, 8vw, 120px) clamp(48px, 7vw, 96px);
  font-family: 'Urbanist', sans-serif;
  color: #fff;
  position: relative;
  z-index: 1;
}

/* =================================================
   Title + Desc（Mobile：直排）
================================================= */

.contact-header {
  margin-bottom: 48px;
}

.contact-title {
  font-size: 48px;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1;
}

.contact-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 42ch;
}

/* =================================================
   Form（Mobile）
================================================= */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  gap: 6px;
}

.contact-form input,
.contact-form textarea {
  border: none;
  padding: 10px 12px;
  font-size: 12px;
  font-family: inherit;
  border-radius: 2px;
}

.contact-form textarea {
  min-height: 80px;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-submit {
  margin-top: 16px;
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* =================================================
   Tablet / Desktop：標題橫排（>=768）
================================================= */

.contact-section::before {
  content: "";
  position: absolute;

  left: -20%;
  bottom: -45%;

  /* ⭐ 關鍵：px → vw + 上限 */
  width: clamp(1600px, 130vw, 3400px);
  aspect-ratio: 16 / 9;
  height: auto;

  background: #46c6ff;
  border-radius: 50%;

  pointer-events: none;
  z-index: 0;
}



@media (min-width: 768px) {

  /* ⭐ 標題橫向排版 */
  .contact-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: clamp(24px, 4vw, 64px);
    margin-bottom: 64px;
  }

  .contact-title {
    font-size: clamp(72px, 8vw, 120px);
    line-height: 0.9;
    margin: 0;
    white-space: nowrap;
  }

  .contact-desc {
    font-size: 18px;
    line-height: 1.6;
    max-width: 48ch;
    margin-bottom: 6px;
  }

  /* Form 版型 */
  .contact-form {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 64px;
    align-items: end;
  }

  .form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }

  .form-fields .full {
    grid-column: 1 / -1;
  }

  .form-submit {
    display: flex;
    align-items: flex-end;
  }

  /* Submit 視覺（你原本的，微調） */
  .contact-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    font-size: 0;
  }

  .submit-text {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .submit-icon {
    position: relative;
    width: 36px;
    height: 36px;
  }

  .submit-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid #fff;
    border-radius: 50%;
  }

  .submit-icon::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
  }
}

/* =================================================
   Desktop 微調（>=1280）
================================================= */

@media (min-width: 1280px) {

  .contact-desc {
    font-size: 30px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  .contact-form textarea {
    min-height: 160px;
  }
}


/* ================= FOOTER / LAST PAGE ================= */

.footer-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #fff;
  position: relative;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  font-family: 'Urbanist', sans-serif;
  text-align: center;
}

/* 上方資訊列 */
.footer-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;

  font-size: 14px;
  color: #008ac8; /* 品牌藍 */
}

.footer-info .label {
  opacity: 0.8;
}

.footer-info .value {
  font-weight: 600;
  color: #008ac8;
  text-decoration: none;
}

/* 中間分隔線（桌機才顯示） */
.footer-info .divider {
  width: 1px;
  height: 14px;
  background: #008ac8;
  opacity: 0.4;
}

/* 版權 */
.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  color: #008ac8;
  opacity: 0.8;
}

/* ================= 手機微調 ================= */
@media (max-width: 767px) {
  .footer-info {
    font-size: 8px;
  }

  .footer-copy {
    font-size: 11px;
  }

  .footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px 28px;
  font-family: 'Urbanist', sans-serif;
  text-align: center;
}
}


/* Desktop */
section {
  scroll-margin-top: 64px;
}

/* Mobile */
@media (max-width: 767px) {
  section {
    scroll-margin-top: 54px;
  }
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  .contact-section::before {
    width: 900px;
    height: 900px;
    left: -50%;
    bottom: -32%;
  }
}


@media (min-width: 768px) and (max-width: 1023px) {
  .contact-section::before {
    width: 1200px;
    height: 880px;
    left: -25%;
    bottom: -50%;
  }
}
