@charset "UTF-8";

/* Common */
body {
  font-family: 'Hiragino Sans', 'ヒラギノ角ゴシック', 'Yu Gothic', '游ゴシック', 'Meiryo', 'メイリオ', sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  font-size: var(--font-size-default);
  background-color: var(--color-background);
  line-height: 1.8;
  letter-spacing: 0.05em;
}
body.fixed {
  overflow: hidden;
}

/* image */
img {
  max-width: 580px;
  width: 100%;
}
.qr-image {
  display: block;
  max-width: 200px;
  margin: 0 auto;
}

/* Text Font */
p + p {
  margin-top: 1rem;
}

/* Header */
header {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 2rem 1rem;
  font-size: var(--font-size-title);
  font-weight: bold;
}

/* Main Section Wrapper */
main {
  background-color: var(--color-background);
}
section {
  padding: 2rem 0;
}
section:nth-child(even) {
  background-color: var(--color-primary-pale);
}
.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Table */
table {
  border-collapse: collapse;
  text-align: left;
}
table.no-border {
  border: none;
}
table th {
  padding-right: 1rem;
}

/* Button */
.button {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--round-small);
  font-size: var(--font-size-default);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition);
}
.button.gray {
  background: var(--color-gray);
  color: var(--color-text);
}

/* Title */
.main-title {
  font-size: var(--font-size-title);
  font-weight: bold;
  color: var(--color-white);
  text-align: center;
}
.section-title {
  font-size: var(--font-size-title-small);
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: .75rem;
}

/* Lead */
.lead {
  font-size: var(--font-size-default);
  margin-bottom: 1.25rem;
  text-align: right;
}
.lead p {
  margin-top: .125rem;
}

/* Warning Box */
.warning-box {
  border: 3px solid var(--color-accent);
  background-color: var(--color-accent-pale);
  padding: 1.25rem;
  margin: 2rem 0 0;
  border-radius: var(--round-medium);
  color: var(--color-accent);
}
.warning-title {
  font-size: var(--font-size-default);
  font-weight: bold;
  margin-bottom: .5rem;
}

/* News */
.news-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.news-item:last-child {
  border-bottom: none;
}
.news-item .news-date {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-right: 1rem;
  min-width: 120px;
  padding-top: .125rem;
}
.news-item .news-content {
  flex: 1;
}

/* FAQ */
.faq-contents {
  margin-top: 2rem;
}
.faq-item {
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--round-medium);
  overflow: hidden;
}
.faq-item dt {
  position: relative;
  background-color: var(--color-primary-light);
  color: var(--color-white);
  padding: 1rem;
  font-size: var(--font-size-default);
  font-weight: bold;
  display: flex;
  gap: .5rem;
}
.faq-item dd {
  background-color: var(--color-background);
  color: var(--color-text);
  padding: 1rem;
  margin: 0;
  border-top: 1px solid var(--color-border);
}
.faq-item dd p {
  margin-bottom: 1rem;
  line-height: 1.6;
}
.faq-item dd p:last-child {
  margin-bottom: 0;
}

/* Contact Form Styles */
.contact-form-container {
  padding: 0;
}
.contact-form {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--round-medium);
  box-shadow: var(--shadow-small);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-text);
}
.required {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.25rem 0.5rem;
  border-radius: var(--round-small);
  font-size: var(--font-size-x-small);
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--color-border);
  border-radius: var(--round-small);
  font-size: var(--font-size-default);
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.form-textarea {
  resize: vertical;
  min-height: 15rem;
}
.error-message {
  color: var(--color-accent);
  font-size: var(--font-size-small);
  margin-top: 0.5rem;
  display: none;
}
.form-submit {
  text-align: center;
  margin-top: 2rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal-content {
  background-color: var(--color-white);
  margin: 5% auto;
  padding: 0;
  border-radius: var(--round-medium);
  width: 90%;
  height: 90%;
  max-width: 600px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.3s ease;
  display: flex;
  flex-direction: column;
}
@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-header {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-title-small);
}
.close {
  color: var(--color-text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}
.close:hover,
.close:focus {
  color: var(--color-text);
}
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* Confirm Modal Styles */
.confirm-item {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.confirm-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.confirm-item label {
  font-weight: 600;
  color: var(--color-text);
  display: block;
  margin-bottom: 0.5rem;
}

.confirm-item div {
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.confirm-message {
  white-space: pre-wrap;
}

/* Thank Modal Styles */
.thank-message {
  text-align: center;
  padding: 2rem 0;
}

.thank-message p {
  margin-bottom: 1rem;
  color: var(--color-text);
  font-size: var(--font-size-default);
}

.thank-message p:last-child {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 1rem 0;
}
.copy {
  font-size: var(--font-size-default);
  margin-bottom: .5rem;
}
.powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .5;
}
.powered-by span {
  font-size: var(--font-size-small); 
}
.powered-by img {
  width: 80px;
  margin-left: .5rem;
}

@media (min-width: 1024px) {
  /* Button */
  .button:hover {
    background: var(--color-primary-light);
  }
  .button:disabled {
    background: var(--color-border);
    cursor: not-allowed;
  }
  .button.gray:hover {
    background: var(--color-gray-light);
  }

  .contact-form {
    padding: 2rem;
  }
}