/* =========================
   ベース設定
========================= */
body {
  margin: 0;
  padding: 0;
  font-family: "Noto Sans JP", sans-serif;
  background: #ffffff;
  color: #0f2b46;
  line-height: 1.6;
}

/* =========================
   ヒーロー画像
========================= */
.hero-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
}
.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   加工フォーム外枠
========================= */
.form-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 30px auto;
  padding: 20px;
  background: #f8fbff;
  border: 3px solid #2b4a6a;
  border-radius: 20px;
  box-sizing: border-box;
}

/* =========================
   各ブロック
========================= */
.form-block {
  width: 95%;
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border: 2px solid #2b4a6a;
  border-radius: 12px;
  box-sizing: border-box;
}

/* 見出しカラー */
.basic-info h2 { background: #ffe2b5; }
.turning h2    { background: #d7f3e0; }
.milling h2    { background: #d8f0c8; }
.surface h2    { background: #f7d0d7; }
.grinding h2   { background: #dbe9ff; }
.shipping h2   { background: #e8e8ff; } 

.form-block h2 {
  margin: 0 0 15px 0;
  padding: 8px 15px;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
}

/* =========================
   入力行
========================= */
.form-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.form-row label {
  width: 420px;
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.form-row input,
.form-row select {
  width: 240px;
  padding: 7px 10px;
  font-size: 16px;
  border: 2px solid #b6c6d3;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #4a7ec2;
}

.unit {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

/* チェックボックス */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.checkbox-row label {
  width: 420px;
}
.checkbox-row input {
  width: 20px;
  height: 20px;
}

/* =========================
   詳細ボタン
========================= */
.detail-btn {
  background: #0f2b46;
  color: #ffffff;
  border: none;
  padding: 4px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.detail-btn:hover {
  background: #154069;
}

/* =========================
   見積結果
========================= */
.estimate-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 40px auto;
  padding: 25px;
  background: #f0f7ff;
  border: 3px solid #0f2b46;
  border-radius: 20px;
  box-sizing: border-box;
}
.estimate-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 20px;
}
.estimate-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.total-row .estimate-value {
  color: #e63946;
  font-size: 24px;
}

/* ▼ 税込み */
.tax-row .estimate-value {
  color: #0f7a2a;
  font-size: 22px;
  font-weight: 700;
}

/* ▼ 注記 */
.estimate-note {
  margin-top: 15px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: center;
}

/* =========================
   お客様情報
========================= */
.customer-wrapper {
  width: 100%;
  max-width: 700px;
  margin: 40px auto 60px;
  padding: 30px;
  background: #ffffff;
  border: 3px solid #0f2b46;
  border-radius: 20px;
  box-sizing: border-box;
}

.customer-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 20px;
}

.customer-form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.customer-form-row label {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.customer-form-row input[type="email"],
.customer-form-row input[type="text"],
.customer-form-row input[type="file"] {
  padding: 10px 12px;
  border: 2px solid #1d3e68;
  border-radius: 10px;
  font-size: 16px;
}

.customer-submit {
  width: 100%;
  padding: 15px 0;
  background: #0f2b46;
  color: #fff;
  font-size: 22px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}
.customer-submit:hover {
  background: #154069;
}

/* =========================
   ファイル一覧
========================= */
#file-list {
  margin-top: 12px;
  padding-left: 0;
}
.file-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  margin-bottom: 6px;
  background: #eef6ff;
  border: 1px solid #aac6e6;
  border-radius: 6px;
  list-style: none;
}
.delete-file {
  background: #ff6b6b;
  border: none;
  color: #fff;
  padding: 3px 8px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
}
.delete-file:hover {
  background: #d9534f;
}

/* =========================
   注文の流れ（ポップ）
========================= */

.orderflow-wrapper {
  width: 100%;
  max-width: 750px;
  margin: 50px auto;
  padding: 25px 20px;
  background: #fff7e6;
  border: 3px solid #ffbf47;
  border-radius: 20px;
}

.orderflow-title {
  text-align: center;
  font-size: 30px;
  font-weight: 900;
  color: #e67e22;
  margin-bottom: 25px;
}

.orderflow-list {
  padding-left: 0;
  margin: 0;
}

.orderflow-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
  list-style: none;
}

.orderflow-step {
  width: 48px;
  height: 48px;
  background: #ff9f1c;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 #d17f18;
}

.orderflow-body {
  flex: 1;
}

.orderflow-text {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}

.orderflow-note {
  font-size: 15px;
  color: #444;
  margin-left: 5px;
}

.orderflow-sublist {
  margin: 6px 0 0 15px;
  padding: 0;
  font-size: 14px;
}

/* =========================
   詳細ポップアップ
========================= */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  padding: 25px;
  max-width: 500px;
  border-radius: 12px;
  border: 2px solid #0f2b46;
  text-align: center;
}

.modal-content img {
  max-width: 100%;
  margin-top: 10px;
  border-radius: 8px;
  display: none;
}

.modal-close-btn {
  margin-top: 12px;
  padding: 8px 20px;
  border: none;
  background: #0f2b46;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
.modal-close-btn:hover {
  background: #154069;
}
/* =========================
   スマホレイアウト（幅600px以下）
========================= */
@media (max-width: 600px) {

  /* 全体の余白調整 */
  body {
    padding: 0 10px;
  }

  /* フォームブロックを全幅に */
  .form-block {
    width: 100%;
    padding: 15px;
    margin: 20px 0;
  }

  /* ラベル＋入力欄を縦並びにする */
  .form-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .form-row label {
    width: 100%;
    font-size: 16px;
  }

  .form-row input,
  .form-row select {
    width: 100%;
    font-size: 16px;
  }

  .unit {
    align-self: flex-end;
    font-size: 14px;
    margin-top: -8px;
  }

  /* チェックボックス行 */
  .checkbox-row {
    flex-direction: row;
    align-items: center;
  }
  .checkbox-row label {
    width: auto;
    font-size: 16px;
  }

  /* ボタン（詳細ボタン） */
  .detail-btn {
    font-size: 14px;
    padding: 6px 10px;
    align-self: flex-start;
  }

  /* 見積結果 */
  .estimate-wrapper {
    width: 100%;
    padding: 20px;
  }

  .estimate-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .estimate-row label {
    margin-bottom: 4px;
  }

  .total-row .estimate-value {
    font-size: 22px;
  }

  .tax-row .estimate-value {
    font-size: 20px;
  }

  /* 注文の流れ */
  .orderflow-wrapper {
    padding: 20px 15px;
  }

  .orderflow-item {
    flex-direction: column;
    gap: 10px;
  }

  .orderflow-step {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .orderflow-text {
    font-size: 16px;
  }

  /* お客様情報欄 */
  .customer-wrapper {
    padding: 20px;
  }

  .customer-form-row label {
    font-size: 16px;
  }

  .customer-submit {
    font-size: 20px;
    padding: 12px 0;
  }
}

/* =========================
   ヘッダーナビ
========================= */
.site-header {
  width: 100%;
  background: #0f2b46;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 3000;
}

.header-inner {
  max-width: 1080px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo-area img {
  height: 38px;
}

.nav-menu ul {
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 6px;
}

.nav-menu a:hover {
  opacity: 0.75;
}

/* ▼ ドロップダウン */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px); 
  left: 0;
  background: #ffffff;
  border: 2px solid #0f2b46;
  border-radius: 8px;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  padding: 8px 0;
  z-index: 10000;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: #0f2b46;
}

.dropdown-content a:hover {
  background: #e8f0ff;
}

/* ホバー時にだけ表示 */
.dropdown:hover .dropdown-content {
  display: block;
}

/* PC デフォルト */
.hamburger {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 20px;
}

/* PCでのHoverドロップダウン */
@media screen and (min-width: 769px) {
  .dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 160px;
    border: 1px solid #ddd;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  }

  .dropdown:hover > .dropdown-content {
    display: block;
  }
}

/* スマホ用レイアウト */
@media screen and (max-width: 768px) {

  /* ハンバーガー表示（スマホ） */
  .hamburger {
    position: absolute;
    top: 18px;
    right: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 9999;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
  }

  /* メニュー非表示 */

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    width: 230px;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    border-left: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
  }

  /* 開いた時に表示 */
  .nav-menu.active {
    display: flex;
  }

  /* dropdown（クリックで開閉） */
  .dropdown-content {
    display: none;
    flex-direction: column;
    background: #f7faff;
    border-left: 3px solid #0f2b47;
    margin-left: 10px;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }

  /* スマホ時の文字色を白→濃紺に変更（白背景で見えるようにする） */
  .nav-menu a {
    color: #0f2b46;
    padding: 12px 18px;
    display: block;
  }

}

/* ===== トップSEOセクション デザイン強化 ===== */
.top-seo {
  max-width: 1100px;
  margin: 80px auto;
  padding: 50px 40px;
  background: linear-gradient(135deg, #f8fafc, #eef2f7);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  line-height: 1.9;
}

/* メイン見出し */
.top-seo h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 30px;
  color: #1f2933;
  font-weight: 700;
  position: relative;
}

.top-seo h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* 小見出し */
.top-seo h3 {
  font-size: 20px;
  margin: 40px 0 15px;
  padding-left: 14px;
  border-left: 5px solid #2563eb;
  color: #111827;
}

/* 本文 */
.top-seo p {
  font-size: 16px;
  color: #374151;
  margin-bottom: 18px;
}

/* 箇条書き */
.top-seo ul {
  list-style: none;
  padding: 0;
  margin: 20px 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.top-seo ul li {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* チェックリスト用 */
.top-seo ul li::before {
  content: "✔";
  color: #2563eb;
  font-weight: bold;
}

/* 手順リスト */
.top-seo ol {
  margin: 20px 0 30px;
  padding-left: 20px;
}

.top-seo ol li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .top-seo {
    padding: 35px 20px;
    margin: 50px 16px;
  }

  .top-seo h2 {
    font-size: 22px;
  }

  .top-seo h3 {
    font-size: 18px;
  }
}
/* =========================
   トップ背景（ヒーロー2枚まとめて1枚背景）
========================= */

.top-bg {
  width: 100%;
  padding: 60px 0 40px;
  background-image: url("images/hero-bg.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

/* 中の画像はフラット表示 */
.top-bg .hero-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.top-bg .hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
