/* ==============================
  Minaoshi Page
============================== */

.hero {
  position: relative;
  overflow: hidden;
  background: url("images/office-hero.webp") center right / cover no-repeat;
}

.hero-inner {
  width: min(var(--pc-width), calc(100% - var(--side-space)));
  margin: 0 auto;
  min-height: 630px;
  padding: 82px 0 72px;
  display: flex;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
}

@media (min-width: 901px) {
  .hero {
    padding: 18px 0 0;
    background: #faf7ed;
  }

  .hero-inner {
    width: min(1280px, calc(100% - 80px));
    min-height: 646px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(520px, 0.95fr) minmax(420px, 1.05fr);
    gap: 30px;
    align-items: stretch;
    overflow: hidden;
    border-radius: 12px;
    background:
      url("images/office-hero.png") right center / cover no-repeat,
      #faf7ed;
  }

  .hero-copy {
    width: min(560px, 100%);
    padding: 48px 42px 42px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.96) 78%, rgba(255, 255, 255, 0) 100%);
    transform: none;
  }
}

.hero-visual {
  display: none;
}

.hero .eyebrow {
  width: fit-content;
  margin: 0 0 22px;
  padding: 8px 14px;
  color: #3b3b3b;
  background: #ffe04d;
  border: 2px solid #ffe04d;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.13;
  letter-spacing: -0.06em;
}

.hero h1 span {
  color: #d9232e;
}

.hero-lead {
  margin: 26px 0 0;
  color: #153a75;
  font-size: 20px;
  line-height: 1.65;
  font-weight: 800;
}

.hero-text {
  width: min(560px, 100%);
  margin: 16px 0 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 800;
}

.payment-section {
  background: #faf7ed;
}
.payment-section p {
  font-size: 14px;
}

.payment-intro {
  width: min(820px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.payment-card-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.payment-card {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
  text-align: center;
}

.payment-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 18px;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid #dce5ef;
}

.payment-card h3 {
  margin: 0 22px 10px;
  font-size: 18px;
  line-height: 1.6;
}

.payment-card p {
  margin: 0;
  padding: 0 22px 24px;
  font-size: 13px;
  line-height: 1.8;
}

.check-section {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.check-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/minaoshi-check-bg.webp") center center / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
}

.check-section .section-title {
  position: relative;
  z-index: 1;
}

.check-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 30px;
  align-items: center;
}

.check-visual-image {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  display: block;
  border-radius: 18px;
}

