@charset "UTF-8";

/* ========================================================================== */
/* SUB_PAGE_HEADER */
/* ========================================================================== */
.sub_page_header { background-image: url("../images/works/sub_header_bg.jpg"); }


/* ========================================================================== */
/* CONTACT_INNER */
/* ========================================================================== */
.contact_inner {
   max-width: 960px;
   width: calc(100% - 80px);
   margin: 0 auto;
}

.contact_inner section:not(:first-child) { margin-top: 70px; }

.contact_inner h2 {
   margin-bottom: 10px;
   padding-bottom: 10px;
   border-bottom: 1px solid #232D3B;
   color: #232D3B;
   font-size: 22px;
   line-height: 1.77;
}

.contact_inner .lead {
   font-size: 16px;
   line-height: 1.77;
}

.dial_number {
	margin-top: 20px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.3;
}

.dial_number span {
   font-family: 'Roboto', 'Lato', sans-serif;
	font-size: 40px;
   font-weight: 800;
}



/* ========================================================================== */
/* TABLE STRUCTURE (入力フォーム・確認画面の共通テーブル) */
/* ========================================================================== */
.contact_table {
   width: 100%;
   margin-top: 25px;
   border-collapse: collapse;
   border-top: 2px solid #232D3B; /* 上部に重厚感のあるネイビーの太線 */
   margin-bottom: 20px;
   border-left: none; /* reset.cssの枠線を一度リセット */
}

.contact_table th,
.contact_table td {
   padding: 24px 30px;
   font-size: 15px;
   border-bottom: 1px solid #D9DCDF;
   border-right: none; /* reset.cssの枠線をリセットし、モダンな横線のみのデザインに */
   vertical-align: middle;
}

.contact_table th {
   width: 260px;
   background-color: #F8F9FA;
   color: #232D3B;
   font-weight: 700;
   text-align: left;
}

.contact_table td {
   background-color: #FFF;
}


/* ========================================================================== */
/* FORM INPUT ELEMENTS (各入力パーツのデザイン) */
/* ========================================================================== */
.input_text {
   height: 44px;
   padding: 0 12px;
   border: 1px solid #CCC;
   border-radius: 4px;
   font-size: 15px;
   transition: border-color 0.25s ease, box-shadow 0.25s ease;
   box-sizing: border-box;
}

.input_text:focus,
.input_textarea:focus,
.contact_table select:focus {
   border-color: #FA5B22; /* フォーカス時にオレンジに光らせる */
   box-shadow: 0 0 0 3px rgba(250, 91, 34, 0.15);
   outline: none;
}

.full_w { width: 100%; }
.half_w { width: 50%; max-width: 320px; }
.zip_w { width: 100px; }

/* お問い合わせ内容（テキストエリア） */
.input_textarea {
   width: 100%;
   height: 200px;
   padding: 12px;
   border: 1px solid #CCC;
   border-radius: 4px;
   font-size: 15px;
   resize: vertical;
   box-sizing: border-box;
   line-height: 1.5;
}

/* 都道府県セレクトボックス */
.contact_table select {
   height: 44px;
   padding: 0 35px 0 12px;
   border: 1px solid #CCC;
   border-radius: 4px;
   font-size: 15px;
   background-color: #FFF;
   cursor: pointer;
}

