@charset "utf-8";

/* ==========================================================
   Inclusive Toyokawa - Mail Form Custom CSS
   ========================================================== */

/* 1. Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fefefe;
    background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
    background-size: 24px 24px; /* Subtle dot pattern from the site */
    color: #333;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

/* Container */
#wrapper {
    width: 95%;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-top: 8px solid;
    border-image: linear-gradient(to right, #ff6b6b, #feca57, #48dbfb, #1dd1a1, #5f27cd) 1; /* Rainbow accent */
}

#main {
    padding: 40px 30px;
}

/* Typography */
.section__ttl {
    font-size: 1.5rem;
    font-weight: 700;
    color: #444;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section__ttl::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #ff6600; /* Original brand color from user's CSS */
    border-radius: 2px;
}

#txt_explain {
    background: #fff8f0;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    color: #666;
    border-left: 4px solid #ff6600;
}

.red_txt {
    color: #e63946;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* Form Table Design */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table th {
    width: 30%;
    background: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
    color: #555;
    vertical-align: middle;
}

.table td {
    background: #fff;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-left: none;
    border-radius: 0 10px 10px 0;
    vertical-align: middle;
}

/* Xserver generated inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: inherit;
    background-color: #fcfcfc;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #48dbfb;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(72, 219, 251, 0.1);
}

textarea {
    min-height: 120px;
}

/* Buttons */
.button_box {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

input[type="submit"], 
.btn-style {
    appearance: none;
    border: none;
    background: #ff6600;
    color: #fff;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.2);
}

input[type="submit"]:hover {
    background: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.3);
}

input[name="submit_button"][value="戻る"] {
    background: #94a3b8;
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.2);
}

input[name="submit_button"][value="戻る"]:hover {
    background: #64748b;
}

.button_box a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.button_box a:hover {
    color: #334155;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #wrapper {
        margin: 20px auto;
        border-radius: 0;
    }

    #main {
        padding: 25px 15px;
    }

    .table th, .table td {
        display: block;
        width: 100%;
    }

    .table th {
        border-radius: 10px 10px 0 0;
        padding-bottom: 5px;
        background: transparent;
    }

    .table td {
        border-radius: 0 0 10px 10px;
        border-left: 1px solid #eee;
        padding-top: 5px;
        margin-bottom: 10px;
    }

    .button_box {
        flex-direction: column;
        align-items: center;
    }

    input[type="submit"] {
        width: 100%;
    }
}

/* Success icon for thanks page */
.success-icon {
    font-size: 4rem;
    color: #1dd1a1;
    text-align: center;
    margin-bottom: 20px;
}

.thanks-message {
    text-align: center;
    color: #555;
}