/* ===================================================
   あじよし商事 - ヘッダーグローバルCSS
   page-top.phpから切り出しfunctions.phpでエンキュー
   =================================================== */

/* ===========================
   CSS変数
   =========================== */
:root {
  --main: #004831;
  --sub: #a0c81d;
  --cream: #feffe1;
  --black: #222;
  --gray: #3b3b3b;
  --red: #c60700;
  --grad-fax-start: #14a375;
  --grad-fax-end: #03553b;
  --grad-contact-start: #66bee8;
  --grad-contact-end: #2d89b5;
  --max-w: 1130px;
  --side-pad: 155px;
}

/* ===========================
   ベースリセット（全ページ共通）
   =========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
}

/* Divi固定ナビのpadding-top調整 */
.et_fixed_nav.et_show_nav #page-container,
.et_non_fixed_nav.et_transparent_nav.et_show_nav #page-container,
.et_fixed_nav.et_show_nav.et_secondary_nav_enabled #page-container,
.et_non_fixed_nav.et_transparent_nav.et_show_nav.et_secondary_nav_enabled
  #page-container {
  padding-top: 0 !important;
}

.et-animated-content {
  padding-top: 0 !important;
}

/* ===========================
   ヘッダー
   =========================== */
#pt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* 最上部帯 */
.pt-header-top {
  background: var(--main);
  padding: 4px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pt-header-top-tagline {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.tagline-sp {
  display: none;
}

.pt-header-top-links {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.pt-header-top-links a {
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.pt-header-top-links a img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ロゴ帯 */
.pt-header-logo {
  background: var(--cream);
  padding: 12px var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.pt-logo-link img {
  width: 280px;
  height: auto;
  display: block;
}

.pt-header-right {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.pt-phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.pt-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pt-phone-row img {
  width: 26px;
  height: 26px;
}

.pt-phone-num {
  color: var(--red) !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.pt-phone-badges {
  display: flex;
  gap: 6px;
  width: 100%;
}

.pt-badge {
  border: 1px solid #ccc;
  background: #fff;
  padding: 5px 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  flex: 1;
  text-align: center;
}

/* お問い合わせボタン */
.pt-contact-wrap {
  position: relative;
  height: 69px;
  min-width: 158px;
  flex-shrink: 0;
}

.pt-contact-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  line-height: 0;
  pointer-events: none;
}

.pt-btn-contact {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    to bottom,
    var(--grad-contact-start) 35%,
    var(--grad-contact-end)
  );
  border: 1px solid rgba(224, 224, 224, 0.4);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 0 16px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
}

.pt-btn-contact img {
  width: 24px;
  height: 24px;
}

/* 採用ボタン */
.pt-btn-recruit {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  background: linear-gradient(to bottom, #fff, #d8d8d8);
  border: 1px solid rgba(224, 224, 224, 0.4);
  color: #004831 !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 14px;
  border-radius: 4px;
  height: 54px;
  justify-content: center;
  white-space: nowrap;
  text-align: center;
}

.pt-btn-recruit img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ナビゲーションバー */
.pt-nav {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.pt-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.pt-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-nav-list li a {
  display: block;
  padding: 13px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  white-space: nowrap;
  transition: color 0.2s;
}

.pt-nav-list li a:hover,
.pt-nav-list li.current a {
  color: var(--main);
  font-weight: 700;
}

/* ハンバーガー */
.pt-hamburger {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 100;
  flex-direction: column;
  gap: 5px;
  height: fit-content;
  align-self: flex-start;
}

.pt-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--main);
  transition: all 0.3s;
}

.pt-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pt-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.pt-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* モバイルメニュー */
.pt-mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid #e8e8e8;
}

.pt-mobile-menu.is-open {
  display: flex;
}

.pt-mobile-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--black);
  border-bottom: 1px solid #f0f0f0;
}

.pt-mobile-menu a:hover {
  background: #f8f8f8;
  color: var(--main);
}

/* ===========================
   レスポンシブ（ヘッダー関連）
   =========================== */
@media (max-width: 1200px) {
  :root {
    --side-pad: 40px;
  }
}

@media (max-width: 1000px) {
  :root {
    --side-pad: 20px;
  }
}

@media (max-width: 900px) {
  .pt-header-top-links {
    display: none;
  }

  .pt-nav-list {
    display: none;
  }

  .pt-hamburger {
    display: flex;
  }

  .pt-nav-inner {
    display: none;
  }

  .pt-nav {
    border-bottom: none;
  }

  .pt-contact-wrap,
  .pt-btn-recruit {
    display: none;
  }

  .pt-header-logo {
    padding-right: 64px;
  }

  .pt-phone-num {
    font-size: 22px;
  }

  .pt-logo-link img {
    width: 200px;
  }
}

@media (max-width: 768px) {
  /* 緑バー: スマホでも表示、padding縮小 */
  .pt-header-top {
    padding: 6px 16px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .pt-header-top-tagline {
    white-space: normal;
    font-size: 12px;
    line-height: 1.4;
  }

  .tagline-pc {
    display: none;
  }

  .tagline-sp {
    display: inline;
  }

  .pt-header-top-links {
    gap: 16px;
  }

  .pt-header-top-links a {
    font-size: 12px;
  }

  /* ロゴ帯: 行並び・左寄せ */
  .pt-header-logo {
    flex-direction: row;
    align-items: center;
    padding: 8px 64px 8px 16px;
    gap: 0;
  }

  /* ロゴ左寄せ */
  .pt-logo-link img {
    width: 200px;
  }

  /* 年中無休・営業時間バッジを非表示 */
  .pt-phone-wrap {
    display: none;
  }

  /* 右エリアも非表示（コンテンツなし） */
  .pt-header-right {
    display: none;
  }

  /* ハンバーガーをロゴ帯右上に配置 */
  .pt-hamburger {
    top: 10px;
    transform: none;
  }
}

/* ===================================================
   フッター（全ページ共通）
   =================================================== */

#pt-footer {
  background: var(--cream);
  border-top: 4px solid var(--main);
}

.pt-footer-main {
  padding: 36px var(--side-pad) 32px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.pt-footer-left {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
}

.pt-footer-logo img {
  width: 260px;
  height: auto;
  display: block;
}

.pt-footer-address {
  font-size: 13px;
  line-height: 1.9;
  color: var(--black);
  font-style: normal;
}

.pt-footer-sns {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pt-footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}

.pt-footer-sns img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.pt-footer-nav {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 40px;
}

.pt-footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pt-footer-nav-col a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  line-height: 1.4;
}

.pt-footer-nav-col a:hover {
  color: var(--main);
}

.pt-footer-nav-col .col-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
}

.pt-footer-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 6px;
}

