html, body{ margin:0; padding:0; } 
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
               "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
}

body {
  background: #fff;  /* 全体の背景色 */
}

.news-head,
.news-title {
  display: none !important;
}

.page-header,
.entry-title{
display: none !important;
}


/* === ADD: 2025-10-20 モバイル横スクロール完全停止（左も右も） === */
@media (max-width: 1024px){
  html, body{
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none !important;
    touch-action: pan-y !important; /* 横ジェスチャ無効 */
  }

  /* 横はみ出しの“犯人”になりやすい親レイヤだけ、横方向を確実に切る */
  #globalNavi,
  .front-hero,
  .hero-visual,
  .hero-slider,
  .site,
  .site-content,
  .elementor-location-header,
  .elementor-location-footer {
    overflow-x: hidden !important;
  }

  /* 画像・埋め込みのはみ出し保険 */
  img, video, iframe {
    max-width: 100% !important;
    height: auto;
    display: block;
  }
}

.news-main-title {
  display: none !important;
}

/*-------- 見積プログラム用  -------*/
/* ===========================================================
   見積フォーム（nt_quote_form）
   - PC最大幅950px
   - スマホ対応（横スクロールなし）
   - テーブルは行区切り強調
   =========================================================== */

/* ============================
   共通レイアウト
============================ */
.nt-quote-form,
.nt-quote-complete,
.nt-quote-success,
.nt-quote-error {
    max-width: 850px;
    margin: 30px auto;
    font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
    color: #333;
}

/* 完了メッセージ */
.nt-quote-complete {
    background: #f7fdf9;
    border: 1px solid #cfe9d8;
    padding: 40px 20px;
    border-radius: 8px;
    text-align: center;
}
.nt-quote-complete p {
    margin: 10px 0;
    font-size: 18px;
    font-weight: 600;
}

/* 成功メッセージ */
.nt-quote-success {
    background: #e8f0fb;
    border: 1px solid #1a4faa;
    padding: 20px;
    border-radius: 6px;
}
.nt-quote-success p {
    margin: 0;
    font-weight: bold;
    color: #1a4faa;
}

/* エラーメッセージ */
.nt-quote-error {
    background: #fcecec;
    border: 1px solid #d9534f;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.nt-quote-error p {
    margin: 0;
    font-weight: bold;
    color: #d9534f;
}

/* ============================
   PC（表形式）列ごとの幅調整
   ※ PC のみ適用
============================ */
@media (min-width: 769px){

  /* 成分名（1列目） */
  .nt-quote-table th:nth-child(1),
  .nt-quote-table td:nth-child(1) {
      width: 27%;
  }

  /* 製品名（2列目） */
  .nt-quote-table th:nth-child(2),
  .nt-quote-table td:nth-child(2) {
      width: 25%;
  }

  /* 規格（3列目） */
  .nt-quote-table th:nth-child(3),
  .nt-quote-table td:nth-child(3) {
      width: 15%;
  }

  /* 有効期限（4列目） */
  .nt-quote-table th:nth-child(4),
  .nt-quote-table td:nth-child(4) {
      width: 13%;
  }

  /* 価格（5列目） */
  .nt-quote-table th:nth-child(5),
  .nt-quote-table td:nth-child(5) {
      width: 10%;
  }

  /* 数量（6列目） */
  .nt-quote-table th:nth-child(6),
  .nt-quote-table td:nth-child(6) {
      width: 10%;
  }
}





.nt-quote-table th {
    background: #1a4faa;
    color: #fff;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.nt-quote-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.nt-quote-table input[type="number"] {
    width: 70px;
    padding: 5px;
}

