/* =========================================================
   meishi.css
   カラー名刺ページ専用CSS
========================================================= */

/* =========================
   HERO
========================= */

.hero {
  position: relative;

  min-height: 470px;

  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,0.98) 0%,
      rgba(255,255,255,0.94) 27%,
      rgba(255,255,255,0.72) 42%,
      rgba(255,255,255,0.18) 58%,
      rgba(255,255,255,0) 70%
    ),
    url("/images/meishi-hero.png");

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;

  overflow: hidden;
}

.hero-inner {
  width: min(calc(100% - 40px), 1180px);
  min-height: 470px;
  margin-inline: auto;

  display: flex;
  align-items: center;
}

.hero-content {
  width: 47%;
  padding: 46px 0;

  position: relative;
  z-index: 2;
}

.hero-copy {
  margin: 0 0 8px;

  color: var(--color-primary);
  font-size: 16px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;

  color: #003b7a;

  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-lead {
  margin: 20px 0 18px;

  color: #17385b;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.65;
}

.hero-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;

  gap: 6px;

  color: var(--color-accent);
}

.hero-price-small {
  font-size: 26px;
  font-weight: 800;
}

.hero-price strong {
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1;
}

.hero-price span:last-child {
  font-size: 18px;
  font-weight: 700;
}

.hero-price-note {
  margin: 8px 0 22px;

  color: #333;

  font-weight: 700;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* =========================
   HERO TABLET
========================= */

@media (max-width: 980px) {

  .hero {
    min-height: 430px;

    background-position: 62% center;

    background-image:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.98) 0%,
        rgba(255,255,255,0.92) 38%,
        rgba(255,255,255,0.55) 58%,
        rgba(255,255,255,0.05) 78%
      ),
      url("/images/meishi-hero.png");
  }

  .hero-inner {
    min-height: 430px;
  }

  .hero-content {
    width: 58%;
  }

}


/* =========================
   HERO SMARTPHONE
========================= */

@media (max-width: 640px) {

  .hero {
    min-height: auto;

    background-position: 72% center;

    background-image:
      linear-gradient(
        90deg,
        rgba(255,255,255,0.99) 0%,
        rgba(255,255,255,0.96) 58%,
        rgba(255,255,255,0.70) 78%,
        rgba(255,255,255,0.28) 100%
      ),
      url("/images/meishi-hero.png");
  }

  .hero-inner {
    width: calc(100% - 28px);

    min-height: 430px;
  }

  .hero-content {
    width: 88%;

    padding: 34px 0;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero-price-small {
    font-size: 20px;
  }

  .hero-price strong {
    font-size: 42px;
  }

  .hero-price span:last-child {
    font-size: 14px;
  }

  .hero-buttons {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr;

    gap: 10px;
  }

}

/* =========================
   BENEFITS
========================= */

.benefits {
  border-top: 1px solid #e7ecf1;
  border-bottom: 1px solid #e7ecf1;
  background: #f9fcff;
}

.benefits-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 0.95fr;
  gap: 0;
}

.benefit-card,
.benefit-message {
  min-height: 140px;
  padding: 24px 18px;
}

.benefit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ecf7fd;
  border-right: 1px solid #d9eaf4;
}

.benefit-card img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}

.benefit-card h2 {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

.benefit-card p {
  margin: 0;
  font-size: 12px;
  color: #555;
}

.benefit-message {
  display: grid;
  place-items: center;
  background: #fff;
  position: relative;
}

.benefit-message::before,
.benefit-message::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 70%;
  background: #f5bd19;
  transform: rotate(8deg);
}

.benefit-message::before {
  left: 18px;
}

.benefit-message::after {
  right: 18px;
}

.benefit-message p {
  margin: 0;
  color: #0b4d92;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.benefit-message strong {
  font-size: 24px;
}

/* =========================
   PRICE + PAPER
========================= */

.price-paper {
  padding-top: 44px;
}

.price-area .btn-wide {
  margin-top: 20px;
}

.paper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.paper-card {
  text-align: center;
}

.paper-card img {
  width: 100%;
  aspect-ratio: 4 / 2.7;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.paper-card h3 {
  margin: 12px 0 2px;
  font-size: 16px;
}

.paper-card p {
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
  text-align: left;
}

.paper-area > .btn {
  display: flex;
  width: min(280px, 100%);
  margin: 24px auto 0;
}


/* =========================
   PRICE TABS
========================= */

.price-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: 16px;
}

.price-tab {
  min-height: 58px;
  padding: 8px 5px;

  border: 1px solid #cbd7e2;
  border-radius: 5px;

  background: #fff;
  color: var(--color-primary-dark);

  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;

  cursor: pointer;

  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.price-tab:hover {
  background: #eef7fd;
  border-color: var(--color-primary);
}

.price-tab.active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.price-panel {
  display: none;
}

.price-panel.active {
  display: block;
}

.price-panel-title {
  margin: 0 0 10px;
  padding: 8px 12px;

  background: #f3f8fc;

  border-left: 4px solid var(--color-primary);

  color: var(--color-primary-dark);

  font-size: 15px;
  font-weight: 700;
}

/* =========================
   DATA / SAMPLE
========================= */

.data-sample {
  padding-top: 20px;
}

.data-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 18px;
  background: #f4f8fb;
  border-radius: 4px;
}

.data-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.data-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin: auto;
}

.data-item p {
  margin: 8px 0 0;
  font-size: 13px;
}

