/*
Theme Name: Twenty Twenty-Three
Theme URI: https://wordpress.org/themes/twentytwentythree
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1. With a clean, blank base as a starting point, this default theme includes ten diverse style variations created by members of the WordPress community. Whether you want to build a complex or incredibly simple website, you can do it quickly and intuitively through the bundled styles or dive into creation and full customization yourself.
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 5.6
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Text Domain: twentytwentythree
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* お問い合わせフォームのスタイル */
.contact-form-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}


.contact-intro {
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
}

.contact-intro p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-intro .note {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 2rem;
}

.form-group.radio-group-container {
    align-items: flex-start;
}

.form-group label {
    min-width: 220px;
    flex-shrink: 0;
    font-weight: bold;
    color: #333;
    padding-top: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
}

.required {
    color: #e74c3c;
    font-weight: normal;
    margin-left: 4px;
}

.form-input-wrapper {
    flex: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group input,
.form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.8rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
    line-height: 1.4;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d8f3f;
    box-shadow: 0 0 0 2px rgba(45, 143, 63, 0.2);
}

.name-fields {
    display: flex;
    gap: 1rem;
}

.name-field {
    flex: 1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.5rem;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
    color: #333;
    min-width: auto;
    padding-top: 0;
    text-align: left;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: flex-start;
    width: auto;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 0.8rem;
    accent-color: #2d8f3f;
    margin-top: 0;
    position: relative;
    vertical-align: middle;
}

.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin: 2.5rem 0;
    gap: 0.8rem;
}

.privacy-checkbox input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: #2d8f3f;
}

.privacy-checkbox label {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.5;
    min-width: auto;
    padding-top: 0;
    font-weight: normal;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.form-actions button {
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2d8f3f 0%, #3ba54a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 143, 63, 0.3);
    letter-spacing: 0.5px;
}

.form-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 143, 63, 0.4);
    background: linear-gradient(135deg, #248636 0%, #2d8f3f 100%);
}