.contact_table td.flex_box {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.contact_table .add_sub_flex {
   display: flex;
   flex-direction: row;
   align-items: center;
   gap: 15px;
}

.contact_table label {
   flex-shrink: 0;
   width: 120px;
   padding-right: 1em;
   font-weight: 500;
}


/* ========================================================================== */
/* NOTICES & ERRORS (エラー・警告メッセージボックス) */
/* ========================================================================== */
.mobile_mail_notice {
   padding: 20px 20px 20px 15px;
   background-color: #FFF3CD;
   border: 1px solid #FFEBAA;
   border-radius: 4px;
   color: #856404;
   font-size: 14px;
}

.mobile_mail_notice strong {
   display: block;
   margin-bottom: 3px;
   font-weight: 600;
}

.mobile_mail_notice p { margin-left: 1em; }

.error_summary_box {
   margin: 25px 0 30px;
   padding: 15px 20px;
   background-color: #F8D7DA;
   border: 1px solid #F5C6CB;
   border-radius: 4px;
   color: #721C24;
   scroll-margin-top: 140px;
}
.error_list { 
   margin: 0; 
   padding-left: 0; 
}
.error_list li { 
   margin-bottom: 6px; 
   font-size: 14px; 
   font-weight: 700; 
   list-style-position: inside; /* common.cssのdiscスタイルを綺麗に収める */
}
.error_list li:last-child { margin-bottom: 0; }


/* ========================================================================== */
/* BUTTONS DESIGN (送信・確認・戻るボタン各種) */
/* ========================================================================== */
.form_submit_area {
   display: flex;
   justify-content: center;
   gap: 20px;
}

.form_btn_submit {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 260px;
   height: 56px;
   font-size: 16px;
   font-weight: 700;
   border-radius: 4px;
   border: none;
   cursor: pointer;
   transition: all 0.3s ease !important;
}

.form_btn_submit:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   transition: all 0.3s ease;   
}

.btn_primary {
   background-color: #FA5B22;
   color: #FFF;
}

.btn_secondary {
   background-color: #E3E4E4;
   color: #232D3B;
}

