/* store-modern.css — PHP 処理を変更せずに見た目だけを develop 準拠にする */
:root {
  --sm-blue:    #003087;
  --sm-blue2:   #0055c8;
  --sm-bg:      #f5f7fb;
  --sm-border:  #c8d8ef;
  --sm-white:   #ffffff;
  --sm-header-h: 46px;
}

/* ===== リセット・基盤 ===== */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--sm-bg);
  font-family: "Hiragino Sans", "Meiryo", "Yu Gothic", sans-serif;
  color: #1a1a2e;
}
img { max-width: 100%; height: auto; }
a { color: var(--sm-blue); text-decoration: none; }
a:hover { color: var(--sm-blue2); text-decoration: underline; }

/* ===== フローティングヘッダー（#sm-header に挿入） ===== */
#sm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--sm-white);
  border-bottom: 2px solid var(--sm-blue);
  box-shadow: 0 2px 6px rgba(0,48,135,0.12);
}
#sm-header .sm-nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--sm-header-h);
  padding: 0 8px;
}
/* dropdown メニューの水平リストを中央揃え */
#sm-header #nav,
#sm-header ul#nav,
#sm-header ul.dropdown {
  width: auto !important;
  height: auto !important;
  margin: 0 auto !important;
  background: transparent !important;
}

/* ===== サブナビ（セミナ案内など）帯 ===== */
.sm-subnav {
  background: #e8edf8;
  border-bottom: 1px solid var(--sm-border);
  text-align: center;
  padding: 6px 0;
  font-size: 0.9rem;
}
.sm-subnav a { color: var(--sm-blue); margin: 0 6px; }
.sm-subnav a:hover { color: var(--sm-blue2); }

/* ===== ページ本体ラッパー ===== */
.sm-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px 36px;
}

/* ===== 古い align="center" テーブルのラッパーを中央に ===== */
body > table[align="center"],
body > form > table[align="center"],
.sm-page table[align="center"],
.sm-legacy table[align="center"] {
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* ===== 申込テーブル共通（borderのある1以上） ===== */
table[border="1"],
table[border="1"] td,
table[border="1"] th {
  border-collapse: collapse;
}
table[border="1"] td,
table[border="1"] th {
  border: 1px solid #c0cce0 !important;
  padding: 8px 10px;
  vertical-align: top;
}
/* 見出し行（bgcolor="#0033CC"）を青グラデーションに */
table[border="1"] tr[bgcolor="#0033CC"] td,
table[border="1"] tr[bgcolor="#0033CC"] th {
  background: linear-gradient(90deg, #003087 0%, #0055c8 100%) !important;
  color: #fff !important;
}
table[border="1"] tr[bgcolor="#0033CC"] font[color="#FFFFFF"] {
  color: #fff !important;
}
table[border="1"] tr[bgcolor="#0033CC"] a { color: #fff !important; }

/* 偶数行に薄いストライプ */
table[border="1"] tr:not([bgcolor]):nth-child(even) { background: #f0f4fc; }
table[border="1"] tr:not([bgcolor]):hover { background: #e4ecf8; transition: background .15s; }

/* ===== 詳細ページのナビテーブル（古い800pxロゴ行）を非表示 ===== */
/* PHP include している menu テーブルは #sm-header 側に移動するためネイティブを隠す */
table.sm-hide-legacy { display: none !important; }

/* ===== フッター (#sm-footer) ===== */
#sm-footer {
  width: 100%;
  margin-top: 36px;
  background: var(--sm-white);
}
#sm-footer article {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #003087 0%, #0055c8 100%);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
#sm-footer article section {
  flex: 1 1 180px;
  padding: 18px 14px;
  min-width: 140px;
}
#sm-footer article h3 {
  font-size: .95rem;
  margin: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 6px;
}
#sm-footer article ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#sm-footer article li { margin: 5px 0; font-size: .82rem; }
#sm-footer article a { color: rgba(255,255,255,.9); }
#sm-footer article a:hover { color: #fff; text-decoration: underline; }

#sm-footer hr {
  border: 0;
  height: 1px;
  background: rgba(255,255,255,.2);
  margin: 0;
}
#sm-footer address {
  display: block;
  max-width: 1200px;
  margin: 0 auto;
  background: #001d5c;
  color: rgba(255,255,255,.8);
  font-style: normal;
  font-size: .82rem;
  padding: 10px 14px;
  text-align: center;
}
#sm-footer address a { color: rgba(255,255,255,.7); }
#sm-footer aside {
  max-width: 1200px;
  margin: 0 auto;
  background: #001d5c;
  padding: 6px 14px 14px;
  text-align: center;
}
#sm-footer aside ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  justify-content: center;
}
#sm-footer aside li { display: inline; font-size: .8rem; }
#sm-footer aside a { color: rgba(255,255,255,.6); }
#sm-footer aside a:hover { color: #fff; }

/* backtotop */
.sm-backtotop {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 8000;
}
.sm-backtotop a {
  display: block;
  background: var(--sm-blue);
  color: #fff;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: .76rem;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,48,135,.35);
}
.sm-backtotop a:hover { background: var(--sm-blue2); color: #fff; }

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  body > table[align="center"],
  body > form > table[align="center"] {
    width: 100% !important;
  }
}
@media (max-width: 768px) {
  #sm-footer article { flex-direction: column; }
  #sm-footer article section { width: 100%; flex: none; padding: 12px 14px; }
  .sm-page { padding: 12px 8px 24px; }
  table[border="1"] td, table[border="1"] th { font-size: .85rem; }
  #sm-header .sm-nav-wrap { justify-content: flex-start; overflow-x: auto; }
}
@media (max-width: 480px) {
  table[border="1"] td, table[border="1"] th { font-size: .78rem; padding: 5px 6px; }
}
