/* style.css */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans KR', sans-serif;
  background: #eef4f8;
  margin: 0;
  padding: 0;
  color: #222;
}
.container {
  max-width: 760px;
  margin: 100px auto;
  padding: 30px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
h1 {
  font-size: 28px;
  text-align: center;
  color: #0a4d74;
  margin-bottom: 30px;
}
.toc {
  background: #f4f7fb;
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toc li a {
  display: block;
  background: white;
  color: #0a4d74;
  font-weight: 500;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  border: 1px solid #d0e4f5;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}
.toc li a:hover {
  background: #e1f0ff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.card {
  background: #fdfdfd;
  border: 1px solid #d6e4f0;
  border-left: 5px solid #2196f3;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}
.card h2 {
  margin-top: 0;
  color: #1b5e20;
}
.card ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.7;
}
.form-section {
  margin-bottom: 16px;
}
label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}
select {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.result-box {
  background: #fffbe6;
  border-left: 5px solid #ff9800;
  padding: 16px;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 12px;
}
.apply-button {
  background: #ff9800;
  color: white;
  font-size: 20px;
  font-weight: bold;
  padding: 14px 0;
  width: 220px;
  border: none;
  border-radius: 10px;
  animation: floatUpDown 2s infinite ease-in-out, blink 1.5s infinite;
  display: block;
  margin: 24px auto 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}
.apply-button:hover {
  transform: translateY(-4px);
  background: #ffb300;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes floatUpDown {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.home-button {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  margin: auto;
  width: fit-content;
  padding: 14px 24px;
  background-color: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.3em;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
  z-index: 999;
}
.home-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: rgba(255,255,255,0.4);
  transform: skewX(-30deg);
  animation: shine 3s infinite;
}
.home-button:hover {
  background-color: #004999;
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
}
.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  color: #43a047;
  margin: 60px 0 20px;
}
.link-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 60px;
}
.link-btn {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff8a80, #ffe5e5);
  color: #b71c1c;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  border: 2px solid #ffcdd2;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.link-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.15);
  background: linear-gradient(135deg, #ff5252, #ffe5e5);
  color: #880e4f;
}
.link-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: rgba(255,255,255,0.3);
  transform: skewX(-30deg);
  animation: shine 3s infinite;
}
@keyframes shine {
  0% { left: -80%; }
  50% { left: 130%; }
  100% { left: -80%; }
}
.link-btn-light {
  display: block;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #e0f2ff, #cfe8ff);
  color: #004d99;
  text-decoration: none;
  border: 2px solid #90caf9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.link-btn-light:hover {
  background: linear-gradient(135deg, #bbdefb, #e3f2fd);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.howto-info {
  background: #e3f2fd;
  border-left: 6px solid #1976d2;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}
.howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.howto-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.5;
}
.pc-note {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin-top: 8px;
  display: none;
}
@media (min-width: 768px) {
  .pc-note {
    display: block;
  }
}
footer {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 60px 0 30px;
}
