@charset "UTF-8";
/*--------------------------------------------------------------
  refine.css — 株式会社コウエキ

  既存の default.css / style.css の後に読み込んで上書きする層。
  元のCSSは変更していないため、HTML内のこの1行を外せば元に戻る。

  ── 配色の変え方 ───────────────────────
  下の :root にある3行を差し替えるだけで全体の色が変わる。
      --main     主色（ヘッダーの帯・見出し・ボタン・面）
      --main-dp  主色の暗い方（ホバー時）
      --tint     主色をごく薄めた面の色
  ─────────────────────────────────────
--------------------------------------------------------------*/

:root {
  /* ▼ 配色はここだけ差し替える ▼ */
  --main:     #123a5e;
  --main-dp:  #0c2b46;
  --tint:     #eef3f7;
  /* ▲ ここまで ▲ */

  --ink:      #1f2d38;
  --ink-sub:  #5c6b76;
  --rule:     #d3dae0;
  --rule-soft:#e6ebef;
  --paper:    #ffffff;
  --measure:  1180px;
}

/*==============================================================
  基本
==============================================================*/
body {
  color: var(--ink);
  font-feature-settings: "palt" 1;
  letter-spacing: 0.02em;
  line-height: 1.9;
  background: var(--paper);
}
p { color: var(--ink); }
h1, h2, h3, h4 { letter-spacing: 0.06em; line-height: 1.55; }
.container { max-width: var(--measure); }
a:hover { color: var(--main); }

/*==============================================================
  ヘッダー
  白地にして下端に主色の太い帯を置く。
  下層ページの見出し帯と色が違うので、一体化して見えない。
==============================================================*/
#header {
  height: 84px;
  background: var(--paper);
  border-bottom: 4px solid var(--main);
  box-shadow: none;
}
#header.header-scrolled {
  background: var(--paper);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}
#header .main-logo { margin-left: 30px; padding: 18px 0; }
#header .main-logo img {
  max-height: 44px;
  content: url('../img/site/main-logo.png');   /* 白地ヘッダーなので黒版 */
}

.nav-menu ul li a {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0 22px;
  line-height: 84px;
}
nav.shift ul li a::after {
  top: auto; bottom: 0; left: 22px; right: 22px;
  width: auto; height: 4px;
  background: var(--main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
nav.shift ul li a:hover::after { transform: scaleX(1); }

/* 元CSSの緑（#0cbb06）指定を全て打ち消す */
.nav-menu ul li a:hover,
.nav-menu ul li.active a,
.nav-menu ul li.active a:hover,
nav.shift ul li.active a,
nav.shift ul li.active a:hover {
  color: var(--main) !important;
  font-weight: 700;
}
.nav-menu ul li.active a::after,
nav.shift ul li.active a::after,
nav.shift ul li.active a:hover::after {
  transform: scaleX(1) !important;
  background: var(--main) !important;
}

.mobile-nav-toggle i { color: var(--ink); }
.mobile-nav-active .mobile-nav-toggle i { color: #ffffff; }

/*==============================================================
  ヒーロー（トップページ）
==============================================================*/
#hero { height: 60vh; min-height: 400px; animation: none; }
#hero .absolute-right {
  right: 0; bottom: 0;
  max-width: 640px;
  background: rgba(255,255,255,.95);
  border-top: 5px solid var(--main);
  padding: 28px 40px 26px 36px;
  text-align: left !important;
}
.hero-title span {
  padding: 0; margin-bottom: 4px;
  font-size: 27px; font-weight: 700;
  line-height: 1.75; letter-spacing: 0.1em;
  color: var(--ink);
  text-shadow: none;
}
.hero-title span::after { display: none; }

@media screen and (max-width: 991px) {
  #hero .absolute-right { max-width: 100%; }
}
@media screen and (max-width: 768px) {
  #hero { height: 48vh; min-height: 280px; }
  #hero .absolute-right { padding: 18px 20px; width: 100%; }
  .hero-title span { font-size: 18px; letter-spacing: 0.06em; }
}

/*==============================================================
  下層ページの見出し
  情報伝達型のサイトなので高さを抑え、本文へ早く到達させる。
  ヘッダー（白）と違う淡色の面にして、境界を明確にする。
==============================================================*/
#inner_hero.inner-hero-bg {
  background-image: none !important;
  background-color: var(--tint) !important;
  height: auto;
  min-height: 0;
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--rule);
}
#inner_hero .inner-hero-title {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 15px;
  text-align: left;
  position: static;
  transform: none;
  top: auto; left: auto;
}
#inner_hero .inner-hero-title h2 {
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  padding-left: 16px;
  border-left: 5px solid var(--main);
  text-align: left;
}
@media screen and (max-width: 768px) {
  #inner_hero.inner-hero-bg { padding: 24px 0 22px; }
  #inner_hero .inner-hero-title h2 { font-size: 20px; }
}

