* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #e50012;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.content {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.campaign{
  margin-bottom: 2rem;
}

.campaign h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.campaign h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.apply-online h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.apply-online h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.apply-online h4 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}

.campaign ul,
.campaign ol {
  margin: 1rem 0 1.5rem 1.25rem;
}

.cta-button {
  display: inline-block;
  background: #e63946;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background: #d62839;
}

.campaign .cta-button + .cta-button {
  margin-left: 1rem;
  margin-top: 0.5rem;
}

.footer {
  background: #f5f5f5;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.875rem;
  color: #777;
}

.campaign-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #e63946;
  margin: 0 0 1rem 0;
  text-align: center;
}

.notice {
  background: #ffe6e6;
  border-left: 4px solid #e63946;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 1.5rem;
  position: relative;
}

.notice::before {
  content: "\26A0\FE0F";
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.notice {
  padding-left: 3rem;
}

@media (max-width: 767px) {
  .hero {
  }
  .hero-image {
    height: auto;
  }
}

@media (min-width: 768px) {
  .campaign h2 {
    font-size: 2.5rem;
  }
  .campaign h3 {
    font-size: 1.75rem;
  }
  .cta-button {
    font-size: 1.125rem;
  }
  .campaign-title {
    font-size: 2.75rem;
  }

  .hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
  }

  .hero-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: center center;
    display: block;
  }

  .apply-online h2 {
    font-size: 2.5rem;
  }
  .apply-online h3 {
    font-size: 1.75rem;
  }
}

.apply-online {
  padding: 2rem 0;
  border-top: 6px solid #e53935;
}

@media (min-width: 768px) {
  .apply-online {
    padding: 3rem 0;
  }
}

.apply-online form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.apply-online label {
  font-weight: 700;
}

.apply-online select,
.apply-online input[type="number"] {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cta-button.small {
  padding: 0.5rem 1.5rem;
  font-size: 0.95rem;
}

.small-note {
  font-size: 0.875rem;
  color: #555;
}

.apply-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.apply-table th,
.apply-table td {
  border: 1px solid #ddd;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.apply-table th {
  background: #f2f2f2;
}

.apply-online textarea,
.apply-online input[type="text"],
.apply-online input[type="tel"],
.apply-online input[type="date"] {
  width: 100%;
  max-width: 480px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.generate-bottom {
  display: block;
  margin: 2rem auto 0 auto;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  max-width: 220px;
}

.generate-bottom.cta-button.small {
  padding: 1rem 3rem;
  font-size: 1.2rem;
}

.order-container {
  border: 2px solid #000;
  margin-bottom: 1rem;
}

.order-container .date-box {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px dashed #ccc;
}

.order-container .order-row {
  display: flex;
  align-items: center;
  border-bottom: 1px dashed #ccc;
  padding: 0.5rem 0.6rem;
}

.order-container .order-row:last-child {
  border-bottom: none;
}

.field-label {
  width: 110px;
  flex-shrink: 0;
  font-weight: 700;
}

.order-container input,
.order-container textarea,
.agency-row input {
  flex: 1;
  border: 1px solid #bbb;
  background: #fff;
  padding: 0.5rem 0.6rem;
  font-size: 1.05rem;
  border-radius: 4px;
}

.order-container textarea {
  resize: vertical;
  min-height: 2.5rem;
}

.two-cols {
  justify-content: space-between;
}

.two-cols .half {
  flex: 1;
  display: flex;
  align-items: center;
}

.two-cols .half:first-child {
  margin-right: 0.5rem;
}

.sama {
  margin-left: 0.25rem;
}

.agency-heading {
  margin-top: 1.5rem;
  font-weight: 700;
}

.agency-container {
  border: 2px solid #000;
  margin-bottom: 1.5rem;
}

.agency-row {
  display: flex;
}

.agency-row .half {
  flex: 1;
  display: flex;
  align-items: center;
  border-right: 1px solid #ccc;
  padding: 0.5rem 0.6rem;
}

.agency-row .half:last-child {
  border-right: none;
}

.agency-row .field-label {
  width: 110px;
  flex-shrink: 0;
}

.agency-row input {
  flex: 1;
  border: 1px solid #bbb;
  background: #fff;
  padding: 0.5rem 0.6rem;
  font-size: 1.05rem;
  border-radius: 4px;
}

.date-part {
  width: 4rem;
  text-align: center;
  margin-right: 0.25rem;
}

.date-part:last-of-type {
  margin-right: 0;
}

.field-label.small {
  min-width: 45px;
  margin-right: 0.25rem;
  text-align: right;
}

.order-container .order-row.two-cols {
  padding-left: 0;
  padding-right: 0;
}

.two-cols .half input[type="tel"] {
  max-width: none;
  width: 100%;
}

.agency-row {
  border-top: none;
}

.sku-table th,
.sku-table td {
  border: 1px solid #000;
}

.sku-table th {
  background: #f8f8f8;
}

.order-container,
.agency-container {
  flex: 1 1 100%;
  width: 100%;
}

.total-line {
  text-align: right;
  font-weight: 700;
  margin: 0.5rem 0 1rem 0;
  flex: 1 1 100%;
  width: 100%;
}

.total-row .total-label,
.total-row .total-value {
  background: #000;
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: upright;
  text-align: center;
  font-weight: 700;
  width: 30px;
}

.total-row .total-value {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.total-label-cell {
  background: #000;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.total-qty-cell {
  text-align: center;
  font-weight: 700;
}

.total-empty {
  border: none !important;
}

.zip-input {
  max-width: 140px;
}

.address-area {
  min-height: 4.5rem;
  width: 100%;
  max-width: none !important;
}

.fax-destinations {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.fax-destinations ul {
  margin: 0.5rem 0 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.fax-destinations li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 0 0 100%;
}

.fax-destinations .branch-name {
  white-space: nowrap;
  flex: 0 0 8em; /* 幅を狭めて間隔を詰める */
}

.fax-destinations .fax-num {
  font-variant-numeric: tabular-nums;
}

@media (min-width: 600px) {
  .fax-destinations li {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .fax-destinations li {
    flex: 0 0 calc(33.333% - 1rem);
  }
} 