/*---------------------------------------------------------
//            モダンなフォームスタイル
//            2025-09-12 改  	M.Maekawa
//--------------------------------------------------------*/

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 確認画面専用の背景 */
body:has(.containerbody.link .check) {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 50%, #00b894 100%);
    background-attachment: fixed;
}

/* メインコンテナ */
#wrap {
    background: transparent;
    min-height: 100vh;
}

#container {
    background: transparent;
}

#contents {
    background: transparent;
}

.main {
    background: transparent;
}

.mainTit {
    text-align: left;
    margin-bottom: 20px;
}

.mainTit h2 {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.mainBox {
    background: transparent;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.mainDt {
    background: transparent;
}

.mainBt {
    text-align: center;
    margin-top: 0;
}

.mainBt img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* レガシー要素のモダン化 */
body.link .container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 40px;
    margin: 30px auto;
    max-width: 80%;
    width: 80%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* form.cgiの固定幅テーブルを上書き */
body.link table[width="700"] {
    width: 80% !important;
    max-width: 80% !important;
}

body.link td[width="662"] {
    width: auto !important;
}

/* より強力な上書き */
/* グローバルな table 一括上書きは撤去 */
/* グローバルな td 一括上書きは撤去 */
/* form.cgiの外側テーブルの背景を美しく変更 */
body.link table[bgcolor="#2564ab"] {
    background: linear-gradient(135deg, rgba(116, 185, 255, 0.1) 0%, rgba(9, 132, 227, 0.1) 50%, rgba(0, 184, 148, 0.1) 100%) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 25px !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

body.link td[bgcolor="white"] {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    margin: 10px !important;
}

body.link .check {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

body.link .close {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ラベルスタイル */
.label_name {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: left;
    margin: 0;
}

.label_text {
    background: rgba(220, 220, 220, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    word-wrap: break-word;
    white-space: pre-wrap;
    text-align: left;
}

.img {
    vertical-align: middle;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 文字数カウンター */
body.link #charCount {
    text-align: right;
    color: #e74c3c;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* 確認テーブル */
body.link #confirm {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

body.link body.link #confirm .Key_Bg_Color {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.3);
}

body.link body.link #confirm .Key_Text {
    text-align: center;
    vertical-align: top;
    border-radius: 15px 0 0 15px;
    padding: 30px 0 0 30px;
    font-weight: 600;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.link body.link #confirm .Key_Image {
    border-radius: 8px;
    vertical-align: middle;
    width: auto;
    height: 25px;
    margin: 0 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.link body.link #confirm .Key_Imput_td {
    border-radius: 0 15px 15px 0;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 184, 148, 0.1);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.1);
}

body.link body.link #confirm ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

body.link body.link #confirm .Key_Padding {
    padding: 0;
}

body.link body.link #confirm li {
    list-style: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.link body.link body.link #confirm .Key_Image_Body {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    display: block;
    border: 3px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

body.link body.link body.link body.link #confirm .Key_Image_Body:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body.link body.link body.link body.link #confirm .Key_Image_Change_a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

body.link body.link body.link body.link body.link #confirm .Key_Image_Change_a:hover {
    background: linear-gradient(135deg, #ff5252, #d63031);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    border-color: rgba(255, 107, 107, 0.5);
}

body.link body.link body.link #confirm .Key_Image_Change {
    width: auto;
    height: 20px;
    vertical-align: middle;
    border-radius: 5px;
}

body.link body.link body.link body.link #confirm .Key_Image_Change_Text {
    font-size: 0.9rem;
    font-weight: 600;
}

body.link body.link #confirm .Key_Input {
    font-size: 1rem;
    font-weight: 600;
    padding: 40px 0 35px 0;
    vertical-align: middle;
    color: #333;
    background: linear-gradient(135deg, rgba(0, 184, 148, 0.05), rgba(0, 160, 133, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(0, 184, 148, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.1);
}

body.link body.link #confirm .Key_Input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

body.link body.link #confirm .Key_Form_Input {
    width: 100%;
    max-width: 150px;
    padding: 15px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    letter-spacing: 0.1em;
}

body.link body.link body.link #confirm .Key_Form_Input:focus {
    outline: none;
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

body.link body.link #confirm .Input {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

body.link body.link #confirm .field {
    margin: 30px auto 0;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

body.link body.link #confirm .Mail {
    width: auto;
    min-width: 150px;
    text-align: center;
}

/* モダンなボタンスタイル */
body.link body.link .bgcolor_submit, body.link .bgcolor_reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

body.link body.link .bgcolor_submit::before, body.link .bgcolor_reset::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

body.link body.link body.link .bgcolor_submit:hover::before, body.link body.link .bgcolor_reset:hover::before {
    left: 100%;
}

