@charset "UTF-8";
/* コンタクト用CSS style_contact.css*/

body {
    font-family: Arial, sans-serif;
	overflow: auto;
}



#contact {
position: absolute;/* fixedにするとスクロールできる、relativeにするとスクロールできない、absoluteにすると */
width: 100%;
height: 100%; /*　autoにするとスクロールできない */
overflow-x: hidden;/*　x軸方向にはみ出たコンテンツを非表示にする　*/
overflow-y: scroll;
background-color: #4A4A4A;
	 padding-bottom: 50px;
}



.contact_text{
position: relative;
color:white;
margin: 20px auto ;
max-width: 800px;
overflow-x: hidden;/*　x軸方向にはみ出たコンテンツを非表示にする　*/
padding-left:10px ;
padding-right: 10px;
}

.contact_text h2{
margin-top: 100px; /* 上に20pxのマージンを追加 */
margin-bottom: 20px; /* 下に20pxのマージンを追加 */
}


.contact_text h3{
margin-top: 20px; /* 上に20pxのマージンを追加 */
margin-bottom: 20px; /* 下に20pxのマージンを追加 */
}


.contact_text p {
	margin-bottom: 20px; /* 下に20pxのマージンを追加 */
}



/* リンク関係 */

.link-wrapper {
  gap: 20px; /* ブロック間の間隔を開ける */
  margin-bottom: 20px;
}

/* 画像の右にテキスト */
.text-wrapper {
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}


.image-text-wrapper {
  display: flex;/*画像とテキストを横並びにする*/
  align-items: center;
}

.link-wrapper h2{
	margin-top: 100px;
	color: white;
}

.link-wrapper h3{
}


.link-item {
	margin-bottom: 40px;
    width: 100%;
}

.link-item img{
    width: 100px;
}


.link-item ul {
display: flex;/*SNSなどのリンクアイコンを横並びにする*/
list-style: none;
padding: 0;
}

.link-item li {
	margin-top: 10px;
	margin-right:15px;

}


.link-item ul li a {
    text-decoration: none;
    color: #C4C4C4;
}


.link-item li img{
	width: auto;
	height: 20px;
}



/* フォーム関係 */

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #c3c3c3;
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  margin: 100px auto;
  padding-bottom: 40px;
  margin-bottom: 20px; /* 下に20pxのマージンを追加 */
}


form h2{
	padding: 0;
	margin-top: 0;
	margin-bottom: 20px;
}


form label {
    margin: 10px 0;
}

form input[type="text"],
form input[type="email"],
form textarea {
    width: 80%;
    padding: 10px;
    border: 1px solid #808080;
    border-radius: 5px;
}

form textarea {
    height: 200px;
}

form input[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
	
}


/* アイコンがクリックされたら薄くなる */

.dimmed {
 opacity: 0.2;
transition: opacity 0.5s;
}


/* 問合せ後メッセージ表示に関するCSS */
.message-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
}

.success-message,
.error-message {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 10px;
}

.success-message {
  color: #4CAF50;
}

.error-message {
  color: #F44336;
}

.message-image {
  max-width: 200px;
  height: auto;
  margin-bottom: 10px;
}

.back-link {
  font-size: 1em;
  color: #2196F3;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}
