/* ==================================
   RAMEXperts™️ - 追加スタイル
   ================================== */

/* ==========================================
   キャッチコピー - ビカッと一発光る
   ========================================== */

.hero-catchcopy {
    position: relative;
    overflow: hidden;
}

.hero-catchcopy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.8) 50%,
        transparent 100%
    );
    animation: flash-sweep 4s ease-out infinite;
}

@keyframes flash-sweep {
    0% {
        left: -100%;
    }
    100% {
        left: 150%;
    }
}

.hero-catchcopy::after {
    animation: flash-sweep 0.6s ease-out forwards;
    animation-delay: 1s;
}

/* ==========================================
   情シス応援バッジ - 控えめな吹き出し風
   ========================================== */

/* ==========================================
   手書きマーカー風 丸囲み
   ========================================== */

.marker-highlight {
    position: absolute;
    top: 75px;
    right: -8%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px 14px 18px;
    transform: rotate(-3deg);
    z-index: 10;
}

/* 手書き風の丸囲み */
.marker-highlight::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    right: -10px;
    bottom: -5px;
    border: 4px solid #e63946;
    border-radius: 60% 40% 50% 45% / 50% 55% 45% 50%;
    transform: rotate(2deg);
    opacity: 0.85;
}

/* 二重線で手書き感を強調 */
.marker-highlight::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -14px;
    right: -6px;
    bottom: -8px;
    border: 3px solid #e63946;
    border-radius: 45% 55% 60% 40% / 55% 45% 50% 50%;
    transform: rotate(-1deg);
    opacity: 0.5;
}

.marker-check {
    font-family: 'Yomogi', cursive;
    font-size: 1.9rem;
    color: #e63946;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 0 rgba(255,255,255,0.5);
}

