﻿/* PowerChall+283: PowerChall+281採用CSSを全対象ページ用に同一化 */
/* PowerChall+281: products.html専用Padding確認版。nav-frame max-widthを1120pxへ戻す。 */
/* APJ common header CSS - PowerChall+277 */
/* Codex調査反映：ヘッダー専用font-familyを明示し、旧共通navクラス依存を避ける。 */
/* 方針：専用クラスで制御し、強制上書き指定を使わない。 */

.apj-v100-header {
  background: #fff;
  border-bottom: 1px solid #eadfd3;
  box-shadow: 0 2px 10px rgba(60, 40, 20, 0.06);
  font-family: "Yu Gothic", "Meiryo", sans-serif;
}

.apj-v100-header .apj-v100-logo-row {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 22px 10px;
  box-sizing: border-box;
}

.apj-v100-header .apj-v100-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.apj-v100-header .apj-v100-brand-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  color: #4b3528;
  text-decoration: none;
}

.apj-v100-header .apj-v100-brand-logo {
  display: block;
  max-width: 155px;
  width: min(155px, 42vw);
  height: auto;
}

.apj-v100-header .apj-v100-brand-subtitle {
  display: block;
  margin-top: 4px;
  color: #5a4030;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.apj-v100-header .apj-v100-side-logo-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.apj-v100-header .apj-v100-side-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 86px;
  object-fit: contain;
}

.apj-v100-header .apj-v100-nav-frame {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 40px 12px;
  box-sizing: border-box;
}

.apj-v100-header .apj-v100-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  margin-top: 14px;
}

.apj-v100-header .apj-v100-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #0f2340;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.apj-v100-header .apj-v100-nav a:first-child {
  padding-left: 12px;
}

.apj-v100-header .apj-v100-nav a:last-child {
  padding-right: 12px;
}

.apj-v100-header .apj-v100-nav a:hover {
  background: #f3f7ef;
  color: #2f6f2f;
}

.apj-v100-header .apj-v100-nav a.is-active,
.apj-v100-header .apj-v100-nav a.is-active:hover {
  background: #3f873f;
  color: #fff;
}

@media (max-width: 760px) {
  .apj-v100-header .apj-v100-logo-row {
    display: block;
    padding: 14px 16px 8px;
    text-align: center;
  }

  .apj-v100-header .apj-v100-brand {
    justify-content: center;
  }

  .apj-v100-header .apj-v100-brand-link {
    align-items: center;
    margin: 0 auto;
  }

  .apj-v100-header .apj-v100-brand-logo {
    max-width: 155px;
    width: min(155px, 56vw);
  }

  .apj-v100-header .apj-v100-brand-subtitle {
    font-size: 13px;
    text-align: center;
  }

  .apj-v100-header .apj-v100-side-logo-wrap {
    display: none;
  }

  .apj-v100-header .apj-v100-nav-frame {
    max-width: 100%;
    padding: 0 32px 12px;
  }

  .apj-v100-header .apj-v100-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
  }

  .apj-v100-header .apj-v100-nav a {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 8px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }

  .apj-v100-header .apj-v100-nav a:first-child,
  .apj-v100-header .apj-v100-nav a:last-child {
    padding-right: 8px;
    padding-left: 8px;
  }
}

/* APJ smooth page anchor scroll - PowerChall+289 */
html {
  scroll-behavior: smooth;
}