.pt-footer-nav-sub a {
  font-size: 13px;
}

.pt-footer-nav-sub a::before {
  content: '- ';
}

.pt-footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  text-align: center;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--main);
}

/* モバイル固定ボタン */
.pt-fixed-btns {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

.pt-fixed-btns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.pt-fixed-tel {
  background: var(--main);
}

.pt-fixed-mail {
  background: #5bb8d4;
}

.pt-fixed-btns .icon {
  display: inline-block !important;
  width: auto;
  line-height: 1;
  color: #fff;
  font-style: normal;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.pt-fixed-btns .icon-tel {
  font-size: 20px;
}

.pt-fixed-btns .icon-mail {
  font-size: 30px;
  top: -4px;
}

@media (max-width: 768px) {
  .pt-footer-main {
    flex-direction: column;
    padding: 28px 20px;
  }

  .pt-footer-nav {
    grid-template-columns: 1fr 1fr;
  }

  .pt-fixed-btns {
    display: flex;
  }

  body {
    padding-bottom: 50px;
  }
}

@media (max-width: 480px) {
  .pt-footer-nav {
    grid-template-columns: 1fr;
  }
}

/* ===================================================
   デスクトップ固定バー
   =================================================== */
.pt-fixed-bar-desktop {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: var(--cream);
  border-top: 1px solid #e1e1e1;
  z-index: 9999;
  overflow: visible;
}

.pt-fixed-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 6px 20px;
  position: relative;
}

/* 女性画像 */
.pt-fixed-bar-woman {
  display: none;
  position: absolute;
  left: 20px;
  bottom: -34px;
  width: 110px;
  pointer-events: none;
}

@media (min-width: 1080px) {
  .pt-fixed-bar-inner {
    padding-left: 160px;
  }

  .pt-fixed-bar-woman {
    display: block;
  }
}

.pt-fixed-bar-woman img {
  display: block;
  width: 110px;
  height: auto;
  transform: scaleX(-1);
}

/* 電話エリア */
.pt-fixed-bar-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0px 8px;
  border-radius: 8px;
  flex: 1;
}