/*==============================================================
  セクション見出し
==============================================================*/
main > section { padding: 70px 0; }
main > section#page-info { padding: 0; }
main > section#contact-info { padding-bottom: 70px; }

.section-title {
  position: relative;
  background-color: transparent;
  margin-bottom: 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--rule);
}
.section-title::before { display: none; }
.section-title::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px;
  width: 78px; height: 4px;
  background: var(--main);
}
.section-title h3 {
  font-size: 22px; font-weight: 700;
  line-height: 1.65; color: var(--ink);
  padding: 0; margin: 0; border-left: none;
}

.section-head {
  position: relative;
  margin-bottom: 34px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--rule);
}
.section-head::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px;
  width: 78px; height: 4px;
  background: var(--main);
}
.section-head h2 {
  font-size: 22px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--ink); margin: 0;
}

.section-text {
  margin: 20px 0 42px; padding: 0;
  color: var(--ink-sub); font-size: 15px;
}
.section-text h4 {
  color: var(--ink); font-size: 17px; font-weight: 700;
  padding: 0; margin-bottom: 12px; border-left: none;
}
.section-text p { color: var(--ink-sub); }

/*==============================================================
  トップ：事業内容の要約（主色のベタ面）
==============================================================*/
#lead-copy {
  background: var(--main);
  padding: 68px 0 62px !important;
}
#lead-copy .lead-main {
  font-size: 29px; font-weight: 700;
  line-height: 1.75; letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 5px solid rgba(255,255,255,.55);
}
#lead-copy .lead-sub {
  font-size: 15px; line-height: 2.05;
  color: rgba(255,255,255,.86); margin: 0; max-width: 34em;
}

.fact-list {
  list-style: none; margin: 6px 0 0; padding: 0;
  border-top: 1px solid rgba(255,255,255,.32);
}
.fact-list li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.fact-num {
  font-size: 27px; font-weight: 700; line-height: 1.2;
  color: #ffffff; min-width: 2.6em; text-align: right;
}
.fact-unit { font-size: 13px; color: rgba(255,255,255,.8); letter-spacing: 0.06em; }

@media screen and (max-width: 991px) {
  #lead-copy { padding: 52px 0 46px !important; }
  #lead-copy .lead-main { font-size: 23px; }
  #lead-copy .lead-sub { max-width: none; margin-bottom: 32px; }
}
@media screen and (max-width: 576px) {
  #lead-copy .lead-main { font-size: 20px; line-height: 1.8; }
  .fact-num { font-size: 23px; min-width: 2.4em; }
}

/*==============================================================
  トップ：私たちについて
==============================================================*/
#why-us { padding-top: 70px !important; }
#why-us .col-lg-2 { display: none; }

.icon-boxes .icon-box-bg { margin: 0; padding: 0; background-color: transparent; display: flex; }
.icon-boxes .row { margin: 0 -10px; display: flex; flex-wrap: wrap; }
.icon-boxes [class*="col-md-"] { padding: 0 10px; }

