:root {
  --inbound-ink: #17211b;
  --inbound-muted: #5f6c64;
  --inbound-line: #dce5df;
  --inbound-soft: #f4f8f5;
  --inbound-green: #176b45;
  --inbound-green-dark: #0d4d31;
  --inbound-accent: #eef7f1;
}

* { box-sizing: border-box; }

body.inbound-page {
  margin: 0;
  color: var(--inbound-ink);
  background: #fff;
  font-family: Inter, "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

body.inbound-line-enabled { padding-bottom: 82px; }

.inbound-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.inbound-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--inbound-line);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
}

.inbound-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.inbound-brand { color: var(--inbound-ink); text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; }
.inbound-nav, .inbound-language-links, .inbound-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.inbound-nav a, .inbound-language-links a { color: var(--inbound-muted); text-decoration: none; font-size: .93rem; }
.inbound-nav a:hover, .inbound-language-links a:hover { color: var(--inbound-green); }

.core-language-links { display: flex; align-items: center; gap: 10px; }
.core-language-links a { color: inherit; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.core-language-links a:hover, .core-language-links a:focus-visible { color: var(--inbound-green); text-decoration: underline; }
.core-language-short { display: none; }

.inbound-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--inbound-green);
  border-radius: 999px;
  color: var(--inbound-green);
  background: #fff;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.inbound-button.primary { color: #fff; background: var(--inbound-green); }
.inbound-button.primary:hover { background: var(--inbound-green-dark); }

.inbound-hero { padding: 82px 0 54px; background: linear-gradient(145deg, #fff 0%, var(--inbound-accent) 100%); }
.inbound-eyebrow { margin: 0 0 10px; color: var(--inbound-green); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.inbound-hero h1 { max-width: 880px; margin: 0; font-size: clamp(2rem, 5vw, 4.25rem); line-height: 1.13; letter-spacing: -.035em; }
.inbound-lead { max-width: 800px; margin: 22px 0 0; color: var(--inbound-muted); font-size: clamp(1.02rem, 2vw, 1.25rem); }
.inbound-hero .inbound-actions { margin-top: 30px; }

.inbound-section { padding: 64px 0; }
.inbound-section.alt { background: var(--inbound-soft); }
.inbound-section h2 { margin: 0 0 18px; font-size: clamp(1.55rem, 3vw, 2.4rem); line-height: 1.25; }
.inbound-section-intro { max-width: 780px; margin: 0 0 28px; color: var(--inbound-muted); }

.inbound-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.inbound-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inbound-card { padding: 24px; border: 1px solid var(--inbound-line); border-radius: 18px; background: #fff; }
.inbound-card img { display: block; width: 100%; max-width: 100%; height: auto; }
figure.inbound-card { margin: 0; overflow: hidden; }
.inbound-card h2, .inbound-card h3 { margin: 0 0 10px; }
.inbound-card p { margin: 0; color: var(--inbound-muted); }
.inbound-card a { color: var(--inbound-green); font-weight: 700; }

.inbound-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.inbound-product-card { overflow: hidden; border: 1px solid var(--inbound-line); border-radius: 18px; background: #fff; }
.inbound-product-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--inbound-soft); }
.inbound-product-card-body { padding: 18px; }
.inbound-product-card h2, .inbound-product-card h3 { margin: 0 0 8px; font-size: 1.1rem; line-height: 1.45; }
.inbound-product-card p { margin: 0 0 12px; color: var(--inbound-muted); font-size: .94rem; }
.inbound-product-card a { color: var(--inbound-green); text-decoration: none; font-weight: 750; }

.inbound-breadcrumb { padding: 22px 0 0; color: var(--inbound-muted); font-size: .9rem; }
.inbound-breadcrumb a { color: inherit; }

.inbound-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 46px; align-items: start; }
.inbound-detail-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto;
  border-radius: 20px;
  background: var(--inbound-soft);
}
.inbound-detail-copy h1 { margin: 0 0 16px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.16; }
.inbound-detail-copy > p { color: var(--inbound-muted); }
.inbound-specs { margin: 28px 0; border-top: 1px solid var(--inbound-line); }
.inbound-spec-row { display: grid; grid-template-columns: minmax(120px, .36fr) 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--inbound-line); }
.inbound-spec-row dt { color: var(--inbound-muted); }
.inbound-spec-row dd { margin: 0; font-weight: 650; }

.inbound-rule-list { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: inbound-rule; }
.inbound-rule-list li { position: relative; margin: 0 0 12px; padding: 14px 16px 14px 50px; border-radius: 14px; background: var(--inbound-soft); }
.inbound-rule-list li::before { counter-increment: inbound-rule; content: counter(inbound-rule); position: absolute; left: 15px; top: 13px; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--inbound-green); text-align: center; line-height: 24px; font-weight: 800; }