.pt-fixed-bar-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pt-badge--bar {
  flex: none;
}

.pt-fixed-bar-phone-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.pt-fixed-bar-phone-row img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.pt-fixed-bar-phone-num {
  color: var(--red) !important;
  font-size: 37px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* お問い合わせボタン */
.pt-fixed-bar-contact-wrap {
  position: relative;
  height: 65px;
  width: 228px;
  flex-shrink: 0;
}

.pt-fixed-bar-contact-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
  line-height: 0;
}

.pt-fixed-bar-btn-contact {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(
    to bottom,
    var(--grad-contact-start) 35%,
    var(--grad-contact-end)
  );
  border: 1px solid rgba(224, 224, 224, 0.4);
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  white-space: nowrap;
  text-align: center;
  padding: 0 12px;
}

.pt-fixed-bar-btn-contact img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* FAXボタン */
.pt-fixed-bar-btn-fax {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(
    to bottom,
    var(--grad-fax-start),
    var(--grad-fax-end)
  );
  border: 1px solid rgba(224, 224, 224, 0.4);
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  width: 201px;
  height: 54px;
  padding: 7px 10px;
  flex-shrink: 0;
  text-align: center;
}

.pt-fixed-bar-btn-fax img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.pt-fixed-bar-btn-fax-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.4;
  text-align: center;
}

.pt-fixed-bar-fax-num {
  display: flex;
  gap: 4px;
  font-size: 9px;
  font-weight: 500;
}

/* デスクトップのみ表示 */
@media (min-width: 768px) {
  .pt-fixed-bar-desktop {
    display: block;
  }

  body {
    padding-bottom: 76px;
  }
}

/* 狭いデスクトップ（768px〜950px）: 女性画像・バッジを非表示・電話番号縮小 */
@media (min-width: 768px) and (max-width: 950px) {
  .pt-fixed-bar-inner {
    padding: 0 12px 6px 12px;
    gap: 6px;
    justify-content: center;
  }

  .pt-fixed-bar-woman {
    display: none;
  }

  .pt-fixed-bar-badges {
    display: none;
  }

  .pt-fixed-bar-phone-row img {
    width: 34px;
    height: 34px;
  }

  .pt-fixed-bar-phone-num {
    font-size: 38px;
  }

  .pt-fixed-bar-phone {
    flex: none;
    padding: 7px 6px;
  }

  .pt-fixed-bar-contact-wrap {
    width: 190px;
  }

  .pt-fixed-bar-btn-fax {
    width: 170px;
    font-size: 10px;
  }
}

/* ===================================================
   共通コンポーネント（TOP・はじめての方へ等で共有）
   =================================================== */

/* セクション見出し（緑グラデ帯） */
.pt-heading-band-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

.pt-heading-band-inner {
  width: 100%;
  max-width: 730px;
}

