/* =========================================================
   shop-common.css
   アップヒル印刷社 EC/商品ページ共通CSS
========================================================= */

:root {
  --color-primary: #0057a6;
  --color-primary-dark: #003f7d;
  --color-accent: #ef3d23;
  --color-accent-dark: #cf2c15;
  --color-text: #222;
  --color-muted: #666;
  --color-border: #d9e0e7;
  --color-bg-light: #f5f9fc;
  --color-bg-blue: #eaf5fc;
  --color-white: #fff;

  --max-width: 1180px;
  --radius: 8px;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* =========================
   RESET / BASE
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Meiryo",
    sans-serif;
  color: var(--color-text);
  background: #fff;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* =========================
   COMMON WIDTH
========================= */

.section-inner,
.header-inner,
.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.section-block {
  padding: 56px 0;
}

/* =========================
   HEADER
========================= */

.site-header {
  background: #fff;
  border-top: 4px solid var(--color-primary);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 20;
}

.header-inner {
  min-height: 90px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 28px;
  align-items: center;
}

.header-logo img {
  max-width: 210px;
}

.header-logo p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--color-muted);
}

.global-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.global-nav a {
  font-size: 14px;
  font-weight: 700;
  color: #24364a;
}

.global-nav a:hover {
  color: var(--color-primary);
}

.header-contact {
  text-align: right;
}

.header-message,
.header-hours {
  margin: 0;
  font-size: 11px;
  color: var(--color-muted);
}

.header-tel {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.3;
}

.btn-contact {
  margin-top: 6px;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 13px;
}

/* =========================
   BUTTON
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg-blue);
}

.btn-contact {
  background: var(--color-accent);
  color: #fff;
}

.btn-wide {
  width: 100%;
}

.btn-submit {
  min-width: 360px;
  font-size: 18px;
}

/* =========================
   SECTION TITLE
========================= */

.section-title {
  margin: 0 0 24px;
  padding-left: 12px;
  border-left: 5px solid var(--color-primary);
  color: var(--color-primary-dark);
  font-size: 27px;
  line-height: 1.35;
}

.section-title span {
  margin-left: 8px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
}

/* =========================
   LAYOUT
========================= */

.two-column {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 36px;
  align-items: start;
}

/* =========================
   TABLE
========================= */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.price-table th,
.price-table td {
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  white-space: nowrap;
}

.price-table thead th {
  background: #e6eef5;
  font-weight: 700;
}

.price-table tbody th {
  background: #fafafa;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table th:last-child,
.price-table td:last-child {
  border-right: 0;
}

.price-emphasis {
  color: var(--color-accent);
  font-weight: 800;
}

/* =========================
   TAG
========================= */

.tag {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #2188d0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.tag-gray {
  background: #7d8790;
}

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

.order-form {
  background: #fff;
}

.order-form-layout {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 28px;
}

.order-options,
.customer-info {
  border: 1px solid var(--color-border);
  background: #fff;
  padding: 24px;
}

.customer-info h3 {
  margin-top: 0;
  color: var(--color-primary-dark);
}

.form-group {
  margin-bottom: 22px;
}

fieldset.form-group {
  padding: 0;
  border: 0;
}

.form-group legend,
.form-group > label:first-child {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #cbd4dd;
  border-radius: 4px;
  background: #fff;
  padding: 11px 12px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(0, 87, 166, 0.14);
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

.choice-button {
  display: inline-block;
  margin: 0 6px 8px 0;
  cursor: pointer;
}

.choice-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-button span {
  display: inline-block;
  min-width: 94px;
  padding: 9px 14px;
  border: 1px solid #cfd7df;
  border-radius: 4px;
  background: #fff;
  text-align: center;
  transition: 0.15s ease;
}

.choice-button input:checked + span {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
}

.file-upload {
  border: 1px dashed #b9c4ce;
  padding: 18px;
  background: #fafcfd;
}

.form-submit {
  margin-top: 30px;
  text-align: center;
}

.form-submit p {
  margin-top: 12px;
  color: var(--color-muted);
  font-size: 13px;
}

/* =========================
   NOTES
========================= */

.small-note {
  font-size: 12px;
  color: var(--color-muted);
}

/* =========================
   FAQ
========================= */

.faq {
  background: #fbfcfd;
}

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

.faq-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.faq-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--color-primary-dark);
}

.faq-card p {
  margin: 0;
  font-size: 14px;
}

.faq-card h3 span,
.faq-card p span {
  color: var(--color-accent);
  font-weight: 800;
}

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

.shop-info {
  background: #f7fafc;
}

.shop-info-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  align-items: center;
}

.shop-info-text h2 {
  color: var(--color-primary);
}

.shop-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #fff;
}

.footer-inner {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-company strong {
  font-size: 22px;
  color: var(--color-primary-dark);
}

.footer-company p,
.footer-address p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--color-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

.copyright {
  padding: 14px 20px;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 11px;
  color: #888;
}

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

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

  .global-nav {
    grid-column: 1 / -1;
    order: 3;
    padding-bottom: 14px;
  }

  .header-contact .header-message,
  .header-contact .header-hours {
    display: none;
  }

  .two-column,
  .order-form-layout,
  .shop-info-layout {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .section-block {
    padding: 40px 0;
  }

  .site-header {
    border-top-width: 3px;
  }

  .header-inner {
    min-height: auto;
    padding: 12px 0;
  }

  .header-logo img {
    max-width: 170px;
  }

  .header-contact {
    display: none;
  }

  .global-nav {
    overflow: visible;
  }

  .global-nav ul {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .global-nav a {
    font-size: 13px;
    white-space: nowrap;
  }

  .section-title {
    font-size: 23px;
  }

  .section-title span {
    display: block;
    margin: 3px 0 0;
    font-size: 14px;
  }

  .btn {
    width: 100%;
  }

  .btn-submit {
    min-width: 0;
  }

  .choice-button {
    width: calc(50% - 6px);
  }

  .choice-button span {
    width: 100%;
    min-width: 0;
  }

  .order-options,
  .customer-info {
    padding: 18px;
  }
}