.inbound-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 28px; border: 1px solid var(--inbound-line); border-radius: 20px; background: #fff; }
.inbound-form label { display: grid; gap: 7px; font-weight: 700; }
.inbound-form label.full, .inbound-form .full { grid-column: 1 / -1; }
.inbound-form input, .inbound-form textarea, .inbound-form select { width: 100%; padding: 12px 14px; border: 1px solid #bdcbc2; border-radius: 10px; color: var(--inbound-ink); background: #fff; font: inherit; }
.inbound-form input:focus, .inbound-form textarea:focus, .inbound-form select:focus { outline: 3px solid rgba(23,107,69,.16); border-color: var(--inbound-green); }
.inbound-form small { color: var(--inbound-muted); font-weight: 400; }
.inbound-form-status { min-height: 28px; color: var(--inbound-green-dark); font-weight: 700; }
.inbound-image-previews { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.inbound-image-previews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--inbound-line); }
.inbound-upload-progress { height: 8px; overflow: hidden; border-radius: 99px; background: var(--inbound-line); }
.inbound-upload-progress > span { display: block; width: 0; height: 100%; background: var(--inbound-green); transition: width .15s linear; }
.inbound-upload-list { display: grid; gap: 8px; }
.inbound-upload-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; background: var(--inbound-soft); color: var(--inbound-muted); font-size: .9rem; }
.inbound-upload-item strong { min-width: 0; overflow: hidden; color: var(--inbound-ink); text-overflow: ellipsis; white-space: nowrap; }
.inbound-upload-item[data-state="uploaded"] span { color: var(--inbound-green-dark); font-weight: 750; }
.inbound-upload-item[data-state="failed"] span { color: #a12622; font-weight: 750; }

.inbound-faq details { padding: 18px 0; border-bottom: 1px solid var(--inbound-line); }
.inbound-faq summary { cursor: pointer; font-weight: 750; }
.inbound-faq p { color: var(--inbound-muted); }

.inbound-line-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 24px; border-radius: 18px; background: #edf9f0; }
.inbound-line-box p { margin: 4px 0 0; color: var(--inbound-muted); }

/* Core contact pages share this stylesheet with the static inquiry pages. Keep
   grid children and native controls from forcing a wider mobile viewport. */
.contact-layout,
.contact-layout > *,
.contact-form label,
.contact-form input,
.contact-form select,
.contact-form textarea { min-width: 0; max-width: 100%; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; }

.inbound-line-float {
  position: fixed;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1000;
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: #06c755;
  box-shadow: 0 10px 30px rgba(0, 76, 41, .28);
  font-family: Inter, "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}
.inbound-line-float:hover, .inbound-line-float:focus-visible { color: #fff; background: #04ad49; transform: translateY(-1px); }
.inbound-line-float:focus-visible { outline: 3px solid rgba(6, 199, 85, .3); outline-offset: 3px; }
.inbound-line-float-id { font-size: .78rem; font-weight: 750; opacity: .9; }
.inbound-line-float-label,
.inbound-line-float-id { flex: 0 0 auto; white-space: nowrap; }
.inquiry-success-open .inbound-line-float { display: none; }

.localized-file-picker {
  position: relative;
  display: block;
  min-height: 48px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--inbound-line);
  border-radius: 10px;
  background: #fff;
}
.localized-file-picker input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.localized-file-picker-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: var(--inbound-navy);
  font-weight: 800;
}
.localized-file-picker:focus-within {
  outline: 3px solid rgba(6, 199, 85, .2);
  outline-offset: 2px;
}

.inbound-footer { padding: 34px 0; border-top: 1px solid var(--inbound-line); color: var(--inbound-muted); }
.inbound-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.inbound-static-summary { margin: 48px auto; padding: 28px; border: 1px solid var(--inbound-line); border-radius: 18px; background: var(--inbound-soft); }
.inbound-static-summary h1, .inbound-static-summary h2 { margin-top: 0; }
.inbound-static-summary a { color: var(--inbound-green); font-weight: 700; }

@media (max-width: 860px) {
  .inbound-nav { display: none; }
  .inbound-detail, .inbound-grid, .inbound-grid.two, .inbound-product-grid { grid-template-columns: 1fr 1fr; }
  .inbound-detail { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .inbound-shell { width: min(100% - 28px, 1160px); }
  .inbound-header-inner { min-height: 64px; }
  .inbound-language-links { gap: 10px; }
  .inbound-language-links a { font-size: .8rem; }
  .inbound-hero { padding: 54px 0 40px; }
  .inbound-section { padding: 46px 0; }
  .inbound-grid, .inbound-grid.two, .inbound-product-grid, .inbound-form { grid-template-columns: 1fr; }
  .inbound-form { padding: 20px; }
  .inbound-form label.full, .inbound-form .full { grid-column: auto; }
  .inbound-image-previews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inbound-line-box { align-items: flex-start; flex-direction: column; }
  .contact-form, .contact-layout .contact-card { width: 100%; padding: 20px; }
  .core-language-links { display: grid; grid-template-columns: repeat(2, minmax(24px, 1fr)); gap: 2px 6px; }
  .core-language-links a { text-align: center; font-size: 10px; line-height: 1.2; }
  .core-language-full { display: none; }
  .core-language-short { display: inline; }
  .inbound-line-float {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 54px;
    min-width: 54px;
    min-height: 54px;
    max-width: 54px;
    gap: 0;
    padding: 0;
    font-size: 0;
  }
  .inbound-line-float-label::after {
    content: "LINE";
    font-size: .72rem;
    letter-spacing: .02em;
  }
  .inbound-line-float-id { display: none; }
  body.inbound-line-enabled { padding-bottom: 78px; }
}

@media print { .inbound-line-float { display: none; } }
