@charset "utf-8";

/* ==================================================
   基本スタイル（PC）
================================================== */
body {
  margin: 0;
  padding: 0;
  background: #fff url('../image/bg.gif');
  color: #666;
  font-size: 92%;
}

/* サイト全体の外枠（900px・中央寄せ・枠線） */
div#wrap {
  width: 900px;
  height: auto;
  margin: 0 auto;
  padding: 10px 0;
  text-align: left;
  background: #fff;
  border-left: solid 1px #999;
  border-right: solid 1px #999;
  border-bottom: solid 1px #999;
}

div#body {
  width: 740px;
  height: auto;
  margin: 0 auto;
  padding: 10px 0;
  text-align: left;
  background: #fff;
  font-family: serif;
}

div#menuBar {
  width: 854px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  z-index: 1;
}

#logo {
  margin-left: 45px;
  width: 150px;
  height: 50px;
  border: none;
}

div#where {
  margin-left: 60%;
  width: 200px;
  font-family: serif;
  font-size: 9px;
}

div#wrap > div[style*="text-align:center"] {
  width: 854px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  text-align: center !important;
}

#imgfoto,
div#wrap > div[style*="text-align:center"] img,
.responsive-img {
  display: block !important;
  margin: 0 auto !important;
  padding: 0 !important;
  width: 854px !important;        /* 元の854pxサイズ */
  max-width: 100% !important;
  height: auto !important;
}

.menuimg {
  border: none;
  width: 144px;
  height: 35px;
}

p {
  background-color: transparent;
  line-height: 175%;
  font-family: serif;
}

li {
  background-color: transparent;
  line-height: 200%;
  font-family: serif;
}

h1 {
  margin-top: -50px !important;   /* 写真の上に乗る位置 */
  margin-left: 110px !important;  /* オリジナルの横位置（少し右へ） */
  margin-bottom: 20px;
  width: auto;
  font-family: serif;
  color: #FAF99A !important;      /* クリーム色 */
  font-size: 1.5em;
  text-align: left;
  position: relative;
  z-index: 10;
}

h2 {
  color: #333333;
  font-size: 1.3em;
  font-family: serif;
}

h2 a:link { text-decoration: none; color: #E51F1F; font-weight: bold; }
h2 a:visited { text-decoration: none; color: #E51F1F; }
h2 a:hover { text-decoration: underline; color: #E51F1F; }

td {
  font-size: 12px;
  font-family: serif;
}

.prophoto {
  border: solid 1px #333333;
  float: right;
  margin-left: 5px;
  margin-right: -60px;
}

.product {
  margin-top: 2em;
}

.aisatsu {
  margin-top: 0px;
  margin-bottom: 0px;
}

.right {
  text-align: right;
  margin-right: 2em;
}

.bold {
  font-weight: bold;
}

a:link { text-decoration: none; color: #003366; }
a:visited { text-decoration: none; color: #333333; }
a:hover { text-decoration: underline; color: #003366; }

table#booklist {
  width: 650px;
  border-top: 1px dotted #ccc;
  border-collapse: collapse;
  border-spacing: 0;
  empty-cells: show;
}

table#booklist td {
  font-size: 86%;
  border-bottom: 1px dotted #ccc;
  padding: 0.3em 1em;
}

/* ==================================================
   ナビゲーションメニュー（PC）
================================================== */
#navmenu {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background-color: #eee !important;
  border-top: 1px solid #ccc !important;
  border-bottom: 1px solid #ccc !important;
  box-sizing: border-box !important;
}

#navmenu li {
  flex: 1 1 0 !important;         /* 7つのボタンを均等割り */
  text-align: center !important;  /* 文字を中央揃え */
  border-right: 1px solid #ccc !important;
  box-sizing: border-box !important;
}

#navmenu li:last-child {
  border-right: none !important; 
}

#navmenu li a {
  display: block !important;
  padding: 4px 0 !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 0.9em !important;
  white-space: nowrap !important;
}

/* ==================================================
   画像・パーツ設定
================================================== */
.responsive-img {
  max-width: 100%;
  height: auto;
}

.profile-img {
  float: right;
  margin-left: 20px;
  margin-bottom: 10px;
  max-width: 180px;
  width: 100%;
  height: auto;
}

/* ==================================================
   お問い合わせフォーム用スタイル
================================================== */
.contact-form {
  max-width: 600px;
  margin: 20px auto;
}

.form-group {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 12px;
}

.form-group label {
  font-weight: bold;
  margin-right: 10px;
}

.form-group input {
  width: 280px;
  padding: 8px;
  box-sizing: border-box;
}

.form-note {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9em;
  color: #d9534f;
}

.form-group-full textarea {
  width: 100%;
  max-width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 1em;
}

.form-buttons {
  text-align: center;
  margin: 20px 0;
}

.form-buttons input {
  padding: 8px 24px;
  margin: 0 5px;
  cursor: pointer;
}

/* ==================================================
   スマホ・タブレット表示対応（画面幅768px以下）
================================================== */
@media screen and (max-width: 768px) {
  /* 外枠・本文エリアを画面幅いっぱいに拡張 */
  #wrap, div#body {
    width: 100% !important;
    padding: 10px !important;
    box-sizing: border-box !important;
  }

  /* メニューバー枠の調整 */
  div#menuBar {
    width: 100% !important;
    margin: 0 !important;
  }

  /* メニューを折返し（2段〜3段）表示に設定 */
  #navmenu {
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    border-bottom: none !important;
  }

  /* 各ボタンを均等に配置 */
  #navmenu li {
    flex: 1 1 25% !important;
    min-width: 100px !important;
    border-bottom: 1px solid #ccc !important;
    box-sizing: border-box !important;
  }

  #navmenu li a {
    font-size: 0.85em !important;
    padding: 8px 4px !important;
  }

  /* ★画面幅が狭い（2段以上）時は h1 (Home) を完全に非表示にする */
  h1 {
    display: none !important;
  }

  /* トップ画像表示の調整 */
  div#wrap > div[style*="text-align:center"] {
    width: 100% !important;
  }

  #imgfoto,
  div#wrap > div[style*="text-align:center"] img,
  .responsive-img {
    width: 100% !important;
  }

  /* フォーム等の調整 */
  table#booklist {
    width: 100% !important;
  }

  .form-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-group label {
    margin-bottom: 5px;
  }

  .form-group input {
    width: 100% !important;
  }
}