@charset "utf-8";

/*
Theme Name: theme-sapmedspomed
*/

/* ======= 全体リセット・整形 ======= */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ======= 見出しなど ======= */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: bold;
}

p {
  margin: 0 0 1em;
  line-height: 1.8;
}

/* ======= リンクの基本スタイル ======= */
a {
  color: inherit;
  text-decoration: none;
}

/* ======= リストのリセット ======= */
ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ======= 画像のリセット ======= */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: none;
}

/* ======= ヘッダーとナビゲーション ======= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: #fff;
  padding: 10px 20px;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.main-nav .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  word-break: break-word;
}

/* サブメニュー（PC&SP共通） */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  min-width: 160px;
}

.has-submenu:hover .submenu {
  display: block;
}

.submenu li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
}

/* ======= レスポンシブ対応 ======= */
@media screen and (min-width: 769px) {
  .logo img {
    height: 100px;
  }
  .main-nav .menu {
    font-size: 18px;
  }
  .submenu li a {
    font-size: 16px;
  }
}
