/* ═══════════════════════════════════════════════════
   nissin-a.css — Aパターン専用スタイル
   ═══════════════════════════════════════════════════ */

/* ── ヘッダー基本: 80px, フローティング, 透明背景 ── */
.l-header {
  height: 80px !important;
  top: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.3s, box-shadow 0.3s, top 0.3s;
}
.l-header__inner {
  filter: none !important;
  -webkit-filter: none !important;
  drop-shadow: none !important;
  height: 100%;
  display: flex !important;
  align-items: center !important;
}
.l-header__navi {
  margin-left: auto !important;
  gap: clamp(20px, 2.5vw, 40px) !important;
  padding: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  height: auto;
  align-items: center;
  filter: none !important;
}
.l-header *,
.l-header *::before,
.l-header *::after {
  box-shadow: none;
}
.l-header__navi__link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.l-header__navi__link a {
  font-size: 14px;
  white-space: nowrap;
  color: #fff;
  transition: color 0.3s;
}
.l-header__navi__link a:hover { color: #4a9fd9; }

/* ── ナビ＋ — Aパターン: シェブロン SVG, rotate 180° ── */
.nav-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 -1.5 12 9'%3E%3Cpolygon points='1,0 9,0 5,6' fill='%234a9fd9' stroke='%234a9fd9' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 10px 7px !important;
  cursor: pointer;
  font-size: 0 !important;
  color: transparent !important;
  padding: 0;
  line-height: 1;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.nav-plus:hover { opacity: 0.7; }
.nav-plus.is-open { transform: rotate(180deg); }

/* ── CTAボタン — Aパターン: 角丸レクタングル, #4a9fd9 ── */
.l-header__language a.header-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5em;
  height: 46px;
  padding: 0 2em !important;
  background: #4a9fd9 !important;
  color: #fff !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: none;
  transition: opacity 0.3s;
}
.l-header__language a.header-cta:hover { opacity: 0.85; }
.l-header__language a.header-cta .cta-arrow { display: none; }

