/* ============================================================
   Global Custom Styles — geoAlpine
   ============================================================ */

/* ============================================================
   1. Sidebar Refinement
   ============================================================ */
#sidebar1 .widget {
  background: var(--ga-white);
  border-radius: var(--ga-radius);
  box-shadow: var(--ga-shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
}

#sidebar1 .widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ga-navy);
  padding-bottom: 8px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--ga-navy);
}

#sidebar1 .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#sidebar1 .widget ul li {
  border-bottom: 1px solid var(--ga-gray-100);
  padding: 8px 0;
}

#sidebar1 .widget ul li:last-child {
  border-bottom: none;
}

#sidebar1 .widget ul li a {
  color: var(--ga-gray-800);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--ga-transition), padding-left var(--ga-transition);
}

#sidebar1 .widget ul li a:hover {
  color: var(--ga-navy);
  padding-left: 6px;
}

/* ============================================================
   2. Table Styling
   ============================================================ */
.entry-body table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--ga-radius);
  overflow: hidden;
  box-shadow: var(--ga-shadow-sm);
  margin-bottom: 2em;
}

.entry-body table th {
  background: var(--ga-navy);
  color: var(--ga-white);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
}

.entry-body table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--ga-gray-100);
  font-size: 0.9rem;
}

.entry-body table tr:nth-child(even) td {
  background: var(--ga-gray-50);
}

.entry-body table tr:hover td {
  background: rgba(52, 97, 172, 0.04);
}

/* ============================================================
   3. Form Styling (Contact Form 7 / VK forms)
   ============================================================ */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--ga-gray-200);
  border-radius: var(--ga-radius);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--ga-transition), box-shadow var(--ga-transition);
  background: var(--ga-white);
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  border-color: var(--ga-navy);
  box-shadow: 0 0 0 3px rgba(52, 97, 172, 0.15);
  outline: none;
}

.wpcf7 input[type="submit"] {
  background: var(--ga-navy);
  color: var(--ga-white);
  border: none;
  padding: 14px 48px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ga-transition);
  font-family: "Noto Sans JP", sans-serif;
}

.wpcf7 input[type="submit"]:hover {
  background: var(--ga-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--ga-shadow-md);
}

.wpcf7 label {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: block;
}

/* ============================================================
   4. Post Cards (Archive / VK Posts)
   ============================================================ */
.vk_post {
  transition: transform var(--ga-transition), box-shadow var(--ga-transition);
  border-radius: var(--ga-radius);
  overflow: hidden;
}

.vk_post:hover {
  transform: translateY(-4px);
  box-shadow: var(--ga-shadow-md);
}

.vk_post .vk_post_title {
  font-weight: 600;
  transition: color var(--ga-transition);
}

.vk_post:hover .vk_post_title {
  color: var(--ga-navy);
}

.vk_post .vk_post_imgOuter {
  overflow: hidden;
}

.vk_post .vk_post_imgOuter img {
  transition: transform 0.5s ease;
}

.vk_post:hover .vk_post_imgOuter img {
  transform: scale(1.05);
}

/* ============================================================
   5. Pagination
   ============================================================ */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 40px;
}

.nav-links .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--ga-radius);
  background: var(--ga-white);
  color: var(--ga-gray-800);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: var(--ga-shadow-sm);
  transition: all var(--ga-transition);
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--ga-navy);
  color: var(--ga-white);
}

/* ============================================================
   6. Selection Color
   ============================================================ */
::selection {
  background: rgba(52, 97, 172, 0.2);
  color: var(--ga-gray-800);
}

/* ============================================================
   7. Skip to Content (a11y)
   ============================================================ */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--ga-navy);
  color: var(--ga-white);
  padding: 12px 24px;
  text-decoration: none;
}

.skip-to-content:focus {
  left: 0;
}

/* ============================================================
   8. News / Archive Page — Widget Fix
   ============================================================ */
/* 「最近の投稿」ウィジェットタイトルが大きすぎる問題 */
.veu_postList .widget-title,
.widget_vkexunit_post_list .widget-title,
.sub-section-title {
  font-size: 1rem !important;
  font-weight: 700;
  color: var(--ga-navy);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ga-navy);
}

/* VK Post Listウィジェット内のリスト整形 */
.veu_postList .postList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.veu_postList .postList li {
  padding: 12px 0;
  border-bottom: 1px solid var(--ga-gray-100);
  font-size: 0.9rem;
}

.veu_postList .postList li:last-child {
  border-bottom: none;
}

.veu_postList .postList li a {
  text-decoration: none;
  color: var(--ga-gray-800);
  transition: color var(--ga-transition);
}

.veu_postList .postList li a:hover {
  color: var(--ga-navy);
}
