@charset "utf-8";

/* =========================================
   ページ全体デザイン (Base & Layout)
   ========================================= */

/* --- 基本リセット --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.5;
    background-color: #fff; /* 背景を少しグレーにしてコンテンツを際立たせる */
    -webkit-text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover, a:active {
    opacity: 0.8;
}





/* タップ時のアクション */
.tellButton:active {
    transform: scale(0.98);
    box-shadow: 0 2px 5px rgba(235, 97, 0, 0.3);
}

/* ステップ画像 */
.formStepImage {
    text-align: center;
    margin: 25px 0;
    padding: 0 10px;
}

/* --- タイトル周り --- */
#contents h2.form-title {
    font-size: 22px;
    text-align: center;
    color: #333;
    margin: 30px 0 15px;
    padding: 0 15px;
    line-height: 1.4;
    border-left: none; /* 既存スタイルリセット */
}
/* タイトル下の装飾線 */
#contents h2.form-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #eb6100;
    margin: 10px auto 0;
    border-radius: 2px;
}

#contents h2.form-title + p {
    text-align: center;
    font-size: 14px;
    color: #666;
    background-color: #f5f5f5;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 auto 30px; /* 中央寄せ */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}


/* =========================================
   スマホ最適化フォームCSS (sp-optimized-form)
   ========================================= */

/* ボックスサイズの計算を統一 */
.sp-optimized-form * {
    box-sizing: border-box;
}

/* フォーム全体のコンテナ */
.sp-optimized-form {
    width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
}

/* 定義リスト（dl, dt, dd）のリセットとレイアウト */
.sp-optimized-form dl {
    margin: 0;
    padding: 0;
}

/* 項目名 (dt) */
.sp-optimized-form dt {
    display: block;
    font-weight: bold;
    font-size: 15px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

/* 必須・任意バッジ */
.sp-optimized-form dt.require::after {
    content: '必須';
    display: inline-block;
    background-color: #ff5252;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

.sp-optimized-form dt.any::after {
    content: '任意';
    display: inline-block;
    background-color: #999;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
    font-weight: normal;
}

/* 入力エリア (dd) */
.sp-optimized-form dd {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
}

/* --- 入力フィールド共通 --- */
.sp-optimized-form input[type="text"],
.sp-optimized-form input[type="tel"],
.sp-optimized-form input[type="email"],
.sp-optimized-form textarea {
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    font-size: 16px; /* ズーム防止 */
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s;
}

.sp-optimized-form select {
    width: 50%;
    height: 50px;
    padding: 10px 15px;
    font-size: 16px; /* ズーム防止 */
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.3s;
}


.sp-optimized-form textarea {
    height: 120px;
    line-height: 1.5;
}

/* フォーカス時 */
.sp-optimized-form input:focus,
.sp-optimized-form select:focus,
.sp-optimized-form textarea:focus {
    outline: none;
    border-color: #eb6100;
    box-shadow: 0 0 0 3px rgba(235, 97, 0, 0.15);
}

/* セレクトボックスの矢印装飾 */
.select-wrapper {
    position: relative;
}
.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    pointer-events: none;
}

/* --- ラジオボタンのボタン化 --- */

/* 元のラジオボタンを隠す */
.radio-group-vertical input[type="radio"],
.radio-group-horizontal input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 縦並びラジオ（お申し込み内容） */
.radio-group-vertical label {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}
.radio-group-vertical input[type="radio"]:checked + label {
    background-color: #fff5e6;
    border-color: #eb6100;
    color: #eb6100;
}

/* 横並びラジオ（性別） */
.radio-group-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
.radio-group-horizontal label {
    flex: 1;
    padding: 12px;
    background-color: #f8f8f8;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
}
.radio-group-horizontal input[type="radio"]:checked + label {
    background-color: #fff5e6;
    border-color: #eb6100;
    color: #eb6100;
}

/* --- チェックボックス（お悩み） --- */
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    margin-top: 4px;
    margin-right: 10px;
    transform: scale(1.3); /* チェックボックスを大きく */
}
.checkbox-group span {
    font-size: 14px;
    line-height: 1.5;
}

/* チェックされた時の強調（任意） */
.checkbox-group input:checked + span {
    font-weight: bold;
    color: #eb6100;
}