.icon-boxes .icon-box {
  width: 100%;
  display: flex; flex-direction: column;
  background: var(--tint);
  border: none;
  border-top: 4px solid var(--main);
  padding: 24px 22px 20px;
  margin: 0 !important;
}
.icon-boxes .icon-box h4 {
  flex: 1 0 auto;
  color: var(--ink); font-size: 15px; font-weight: 700;
  line-height: 1.8; padding-left: 0; margin-bottom: 18px; border-left: none;
}
.icon-box-img { max-height: 66px; width: auto; opacity: .82; }
.icon-boxes .icon-box .mt-3 { margin-top: auto !important; padding-top: 4px; }

/*==============================================================
  トップ：設備紹介の帯
==============================================================*/
#products-info .content { background-color: var(--main) !important; color: var(--paper); }
#products-info .content-box { text-align: left; padding: 0 8%; }
#products-info .content-box h2 {
  font-size: 24px; letter-spacing: 0.12em; font-weight: 700;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 4px solid rgba(255,255,255,.5);
}
#products-info .content-box h4 {
  font-size: 14px; font-weight: 400; color: rgba(255,255,255,.82);
  margin-bottom: 24px; line-height: 1.8;
}
.pod-img-bg h4 { font-size: 14px; font-weight: 700; line-height: 1.7; }
.pod-img-bg span { font-size: 12px; color: rgba(255,255,255,.9); }
@media screen and (max-width: 991px) { #products-info .content-box { padding: 40px 24px; } }

/*==============================================================
  ボタン

  【重要】元CSSは背景を透明のままにして、::after を左から右へ
  広げることで塗りつぶすアニメーションになっている。
  そのため通常時の文字色は必ず暗色にしないと、
  白地に白文字で「ホバーするまで読めない」状態になる。
==============================================================*/
.custom-btn,
.custom-btn.btn-1,
.custom-btn.btn-2,
.custom-btn.btn-3 {
  border-radius: 0;
  border: 2px solid var(--main);
  background: transparent;
  color: var(--main) !important;      /* 通常時は必ず主色（暗色） */
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 14px 36px;
  box-shadow: none;
  transition: color .3s ease, border-color .3s ease;
}
.custom-btn::after,
.custom-btn.btn-1::after,
.custom-btn.btn-2::after,
.custom-btn.btn-3::after { background: var(--main) !important; }

.custom-btn:hover,
.custom-btn.btn-1:hover,
.custom-btn.btn-2:hover,
.custom-btn.btn-3:hover {
  color: #ffffff !important;          /* 面が広がってから白 */
  border-color: var(--main);
}
.custom-btn:active { top: 0; }

/* 暗い面の上に置くボタンは白線・白文字。ホバーで白が広がり文字は主色へ */
#products-info .content .custom-btn,
#products-info .content .custom-btn.btn-2 {
  border-color: #ffffff;
  color: #ffffff !important;
}
/* 誘導バナーは背景が写真で明るさが一定しないため、
   ボタン自体に半透明の暗い面を敷いて可読性を確保する */
#page-info .custom-btn,
#page-info .custom-btn.btn-3 {
  border-color: #ffffff;
  color: #ffffff !important;
  background: rgba(31,45,56,.55);
}
#products-info .content .custom-btn::after,
#products-info .content .custom-btn.btn-2::after,
#page-info .custom-btn::after,
#page-info .custom-btn.btn-3::after { background: #ffffff !important; }
#products-info .content .custom-btn:hover,
#products-info .content .custom-btn.btn-2:hover,
#page-info .custom-btn:hover,
#page-info .custom-btn.btn-3:hover {
  color: var(--main) !important;
  border-color: #ffffff;
}

