/* ===== 細大株式会社 共通ヘッダー（TOPと完全統一） ===== */

/* ----- メインヘッダー (page-header) ----- */
.page-header { background: rgba(255,255,255,0.96); -webkit-backdrop-filter: saturate(180%) blur(10px); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid #E0F2FE; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 12px rgba(11,59,90,0.06); font-family: 'Zen Maru Gothic','Yu Gothic','Noto Sans JP',sans-serif; }
.page-header__inner { max-width: 1400px; margin: 0 auto; padding: 16px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.page-header__logo img { height: 60px; width: auto; display: block; }
.page-header__nav { display: flex; gap: 6px; justify-content: center; align-items: center; flex-wrap: nowrap; }
.page-header__nav > a, .page-header__nav > .page-header__has-sub { white-space: nowrap; position: relative; text-align: center; padding: 6px 8px; }
.page-header__nav a { text-decoration: none; color: #0B3B5A; display: block; }
.page-header__nav .en { display: block; font-family: 'Belanosima','Poppins','Helvetica',sans-serif; font-size: 19px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; }
.page-header__nav .ja { display: inline-block; font-size: 11px; padding: 3px 10px; background: #E0F2FE; border-radius: 999px; white-space: nowrap; }
.page-header__nav > a:hover .en, .page-header__has-sub__parent:hover .en { color: #0977D2; }
.page-header__has-sub__parent { display: block; cursor: pointer; }
.page-header__has-sub:hover .page-header__has-sub__list,
.page-header__has-sub:focus-within .page-header__has-sub__list { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.page-header__has-sub__list { position: absolute; top: 100%; left: 50%; transform: translate(-50%, -8px); list-style: none; padding: 8px 0; margin: 8px 0 0; background: #fff; border: 1px solid #BAE6FD; border-radius: 12px; box-shadow: 0 12px 28px rgba(11,59,90,.18); min-width: 240px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.page-header__has-sub__list li { white-space: nowrap; }
.page-header__has-sub__list a { display: block; padding: 8px 18px; font-size: 13px; font-weight: 600; color: #0B3B5A; }
.page-header__has-sub__list a:hover { background: #DFF6FD; color: #0977D2; }
.page-header__has-sub__list a .star { color: #FACC15; margin-right: 6px; }
.page-header__cta { display: flex; flex-direction: row; gap: 8px; align-items: center; flex-shrink: 0; }
.page-header__tel { display: flex; flex-direction: row; align-items: center; gap: 6px; padding: 6px 14px; background: #fff; border: 2px solid #0977D2; border-radius: 999px; text-decoration: none; line-height: 1.2; white-space: nowrap; flex-shrink: 0; }
.page-header__tel-label { font-size: 10px; color: #475569; }
.page-header__tel-num { font-size: 14px; font-weight: 800; color: #0977D2; }
.page-header__free { background: #FACC15; color: #0B3B5A; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; flex-shrink: 0; transition: background .2s; }
.page-header__free:hover { background: #FBBF24; }

@media (max-width: 1280px) {
  .page-header__nav .en { font-size: 15px; }
  .page-header__nav .ja { font-size: 10px; padding: 2px 6px; }
  .page-header__nav { gap: 4px; }
  .page-header__nav > a, .page-header__nav > .page-header__has-sub { padding: 4px 6px; }
  .page-header__inner { padding: 14px 20px; gap: 14px; }
  .page-header__logo img { height: 48px; }
  .page-header__tel { padding: 6px 12px; }
  .page-header__free { padding: 9px 14px; font-size: 12px; }
}
@media (max-width: 1100px) {
  .page-header__nav .en { font-size: 13px; }
  .page-header__tel-label { display: none; }
  .page-header__tel-num { font-size: 13px; }
}
/* 840px以下は saidai-responsive.css でコンパクト表示する（display:none は廃止） */

/* ----- 追従ヘッダー (saidai-sticky) ----- */
.saidai-sticky {
  position: fixed; top: -80px; left: 0; right: 0;
  z-index: 1000;
  height: 84px;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(11,59,90,0.12);
  transition: top 0.4s cubic-bezier(0.22,0.61,0.36,1);
  font-family: 'Zen Maru Gothic','Noto Sans JP','Yu Gothic',sans-serif;
}
.saidai-sticky.is-visible { top: 0; }
.saidai-sticky__inner {
  max-width: 1280px; margin: 0 auto; height: 100%;
  display: flex; align-items: center;
  padding: 0 24px; gap: 28px;
}
.saidai-sticky__logo { display: inline-flex; align-items: center; }
.saidai-sticky__logo img { height: 46px; width: auto; display: block; }
.saidai-sticky__nav { display: flex; gap: 26px; margin-left: auto; }
.saidai-sticky__nav a {
  color: #0B3B5A; text-decoration: none;
  font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
  transition: color 0.2s;
}
.saidai-sticky__nav a:hover { color: #0977D2; }
.saidai-sticky__cta { display: flex; gap: 10px; align-items: center; }
.saidai-sticky__tel {
  color: #0B3B5A; text-decoration: none;
  font-size: 18px; font-weight: 700;
  display: flex; align-items: center; gap: 4px;
  letter-spacing: 0.02em;
}
.saidai-sticky__tel-icon { font-size: 14px; }
.saidai-sticky__btn {
  background: #0977D2; color: #fff !important;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.saidai-sticky__btn:hover { background: #034F6D; transform: translateY(-1px); }

/* 追従ヘッダーのドロップダウン */
.saidai-sticky__nav .sticky-has-sub { position: relative; }
.saidai-sticky__nav .sticky-has-sub__parent { color: #0B3B5A; text-decoration: none; font-size: 15px; font-weight: 600; cursor: pointer; }
.saidai-sticky__nav .sticky-has-sub__parent:hover { color: #0977D2; }
.saidai-sticky__nav .sticky-has-sub:hover .sticky-has-sub__list,
.saidai-sticky__nav .sticky-has-sub:focus-within .sticky-has-sub__list { opacity: 1; visibility: visible; transform: translate(-50%, 0); pointer-events: auto; }
.saidai-sticky__nav .sticky-has-sub__list {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, -8px);
  list-style: none; padding: 8px 0; margin: 8px 0 0;
  background: #FFFFFF; border: 1px solid #BAE6FD; border-radius: 12px;
  box-shadow: 0 12px 28px rgba(11,59,90,.18);
  min-width: 240px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 1200;
}
.saidai-sticky__nav .sticky-has-sub__list li { white-space: nowrap; }
.saidai-sticky__nav .sticky-has-sub__list a {
  display: block; padding: 8px 18px;
  text-decoration: none; color: #0B3B5A;
  font-size: 13px; font-weight: 600;
}
.saidai-sticky__nav .sticky-has-sub__list a:hover { background: #DFF6FD; color: #0977D2; }
.saidai-sticky__nav .sticky-has-sub__list a .star { color: #FACC15; margin-right: 6px; }

@media (max-width: 960px) {
  .saidai-sticky__nav { display: none; }
  .saidai-sticky__tel { font-size: 14px; }
}
@media (max-width: 600px) {
  .saidai-sticky { height: 56px; }
  .saidai-sticky__logo img { height: 28px; }
  .saidai-sticky__btn { padding: 7px 12px; font-size: 11px; }
  .saidai-sticky__tel { display: none; }
}

/* 下層ページ用: page-header を持たないページでは saidai-sticky を常時表示 */
body.subpage-only-sticky .saidai-sticky {
  top: 0 !important;
  transition: none;
}
/* 下層では追従ヘッダー分の余白を上部に確保 */
body.subpage-only-sticky { padding-top: 84px; }
@media (max-width: 600px) {
  body.subpage-only-sticky { padding-top: 56px; }
}

/* =========================================================
   .head（kamikumaヘッダー）TOPと共通の2段組ナビ・寸法
   ========================================================= */
.head { height: 240px !important; padding-top: 32px !important; padding-left: 280px !important; }
.head .menu_area {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-row-gap: 18px !important;
  grid-column-gap: 24px !important;
  align-items: center !important;
  justify-items: center !important;
  width: 420px !important;
  max-width: none !important;
  transform: translateX(-290px) !important;
  z-index: 10 !important;
  position: relative !important;
}
.head .menu_area > a,
.head .menu_area > .menu-has-sub {
  white-space: nowrap;
  position: relative;
  text-align: center;
  width: 100%;
}
.head .menu_area a .en {
  white-space: nowrap !important;
  font-size: 24px !important;
  margin-bottom: 6px !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}
.head .menu_area a .ja {
  white-space: nowrap !important;
  font-size: 12px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
}
/* ロゴBox：saidai水色グラデ＋濃紺ボーダー＋角丸 */
.head .logo {
  width: 340px !important;
  height: 360px !important;
  background: linear-gradient(180deg,#BAE6FD 0%,#7DD3FC 100%) !important;
  border-radius: 0 0 36px 0 !important;
  border-right: 1px solid #0977D2 !important;
  border-bottom: 1px solid #0977D2 !important;
  z-index: 110 !important;
}
.head .logo:before {
  width: calc(100% - 10px) !important;
  height: calc(100% - 10px) !important;
  border-radius: 0 0 28px 0 !important;
  border-right: 1px solid #0977D2 !important;
  border-bottom: 1px solid #0977D2 !important;
}
.head .logo img { width: 220px !important; }
@media (max-width: 800px) {
  .head .logo { width: 127px !important; height: auto !important; background: transparent !important; border: 0 !important; }
  .head .logo:before { display: none !important; }
}
/* weather widget：saidai水色 + 濃紺ボーダー、幅とテキスト */
.head .weather_area {
  background: linear-gradient(180deg,#BAE6FD 0%,#7DD3FC 100%) !important;
  border-color: #0977D2 !important;
  z-index: 5 !important;
  width: 600px !important;
  height: 175px !important;
}
.head .weather_area:before { border-color: #0977D2 !important; }
.head .weather_area .text_area {
  width: 230px !important;
  padding-top: 48px !important;
  padding-left: 55px !important;
}
.head .weather_area .text_area .b_txt {
  font-size: 19px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  color: #0B3B5A !important;
  margin-bottom: 5px !important;
}
.head .weather_area .text_area .en.day {
  font-size: 36px !important;
  line-height: 1.2 !important;
  font-weight: 400 !important;
  color: #0977D2 !important;
  letter-spacing: 0.02em !important;
  position: relative !important;
  display: inline-block !important;
  white-space: nowrap !important;
  transform: translateX(-2px) !important;
}
.head .weather_area .text_area .en.day .v_txt {
  position: absolute !important;
  left: calc(100% + 5px) !important;
  top: 3px !important;
  width: 28px !important;
  font-size: 13px !important;
  color: #0B3B5A !important;
  letter-spacing: -0.05em !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  font-weight: 400 !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
  display: inline-block !important;
}
/* おすすめ製品エリア（日付の右に縦並び2枚） */
.head .weather_area .recommend_area {
  position: absolute;
  top: 18px;
  left: 250px;
  width: 320px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.head .weather_area .rec_title { font-size: 11px; font-weight: 800; color: #0B3B5A; letter-spacing: 0.06em; margin: 0 0 2px 0; text-align: left; }
.head .weather_area .rec_star { color: #FACC15; margin-right: 4px; font-size: 12px; }
.head .weather_area .rec_item { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #fff; border: 1.5px solid #BAE6FD; border-radius: 12px; text-decoration: none; transition: all 0.2s; }
.head .weather_area .rec_item--top { border-color: #0977D2; background: linear-gradient(135deg,#F0F9FF,#FFF); }
.head .weather_area .rec_item:hover { background: #DFF6FD; transform: translateX(-2px); box-shadow: 0 4px 10px rgba(9,119,210,0.18); }
.head .weather_area .rec_badge { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: #FACC15; color: #0B3B5A; border-radius: 999px; font-family: 'Belanosima','Poppins',sans-serif; font-size: 12px; font-weight: 700; }
.head .weather_area .rec_item--top .rec_badge { background: #0977D2; color: #FFFFFF; }
.head .weather_area .rec_name { font-size: 11px; line-height: 1.3; color: #475569; font-weight: 500; white-space: nowrap; }
.head .weather_area .rec_name strong { font-size: 14px; color: #0B3B5A; font-weight: 800; }
/* PRODUCTSドロップダウン：閉じた状態（hover時のみ展開） */
.head .menu_area .menu-has-sub { position: relative !important; z-index: 9999 !important; }
.head .menu_area .menu-has-sub__parent { display: block !important; cursor: pointer !important; text-decoration: none !important; }
.head .menu_area .menu-has-sub__list {
  position: absolute !important;
  top: 100% !important;
  left: auto !important;
  right: 50% !important;
  transform: translate(0, -8px) !important;
  list-style: none !important;
  padding: 8px 0 !important;
  margin: 8px 0 0 !important;
  background: #FFFFFF !important;
  border: 1px solid #BAE6FD !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(11,59,90,.18) !important;
  min-width: 300px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity .2s, transform .2s, visibility .2s !important;
  z-index: 9999 !important;
}
.head .menu_area .menu-has-sub__list li { white-space: nowrap !important; list-style: none !important; }
.head .menu_area .menu-has-sub__list a {
  display: block !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0B3B5A !important;
  text-decoration: none !important;
  background: transparent !important;
}
.head .menu_area .menu-has-sub__list a:hover { background: #DFF6FD !important; color: #0977D2 !important; }
.head .menu_area .menu-has-sub__list .badge-recommend {
  display: inline-block !important;
  font-size: 10px !important;
  color: #DC2626 !important;
  font-weight: 800 !important;
  margin-right: 6px !important;
  background: transparent !important;
  padding: 0 !important;
}
.head .menu_area .menu-has-sub:hover .menu-has-sub__list,
.head .menu_area .menu-has-sub:focus-within .menu-has-sub__list {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translate(0, 0) !important;
}

/* =========================================================
   #hasei_fv（サブページ共通ヒーロー：kamikuma同型）
   ========================================================= */
@keyframes rotateRight { from { transform: rotate(0); } to { transform: rotate(360deg); } }
#hasei_fv { position: relative; z-index: 20; padding-bottom: 80px; }
#hasei_fv h1 {
  position: absolute !important;
  left: 5.3333vw !important;
  bottom: 60px !important;
  z-index: 30 !important;
  background: #0977D2 !important;
  color: #FFFFFF !important;
  font-family: "LineSeedJP_Eb","Yu Gothic",sans-serif !important;
  font-weight: 900 !important;
  font-size: clamp(28px,3.6vw,48px) !important;
  padding: 22px 36px !important;
  border-radius: 6px !important;
  border: 3px solid #0B3B5A !important;
  box-shadow: 6px 8px 0 rgba(11,59,90,0.22) !important;
  margin: 0 !important;
  width: auto !important;
  max-width: 92vw !important;
  letter-spacing: 0.05em !important;
  line-height: 1 !important;
}
#hasei_fv .hasei-tit { display: inline-block; }
#hasei_fv .bado {
  width: 127px !important;
  position: absolute !important;
  right: 84px !important;
  top: 24px !important;
  bottom: auto !important;
  z-index: 15 !important;
}
#hasei_fv .bado img { width: 100%; height: auto; display: block; }
#hasei_fv .circle {
  position: absolute !important;
  right: 20px !important;
  top: -40px !important;
  bottom: auto !important;
  width: 236px !important; height: 236px !important;
  z-index: 1 !important;
  -webkit-animation: rotateRight 30s linear infinite;
  animation: rotateRight 30s linear infinite;
}
#hasei_fv .circle img { width: 100%; height: auto; }
#hasei_fv .img_area {
  position: relative !important;
  width: 90vw !important;
  margin-left: 10vw !important;
  height: 640px !important;
  border-radius: 0 0 0 30px !important;
  border: 1px solid #0B3B5A !important;
  border-right: none !important;
  padding: 5px 0 5px 5px !important;
  background: #88AED9 !important;
  box-sizing: border-box !important;
  z-index: 10 !important;
}
#hasei_fv .img_area .img {
  position: relative !important;
  border-radius: 0 0 0 25px !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  border: 1px solid #0B3B5A !important;
  border-right: none !important;
}
#hasei_fv .img_area .img img.fit_img {
  position: absolute !important;
  left: 0; right: 0; top: 0; bottom: 0;
  margin: auto;
  width: 100%; height: 100%;
  object-fit: cover;
}
@media screen and (max-width: 800px) {
  #hasei_fv { padding-bottom: 40px !important; padding-top: 0 !important; margin-bottom: 40px !important; }
  #hasei_fv .img_area { width: 100% !important; margin: 0 !important; height: auto !important; aspect-ratio: 4/3 !important; border-radius: 0 !important; border: 0 !important; padding: 0 !important; background: transparent !important; }
  #hasei_fv .img_area .img { border: 0 !important; border-radius: 0 !important; }
  /* h1: 画像下端中央にオーバーラップ（kamikuma同型・横中央） */
  body section#hasei_fv h1,
  body #hasei_fv h1,
  #hasei_fv h1 {
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    bottom: 40px !important;          /* padding-bottomと同じ値 = 画像下端と一致 */
    transform: translateY(50%) !important;  /* 縦オーバーラップのみ。横はleft0/right0+margin:autoで中央化 */
    -webkit-transform: translateY(50%) !important;
    font-size: clamp(24px, 6.5vw, 34px) !important;
    padding: 12px 24px !important;
    background: #0977D2 !important;
    color: #FFFFFF !important;
    border: 3px solid #0B3B5A !important;
    border-radius: 6px !important;
    box-shadow: 6px 8px 0 rgba(11,59,90,0.25) !important;
    letter-spacing: 0.05em !important;
    line-height: 1.3 !important;
    max-width: calc(100vw - 32px) !important;
    width: -webkit-fit-content !important;
    width: fit-content !important;
    margin: 0 auto !important;
    text-align: center !important;
    white-space: normal !important;
  }
  #hasei_fv .bado, #hasei_fv .circle { display: none !important; }
  /* s-arc-text は kamikuma にない要素なので SP では非表示 */
  .s-arc-text { display: none !important; }
}
