/*
Theme Name: soccermama
Description: WordPress theme for soccermama
*/

/* Image Placeholder */
.sm-image-placeholder {
    background-color: #e5e5e5;
    border: 1px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.sm-link {
    display: inline;
    font-size: 16px;
    text-decoration: underline;
    color: #dc6387;
    transition: all 0.3s ease, opacity 0.3s ease;
}

.sm-link:hover {
    color: #e67a9a;
    opacity: 0.8;
    text-decoration: underline;
}

.sm-404 {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 24px;
    margin: 48px 0;
}

/* Writer SNS Links */
.sm-writer-sns-links {
    text-align: center;
    margin-top: 24px;
}

.sm-writer-sns-links ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sm-writer-sns-links li {
    display: inline-block;
    margin: 0 8px;
}

.sm-writer-sns-links li a {
    display: inline-block;
}

.sm-writer-sns-links li a i {
    font-size: 24px;
}

/* Writer Other Posts Link */
.sm-writer-other-posts {
    text-align: right;
    margin-top: 24px;
}

/* Contact Form 7 スタイルカスタマイズ */
.wpcf7-form {
    max-width: 100%;
}

/* フォームフィールドの基本スタイル */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    border-radius: 0;
    box-sizing: border-box;
    font-family: inherit;
}

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

.wpcf7-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 36px;
    cursor: pointer;
}

/* ラベルのスタイル */
.wpcf7-form label {
    display: block;
    font-size: 16px;
    font-weight: normal;
    color: #000;
    margin-bottom: 8px;
}

/* 必須入力の表示（ラベル内に表示） */
.wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 4px;
}

/* 必須フィールドのラベルに「必須入力」を追加 */
.wpcf7-form p:has(.wpcf7-validates-as-required) label:after,
.wpcf7-form .wpcf7-form-control-wrap:has(.wpcf7-validates-as-required) + label:after,
.wpcf7-form label:has(+ .wpcf7-form-control-wrap .wpcf7-validates-as-required):after {
    content: "必須入力";
    color: #EE3639;
    font-size: 12px;
    margin-left: 4px;
    font-weight: normal;
}

/* より確実な必須入力表示（JavaScriptで動的に追加する場合も考慮） */
.wpcf7-form .sm-required-label:after {
    content: "必須入力";
    color: #EE3639;
    font-size: 12px;
    margin-left: 4px;
    font-weight: normal;
}

/* フォーム項目の間隔 */
.wpcf7-form p {
    margin-bottom: 20px;
}

/* エラーメッセージのスタイル */
.wpcf7-form .wpcf7-not-valid-tip {
    color: #EE3639;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* 送信ボタンのスタイル */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    background-color: #ed8492;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    background-color: #dc717f;
}

/* レスポンスメッセージ */
.wpcf7-response-output {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
}

/* 確認画面のスタイル */
.cf7-confirmation-page {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin: 20px 0;
}

.cf7-confirmation-content {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

.cf7-confirmation-field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cf7-confirmation-field:last-child {
    border-bottom: none;
}

.cf7-confirmation-field dt {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.cf7-confirmation-field dd {
    color: #666;
    margin: 0;
}

/* 確認画面のボタンエリア */
.cf7-confirmation-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* 確認画面の送信ボタン */
.cf7-confirm-btn {
    background-color: #ed8492 !important;
    color: #fff !important;
    flex: 1;
}

.cf7-confirm-btn:hover {
    background-color: #dc717f !important;
    color: #fff !important;
}

/* 確認画面の戻るボタン */
.cf7-back-btn {
    flex: 1;
}