@charset "utf-8";
/* ======================================================================
 DASH 共通ヘッダー・メニュー（全ページ）
 - PC：白地のヘッダー＋文字は常に黒（トップの先頭でも読める）、現在地は赤い下線
 - スマホ：右から出るメニューを、サイトの白・黒・赤のデザインに揃える
====================================================================== */


/* ---------- 「Ū」（SHOKŪMA）などの上バーの位置を直す ----------
   Noto Sans JP の「Ū」は上のバーの位置がずれている。Ū を含む「ラテン拡張」の範囲だけ、
   Inter（子テーマに同梱）で表示する。重さ（400/500/700/900）はそれぞれ別に指定しないと
   Noto 側が優先されるため、1つずつ書いている。 */
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF; }
@font-face { font-family: 'Noto Sans JP'; font-style: normal; font-weight: 900; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF; }
@font-face { font-family: 'Arial'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02AF; }

:root {
  --dh-red: #D32F2F;
  --dh-red-text: #B71C1C;
  --dh-ink: #141414;
  --dh-line: #EFEDE8;
  --dh-ease: cubic-bezier(.19, 1, .22, 1);
}

/* ---------- ヘッダーの土台（どのページ・どのスクロール位置でも同じ見た目） ---------- */
body #header,
body.header_type2 #header,
body.header_type2.header_fixed #header,
body.header_type2.active_header #header {
  background: rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--dh-line) !important;
  box-shadow: 0 6px 24px rgba(20, 20, 20, .04);
}
/* ロゴは常に黒文字のほう（#header_logo）を出す */
body.header_type2 #header_logo { opacity: 1 !important; pointer-events: auto !important; }
body.header_type2 #header_logo2 { opacity: 0 !important; pointer-events: none !important; }
/* 左上の赤と黒の斜めライン（サイトの各ページの見出しと同じモチーフ） */
#header::before {
  content: ""; position: absolute; left: 0; top: 0; width: 6px; height: 100%;
  background: linear-gradient(var(--dh-red) 0 100%); pointer-events: none; z-index: 4;
}

/* ---------- PC のメニュー ---------- */
#global_menu { right: 36px; }
#global_menu > ul { display: flex; align-items: center; height: 80px; }
#global_menu > ul > li { display: flex; align-items: center; height: 80px; font-size: 15px; }
body #global_menu > ul > li > a,
body.header_type2 #global_menu > ul > li > a,
body.header_type2.header_fixed #global_menu > ul > li > a,
body.header_type2.active_header #global_menu > ul > li > a {
  color: var(--dh-ink);
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', Meiryo, sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  padding: 0 16px; transition: color .3s;
}
/* 赤い下線（ホバー・現在地で左から伸びる） */
#global_menu > ul > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 24px; height: 2px;
  background: var(--dh-red); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--dh-ease);
}
#global_menu > ul > li > a:hover,
#global_menu > ul > li.current-menu-item > a,
#global_menu > ul > li.current-menu-parent > a,
#global_menu > ul > li.current-menu-ancestor > a,
#global_menu > ul > li.current_page_item > a { color: var(--dh-red) !important; }
#global_menu > ul > li > a:hover::after,
#global_menu > ul > li.current-menu-item > a::after,
#global_menu > ul > li.current-menu-parent > a::after,
#global_menu > ul > li.current-menu-ancestor > a::after,
#global_menu > ul > li.current_page_item > a::after { transform: scaleX(1); }

/* 「お問い合わせ」ボタン：上下の中央に */
#global_menu > ul > li.menu-cta { margin-left: 14px; }
body #global_menu > ul > li.menu-cta > a {
  display: flex; align-items: center; justify-content: center;
  height: 44px !important; line-height: 1 !important; margin: 0 !important; padding: 0 28px !important;
  background: var(--dh-red); color: #FFFFFF !important; border-radius: 999px;
  letter-spacing: .08em; box-shadow: 0 8px 20px rgba(211, 47, 47, .28);
  transition: background-color .3s, transform .3s var(--dh-ease), box-shadow .3s;
}
#global_menu > ul > li.menu-cta > a::after { display: none; }
#global_menu > ul > li.menu-cta > a:hover {
  background: var(--dh-ink); color: #FFFFFF !important; transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(20, 20, 20, .22);
}

/* プルダウン（制作実績の下） */
#global_menu ul ul {
  top: 80px; width: 280px; padding: 10px 0; background: #FFFFFF;
  border-top: 3px solid var(--dh-red); border-radius: 0 0 12px 12px;
  box-shadow: 0 24px 48px rgba(20, 20, 20, .14);
}
#global_menu ul ul a {
  color: var(--dh-ink); font-size: 14px; font-weight: 700; padding: 14px 24px 12px; transition: background-color .25s, color .25s, padding-left .3s var(--dh-ease);
}
#global_menu ul ul a:hover { background: #F5F5F5 !important; color: var(--dh-red) !important; padding-left: 30px; }

/* ---------- 1100px 以下：ヘッダーは 60px、ハンバーガーを使う ---------- */
@media (max-width: 1100px) {
  body #header, body.header_type2 #header { height: 60px; }
  #header::before { width: 4px; }
  #header_logo { left: 16px; }
  /* ハンバーガー：中央の線だけ赤、少し短く */
  #drawer_menu_button span,
  body.header_type2 #drawer_menu_button span,
  body.header_type2.header_fixed #drawer_menu_button span { background: var(--dh-ink) !important; border-radius: 2px; }
  #drawer_menu_button span:nth-child(2) { background: var(--dh-red) !important; width: 14px; margin-left: 4px; }
  html.open_drawer_menu #drawer_menu_button span:nth-child(2) { opacity: 0; }
}

