/*
 * Additional styles for the KaitoriX Orange theme.
 *
 * This stylesheet provides small layout tweaks and styling for the
 * sidebar application form. It supplements the global styles defined
 * in theme.json and block default styles.
 */

/* Reset default margins between full-width blocks */
.wp-site-blocks > * { margin-block: 0; }

/* Style tweaks for the application form sidebar */
.kaitorix-sidebar form p { margin-bottom: 1rem; }
.kaitorix-sidebar form label { font-size: 0.875rem; font-weight: 600; color: var(--wp--preset--color--ink); }
.kaitorix-sidebar form input,
.kaitorix-sidebar form textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}
.kaitorix-sidebar form button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--wp--preset--color--brand);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: opacity 0.15s ease-in-out;
}
.kaitorix-sidebar form button:hover {
  opacity: 0.9;
}
.kaitorix-sidebar #kaitorix-form-result {
  font-size: 0.875rem;
  color: var(--wp--preset--color--brand);
  font-weight: 700;
  margin-top: 0.5rem;
}

/* Indicate required fields with a red asterisk */
.kaitorix-sidebar .required {
  color: #dc2626; /* red-600 */
  margin-left: 0.25rem;
  font-size: 0.75rem;
  vertical-align: middle;
}

/* Style for LINE apply button in the sidebar */
/* LINE申し込みボタン: 基本スタイル */
.kaitorix-line-button .wp-block-button__link {
  background-color: #06C755;            /* base color */
  color: #FFFFFF;                       /* logo/text color */
  border: 1px solid rgba(0,0,0,0.08);   /* 縦線（無効以外）8%黒 */
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  display: block;
  text-align: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

/* ホバー時: base + 10%黒オーバーレイ */
.kaitorix-line-button .wp-block-button__link:hover {
  background-color: #06C755;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.1); /* 10% overlay */
  color: #FFFFFF;
}

/* クリック（active）時: base + 30%黒オーバーレイ */
.kaitorix-line-button .wp-block-button__link:active {
  background-color: #06C755;
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.3); /* 30% overlay */
  color: #FFFFFF;
}

/* 無効状態: 白背景・グレー文字・枠線 */
.kaitorix-line-button .wp-block-button__link[disabled],
.kaitorix-line-button .wp-block-button__link.disabled {
  background-color: #FFFFFF;
  color: rgba(30,30,30,0.2);            /* logo grey 20% */
  border: 1px solid rgba(229,229,229,0.6); /* border for disabled 60% */
  cursor: not-allowed;
  box-shadow: none;
}


/* Mobile navigation spacing tweak */
@media (max-width: 782px) {
  header .wp-block-navigation { margin-top: 8px; }
}