:root {
  --omise-ink: #173229;
  --omise-ink-deep: #10261f;
  --omise-cream: #f7f2e8;
  --omise-paper: #fffdf8;
  --omise-line: #d9d3c7;
  --omise-coral: #e95c3d;
  --omise-coral-deep: #c94329;
  --omise-lime: #dbe86b;
  --omise-muted: #65736d;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

body > header {
  border-bottom-color: rgba(23, 50, 41, 0.12);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(14px);
}

body > header nav {
  align-items: center;
}

body > header .logo,
body > header .logo span,
body > header nav a {
  color: var(--omise-ink);
}

body > header nav a:last-child {
  border-radius: 999px;
  background: var(--omise-ink);
  color: #fff;
  padding: 10px 16px;
}

.portal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 18px auto 22px;
}

.portal-footer-links a {
  color: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.omise-main {
  color: var(--omise-ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(219, 232, 107, 0.4), transparent 24rem),
    linear-gradient(180deg, var(--omise-cream), #fff 44%, #f4efe5);
}

.omise-main *,
.omise-legal * {
  box-sizing: border-box;
}

.omise-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(380px, 0.97fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(72px, 9vw, 126px) max(28px, calc((100vw - 1180px) / 2));
}

.omise-hero::before {
  content: "";
  position: absolute;
  top: 64px;
  left: max(18px, calc((100vw - 1260px) / 2));
  width: 82px;
  height: 9px;
  background: var(--omise-coral);
  transform: rotate(-3deg);
}

.omise-kicker {
  margin: 0 0 18px;
  color: var(--omise-coral-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.omise-hero h1,
.omise-section-heading h2,
.omise-security h2,
.omise-events-bridge h2,
.omise-final-cta h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.17;
}

.omise-hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 6.3vw, 86px);
}

.omise-hero h1 em {
  position: relative;
  color: var(--omise-coral-deep);
  font-style: normal;
  white-space: nowrap;
}

.omise-hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -3px;
  bottom: 5px;
  left: -3px;
  height: 14px;
  border-radius: 999px;
  background: var(--omise-lime);
  transform: rotate(-1deg);
}

.omise-lead {
  max-width: 680px;
  margin: 30px 0 0;
  color: #3f554d;
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 2;
}

.omise-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.omise-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--omise-ink);
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.omise-button:hover {
  transform: translateY(-2px);
}

.omise-button-primary {
  border-color: var(--omise-coral);
  background: var(--omise-coral);
  box-shadow: 0 12px 24px rgba(201, 67, 41, 0.18);
  color: #fff;
}

.omise-button-primary:hover {
  background: var(--omise-coral-deep);
  box-shadow: 0 16px 30px rgba(201, 67, 41, 0.26);
}

.omise-button-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--omise-ink);
}

.omise-button-light {
  border-color: #fff;
  background: #fff;
  color: var(--omise-ink);
}

.omise-hero-note {
  margin: 16px 0 0;
  color: var(--omise-muted);
  font-size: 12px;
}

.omise-order-visual {
  position: relative;
  min-height: 500px;
  border-radius: 48% 52% 46% 54% / 38% 42% 58% 62%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--omise-ink);
  background-size: 28px 28px;
  box-shadow: 0 34px 80px rgba(16, 38, 31, 0.24);
}

.omise-ticket,
.omise-status-card,
.omise-qr-card {
  position: absolute;
  border: 1px solid rgba(23, 50, 41, 0.13);
  box-shadow: 0 18px 42px rgba(9, 25, 20, 0.22);
}

.omise-ticket-main {
  top: 66px;
  left: 50%;
  width: min(78%, 350px);
  min-height: 330px;
  border-radius: 24px;
  padding: 27px;
  background: var(--omise-paper);
  transform: translateX(-50%) rotate(2.4deg);
}

.omise-ticket-label {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--omise-lime);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.omise-ticket-main > strong {
  display: block;
  margin: 20px 0;
  font-size: 35px;
  letter-spacing: -0.04em;
}

.omise-ticket-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--omise-line);
  padding: 14px 0;
  font-size: 14px;
}

.omise-ticket-main button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  background: var(--omise-coral);
  color: #fff;
  font: inherit;
  font-weight: 900;
  pointer-events: none;
}

.omise-status-card {
  right: -20px;
  bottom: 42px;
  width: 210px;
  border-radius: 20px;
  padding: 22px;
  background: var(--omise-lime);
  transform: rotate(-4deg);
}

