/*
Theme Name:theme_rev_1
*/

@charset "UTF-8";

#wpadminbar{
position: fixed !important;
top:0 !important;
left: 0 !important;
width: 100% !important;
}

.admin-bar #header{
    top:32px !important;
}
@media screen and (max-width:782px) {
    .admin-bar #header{
        top:46px !important;
    }  
}




/* ==========================================
   CF7 Contact Form 独自デザイン（下線つき）
   Prefix: .cf7contact-
   他CSSと一切競合しない安全設計
========================================== */

.cf7contact-wrapper {
  font-family: "Noto Sans JP", sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  color: #222;
}

.cf7contact-guide {
  margin-bottom: 30px;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

/* テーブル構造 */
.cf7contact-table {
  width: 100%;
  border-collapse: collapse;
}

/* --- 各行の下線構造 --- */
.cf7contact-table tr {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid #ccc;
  margin-bottom: 8px;
}

/* 左側（ラベル部分） */
.cf7contact-table th {
  flex: 0 0 220px;
  padding: 10px 0;
  font-weight: 700;
  color: #111;
  border-bottom: 1px solid #065f87; /* 左：青下線 */
}
.cf7contact-table th p{
margin-top:1em;
	    text-align: left;
}

/* 右側（入力部分） */
.cf7contact-table td {
  flex: 1;
  padding: 10px 0 15px;
  border-bottom: 1px solid #ccc; /* 右：グレー下線 */
	padding-top:17px !important;
}

/* 入力系 */
.cf7contact-input,
.cf7contact-textarea,
.cf7contact-file {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-bottom: 1px solid transparent;
    background: rgb(242, 242, 242) !important;
  padding: 8px 12px;
  font-size: 15px;
  color: #333;
  transition: all 0.2s ease;
	
}

.cf7contact-file {
    background:#fff !important;	
}

.cf7contact-input:focus,
.cf7contact-textarea:focus {
  outline: none;
  background: #fff;
  border-bottom: 1px solid #065f87;
}

.cf7contact-textarea {
  resize: vertical;
  min-height: 160px;
}

/* 注意文とリスト */
.cf7contact-note {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  margin-bottom: 5px;
}

.cf7contact-list {
  font-size: 14px;
  color: #444;
  padding-left: 20px;
  margin: 0 0 10px 0;
}


/* 送信ボタン */
.cf7contact-action {
  text-align: center;
  margin-top: 40px;
}

.cf7contact-submit {
  background: #0a1e3b;
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 16px;
  transition: opacity 0.2s ease;
}


.cf7contact-submit:hover {
  opacity: 0.9;
}
body.theme_rev_1 .cf7contact-agreement {
    display: flex
;
    flex-wrap: wrap;
    align-items: center;
    background: #f6f7ff;
    border: 1px solid #ccc;
    margin-top: 24px;
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
	    gap: 5%;
}
body.theme_rev_1 .cf7contact-agreement-head{
	font-weight:bold;
	    margin-bottom: 0;
}
body.theme_rev_1 .cf7contact-agreement-box{
	    margin-bottom: 0;
}
body.theme_rev_1 .cf7contact-agreement-note{
	    margin-bottom: 0;
}
body.theme_rev_1 .cf7contact-list{
	margin-bottom: 40px;
	    list-style: none;
}
.wpcf7-not-valid-tip{
    display: block !important;
    position: static !important;
}
body.theme_rev_1 .wpcf7-submit{
    background: #1d5198;
    display: block;
    max-width: 230px;
    padding-top: 15px;
    width: 100%;
    margin: 30px auto;
    padding-bottom: 16px;
}
body.theme_rev_1 .wpcf7-previous {
    color: #fff;
    background: #1d5198;
    display: block;
    max-width: 230px;
    padding-top: 15px;
    width: 100%;
    margin: 30px auto;
    padding-bottom: 16px;
    font-size: 16px;
    border: none;
    border-radius: 3px;
    font-weight: bold;
}
.wpcf7-response-output {
    text-align: center;
    border: 1px solid #000 !important;
    max-width: fit-content;
    margin: 0 auto 30px;
}
body.theme_rev_1 .cf7contact-agreement-note a{
	color:#1d5198;
}
/* ==========================================
   レスポンシブ対応（スマホ縦並び）
========================================== */
@media (max-width: 768px) {
  .cf7contact-table tr {
    display: block;
    border-bottom: none;
    margin-bottom: 25px;
  }

  .cf7contact-table th {
    width: 100%;
    border-bottom: 2px solid #065f87;
    margin-bottom: 6px;
    padding-bottom: 4px;
	  display: block;
  }


  .cf7contact-table td {
    width: 100%;
    border-bottom: none;
    padding-bottom: 12px;
	  display: block;
  }

  .cf7contact-input,
  .cf7contact-textarea {
    font-size: 16px;
  }

  .cf7contact-wrapper {
    padding: 30px 15px;
  }

  .cf7contact-submit {
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
  }
}