/* ==========================================
   bank-search.css
========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pp-dark:    #1a4d7a;
  --pp-mid:     #3a7db8;
  --pp-light:   #5aa2d6;
  --pp-gold:    #ffc439;
  --gray-900:   #1a1a2e;
  --gray-800:   #2d2d44;
  --gray-700:   #4a4a6a;
  --gray-500:   #7a7a9a;
  --gray-300:   #c8c8d8;
  --gray-100:   #f4f4f8;
  --white:      #ffffff;
  --success:    #27ae60;
  --danger:     #e74c3c;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(0,48,135,.08);
  --shadow-md:  0 6px 24px rgba(0,48,135,.12);
  --shadow-lg:  0 16px 48px rgba(0,48,135,.16);
  --transition: .3s ease;
  --font-base:  'Noto Sans JP', 'メイリオ', Meiryo, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-900);
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   ヘッダー
========================================== */
.site-header {
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.site-logo img {
  height: 36px;
  width: auto;
  display: block;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pp-mid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background var(--transition);
}
.back-link:hover {
  background: var(--gray-100);
}

/* ==========================================
   メインコンテンツ
========================================== */
.main-content {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: calc(100vh - 120px);
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.3;
  margin-bottom: 16px;
}

.page-desc {
  font-size: 16px;
  color: var(--gray-500);
}

.sp-only {
  display: none;
}

/* ==========================================
   検索エリア
========================================== */
.search-section {
  max-width: 800px;
  margin: 0 auto 48px;
}

.search-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.search-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.search-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.type-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  font-size: 15px;
  font-family: var(--font-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color var(--transition);
}
.type-select:focus {
  outline: none;
  border-color: var(--pp-mid);
}

.search-input-wrap {
  position: relative;
}

.search-input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 16px;
  font-size: 15px;
  font-family: var(--font-base);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}
.search-input:focus {
  outline: none;
  border-color: var(--pp-mid);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 16px;
  pointer-events: none;
}

.suggestions-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
  z-index: 10;
  display: none;
}

.suggestions-list.show {
  display: block;
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
  transition: background var(--transition);
}
.suggestion-item:hover {
  background: var(--gray-100);
}

.search-btn {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--pp-mid), var(--pp-light));
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-base);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 12px rgba(58,125,184,.3);
}
.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,125,184,.4);
}

/* ==========================================
   検索結果
========================================== */
.results-section {
  max-width: 900px;
  margin: 0 auto 48px;
}

.results-header {
  margin-bottom: 24px;
}

.results-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}

.results-title span {
  color: var(--pp-mid);
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--pp-mid);
}

.result-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.result-header-content {
  flex: 1;
}

.result-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pp-mid), var(--pp-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--white);
  flex-shrink: 0;
}

.result-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.result-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--pp-mid);
  background: rgba(58,125,184,.1);
  padding: 4px 10px;
  border-radius: 12px;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  white-space: nowrap;
}

.identity-badge.required {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffb74d;
}

.identity-badge.not-required {
  background: #e8f5e9;
  color: var(--success);
  border: 1px solid #81c784;
}

.identity-badge i {
  font-size: 11px;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item:nth-child(4) {
  grid-column: 1 / 2;
  grid-row: 3;
}

.detail-item:nth-child(5) {
  grid-column: 2 / 3;
  grid-row: 3;
}

.detail-item-limit {
  background: #f8f9fa;
  padding: 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--pp-mid);
}

.detail-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.detail-value {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.6;
}

.detail-value-unverified {
  color: #e65100;
  font-weight: 600;
}

.detail-value-verified {
  color: var(--success);
  font-weight: 600;
}

/* ==========================================
   初期表示メッセージ
========================================== */
.initial-message {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  font-size: 15px;
}

.initial-message i {
  font-size: 48px;
  color: var(--pp-mid);
  margin-bottom: 16px;
  display: block;
}

/* ==========================================
   注意事項
========================================== */
.notice-section {
  max-width: 800px;
  margin: 48px auto 32px;
  background: #f0f4ff;
  border: 1px solid rgba(58,125,184,.2);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.notice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pp-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notice-list li {
  font-size: 14px;
  color: var(--gray-700);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}
.notice-list li::before {
  content: '・';
  position: absolute;
  left: 0;
  color: var(--pp-mid);
  font-weight: 700;
}

.sub-notice-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-left: 0;
}

.sub-notice-list li {
  font-size: 13px;
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
  line-height: 1.7;
}
.sub-notice-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pp-light);
  font-weight: 700;
}

.notice-list a {
  color: var(--pp-mid);
  font-weight: 600;
  text-decoration: underline;
}
.notice-list a:hover {
  color: var(--pp-dark);
}

/* ==========================================
   フッター
========================================== */
.site-footer {
  background: var(--gray-900);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo .logo-text {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #3a7db8 0%, #5aa2d6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ==========================================
   レスポンシブ
========================================== */
@media (max-width: 768px) {
  .sp-only {
    display: inline;
  }

  .page-title {
    font-size: 24px;
  }

  .search-box {
    padding: 24px 20px;
  }

  .search-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .result-details {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-name-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .identity-badge {
    align-self: flex-start;
  }

  .notice-section {
    padding: 24px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .site-logo img {
    height: 28px;
  }

  .back-link {
    font-size: 12px;
    padding: 6px 12px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }

  .search-box {
    padding: 20px 16px;
  }

  .result-card {
    padding: 20px 16px;
  }

  .result-name {
    font-size: 16px;
  }

  .identity-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
}