.omise-status-card span,
.omise-status-card small,
.omise-status-card b {
  display: block;
}

.omise-status-card span,
.omise-status-card small {
  font-size: 11px;
  font-weight: 800;
}

.omise-status-card b {
  margin: 11px 0;
  font-size: 18px;
}

.omise-qr-card {
  bottom: 22px;
  left: -18px;
  display: grid;
  grid-template-columns: repeat(3, 20px);
  grid-template-rows: 20px auto;
  gap: 4px;
  width: 132px;
  border-radius: 18px;
  padding: 17px;
  background: #fff;
  transform: rotate(5deg);
}

.omise-qr-card span {
  border: 5px solid var(--omise-ink);
  background: #fff;
}

.omise-qr-card b {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.11em;
  line-height: 1.25;
}

.omise-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid var(--omise-line);
  border-bottom: 1px solid var(--omise-line);
}

.omise-proof div {
  padding: 24px 22px;
  border-right: 1px solid var(--omise-line);
}

.omise-proof div:last-child {
  border-right: 0;
}

.omise-proof strong,
.omise-proof span {
  display: block;
}

.omise-proof strong {
  margin-bottom: 5px;
  color: var(--omise-coral-deep);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.omise-proof span {
  font-size: 13px;
  font-weight: 800;
}

.omise-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 118px 24px;
}

.omise-section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px 70px;
  align-items: end;
  margin-bottom: 50px;
}

.omise-section-heading .omise-kicker {
  grid-column: 1 / -1;
  margin-bottom: -10px;
}

.omise-section-heading h2,
.omise-security h2,
.omise-events-bridge h2,
.omise-final-cta h2 {
  font-size: clamp(38px, 4.6vw, 62px);
}

.omise-section-heading > p:last-child {
  margin: 0;
  color: var(--omise-muted);
  font-size: 16px;
  line-height: 1.9;
}

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

.omise-role-card {
  min-height: 310px;
  border: 1px solid var(--omise-line);
  border-radius: 24px;
  padding: 30px;
  background: rgba(255, 253, 248, 0.74);
}

.omise-role-card-accent {
  background: var(--omise-lime);
  transform: translateY(-18px);
}

.omise-role-number {
  color: var(--omise-coral-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.omise-role-card h3 {
  margin: 42px 0 18px;
  font-size: 29px;
}

.omise-role-card p {
  margin: 0 0 30px;
  color: #43584f;
  line-height: 1.85;
}

.omise-role-card small {
  display: block;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 50, 41, 0.16);
  font-weight: 800;
}

.omise-flow-section {
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  background:
    radial-gradient(circle at 84% 14%, rgba(219, 232, 107, 0.2), transparent 23rem),
    var(--omise-ink-deep);
  color: #fff;
}

.omise-section-heading-light {
  display: block;
}

.omise-section-heading-light .omise-kicker {
  color: var(--omise-lime);
}

.omise-flow-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 60px 0 0;
  padding: 0;
  list-style: none;
}

.omise-flow-list li {
  min-height: 230px;
  padding: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

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

.omise-flow-list li > b {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--omise-coral);
}

.omise-flow-list span,
.omise-flow-list strong,
.omise-flow-list small {
  display: block;
}

.omise-flow-list span {
  margin-top: 48px;
}

.omise-flow-list strong {
  margin-bottom: 10px;
  font-size: 20px;
}

.omise-flow-list small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.omise-plan-section {
  padding-bottom: 90px;
}

.omise-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.omise-plan-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--omise-line);
  border-radius: 28px;
  padding: 34px;
  background: var(--omise-paper);
}

.omise-plan-card-featured {
  background: var(--omise-ink);
  color: #fff;
}

.omise-plan-card > span {
  font-weight: 900;
}

.omise-plan-card > strong {
  display: block;
  margin: 30px 0 20px;
  color: var(--omise-coral);
  font-size: clamp(38px, 5vw, 57px);
  letter-spacing: -0.05em;
}

.omise-plan-card > strong small {
  margin-left: 8px;
  font-size: 14px;
  letter-spacing: 0;
}

.omise-plan-card p {
  max-width: 460px;
  line-height: 1.8;
  opacity: 0.78;
}

.omise-plan-card a {
  display: inline-block;
  margin-top: 12px;
  color: inherit;
  font-weight: 900;
  text-underline-offset: 5px;
}

.omise-plan-note {
  margin: 20px 4px 0;
  color: var(--omise-muted);
  font-size: 12px;
  line-height: 1.8;
}

