190729記事内_CSSソース | デジマースブログ
@charset "utf-8";
/* CSS Document */
html {
margin: 0px;
font-size:62.5%;/*10pt基準*/
}
body {
margin: 0px;/*ページ全体周りの余白がなくなる*/
font-family: "メイリオ",Meiryo,"ヒラギノ角ゴ Pro W3",Hiragino Kaku Gothic Pro,"MS Pゴシック",sans-serif;
font-size: 12px; font-size: 1.2rem;
-webkit-tap-highlight-color: rgba(0,0,0,0);/*リンクがタップされている間に表示される強調色を設定*/
line-height: 1.4;/*文字行間設定*/
background-image: url("img/top_sp.png")
background-attachment: fixed; block-start:0px; inline-start:0px;
background-attachment: fixed; top:0px; left:0px; /*クローム対応*/
background-size:100%;
background-repeat: no-repeat
}
body:before{
content:"";
display:block;
position:fixed;
top:0;
left:0;
z-index:-1;
width:100%;
padding-top: 133%;
background:url("img/top_sp.png") center no-repeat;
background-size:cover;
}
input{
margin: 0px;
}
ul,h1 {/*レイアウト崩れを防ぐためにデフォルトCSSをクリアー_物理プロパティと倫理プロパティ記述*/
margin-block-start: 0px;
margin-top: 0px;/*EDGE対応*/
margin-block-end: 0px;
margin-bottom: 0px;/*EDGE対応*/
margin-inline-start: 0px;
margin-left: 0px;/*EDGE対応*/
margin-inline-end: 0px;
margin-right: 0px;/*EDGE対応*/
padding-inline-start: 0px;
padding-left: 0px;/*EDGE対応*/
}
a {
color:#666666;
text-decoration: none;
}
a:hover {
color:#999;
text-decoration: none;
}
div.clear { clear:both; }/*レイアウト崩れを防ぐために適切にクリアーしておく。「both」は左右両側の回り込み(float : left ; float : right ;)を解除する*/
div.bg_a {
width: 100%;
padding-top: 133%;
}
ul.nav_box {
width: 100%;
}
li.nav_text {
display: block;
width: 40%;
text-align: left;
margin: 2.5em 0 0% 1em;
font-size:15px; font-size: 1.5rem;
}
/*★ドロワーメニューはここから↓ 参考⇒https://saruwakakun.com/html-css/reference/nav-drawer*/
#nav-drawer {
display: block;
z-index:10;
position: -webkit-sticky; /* safari対応 */
position: sticky;
top: 0em; /* 上端から0em;のところで固定 */
position: relative;
height: 4em;
background-color: #f2f2f2;
}
/*チェックボックス等は非表示に*/
.nav-unshown {
display:none;
}
/*アイコンのスペース*/
#nav-open {
display: inline-block;
width: 30px;
height: 22px;
vertical-align: middle;
}
/*ハンバーガーアイコン*/
#nav-open span {
z-index:10;
position: -webkit-sticky; /* safari対応 */
position: sticky;
top:0px; /* 上端から0px;のところで固定 */
right: 0px;/*メニューアイコン:右寄せ*/
position: absolute;
display: block;
margin:0;
width: 4em;
padding-top: 4em;
background-image: url("img/nav_menu_btn.png");
background-size:4em;
background-position:top center;
background-repeat: no-repeat
}
/*閉じる用の薄黒カバー*/
#nav-close {
display: none;/*はじめは隠しておく*/
position: fixed;
z-index: 99;
top: 0px;/*全体に広がるように*/
width: 100%;
height: 100%;
background: black;
opacity: 0;
transition: .3s ease-in-out;
}
/*中身*/
#nav-content {
overflow: auto;
position: fixed;
top: -0px;
left: -105%;
z-index: 9999;/*最前面に*/
width: 70%;/*右側に隙間を作る(閉じるカバーを表示)*/
height: 100%;
background: #fff;/*背景色*/
transition: .3s ease-in-out;/*滑らかに表示*/
}
/*チェックが入ったらもろもろ表示*/
#nav-input:checked ~ #nav-close {
display: block;/*カバーを表示*/
opacity: .5;/*透過具合*/
}
#nav-input:checked ~ #nav-content {
left: 0;
box-shadow: 6px 0 25px rgba(0,0,0,.15);
}
/*★ドロアーメニューはここまで↑*/
li.nav_menu_icon {
display: block;
margin:0;
width: 4em;
padding-top: 100%;
background-image: url("img/nav_menu_btn.png");
background-size:4em;
background-position:top center;
background-repeat: no-repeat
}
div.bg_pic_sample_a {
display: block;
margin: 0;
width: 100%;
background-image: url("img/bg.png");
background-size:100%;
background-position:top center;
background-repeat: repeat
}
.txt_FlexBox{
width: 100%;
display: block; /* フレックスボックスにする */
flex-flow: row wrap;
margin: 0px;
}
.txt_column{
width: 100%;
margin: 0px;
}
.txt01{
display: block;
width: 80%;
background-color: #f2f2f2;
padding: 1.0rem 5% 1.0rem 5%;
margin: 0% 5% 0% 5%;
font-size:15px; font-size: 1.5rem;
border-radius: 4px;
}
.txt_s{
display: block;
float:left;
color: #cc0000;
width: 95%;
text-align: right;
margin: 0rem 0% 0 0%;
padding: 0rem 5% 0rem 0%;
font-size:10px; font-size: 1.0rem;
}
h1 {
color: #666666;
width: 100%;
text-align: center;
margin: 0rem auto 0 auto;
padding: 1.0rem 0% 0.6rem 0%;
background-color: #fff;
font-size: 20px; font-size: 2.0rem;
}
h2 {
width: 90%;
color: #666666;
width: 100%;
text-align: center;
margin: 3.5rem auto -1.5rem auto;
font-size:26px; font-size: 2.6rem;
}
h3 {
color:#666666;
width: 95%;
text-align: left;
margin: 1.0rem auto 0 auto;
padding: 1.0rem 0% 0rem 5%;
font-size: 20px; font-size: 2.0rem;
}
footer.kotei_footer{
z-index:6;
margin:4em 0px 0 0%;
text-align: center;
font-size: 7px; font-size: 0.7rem;
color : #FFFFFF;
background : #656766;
width : 100%;
padding: 1.875% 0 1.875% 0;
}
@media screen and (min-width:800px){/*★PC用レスポンシブ設定*/
body {
background-image: url("img/top_pc.png");
background-attachment: fixed; block-start:0px; inline-start:0px;
background-size:1920px;
background-position:center top;
}
body:before{
display:none;
}
div.bg_a {
width: 100%;
padding-top: 500px;
}
#nav-drawer {
width: 100%;
}
#nav-content {
width: 100%;
/*top:0px;*/
height: 4em;
position: static;
/*position: absolute;*/
background-color: #f2f2f2;
}
ul.nav_box {
width: 100%;
}
li.nav_text {
display:inherit;
display: block;
width: 20%;
float:left;
text-align: center;
margin: 0 auto 0% auto;
padding-top: 1em;
font-size:15px; font-size: 1.5rem;
}
#nav-open span {
width: 0%;
padding-top: 0%;
height:10px;
}
#nav-open {
display: block;
height:0px;
}
div.bg_pic_sample_a {
background-size:1920px;
background-position:top center;
background-repeat: repeat
}
.txt_FlexBox{
display: flex;
margin: 0% auto 0% auto;
}
.txt_column {
width: 50%;
margin: 0px;
}
footer.kotei_footer{
font-size: 10px; font-size: 1.0rem;
padding: 5px 0 5px 0;
}
}
他の記事をさがす ⇒ 記事一覧へ