/* =========================================================================
   PT PMA MKDT Dmake Pratama — site styles (every page)
   色・フォント・余白は :root の変数を使う
   ========================================================================= */

:root {
  --navy: #1e3a8a;
  --navy-2: #1e40af;
  --blue: #155dfc;
  --sky: #5bc0de;
  --cyan: #53eafd;
  --grad-blue: #0a58c7;
  --text: #333333;
  --text-2: #4a5565;
  --line: #d1d5db;
  --white: #ffffff;
  --gray: #e8e8e8;

  --sans: "BIZ UDPGothic", -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --en: Helvetica, Arial, sans-serif;
  --ui: Inter, -apple-system, "Segoe UI", sans-serif;

  --content: 1280px;
  --pad: 32px;
  --header-h: 103px;
  --radius: 14px;
  --shadow-card: 0 10px 15px rgba(0, 0, 0, 0.2);
  --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
/* 英語・インドネシア語のページ（/en/・/id/）は欧文向けのフォント */
html[lang="en"], html[lang="id"] { --sans: Inter, -apple-system, "Segoe UI", sans-serif; }
/* 本文の太さ：BIZ UDPGothic には 400 と 700 しかないので、日本語は 400 の輪郭を少し太らせる。Inter は 500 を使う */
body { -webkit-text-stroke: 0.3px currentColor; }
html[lang="en"] body, html[lang="id"] body { font-weight: 500; -webkit-text-stroke: 0; }

/* ------------------------------- BASE ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 var(--pad); }
.sp-only { display: none; }
[id] { scroll-margin-top: calc(var(--header-h) - 8px); }

/* ------------------------------ BUTTONS -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 19px 24px;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--white { background: var(--white); color: var(--navy); border-radius: 10px; }
.btn--sky { background: var(--sky); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); border-radius: 10px; }
.btn--sm { padding: 19px 24px; }
.btn--block { display: flex; width: 100%; }
.icon-ext, .icon-send { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ------------------------------- HEADER -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 30px;
}
.site-header__logo img { display: block; width: 180px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.main-nav a {
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.main-nav a:hover { color: var(--blue); }
.main-nav .main-nav__cta {
  margin-left: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}
.main-nav .main-nav__cta:hover { color: var(--white); opacity: 0.85; }
.nav-toggle { display: none; }

/* 言語切り替え（JA / EN / ID）。今の言語は aria-current="page" で紺色 */
.lang-switch {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}
.lang-switch a { padding: 7px 10px; border-radius: 999px; color: var(--text-2); text-decoration: none; }
.lang-switch a:hover { color: var(--blue); }
.lang-switch a[aria-current] { background: var(--navy); color: var(--white); }

/* -------------------------------- HERO --------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 96px);
  padding: 150px 0 0;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}
.hero__media, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video { object-fit: cover; pointer-events: none; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(133, 133, 133, 0.5); }
.hero__inner { position: relative; z-index: 1; padding-bottom: 60px; }
.hero__title {
  font-size: 6.3vw;
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 2px -2px 15px rgba(0, 0, 0, 0.3);
}
.hero__title em { font-style: normal; color: var(--cyan); }
html[lang="en"] .hero__title, html[lang="id"] .hero__title { font-size: 5.2vw; line-height: 1.2; }
.hero__lead {
  margin: 1.2em 0 0;
  font-size: 2vw;
  line-height: 1.6;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
}

/* 読み込み時の演出：動画が少し引きで始まり、見出しが 1 句ずつぼかしから浮かび上がる → 「日本品質」の行に下線が引かれる → リード文 */
.hero__video { animation: hero-zoom 2.4s ease-out both; }
.hero__line { display: inline-block; animation: hero-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__title > .hero__line:nth-of-type(1) { animation-delay: 0.2s; }
.hero__title > .hero__line:nth-of-type(2) { animation-delay: 0.4s; }
.hero__title em .hero__line:nth-of-type(1) { animation-delay: 0.7s; }
.hero__title em .hero__line:nth-of-type(2) { animation-delay: 0.9s; }
.hero__title em .hero__line { position: relative; }
.hero__title em .hero__line::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.02em;
  height: 0.07em;
  border-radius: 1em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline 0.8s cubic-bezier(0.6, 0, 0.2, 1) 1.6s forwards;
}
.hero__title em .hero__line:nth-of-type(2)::after { animation-delay: 1.9s; }
.hero__lead { animation: hero-fade 1s ease-out 1.4s both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(0.5em); filter: blur(12px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes hero-underline { to { transform: scaleX(1); } }
@keyframes hero-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ------------------------------ SECTIONS ------------------------------- */
.section { padding: 100px 0 32px; }
.section--sky { background: linear-gradient(180deg, #ffffff 0%, #84abe3 85%); padding-top: 100px; padding-bottom: 32px; }
.section--ai { padding-top: 180px; padding-bottom: 60px; }
.section--company { padding: 100px 0; }
.section--navy { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: 60px 0 30px; }
#value { padding-top: 180px; padding-bottom: 60px; }

.section-head { margin-bottom: 48px; text-align: center; }
.section-title { font-size: 48px; font-weight: 700; line-height: 1; color: var(--navy); }
.section-title--en { font-family: var(--en); font-weight: 600; }
.section-title--heavy { font-weight: 800; }
.section--navy .section-title { color: var(--white); }
.section-lead { margin-top: 20px; font-size: 18px; color: var(--text-2); }
.section-lead--strong { font-weight: 700; color: var(--text); }
.section--navy .section-lead { color: var(--white); }
.section-head .btn { margin-top: 20px; }

/* ------------------------------- VALUE --------------------------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.value-card {
  padding: 25px;
  border-radius: var(--radius);
  background: linear-gradient(184deg, var(--navy-2) 20%, var(--navy) 100%);
  box-shadow: var(--shadow-card);
  color: var(--white);
}
.value-card img { width: 100%; aspect-ratio: 335 / 177; object-fit: cover; }
.value-card h3 {
  margin: 20px 0;
  font-family: var(--en);
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
}
.value-card p { font-size: 16px; font-weight: 700; line-height: 26px; }

/* ---------------------------- GLOBAL NETWORK --------------------------- */
.map {
  margin-bottom: 64px;
  padding: 10px;
  border-radius: 25px;
  background: linear-gradient(135deg, #f4f6fb 0%, #e5e7eb 100%);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.map__pc, .map__sp { position: relative; }
.map__sp { display: none; }
.map__pc img, .map__sp img { display: block; width: 100%; border-radius: 25px; }
.map__pin {
  position: absolute;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 6px rgba(30, 58, 138, 0.2);
  cursor: pointer;
}
.map__pin span {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.map__pin:hover span, .map__pin:focus span { opacity: 1; }

.country-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.country-card {
  display: block;
  padding: 25px;
  border-radius: var(--radius);
  background: var(--white);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.country-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.country-card__head { display: flex; align-items: center; gap: 24px; margin-bottom: 20px; }
.country-card__head img { width: 57px; height: 57px; border-radius: 50%; }
.country-card h3 { font-size: 25px; font-weight: 700; line-height: 28px; color: var(--navy); }
.country-card__role { font-size: 14px; font-weight: 700; color: var(--blue); }
.country-card > p { font-size: 14px; line-height: 20px; color: var(--text); }

/* ---------------------------- AI INITIATIVES --------------------------- */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; }
.ai-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding: 25px;
  border-radius: 5px;
  background: var(--navy);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.196);
  color: var(--white);
}
.ai-card h3 { font-family: var(--en); font-size: 24px; font-weight: 800; line-height: 28px; text-align: center; }
.ai-card > p { font-size: 16px; line-height: 26px; }
.ai-card .btn { align-self: center; }
.ai-card--wide { grid-column: 1 / -1; }
.check-list li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 24px;
}
.check-list li::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231e3a8a' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 9px no-repeat;
}
.check-list a { color: var(--white); }
.oss-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 0 15px 10px; }
.oss-item { padding: 10px; background: var(--white); color: var(--text); }
.oss-item h4 { margin-bottom: 20px; font-size: 14px; font-weight: 700; line-height: 1; color: var(--text-2); }
.oss-item__from { font-size: 16px; line-height: 24px; }
.oss-item__arrow { font-size: 14px; line-height: 21px; }
.oss-item__to { font-size: 18px; font-weight: 700; line-height: 27px; }

/* ------------------------------ SERVICES ------------------------------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  display: block;
  padding: 25px 35px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
a.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.service-card__head { display: flex; align-items: center; gap: 22px; margin: 5px 0 30px; }
.service-card__head img { width: 68px; height: 68px; }
.service-card h3 { font-size: 25px; font-weight: 700; line-height: 28px; color: var(--navy); }
.service-card p { font-size: 14px; line-height: 22px; color: var(--text-2); }

/* ------------------------------- RECRUIT ------------------------------- */
.badge {
  display: inline-block;
  margin-bottom: 24px;
  padding: 4px 16px;
  border-radius: 999px;
  background: #cefafe;
  color: #007595;
  font-family: var(--ui);
  font-size: 14px;
}
#recruit .section-title { font-weight: 500; }
.recruit { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 35px; padding-bottom: 32px; }
.recruit__photo { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-card); }
.recruit__body > p { margin-bottom: 30px; font-size: 18px; line-height: 28px; }
.feature-list li { display: flex; align-items: center; gap: 22px; padding: 10px; }
.feature-list li + li { margin-top: 24px; }
.feature-list img { width: 48px; height: 48px; }
.feature-list h3 { font-size: 18px; font-weight: 700; line-height: 28px; color: var(--navy); }
.feature-list p { font-size: 16px; line-height: 24px; }

/* ------------------------------- COMPANY ------------------------------- */
#company .section-title { font-weight: 500; }
.company-table__row { display: grid; grid-template-columns: 30% 1fr; gap: 0; margin-bottom: 6px; }
.company-table dt, .company-table dd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
  padding: 20px 30px;
  text-align: center;
}
.company-table dt { background: var(--gray); font-size: 24px; font-weight: 700; }
.company-table dd { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03); font-size: 20px; line-height: 1.5; color: var(--text-2); letter-spacing: 0.04em; }

