/*
Theme Name: ヒポッタマくん (子テーマ)
Template: astra
*/

/* モーダルウィンドウ用のスタイル */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
}

/* ログインページのタブ機能のためのCSS */
.tab-switcher {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 1.5rem;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background-color: #f3f4f6;
}

.tab-button {
    flex: 1;
    padding: 0.85rem 1rem;
    cursor: pointer;
    background-color: transparent;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #4b5563;
    transition: all 0.2s ease-in-out;
    border-bottom: none;
}

.tab-button.active {
    background-color: #2563eb;
    color: white;
    border-bottom-color: transparent;
}

.form-tab {
    display: none;
}
.form-tab.active {
    display: block;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.social-login-area {
    margin-bottom: 1.5rem;
}
.social-login-label {
    text-align: center;
    font-size: 0.875rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.form-divider {
    text-align: center;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
    position: relative;
}
.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 30px);
    height: 1px;
    background-color: #e5e7eb;
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-row {
    margin-bottom: 1rem;
}
.form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #374151;
}
.form-row .input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.button.button-primary {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.375rem;
    background-color: #2563eb;
    border-color: #2563eb;
    transition: background-color 0.2s;
}
.button.button-primary:hover {
    background-color: #1d4ed8;
}

.form-error, .form-success {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
}
.form-error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.form-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

#profile-form .form-table tr.ratings-row {
    display: none !important;
}
#profile-form .form-table th {
    width: 150px;
    vertical-align: top;
    padding-top: 8px;
}

#simple-local-avatar-controls {
    margin-bottom: 1rem;
}

/* ▼▼▼【プロフィール編集ページのアバター欄レイアウト修正】▼▼▼ */
#profile-form tr.user-profile-picture,
#profile-form tr.user-simple-local-avatar-wrapper { }

#profile-form tr.user-profile-picture th,
#profile-form tr.user-simple-local-avatar-wrapper th {
    width: 180px;
    padding-top: 15px;
    vertical-align: top;
}

#simple-local-avatar-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 4px;
}

#simple-local-avatar-controls .description {
    display: none !important;
}

#simple-local-avatar-remove-button {
    all: unset; 
    box-sizing: border-box;
    display: inline-block;
    background-color: #ef4444;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s;
}

#simple-local-avatar-remove-button:hover {
    background-color: #dc2626;
}
/* ▲▲▲【プロフィール編集ページ】▲▲▲ */


/* ▼▼▼【ここから新規追加】企業名オートコンプリート用のスタイル ▼▼▼ */
.autocomplete-suggestions-container {
    position: relative;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    z-index: 999;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.autocomplete-suggestion {
    padding: 0.75rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background-color: #f3f4f6;
}

/* --- 企業名オートコンプリート用スタイル --- */
#autocomplete-results .p-2.hover\:bg-gray-100:hover {
  background-color: #f3f4f6; /* Tailwindのbg-gray-100に相当 */
}
#autocomplete-results .p-2 {
  padding: 0.5rem; /* Tailwindのp-2に相当 */
}
#autocomplete-results .cursor-pointer {
  cursor: pointer;
}