.flow-arrow {
  color: #9aa8b5;
  font-size: 34px;
  line-height: 1;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sample-grid img {
  width: 100%;
  aspect-ratio: 91 / 55;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* =========================
   ORDER FLOW
========================= */

.order-flow {
  padding-top: 16px;
}

.order-flow .section-inner {
  padding: 18px;
  background: #eef8fe;
}

.order-flow .section-title {
  margin-bottom: 14px;
}

.order-flow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border: 1px solid #d7e5ef;
}

.order-flow-list li {
  min-height: 128px;
  padding: 16px 12px;
  display: grid;
  grid-template-columns: auto 42px 1fr;
  gap: 8px;
  align-items: start;
  border-right: 1px solid #e3e8ed;
  position: relative;
}

.order-flow-list li:last-child {
  border-right: 0;
}

.step-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #188bd1;
  color: #fff;
  font-weight: 800;
}

.order-flow-list img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.order-flow-list h3 {
  margin: 0 0 3px;
  color: var(--color-primary);
  font-size: 14px;
}

.order-flow-list p {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================
   ORDER FORM
========================= */

.order-section {
  padding-top: 20px;
}

.current-price {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 6px;
  background: #fff2bf;
  text-align: center;
}

.current-price p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.current-price strong {
  display: inline-block;
  margin-top: 2px;
  color: var(--color-accent);
  font-size: 34px;
  line-height: 1.2;
}

.current-price span {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   SHOP INFO
========================= */

.shop-info-text h2 {
  margin-top: 0;
  font-size: 24px;
}

.shop-info-text p {
  font-size: 14px;
}

/* =========================
   MOBILE FIXED CTA
   ※必要ならHTML側に追加して使えます
========================= */

.mobile-order-cta {
  display: none;
}

/* =========================
   RESPONSIVE 980
========================= */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 48px 30px;
  }

  .hero-image {
    min-height: 320px;
  }

  .benefits-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-card {
    border-bottom: 1px solid #d9eaf4;
  }

  .benefit-message {
    grid-column: 1 / -1;
    min-height: 110px;
  }

  .paper-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .order-flow-list {
    grid-template-columns: 1fr;
  }

  .order-flow-list li {
    border-right: 0;
    border-bottom: 1px solid #e3e8ed;
  }

  .order-flow-list li:last-child {
    border-bottom: 0;
  }
}

/* =========================
   RESPONSIVE 640
========================= */

@media (max-width: 640px) {

  .hero-content {
    padding: 32px 18px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-price-small {
    font-size: 21px;
  }

  .hero-price strong {
    font-size: 43px;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-image {
    min-height: 260px;
  }

  .benefits-inner {
    grid-template-columns: 1fr;
  }

  .benefit-card {
    border-right: 0;
  }

  .paper-grid {
    grid-template-columns: 1fr;
  }

  .paper-card {
    max-width: 420px;
    margin-inline: auto;
  }

  .data-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
  }

  .flow-arrow {
    display: none;
  }

  .data-item {
    min-width: 0;
  }

  .data-item img {
    width: 55px;
    height: 55px;
  }

  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sample-grid,
  .sample-grid > * {
    min-width: 0;
  }

  .sample-grid img {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .order-flow .section-inner {
    width: calc(100% - 20px);
    padding: 12px;
  }

  .current-price strong {
    font-size: 29px;
  }

  .mobile-order-cta {
    display: block;
    position: fixed;
    z-index: 99;
    left: 12px;
    right: 12px;
    bottom: 10px;
  }

  .mobile-order-cta .btn {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2);
  }

  body {
    padding-bottom: 74px;
  }
}

/* =========================
   MOBILE HORIZONTAL OVERFLOW FIX
========================= */
@media (max-width: 640px) {
  .order-form,
  .order-form-layout,
  .order-options,
  .customer-info,
  .form-group,
  fieldset.form-group,
  .shipping-prefecture,
  .payment-note,
  .current-price {
    min-width: 0;
    max-width: 100%;
  }

  .order-options,
  .customer-info,
  .shipping-prefecture,
  .payment-note,
  .current-price {
    box-sizing: border-box;
  }

  .shipping-group .choice-button,
  .payment-group .choice-button {
    width: 100%;
    margin-right: 0;
    box-sizing: border-box;
  }

  .shipping-group .choice-button span,
  .payment-group .choice-button span {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .shipping-prefecture select,
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group select,
  .form-group textarea {
    max-width: 100%;
    box-sizing: border-box;
  }

  .small-note,
  .payment-note,
  #shippingRegionNote {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}


/* =========================
   PAYMENT DISABLED STATE
========================= */
.payment-group .choice-button input:disabled + span {
  background: #f3f4f6;
  color: #a7adb4;
  border-color: #d9dde2;
  box-shadow: none;
  opacity: 0.72;
  cursor: not-allowed;
}

.payment-group .choice-button:has(input:disabled) {
  cursor: not-allowed;
}


/* =========================
   ORDER TYPE / REORDER UI
========================= */
.order-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.order-type-group .choice-button {
  width: 100%;
  margin: 0;
}
.order-type-group .choice-button span {
  width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reorder-info,
.change-details {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid #cddde9;
  border-radius: 6px;
  background: #f4f9fd;
}
.reorder-info h3 {
  margin: 0 0 6px;
  color: var(--color-primary-dark);
  font-size: 18px;
}
.reorder-info .form-group:last-child {
  margin-bottom: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .order-type-options {
    grid-template-columns: 1fr;
  }
  .reorder-info,
  .change-details {
    padding: 14px;
  }
}