/*==============================================================
  カード（業務内容・設備紹介）
==============================================================*/
.card-item { margin-bottom: 56px !important; }
#spoint-info .card-item .card-body h4,
.card-item .card-body h4 {
  font-size: 18px; font-weight: 700; line-height: 1.75;
  color: var(--ink);
  padding-left: 16px; padding-bottom: 12px;
  border-left: 4px solid var(--main);
  border-bottom: 1px solid var(--rule);
}
.card-item .card-body span {
  display: inline-block; font-size: 12px;
  letter-spacing: 0.1em; color: var(--ink-sub); margin-top: 10px;
}
.card-item .card-body p { font-size: 15px; color: var(--ink-sub); }
.card-item .card-body hr { border-color: var(--rule-soft); margin: 16px 0; }

#spoint-info .card-item .card-image {
  background-color: transparent;
  border-left: 4px solid var(--main);
}
#spoint-info .card-item .card-image .image-bg { background-color: var(--paper); }
.mTR, .mLT, .mTL, .mL, .mRL, .mTRBL { box-shadow: none !important; }

/*==============================================================
  表（会社概要・沿革）
==============================================================*/
#overview .info-table table.border,
#overview .info-table table,
.info-table table,
.info-table table.border {
  width: 100%;
  border: none !important;
  border-top: 3px solid var(--main) !important;
  border-collapse: collapse;
}
#overview .info-table table > tbody > tr > td,
.info-table td {
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 17px 26px;
  font-size: 15px; font-weight: 400;
  color: var(--ink);
  vertical-align: top; text-align: left;
  line-height: 1.9; background: transparent;
}
#overview .info-table table > tbody > tr > td:first-child,
.info-table tr td:first-child {
  width: 186px;
  padding: 17px 22px;
  font-size: 14px; font-weight: 700;
  color: var(--main);
  background-color: var(--tint);
  text-align: left; letter-spacing: 0.08em;
}
#overview .info-table table > tbody > tr:last-child > td,
.info-table tr:last-child td { border-bottom: 2px solid var(--main); }

#overview .info-table table > tbody > tr > td > ul,
.info-table td ul { margin: 0; padding-inline-start: 1.1em; }
#overview .info-table table > tbody > tr > td > ul > li,
.info-table td ul li { list-style: disc; padding-bottom: 0; margin-bottom: 4px; }

@media screen and (max-width: 768px) {
  #overview .info-table table > tbody > tr > td:first-child,
  .info-table tr td:first-child { width: 100px; padding: 13px 12px; font-size: 13px; letter-spacing: 0.02em; }
  #overview .info-table table > tbody > tr > td,
  .info-table td { padding: 13px 14px; font-size: 14px; }
}

/*==============================================================
  アクセス
==============================================================*/
#access-info .info-box {
  border: 1px solid var(--rule) !important;
  border-top: 4px solid var(--main) !important;
  padding: 0; margin-bottom: 32px !important; overflow: hidden;
}
#access-info .info-box .address { padding: 26px 28px; }
#access-info .info-box .address h4 {
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: 0.08em;
  padding-left: 14px; padding-bottom: 12px; margin-bottom: 16px;
  border-left: 4px solid var(--main);
  border-bottom: 1px solid var(--rule);
}
#access-info .info-box .address p { font-size: 14px; color: var(--ink-sub); line-height: 1.95; }
#access-info .info-box .address p:last-child { color: var(--ink); }
#access-info .info-box .image-bg,
#access-info .info-box .image-bg img,
#access-info .info-box .map,
#access-info .info-box .mapIframe { height: 258px; }
#access-info .info-box .image-bg { background-color: var(--tint); }
#access-info .info-box .image-bg img { object-fit: cover; animation: none; }

@media screen and (max-width: 768px) {
  #access-info .info-box .image-bg,
  #access-info .info-box .image-bg img,
  #access-info .info-box .map,
  #access-info .info-box .mapIframe { height: 210px; }
}

