@charset "UTF-8";
/* ============================================================
   株式会社 城北電機商会 — PC layout (XD artboard 1920 wide)
   1u = 1px at 1920px viewport; scales down proportionally.
   Small text keeps a minimum size via max() so it stays readable.
   Design coordinates are noted as (x, y) in comments.
   ============================================================ */

:root{
  --u:calc(min(100vw, 1920px) / 1920);
  --text:#000;
  --gray:#585858;
  --navy:#2e5372;
  --red:#ff0000;
  --line:#707070;
  --contact-bg:#f4f6f8;
  --footer-bg:#434343;
  --jp:"Noto Sans JP", sans-serif;
  --en:"Barlow Condensed", sans-serif;
  --num:"Barlow", sans-serif;
}

/* ===== Reset ===== */
*,*::before,*::after{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0;
  font-family:var(--jp);
  font-weight:500;
  color:var(--text);
  background:#fff;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  position:relative;
  overflow-x:clip;
}
img{max-width:100%;height:auto;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,p,dl,dd,dt{margin:0;font-weight:inherit;font-size:inherit;}
button,input,textarea{font:inherit;color:inherit;}
.sp{display:none;}

/* ===== Background pattern (bkimage.png @24.6%, two columns repeating every 2783px) ===== */
/* Layer order as in XD: section fills (contact gray, footer) < line pattern < content.
   Section fills are unpositioned/z-auto, the pattern is z1, content blocks are z2. */
.page-bg{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:url("../images/bg_pattern.webp") center top / calc(1920 * var(--u)) auto repeat-y;
}
.hero__inner,.intro,.works__body,.works .inner,.company__main,.company__map,
.recruit__body,.achievements .inner,.contact .inner,.footer__inner,
.recruit-page .inner,.confirm .inner{position:relative;z-index:2;}

/* ===== Layout helpers ===== */
.inner{width:calc(980 * var(--u));margin:0 auto;position:relative;}   /* x470-1450 */

/* ===== Section title (EN Barlow Condensed Light 60 / JA 20) ===== */
.sec-title{display:block;color:var(--gray);}
.sec-title__en{
  display:block;
  font-family:var(--en);font-weight:300;
  font-size:calc(60 * var(--u));line-height:1;
  letter-spacing:calc(var(--ls, .1em) - .03em);   /* web Barlow Condensed sets ~.03em wider than XD */
}
.sec-title__ja{
  display:block;
  margin-top:calc(22.3 * var(--u));
  font-size:max(calc(20 * var(--u)), 14px);line-height:1;
  color:#000;
}

/* ===== Header (fixed, white 70%) ===== */
.header{
  position:fixed;top:0;left:0;width:100%;z-index:100;
  background:rgba(255,255,255,.7);
}
.header__inner{
  width:calc(1620 * var(--u));margin:0 auto;             /* x150-1770 */
  height:calc(150 * var(--u));
  display:flex;align-items:flex-start;
}
.header__logo{margin-top:calc(42 * var(--u));width:calc(360 * var(--u));flex:none;}
.header__logo img{width:100%;}
.gnav{margin-left:auto;margin-top:calc(67 * var(--u));}
.gnav__list{display:flex;gap:calc(100 * var(--u));}
.gnav__list a{
  display:block;
  font-size:max(calc(18 * var(--u)), 13px);line-height:1;
  color:#4b4b4b;
  transition:color .2s;
}
.gnav__list a:hover{color:var(--red);}
.gnav__sp-only{display:none;}
.header__contact{                                         /* (1610,50) 160x50 */
  margin-left:calc(100 * var(--u));margin-top:calc(50 * var(--u));
  width:calc(160 * var(--u));height:calc(50 * var(--u));
  display:flex;align-items:center;justify-content:center;gap:calc(4 * var(--u));
  background:var(--red);border-radius:calc(10 * var(--u));
  color:#fff;font-weight:700;
  font-size:max(calc(20 * var(--u)), 12px);line-height:1;
  transition:opacity .2s;
}
.header__contact img{width:calc(25.65 * var(--u));}
.header__contact:hover{opacity:.8;}
.menu-btn{display:none;}

/* ===== Hero (0-1185) ===== */
.hero{position:relative;padding-top:calc(234 * var(--u));}
.hero__inner{width:calc(1620 * var(--u));margin:0 auto;}  /* x150 */
.hero__title{
  font-family:var(--en);font-weight:300;
  font-size:calc(130 * var(--u));line-height:calc(140 / 130);
  letter-spacing:.044em;color:var(--gray);         /* XD .07em, see .sec-title__en */
}
.hero__lead{
  margin-top:calc(63.3 * var(--u));
  font-size:max(calc(20 * var(--u)), 13px);line-height:2;
}
.hero__sub{                                               /* (150,733) 751x452 */
  margin-top:calc(75.7 * var(--u));
  width:calc(751 * var(--u));height:calc(452 * var(--u));object-fit:cover;
}
.hero__main{                                              /* (991,263) 929x802, bleeds right */
  position:absolute;z-index:2;top:calc(263 * var(--u));right:0;
  width:calc(50% - 31 * var(--u));height:calc(802 * var(--u));
  object-fit:cover;object-position:left center;
}

/* ===== Intro (1331-1622) ===== */
.intro{padding-top:calc(146.9 * var(--u));text-align:center;color:#414141;}
.intro__catch{
  font-weight:700;
  font-size:max(calc(30 * var(--u)), 18px);line-height:calc(50 / 30);
}
.intro__text{
  margin-top:calc(38.6 * var(--u));
  font-size:max(calc(15 * var(--u)), 12px);line-height:2;
}

/* ===== Works (1780-3485) ===== */
.works{position:relative;margin-top:calc(139.5 * var(--u));}
.works__img1{                                             /* (0,1780) 841x934 */
  position:absolute;z-index:2;top:0;left:0;
  width:calc(50% - 119 * var(--u));height:calc(934 * var(--u));object-fit:cover;
}
.works__body{margin-left:calc(50% - 59 * var(--u));padding-top:calc(139 * var(--u));}  /* x901 */
.works__head{
  margin-top:calc(74.1 * var(--u));
  font-weight:700;color:var(--navy);
  font-size:max(calc(30 * var(--u)), 18px);line-height:calc(65 / 30);
}
.works__list{
  margin-top:calc(6.1 * var(--u));
  font-size:max(calc(15 * var(--u)), 12px);line-height:calc(40 / 15);
}
.works__list li::before{content:"・";}
.works__img2{                                             /* (901,2519) 750x399 */
  margin-top:calc(72.5 * var(--u));
  width:calc(750 * var(--u));height:calc(399 * var(--u));object-fit:cover;
}
.works__img3{                                             /* (470,3011) 720x474 */
  margin-top:calc(93 * var(--u));
  width:calc(720 * var(--u));height:calc(474 * var(--u));object-fit:cover;
}

/* ===== Company (3731-5405) ===== */
.company{position:relative;margin-top:calc(246 * var(--u));}
.table{margin-top:calc(84.7 * var(--u));border-bottom:1px solid var(--line);}
.company__table{width:calc(520 * var(--u));}             /* x470-990 */
.table__row{
  display:flex;
  border-top:1px solid var(--line);
  padding:calc(36 * var(--u)) 0;
  font-size:max(calc(15 * var(--u)), 12px);line-height:calc(24 / 15);
}
.table__row dt{flex:none;width:calc(145 * var(--u));padding-left:calc(30 * var(--u));}  /* label x500, value x615 */
.table__row dd{flex:1;min-width:0;}
.company__photos{                                         /* x1050 → right edge */
  position:absolute;z-index:2;top:calc(6 * var(--u));right:0;
  width:calc(50% - 90 * var(--u));
}
.company__img1{width:calc(481 * var(--u));height:calc(319 * var(--u));object-fit:cover;}   /* (1050,3737) */
.company__img2{                                           /* (1050,4106) 870x636 */
  margin-top:calc(50 * var(--u));
  width:100%;height:calc(636 * var(--u));object-fit:cover;object-position:left center;
}
.company__map{margin-top:calc(80 * var(--u));}           /* (470,4822) 980x583 */
.company__map iframe{display:block;width:100%;height:calc(583 * var(--u));border:0;}

/* ===== Recruit (5800-7068) ===== */
.recruit{position:relative;margin-top:calc(395 * var(--u));}
.recruit__img1{                                           /* (0,5804) 840x656 */
  position:absolute;z-index:2;top:calc(4 * var(--u));left:0;
  width:calc(50% - 120 * var(--u));height:calc(656 * var(--u));object-fit:cover;
}
.recruit__body{margin-left:calc(50% - 59 * var(--u));}   /* x901 */
.recruit__text{
  margin-top:calc(74.5 * var(--u));
  font-size:max(calc(20 * var(--u)), 13px);line-height:calc(45 / 20);
  color:#3e3e3e;
}
.btn-more{                                                /* (902,6199) 200x60 */
  display:flex;align-items:center;justify-content:center;
  margin-top:calc(41.2 * var(--u));
  width:calc(200 * var(--u));height:calc(60 * var(--u));
  border:2px solid var(--navy);border-radius:calc(10 * var(--u));
  color:var(--navy);font-weight:900;
  font-size:max(calc(20 * var(--u)), 12px);line-height:1;letter-spacing:.04em;
  transition:background-color .2s,color .2s;
}
.btn-more:hover{background:var(--navy);color:#fff;}
.recruit__photos{position:relative;margin-top:calc(80 * var(--u));}
.recruit__img2{width:calc(548 * var(--u));height:calc(428 * var(--u));object-fit:cover;}   /* (902,6339) */
.recruit__img4{                                           /* (902,6813) 382x255 */
  margin-top:calc(46 * var(--u));
  width:calc(382 * var(--u));height:calc(255 * var(--u));object-fit:cover;
}
.recruit__img3{                                           /* (470,6540) 371x528, left of the column */
  position:absolute;top:calc(203 * var(--u));left:calc(-431 * var(--u));
  width:calc(371 * var(--u));height:calc(528 * var(--u));object-fit:cover;
}

/* ===== Achievements (7366-8631) ===== */
.achievements{margin-top:calc(298 * var(--u));}
.achievements__list{
  margin-top:calc(83.2 * var(--u));
  display:grid;grid-template-columns:repeat(2, 1fr);
  gap:calc(60 * var(--u));
}
.achievements__list img{width:100%;aspect-ratio:460 / 320;object-fit:cover;}

/* ===== Contact (8943-10687) ===== */
.contact{
  position:relative;
  margin-top:calc(310 * var(--u));
  padding:calc(102 * var(--u)) 0 calc(150 * var(--u));
  background:var(--contact-bg);
}
.form{margin-top:calc(84.7 * var(--u));}
.form__hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.form__row{
  display:flex;align-items:center;
  margin-top:calc(40 * var(--u));
}
.form__row:first-of-type{margin-top:0;}
.form__label{
  flex:none;width:calc(270 * var(--u));                  /* input at x740 */
  font-size:max(calc(18 * var(--u)), 13px);line-height:1.5;letter-spacing:.04em;
}
.req{color:var(--red);}
.form__input{
  flex:1;min-width:0;
  height:calc(60 * var(--u));
  padding:0 calc(20 * var(--u));
  background:#fff;
  border:1px solid var(--line);border-radius:calc(10 * var(--u));
  font-size:max(calc(18 * var(--u)), 14px);
  outline-offset:2px;
}
.form__input:focus{border-color:var(--navy);outline:2px solid rgba(46,83,114,.25);}
.form__textarea{height:calc(260 * var(--u));padding:calc(15 * var(--u)) calc(20 * var(--u));resize:vertical;line-height:1.7;}
.privacy{                                                 /* (470,9950) 980x330 */
  margin-top:calc(50 * var(--u));
  height:calc(330 * var(--u));overflow-y:auto;
  padding:calc(24 * var(--u)) calc(30 * var(--u));
  background:#fff;border-radius:calc(10 * var(--u));
  font-size:max(calc(18 * var(--u)), 12px);line-height:calc(35 / 18);
}
.privacy p + p{margin-top:calc(10 * var(--u));}
.privacy__title{font-weight:900;}
.privacy__head{font-weight:700;}
.form__agree{
  margin-top:calc(37.8 * var(--u));
  text-align:center;font-weight:700;
  font-size:max(calc(20 * var(--u)), 13px);line-height:calc(29 / 20);letter-spacing:.04em;
}
.form__submit{                                            /* (836,10463) 235x74 */
  display:block;margin:calc(116.2 * var(--u)) 0 0 calc(366 * var(--u));   /* x836 (XD is 7px left of center) */
  width:calc(235 * var(--u));height:calc(74 * var(--u));
  background:var(--red);color:#fff;border:0;border-radius:calc(15 * var(--u));
  font-weight:900;font-size:max(calc(32 * var(--u)), 18px);line-height:1;letter-spacing:.04em;
  cursor:pointer;transition:opacity .2s;
}
.form__submit:hover{opacity:.8;}
/* lead + TEL (Googleフォーム運用に変更した分。XDには無い要素) */
.contact__lead{font-size:max(calc(18 * var(--u)), 14px);line-height:2;}
.contact__tel{
  margin-top:calc(20 * var(--u));
  font-family:var(--num);font-weight:700;color:var(--navy);
  font-size:calc(44 * var(--u));line-height:1;
}
.contact__tel span{font-size:calc(28 * var(--u));}
.contact__btn{display:flex;align-items:center;justify-content:center;width:calc(400 * var(--u));margin-left:auto;margin-right:auto;text-decoration:none;}
.contact__note{margin-top:calc(14 * var(--u));text-align:center;font-size:max(calc(15 * var(--u)), 12px);color:#555;}
.contact__facade{                                         /* (1220,10376) 488x359, sits on the footer */
  position:absolute;left:calc(50% + 260 * var(--u));bottom:calc(-48 * var(--u));
  width:calc(488 * var(--u));
  z-index:3;
}

/* ===== Footer (10687-11007, h320) ===== */
.footer{position:relative;background:var(--footer-bg);color:#fff;}
.footer__inner{
  position:relative;
  width:calc(1620 * var(--u));margin:0 auto;              /* x150 */
  height:calc(320 * var(--u));
  padding-top:calc(61.6 * var(--u));
}
.footer__name{font-weight:700;font-size:calc(40 * var(--u));line-height:calc(30 / 40);}
.footer__addr{margin-top:calc(18.2 * var(--u));font-size:max(calc(18 * var(--u)), 12px);line-height:calc(30 / 18);}
.footer__tel{
  margin-top:calc(15.8 * var(--u));
  font-family:var(--num);font-weight:700;
  font-size:calc(50 * var(--u));line-height:calc(30 / 50);
}
.footer__tel span{font-size:calc(32 * var(--u));}
.footer__fax{margin-top:calc(10.4 * var(--u));font-size:max(calc(20 * var(--u)), 12px);line-height:calc(30 / 20);}
.footer__copy{margin-top:calc(5.6 * var(--u));font-size:max(calc(16 * var(--u)), 10px);line-height:calc(40 / 16);letter-spacing:.06em;}
.footer__copy small{font-size:inherit;}
.footer__nav{                                             /* x960, baseline 10849 */
  position:absolute;left:calc(810 * var(--u));top:calc(149 * var(--u));
  display:flex;gap:calc(80 * var(--u));
  font-size:max(calc(14 * var(--u)), 11px);line-height:1;
}
.footer__nav a:hover{text-decoration:underline;}
.pagetop{                                                 /* circle (1685,10866) d85 */
  position:absolute;left:calc(1535 * var(--u));top:calc(179 * var(--u));
  width:calc(85 * var(--u));height:calc(85 * var(--u));
  display:flex;align-items:center;justify-content:center;
  background:var(--navy);border-radius:50%;
  transition:opacity .2s;
}
.pagetop img{width:calc(44.6 * var(--u));margin-top:calc(-2 * var(--u));}
.pagetop:hover{opacity:.8;}

/* ===== Recruit page ===== */
.recruit-page{padding-top:calc(266 * var(--u));}
.recruit-page__intro{
  margin-top:calc(100.5 * var(--u));
  padding-left:calc(60 * var(--u));                       /* XD centers this on x990 */
  text-align:center;color:#3e3e3e;
  font-size:max(calc(20 * var(--u)), 13px);line-height:calc(45 / 20);
}
.recruit-page .table{margin-top:calc(73.2 * var(--u));}
.recruit-page + .contact{margin-top:calc(171 * var(--u));}

/* ===== Confirm / thanks page ===== */
.confirm{padding:calc(266 * var(--u)) 0 calc(150 * var(--u));}
.confirm__lead{margin-top:calc(60 * var(--u));font-size:max(calc(18 * var(--u)), 14px);line-height:2;}
.confirm .table{margin-top:calc(50 * var(--u));}
.confirm .table__row dd{white-space:pre-wrap;word-break:break-all;}
.confirm__errors{margin-top:calc(40 * var(--u));color:var(--red);font-size:max(calc(18 * var(--u)), 14px);line-height:2;}
.confirm__btns{display:flex;justify-content:center;gap:calc(40 * var(--u));margin-top:calc(80 * var(--u));}
.confirm__btns .form__submit{margin:0;}
.btn-back{
  display:flex;align-items:center;justify-content:center;
  width:calc(235 * var(--u));height:calc(74 * var(--u));
  border:2px solid var(--line);border-radius:calc(15 * var(--u));background:#fff;
  font-weight:700;font-size:max(calc(22 * var(--u)), 15px);cursor:pointer;
}
.confirm + .footer .contact__facade{display:none;}