/* ── スクロール後: 白背景＋黒テキスト＋黒ロゴ ── */
body.header-filled .l-header {
  top: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.header-filled .header-logo--white { opacity: 0 !important; transform: translateY(-4px) !important; }
body.header-filled .header-logo--black { opacity: 1 !important; transform: translateY(0) !important; }
body.header-filled .l-header__navi__link a { color: #333; }
body.header-filled .l-header__navi__link a:hover { color: #4a9fd9; }
body.header-filled .nav-plus {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 -1.5 12 9'%3E%3Cpolygon points='1,0 9,0 5,6' fill='%234a9fd9' stroke='%234a9fd9' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 10px 7px !important;
}
body.header-filled .nav-plus:hover { opacity: 0.7; }

/* ── パネル開時 (.is-act) ── */
.l-header.is-act {
  top: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}
.l-header.is-act .header-logo--white { opacity: 0 !important; transform: translateY(-4px) !important; }
.l-header.is-act .header-logo--black { opacity: 1 !important; transform: translateY(0) !important; }
.l-header.is-act .l-header__navi__link a { color: #333; }
.l-header.is-act .nav-plus {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1.5 -1.5 12 9'%3E%3Cpolygon points='1,0 9,0 5,6' fill='%234a9fd9' stroke='%234a9fd9' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center !important;
  background-size: 10px 7px !important;
}

/* ── メガメニュー非表示 ── */
.l-header__navi__mega,
.l-header__navi__mega::before,
.js-mega_content {
  display: none !important;
}

/* ── ナビパネルレイヤー（Aパターン: 透明オーバーレイ） ── */
.l-headerNavPanel__layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 8003;
}
.l-headerNavPanel__layer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ── カードドロップダウン（Aパターン専用） ── */
.l-headerNavPanel__container {
  position: fixed !important;
  top: 80px;
  left: 0;
  width: auto !important;
  background: transparent !important;
  padding-top: 8px !important;
  transform: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
  z-index: 8004 !important;
  pointer-events: none !important;
  box-shadow: none !important;
  max-height: none !important;
  height: auto !important;
}
.l-headerNavPanel__container.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

/* ── カードグリッド ── */
.nav-dropdown {
  display: flex !important;
  gap: 14px !important;
  padding: 20px !important;
  background: #fff !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}
.nav-dropdown__card {
  position: relative;
  display: block;
  width: 160px !important;
  height: 108px !important;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s ease;
}
.nav-dropdown__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.nav-dropdown__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.4s ease, transform 0.5s ease;
}
.nav-dropdown__card:hover img {
  filter: brightness(0.95);
  transform: scale(1.06);
}
.nav-dropdown__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-dropdown__card:hover::after {
  opacity: 0.8;
}
.nav-dropdown__label {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.nav-dropdown__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #4a9fd9;
  border-radius: 5px;
  margin-left: auto;
  flex-shrink: 0;
  color: #fff;
  overflow: hidden;
}
.nav-dropdown__arrow svg {
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-dropdown__card:hover .nav-dropdown__arrow svg {
  animation: arrowSlide 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes arrowSlide {
  0%   { transform: translateX(0); }
  40%  { transform: translateX(14px); opacity: 0; }
  41%  { transform: translateX(-14px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ── ヘッダーロゴスクロール切替 ── */
.header-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-height: 46px;
}
.header-logo {
  max-height: 46px;
  width: auto;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-logo--black {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(4px);
}
.header-logo--white {
  opacity: 1;
  transform: translateY(0);
}
body.logo-scrolled .header-logo--white {
  opacity: 0;
  transform: translateY(-4px);
}
body.logo-scrolled .header-logo--black {
  opacity: 1;
  transform: translateY(0);
}

/* ── 右下固定ニュースティッカー（全Aページ共通） ── */
.hero-news-ticker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 6px;
  max-width: 600px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: max-width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-radius 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  cursor: pointer;
}
/* 円形モード — ジェリースクイッシュ */
.hero-news-ticker.is-collapsed {
  max-width: 140px;
  border-radius: 70px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  animation: tickerPoyon 0.7s ease;
}
@keyframes tickerPoyon {
  0%   { transform: scale(1, 1); }
  20%  { transform: scale(1.3, 0.75); }
  40%  { transform: scale(0.8, 1.25); }
  55%  { transform: scale(1.15, 0.9); }
  70%  { transform: scale(0.95, 1.06); }
  85%  { transform: scale(1.03, 0.97); }
  100% { transform: scale(1, 1); }
}
/* 展開に戻るとき */
.hero-news-ticker.is-expanding {
  animation: tickerExpand 0.6s ease;
}
@keyframes tickerExpand {
  0%   { transform: scale(0.7, 1.2); }
  30%  { transform: scale(1.2, 0.85); }
  50%  { transform: scale(0.92, 1.1); }
  70%  { transform: scale(1.05, 0.96); }
  100% { transform: scale(1, 1); }
}
.hero-news-ticker__inner {
  position: relative;
  flex: 1;
  min-width: 320px;
  height: 68px;
  overflow: hidden;
  transition: min-width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.3s ease;
}
.hero-news-ticker.is-collapsed .hero-news-ticker__inner {
  min-width: 0;
  width: 0;
  opacity: 0;
}
/* 円形時のコンテンツ */
.hero-news-ticker__collapsed-content {
  display: none;
  position: relative;
  width: 140px;
  height: 140px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-news-ticker__ring-text {
  position: absolute;
  top: 0; left: 0;
  width: 140px; height: 140px;
  animation: ringRotate 12s linear infinite;
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.hero-news-ticker__inner-circle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  gap: 3px;
  z-index: 1;
  overflow: hidden;
}
.hero-news-ticker__circle-slide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
  background: center/cover no-repeat;
  border-radius: 50%;
}
.hero-news-ticker__circle-slide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 48, 104, 0.45);
  border-radius: 50%;
}
.hero-news-ticker__circle-slide.is-active {
  opacity: 1;
}
.hero-news-ticker__circle-slide[data-slide="products"] {
  background-image: url('../../img/nissin/ticker-products.png');
  background-color: #fff;
}
.hero-news-ticker__circle-slide[data-slide="recruit"] {
  background-image: url('../../img/nissin/ticker-recruit.png');
  background-color: #fff;
}
.hero-news-ticker__collapsed-icon {
  font-size: 1.3rem;
  color: #fff;
  position: relative;
  z-index: 1;
}
.hero-news-ticker__collapsed-label {
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}
.hero-news-ticker__collapsed-text {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  position: relative;
}
.hero-news-ticker__collapsed-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.1em;
  position: relative;
  z-index: 1;
}
.hero-news-ticker.is-collapsed .hero-news-ticker__collapsed-content {
  display: flex;
}
.hero-news-ticker__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  height: 68px;
  text-decoration: none;
  color: #333;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.hero-news-ticker__item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-news-ticker.is-collapsed .hero-news-ticker__item {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* タイムスタンプ非表示 */
.hero-news-ticker__date {
  display: none;
}
.hero-news-ticker__icon {
  font-size: 1rem;
  color: #4a9fd9;
  flex-shrink: 0;
}
.hero-news-ticker__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.hero-news-ticker__item:hover .hero-news-ticker__text {
  color: #4a9fd9;
}
.hero-news-ticker__nav {
  display: flex;
  flex-direction: column;
  border-left: none;
  flex-shrink: 0;
  transition: opacity 0.3s ease, width 0.3s ease, min-width 0.3s ease;
}
.hero-news-ticker.is-collapsed .hero-news-ticker__nav {
  opacity: 0;
  width: 0;
  min-width: 0;
  overflow: hidden;
}
.hero-news-ticker__prev,
.hero-news-ticker__next {
  width: 40px;
  height: 34px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a9fd9;
  padding: 0;
  transition: color 0.2s;
}
.hero-news-ticker__prev {
  border-bottom: none;
}
.hero-news-ticker__prev:hover,
.hero-news-ticker__next:hover {
  color: #134a7a;
}
