@charset "UTF-8";
@import url("grid.css");

:root { /* 色変更される場合は、#以降のカラーコードを変更してください IE非対応 */
    --base-color: #000;
    --link-color: #b00000;
    --linkhover-color: #b00000;
    --back-color: #f4f0dd;
    --border-color: #b00000;
    --white-color: #fff;
    --nav-color: #333;
}
body {
    background: var(--white-color);
    color: var(--base-color);
    background-image: url(../img/bg1.png);     /* 背景画像指定 */
    background-repeat: repeat-x;                /* 背景の繰り返し設定 */
}

p{
padding-bottom:50px;
font-size: 120%;
}

blockquote{
font-size: 120%;
}

a:hover img{
opacity:0.7;
filter: alpha(opacity=70)
;
}

h3{padding-left : 10px;border-left-width : 10px;border-left-style : solid;border-left-color : #b00000;}

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    color: var(--link-color);
}
a:hover { 
    color: var(--linkhover-color);
}
h2 {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    text-align: center;
}
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--link-color);   
}
.button {
    margin: 1rem;
}

/*ヘッダー
-------------------------------------*/
.header {
	display: flex;
    flex-direction: row;
    padding: 2rem 0 0 0;
    margin-bottom: 2rem;
}
.sitetitle {
    font-size: 3.0rem;
}
.header-box {
	margin-left: auto;
	margin-top: 8px;
}
.contact-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    width: 200px;
    font-size: 16px;
    text-decoration: none;
    background-color: var(--link-color);   
    color: var(--white-color);
    box-shadow: 1px 1px var(--base-color);
}
.contact-button::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white-color);
    border-right: 2px solid var(--white-color);
    transform: rotate(45deg);
}
.contact-button:hover {
    opacity: 0.9;
    color: var(--white-color);
}
/*スマホ用メニュー
-------------------------------------*/	
.spnavi {
    display: none;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: space-around;
    list-style: none;
	margin: 1rem 0 0 0;
    background-color: var(--white-color);
}
nav li {
	flex: 1 0 auto;
}
nav li a {
    text-decoration: none;
    text-align: center;
    width: 100%;
}
nav a:hover {
    background-color: var(--back-color);   
}
nav a {
    padding: 0.5rem;
    color: var(--nav-color);
}

@media screen and (min-width: 768px){
/* PC時はMENUボタンを非表示 */
#open,#close {
    display: none !important;
}

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.header {
	flex-direction: column;
    margin-bottom: 10px;
}
.header #open,#close  {
    position: absolute;
    top: 25px;
    right: 12px;
}
nav ul {
	flex-direction: column;
}
.header li {
	padding-top: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 55px;
    height: 55px;
    border: none;
    position: absolute;
    top: 25px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 55px;
    height: 55px;
    border: none;
    position: absolute;
    top: 25px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}
    
/*メイン画像
-------------------------------------*/
#mainimg {
    width: 100%;
}
#mainimg h1 {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2;
    text-align: center;
    color: var(--white-color);
    text-shadow: 1px 2px 3px var(--link-color); 
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 5rem 0 0 0;
}
section {
	margin: 3rem 0;
	padding: 3rem 0;
}
.gray-back {
	background-color: var(--back-color);
    /*background: url('../img/gray-back.jpg'); gray-back.jpg背景画像を使用したい時にオンにしてください*/
    background-size: cover;
}

/*ニュース
-------------------------------------*/
.news {
    margin: 0 auto;
    max-width: 980px;
    padding: 2rem;
}
.news-list{
    list-style: none;
  }
.news-list .item, .item p {
    margin-bottom: 0;
  }
.news-list .item a{
    display: flex;
    flex-wrap: wrap;
    color: var(--nav-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}
.news-list .item:first-child a{
    border-top: 1px solid var(--border-color);
}
.news-list .item .date{
    min-width: 120px;
    color: var(--link-color);
}
.news-list .item a:hover .title{
    color: var(--base-color);
}

/*キャッチコピー
-------------------------------------*/
.catch {
    text-align: center;
    line-height: 1.7;
}
.center {
	text-align: center;
	margin-bottom: 4rem;
}

/* Googleマップ
-------------------------------------*/
.gmap {
	margin: 3rem 0;
}

/*フッター
-------------------------------------*/
footer {
    background-color: var(--back-color); 
    /*background: url('../img/gray-back.jpg'); gray-back.jpg背景画像を使用したい時にオンにしてください*/
    background-size: cover;
    padding: 5rem 0;
}
footer h4 {
    position: relative;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 2px solid var(--border-color);
}
footer h4::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 70px;
    height: 2px;
    background-color: var(--link-color);
}
/*電話
-------------------------------------*/
a.tel {
    display: inline-block;
}
@media screen and (min-width: 768px){
a[href*="tel:"] { /* PC時は電話番号無効 */
    pointer-events: none;
    cursor: default;
}
}
/*お問い合わせ
-------------------------------------*/
.contact-box {
	border: 1px solid var(--border-color);
	text-align: center;
	padding: 2rem 0;
}
.table {
	margin: 4rem 0;
}
.table th {
	width: 150px;
}
input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea { 
    background-color: var(--white-color);
}
/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
    background-color: var(--link-color);
}
.copyright a {
    color: var(--white-color);
    text-decoration: none;
	display: inline;
}