/* ------------------------------- CONTACT ------------------------------- */
#contact .section-title { font-weight: 500; }
.contact-form {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 48px 55px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  color: var(--text);
}
.contact-form label { display: block; margin-bottom: 8px; font-size: 16px; }
.contact-form input, .contact-form textarea {
  display: block;
  width: 100%;
  margin-bottom: 24px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: 15px/1.6 var(--sans);
  color: #1f2124;
}
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__turnstile:not(:empty) { margin-bottom: 24px; }
.contact-form__note { margin-bottom: 16px; font-size: 13px; color: var(--text-2); text-align: center; }
.contact-form__note a { color: var(--blue); }
.contact-form__status { margin-top: 16px; font-size: 15px; text-align: center; }
.contact-form__status.is-error { color: #c0262d; }
.contact-form__status.is-ok { color: var(--navy); font-weight: 700; }

/* ------------------------------- FOOTER -------------------------------- */
.site-footer {
  padding: 0 15px 30px;
  background: var(--navy-2);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  text-align: center;
}
.site-footer small { font-size: 12.8px; }

/* ---------------------------- 404 PAGE --------------------------------- */
.not-found { padding: 160px 0; text-align: center; }
.not-found p { margin: 24px 0 40px; color: var(--text-2); }

/* -------------------------- SCROLL REVEAL ------------------------------ */
/* 画面に入ったら表示する（site.js が .is-visible を付ける）。「動きを減らす」設定ではアニメーションしない */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__video, .hero__line, .hero__lead { animation: none; }
  .hero__title em .hero__line::after { animation: none; transform: none; }
}