.marker-text {
    font-family: 'Yomogi', cursive;
    font-size: 1.25rem;
    color: #fff;
    font-weight: 400;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

@media (max-width: 1024px) {
    .marker-highlight {
        top: 70px;
        right: -2%;
        padding: 12px 24px 12px 18px;
    }

    .marker-check {
        font-size: 1.8rem;
    }

    .marker-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .marker-highlight {
        position: relative;
        top: auto;
        right: auto;
        transform: rotate(-2deg);
        margin: 0 auto 20px;
        justify-content: center;
    }

    .marker-check {
        font-size: 1.6rem;
    }

    .marker-text {
        font-size: 1.1rem;
    }
}

/* ==========================================
   キーワード強調 - シアン色
   ========================================== */

.text-cyan {
    color: #39CCCC;
    font-size: 1.25em;
    font-weight: 600;
}

.text-large {
    font-size: 1.45em;
}

/* CTAボタン下の注釈 */
.cta-note {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 14px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.cta-note span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 「メモリ、」ほんの少し小さく + 字間広げ */
.text-server-memory {
    font-size: 0.95em;
    letter-spacing: 0.35em;
}



/* 「あります。」字間を広げて上品に強調 + ボフンアニメーション */
.text-arimasu {
    letter-spacing: 0.25em;
    display: inline-block;
    animation: bofun 0.5s ease-out 1.5s both;
}

@keyframes bofun {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    50% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==========================================
   吊り広告風タイトル - 印刷物のような上品さ
   ========================================== */

.hero-title-editorial {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-editorial .text-emphasis {
    font-size: 5rem;
}

.hero-title-editorial .highlight {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 900;
    font-size: 4.5rem;
    letter-spacing: 0.02em;
    color: #fff;
    margin-top: 14px;
}

@media (max-width: 1024px) {
    .hero-title-editorial {
        font-size: 3.2rem;
    }

    .hero-title-editorial .text-emphasis {
        font-size: 4rem;
    }

    .hero-title-editorial .highlight {
        font-size: 3.6rem;
    }
}

@media (max-width: 768px) {
    .hero-title-editorial {
        font-size: 2.2rem;
        letter-spacing: 0.02em;
        line-height: 1.5;
    }

    .hero-title-editorial .text-emphasis {
        font-size: 2.8rem;
    }

    .hero-title-editorial .highlight {
        font-size: 2.5rem;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .hero-title-editorial {
        font-size: 1.8rem;
    }

    .hero-title-editorial .text-emphasis {
        font-size: 2.3rem;
    }

    .hero-title-editorial .highlight {
        font-size: 2rem;
    }
}

/* ==========================================
   📞 電話バナー - シンプル版
   ========================================== */

.hero-phone-banner {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 28px;
    border-radius: 50px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero-phone-banner .phone-label {
    font-size: 0.85rem;
    color: #333;
    font-weight: 600;
}

.hero-phone-banner .phone-number {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0074D9;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.hero-phone-banner .phone-number:hover {
    color: #001f3f;
}

.hero-phone-banner .phone-number i {
    font-size: 1.1rem;
}

.hero-phone-banner .phone-hours {
    font-size: 0.8rem;
    color: #39CCCC;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-phone-banner {
        flex-direction: column;
        gap: 8px;
        padding: 16px 24px;
        border-radius: 16px;
    }

    .hero-phone-banner .phone-number {
        font-size: 1.3rem;
    }
}

/* ==========================================
   製品グリッド - 3カラム固定
   ========================================== */

.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .products-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Header Right CTA (CV Max)
   2-line label + icon + larger tap area + subtle shadow
   ========================================================= */

.nav-cta.nav-cta--consult{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  text-decoration: none;
}

.nav-cta.nav-cta--consult:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
  filter: brightness(1.02);
}

.nav-cta.nav-cta--consult:active{
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.nav-cta__icon{
  font-size: 1.05em;
  line-height: 1;
  flex: 0 0 auto;
}

.nav-cta__text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.nav-cta__main{
  font-weight: 700;
  letter-spacing: .01em;
}

.nav-cta__sub{
  font-size: .78em;
  opacity: .92;
  white-space: nowrap;
}

.nav-cta.nav-cta--consult:focus-visible{
  outline: 3px solid rgba(0,116,217,0.35);
  outline-offset: 3px;
}

#contact{
  scroll-margin-top: 90px;
}

#contact:target{
  outline: 2px solid rgba(0,116,217,0.25);
  outline-offset: 10px;
  border-radius: 14px;
}

@media (prefers-reduced-motion: reduce){
  .nav-cta.nav-cta--consult{
    transition: none;
  }
  .nav-cta.nav-cta--consult:hover{
    transform: none;
  }
}

/* ==========================================
   価値提案マンガ セクション
   ========================================== */

/* === Value Comic (Top) === */
.value-comic {
  padding: 28px 0 10px;
}

.value-comic-inner {
  max-width: 980px;
  margin: 0 auto;
}

.value-comic-media {
  position: relative;
}

.value-comic-media picture,
.value-comic-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* 漫画内CTAホットスポット
   元画像(1143x2048)上の「まずはご相談」ボタン+「→お問い合わせフォームへ」文字の領域を
   クリック可能にする。位置は％指定でレスポンシブ追従。
   （座標は画像解析済み：x=604..1041, y=1787..1950 を％化）
*/
.comic-cta-hotspot {
  position: absolute;
  left: 52.8%;
  top: 87.2%;
  width: 38.2%;
  height: 8.0%;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  background: rgba(255, 255, 255, 0.00);
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.15);
  touch-action: manipulation;
}

.comic-cta-hotspot:hover {
  background: rgba(255, 255, 255, 0.08);
}

.comic-cta-hotspot:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.92);
  outline-offset: 4px;
  background: rgba(255, 255, 255, 0.08);
}

/* 端末が小さいときは、押しやすさ優先で少しだけ当たり判定を大きく */
@media (max-width: 480px) {
  .comic-cta-hotspot {
    left: 50.5%;
    width: 42.5%;
    height: 9.0%;
  }
}

/* ===== Strength cards: clickable links (consult) ===== */
.strength-card-link {
  color: inherit;
  text-decoration: none;
}
.strength-card-link:hover { text-decoration: none; }
.strength-card-link:focus-visible {
  outline: 3px solid rgba(0, 116, 217, 0.35);
  outline-offset: 4px;
  border-radius: 12px;
}
.strength-link-hint {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0074D9;
}

/* ===== /consult/ pages ===== */
.consult-page .consult-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0, 31, 63, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: none;
}
.consult-page .consult-brand { color: #fff; }
.consult-page .consult-brand .tagline { color: #39CCCC; }
.consult-page .consult-header-link { color: #fff; }
.consult-page .consult-header-link:hover { color: #39CCCC; }
.consult-page .consult-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.consult-page .consult-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  line-height: 1.1;
}
.consult-page .consult-brand .tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 6px;
}
.consult-page .consult-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.consult-page .consult-header-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.consult-page .consult-hero {
  padding: 110px 0 40px;
  position: relative;
  z-index: 1;
}
.consult-page .consult-hero-icon {
  position: absolute;
  top: 80px;
  bottom: auto;
  right: 5%;
  transform: none;
  font-size: 40rem;
  color: rgba(0,31,63,0.06);
  pointer-events: none;
  line-height: 1;
}
.consult-page .breadcrumbs {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 14px;
}
.consult-page .breadcrumbs a { text-decoration: none; }
.consult-page .breadcrumbs .sep { margin: 0 8px; opacity: 0.6; }

.consult-page .consult-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin-top: 10px;
}
.consult-page .consult-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.consult-page .consult-cta-sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.85;
}
.consult-page .consult-disclaimer {
  margin-top: 18px;
  font-size: 0.9rem;
  opacity: 0.8;
}
.consult-page .consult-section {
  padding: 44px 0;
}
.consult-page .consult-bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.consult-page .consult-bullets li {
  padding-left: 1.6em;
  position: relative;
}
.consult-page .consult-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
}
.consult-page .consult-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(0,116,217,0.06);
  border: 1px solid rgba(0,116,217,0.18);
}
.consult-page .consult-box h3 {
  margin-top: 0;
}
.consult-page .consult-template {
  margin-top: 12px;
  white-space: pre-wrap;
  background: rgba(0,0,0,0.04);
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.08);
}
.consult-page .consult-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.consult-page .consult-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255,255,255,0.96);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.consult-page .consult-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.consult-page .consult-card-title {
  font-weight: 900;
  margin: 0 0 6px;
}
.consult-page .consult-card-desc {
  margin: 0;
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.6;
}

