/* =========================================================
   ATTRATEC — static rebuild of the STUDIO site
   Breakpoints follow STUDIO: 1140 (tablet) / 840 (mobile) / 540 (mini)
   ========================================================= */

:root {
  --c-text: #333333;
  --c-heading: #263238;
  --c-navy: #495786;
  --c-cyan: #57deff;
  --c-tag-sub-bg: #e8eaf6;
  --c-border: #838383;
  --c-line: #c2c3c5;
  --grad: linear-gradient(32deg, #495786 0%, #57deff 100%);

  /* Fonts (リュウミン is STUDIO-licensed; Shippori Mincho is the closest free substitute) */
  --f-logo: "Aldrich", sans-serif;
  --f-en: "Poppins", sans-serif;
  --f-en-sub: "Barlow Semi Condensed", sans-serif;
  --f-mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans: "Noto Sans JP", sans-serif;
  --f-lato: "Lato", sans-serif;

  --header-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  margin: 0;
  background: #fff;
  color: var(--c-text);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

main { display: flex; flex-direction: column; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  padding: 0 30px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.logo {
  font-family: var(--f-logo);
  font-size: 28px; font-weight: 400; letter-spacing: 0.1em; line-height: 1.4;
  color: #000;
  transition: opacity .3s, transform .3s;
}
.site-header .logo:hover { opacity: .7; transform: scale(1.1); }

.gnav { display: flex; align-items: center; }
.gnav__link {
  font-family: var(--f-en); font-size: 15px; font-weight: 300;
  letter-spacing: 0.2em; line-height: 1.4; color: #000; padding: 10px;
  transition: opacity .3s;
}
.gnav__link:hover { opacity: .7; }
.gnav__cta {
  margin-left: 20px; padding: 10px 20px; border-radius: 8px;
  background: var(--grad); color: #fff;
  font-family: var(--f-en); font-size: 15px; font-weight: 300; letter-spacing: 0.2em; line-height: 1.4;
  box-shadow: 1px 3px 10px rgba(0, 0, 0, .1);
  transition: transform .3s, box-shadow .3s;
}
.gnav__cta:hover { transform: scale(1.05); box-shadow: 1px 3px 20px rgba(0, 0, 0, .1); }

.menu-btn { display: none; padding: 10px; color: #000; }
.menu-btn svg { width: 24px; height: 24px; display: block; }

/* Mobile menu */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--grad);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__close { position: absolute; top: 13px; right: 30px; padding: 10px; color: #fff; }
.drawer__close svg { width: 24px; height: 24px; display: block; }
.drawer .logo { color: #fff; margin-bottom: 12px; }
.drawer__link {
  font-family: var(--f-en); font-size: 18px; font-weight: 300; letter-spacing: 0.2em; color: #fff;
}
body.is-locked { overflow: hidden; }

/* ---------- Common blocks ---------- */
.section {
  width: 1080px; max-width: 100%;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 150px;
}

.sec-title {
  font-family: var(--f-en); font-size: 28px; font-weight: 400;
  letter-spacing: 0.35em; line-height: 1.4; color: var(--c-heading);
  /* compensate trailing letter-spacing so the word looks centered */
  margin-right: -0.35em;
}

.dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
  margin: 34px auto;
}
.dot--sm { margin: 34px auto; }

.lead {
  font-family: var(--f-mincho); font-size: 16px; font-weight: 400;
  letter-spacing: 0.1em; line-height: 1.6; color: var(--c-heading);
}

.btn-grad {
  display: inline-block; margin-top: 20px; padding: 15px;
  background: var(--grad); color: #fff;
  font-family: var(--f-mincho); font-size: 16px; font-weight: 700; letter-spacing: 0.2em; line-height: 1;
  padding-bottom: 17px;
  transition: transform .3s, box-shadow .3s;
}
.btn-grad:hover { transform: scale(1.05); box-shadow: 1px 3px 20px rgba(0, 0, 0, .12); }

/* Fade-in on load (hero) — same timing as the STUDIO "appear" setting */
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.appear { animation: appear 1.5s cubic-bezier(0.47, 0, 0.745, 0.715) .75s both; }
@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- HOME: Hero ---------- */
.hero {
  width: 1280px; max-width: 100%;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.hero__inner {
  width: 100%; padding: 50px;
  display: flex; align-items: center; justify-content: center;
}
.hero__text { width: 60%; display: flex; flex-direction: column; align-items: center; }
.hero__text > * { text-align: left; }
.hero__name {
  font-family: var(--f-logo); font-size: 36px; font-weight: 400; letter-spacing: 0.1em; line-height: 1.4;
  color: var(--c-text); margin-bottom: 17px;
}
.hero__copy {
  font-family: var(--f-mincho); font-size: 24px; font-weight: 400; letter-spacing: 0.4em; line-height: 1.4;
  color: var(--c-text); margin-bottom: 10px;
}
.hero__sub {
  font-family: var(--f-en-sub); font-size: 16px; font-weight: 300; letter-spacing: 0.1em; line-height: 1.4;
  color: var(--c-text);
}
.hero__visual { flex: none; width: 400px; height: 400px; }
.hero__visual img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- HOME: About ---------- */
.about { min-height: 100vh; min-height: 100svh; justify-content: center; }
.about__catch {
  font-family: var(--f-sans); font-size: 20px; font-weight: 400; letter-spacing: 0.3em; line-height: 1.4;
  color: var(--c-heading); text-align: center;
}
.about__catch strong { display: block; font-size: 28px; font-weight: 600; margin-top: 0; margin-bottom: 30px; }
.about .lead { width: 828px; max-width: 100%; }

/* ---------- HOME: Service tiles ---------- */
.home-service__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 74px; }
.home-service__head .lead { text-align: center; }
.tiles {
  width: 800px; max-width: 100%;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px;
}
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tile__img {
  position: relative; width: 200px; height: 200px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tile__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s ease;
}
.tile__img--left img { object-position: left center; }
.tile__img--lefttop img { object-position: left top; }
.tile__img--bottom img { object-position: center bottom; }
.tile:hover .tile__img img { transform: scale(1.06); }
.tile__label {
  position: relative;
  font-family: var(--f-sans); font-size: 28px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.4;
  color: #fff; text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}
.tile__name {
  font-family: var(--f-mincho); font-size: 14px; font-weight: 400; letter-spacing: 0.2em; line-height: 1.4;
  color: var(--c-text);
}

/* ---------- HOME: Contact CTA ---------- */
.home-contact .sec-title { color: #000; }
.home-contact .lead { color: #000; text-align: center; margin-bottom: 20px; width: 902px; max-width: 100%; }

/* ---------- Footer ---------- */
.site-footer {
  width: 100%; min-height: 300px; padding: 60px 30px 30px;
  background: var(--grad); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.site-footer .logo { color: #fff; line-height: 1.2; margin-bottom: 18px; }
.fnav { display: flex; flex-wrap: wrap; justify-content: center; }
.fnav a {
  font-family: var(--f-en); font-size: 14px; font-weight: 300; letter-spacing: 0.2em; line-height: 1.4;
  padding: 5px; transition: opacity .3s;
}
.fnav a:hover { opacity: .7; }
.copyright {
  margin-top: 40px;
  font-family: var(--f-en); font-size: 13px; font-weight: 100; letter-spacing: 0.1em; line-height: 1.4;
}

/* ---------- SERVICE page ---------- */
.page-top { margin-top: 160px; }
.svc-intro__head { align-self: flex-start; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 80px; width: 100%; }
.svc-intro__head .dot { margin: 60px 0 60px 4px; }
.svc-intro__body { display: flex; align-items: center; gap: 28px; width: 100%; }
.svc-intro__body img { width: 40%; height: auto; flex: none; }
.svc-intro__body .lead { width: 60%; font-size: 14px; }

.svc { flex-direction: row; align-items: flex-start; justify-content: center; }
.svc-nav {
  position: sticky; top: 100px; flex: none; width: 200px;
  padding-left: 40px; padding-top: 187px;
}
.svc-nav ul { display: flex; flex-direction: column; gap: 16px; }
.svc-nav a {
  font-family: var(--f-mincho); font-size: 12px; line-height: 1.4; color: var(--c-text);
  transition: color .3s, opacity .3s;
}
.svc-nav a:hover { opacity: .6; }
.svc-nav a.is-current { color: var(--c-navy); font-weight: 700; }

.svc-list { flex: none; width: 780px; margin-left: 100px; display: flex; flex-direction: column; gap: 40px; }
.svc-item { padding: 10px; width: 100%; }
.svc-item h2 {
  font-family: var(--f-mincho); font-size: 24px; font-weight: 400; letter-spacing: 0.2em; line-height: 1.4;
  color: var(--c-text);
}
.svc-item .lead { font-size: 14px; margin: 20px 0; }
.svc-item__img { width: 100%; height: 200px; object-fit: cover; margin: 20px 0 100px; }

.tags { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px; }
.tag {
  background: var(--c-navy); color: #fff; padding: 12px 16px;
  font-family: var(--f-mincho); font-size: 13px; font-weight: 400; line-height: 1.4;
}
.acc { background: var(--c-navy); color: #fff; }
.acc__btn {
  width: 100%; min-height: 44px; padding: 12px; gap: 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mincho); font-size: 13px; font-weight: 700; line-height: 1; color: #fff; text-align: left;
}
.acc__btn svg { width: 24px; height: 24px; flex: none; transition: transform .3s; transform: rotate(180deg); }
.acc.is-open .acc__btn svg { transform: rotate(0deg); }
.acc__panel {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease;
  background: var(--c-tag-sub-bg);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p {
  padding: 12px; color: var(--c-navy);
  font-family: var(--f-mincho); font-size: 13px; font-weight: 400; line-height: 1.6;
}
.tags--half .acc { width: calc(50% - 5px); }

/* ---------- CONTACT page ---------- */
.contact-sec { padding: 170px 30px 0; margin-bottom: 150px; }
.contact-sec__head { display: flex; flex-direction: column; align-items: center; margin-bottom: 100px; }
.contact-sec__head .lead { color: var(--c-text); text-align: center; }
.contact-sec__head .lead a { text-decoration: underline; text-underline-offset: 3px; }

.form { width: 600px; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
.field { width: 100%; margin-bottom: 20px; display: block; }
.field__label {
  display: flex; margin-bottom: 10px;
  font-family: var(--f-sans); font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--c-text);
}
.req { color: #f00; font-family: var(--f-lato); font-weight: 600; margin-left: 2px; }
.input {
  width: 100%; height: 50px; padding: 10px 15px;
  background: #fff; border: 1px solid var(--c-border); border-radius: 4px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 300; line-height: 1.4; color: var(--c-text);
  transition: background-color .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { height: 160px; padding: 10px; font-size: 16px; resize: vertical; }
.input::placeholder { color: #777; }
.input:hover { background: #eee; }
.input:focus { background: #ddd; outline: 2px solid var(--c-navy); outline-offset: 1px; }

.checks { display: flex; flex-direction: column; align-items: flex-start; }
.check {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; cursor: pointer;
  font-family: var(--f-sans); font-size: 15px; font-weight: 400; line-height: 1.4; color: var(--c-text);
}
.check:last-child { margin-bottom: 20px; }
.check input { margin: 0; width: 16px; height: 16px; accent-color: var(--c-navy); }
.check a { text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  padding: 10px 30px; border-radius: 8px; background: var(--grad); color: #fff;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; letter-spacing: 0.1em; line-height: 1.4;
  transition: transform .3s, opacity .3s;
}
.submit:hover { transform: scale(1.05); }
.submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form__status { margin-top: 16px; min-height: 1.6em; font-size: 14px; line-height: 1.6; text-align: center; }
.form__status.is-error { color: #c62828; }

.company { margin-bottom: 150px; }
.company .sec-title { margin-bottom: 0; }
.company__list { width: 60%; }
.company__row { display: flex; gap: 24px; border-bottom: 1px solid var(--c-line); }
.company__row dt, .company__row dd {
  padding: 30px 0;
  font-family: var(--f-mincho); font-size: 14px; font-weight: 400; letter-spacing: 0.1em; line-height: 1.6; color: #000;
}
.company__row dt { flex: 1; }
.company__row dd { flex: 2; }

/* Thanks / 404 */
.simple-page { min-height: 70vh; justify-content: center; padding: 170px 30px 0; text-align: center; }
.simple-page .lead { color: var(--c-text); }

/* =========================================================
   Responsive
   ========================================================= */
@media (hover: none) {
  .tile:hover .tile__img img { transform: none; }
}

@media screen and (max-width: 1140px) {
  .gnav__link, .gnav__cta { display: none; }
  .menu-btn { display: block; }

  .section { width: 100%; padding: 0 50px; }
  .hero { width: 100%; padding: 0 50px; }
  .hero__inner { flex-wrap: wrap; padding: 120px 50px 50px; }
  .hero__text { width: 100%; margin-bottom: 50px; }
  .hero__name { font-size: 28px; }
  .hero__copy { font-size: 20px; }
  .hero__visual { width: 500px; height: 500px; max-width: 100%; }

  .svc-intro__body { flex-direction: column; }
  .svc-intro__body img, .svc-intro__body .lead { width: 100%; }
  .svc-intro__body img { max-width: 480px; }
  .svc { padding: 0 20px; }
  .svc-nav { display: none; }
  .svc-list { width: 100%; margin-left: 0; }
  .svc-item { padding: 0; }
  .svc-item .lead { margin: 40px 0; }

  .company__list { width: 90%; }
  .fnav a { font-size: 16px; }
}

@media screen and (max-width: 840px) {
  .logo { font-size: 24px; }
  .section, .hero, .svc { padding: 0 30px; }
  .hero__inner { padding: 110px 0 40px; }
  .hero__copy { font-size: 18px; }
  .hero__sub { font-size: 15px; }

  .sec-title { font-size: 24px; }
  .dot { margin: 40px auto; }
  .lead { font-size: 13px; }

  .about__catch { font-size: 14px; }
  .about__catch strong { font-size: 18px; }

  .tiles { width: 100%; gap: 20px 0; }
  .tiles > li { width: 50%; display: flex; justify-content: center; }
  .tile__img { width: 150px; height: 150px; }
  .tile__label { font-size: 18px; }
  .tile__name { font-size: 13px; }

  .svc-intro__head { align-items: center; }
  .svc-intro__head .dot { margin: 40px auto; }
  .svc-list { gap: 20px; }
  .svc-item h2 { font-size: 18px; }
  .svc-item .lead { font-size: 13px; margin: 18px 0; }
  .svc-item__img { height: 150px; margin-bottom: 70px; }
  .tags { margin-top: 10px; }
  .tag { padding: 10px; font-size: 11px; }
  .acc__btn { padding: 10px 12px; font-size: 11px; }
  .acc__panel p { font-size: 11px; }
  .tags--half .acc { width: 100%; }
  .tags--col { flex-direction: column; }

  .contact-sec { padding: 140px 0 0; }
  .contact-sec__head { margin-bottom: 60px; }
  .contact-sec__head .lead { font-size: 14px; }
  .field__label { font-size: 14px; }
  .input { font-size: 14px; }
  textarea.input { font-size: 14px; }
  .company__list { width: 100%; }
  .company__row dt { font-size: 12px; }
}

@media screen and (max-width: 540px) {
  .logo { font-size: 16px; }
  .site-header .logo { font-size: 20px; }
  .site-header { padding: 0 20px; }
  .drawer__close { right: 20px; }
  .section, .hero, .svc { padding: 0 24px; }
  .hero__visual { width: 100%; height: 260px; }
  .hero__copy { letter-spacing: 0.25em; }

  .tiles { gap: 20px 10px; }
  .tiles > li { width: calc(50% - 5px); }
  .tile__img { width: 120px; height: 120px; }
  .tile__label { font-size: 15px; }

  .contact-sec__head .lead { font-size: 12px; }
  .contact-sec__head .lead br { display: none; }
  .check { font-size: 14px; }
}

/* ---------- Turnstile / thanks ---------- */
.turnstile:not(:empty) { margin-bottom: 16px; }
.reference { margin-top: 20px; font-weight: 700; letter-spacing: 0.15em; }

/* ---------- Footer legal link ---------- */
.footer-legal {
  margin-top: 24px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 300; letter-spacing: 0.1em;
  transition: opacity .3s;
}
.footer-legal:hover { opacity: .7; }
.footer-legal + .copyright { margin-top: 10px; }

/* ---------- Privacy policy ---------- */
.legal { margin-bottom: 150px; }
.legal__jp { font-family: var(--f-mincho); font-size: 16px; letter-spacing: 0.2em; color: var(--c-heading); margin-bottom: 60px; }
.legal__body { width: 760px; max-width: 100%; font-family: var(--f-sans); font-size: 15px; font-weight: 300; line-height: 1.9; color: var(--c-text); }
.legal__body h2 {
  font-family: var(--f-mincho); font-size: 18px; font-weight: 700; letter-spacing: 0.1em; line-height: 1.5;
  color: var(--c-heading); margin: 48px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line);
}
.legal__body p + p { margin-top: 12px; }
.legal__body ul { margin-top: 10px; padding-left: 1.4em; list-style: disc; }
.legal__body li + li { margin-top: 6px; }
.legal__body a { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; word-break: break-all; }
.legal__meta { margin-top: 48px !important; text-align: right; font-size: 14px; }
@media screen and (max-width: 840px) {
  .legal__jp { margin-bottom: 40px; font-size: 14px; }
  .legal__body { font-size: 14px; }
  .legal__body h2 { font-size: 16px; margin-top: 40px; }
}