/* --- 送信ボタン --- */
.formFooter {
    margin-top: 40px;
    text-align: center;
}
.button-submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    height: 60px;
    background: linear-gradient(135deg, #ff9f43 0%, #eb6100 100%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(235, 97, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s;
}
.button-submit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 5px rgba(235, 97, 0, 0.3);
}

/* --- その他調整 --- */
.note {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.note-inline {
    font-size: 12px;
    color: #666;
    font-weight: normal;
}


/* =========================================
   完了画面（サンクスページ）用CSS
   ========================================= */

/* コンテナ設定 */
.lp-complete-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;
}

/* ステップ画像エリア */
.lp-step-image {
    text-align: center;
    margin-bottom: 30px;
}

/* ヘッダーエリア（完了タイトル） */
.lp-complete-header {
    text-align: center;
    margin-bottom: 40px;
}

.lp-complete-title {
    font-size: 26px;
    font-weight: bold;
    color: #eb6100; /* ブランドカラーのオレンジ */
    margin: 0 0 15px 0;
}

/* チェックマークアイコン（CSSで疑似的に作成） */
.lp-complete-title::before {
    content: '✔'; /* 簡易的なチェックマーク */
    display: block;
    font-size: 40px;
    color: #eb6100;
    margin-bottom: 10px;
    line-height: 1;
}

.lp-complete-sub {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* メッセージボックス */
.lp-message-box {
    background-color: #f8f9fa; /* 薄いグレーの背景 */
    border-radius: 10px;
    padding: 25px 20px;
    margin-bottom: 25px;
    border-left: 5px solid #eb6100; /* 左側にアクセントライン */
}

.lp-message-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 15px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.lp-message-text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin: 0;
}

.lp-message-text strong {
    color: #eb6100;
    font-weight: bold;
    background: linear-gradient(transparent 60%, #ffe0b2 60%); /* マーカー風装飾 */
}


/* トップへ戻るボタン */

.lp-complete-footer {
    text-align: center;
}


.lp-complete-home {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", sans-serif;
    color: #333;
    background-color: #fff;
    box-sizing: border-box;    
}

.lp-btn-home {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 250px;
    height: 25px;
    background-color: #fff;
    color: #eb6100;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid #eb6100;
    border-radius: 27px;
    text-decoration: none;
    transition: all 0.3s;
}

.lp-btn-home:active {
    background-color: #eb6100;
    color: #fff;
    transform: translateY(2px);
}        


/*---------------------------------------------------
	Form
---------------------------------------------------*/

.form { padding: 20px 20px 10px; background: #E0F4F8; width: 580px; overflow: hidden; }
.form p { margin: 0 0 10px 0; float:left; clear:both; display: block; }
.form label { font: bold 0.9em Helvetica, Arial, sans-serif; color: #0077AA; padding: 0 0 0 5px;}
.form .w { float: left; clear: both; padding: 5px 5px 0; background: #D7EBEF; font: bold 0.8em Helvetica, Arial, sans-serif; color: #333; overflow: hidden; }
.form .w span { padding: 0 0 5px; float:left; }
.form .input { border: 1px solid #A5C2C8; line-height: 1.2em; padding: 5px 26px 5px 5px; margin: 0 0 5px 0; width: 537px; font: bold 1.2em Helvetiva, Arial, sans-serif; }
.form .w label { padding:0; }

/* Validation */
.w.error { background-color: #EFD8D7; }
.w.error .input { border-color: #C8A5A5; background: #fff url('gfx/icon_error.png') no-repeat right center; }

.w.valid { background-color: #A4EFAE; }
.w.valid .input { border-color: #A5C8A6; background: #fff url('gfx/icon_valid.png') no-repeat right center; }
.w.valid span { display: none; }

.validationMessage{
	display: block;
	margin-top: 5px;
	color: #F00;
	font-size: 12px;
	font-weight: bold;
}


/*---------------------------------------------------
	Clearfix
---------------------------------------------------*/

.group:after{
	content: ".";
	display: block;
	clear: both;
	height: 0;
	font-size: 0.1em;
	line-height: 0;
	visibility: hidden;
}

.group{
	display: inline-block;
}

.group{
	display: block;
}