@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.8;
  font-weight: 400;
}

.container {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.card {
  background: #fff;
  padding: 50px 40px;
  width: 100%;
  max-width: 500px;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
}

header h1 {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.15em;
  margin-bottom: 0;
}

/* Intro */
.intro {
  text-align: center;
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 8px;
  font-weight: 400;
}

.intro strong {
  font-weight: 500;
}

.intro-sub {
  text-align: center;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 30px;
  font-weight: 300;
}

/* Form */
.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.hint {
  font-weight: 300;
  color: #999;
  font-size: 0.7rem;
  margin-left: 8px;
}

.inputs {
  display: flex;
  gap: 8px;
}

select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  transition: border-color 0.2s;
}

select:hover {
  border-color: #bbb;
}

select:focus {
  outline: none;
  border-color: #999;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
}

.submit-btn:hover {
  background: #333;
  color: #fff;
}

/* Result */
.result-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-content {
  text-align: center;
  margin-bottom: 20px;
}

.result-label {
  display: block;
  font-size: 0.75rem;
  color: #888;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}

.result-icon {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  color: #333;
}

.result-icon svg {
  width: 100%;
  height: 100%;
}

.result-sign {
  display: block;
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.15em;
}

.result-desc {
  font-size: 0.85rem;
  color: #555;
  line-height: 2;
  margin-bottom: 25px;
  text-align: justify;
}

.share-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.share-btn {
  padding: 10px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.share-btn:hover {
  opacity: 0.8;
}

.share-x {
  background: #000;
  color: #fff;
}

.share-line {
  background: #333;
  color: #fff;
}

/* Instagram CTA */
.instagram-cta {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.instagram-cta > p {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 15px;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.2s, transform 0.2s;
}

.instagram-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.instagram-btn svg {
  width: 18px;
  height: 18px;
}

.instagram-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.7rem;
  color: #999;
}

/* Note */
.note {
  text-align: center;
  font-size: 0.7rem;
  color: #bbb;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid #e5e5e5;
  font-weight: 300;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px 0;
  color: #ccc;
  font-size: 0.7rem;
  font-weight: 300;
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }

  .card {
    padding: 35px 25px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  .inputs {
    flex-wrap: wrap;
  }

  .form-row:first-of-type .inputs select:first-child {
    width: 100%;
    flex: none;
  }

  .share-buttons {
    flex-direction: column;
  }

  .share-btn {
    text-align: center;
  }
}