/*==============================================================
  ページ間の誘導バナー
==============================================================*/
#page-info .page-info-bg { min-height: 230px; }
#page-info .page-info-title h2 {
  font-size: 21px; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 20px;
}
#page-info .color-overlay { background: rgba(31,45,56,.72); }

/*==============================================================
  沿革（トップ）
==============================================================*/
#company-info .info-content { display: block; text-align: left; }
#company-info .info-content h2 {
  position: relative;
  font-size: 22px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--ink);
  padding-bottom: 15px; margin-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
#company-info .info-content h2::after {
  content: ""; position: absolute;
  left: 0; bottom: -1px; width: 78px; height: 4px;
  background: var(--main);
}
#company-info .info-content p {
  font-size: 15px; line-height: 2.05; color: var(--ink-sub); text-align: left;
}
#company-info .info-button { text-align: left; margin-top: 26px; }
#company-info .info-bg { min-height: 300px; }

/*==============================================================
  問い合わせ・採用
==============================================================*/
#contact-info .contact-info-bg {
  background: var(--tint) !important;
  border: none !important;
  border-top: 4px solid var(--main) !important;
  padding: 32px 36px 30px !important;
}
#contact-info .contact-info-bg h2 {
  font-size: 19px; font-weight: 700; color: var(--ink); margin: 0 0 8px;
}
#contact-info .contact-info-bg > p {
  font-size: 14px; color: var(--ink-sub); margin-bottom: 22px;
}
#contact-info .row.pb-4 { padding-bottom: 0 !important; margin: 0 0 20px; }
#contact-info .contact-info-num {
  background: transparent;
  border-left: 5px solid var(--main);
  padding: 2px 0 2px 22px;
}
#contact-info .contact-info-num h3 {
  font-size: 30px; font-weight: 700;
  color: var(--main);
  letter-spacing: 0.01em; line-height: 1.5; margin: 0;
}
#contact-info .contact-info-num h3 span {
  font-size: 13px; font-weight: 400; color: var(--ink-sub); margin-left: 6px;
}
#contact-info .contact-notice {
  display: block; font-size: 12px; color: var(--ink-sub); line-height: 1.9;
}

/* 採用の呼びかけは主色の面にして、問い合わせと明確に分ける */
#contact-info .contact-info-text {
  background: var(--main) !important;
  border: none !important;
  padding: 30px 28px 28px !important;
}
#contact-info .info-text-bg {
  background: transparent !important; padding: 0 !important; margin: 0 0 16px !important;
}
#contact-info .info-text-bg h4 {
  font-size: 16px; font-weight: 700; color: #ffffff;
  letter-spacing: 0.04em;
  padding: 0 0 12px !important; margin: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.45) !important;
}
#contact-info .contact-info-text p {
  font-size: 14px; line-height: 2.0; color: rgba(255,255,255,.9); margin: 0;
}

@media screen and (max-width: 991px) { #contact-info .contact-info-text { margin-top: 26px; } }
@media screen and (max-width: 768px) {
  #contact-info .contact-info-bg { padding: 26px 20px !important; }
  #contact-info .contact-info-text { padding: 24px 20px 22px !important; }
  #contact-info .contact-info-num h3 { font-size: 22px; }
}

/*==============================================================
  フッター
==============================================================*/
.hr-lines { display: none; }
.footer-logo { display: none; }
#footer {
  background: var(--main);
  border-top: none;
  padding: 26px 0;
}
#footer .container { justify-content: flex-end; }
#footer small,
#footer small strong {
  color: rgba(255,255,255,.85) !important;
  font-size: 12px; font-weight: 400;
}

/*==============================================================
  トップへ戻る
==============================================================*/
.back-to-top {
  background: var(--main);
  border-radius: 0;
  width: 44px; height: 44px; line-height: 44px;
  box-shadow: none;
}
.back-to-top i { color: #ffffff; }
.back-to-top:hover { background: var(--main-dp); }

/*==============================================================
  操作性
==============================================================*/
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