.omise-plan-note a {
  color: inherit;
}

.omise-security {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 80px;
  padding: 110px max(24px, calc((100vw - 1180px) / 2));
  background: var(--omise-lime);
}

.omise-security-copy > p:not(.omise-kicker) {
  max-width: 600px;
  margin: 28px 0;
  line-height: 1.9;
}

.omise-security-copy > a {
  color: var(--omise-ink);
  font-weight: 900;
  text-underline-offset: 5px;
}

.omise-security-list {
  align-self: center;
  border-top: 1px solid rgba(23, 50, 41, 0.28);
}

.omise-security-list > div {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid rgba(23, 50, 41, 0.28);
}

.omise-security-list b {
  color: var(--omise-coral-deep);
  font-size: 12px;
}

.omise-security-list span,
.omise-security-list strong,
.omise-security-list small {
  display: block;
}

.omise-security-list strong {
  margin-bottom: 5px;
  font-size: 17px;
}

.omise-security-list small {
  opacity: 0.7;
}

.omise-support-section {
  padding-top: 92px;
  padding-bottom: 92px;
}

.omise-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 60px;
  border: 1px solid var(--omise-line);
  border-radius: 30px;
  padding: clamp(34px, 6vw, 70px);
  background: var(--omise-paper);
  box-shadow: 0 24px 70px rgba(23, 50, 41, 0.08);
}

.omise-support-card h2 {
  margin: 0 0 18px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.05em;
}

.omise-support-card p:not(.omise-kicker) {
  margin: 0;
  color: var(--omise-muted);
  line-height: 1.9;
}

.omise-support-links {
  display: grid;
  align-content: center;
}

.omise-support-links a {
  padding: 18px 4px;
  border-bottom: 1px solid var(--omise-line);
  color: var(--omise-ink);
  font-weight: 900;
  text-decoration: none;
}

.omise-support-links a::after {
  content: "→";
  float: right;
  color: var(--omise-coral);
}

.omise-events-bridge {
  max-width: 1180px;
  margin: 24px auto 0;
  border-radius: 34px;
  padding: clamp(48px, 8vw, 96px);
  background:
    radial-gradient(circle at 88% 20%, rgba(233, 92, 61, 0.72), transparent 21rem),
    linear-gradient(125deg, #173229, #244b3d);
  color: #fff;
}

.omise-events-bridge > span {
  display: block;
  margin-bottom: 18px;
  color: var(--omise-lime);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.omise-events-bridge p {
  max-width: 570px;
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.85;
}

.omise-final-cta {
  padding: 130px 24px;
  text-align: center;
}

.omise-actions-center {
  justify-content: center;
}

.omise-reveal {
  animation: omise-rise 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.omise-delay-1 {
  animation-delay: 100ms;
}

.omise-delay-2 {
  animation-delay: 200ms;
}

.omise-delay-3 {
  animation-delay: 300ms;
}

@keyframes omise-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.omise-legal {
  min-height: 70vh;
  padding: 72px 24px 110px;
  color: var(--omise-ink);
  background:
    radial-gradient(circle at 88% 0, rgba(219, 232, 107, 0.38), transparent 24rem),
    var(--omise-cream);
}

.omise-legal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.28fr) minmax(0, 0.72fr);
  gap: 60px;
  max-width: 1080px;
  margin: 0 auto;
}

.omise-legal-aside {
  align-self: start;
  position: sticky;
  top: 104px;
}

.omise-legal-aside .omise-kicker {
  margin-bottom: 12px;
}

.omise-legal-aside h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.05em;
  line-height: 1.25;
}

.omise-legal-meta {
  margin: 18px 0;
  color: var(--omise-muted);
  font-size: 12px;
}

.omise-legal-nav {
  display: grid;
  margin-top: 28px;
  border-top: 1px solid var(--omise-line);
}

.omise-legal-nav a {
  padding: 13px 0;
  border-bottom: 1px solid var(--omise-line);
  color: var(--omise-ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.omise-legal-content {
  border: 1px solid var(--omise-line);
  border-radius: 26px;
  padding: clamp(28px, 5vw, 64px);
  background: var(--omise-paper);
  box-shadow: 0 24px 70px rgba(23, 50, 41, 0.07);
}

.omise-legal-intro {
  margin: 0 0 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--omise-line);
  color: #40564e;
  font-size: 16px;
  line-height: 1.95;
}

.omise-legal-section + .omise-legal-section {
  margin-top: 42px;
}

.omise-legal-section h2 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.5;
}

