@charset "utf-8";

/* ========== ベーススタイル ========== */
.ais-root {
  margin: 0 auto;
}

/* ========== カード ========== */
.ais-card {
  background: linear-gradient(135deg, #c9f8fc 0%, #f1fefe 40%, #a8ebf0 100%);
  border-radius: 20px;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(166, 234, 238, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: cardIn 0.6s cubic-bezier(0.2, 0, 0, 1) forwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ais-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 234, 238, 0.88) 0%, transparent 70%);
  pointer-events: none;
}

.ais-card::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 234, 238, 0.88) 0%, transparent 70%);
  pointer-events: none;
}

/* ========== パーティクル ========== */
.ais-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ais-dot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: floatDot linear infinite;
}

@keyframes floatDot {
  0%   { transform: translateY(0) scale(1);        opacity: 0.6; }
  100% { transform: translateY(-120px) scale(0.3); opacity: 0;   }
}

/* ========== 見出し・説明文 ========== */
.ais-heading {
  text-align: center;
  position: relative;
  z-index: 1;
}

p.ais-desc {
  font-size: 16px;
  margin: 0 0 1.6rem;
  text-align: center;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ========== サジェスト ========== */
.ais-suggests {
  display: flex;
  gap: 10px;
  margin: 1.6rem 0;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
  min-height: 38px;
}

.suggest-button {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(166, 234, 238, 0.5);
  border-radius: 999px;
  padding: 9px 20px;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 8px rgba(166, 234, 238, 0.6);
  transition: background 0.22s, border-color 0.22s, transform 0.18s, box-shadow 0.25s, color 0.2s;
  animation: fadeUp 0.5s ease forwards;
  opacity: 0;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
}

.suggest-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  border-radius: 999px;
  pointer-events: none;
}

.suggest-button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
  border-radius: 999px;
}

.suggest-button:hover::after { transform: translateX(100%); }

.suggest-button:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 18px rgba(166, 234, 238, 0.45);
  transform: translateY(-2px);
  color: #333;
}

.suggest-button:active { transform: scale(0.97) translateY(0); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== フォーム ========== */
.ais-form {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 24px rgba(166, 234, 238, 0.8);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.ais-form:focus-within {
  border-color: rgba(100, 200, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 4px 24px rgba(0, 0, 0, 0.25),
              0 0 0 2px rgba(0, 180, 255, 0.35), 0 0 24px rgba(0, 180, 255, 0.2);
}

.ais-icon {
  display: flex;
  align-items: center;
  padding: 0 10px 0 16px;
  height: 52px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.ais-form:focus-within .ais-icon { opacity: 1; }

.ais-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.9);
  background: transparent;
  padding: 14px 10px;
  height: 52px;
  min-width: 0;
  caret-color: #7dd3fc;
}

.ais-input::placeholder {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 300;
}

.ais-divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.ais-form._simple {
    border-radius: 8px;
    box-shadow: none;
}

.ais-form._simple .ais-icon,
.ais-form._simple .ais-input,
.ais-form._simple .ais-submit{
    height: 36px
}

.ais-form._simple .ais-icon {
    padding: 0 8px;
}

.ais-form._simple ais-submit {
    font-size: 14px;
}

.ais-form._simple .ais-arrow {
    height: 20px;
    width: 20px;
}

/* ========== 送信ボタン ========== */
.ais-submit {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(135deg, #4f97e7 0%, #226ab7 40%, #3b91c9 100%);
  border: none;
  padding: 0 22px;
  height: 52px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.ais-submit-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.ais-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ais-submit:hover::before    { transform: translateX(100%); }
.ais-submit:hover            { color: #fff; }
.ais-submit:hover .ais-arrow { transform: translateX(3px); }
.ais-submit:hover .ais-arrow-circle { stroke-dashoffset: 0; }
.ais-submit:active           { transform: scale(0.97); }

.ais-arrow {
  width: 25px; height: 25px;
  transition: transform 0.25s;
}

.ais-arrow-circle {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== 注意書き ========== */
.ais-note {
  width: fit-content;
  margin: 24px auto 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.ais-note li {
  list-style: none;
  padding-left: 1.5em;
  text-indent: -1.2em;
}

.ais-note li::before { content: "※ "; }

.ais-note a {
  text-decoration: none !important;
  border-bottom: 1px solid rgba(100, 200, 255, 0.25);
  transition: border-color 0.2s, color 0.2s;
}

.ais-note a:hover {
  color: #7dd3fc;
  border-color: rgba(100, 200, 255, 0.8);
}

/* ========== レスポンシブ ========== */
@media (max-width: 530px) {
  .ais-icon   { display: none; }
  .ais-input  { font-size: 14px; padding: 14px 14px; }
  .ais-submit { padding: 0 10px; font-size: 13px; }
  .ais-arrow  { display: none; }
}