/* ===== custom.css (override) ===== */

/* ベース */
html { -webkit-text-size-adjust: 100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Hiragino Kaku Gothic ProN",
               "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color:#111827;
  background:#f6f7fb;
  text-align:left; /* 旧CSSのcenter寄せを抑える */
}

a{ color:#0f4aa8; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* 幅：750固定をやめて “今っぽい最大幅” に */
#wrapper{
  width:auto !important;
  max-width: 1100px;
  margin: 12px auto;
  padding: 0 16px;
}

/* 上の説明文（headcopy） */
#headcopy{
  width:auto !important;
  max-width: 1100px;
  margin: 12px auto 0;
  padding: 0 16px !important;
}
#headcopy h1{
  font-size: 14px;
  font-weight: 500;
  color:#4b5563;
}

/* ロゴ画像が横幅固定なので、はみ出さないように */
#logo img{
  width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}

/* ===== 左サイドバーを非表示（元・左のメニュー） ===== */
#side,
#side_bar,
#sidebar,
#sub,
#menu{
  display: none !important;
}

/* サイドバー前提の余白を解除 */
#wrap_content{
  margin-left: 0 !important;
}

/* コンテンツカード化（白い箱＋影） */
#main #wrap_content{
  width: 100% !important;
  float:none !important;
}
#content{
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius: 16px;
  padding: 18px 18px 22px;
  box-shadow: 0 12px 34px rgba(17,24,39,.08);
  margin-left: 0 !important; /* 念のため */
}

/* ===== 上部ナビ（目立たせる＋左寄せ固定） ===== */
#navigator{
  display:flex !important;
  align-items:center;
  justify-content:flex-start !important;

  font-size: 100%;
  line-height: 0.6;

  gap: 8px;
  padding: 10px 14px;
  margin: 10px 0 14px;

  /* ▼ 背景を水色系に */
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border:1px solid #93c5fd;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(2,132,199,.25);
}


/* ===== ナビ：濃い青・ぼやけ系ボタン ===== */
#navigator a{
  background: rgba(30,64,175,.36) !important;   /* ← .28 → .36 */
  border: 1px solid rgba(30,64,175,.60) !important;
  color: #ffffff !important;

  box-shadow:
    0 4px 14px rgba(30,64,175,.40),
    inset 0 1px 0 rgba(255,255,255,.18);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#navigator a:hover{
  background: rgba(30,64,175,.48) !important;
  border-color: rgba(30,64,175,.75) !important;
}




/* 会社情報・地図・お問合せ（たぶん p 側） */
#navigator p{
  font-size: 200%;
}

/* / を非表示にする */
#navigator p{
  letter-spacing: -0.4em;
}
#navigator p a{
  letter-spacing: normal;
}

/* リンク群（ul 側）も左寄せ＆右寄せ解除 */
#navigator ul{
  display:flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin:0 !important;          /* 変な余白を消す */
  padding:0 !important;
  list-style:none !important;

  float:none !important;         /* 旧CSS対策 */
  margin-left: 0 !important;     /* auto対策 */
  margin-right: 0 !important;    /* auto対策 */
}

/* li の float を殺す（下落ち対策にもなる） */
#navigator ul li{
  float:none !important;
  margin:0 !important;
  padding:0 !important;
}

#navigator a{
  display: inline-block;
  padding: 10px 18px;
  margin: 0 6px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;   /* ←丸 */
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

#navigator a:hover{
  background-color: #1d4ed8 !important;
}



/* 見出し */
h2.title{
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: .02em;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 10px;
}
h3{
  margin: 20px 0 10px;
  font-size: 18px;
}
h4{ margin: 16px 0 8px; }

/* 表・箇条書き（Wikiっぽさ軽減） */
table{
  width:100%;
  border-collapse: collapse;
  margin: 12px 0;
}
th, td{
  border:1px solid #e5e7eb;
  padding: 10px 10px;
  vertical-align: top;
}
th{ background:#f9fafb; }

ul, ol{ padding-left: 1.4em; }
li{ margin: 4px 0; }

/* スマホ */
@media (max-width: 720px){
  #navigator{
    flex-direction:column;
    align-items:flex-start;
  }
  #content{
    padding: 14px 14px 18px;
  }
}



/* ===== 強制：上部リンクを左寄せ（最終上書きパック） ===== */

/* ナビ全体を左寄せ固定（旧CSSの text-align:center/right を潰す） */
#navigator{
  text-align: left !important;
  justify-content: flex-start !important;
}

/* 右寄せの定番「float:right」を全部殺す */
#navigator *{
  float: none !important;
}

/* ul / p / div / table など、右に飛ばす margin:auto を全部殺す */
#navigator ul,
#navigator p,
#navigator div,
#navigator table{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* もし table レイアウトなら、table自体が右に寄ってる事があるので左に寄せる */
#navigator table{
  width: auto !important;
  border-collapse: collapse;
}

/* もし ul が右寄せされる作りなら、左に並べる */
#navigator ul{
  display: inline-flex !important;
  justify-content: flex-start !important;
  align-items: center;
  gap: 6px;
  padding: 0 !important;
  list-style: none !important;
}

/* p（会社情報など）が右寄せで別枠なら、それも左に */
#navigator p{
  display: inline-block !important;
  vertical-align: middle;
  white-space: nowrap;
}


/* =========================================================
   /contact/ お問い合わせフォームを現代化
   ========================================================= */

/* フォーム全体をカード化 */
#body form,
#body .contact-form{
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px 22px 24px;
  max-width: 720px;
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
}

/* label */
#body label{
  display:block;
  margin: 16px 0 6px;
  font-weight: 600;
  color:#111827;
}

/* input / textarea / select */
#body input[type="text"],
#body input[type="email"],
#body input[type="tel"],
#body textarea,
#body select{
  width: 100%;
  box-sizing: border-box;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 16px;
  line-height: 1.6;
}

/* フォーカス時 */
#body input:focus,
#body textarea:focus,
#body select:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.18);
  outline: none;
}

#body textarea{
  min-height: 160px;
  resize: vertical;
}

/* tableレイアウトのフォーム対策（業者製で多い） */
#body table{
  width: 100% !important;
  border-collapse: collapse;
}
#body th{
  text-align: left;
  vertical-align: top;
  padding: 12px 8px 4px 0;
  font-weight: 600;
  color:#111827;
}
#body td{
  padding: 4px 0 12px;
}

/* 送信ボタン */
#body input[type="submit"],
#body button{
  margin-top: 18px;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4aa8, #2563eb);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

#body input[type="submit"]:hover,
#body button:hover{
  filter: brightness(1.05);
}

/* 必須・注意文が小さすぎる問題 */
#body .required,
#body .attention{
  color: #dc2626;
  font-weight: 600;
}


h2.title{
  background-image: url('/test/skin/hokukenstyle/g_leaf01/h2_bg.png') !important;
  background-size: cover; /* もしくは contain */
  background-repeat: no-repeat;
  background-position: center;

  /* 左寄せ・文字サイズ調整 */
  text-align: left !important;   /* 左寄せ */
  font-size: 130% !important;    /* 文字を大きく（会社情報・地図と同じサイズ） */
  font-weight: 600;              /* 強調 */
  margin: 0 0 20px;              /* 上下の余白調整 */
  padding-left: 0 !important;    /* インデント解除 */
  margin-left: 0 !important;     /* インデント解除 */
}


/* お問い合わせフォーム エラー表示 */
.ERR{
  color: #cc0000 !important;
  font-weight: bold;
}
