/* form.css: 投稿フォームのスタイル */
.gform-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.gform {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gform-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.gform-required::after {
    content: " *";
    color: #dd0000;
}

.gform-input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.gform-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

.gform-select {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.gform-select:focus {
    outline: none;
    border-color: #1976d2;
}

.gform-textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    transition: border-color 0.3s;
}

.gform-textarea:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 5px rgba(25, 118, 210, 0.3);
}

.gform-submit {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #1976d2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gform-submit:hover {
    background-color: #1565c0;
}

.gform-reset {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gform-reset:hover {
    background-color: #e0e0e0;
}

.gform-button-group {
    display: flex;
    gap: 10px;
}

.gform-link {
    font-size: 14px;
    color: #1976d2;
    text-decoration: none;
}

.gform-link:hover {
    text-decoration: underline;
}

/* form-tab.css: スライドタブのスタイル */
.gform-tab-container {
    max-width: 600px;
    margin: 20px auto;
}

.gform-tab-button {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #1976d2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: auto;
    min-width: 120px;
    display: inline-block;
    text-align: left;
    margin-right: auto;
    transition: background-color 0.3s;
    background-image: url('./plus.png');
    background-repeat: no-repeat;
    background-position: 8px center;
    background-size: 14px;
    padding-left: 28px;
}

.gform-tab-button[aria-expanded="true"] {
    background-image: url('./cross.png');
}

.gform-tab-button:hover {
    background-color: #1565c0;
}

.gform-tab-panel {
    max-width: 600px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    padding: 20px;
    visibility: hidden;
    max-height: 80vh;
    overflow-y: auto;
}

.gform-tab-panel.gform-tab-active {
    transform: translateX(0);
    visibility: visible;
}

.gform-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #CFCFCF url('./cross.png') no-repeat center;
    background-size: 14px;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0;
    color: transparent;
    cursor: pointer;
    z-index: 1001;
}

.gform-close-button:hover {
    background-color: #e0e0e0;
}

.gform-close-button:focus {
    outline: 2px solid #1976d2;
}

/* ページネーションのスタイル */
.gform-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.gform-pagination-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    justify-content: center;
}

.gform-pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.gform-pagination-button {
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #1976d2;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gform-pagination-button:hover {
    background-color: #1565c0;
}

.gform-pagination-link {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.gform-pagination-link:hover {
    background-color: #e0e0e0;
}

.gform-pagination-link font[color="red"] {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #dd0000;
    border-radius: 3px;
}

/* ヘッダーエリアのスタイル */
.gform-header {
    max-width: 600px;
    margin: 20px auto;
    padding: 15px;
    background: linear-gradient(to bottom, #f8fafc, #e0e0e0);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px; /* 行間を縮小 */
}

.gform-header small {
    font-size: 14px;
    line-height: 1.2; /* 行間を縮小 */
    color: #555;
    display: block;
}

.gform-header-title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.2; /* 行間を縮小 */
    margin: 0;
    color: #333;
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif; /* モダンなフォント */
    background: linear-gradient(to right, #1976d2, #42a5f5); /* グラデーション */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2); /* 影追加 */
    border-bottom: 2px solid #1976d2;
    padding-bottom: 3px;
    transition: transform 0.2s ease; /* アニメーション */
}

.gform-header-title:hover {
    transform: scale(1.02); /* ホバー時に拡大 */
}

.gform-header-link {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    background-color: #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.3s;
}

.gform-header-link:hover {
    background-color: #d0d0d0;
    transform: scale(1.05);
}

.gform-header-section {
    padding: 8px;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    white-space: pre-line;
}

.gform-header-info {
    padding: 8px;
    background-color: #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: center;
    white-space: pre-line;
}

.gform-header-info-link {
    color: #1976d2;
    text-decoration: none;
}

.gform-header-info-link:hover {
    text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 500px) {
    .gform-container {
        padding: 15px;
        margin: 10px;
    }
    .gform-input,
    .gform-select,
    .gform-textarea {
        font-size: 14px;
    }
    .gform-submit,
    .gform-reset {
        padding: 10px 15px;
        font-size: 14px;
    }
    .gform-tab-panel {
        max-width: 80%;
        width: calc(100% - 20px);
        right: 10px;
        top: 10px;
        z-index: 1000;
        padding: 10px;
    }
    .gform-tab-button {
        padding: 12px 10px;
        font-size: 14px;
        background-size: 12px;
        padding-left: 26px;
        min-width: 100px;
    }
    .gform-close-button {
        width: 20px;
        height: 20px;
        background-size: 12px;
    }
    .gform-pagination-button {
        padding: 12px 12px;
        font-size: 14px;
    }
    .gform-pagination-links {
        gap: 5px;
    }
    .gform-header {
        padding: 12px;
        margin: 10px;
        gap: 3px; /* スマホではさらに縮小 */
    }
    .gform-header small {
        font-size: 12px;
    }
    .gform-header-title {
        font-size: 18px;
    }
    .gform-header-link {
        padding: 6px 10px;
        font-size: 12px;
    }
    .gform-header-section,
    .gform-header-info {
        padding: 6px;
        font-size: 12px;
    }
}