/* ---------- 開いたメニュー（1250px 以下） ---------- */
@media (max-width: 1250px) {
  #drawer_menu {
    width: 420px; max-width: 100%;
    background-color: #FAFAF8;
    background-image: linear-gradient(#EFEDE8 1px, transparent 1px), linear-gradient(90deg, #EFEDE8 1px, transparent 1px);
    background-size: 64px 64px;
    }
  .open_menu #drawer_menu { box-shadow: -24px 0 60px rgba(20, 20, 20, .16); }
  /* 赤と黒の斜めのライン */
  #drawer_menu::before {
    content: ""; position: absolute; right: 70px; top: -30px; width: 36px; height: 100px; background: var(--dh-red); opacity: .92;
    transform: skewX(-24deg); box-shadow: -50px 0 0 -26px var(--dh-ink); pointer-events: none;
  }
  #drawer_menu .header { height: 60px; border-bottom: 0; position: relative; z-index: 2; }
  #drawer_mneu_close_button { width: 60px; height: 60px; z-index: 3; }
  #drawer_mneu_close_button::before {
    color: var(--dh-ink); top: 20px; left: 20px; font-size: 20px;
  }
  #mobile_menu { position: relative; z-index: 2; margin-top: 12px; padding: 0 8px; }
  #mobile_menu > ul > li { counter-increment: dh-item; }
  #mobile_menu > ul { counter-reset: dh-item; }
  #drawer_menu #mobile_menu a {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: auto; line-height: 1.4; padding: 22px 56px 22px 16px;
    color: var(--dh-ink) !important; font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic Medium', Meiryo, sans-serif;
    font-size: 22px; font-weight: 900; letter-spacing: .02em;
    border-bottom: 1px solid #E5E2DB; white-space: normal; overflow: visible; text-overflow: clip;
    transition: color .3s, padding-left .4s var(--dh-ease);
  }
  #drawer_menu #mobile_menu a:hover, #drawer_menu #mobile_menu .current-menu-item > a { color: var(--dh-red) !important; padding-left: 24px; }
  /* 英字のラベル */
  #drawer_menu #mobile_menu > ul > li > a::after {
    font-family: Inter, sans-serif; font-weight: 800; font-size: 11px; letter-spacing: .24em; color: var(--dh-red-text);
    content: ""; position: static; display: block; width: auto; top: auto; right: auto;
  }
  #mobile_menu .menu-item-212 > a::after { content: "HOME"; }
  #mobile_menu .menu-item-213 > a::after { content: "WORKS"; }
  #mobile_menu .menu-item-561 > a::after { content: "SHOKUMA"; }
  #mobile_menu .menu-item-214 > a::after { content: "COMPANY"; }
  #mobile_menu .menu-item-213 > a { padding-right: 64px; }
  /* 開閉の「＋」 */
  #mobile_menu .child_menu_button { top: 14px; right: 6px; width: 44px; height: 44px; border-radius: 50%; background: #FFFFFF; border: 1px solid #E5E2DB; }
  #mobile_menu .child_menu_button::before, #mobile_menu .child_menu_button::after { background: var(--dh-ink); }
  #mobile_menu .child_menu_button::after { right: 15px; top: 21px; }
  #mobile_menu .child_menu_button::before { right: 20px; top: 16px; }
  #mobile_menu li.open > .child_menu_button { background: var(--dh-ink); border-color: var(--dh-ink); }
  #mobile_menu li.open > .child_menu_button::before, #mobile_menu li.open > .child_menu_button::after { background: #FFFFFF; }
  /* 中のメニュー */
  #mobile_menu li ul, #mobile_menu li li a { background: transparent; }
  #drawer_menu #mobile_menu li li a {
    font-size: 16px; font-weight: 700; padding: 16px 16px 16px 36px; border-bottom: 1px dashed #D6D6D6;
  }
  #mobile_menu li li a::before { content: ""; width: 14px; height: 2px; background: var(--dh-red); margin-right: 12px; flex: none; position: static; }
  #mobile_menu li li a { justify-content: flex-start; }
  #mobile_menu li li a::after { display: none; }
  #mobile_menu li li:last-of-type a { border-bottom: 1px solid #E5E2DB; }
  /* お問い合わせ：大きな赤いボタン */
  #mobile_menu .menu-cta { margin: 28px 8px 8px; }
  #drawer_menu #mobile_menu .menu-cta > a {
    color: #FFFFFF !important; justify-content: center; padding: 20px 24px; border: 0; border-radius: 999px;
    background: var(--dh-red); font-size: 18px; letter-spacing: .08em;
    box-shadow: 0 14px 28px rgba(211, 47, 47, .28);
  }
  #drawer_menu #mobile_menu .menu-cta > a:hover { background: var(--dh-ink); color: #FFFFFF !important; padding-left: 24px; }
  #mobile_menu .menu-cta > a::after { display: none; }
  /* 検索 */
  #drawer_menu_search { position: relative; z-index: 2; margin: 28px 24px 40px; }
  #drawer_menu_search .input_area { background: #FFFFFF; border: 1px solid #E5E2DB; height: 46px; border-radius: 999px; }
  #drawer_menu_search .input_area input { color: var(--dh-ink); font-size: 14px; height: 44px; top: 0; padding-left: 20px; }
  #drawer_menu_search .button_area { width: 46px; height: 46px; }
  #drawer_menu_search .button_area::before { color: var(--dh-ink); left: 17px; top: 17px; }
}
@media (max-width: 600px) {
  #drawer_menu { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #global_menu a, #mobile_menu a, #global_menu > ul > li > a::after { transition: none !important; }
}
