/* body */
body {
	color:#1a1a1a;
	margin:0px;
	padding:0px;
	background:#ffffff url(./img/bg.gif) repeat-y;
	background-position:center;
	font-family:'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', sans-serif;
}

/* テーブル・段落 */
td { font-size:15px; line-height:180%; }
p  { margin:3px 5px; }

/* リンク */
a       { color:#0000ff; text-decoration:underline; }
a:hover { color:#aa0000; text-decoration:none; background-color:#ffcc99; }
a:active{ color:#aa0000; text-decoration:none; background-color:#ffcc99; position:relative; top:1px; left:1px; }


/* コンテンツ */
h1 { color:white; font-size:10pt; margin:0px 0px; }
h2 { color:red; font-size:15pt; margin:0px 0px; }
h3 { color:red; font-size:12pt; margin:0px 0px; }


/* ホームページの横幅 */
table {
    max-width: 670px;
    margin: 0 auto;
}


/* 上に戻るボタン */
.pagetop {
	color: #fff;
	background-color: rgba(0,0,0,0.3);
	text-decoration: none;
	display: none;
	position: fixed;
	bottom: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	width: 3.3rem;
	height: 3.3rem;
	line-height: 3.3rem;
	border-radius: 3.3rem;
	text-align: center;
	cursor: pointer;
}

.pagetop:hover {
	color: #fff !important;
	background-color: #ed702b;
	text-decoration: none;
}


.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  background-color: #fefefe;  /* モーダルウィンドウの背景色 */
  margin: 15% auto;
  padding: 22px;
  line-height: 180%;
  border: 1px solid #888888;
  width: 40%;  /* モーダルウィンドウの横幅 */
}
.modal-title {
  color: #800000; /* モーダルウィンドウの文字の色 */
  font-size: 20px; /* モーダルウィンドウの文字の大きさ */
  font-weight: bold;
  line-height: 200%;
  text-align: center;
}
.close-button {
  color: #aaaaaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}
.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}






/*===============================================================
  モバイル向けのスタイルシート
===============================================================*/

@media screen and (max-width: 767px) {

    /* モバイルではテーブルを拡大する */
    table {
        width: 100%;
        max-width: none;
    }

    /* モバイルで見るときの文字サイズと文字の間隔 */
    td {
        font-size: 15px;
        line-height: 180%;
    }

    /* モバイルでは画像を拡大する */
    img {
        max-width: 100%;
        height: auto;
    }


    /* モバイルではメールフォームの横幅を広げる */
    input[type="text"], textarea {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    /* モバイルではテーブルを縦に並べる */
    .responsive-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }


}

/*===============================================================
  ここまで  モバイル向けのスタイルシート
================================================================*/
