/* ============================================================
   UPRESS LP — site styles (hand-authored)
   Progressively replaces the original STUDIO export (entry.css),
   section by section. Loaded after entry.css so it can override.
   ============================================================ */

/* --- Scroll reveal: fade sections in as they enter the viewport --- */
html.js-reveal .appear         { opacity: 0; transition: opacity .9s ease; }
html.js-reveal .appear.__shown { opacity: 1; }

/* Page wrapper: neutralize STUDIO's flex-row canvas so sections stack full-width */
.site { width: 100%; box-sizing: border-box; }

/* ============================================================
   簡易比較表 / comparison table
   ============================================================ */
.compare-wrap { width: min(920px, 92vw); margin: 40px auto 0; }

.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 18px;
  font-weight: 500;
  color: #1c1a1a;
}

.compare th,
.compare td {
  border: 1px solid #dcd8d8;
  padding: 20px;
  text-align: center;
  line-height: 1.7;
  vertical-align: middle;
  word-break: break-word;
  color: #1c1a1a;
}

.compare thead th         { background: #eeeeee; font-weight: 500; }
.compare thead .th-item   { background: #eeeeee; text-align: left; }
.compare thead .th-upress { background: #d21e2d; color: #fff; }
.compare tbody th         { background: #fff; text-align: left; font-weight: 500; }
.compare td.hl            { color: #d01d2d; }

@media (max-width: 600px) {
  .compare               { font-size: 14px; }
  .compare th,
  .compare td            { padding: 12px 8px; line-height: 1.5; }
  .compare .th-item      { width: 34%; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer        { display: block; width: 100%; box-sizing: border-box;
                      background: #fff; padding: 60px 40px; margin-bottom: 90px; }
.site-footer__inner { max-width: 1160px; margin: 0 auto; text-align: left;
                      font-family: "Noto Sans JP", sans-serif; color: #191924; }
.site-footer__logo  { width: 140px; height: auto; display: block; }

.site-footer__company        { margin-top: 20px; font-size: 12px; line-height: 1.6; }
.site-footer__company p      { margin: 0; color: #191924; }
.site-footer__company a      { color: #191924; text-decoration: underline; }

.site-footer__legal          { margin: 12px 0 0; font-size: 12px; color: #191924; }
.site-footer__legal a        { color: #191924; text-decoration: underline; }

.site-footer__copy           { margin: 40px 0 0; font-size: 13px; color: #191924; }

@media (max-width: 600px) {
  .site-footer { padding: 60px 16px; }
}

/* ============================================================
   自社に合わせたカスタマイズ / customize cards
   ============================================================ */
.cz         { background: #f8f6f6; padding: 80px 40px; }
.cz__inner  { max-width: 1160px; margin: 0 auto; font-family: "Noto Sans JP", sans-serif; }
.cz__heading{ margin: 0; font-size: 36px; font-weight: 700; color: #1c1a1a; text-align: center; }
.cz__sub    { margin: 24px 0 0; font-size: 18px; font-weight: 400; line-height: 1.6;
              color: #1c1a1a; text-align: center; }
.cz__grid   { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 50px; }

.cz-card        { display: flex; flex-direction: column; align-items: center; text-align: center;
                  background: #fff; border-radius: 8px; box-shadow: 0 0 20px rgba(117, 51, 51, .1);
                  padding: 40px 30px 30px; }
.cz-card__icon  { font-size: 24px; color: #d21e2d; line-height: 1; }
.cz-card__label { margin: 12px 0 0; font-size: 18px; font-weight: 700; color: #d21e2d; }
.cz-card__pill  { width: 100%; box-sizing: border-box; margin: 16px 0 0; padding: 16px 20px;
                  border-radius: 128px; background: #d21e2d; color: #fff;
                  font-size: 20px; font-weight: 700; text-align: center; }
.cz-card__list  { align-self: stretch; margin: 16px 0 0; font-size: 16px; line-height: 1.6;
                  color: #000; text-align: left; }

/* exact mobile values from the STUDIO source (breakpoint 690px, 2-col) */
@media (max-width: 690px) {
  .cz             { padding: 64px 16px; }
  .cz__heading    { font-size: 26px; }
  .cz__sub        { font-size: 16px; }
  .cz__grid       { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cz-card        { padding: 30px 10px 20px; }
  .cz-card__label { font-size: 16px; }
  .cz-card__pill  { margin-top: 12px; padding: 10px 10px 12px; font-size: 14px; }
  .cz-card__list  { font-size: 14px; line-height: 1.6; }
}

/* ============================================================
   実施までの流れ / steps
   ============================================================ */
.steps          { width: 100%; box-sizing: border-box; background: #fff; padding: 80px 40px; }
.steps__inner   { max-width: 1160px; margin: 0 auto; font-family: "Noto Sans JP", sans-serif; }
.steps__heading { margin: 0 0 50px; font-size: 36px; font-weight: 700; color: #1c1a1a; text-align: center; }
.steps__list    { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }

.step        { background: #fff; border: 1px solid #eee; border-radius: 10px;
               box-shadow: 0 0 20px rgba(0, 0, 0, .1); padding: 30px 40px; }
.step__badge { display: inline-block; background: #d21e2d; color: #fff; border-radius: 3px;
               padding: 5px 8px; font-size: 20px; font-weight: 600; }
.step__title { margin: 14px 0 0; font-size: 24px; font-weight: 700; color: #1c1a1a; }
.step__desc  { margin: 8px 0 0; font-size: 18px; font-weight: 400; line-height: 1.7; color: #1c1a1a; }

@media (max-width: 690px) {
  .steps          { padding: 56px 16px; }
  .steps__heading { font-size: 20px; margin-bottom: 32px; }
  .step           { padding: 24px 20px; }
  .step__badge    { font-size: 14px; }
  .step__title    { font-size: 18px; }
  .step__desc     { font-size: 14px; line-height: 1.6; }
}

/* ============================================================
   記事執筆フローの比較 / writing-flow comparison (single graphic)
   ============================================================ */
.flow            { width: 100%; box-sizing: border-box; background: #fff; padding: 80px 40px; }
.flow__inner     { max-width: 1160px; margin: 0 auto; font-family: "Noto Sans JP", sans-serif; }
.flow__heading   { margin: 0 0 40px; font-size: 36px; font-weight: 700; color: #1c1a1a; text-align: center; }
.flow__figure    { margin: 0; }
.flow__figure img{ display: block; width: 100%; height: auto; }
.flow__intro     { margin: 32px 0 0; font-size: 18px; font-weight: 400; line-height: 1.6;
                   color: #1c1a1a; text-align: left; }

@media (max-width: 690px) {
  .flow          { padding: 56px 16px; }
  .flow__heading { font-size: 20px; margin-bottom: 28px; }
  .flow__intro   { font-size: 14px; line-height: 1.8; }
}

/* ============================================================
   UPRESSが選ばれる理由 / feature points
   ============================================================ */
.points          { width: 100%; box-sizing: border-box; background: #fff; padding: 80px 40px; }
.points__inner   { max-width: 1160px; margin: 0 auto; font-family: "Noto Sans JP", sans-serif; }
.points__heading { margin: 0 0 50px; font-size: 36px; font-weight: 700; color: #1c1a1a; text-align: center; }
.points__list    { display: flex; flex-direction: column; gap: 24px; }

.pt-card        { display: flex; align-items: flex-start; gap: 40px; background: #fff;
                  border: 1px solid #f5f5f5; border-radius: 10px; box-shadow: 0 0 24px rgba(93, 31, 31, .1);
                  padding: 50px 40px; }
.pt-card__media { flex: 0 0 295px; }
.pt-card__media img { display: block; width: 100%; height: 200px; object-fit: cover; }
.pt-card--wide .pt-card__media     { flex-basis: 600px; }
.pt-card--wide .pt-card__media img { height: auto; object-fit: contain; }

.pt-card__body  { flex: 1; min-width: 0; }
.pt-card__badge { display: inline-block; background: #d21e2d; color: #fff; border-radius: 3px;
                  padding: 5px 8px; font-size: 20px; font-weight: 600; }
.pt-card__title { margin: 16px 0 0; font-size: 32px; font-weight: 700; line-height: 1.4; color: #1c1a1a; }
.pt-card__desc  { margin: 16px 0 0; font-size: 18px; font-weight: 400; line-height: 1.6; color: #1c1a1a; }

@media (max-width: 690px) {
  .points          { padding: 56px 16px; }
  .points__heading { font-size: 20px; }
  .pt-card         { flex-direction: column; gap: 20px; padding: 28px 20px; }
  .pt-card__media,
  .pt-card--wide .pt-card__media { flex-basis: auto; width: 100%; }
  .pt-card__media img { width: 100%; height: auto; object-fit: contain; }
  .pt-card__badge  { font-size: 14px; }
  .pt-card__title  { font-size: 18px; }
  .pt-card__desc   { font-size: 14px; line-height: 1.8; }
}

/* ============================================================
   Hero (header nav + hero visual)
   ============================================================ */
.hero-nav        { width: 100%; box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 28px 40px; position: relative; z-index: 3; background: #fff; }
.hero-nav__logo  { height: 20px; width: auto; display: block; }
.hero-nav__text  { font-size: 14px; font-weight: 700; color: #1c1a1a; }

.hero            { width: 100%; box-sizing: border-box; position: relative; z-index: 1; overflow-x: clip; padding: 20px 40px 90px;
                   background: linear-gradient(0deg, #f2e6e6 0%, #ffffff 100%); font-family: "Noto Sans JP", sans-serif; }
.hero__inner     { position: relative; z-index: 2; max-width: 1160px; margin: 0 auto; }
.hero__top       { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.hero__lead      { text-align: center; }
.hero__eyebrow   { margin: 0; font-size: 24px; font-weight: 700; color: #1c1a1a; }
.hero__wordmark  { display: block; width: min(420px, 78vw); height: auto; margin: 12px auto 0; }
.hero__reading   { margin: 6px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .1em; color: #1c1a1a; }

.hero__badges    { display: flex; flex-direction: column; gap: 20px; }
.hero-badge      { display: inline-flex; align-items: center; gap: 10px; background: #fff; border-radius: 40px;
                   padding: 9px 22px 10px 16px; font-size: 18px; font-weight: 700; color: #000;
                   box-shadow: 0 2px 12px rgba(0, 0, 0, .06); }
.hero-badge .material-icons { color: #d21e2d; font-size: 22px; }

.hero__mockup    { max-width: 800px; margin: 40px auto 0; }
.hero__mockup img{ display: block; width: 100%; height: auto; }

.hero__deco      { position: absolute; inset: 0; z-index: 1; overflow: visible; pointer-events: none; }
.hero__deco img  { position: absolute; display: block; }
/* exact positions from the STUDIO source (base) */
.hero__tri1      { width: 120px; top: 200px;    left: 80px;  opacity: .7; }
.hero__tri2      { width: 60px;  bottom: 173px;  left: 400px; opacity: .5; }
.hero__tri3      { width: 300px; bottom: -60px;  left: -60px; opacity: 1;  }
.hero__tri4      { width: 240px; bottom: -20px;  left: 480px; opacity: 1;  }

@media (max-width: 900px) {
  .hero-nav      { padding: 20px 16px; gap: 12px; }
  .hero-nav__text{ font-size: 12px; }
  .hero          { padding: 24px 16px 64px; }
  .hero__top     { gap: 28px; }
  .hero__eyebrow { font-size: 18px; }
  .hero-badge    { font-size: 15px; padding: 8px 18px 9px 14px; }
}

/* triangle decorations — exact SP positions from the STUDIO source (breakpoint 690px) */
@media (max-width: 690px) {
  .hero__tri1 { top: 0;       left: auto; right: 45px;  bottom: auto; width: 80px;  }
  .hero__tri2 { top: 120px;   left: -13px; right: auto; bottom: auto; width: 60px;  }
  .hero__tri3 { top: auto;    left: -60px; right: auto; bottom: -20px; width: 260px; }
  .hero__tri4 { top: auto;    left: auto; right: -40px; bottom: 105px; width: 200px; }
}

/* ============================================================
   Fixed download CTA bar
   ============================================================ */
.dl-bar        { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
                 display: flex; justify-content: center; padding: 20px 16px; background: rgba(28, 26, 26, .9); }
.dl-bar__btn   { display: inline-block; min-width: 280px; text-align: center; background: #fff; color: #2abd36;
                 border: 1px solid #2abd36; border-radius: 5px; padding: 9px 24px 10px;
                 font-family: "Noto Sans JP", sans-serif; font-size: 18px; font-weight: 500; transition: opacity .2s; }
.dl-bar__btn:hover { opacity: .85; }

@media (max-width: 600px) {
  .dl-bar      { padding: 14px 16px; }
  .dl-bar__btn { min-width: 0; width: 100%; max-width: 360px; font-size: 16px; }
}