.omise-legal-section p,
.omise-legal-section li,
.omise-legal-table th,
.omise-legal-table td {
  font-size: 14px;
  line-height: 1.9;
}

.omise-legal-section p {
  margin: 10px 0;
}

.omise-legal-section ol,
.omise-legal-section ul {
  margin: 10px 0;
  padding-left: 1.45em;
}

.omise-legal-table {
  width: 100%;
  border-collapse: collapse;
}

.omise-legal-table th,
.omise-legal-table td {
  padding: 16px 0;
  border-bottom: 1px solid var(--omise-line);
  vertical-align: top;
  text-align: left;
}

.omise-legal-table th {
  width: 28%;
  padding-right: 22px;
  color: var(--omise-muted);
}

@media (max-width: 980px) {
  body > header nav {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

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

  .omise-order-visual {
    width: min(600px, 92%);
    margin: 0 auto;
  }

  .omise-section-heading,
  .omise-support-card,
  .omise-security {
    grid-template-columns: 1fr;
  }

  .omise-role-grid {
    grid-template-columns: 1fr 1fr;
  }

  .omise-role-card:last-child {
    grid-column: 1 / -1;
  }

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

  .omise-flow-list li:nth-child(2) {
    border-right: 0;
  }

  .omise-security {
    gap: 52px;
  }
}

@media (max-width: 680px) {
  body > header {
    gap: 12px;
  }

  body > header .logo-mark small {
    display: none;
  }

  body > header nav {
    width: 100%;
    order: 2;
    padding-bottom: 3px;
  }

  body > header nav a {
    font-size: 12px;
  }

  .omise-hero {
    min-height: auto;
    padding: 72px 20px 86px;
  }

  .omise-hero::before {
    top: 38px;
  }

  .omise-hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .omise-hero h1 em {
    white-space: normal;
  }

  .omise-lead {
    line-height: 1.8;
  }

  .omise-actions,
  .omise-actions .omise-button {
    width: 100%;
  }

  .omise-order-visual {
    min-height: 420px;
    border-radius: 36px;
  }

  .omise-ticket-main {
    top: 40px;
    width: 83%;
    min-height: 295px;
    padding: 22px;
  }

  .omise-status-card {
    right: -8px;
    bottom: 22px;
    width: 174px;
    padding: 17px;
  }

  .omise-qr-card {
    bottom: 12px;
    left: -8px;
    transform: scale(0.84) rotate(5deg);
    transform-origin: bottom left;
  }

  .omise-proof {
    grid-template-columns: 1fr 1fr;
    margin: 0 20px;
  }

  .omise-proof div:nth-child(2) {
    border-right: 0;
  }

  .omise-proof div:nth-child(-n+2) {
    border-bottom: 1px solid var(--omise-line);
  }

  .omise-section {
    padding: 86px 20px;
  }

  .omise-section-heading {
    display: block;
    margin-bottom: 36px;
  }

  .omise-section-heading h2 {
    margin-bottom: 20px;
  }

  .omise-role-grid,
  .omise-plan-grid,
  .omise-flow-list {
    grid-template-columns: 1fr;
  }

  .omise-role-card:last-child {
    grid-column: auto;
  }

  .omise-role-card-accent {
    transform: none;
  }

  .omise-flow-section {
    padding: 86px 20px;
  }

  .omise-flow-list li,
  .omise-flow-list li:nth-child(2) {
    min-height: 170px;
    border-right: 0;
  }

  .omise-flow-list span {
    margin-top: 28px;
  }

  .omise-security {
    padding: 86px 20px;
  }

  .omise-events-bridge {
    margin: 10px 20px 0;
    border-radius: 26px;
    padding: 48px 28px;
  }

  .omise-final-cta {
    padding: 94px 20px;
  }

  .omise-legal {
    padding: 48px 18px 80px;
  }

  .omise-legal-shell {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .omise-legal-aside {
    position: static;
  }

  .omise-legal-nav {
    grid-template-columns: 1fr 1fr;
  }

  .omise-legal-nav a:nth-child(odd) {
    padding-right: 12px;
  }

  .omise-legal-table,
  .omise-legal-table tbody,
  .omise-legal-table tr,
  .omise-legal-table th,
  .omise-legal-table td {
    display: block;
    width: 100%;
  }

  .omise-legal-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .omise-reveal {
    animation: none;
  }

  .omise-button {
    transition: none;
  }
}