.form-actions button:disabled,
.form-actions button.disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.form-actions button:disabled:hover,
.form-actions button.disabled:hover {
    background: #cccccc;
    color: #888888;
    transform: none;
    box-shadow: none;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    padding: 1rem;
    margin-top: 1rem;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.form-footer-info {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

.form-footer-info p {
    margin-bottom: 0.5rem;
}

/* ラジオボタンラベル内外の不要な改行を無効化 */
.radio-group label br,
.form-input-wrapper .radio-group label + br,
.radio-group label::after {
    display: none;
}

/* ラジオボタンラベルの直後のbrタグを削除 */
.radio-group br {
    display: none;
}

/* フォームラベルと入力フィールド周辺の不要な空のpタグを削除 */
.form-group label + p:empty,
.form-group label + p:not(:has(*)),
.form-input-wrapper p:empty,
.form-input-wrapper + p:empty,
.form-input-wrapper ~ p:empty,
.form-group > p:empty,
.contact-form-container p:empty:not(.contact-intro p) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* ラジオボタンの左寄せを強制 */
.radio-group-container .form-input-wrapper {
    align-items: flex-start !important;
}

.radio-group-container .radio-group {
    align-self: flex-start !important;
    width: 100%;
}

/* レスポンシブデザイン対応 */
@media (max-width: 768px) {
    .contact-form-container {
        max-width: none !important;
        width: 100% !important;
        margin: 2rem 0 !important;
        padding: 2rem 1rem !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    
    .form-group {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group label {
        min-width: auto;
        padding-top: 0;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .name-fields {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .contact-intro {
        margin-bottom: 2rem;
    }
    
    .contact-intro p {
        font-size: 0.9rem;
    }
    
    .form-actions button {
        padding: 0.9rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .privacy-checkbox {
        margin: 2rem 0;
        align-items: flex-start;
    }
    
    .form-footer-info {
        font-size: 0.75rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        max-width: none !important;
        width: 100% !important;
        margin: 1rem 0 !important;
        padding: 1.5rem 1rem !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    
    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .name-fields {
        flex-direction: row;
        gap: 0.6rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .form-actions button {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
    
    .contact-intro p {
        font-size: 0.85rem;
    }
    
    .contact-intro .note {
        font-size: 0.8rem;
    }
    
    .privacy-checkbox label {
        font-size: 0.8rem;
    }
    
    .form-footer-info {
        font-size: 0.7rem;
    }
}

/* 確認画面のスタイル */
.confirmation-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
}

.confirmation-message {
    padding: 1rem;
    margin: -1rem auto 2rem auto;
    border-radius: 4px;
    max-width: 600px;
    text-align: center;
}

.confirmation-message p {
    margin: 0;
    color: #333;
    font-size: 0.95rem;
}

.details-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-bottom: 2rem !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: table !important;
}

.details-table th,
.details-table td {
    padding: 1rem !important;
    text-align: left !important;
    border-bottom: 1px solid #e0e0e0 !important;
    display: table-cell !important;
}

.details-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #333;
    width: 35%;
    font-size: 0.9rem;
}

.details-table td {
    color: #333;
    font-size: 0.95rem;
}

.details-table tr:last-child th,
.details-table tr:last-child td {
    border-bottom: none;
}

.message-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.6;
}

.confirmation-container .form-actions,
.contact-form-container .form-actions {
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 3rem !important;
}

.confirmation-container .form-actions form {
    display: inline;
}

.confirmation-container .form-actions button,
.back-button-form {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
    height: 56px;
    line-height: 1.4;
    box-sizing: border-box;
    vertical-align: middle;
    width: 180px;
    text-align: center;
}

.submit-button {
    background: linear-gradient(135deg, #2d8f3f 0%, #3ba54a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 143, 63, 0.3);
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 143, 63, 0.4);
    background: linear-gradient(135deg, #248636 0%, #2d8f3f 100%);
}

.back-button-form {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.back-button-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    text-decoration: none;
    color: white;
}

/* 処理画面とエラー画面のスタイル */
.error-container,
.processing-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.error-message {
    background-color: #ffeaea;
    border-left: 4px solid #e74c3c;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    color: #c0392b;
}

.error-message p {
    font-size: 0.95rem;
    margin: 0.5rem 0;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.error-actions a,
.retry-button,
.home-button {
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.retry-button {
    background: linear-gradient(135deg, #2d8f3f 0%, #3ba54a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 143, 63, 0.3);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 143, 63, 0.4);
    background: linear-gradient(135deg, #248636 0%, #2d8f3f 100%);
    color: white;
}

.home-button {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    color: white;
}

.loading-spinner {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #2d8f3f;
    animation: spin 1s linear infinite;
    margin: 2rem 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.processing-message {
    color: #333;
    margin-bottom: 2rem;
}

.processing-message p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* 完了画面のスタイル */
.completion-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 3rem 2rem;
    background: white;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

.success-message {
    padding: 2rem;
    margin: -1rem auto 2rem auto;
    border-radius: 4px;
    max-width: 600px;
    text-align: left;
}

.success-message p {
    margin: 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
}

.success-icon {
    font-size: 4rem;
    color: #2d8f3f;
    margin-bottom: 1rem;
}

.completion-info {
    background-color: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.completion-info h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.process-list li {
    padding: 0.5rem 0;
    color: #555;
    position: relative;
    padding-left: 2rem;
    font-size: 0.95rem;
}

.process-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #2d8f3f;
    font-weight: bold;
}

.notice {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    text-align: left;
}

.notice h3 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.notice p {
    color: #856404;
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.actions a,
.back-button {
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    letter-spacing: 0.5px;
}

.back-button {
    background: linear-gradient(135deg, #2d8f3f 0%, #3ba54a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(45, 143, 63, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 143, 63, 0.4);
    background: linear-gradient(135deg, #248636 0%, #2d8f3f 100%);
    color: white;
}

.auto-redirect-info {
    margin-top: 2rem;
    padding: 1rem;
    background-color: #e8f5e8;
    border-radius: 4px;
    color: #2d8f3f;
    font-size: 0.9rem;
}

/* 確認・処理・完了画面のレスポンシブデザイン */
@media (max-width: 768px) {
    .confirmation-container,
    .error-container,
    .processing-container,
    .completion-container {
        max-width: none !important;
        width: 100% !important;
        margin: 2rem 0 !important;
        padding: 2rem 1rem !important;
    }
    
    .details-table th {
        width: 40%;
    }
    
    .confirmation-container .form-actions,
    .error-actions,
    .actions {
        flex-direction: column;
        align-items: center;
    }
    
    .confirmation-container .form-actions button,
    .back-button-form,
    .error-actions a,
    .actions a {
        width: 100%;
        max-width: 280px;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .completion-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .confirmation-container,
    .error-container,
    .processing-container,
    .completion-container {
        margin: 1rem 0 !important;
        padding: 1.5rem 1rem !important;
    }
    
    .details-table th,
    .details-table td {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .confirmation-container .form-actions button,
    .back-button-form,
    .error-actions a,
    .actions a {
        padding: 0.8rem 2rem;
        font-size: 0.85rem;
    }
    
    .processing-message p {
        font-size: 1rem;
    }
    
    .success-message p {
        font-size: 0.9rem;
    }
    
    .completion-info h2 {
        font-size: 1.1rem;
    }
    
    .process-list li {
        font-size: 0.9rem;
    }
    
    .notice h3 {
        font-size: 1rem;
    }
    
    .notice p {
        font-size: 0.85rem;
    }
}
