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

img {
	max-width:100%;
	height: auto;/*高さ自動*/
}
a {
    display:block;
    color: #666;
    text-decoration-line: none;
}
a:hover { 
    color: #999;
}
a img:hover {
	opacity: 0.8;
}
.underline {
	border-bottom: 3px solid #000;
	padding-bottom: 0.5rem;
}
.center {
	text-align: center;
}
ol, ul {
  list-style: none;
}
@media screen and (max-width:640px) {
	.pc {
		display: none;
	}
}
@media screen and (min-width:641px) {
	.sp {
		display: none;
	}
}

/*注意書き
-----------------------------------*/
.waku-attention {
	clear:both;
	padding:0 10px;
	margin:5px 0;
	border:#F00 solid 2px;

}
.waku-attention p {
	text-align: left;
	margin: 1rem;
	padding:0;
	color:#000;
}
.waku-attention h2 {
	border-radius: 4px;
	margin: 0;
	padding:1rem;
	color: #666;
	border: none;
}
.waku-attention h3 {
	font-weight: bold;
	border-radius: 4px;
	margin: 0.5rem;
	padding:1rem;
	color: #fff;
	font-size: 2.0rem;
	background:#FF0000;
	border: none;
}
.waku-attention .waku {
	border: none;
	margin: 10px 0;
}
.bg-red {
	background:#F00;
	overflow: hidden;
}
.bg-white {
	background:#FFF;
	padding: 1rem;
	overflow: hidden;
}
.text-red {
	color: #F00;
}
.text-large {
	font-size:2.0rem;
}

@media screen and (max-width: 768px) {
.waku-attention {
	clear:both;
	padding:0;
	margin:0;
	border:#F00 solid 5px;

}
.waku-attention h2 {
	padding: 0;
	font-size: 2.0rem;
}
.waku-attention h3 {
	margin: 0;
	padding:0.5rem;
	font-size: 1.8rem;
	font-weight: normal;
}
.bg-white {
	padding: 0.5rem;
}
}
/*テーブル
-----------------------------------*/
table.table-standard {
	width: 80%;
	margin: 0 auto;
}
.table-standard tr {
  border-bottom: 1px solid #b5b1b1;
}

.table-standard th,
.table-standard td {
  padding: 24px 0;
  border: none;
}

.table-standard th {
  width: 30%;
}

@media screen and (max-width: 768px) {
table.table-standard {
	width: 100%;
	margin: 0;
}
}
@media only screen and (max-width: 480px) {
  .table-standard {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .table-standard th,
  .table-standard td {
    width: 100%;
    display: block;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 8px;
  }

  .table-standard th {
    width: 100%;
    background-color: #f5f5f5;
    font-weight: bold;
  }

  .table-standard td {
    padding-top: 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
  }
  
  /* テーブル行を明確に分離 */
  .table-standard tr {
    display: block;
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
  }
}
/* テーブルのスマホ対応強化 */
@media screen and (max-width: 768px) {

  
  .table-standard th,
  .table-standard td {
    padding: 16px 8px;
  }
}

@media screen and (max-width: 480px) {
  /* カード型レイアウト */
  .table-standard {
    display: block;
    width: 100% !important;
    margin: 0 !important;

  }
  
  .table-standard tbody,
  .table-standard tr {
    display: block;
    width: 97%;
  }
  
  .table-standard tr {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
  }
  
  .table-standard th,
  .table-standard td {
    display: block;
    width: 100% !important;
    text-align: left !important;
    padding: 8px 0;
    border: none !important;
  }
  
  .table-standard th {
    background: none;
    color: #666;

    font-weight: 600;
    margin-bottom: 4px;
  }
  
  .table-standard td {

    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  /* 最後のtdのマージンを削除 */
  .table-standard tr td:last-child {
    margin-bottom: 0;
  }
}
/*ヘッダー
-------------------------------------*/

.head {
	display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.head h1 { 
    padding: 1rem 0;
	font-weight: 700;
	letter-spacing: 3px;
}
.snsbox {
	margin-left: auto;
	font-size: 3.0rem;
	padding: 0 0 0 0;
    display: -webkit-flex;
    display: flex;
}
.snsbox span {
	padding: 0 0 0 1rem;
}
nav {
	border-bottom: solid 1px #ccc;
}
nav ul {
	display: flex;
    flex-direction: row;
    justify-content: center;
    list-style: none;
	margin-bottom: 0.5rem;
}
nav li {
    display: block;
    flex: 0 0 15%;
}
nav li a {
    text-decoration: none;
    text-align: center;
}
nav a:hover {
    text-decoration: underline;
}
nav a {
    padding: 1rem;
}

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

#navi {
    display: block !important;
}
}

@media screen and (max-width: 768px){
.head {
	flex-direction: column;
    text-align: left;
    margin-bottom: 20px;
}
.telbox {
	margin-left: 0;
	text-align: center;
}
.head #open,#close  {
    position: absolute;
    top: 28px;
    right: 12px;
    }
nav ul {
	flex-direction: column;
}
@media screen and (max-width: 768px){
nav ul {
	flex-direction: column;
}
	}
nav li {
	padding-top: 0;
	border-bottom: 1px solid #ccc;
	margin-bottom: 0;
}
/* スマホ時はMENUボタンを表示 */
#open {
    display: block;
    background: url(../img/base/button.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
#close  {
    display: block;
    background: url(../img/base/button2.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 50px;
    height: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
}
/* スマホ時はメニューを非表示 */
#navi {
    display: none;
}
}