/*ページトップへ戻るボタン
-------------------------------------*/
#pagetop {
    position: fixed;
    bottom: 75px;
    right: 10px;
    display: block;
    width: 35px;
    height: 35px;
    box-sizing: border-box;
    background: var(--white-color);
    border: 1px solid var(--linkhover-color);
    padding-top: 30px;
    text-align: center;
    text-decoration: none;
    opacity: 0.8;
}
#pagetop::after{
    content: "";
    display: block;
    border-top: 2px solid var(--base-color);
    border-right: 2px solid var(--base-color);
    width: 25%;
    height: 25%;
    top: 45%;
    left: 0;
    right: 0;
    margin: auto;
    position: absolute;
    transform: rotate(-45deg);
}
#pagetop:hover{
    opacity: 0.5;
}

/* 下層ページヘッダー
-------------------------------------*/
.subimg {
    height: 350px;
    background: url('../img/subimg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    margin-bottom: 2rem;
}
.subimg h1 {
    height: 350px;
    line-height: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    text-shadow: 1px 2px 3px var(--link-color); 
    margin: 0;
}
/* パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: var(--link-color);
}

/* 幅768px以下の表示
-------------------------------------*/
@media screen and (max-width: 768px){
	
/*ヘッダー
-------------------------------------*/
.header-box {
    display: none;
}	
/*スマホ用メニュー
-------------------------------------*/	
.spnavi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    text-decoration: none;
    background-color: var(--link-color);   
    color: var(--white-color);
}
.spnavi a {
    display: inline-block;
    color: var(--white-color);
}
.spnavi a:hover {
    opacity: 0.9;
    background-color: var(--link-color);   
    color: var(--white-color);
}
.spnavi::after {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--white-color);
    border-right: 2px solid var(--white-color);
    transform: rotate(45deg);
}
/*メイン画像
-------------------------------------*/
#mainimg h1 {
    height: 350px;
}
/*ニュース
-------------------------------------*/
.news-list .item .title{
    margin-top: 1em;
}
/*お問い合わせ
-------------------------------------*/
.table th {
	width: 100%;
	display: block;
}	
.table td {
	display: block;
}
}




/*641px～PC　PC上では見えないようにする*/
@media screen and (min-width:6410px){
	.footer_area{
		display: none;
}	
}

/*スマホ～641pxの幅サイズまで*/
@media screen and (max-width:6400px){
.footer_area {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba( 0, 0, 0, 0.6 );
	z-index: 10000;
}
.footer_area .footer_area_inner {
    position: relative;
    width: 85%;
    margin: 0px auto;
    padding: 10px 0;
	margin-right: 0px;
}
.footer_area .footer_area_inner .footer_area_inner_btn {
    width: 90%;
    padding: 11px 0;
    font-size: 20px;
    font-weight: bold;
    margin-left: 15px;
	line-height: 1.3;
    
}
.inquiry_btn {
    background-color: #068BF1;
    -webkit-border-radius: 8px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
	width: 85%;
    padding: 5px 0;
    font-size: 20px;
    font-weight: bold;
}
.inquiry_btn:link, .inquiry_btn:visited {
    color: #FFFFFF !important;
}
.footer_area_inner span{
	color: #fff;
}
#siteBottom{
	margin-bottom: 85px;
}
}


/* -------------------------------------------
 * フッターナビゲーションの基本設定
 * ------------------------------------------- */

.footer-nav {
    /* 元の <p> タグにあった中央寄せとパディングを nav に適用 */
    text-align: center;
    padding: 20px 10px 10px; /* 上部にもパディングを追加して上下のコンテンツと区切る */
}

/* リストのデフォルトスタイルをリセット */
.nav-list {
    list-style: none; /* リストマーカー（・）を非表示 */
    padding: 0;      /* ブラウザの標準パディングを削除 */
    margin: 10px 0;  /* 上下にスペースを確保 */
    /* リスト全体を中央寄せできるようにインラインブロック化 */
    /* これがないと、text-align: center; が効きません */
    display: inline-block; 
}

/* -------------------------------------------
 * リストアイテム（li）の横並びと区切り線の設定
 * ------------------------------------------- */

.nav-list li {
    display: inline; /* liを横並びにする */
    white-space: nowrap; /* リンクが途中で改行されるのを防ぐ */
}

