/* 上部メニュー（案A、2026-12-04）
   body.nav-new のときだけ効く。古いメニューに戻すときは functions.php の PPDAIWA_NAV_NEW を false に */
body.nav-new {
  --nv-blue: #004da0;
  --nv-ink: #333;
  --nv-muted: #888;
  --nv-line: #ddd;
  --nv-bg-soft: #f3f4f5;
  --nv-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  min-width: 0; /* 古い「最低幅1100px」を外す（iPadで右が切れる問題の対策） */
}

/* ------------------------------------------------------------
   ドロップダウンの中身（事業案内・会社案内）
------------------------------------------------------------ */
.nv-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-top: 1px solid var(--nv-line); box-shadow: var(--nv-shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nv-has-panel.is-open > .nv-panel { opacity: 1; visibility: visible; transform: none; }
.nv-panel__inner { display: flex; gap: 40px; max-width: 1100px; margin: 0 auto; padding: 28px 40px 32px; }
.nv-panel__lead { flex: 0 0 220px; border-right: 1px solid var(--nv-line); padding-right: 30px; }
.nv-panel__lead .ttl { font-size: 20px; font-weight: 700; }
.nv-panel__lead .en { font-family: "Josefin Sans", sans-serif; color: var(--nv-muted); font-size: 12px; letter-spacing: .1em; }
.nv-panel__lead p { margin-top: 12px; font-size: 13px; color: #666; line-height: 1.8; }
.nv-panel__links { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px; align-content: start; }
.nv-panel__links a { display: block; padding: 12px 14px; border-radius: 6px; transition: background .15s; }
.nv-panel__links a:hover { background: var(--nv-bg-soft); }
.nv-panel__links a b { display: block; font-size: 15px; }
.nv-panel__links a b::after { content: " \203A"; color: var(--nv-blue); }
.nv-panel__links a small { display: block; margin-top: 2px; font-size: 12px; color: var(--nv-muted); line-height: 1.6; }

/* ▼ 印 */
.nv-caret { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.nv-has-panel.is-open .nv-caret { transform: translateY(1px) rotate(-135deg); }

/* ------------------------------------------------------------
   ヘッダー本体：6項目＋▼で開く＋スクロールで細く
------------------------------------------------------------ */
.nv-bar {
  position: fixed; z-index: 99; top: 0; left: 0; right: 0; height: 100px;
  display: flex; align-items: center; background: #fff; transition: height .3s, box-shadow .3s;
}
body.nv-scrolled .nv-bar { height: 64px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.nv-logo { display: block; margin: 0 0 0 40px; line-height: 0; }
.nv-logo img { width: 200px; height: auto; transition: width .3s; }
body.nv-scrolled .nv-logo img { width: 160px; }
.nv-nav { display: flex; align-items: center; margin-left: auto; height: 100%; }
.nv-item { position: static; height: 100%; }
.nv-item > a, .nv-item > button {
  display: flex; align-items: center; height: 100%; padding: 0 18px;
  font: inherit; font-weight: 700; color: var(--nv-ink); background: none; border: 0; cursor: pointer; position: relative;
  transition: color .15s;
}
.nv-item > a:hover, .nv-item > button:hover, .nv-item.is-open > button { color: var(--nv-blue); }
.nv-item.is-current > a, .nv-item.is-current > button { color: var(--nv-blue); }
.nv-item.is-current > a::after, .nv-item.is-current > button::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 26px; height: 2px; background: var(--nv-blue);
}
body.nv-scrolled .nv-item.is-current > a::after, body.nv-scrolled .nv-item.is-current > button::after { bottom: 12px; }
.nv-item > button:focus-visible, .nv-item > a:focus-visible { outline: 2px solid var(--nv-blue); outline-offset: -6px; }
.nv-tel { margin: 0 22px 0 10px; text-align: right; line-height: 1.3; }
.nv-tel b { display: block; font-size: 18px; font-weight: 700; color: var(--nv-ink); letter-spacing: .04em; }
.nv-tel small { font-size: 11px; color: var(--nv-muted); }
.nv-contact {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 140px; height: 100%; background: var(--nv-ink); color: #fff !important; font-size: 14px; transition: background .15s;
}
.nv-contact:hover { background: #000; }
.nv-contact i { font-size: 28px; line-height: 1; }
body.nv-scrolled .nv-contact i { display: none; }
.nv-menu-btn { display: none; }

/* iPad横くらい：文字を少し小さく、電話番号は隠す */
@media (max-width: 1240px) {
  .nv-logo { margin-left: 20px; }
  .nv-logo img { width: 170px; }
  .nv-item > a, .nv-item > button { padding: 0 11px; font-size: 14px; }
  .nv-item.is-current > a::after, .nv-item.is-current > button::after { left: 11px; right: 11px; }
  .nv-tel { display: none; }
  .nv-contact { width: 120px; }
}
@media (max-width: 900px) {
  .nv-item > a, .nv-item > button { padding: 0 8px; font-size: 13px; }
  .nv-logo img { width: 150px !important; }
}

/* ------------------------------------------------------------
   スマホ（768px以下）
------------------------------------------------------------ */
.nv-sp { display: none; }
@media (max-width: 768px) {
  .nv-nav, .nv-tel, .nv-contact { display: none !important; }
  .nv-bar { height: 64px !important; }
  .nv-logo { margin-left: 16px; }
  .nv-logo img { width: 150px !important; }
  .nv-menu-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    margin-left: auto; width: 64px; height: 64px; background: none; border: 0; color: var(--nv-blue);
    font-family: "Josefin Sans", sans-serif; font-size: 10px; font-weight: 700; cursor: pointer;
  }
  .nv-menu-lines { display: block; width: 22px; height: 14px; position: relative; }
  .nv-menu-lines::before, .nv-menu-lines::after, .nv-menu-lines span { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--nv-blue); }
  .nv-menu-lines::before { top: 0; } .nv-menu-lines span { top: 6px; } .nv-menu-lines::after { top: 12px; }

  .nv-sp { display: block; }
  .nv-sp__sheet {
    position: fixed; z-index: 300; top: 0; right: 0; bottom: 0; left: 0; background: #fff; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s; visibility: hidden;
  }
  body.nv-sp-open .nv-sp__sheet { transform: none; visibility: visible; }
  body.nv-sp-open { overflow: hidden; }
  .nv-sp__head { display: flex; align-items: center; height: 64px; padding-left: 16px; border-bottom: 1px solid var(--nv-line); }
  .nv-sp__head img { width: 150px; height: auto; }
  .nv-sp__close { margin-left: auto; width: 64px; height: 64px; background: none; border: 0; font-size: 30px; color: var(--nv-blue); cursor: pointer; }
  .nv-sp__list > li { border-bottom: 1px solid var(--nv-line); }
  .nv-sp__list > li > a, .nv-sp__list > li > button {
    display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0 20px;
    font: inherit; font-size: 16px; font-weight: 700; color: var(--nv-ink); background: none; border: 0; text-align: left; cursor: pointer;
  }
  .nv-sp__list > li.is-current > a, .nv-sp__list > li.is-current > button { color: var(--nv-blue); }
  .nv-sp__list > li > a::after { content: "\203A"; margin-left: auto; color: #bbb; font-size: 22px; font-weight: 400; }
  .nv-sp__plus { margin-left: auto; position: relative; width: 16px; height: 16px; }
  .nv-sp__plus::before, .nv-sp__plus::after { content: ""; position: absolute; background: var(--nv-blue); }
  .nv-sp__plus::before { left: 0; right: 0; top: 7px; height: 2px; }
  .nv-sp__plus::after { top: 0; bottom: 0; left: 7px; width: 2px; transition: transform .2s; }
  .nv-sp__list > li.is-open .nv-sp__plus::after { transform: scaleY(0); }
  .nv-sp__sub { display: none; background: var(--nv-bg-soft); padding: 4px 0; }
  .nv-sp__list > li.is-open .nv-sp__sub { display: block; }
  .nv-sp__sub a { display: flex; align-items: center; min-height: 48px; padding: 0 20px 0 34px; font-size: 15px; }
  .nv-sp__sub a::after { content: "\203A"; margin-left: auto; color: #bbb; font-size: 20px; }
  .nv-sp__foot { padding: 22px 20px 40px; display: grid; gap: 12px; }
  .nv-sp__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 27px; font-weight: 700; font-size: 15px; }
  .nv-sp__btn.tel { border: 2px solid var(--nv-ink); color: var(--nv-ink); }
  .nv-sp__btn.tel small { font-weight: 400; font-size: 11px; }
  .nv-sp__btn.mail { background: var(--nv-ink); color: #fff !important; }
  .nv-sp__btn i { font-size: 20px; }

  /* 画面の下にずっと出る「電話・お問い合わせ」 */
  .nv-sp__fixed { position: fixed; z-index: 98; left: 0; right: 0; bottom: 0; display: flex; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
  .nv-sp__fixed a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 54px; font-size: 14px; font-weight: 700; }
  .nv-sp__fixed .tel { background: #fff; color: var(--nv-ink); }
  .nv-sp__fixed .mail { background: var(--nv-ink); color: #fff !important; }
  .nv-sp__fixed i { font-size: 20px; }
  body.nav-new .footer { padding-bottom: 54px; }
}

/* ------------------------------------------------------------
   iPadくらいの幅（769〜1229px）：古い固定幅の本文がはみ出さないように
   （以前は body の最低幅1100pxで横スクロールさせていた）
------------------------------------------------------------ */
@media (min-width: 769px) and (max-width: 1229px) {
  body.nav-new .image_txt_section .image { min-width: 0; width: 46%; }
  body.nav-new .image_txt_section .txt { min-width: 0; width: 54%; }
  body.nav-new .image_txt_section .txt.left { padding: 0 3% 0 5%; }
  body.nav-new .image_txt_section .txt.right { padding: 0 5% 0 3%; }
  body.nav-new .planning_point_box .planning_separator { width: 100%; }
}

/* ------------------------------------------------------------
   トップ最初の画面（2026-12-04 包みnication の絵をやめて文字に。経営理念「より魅力ある商品」から）
------------------------------------------------------------ */
.nv-br-sp { display: none; }
.nv-hero::after { content: ""; position: absolute; z-index: 2; top: 0; right: 0; bottom: 0; left: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10, 14, 22, .62) 0%, rgba(10, 14, 22, .3) 50%, rgba(10, 14, 22, 0) 85%); }
.nv-hero .copy { display: flex; align-items: center; justify-content: flex-start; width: auto; height: auto; padding: 0 0 0 9%; color: #fff; text-align: left; }
.nv-hero__in { text-shadow: 0 1px 10px rgba(0, 0, 0, .25); }
.nv-hero__en { font-family: "Josefin Sans", sans-serif; font-size: 13px; letter-spacing: .3em; opacity: .85; }
.nv-hero__en span { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .6); }
.nv-hero__ttl { margin-top: 26px; font-size: 54px; font-weight: 700; letter-spacing: .1em; line-height: 1.5; }
.nv-hero__txt { margin-top: 26px; font-size: 15px; line-height: 2.1; letter-spacing: .1em; opacity: .92; }
.nv-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; text-shadow: none; }
.nv-hero__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; font-size: 14px; font-weight: 500; letter-spacing: .08em; transition: background .15s; }
.nv-hero__btn::after { content: "\203A"; font-size: 20px; line-height: 1; margin-top: -2px; }
.nv-hero__btn.main { background: #fff; color: #333 !important; }
.nv-hero__btn.main:hover { background: #eef2f7; }
.nv-hero__btn.sub { border: 1px solid rgba(255, 255, 255, .85); color: #fff !important; }
.nv-hero__btn.sub:hover { background: rgba(255, 255, 255, .12); }
@media (max-width: 768px) {
  .nv-br-sp { display: inline; }
  .nv-br-pc { display: none; }
  .nv-hero::after { background: rgba(10, 14, 22, .45); }
  .nv-hero .copy { padding: 0 24px; }
  .nv-hero__en { font-size: 11px; letter-spacing: .2em; }
  .nv-hero__ttl { margin-top: 18px; font-size: 32px; letter-spacing: .06em; }
  .nv-hero__txt { font-size: 13px; line-height: 1.9; letter-spacing: .04em; }
  .nv-hero__btns { gap: 10px; margin-top: 28px; }
  .nv-hero__btn { height: 44px; padding: 0 18px; font-size: 13px; }
}

/* メニューの文字を途中で折り返さない（2026-12-04「会社案／内」対策）。項目が増えても割れないよう、幅に合わせて詰める */
.nv-item > a, .nv-item > button, .nv-tel, .nv-contact { white-space: nowrap; }
.nv-nav { flex-shrink: 1; min-width: 0; }
@media (max-width: 1360px) {
  .nv-tel { display: none; }
  .nv-item > a, .nv-item > button { padding: 0 13px; }
  .nv-item.is-current > a::after, .nv-item.is-current > button::after { left: 13px; right: 13px; }
}
@media (max-width: 1240px) {
  .nv-item > a, .nv-item > button { padding: 0 10px; font-size: 14px; }
  .nv-item.is-current > a::after, .nv-item.is-current > button::after { left: 10px; right: 10px; }
}
@media (max-width: 1000px) {
  .nv-logo img { width: 140px !important; }
  .nv-item > a, .nv-item > button { padding: 0 7px; font-size: 13px; letter-spacing: 0; }
  .nv-item.is-current > a::after, .nv-item.is-current > button::after { left: 7px; right: 7px; }
  .nv-caret { margin-left: 4px; }
  .nv-contact { width: 96px; font-size: 12px; }
}
/* 言葉の途中で行が変わらないように */
.nv-panel p, .nv-panel small, .nv-hero__txt { word-break: auto-phrase; }
@media (min-width: 769px) and (max-width: 860px) {
  .nv-logo { margin-left: 14px; }
  .nv-logo img { width: 118px !important; }
  .nv-item > a, .nv-item > button { padding: 0 5px; font-size: 12px; }
  .nv-item.is-current > a::after, .nv-item.is-current > button::after { left: 5px; right: 5px; }
  .nv-caret { width: 6px; height: 6px; margin-left: 3px; }
  .nv-contact { width: 84px; }
}
/* 開くパネル：項目名を割らない。狭い画面は2列に */
.nv-panel__links a b { white-space: nowrap; }
@media (max-width: 1100px) {
  .nv-panel__inner { gap: 24px; padding: 22px 24px 26px; }
  .nv-panel__lead { flex-basis: 170px; padding-right: 20px; }
  .nv-panel__links { grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
}