/* ----------------------------- RESPONSIVE ------------------------------ */
@media (max-width: 1024px) {
  .site-header__inner { padding: 10px 20px; }
  .site-header__logo img { width: 120px; }
  .lang-switch { margin-left: auto; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 14px 24px; border-top: 1px solid #eee; }
  .main-nav .main-nav__cta { margin: 12px 24px 16px; text-align: center; }

  .value-grid, .ai-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .country-grid { grid-template-columns: 1fr 1fr; }
  .oss-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  :root { --pad: 15px; --header-h: 81px; }
  .sp-only { display: inline; }
  .section, .section--sky, .section--company { padding: 60px 0 32px; }
  #value, .section--ai { padding-top: 60px; padding-bottom: 60px; }
  .section-title { font-size: 32px; line-height: 1.1; }
  .section-lead { font-size: 16px; }
  .section-head { margin-bottom: 36px; }

  /* 文字は画面の下寄りに置き、上半分は動画を見せる。スマホは左寄せ。見出しは画面幅に合わせて大きくする（「デジタル革新を。」の 8 文字が 1 行に収まる大きさ） */
  .hero { align-items: flex-end; min-height: calc(100svh - 81px); padding-top: 0; text-align: left; }
  .hero__inner { padding-bottom: 10svh; }
  .hero__title { font-size: clamp(30px, 10.5vw, 48px); line-height: 1.35; }
  .hero__lead { font-size: clamp(15px, 4.2vw, 18px); }
  .hero__lead br { display: none; }
  html[lang="en"] .hero__title, html[lang="id"] .hero__title { font-size: clamp(28px, 8.6vw, 42px); line-height: 1.2; }

  .value-grid, .ai-grid, .service-grid, .country-grid, .recruit { grid-template-columns: 1fr; }
  .ai-grid { gap: 30px; }
  .oss-grid { grid-template-columns: 1fr; padding: 0; }
  .map__pc { display: none; }
  .map__sp { display: block; }
  .country-card__head { justify-content: center; }
  .company-table__row { grid-template-columns: 1fr; }
  .company-table dt, .company-table dd { min-height: 0; }
  .company-table dt { font-size: 20px; }
  .company-table dd { font-size: 16px; }
  .contact-form { padding: 32px 20px; }
}
