:root {
  color-scheme: light;
  font-family: 'Noto Sans JP', 'Hiragino Sans', '游ゴシック体', 'Yu Gothic', sans-serif;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: linear-gradient(135deg, #fef4ff, #f1f6ff 40%, #fff9f0);
  color: #2a2a2a;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

[hidden] {
  display: none !important;
}

.page-header,
.page-footer {
  text-align: center;
  padding: 2.4rem 1.6rem;
}

.page-header {
  background: transparent;
}

.page-header .tagline {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: #ff7b89;
  margin: 0;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0.5rem 0 0;
  color: #3547a4;
}

main {
  width: min(960px, 92vw);
  margin: 0 auto;
  flex: 1;
  padding: 0 0 4rem;
}

.generator {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(53, 71, 164, 0.1);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  backdrop-filter: blur(6px);
}

.generator h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #3547a4;
}

.generator .intro {
  margin-bottom: 1.5rem;
}

.generator-form {
  display: grid;
  gap: 1.2rem;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
}

.form-item input {
  font-size: 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(53, 71, 164, 0.3);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-item input:focus {
  border-color: #3547a4;
  box-shadow: 0 0 0 3px rgba(53, 71, 164, 0.15);
  outline: none;
}

.copy-button {
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #ff7b89, #ffbe7b);
  color: #fff;
  box-shadow: 0 12px 24px rgba(255, 123, 137, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(255, 123, 137, 0.35);
}

.result {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(53, 71, 164, 0.08);
}

.result-helper {
  margin: 0;
  color: rgba(42, 42, 42, 0.7);
}

.result-link {
  display: inline-block;
  word-break: break-all;
  margin-top: 0.8rem;
  color: #3547a4;
  font-weight: 700;
  text-decoration: none;
}

.result-link:hover,
.result-link:focus {
  text-decoration: underline;
}

.copy-button {
  margin-top: 1rem;
}

.error-message {
  margin: 1rem 0 0;
  color: #d32f2f;
  font-weight: 700;
}

.page-footer {
  font-size: 0.85rem;
  color: rgba(42, 42, 42, 0.6);
}

@media (max-width: 640px) {
  .form-item {
    font-size: 0.95rem;
  }

  .copy-button {
    width: 100%;
  }
}
.message-example {
  margin-top: 3rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(253, 233, 255, 0.85));
  box-shadow: 0 18px 38px rgba(53, 71, 164, 0.12);
}

.message-example h2 {
  margin-top: 0;
  color: #ff7b89;
  font-size: 1.45rem;
}

.message-example > p {
  margin: 0.5rem 0 1.5rem;
  color: rgba(42, 42, 42, 0.75);
}

.example-message {
  margin: 0;
  padding: 1.5rem;
  border-radius: 18px;
  border-left: 6px solid rgba(255, 123, 137, 0.6);
  background: rgba(255, 255, 255, 0.88);
  font-style: normal;
  box-shadow: inset 0 0 0 1px rgba(255, 123, 137, 0.15);
}

.example-message p {
  margin: 0;
  font-weight: 500;
}

.example-message p + p {
  margin-top: 0.8rem;
}

.example-message a {
  color: #3547a4;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.example-message a:hover,
.example-message a:focus {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .message-example {
    padding: 1.6rem;
  }

  .example-message {
    padding: 1.2rem;
  }

  .example-message a {
    font-size: 0.95rem;
  }
}
