/*
 * Privacy Policy Page Styles
 */

/* ページの基本レイアウト */
.entry-header {
    margin-bottom: 40px;
    text-align: center;
}

.entry-title {
    font-size: 28px;
    border-bottom: 2px solid #e60012;
    display: inline-block;
    padding-bottom: 10px;
}

.entry-content {
    max-width: 840px; /* 文章が読みやすいように横幅を制限 */
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 60px;
}

/* 条文タイトル (第●条) */
.entry-content h2 {
    font-size: 22px;
    margin: 60px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e60012;
    font-weight: bold;
}

/* 小見出し (1. 取得するデータなど) */
.entry-content h3 {
    font-size: 18px;
    margin: 40px 0 15px;
    padding-left: 1em;
    border-left: 4px solid #e60012;
    font-weight: bold;
}

/* 本文 */
.entry-content p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

/* リスト */
.entry-content ul {
    list-style: none;
    padding-left: 1.5em;
}

.entry-content ul li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.8em;
    line-height: 1.8;
}

.entry-content ul li::before {
    content: '・';
    position: absolute;
    left: 0;
    color: #e60012;
    font-weight: bold;
}

/* テーブル */
.entry-content .table-container {
    overflow-x: auto; /* スマホで見たときに横スクロールさせる */
    margin: 20px 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    font-size: 14px;
}

.entry-content th,
.entry-content td {
    border: 1px solid #ccc;
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.entry-content th {
    background-color: #2c333f;
    color: #fff;
    font-weight: bold;
}

.entry-content td a {
    color: #007bff;
    text-decoration: underline;
}

.entry-content td a:hover {
    text-decoration: none;
}




/*
 * Contact Form Styles
 * =========================================== */
.contact-form-container {
    border: 1px solid #ddd;
    background: #fff;
    margin-top: 40px;
}

.form-intro, .form-notes {
    text-align: center;
    padding: 20px;
    margin: 0;
}

.form-intro {
    font-size: 20px;
    font-weight: bold;
    background: #f7f7f7;
    border-bottom: 1px solid #ddd;
}

.form-notes {
    font-size: 15px;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    align-items: flex-start;
}

.form-row:last-of-type {
    border-bottom: none;
}

.form-label {
    width: 240px;
    flex-shrink: 0;
    padding: 8px 20px 0 0;
    font-weight: bold;
    font-size: 15px;
}

.form-label .required {
    display: inline-block;
    background: #c7a98b;
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    padding: 3px 8px;
    margin-left: 8px;
    border-radius: 3px;
    vertical-align: middle;
}

.form-label .label-note {
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #555;
    margin-top: 5px;
}

.form-control {
    flex-grow: 1;
}

/* 入力フィールド */
.wpcf7-form-control:not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance) {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.wpcf7-form-control.wpcf7-textarea {
    height: 150px;
}

/* チェックボックス */
.wpcf7-checkbox .wpcf7-list-item {
    display: inline-block;
    width: 48%;
    margin: 0 0 10px;
    font-size: 15px;
}

/* ▼▼▼【重要】ここを修正しました ▼▼▼ */
/* ご希望日時 */
.date-time-item {
    display: flex;
    align-items: center;
}
.date-time-item:not(:last-child){
    margin-bottom: 15px;
}

.item-main-label {
    width: 120px;
    flex-shrink: 0;
    font-weight: bold;
}

.form-inputs-group {
    flex-grow: 1;
}

/* CF7が生成するpタグをFlexコンテナにして、横並びを実現する */
.form-inputs-group > p {
    display: flex;
    gap: 15px;
    margin: 0;
    align-items: center;
}

/* 不要な改行タグを非表示にする */
.form-inputs-group br {
    display: none;
}

/* 各入力欄のラッパー(span)を均等幅にする */
.form-inputs-group .wpcf7-form-control-wrap {
    flex: 1;
}

.date-time-item .wpcf7-date,
.date-time-item .wpcf7-select {
    width: 100%;
    height: 44px;
}
/* ▲▲▲ ここまで修正 ▲▲▲ */


/* 同意チェックボックス */
.acceptance-wrapper {
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
}
.wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
}
.acceptance-wrapper a {
    color: #007bff;
    text-decoration: underline;
}
.acceptance-wrapper a:hover {
    text-decoration: none;
}


/* 送信ボタン */
.submit-wrapper {
    padding: 0 20px 40px;
    text-align: center;
}
.wpcf7-submit {
    background: #4caf50;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    padding: 15px 0;
    width: 100%;
    max-width: 400px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.wpcf7-submit:hover {
    background: #45a049;
}


/* レスポンシブ対応 (スマホ表示) */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .form-label {
        width: 100%;
        margin-bottom: 10px;
        padding: 0;
    }
    .wpcf7-checkbox .wpcf7-list-item {
        width: 100%;
    }

    .date-time-item {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }
    .item-main-label {
        margin-bottom: 5px;
    }
    .form-inputs-group {
        width: 100%;
    }
    .form-inputs-group > p {
        flex-direction: column; /* スマホでは縦積みにする */
        gap: 10px;
    }
}