.check-grid {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.check-card {
  min-height: auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border: 1px solid #e8eef5;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.check-card span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: #ffffff;
  background: #0089e8;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
}

.point-section {
  background: #f5f7fa;
}

.cost-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.cost-item {
  padding: 30px 18px 28px;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.cost-item span {
  display: block;
  margin-bottom: 10px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.cost-item strong {
  display: block;
  color: #d9232e;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 900;
}

.cost-item small {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  color: #111827;
  background: #fff3bf;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.point-text {
  width: min(800px, 100%);
  margin: 34px auto 0;
  font-size: 14px;
  text-align: center;
}

.calc-section {
  padding-top: 28px;
  padding-bottom: 32px;
  background: #ffffff;
}

.calc-box {
  padding: 42px 48px 34px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.calc-lead {
  width: min(760px, 100%);
  margin: -12px auto 34px;
  color: #374151;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
  text-align: center;
}

.calc-content {
  width: min(720px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 310px 360px;
  gap: 28px;
  align-items: stretch;
  justify-content: center;
}

.calc-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.calc-input-grid label {
  padding: 0;
  display: grid;
  grid-template-columns: 150px 110px;
  gap: 14px;
  align-items: center;
  justify-content: end;
  background: transparent;
  border: none;
  border-radius: 0;
  font-weight: 900;
}

.calc-input-grid span {
  color: #111827;
  font-size: 14px;
  text-align: right;
}

.calc-input-grid input {
  width: 110px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 900;
  text-align: right;
}

.calc-result {
  padding: 28px 26px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.calc-result p {
  margin: 0 0 18px;
  color: #111827;
  font-size: 15px;
  font-weight: 900;
}

.calc-result dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.calc-result div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.calc-result dt {
  font-size: 14px;
  font-weight: 800;
}

.calc-result dd {
  margin: 0;
  color: #0089e8;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.calc-result small {
  display: block;
  margin-top: 18px;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.7;
}

.cta-mini {
  position: relative;
  overflow: hidden;
  padding: 46px 0 50px;
  background:
    linear-gradient(90deg, rgba(0, 55, 105, 0.9) 0%, rgba(0, 137, 232, 0.78) 100%),
    url("images/cta-mini-bg.webp") center center / cover no-repeat;
}

.cta-mini-inner {
  position: relative;
  z-index: 1;
  width: min(940px, calc(100% - var(--side-space)));
  padding: 0 52px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 38px;
  align-items: center;
  color: #ffffff;
}

.cta-mini h2 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: clamp(25px, 3.2vw, 34px);
  text-align: left;
}

.cta-mini p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 700;
}

.cta-mini .label {
  width: fit-content;
  margin-bottom: 14px;
  padding: 6px 16px;
  color: #111827;
  background: #ffe04d;
  border-radius: 999px;
}

.target-section {
  background: #ffffff;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 100px;
}

.target-card,
.document-card {
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid #eaf0f6;
  border-radius: var(--radius-sm);
  text-align: center;
  box-shadow: var(--shadow-card);
}

.document-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.document-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-bottom: 1px solid #dce5ef;
}

.target-card {
  position: relative;
  padding: 66px 22px 28px;
  text-align: left;
  border: none;
  box-shadow: none;
}

.target-icon {
  position: absolute;
  left: 50%;
  top: -44px;
  transform: translateX(-50%);
  width: 99px;
  height: 99px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dceaf7;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.target-card h3,
.document-card h3 {
  color: #111827;
  font-size: 18px;
}

.document-card h3 {
  margin: 0;
  padding: 18px 22px 10px;
}

.target-card p,
.document-card p {
  margin: 0;
  font-size: 13px;
}

.document-card p {
  padding: 0 22px 22px;
  line-height: 1.9;
}

.service-section {
  background: #f5f7fa;
}
.service-box {
  padding: 0;
}

.service-content {
  padding: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 30px;
  align-items: center;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.service-lead {
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border-radius: 0;
}

.service-lead h3 {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
  font-size: 32px;
  line-height: 1.45;
  font-weight: 900;
}

.service-lead h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 6px;
  height: calc(100% - 0.36em);
  background: #0089e8;
  border-radius: 999px;
}

.service-lead h3 span {
  display: inline;
  padding: 0 0.08em;
  background: linear-gradient(transparent 58%, #fff3a6 58%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.service-lead p {
  margin: 0;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.9;
  font-weight: 700;
}

.service-illustration {
  width: 100%;
  max-width: 360px;
  margin: 28px auto 0;
  padding-top: 0;
  display: block;
  border-radius: 18px;
}

.service-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  align-content: start;
}

.service-list li {
  position: relative;
  min-height: 60px;
  padding: 0 24px 0 54px;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e7f3;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #0089e8;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  transform: translateY(-50%);
}

.important-section {
  background: #ffffff;
}

.important-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.important-grid article {
  overflow: hidden;
  padding: 0;
  background: #ffffff;
  border: 1px solid #d9e7f3;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.important-grid span {
  width: 100%;
  height: auto;
  margin-bottom: 0;
  padding: 8px 18px 9px;
  display: block;
  color: #ffffff;
  background: #0089e8;
  border-radius: 0;
  font-size: 28px;
  line-height: 1;
  font-family: inherit;
  font-weight: 900;
  letter-spacing: 0;
}

.important-grid h3 {
  margin: 0;
  padding: 18px 28px 10px;
  font-size: 18px;
}

.important-grid p {
  margin: 0;
  padding: 0 28px 28px;
  font-size: 14px;
}

.document-section {
  background: #f5f7fa;
}

.document-intro {
  width: min(920px, 100%);
  margin: 0 auto 34px;
  font-size: 14px;
  line-height: 2;
  text-align: center;
}

.document-intro p {
  margin: 0 0 10px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.note {
  width: min(860px, 100%);
  margin: 38px auto 0;
  padding: 20px 30px;
  color: #ff0000;
  background: #ffe04d;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.warning-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 52%, rgba(255, 255, 255, 0.28) 100%),
    url("images/minaoshi-warning-bg.webp") center center / cover no-repeat;
}

.warning-box {
  position: relative;
  z-index: 1;
  padding: 64px 54px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 137, 232, 0.18);
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.warning-box h2 {
  margin: 0 0 22px;
  color: #d9232e;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.25;
}

.warning-box p {
  font-size: 14px;
}

.warning-box > p:not(.label) {
  font-size: 18px;
  line-height: 2;
  font-weight: 800;
}

.warning-box .label {
  width: auto;
  margin: 0 0 10px;
  padding: 0;
  color: #0089e8;
  background: none;
  border-radius: 0;
  font-size: clamp(26px, 3.6vw, 48px);
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: normal;
}

.warning-button {
  margin-top: 26px;
  padding: 15px 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #d9232e;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(217, 35, 46, 0.28);
}

@media (max-width: 900px) {
  .hero {
    background: url("images/office-hero.png") center right / cover no-repeat;
  }

  .hero-inner {
    min-height: 560px;
    padding: 56px 0 58px;
  }

  .hero-visual {
    display: none;
  }

  .calc-content,
  .payment-card-grid,
  .cost-list,
  .target-grid,
  .important-grid,
  .document-grid,
  .service-content,
  .check-content,
  .cta-mini-inner {
    grid-template-columns: 1fr;
  }

  .check-visual-image {
    max-width: 420px;
  }

  .target-grid {
    width: min(640px, 100%);
    margin-top: 24px;
    margin-right: auto;
    margin-left: auto;
  }

  .target-card {
    width: min(520px, 100%);
    min-height: 112px;
    margin: 0 auto;
    padding: 14px 0 14px 126px;
    text-align: left;
  }

  .target-icon {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 99px;
    height: 99px;
  }

  .cta-mini h2 {
    text-align: center;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.94) 52%,
      rgba(255, 255, 255, 0.72) 66%,
      rgba(255, 255, 255, 0) 84%
    );
    pointer-events: none;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 10px 10px 0;
    background: #faf7ed;
  }

  .hero-inner {
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    border-radius: 12px;
  }

  .hero-copy {
    display: contents;
    width: auto;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-text {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero .eyebrow {
    margin-top: 18px;
  }

  .hero h1 {
    margin-bottom: 8px;
    font-size: 34px;
  }

  .hero-lead {
    margin-top: 10px;
  }

  .hero-text {
    margin-top: 8px;
  }

  .hero .eyebrow,
  .hero h1,
  .hero-lead,
  .hero-text {
    position: relative;
    z-index: 2;
  }

  .hero-text {
    width: 46%;
    max-width: 210px;
  }

  .hero-visual {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
    margin: -118px 0 0;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    background: url("images/office-hero-sp.webp") right bottom / cover no-repeat;
  }

  .hero-visual::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 40px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 42%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
  }

  .hero-visual img {
    display: none;
  }

  .cost-item strong {
    font-size: 28px;
  }

  .calc-box,
  .service-content,
  .service-lead,
  .warning-box {
    padding: 24px;
  }

  .important-grid article {
    padding: 0;
  }

  .document-card {
    padding: 0;
  }

  .target-card {
    min-height: 96px;
    padding: 12px 0 12px 112px;
  }

  .target-icon {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 88px;
    height: 88px;
  }

  .cta-mini-inner {
    padding: 0 24px;
  }

  .warning-button {
    width: 100%;
  }

  .calc-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .calc-input-grid label {
    grid-template-columns: 1fr;
    gap: 6px;
    justify-content: stretch;
  }

  .calc-input-grid span {
    text-align: center;
    font-size: 13px;
  }

  .calc-input-grid input {
    width: 100%;
  }

  .calc-result dd {
    font-size: 21px;
  }

  .note {
    border-radius: 14px;
  }
}