.form_btn_submit.btn_primary:hover { background-color: #232D3B; }

.form_btn_submit.btn_secondary:hover { background-color: #232D3B; color: #FFF; }

.btn_back_home a {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   min-width: 220px;
   height: 50px;
   background-color: #E3E4E4;
   color: #232D3B;
   border-radius: 4px;
   font-weight: 700;
   transition: all 0.3s ease !important;
}

.btn_back_home a:hover { background-color: #232D3B; color: #FFF; }


/* ========================================================================== */
/* COMPLETE DESIGN (送信完了・送信失敗画面) */
/* ========================================================================== */
.comp_flex {
   display: flex;
   flex-direction: column;
   gap: 40px;
}

.comp_flex .lead {
   font-size: 18px;
   font-weight: 600;
}


/* ========================================================================== */
/* PRIVACY AGREE ZONE (個人情報の取り扱い同意) */
/* ========================================================================== */
.privacy_agree_zone {
   margin: 40px 0 20px;
   text-align: center;
}

.privacy_agree_zone p {
   margin-bottom: 12px;
   font-size: 14px;  
}

.privacy_agree_zone p a {
   color: #FA5B22;
   font-weight: bold;
   text-decoration: underline;
}

.privacy_agree_zone label {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-size: 16px;
   font-weight: bold;
   cursor: pointer;  
}

.privacy_agree_zone input#agreeCheckbox {
   width: 18px;
   height: 18px;
   cursor: pointer;
}




/* ========================================================================== */
/* RESPONSIVE DESIGN (スマートフォン・タブレット対応) */
/* ========================================================================== */

/* -------------------------------------------------------------
   【タブレットサイズ（1024px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 1024px) {
   /* .contact_inner は既存の設定を維持 */
   .contact_inner {
      width: calc(100% - 40px);
      margin: 0 auto;
   }

   /* テーブルの左側（見出し列）の幅を少し縮めて入力エリアを広く確保 */
   .contact_table th {
      width: 220px;
      padding: 20px;
   }

   .contact_table td {
      padding: 20px;
   }
}


/* -------------------------------------------------------------
   【スマートフォンサイズ（768px以下）】
   ------------------------------------------------------------- */
@media screen and (max-width: 768px) {
   /* .contact_inner は既存の設定を維持 */
   .contact_inner {
      width: calc(100% - 30px);
      margin: 0 auto;
   }

   .contact_inner section:not(:first-child) {
      margin-top: 40px; /* セクション間の余白をスマホ向けに調整 */
   }

   .contact_inner h2 {
      font-size: 18px;
      padding-bottom: 8px;
   }

   .contact_inner .lead {
      font-size: 14px;
   }
   
   .dial_number {
      font-size: 15px;
      margin-top: 15px;
   }

   .dial_number span {
      font-size: 28px;
   }

   /* テーブル形式を完全に解除し、スマホ向けの縦並び（ブロック）にする */
   .contact_table, 
   .contact_table tbody, 
   .contact_table tr, 
   .contact_table th, 
   .contact_table td {
      display: block;
      width: 100% !important;
      box-sizing: border-box;
   }
   
   .contact_table { 
      border-top: 2px solid #232D3B; 
      border-bottom: none;
      margin-top: 15px;
   }
   
   .contact_table tr {
      border-bottom: 1px solid #D9DCDF;
      padding: 15px 0;
   }

   .contact_table th {
      background: transparent;
      padding: 0 0 8px 0;
      border-bottom: none;
      font-size: 14px;
   }

   .contact_table td {
      padding: 0;
      border-bottom: none;
   }
   
   /* 各種入力コントロールをスマホ幅100%に広げる */
   .half_w {
      width: 100%;
      max-width: 100%;
   }

   .input_textarea {
      height: 160px; /* スマホ用に少し高さをコンパクトに */
   }
   
   /* 所在地（郵便番号・都道府県など）のレイアウト調整 */
   .contact_table td.flex_box {
      gap: 12px;
   }

   /* 所在地の中の各行の基本設定 */
   .contact_table .add_sub_flex {
      flex-direction: column; /* 基本は縦並び（都道府県や住所など） */
      align-items: flex-start;
      gap: 4px;
   }

   /* ★【追加】郵便番号の行だけはスマホでも横並びをキープ */
   .contact_table .add_sub_flex:has(input[name="zip1"]) {
      flex-direction: row;    /* 横並びにする */
      align-items: center;    /* 上下中央揃え */
      flex-wrap: wrap;        /* 万が一の崩れ防止 */
      gap: 8px;               /* 各パーツの間の隙間 */
   }

   /* 郵便番号行のラベルだけは横並び用に幅を固定しない */
   .contact_table .add_sub_flex:has(input[name="zip1"]) label {
      width: auto;
      margin-right: 4px;
   }

   .contact_table label {
      width: 100%;
      padding-right: 0;
      font-size: 13px;
      color: #666;
   }

   /* 都道府県セレクトをスマホ幅いっぱいに */
   .contact_table select {
      width: 100%;
   }
   
   .error_summary_box { scroll-margin-top: 100px; }

   /* ボタンエリアを縦に並べる（スマホでは「修正する」が下、「確認/送信」が上になる押しやすい設計） */
   .form_submit_area {
      flex-direction: column;
      gap: 12px;
      margin-top: 25px;
   }
   
   .form_btn_submit {
      width: 100%;
      min-width: 100%;
      height: 52px;
      font-size: 15px;
   }

   /* 送信完了・失敗画面の調整 */
   .comp_flex {
      gap: 25px;
   }

   .comp_flex .lead {
      font-size: 16px;
   }

   .btn_back_home a {
      width: 100%;
      min-width: 100%;
      height: 48px;
   }


   .privacy_agree_zone {
      margin: 30px 0 15px; /* スマホ向けに上下の余白を少しスリムに */
      padding: 0 10px;    /* 画面端に文字がぴったりくっつくのを防止 */
   }

   .privacy_agree_zone p {
      font-size: 13px;    /* 文字サイズを14pxから13pxに下げてすっきり見せる */
      line-height: 1.6;   /* 折り返したときの行間を適切に広げる */
      margin-bottom: 10px;
      text-align: justify;
   }

   /* スマホでは横幅が狭く<br>タグの位置で不自然にちぎれるため、一時的に無効化して自動折返しに任せる */
   .privacy_agree_zone p br {
      display: none;
   }

   .privacy_agree_zone label {
      font-size: 14px;    /* チェックボックスの文字も16pxから14pxに最適化 */
      gap: 6px;           /* アイコンと文字のすき間をわずかにタイトに */
   }

   .privacy_agree_zone input#agreeCheckbox {
      width: 16px;        /* 文字サイズに合わせてチェックボックス自体も少しコンパクトに */
      height: 16px;
   }
}