body.link .bgcolor_submit {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

body.link body.link .bgcolor_submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

body.link .bgcolor_reset {
    background: linear-gradient(135deg, #636e72, #2d3436);
    color: white;
}

body.link body.link .bgcolor_reset:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 110, 114, 0.4);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .mainTit h2 {
        font-size: 1.6rem;
    }
    
    .mainBox {
        padding: 0 15px;
    }
    
    .container {
        margin: 20px;
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .label_name {
        font-size: 1rem;
        padding: 12px 15px;
    }
    
    .label_text {
        padding: 20px 15px;
        font-size: 0.95rem;
    }
    
    body.link body.link #confirm .field {
        flex-direction: column;
        align-items: center;
    }
    
    body.link body.link #confirm .Mail {
        width: 100%;
        max-width: 250px;
    }
    
    body.link body.link #confirm ul {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .mainTit h2 {
        font-size: 1.4rem;
    }
    
    .container {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .label_name {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .label_text {
        padding: 15px 12px;
        font-size: 0.9rem;
    }
    
    body.link body.link #confirm .Key_Text {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    body.link body.link #confirm .Key_Input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    body.link body.link .bgcolor_submit, body.link .bgcolor_reset {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: 140px;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeInUp 0.8s ease-out;
}

.label_name, .label_text {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.label_name {
    animation-delay: 0.1s;
}

.label_text {
    animation-delay: 0.2s;
}

/* ホバーエフェクト */
body.link body.link body.link body.link body.link #confirm .Key_Image_Change_a:hover,
.label_name:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 高コントラストモード */
@media (prefers-contrast: high) {
    .container {
        border: 3px solid #000;
    }
    
    .label_name {
        border: 2px solid #000;
    }
    
    body.link body.link #confirm .Key_Input {
        border-width: 3px;
    }
}

/* エラー・警告表示のスタイル */
body.link body:has(body.link table[width="600"]) {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    background-attachment: fixed;
}

/* エラー表示のテーブル */
body.link table[width="600"] {
    width: 80% !important;
    max-width: 800px !important;
    margin: 50px auto !important;
    border-radius: 25px !important;
    overflow: hidden !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

/* エラーヘッダー */
body.link td[bgcolor="black"] {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    border: none !important;
    padding: 20px !important;
}

body.link body.link td[bgcolor="black"] font {
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 警告ヘッダー */
body.link td[bgcolor="red"] {
    background: linear-gradient(135deg, #e74c3c, #c0392b) !important;
    border: none !important;
    padding: 20px !important;
}

body.link body.link td[bgcolor="red"] font {
    font-size: 2rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* エラー・警告のコンテンツエリア */
body.link td[bgcolor="#e4e4e4"] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95)) !important;
    border: none !important;
    padding: 0 !important;
}

/* 内側のテーブル */
body.link table[width="550"] {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

/* エラーメッセージエリア */
body.link td[style*="padding:20px"] {
    padding: 40px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
    color: #333 !important;
}

/* エラーメッセージ内の強調テキスト */
body.link body.link td[style*="padding:20px"] font[color="red"] {
    color: #e74c3c !important;
    font-weight: 700 !important;
}

/* 印刷用スタイル */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .container {
        background: white;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .label_name {
        background: #f0f0f0;
        color: black;
    }
    
    .label_text {
        background: white;
        color: black;
    }
}
/* ---------------------  confirm table ------------------- */
#confirm {
	width: 800px;
	margin: auto;
	padding-bottom: 20px;
    max-width: 600px;
    margin: 0 auto;
}
#confirm .Key_Bg_Color {
	background-color: #ef9b9b;
}
#confirm .Key_Text {
	text-align: right;
	vertical-align: middle;
	border-radius: 5px;
	width: 150px;
}
#confirm .Key_Image {
	border-radius: 5px;
	vertical-align: -4px;
	width: auto;
	height: 20px;
	margin: 0 7px 0 5px;
}
#confirm .Key_Imput_td {
	border-radius: 5px;
}
#confirm ul {
	padding: auto;
	display: flex;
}
#confirm .Key_Padding {
	padding: 0px;
}
#confirm li {
	list-style: none;
	margin-right:10px;
	align-items: center;
}
#confirm .Key_Image_Body {
	width: 200px;
	height: 40px;
	border-radius: 5px;
}
#confirm .Key_Image_Change_a {
	text-decoration: none;
	color: black;
	vertical-align: -10px;
}
#confirm .Key_Image_Change {
	width: auto;
	height: 30px;
	margin-right: 8px;
	vertical-align: -10px;
}
#confirm .Key_Image_Change_Text {
	font-size: 14px;
 	font-weight: bold;
}
#confirm .Key_Input {
	font-size: 14px;
 	font-weight: bold;
	padding: 4px 10px 20px 40px;
	vertical-align: -2px;
}
#confirm .Key_Form_Input {
	width: 100px;
}
#confirm .Input {
	display: flex;
}
#confirm .field {
	margin: auto;
	width: 60%;
	display: flex;
	justify-content: space-around;
}
#confirm .Mail {
	width: 180px;
	text-align: center;
	margin-top: 30px;
}
/* -------------------------------------------------------- */