/* ============================
   プロフィール（PC）
============================ */
.nt-quote-profile {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.nt-quote-profile th {
    width: 25%;
    padding: 10px;
    background: #eaf0fb;
    font-weight: 600;
    border: 1px solid #ddd;
    color: #1a4faa;
}

.nt-quote-profile td {
    padding: 10px;
    border: 1px solid #ddd;
}

.nt-quote-profile input,
.nt-quote-profile textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* ============================
   ボタン
============================ */
.nt-quote-buttons {
    margin-top: 30px;
    text-align: center;
}

.nt-quote-buttons button {
    padding: 10px 30px;
    margin: 0 10px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.nt-quote-buttons button[value="back"] {
    background: #888;
    color: #fff;
}

.nt-quote-buttons button[value="send"],
.nt-quote-buttons button[value="confirm"] {
    background: #1a4faa;
    color: #fff;
}

.nt-quote-buttons button:hover {
    opacity: 0.85;
}



/* ============================
   スマホ：カード型レイアウト
============================ */
@media (max-width: 768px) {

  /* テーブル全体をカード化 */
  .nt-quote-table,
  .nt-quote-table tbody,
  .nt-quote-table tr {
    display: block;
    width: 100%;
  }

  /* ヘッダー（青い行）は消す */
  .nt-quote-table thead,
  .nt-quote-table th {
    display: none !important;
  }

  .nt-quote-table tr {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
  }

  .nt-quote-table td {
    display: block;
    padding: 6px 5px;
    border: none;
  }

  /* 共通：ラベル部分のスタイル */
  .nt-quote-table td::before {
    position: static;
    display: inline-block;
    font-weight: bold;
    color: #1a4faa;
    font-size: 13px;
    margin-right: 4px;
  }

  /* 各列ごとにラベル文字を指定 */
  .nt-quote-table td:nth-child(1)::before { content: "成分名："; }
  .nt-quote-table td:nth-child(2)::before { content: "製品名："; }
  .nt-quote-table td:nth-child(3)::before { content: "規格："; }
  .nt-quote-table td:nth-child(4)::before { content: "予定有効期限："; }
  .nt-quote-table td:nth-child(5)::before { content: "予定価格："; }
  .nt-quote-table td:nth-child(6)::before { content: "数量："; }

  /* 数量入力欄 */
  .nt-quote-table input[type="number"] {
    width: 100px;
    padding: 6px;
  }

  /* プロフィール表もスマホ最適化（従来どおり） */
  .nt-quote-profile th,
  .nt-quote-profile td {
    display: block;
    width: 100%;
  }

  .nt-quote-profile th {
    background: #eaf0fb;
    color: #1a4faa;
    padding: 8px;
  }

  .nt-quote-profile td {
    padding: 8px;
    border-top: none;
  }

  /* ボタン */
  .nt-quote-buttons button {
    width: 48%;
    margin: 5px 1%;
    font-size: 15px;
    padding: 12px;
  }
}










/* ============================
   Elementor対策（優先度上げ）
============================ */
.elementor .nt-quote-table th {
    background: #1a4faa !important;
    color: #fff !important;
}

.elementor .nt-quote-profile th {
    background: #eaf0fb !important;
    color: #1a4faa !important;
}

.elementor .nt-quote-buttons button[value="send"],
.elementor .nt-quote-buttons button[value="confirm"] {
    background: #1a4faa !important;
    color: #fff !important;
}

.elementor .nt-quote-buttons button[value="back"] {
    background: #888 !important;
    color: #fff !important;
}


.nt-quote-note {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}




/* Elementorショートコードウィジェットでログアウトボタンを整形 */
.elementor-widget-shortcode .um-logout {
  display: inline-block;
  padding: 8px 18px;
  background: #1a4faa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}






/* ================================
   お問い合わせフォーム（CF7）
   中央寄せ＋最大幅800px
   ================================ */

/* フォーム全体を中央寄せ＆最大幅指定 */
.wpcf7 {
  display: flex;
  justify-content: center;
  padding: 40px 15px;
  box-sizing: border-box;
}

/* 実際のフォーム枠 */
.wpcf7 form,
.wpcf7 .wpcf7-form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 25px;
  background: #f5f8fd; /* 薄い青グレー背景 */
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  box-sizing: border-box;
  font-family: "Noto Sans JP","Hiragino Sans","Yu Gothic Medium","Yu Gothic",Meiryo,sans-serif;
  color: #333;
  font-size: 15px;
}

/* ラベル */
.wpcf7 form label,
.wpcf7 .wpcf7-form label {
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
  line-height: 1.6;
}

/* 入力欄共通（class:cf-wide） */
.wpcf7 .cf-wide {
  width: 100%;
  box-sizing: border-box;
  display: block;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #c7d2e8;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
}

/* テキストエリア */
.wpcf7 textarea.cf-wide {
  min-height: 160px;
  resize: vertical;
}

/* フォーカス時 */
.wpcf7 .cf-wide:focus {
  outline: none;
  border-color: #1a4faa;
  box-shadow: 0 0 0 2px rgba(26,79,170,0.15);
}

/* プレースホルダー */
.wpcf7 ::placeholder {
  color: #9ba4b8;
}

/* 送信ボタン */
.wpcf7 .cf-wide-btn {
  display: inline-block;
  width: 220px;
  max-width: 100%;
  margin: 10px auto 0;
  padding: 12px 10px;
  border: none;
  border-radius: 999px;
  background: #1a4faa;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

/* 送信ボタンを中央寄せ */
.wpcf7 p:last-child {
  text-align: center;
}

/* ボタン：ホバー時 */
.wpcf7 .cf-wide-btn:hover {
  background: #143b7c;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

/* ボタン：クリック時 */
.wpcf7 .cf-wide-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* 成功／エラー系メッセージ */
.wpcf7 .wpcf7-response-output {
  margin-top: 20px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* 成功メッセージ */
.wpcf7 .wpcf7-mail-sent-ok {
  border: 1px solid #2f6e4a;
  background: #f1faf4;
}

/* エラーメッセージ */
.wpcf7 .wpcf7-validation-errors,
.wpcf7 .wpcf7-acceptance-missing {
  border: 1px solid #b91c1c;
  background: #fef2f2;
}

/* エラー項目の枠線 */
.wpcf7 .wpcf7-not-valid {
  border-color: #e11d48 !important;
}

/* 各項目下のエラー文 */
.wpcf7 .wpcf7-not-valid-tip {
  font-size: 12px;
  color: #e11d48;
  margin-top: 4px;
}

/* ========== スマホ向け調整 ========== */
@media (max-width: 768px){
  .wpcf7 {
    padding: 25px 10px;
  }

  .wpcf7 form,
  .wpcf7 .wpcf7-form {
    padding: 20px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    font-size: 14px;
  }

  .wpcf7 form label,
  .wpcf7 .wpcf7-form label {
    margin-bottom: 14px;
  }

  .wpcf7 .cf-wide {
    padding: 9px 10px;
    font-size: 14px;
  }

  .wpcf7 textarea.cf-wide {
    min-height: 140px;
  }

  .wpcf7 .cf-wide-btn {
    width: 100%;
    font-size: 14px;
    padding: 11px 10px;
  }
}

/* 送信ボタン（cf-wide-btn）を必ず中央に配置 */
.wpcf7 .cf-wide-btn {
  display: block !important;
  margin: 20px auto 0 !important;
  text-align: center !important;
}

/* ボタンを囲む段落の中央寄せ */
.wpcf7 p {
  text-align: center !important;
}

/* ラベル見出しを左寄せに戻す */
.wpcf7 form label,
.wpcf7 .wpcf7-form label {
  text-align: left !important;
}