/* liの後ろに区切り線（|）を挿入 */
.nav-list li::after {
    content: " | "; /* 区切り文字とスペース */
}

/* 最後の li だけ区切り線を非表示にする */
.nav-list li:last-child::after {
    content: none; /* 区切り文字を削除 */
}

/* -------------------------------------------
 * HOMEボタンの配置
 * ------------------------------------------- */

.home-link {
    /* HOMEボタンの画像が縦長にならないよう調整 */
    margin: 10px 0 0 0;
    padding: 0;
}



/* =============================== */
/* 1. HOMEページ インラインスタイル移行（shinfit- プレフィックス） */
/* =============================== */

/* メインビジュアル内のH1 */
.shinfit-mainimg-h1 {
    font-size: 2.3rem;
}

/* catchセクションのH2 */
.shinfit-h2-x-pad {
    padding-left: 10px;
    padding-right: 10px;
}

/* catchセクションのPタグ */
.shinfit-p-x-pad {
    padding-left: 10px;
    padding-right: 10px;
}

/* 赤文字で強調したい箇所 */
.shinfit-attention-red {
    color: #b00000;
}

/* ニュースセクションの強調Pタグ */
.shinfit-news-catch {
    font-weight: bolder;
    background-color: white;
    text-align: center;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    margin-left: 0px; 
    margin-right: 0px; 
    margin-bottom: 15px;
}

/* =============================== */
/* 2. お知らせ欄（ul/li構造化に伴う追記） */
/* =============================== */

/* お知らせ全体を囲むコンテナ */
.shinfit-info-container {
    /* 必要に応じてマージンなどを定義 */
}

/* リスト全体の設定（ULタグ） */
.shinfit-info-list {
    list-style: none; /* デフォルトの黒丸を削除 */
    padding: 0;      /* デフォルトのパディングを削除 */
    margin: 0;       /* デフォルトのマージンを削除 */
}

/* 個々のお知らせボックスのスタイル（LIタグ） */
.shinfit-info-item {
    background-color: white;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* お知らせ内のリンクのスタイル（Aタグ） */
.shinfit-info-item a {
    text-decoration: none;
    display: block; 
    padding: 5px 0; 
}

.shinfit-info-item a strong {
    font-weight: bold;
}


/* =============================== */
/* HOMEページ 残りのインラインスタイル移行 */
/* =============================== */

/* Pタグのセンタリングと下部余白 (No. 1) */
.shinfit-p-center-pb10 {
    text-align: center;
    padding-bottom: 10px;
}

/* Pタグのセンタリング (No. 8) */
.shinfit-p-center {
    text-align: center;
}

/* H2の上部余白 (No. 2) */
.shinfit-h2-mt50 {
    margin-top: 50px;
}

/* 下部マージン 10px (No. 3, 4, 5) */
.shinfit-mb10 {
    margin-bottom: 10px;
}

/* 文字サイズ 120% (No. 6) */
.shinfit-font-large {
    font-size: 120%;
}

/* 赤文字強調と太字 (No. 9) */
.shinfit-attention-red-bold {
    color: #b00000;
    font-weight: bold;
}

/* 著作権文字色 (No. 11) */
.shinfit-copyright-color {
    color: #cccccc;
}

/* 汎用的な赤文字強調 (No. 7, 10, フォームの最後のPタグ) */
/* これは既存のCSSに既に定義されているか、以前定義した.shinfit-attention-redを流用します */
/* .shinfit-attention-red { color: #b00000; } */

/* Pタグの下部余白 50px */
.shinfit-pb50 {
    padding-bottom: 50px;
}


/* =============================== */
/* service.html用 インラインスタイル移行 */
/* =============================== */

/* 汎用的な枠線付きボックス（10pxパディング, 20px下マージン, 赤い枠線） */
.shinfit-framed-box {
    padding: 10px; 
    margin-bottom: 20px;
    border-width: 1px;
    border-style: solid;
    border-color: #b00000; 
}

/* 青文字 (ドメイン＆サーバ費) */
.shinfit-blue-text {
    color: #0078f0;
}

/* H4などの下部余白を0に */
.shinfit-pb0 {
    padding-bottom: 0px;
}


/* =============================== */
/* works.html用 インラインスタイル移行 */
/* =============================== */

/* 制作実績サムネイルの囲みボックス (中央寄せ、30pxパディング、マージンリセット) */
.shinfit-work-thumb-box {
    text-align: center;
    padding: 30px; /* 上下左右30px */
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
}


/* =============================== */
/* nowrap属性 移行用 */
/* =============================== */

/* セルの内容の折り返しを禁止する */
.shinfit-nowrap {
    white-space: nowrap;
}


/* =============================== */
/* 汎用クラス：画像や要素のフロート */
/* =============================== */

/* 要素を右側にフロートさせる */
.shinfit-float-right {
    float: right;
}