.consult-page .consult-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 26px 0;
}
.consult-page .consult-footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 0;
  margin: 10px 0 0;
}
.consult-page .consult-footer-links a { text-decoration: none; }
.consult-page .consult-footer-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}
/* Copy button for consult template */
.consult-page .consult-template-wrap {
  position: relative;
  margin-top: 12px;
}
.consult-page .consult-template-wrap .consult-template {
  margin-top: 0;
}
.consult-page .copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.5);
  transition: all 0.2s ease;
  z-index: 1;
}
.consult-page .copy-btn:hover {
  background: rgba(0,0,0,0.1);
  color: rgba(0,0,0,0.7);
}
.consult-page .copy-btn.copied {
  color: #2ecc40;
  border-color: #2ecc40;
}
@media (max-width: 600px) {
  .consult-page .consult-header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
  .consult-page .consult-hero { padding-top: 96px; }
  .consult-page .consult-hero-icon {
    font-size: 18rem;
    right: 3%;
    opacity: 0.7;
  }
}

/* ==========================================
   [MQ] 型番クイック入力（ファーストビュー）
   ========================================== */

.model-quick{
  margin-top: 14px;
  padding: 12px 12px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.model-quick__title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight: 700;
  color: rgba(255,255,255,.95);
  font-size: 14px;
  margin-bottom: 8px;
}
.model-quick__form{
  display:flex;
  gap:10px;
  align-items: stretch;
}
.model-quick__form input{
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.92);
  padding: 0 12px;
  font-size: 14px;
}
.model-quick__btn{
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  background: #0074D9;
  color: #fff;
  white-space: nowrap;
}
.model-quick__btn:hover{ filter: brightness(.98); }
.model-quick__note{
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.85);
}
.model-quick__sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}
@media (max-width: 520px){
  .model-quick__form{ flex-direction: column; }
  .model-quick__btn{ width: 100%; }
}

/* ==========================================
   ナビバー電話リンク
   ========================================== */

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-phone:hover {
  color: #39CCCC;
}
.nav-phone__icon {
  font-size: 0.95rem;
}
.nav-phone__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-phone__number {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-phone__hours {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* モバイル: テキスト非表示、アイコンのみ（右下固定） */
@media (max-width: 768px) {
  .nav-phone__text {
    display: none;
  }
  .nav-phone__icon {
    font-size: 1.1rem;
  }
  .nav-phone-item {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 998;
    list-style: none;
  }
  .nav-phone-item .nav-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0074D9;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
  .nav-phone-item .nav-phone:hover {
    color: #fff;
    background: #005bb5;
  }
}

/* === RAMEXperts promo-delivery-badge START ===
   目的：型番ページのパンくず（nav[aria-label="パンくずリスト"]）の直前に
   「3月納入、間に合います」バッジを疑似要素で表示する（HTMLは触らない）
   注意：ニュースセクション等には一切影響させない
*/
:root{
  --ramex-delivery-badge-copy: "3月納入、間に合います";
}

main nav[aria-label="パンくずリスト"]::before{
  content: var(--ramex-delivery-badge-copy);
  display: table;               /* 文字幅にフィットして中央寄せしやすい */
  margin: 0 auto 10px;          /* 中央寄せ + パンくずとの間隔 */
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d32f2f 0%, #ff6d00 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* モバイル微調整 */
@media (max-width: 600px){
  main nav[aria-label="パンくずリスト"]::before{
    font-size: 0.82rem;
    padding: 7px 12px;
  }
}
/* === RAMEXperts promo-delivery-badge END === */
