@charset "utf-8";

/*====================*/


/*=== Reset Styles START ===*/


/*====================*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
caption {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: bottom;
}

/* all */

#hachioji * {
    font-family: 游明朝,"Yu Mincho",YuMincho,"Hiragino Mincho ProN","Hiragino Mincho Pro",HGS明朝E,メイリオ,Meiryo,serif;
    font-size: 13px;
	font-weight:bold;
    line-height: 1;
}

/*====================*/


/*=== Reset Styles END ===*/


/*====================*/


/* divボックスで指定した幅に中の画像サイズを自動で合わせる */
#hachioji img {
    width: 100%;
    height: auto;
}

/* CSS Document */

#hachioji .main {
    background: linear-gradient(0deg,#398fb7,#01608c); /* 背景色を指定 */
    padding-top: 20px; /* .mainの上部の空き */
    padding-bottom: 20px; /* .mainの下部の空き */
    margin-bottom: 20px; /* .mainの下部のスペースを指定 */
    /* marginは領域間のスペース、paddingは領域内のスペースです。（この場合margin-top:20px; を指定すると、背景色の上に白で20pxのスペースが作られます。） */
    text-align: center;
}

#hachioji .mainTitle {
    max-width: 1000px; /* 画像の幅の最大値 */
    width: 90%; /* 画像の幅を指定 */
    margin-left: auto;
    margin-right: auto; /* margin-left: auto;・margin-right: auto;の左右のmarginをautoで指定すると中央に配置 */
    margin-bottom: 20px; /* 山梨のおすすめのお宿の下部のスペース */
}

#hachioji .mainPhoto {
    max-width: 1000px; /* 画像の幅の最大値 */
    width: 90%; /* 画像の幅を指定 */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; /* メイン画像の下部のスペース */
}

#hachioji .main p {
    max-width: 417px; /* 詳しくはこちらボタンの幅 */
    width: 50%; /* 画像の幅を指定 */
    margin-left: auto;
    margin-right: auto;
}

#hachioji h1 {
    font-size: 22px;
    color: #01608c;
    text-align: center;
    margin-bottom: 20px; /* 多摩のおすすめのお宿の下のスペースを調整 */
}

#hachioji h2 {
    font-size: 12px;
    line-height: 1.4em; /* 行間を指定 */
    color: #757575;
    margin-bottom: 8px; /* ホテル名の下のスペースを調整 */
}
#hachioji .hotelOuter {
    text-align: center;
    max-width: 900px; /* 画像の幅の最大値 */
    width: 65%;
    margin: 0 auto; /* 中央揃え */
    font-size: 0; /* 子要素のinline-blockの隙間バグを修正用 */
}

#hachioji .hotel {
    display: inline-block;
    width: 20%; /* ホテル画像のサイズ指定 */
    /* padding:30px;　だと上下左右空きを作ってしまうので（多摩のおすすめのお宿部分の下部の空きが30px空いてしまうので */
    margin-left: 2.5%;
    margin-right: 2.5%;
    margin-bottom: 30px;
    /* と、上部以外を30pxで指定します。（ padding:0 30px 30px 30px; という省略した書き方でもOKです。順番は上右下左になります。　*/
}

#hachioji .hotel p {
    margin-top: 5px; /* 詳しくはこちらボタンの上部の空きを調整 */
}


/* 画面の横幅900px以下の場合のスタイル（主にタブレット） */
@media screen and (max-width: 900px) {
    #hachioji .hotelOuter {
        width: 95%;
    }
}

/* 画面の横幅600px以下の場合のスタイル（主にスマートフォン） */
@media screen and (max-width: 600px) {
    #hachioji .main {
        padding-top: 15px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }
    #hachioji .mainTitle,
    #hachioji .mainPhoto {
        width: 94%;
        margin-bottom: 15px;
        overflow: hidden;
    }
    #hachioji .mainTitle img {
        width: 130%;
        max-width: 130%;
        margin-left: -15%;
    }
    #hachioji .mainPhoto img {
        width: 140%;
        max-width: 140%;
        margin-left: -20%;
    }
    #hachioji .main p {
        max-width: auto;
        width: 80%;
    }
    #hachioji h1 {
        margin-bottom: 15px;
    }
    #hachioji .hotelOuter {
        width: 98%;
    }
    #hachioji .hotel {
        width: 45%;
    }
    #hachioji h2 {
        font-size: 15px;
        text-align: left;
    }
}