/*メイン画像
-------------------------------------*/
.mainimg img {
	width: 100vw;
}

/*メインコンテンツ
-------------------------------------*/
main {
    margin: 0rem 0 5rem 0;
}
main p {
    font-size:1.8rem;
}
main img {
	max-width: 680px;
	width: 70%;
	height: auto;
}
@media screen and (max-width: 768px){
	main img {
		max-width: 100%;
		width: 100%;
		height: auto;
	}
}
main h1 {
	text-align: center;
	color: #333;
	font-size: 3.0rem;
	font-weight: 700;
	margin: 6rem 0 3rem 0;
}

main h2 {
	text-align: center;
	color: #550889;
	font-size: 3.0rem;
	font-weight: 700;
	margin: 6rem 0 3rem 0;
}
main h3 {
	text-align: center;
	color: #550889;
	font-size: 3.0rem;
	font-weight: 700;
	margin: 6rem 0 3rem 0;
}
main h4 {
	text-align: center;
	color:#8F1970;
	font-size: 2.2rem;
	font-weight: 700;
	margin: 3rem 0 1rem 0;
}
/*マップ
-------------------------------------*/
iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

.map-container {
    position: relative;
    width: 100%;
	padding-bottom: 56.25%;
    height: 0;
	margin: 0 0 50px 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
@media screen and (max-width: 480px){
.map-container {
	padding-bottom: 120%;
}
}
/*フッター
-------------------------------------*/
footer {
    background-color: #fff;
    padding: 1rem 0;
}
footer h5 {
    border-bottom: 1px solid #ccc;
}
.snsnav {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
	font-size: 3.0rem;
}
.snsnav span {
	padding: 0 1rem  0 1rem ;
}
/*コピーライト
-------------------------------------*/
.copyright {
    text-align: center;
    padding: 1rem 0;
background: linear-gradient( #024fc2 0%, #550889 100%);
    color: #fff;
}
.copyright a {
    color: #fff;
    text-decoration: none;
	display: inline-block;
}

/*ページトップへ戻るボタン
-------------------------------------*/
.page-top {
  /* buttonタグのリセットCSS */
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0;
  appearance: none;

  /* ボタンの装飾 */
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 100;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #115582;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

/* 矢印のスタイル */
.page-top::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-bottom: -6px;
  border-top: solid 3px #fff;
  border-right: solid 3px #fff;
  transform: rotate(-45deg);
}

/* ホバー時のスタイル */
.page-top:hover {
  transform: scale(1.1);
}

/*ナビの電話*/

i.fa-phone-square {
	margin: 10px;
	padding: 5px;
	font-size: 1.5rem;
	background: #000000;
	color: #fff;
}

/*パンくずリスト
-----------------------------------*/
.breadcrumb {
    margin: 0 0 1em 0;
    padding: 0;	
}
.breadcrumb li {
    list-style-type: none;
}
.breadcrumb li a {
    display: inline-block;
    color: #959fa5;
}



/*index.html用
-----------------------------------*/
        /* PC用の画像 */
        .pc-image {
            display: block;
            width: 100%;
            max-width: 860px;
            margin: 0 auto;
        }
        
        /* スマホ用の画像グループ */
        .sp-images {
            display: none;
        }
        
        /* スマホサイズ（560px以下）の時 */
        @media (max-width: 560px) {
            /* PC用画像を非表示 */
            .pc-image {
                display: none;
            }
            
            /* スマホ用画像を表示 */
            .sp-images {
                display: block;
            }
            
            .sp-images img {
                display: block;
                width: 100%;
                margin-bottom: 0px;
            }
        }
        
        /* 全体のコンテナ */
        .rally-guide-container {
            padding: 20px;
        }