* {
  box-sizing: border-box;
}

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

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

.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;
  display: block;
  flex: 0 0 100%;
}

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

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

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

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

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

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

.notice {
  background: #f5e6d3;
  border-left: 4px solid #cd853f;
  padding: 1rem 1.25rem;
  font-weight: 700;
  color: #8b4513;
  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 #cd853f;
}
.apply-online form > p {
  display: block;
  margin: 0 0 1rem 0;
  flex: 0 0 100%;
}

@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 #d2b48c;
  border-radius: 4px;
  background-color: #faf8f5;
}

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

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

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

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

.apply-table th {
  background: #e6ddd4;
  font-weight: 700;
}

.apply-table td {
  background: #faf8f5;
}

.apply-table input[type="number"] {
  width: 60px;
  text-align: center;
  border: 1px solid #d2b48c;
  background: #fff;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
}

.apply-table input[type="text"] {
  width: 100%;
  text-align: center;
  border: 1px solid #d2b48c;
  background: #fff;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
}

.apply-table select {
  width: 100px;
  text-align: center;
  border: 1px solid #d2b48c;
  background: #fff;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
  border-radius: 3px;
}

.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 #000;
}

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

/* 子要素がパディングを潰さないよう縮小を許可 */
.order-container .order-row > * {
  min-width: 0;
}

/* 二列行は通常のflexで運用（グリッドを撤回） */
.order-container .order-row.two-cols {
}

/* half ラッパーをflexに戻す */
.two-cols .half {
  flex: 1;
  display: flex;
  align-items: center;
}

/* ラベル幅を固定に戻す */
.field-label {
  width: 110px;
  flex-shrink: 0;
  font-weight: 700;
  padding-right: 1rem;
}

/* ご氏名だけ入力欄に近づける */
.field-label.label-tight {
  padding-left: 2rem;
}

/* PDF作成時間に関する注意文を中央揃え */
.generate-bottom + p {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

/* date-box をflexに戻す */
.order-container .date-box {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px dashed #000;
}

/* 入力欄の幅100%指定を撤回 */
.order-container input,
.order-container textarea {
  flex: 1;
  border: 1px solid #d2b48c;
  background: #faf8f5;
  padding: 0.5rem 0.6rem;
  font-size: 1.05rem;
  border-radius: 4px;
}

/* 二列行での余白指定を撤回 */
.order-container .order-row.two-cols input:first-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.6rem;
  padding-right: 0.6rem;
}

.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: #e6ddd4;
}

.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: #8b4513;
  color: #fff;
  text-align: center;
  font-weight: 700;
}

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

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

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

.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);
  }
} 