.pt-heading-line {
  height: 1px;
  background: var(--main);
}

.pt-heading-band {
  background: linear-gradient(
    90deg,
    rgba(0, 72, 49, 0) 0%,
    #004831 18%,
    #004831 82%,
    rgba(0, 72, 49, 0) 100%
  );
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 4px 0;
  padding: 10px 32px;
  line-height: 1.5;
}

/* セクション区切り見出し（横線+タイトル） */
.pt-services-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pt-services-heading .hline {
  flex: 1;
  height: 1px;
  background: var(--main);
}

.pt-services-heading h2 {
  display: flex;
  align-items: center;
  font-size: 26px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  letter-spacing: 1px;
}

.pt-services-heading h2 span {
  background: var(--main);
  color: #fff;
  padding: 8px 14px;
}

/* CTA帯（電話番号+お問い合わせ/FAXボタン） */
.pt-cta {
  background: #f0ffd2;
  position: relative;
  overflow: hidden;
  padding: 48px var(--side-pad) 40px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pt-cta-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.pt-cta-decor-img {
  position: absolute;
  left: -2%;
  top: -25%;
  height: 148%;
  width: auto;
  opacity: 0.55;
  object-fit: cover;
}

.pt-cta-decor-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(240, 255, 210, 0) 52%,
    #f0ffd2 88%
  );
}

.pt-cta-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1130px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
}

.pt-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 720px;
  max-width: 100%;
}

.pt-cta-phone-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-cta-phone-num {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 64px;
  font-weight: 700;
  color: var(--red) !important;
  line-height: 1;
}

.pt-cta-phone-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.pt-cta-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 8px;
}

.pt-cta-btns {
  display: flex;
  gap: 24px;
  width: 100%;
}

.pt-cta-btn-contact {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    var(--grad-contact-start) 35%,
    var(--grad-contact-end)
  );
  border: 1px solid rgba(224, 224, 224, 0.4);
  border-radius: 4px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  padding: 8px 16px 12px;
  white-space: nowrap;
  text-align: center;
}

.pt-cta-btn-contact img {
  width: 24px;
  height: 24px;
}

.pt-cta-btn-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: block;
}

.pt-cta-btn-fax {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 80px;
  background: linear-gradient(
    to bottom,
    var(--grad-fax-start),
    var(--grad-fax-end)
  );
  border: 1px solid rgba(224, 224, 224, 0.4);
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
}

.pt-cta-btn-fax img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.pt-cta-btn-fax-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pt-cta-btn-fax-main {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.pt-cta-btn-fax-sub {
  font-size: 16px;
  font-weight: 500;
}

.pt-cta-btn-contact,
.pt-cta-btn-contact:hover,
.pt-cta-btn-contact:focus,
.pt-cta-btn-contact:visited,
.pt-cta-btn-fax,
.pt-cta-btn-fax:hover,
.pt-cta-btn-fax:focus,
.pt-cta-btn-fax:visited,
.pt-cta-btn-fax-main,
.pt-cta-btn-fax-sub,
.pt-cta-btn-contact .pt-cta-btn-badge {
  color: #fff !important;
}

@media (max-width: 1440px) {
  .pt-cta-decor-img {
    left: -12%;
  }
}

@media (max-width: 1000px) {
  .pt-cta-decor-img {
    display: none;
  }

  .pt-cta {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .pt-heading-band-wrap {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
  }

  .pt-cta {
    flex-direction: column;
    padding: 40px 20px;
  }

  .pt-cta-wrap {
    justify-content: center;
  }

  .pt-cta-inner {
    width: 100%;
    gap: 28px;
  }

  .pt-cta-phone-num {
    font-size: 32px;
  }

  .pt-cta-phone-row {
    flex-direction: column;
    align-items: center;
  }

  .pt-cta-badges {
    margin-left: 0;
    flex-direction: row;
  }

  .pt-cta-btns {
    flex-direction: column;
  }
}
