:root {
  --ink: #0f1725;
  --muted: #5c6979;
  --line: #dce5ec;
  --soft: #f6fafb;
  --green: #08a866;
  --green-dark: #057648;
  --blue: #1f63d4;
  --amber: #b36b00;
  --amber-soft: #fff7e5;
  --shadow: 0 16px 42px rgba(15, 23, 37, .07);
}

/* v1077: generated-reference-inspired article/tool funnel */
:root {
  --teal: #008c95;
  --red: #ff3b35;
  --red-dark: #d92724;
}

body.yns-article {
  background:
    radial-gradient(circle at 78% 9%, rgba(0, 140, 149, .08), transparent 28%),
    linear-gradient(180deg, #fff 0, #f8fbfb 560px, #fffdf8 100%);
}

.yns-mark i {
  background: var(--red);
}

.yns-header nav a:last-child {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(0, 140, 149, .18);
}

.yns-kicker {
  background: #fff0ef;
  color: var(--red-dark);
}

.yns-hero h1 {
  font-size: clamp(50px, 5.2vw, 78px);
}

.yns-lead {
  width: fit-content;
  padding: 0 0 5px;
  border-left: 0;
  border-bottom: 8px solid rgba(255, 194, 71, .72);
  color: var(--ink);
}

.yns-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.yns-copy-jump,
.yns-voice-jump {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 30px;
  color: #fff;
  font-size: 22px;
  font-weight: 950;
  text-decoration: none;
}

.yns-copy-jump {
  min-width: 300px;
  background: linear-gradient(135deg, var(--red), #ff625d);
  box-shadow: 0 16px 30px rgba(255, 59, 53, .18);
}

.yns-voice-jump {
  min-width: 300px;
  background: linear-gradient(135deg, var(--teal), #00a5a8);
  box-shadow: 0 16px 30px rgba(0, 140, 149, .18);
}

.yns-format-grid a {
  border-width: 2px;
}

.yns-format-grid a:first-child {
  border-color: rgba(255, 59, 53, .75);
}

.yns-format-grid a:first-child span {
  background: var(--red);
  color: #fff;
}

.yns-formula {
  display: grid;
  grid-template-columns: 220px repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #efcf89;
  border-radius: 8px;
  background: #fff8e9;
}

.yns-formula b,
.yns-formula span {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  text-align: center;
  font-weight: 950;
}

.yns-formula b {
  color: #743f00;
  font-size: 18px;
}

.yns-formula span {
  background: #fff;
  color: var(--ink);
  font-size: 17px;
}

.yns-example-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.yns-example-actions a,
.yns-example-actions button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.yns-example-actions button {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.yns-example-actions a {
  border: 1px solid var(--teal);
  background: linear-gradient(135deg, var(--teal), #00a5a8);
  color: #fff;
  box-shadow: 0 12px 22px rgba(0, 140, 149, .14);
}

.yns-example-actions a {
  order: 1;
}

.yns-example-actions button {
  order: 2;
}

.yns-patterns {
  margin-top: 30px;
}

.yns-pattern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.yns-pattern-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 37, .04);
}

.yns-pattern-meta {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.yns-pattern-meta span {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0ef;
  color: var(--red-dark);
  font-weight: 950;
}

.yns-pattern-meta b {
  color: var(--ink);
  font-size: 21px;
  line-height: 1.3;
}

.yns-pattern-meta small {
  grid-column: 2;
  color: #3a5a72;
  font-size: 14px;
  font-weight: 850;
}

.yns-pattern-card pre {
  margin: 0;
  min-height: 150px;
  white-space: pre-wrap;
  color: #27384d;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.8;
  font-weight: 780;
}

.yns-pattern-card pre::after {
  content: "";
  display: block;
  height: 16px;
  margin-top: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(0, 140, 149, .18) 0 4px, transparent 4px 10px);
}

.yns-pattern-card p {
  margin: 0;
  color: #536175;
  font-size: 15px;
  font-weight: 820;
}

.yns-example pre::after {
  content: "";
  display: block;
  height: 18px;
  margin-top: 12px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, rgba(0, 140, 149, .18) 0 4px, transparent 4px 10px);
}

.yns-side-check ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yns-side-check li {
  min-height: 50px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.yns-side-check span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eefafa;
  color: #006b73;
  font-weight: 950;
}

.yns-side-check b {
  font-size: 16px;
}

.yns-side-check em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 950;
  text-align: right;
}

.yns-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.yns-toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 780px) {
  .yns-hero h1 {
    font-size: 42px;
  }

  .yns-hero-actions a {
    width: 100%;
  }

  .yns-formula {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-pattern-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-example-actions a,
  .yns-example-actions button {
    width: 100%;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.yns-article {
  margin: 0;
  background: linear-gradient(180deg, #fff 0, #f8fbfa 560px, #fbfdfc 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
  line-height: 1.75;
}

a {
  color: inherit;
}

.yns-header {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
}

.yns-brand,
.yns-header nav a {
  color: var(--ink);
  text-decoration: none;
}

.yns-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 950;
}

.yns-mark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.yns-mark i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: var(--green);
}

.yns-mark i:nth-child(1) { height: 18px; }
.yns-mark i:nth-child(2) { height: 30px; }
.yns-mark i:nth-child(3) { height: 38px; }
.yns-mark i:nth-child(4) { height: 24px; }

.yns-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.yns-header nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: #263446;
  font-weight: 900;
  white-space: nowrap;
}

.yns-header nav a:last-child {
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 168, 102, .18);
}

.yns-shell {
  width: min(1480px, calc(100% - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
  margin: 0 auto;
  padding: 28px 0 0;
}

.yns-main {
  min-width: 0;
}

.yns-breadcrumb {
  margin: 0 0 18px;
  color: #66778c;
  font-size: 14px;
  font-weight: 850;
}

.yns-breadcrumb a {
  text-decoration: none;
}

.yns-breadcrumb span {
  padding: 0 8px;
  color: #9aabb9;
}

.yns-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #e2f8ee;
  color: var(--green-dark);
  font-weight: 950;
}

.yns-hero h1 {
  margin: 0;
  font-size: clamp(42px, 4.1vw, 58px);
  line-height: 1.12;
  font-weight: 950;
}

.yns-lead {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 6px solid var(--blue);
  color: #124a99;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  font-weight: 950;
}

.yns-meta {
  margin: 14px 0 0;
  color: #66778c;
  font-weight: 850;
}

.yns-answer {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 22px;
  padding: 24px;
  border: 1px solid rgba(8, 168, 102, .55);
  border-radius: 8px;
  background: #f7fff9;
}

.yns-answer > span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border-right: 1px solid rgba(8, 168, 102, .3);
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 950;
}

.yns-answer h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.3;
}

.yns-answer ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.yns-answer li {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-left: 1px dashed #b5d8c4;
  color: #1f4937;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.yns-format-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.yns-format-grid a {
  min-height: 150px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(15, 23, 37, .04);
}

.yns-format-grid span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eafaf3;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 950;
}

.yns-format-grid b {
  font-size: 24px;
  line-height: 1.2;
}

.yns-format-grid small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.yns-tool-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid #b8d5ff;
  border-radius: 8px;
  background: linear-gradient(135deg, #f4f9ff, #fff);
  box-shadow: 0 12px 30px rgba(31, 99, 212, .08);
}

.yns-tool-cta > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.yns-tool-cta span {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #e7f1ff;
  color: var(--blue);
  font-size: 28px;
  font-weight: 950;
  flex: 0 0 auto;
}

.yns-tool-cta h2,
.yns-section-head h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.25;
  font-weight: 950;
}

.yns-tool-cta p {
  margin: 8px 0 0;
  color: #536175;
  font-size: 17px;
  font-weight: 760;
}

.yns-tool-cta a,
.yns-side-cta a {
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), #078d59);
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 14px 28px rgba(8, 168, 102, .2);
}

.yns-section {
  margin-top: 34px;
  padding-top: 4px;
}

.yns-section-head {
  margin-bottom: 16px;
}

.yns-section-head p {
  margin: 0 0 6px;
  color: var(--green-dark);
  font-weight: 950;
}

.yns-example {
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 37, .04);
}

.yns-example-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.yns-example-head span {
  min-width: 58px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eafaf3;
  color: var(--green-dark);
  font-weight: 950;
}

.yns-example h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.yns-example pre,
.yns-compare p {
  margin: 0;
  white-space: pre-wrap;
  color: #2f3f53;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 19px;
  line-height: 1.85;
  font-weight: 780;
}

.yns-example > p,
.yns-note {
  margin: 14px 0 0;
  color: #536175;
  font-size: 17px;
  font-weight: 760;
}

.yns-example > a {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 950;
}

.yns-mid-cta,
.yns-bottom-cta {
  border-color: rgba(8, 168, 102, .35);
  background: #f7fff9;
}

.yns-steps,
.yns-tip-grid,
.yns-ref-grid {
  display: grid;
  gap: 16px;
}

.yns-steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yns-steps article,
.yns-tip-grid article,
.yns-ref-grid a,
.yns-faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 37, .04);
}

.yns-steps article,
.yns-tip-grid article {
  padding: 20px;
}

.yns-steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 950;
}

.yns-steps h3,
.yns-tip-grid b {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.35;
}

.yns-steps p,
.yns-tip-grid p {
  margin: 0;
  color: #536175;
  font-size: 16px;
  font-weight: 760;
}

.yns-tip-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.yns-tip-grid b {
  display: block;
  color: var(--green-dark);
}

.yns-check {
  padding: 24px;
  border: 1px solid #f1cf8e;
  border-radius: 8px;
  background: var(--amber-soft);
}

.yns-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.yns-check-list label {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e9c36d;
  border-radius: 8px;
  background: #fff;
  color: #354559;
  font-size: 17px;
  font-weight: 860;
}

.yns-check-list input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.yns-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.yns-compare div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.yns-compare b {
  display: block;
  margin-bottom: 10px;
  color: var(--green-dark);
  font-size: 21px;
}

.yns-ref-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.yns-ref-grid a {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  color: #155b9e;
  text-decoration: none;
}

.yns-ref-grid b {
  color: #173552;
  font-size: 18px;
}

.yns-ref-grid span {
  color: #58677a;
  font-size: 14px;
  font-weight: 760;
}

.yns-faq details + details {
  margin-top: 10px;
}

.yns-faq summary {
  padding: 18px;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
}

.yns-faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: #4a596a;
  font-weight: 760;
}

.yns-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 16px;
}

.yns-side-cta,
.yns-side-box {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.yns-side-cta {
  border-color: #f0d58f;
  background: #fff9ec;
}

.yns-side-cta h2,
.yns-side-box h2 {
  margin: 0 0 14px;
  font-size: 23px;
}

.yns-side-cta p {
  margin: 0 0 14px;
  color: #5c5544;
  font-weight: 780;
}

.yns-side-cta a {
  width: 100%;
  min-height: 58px;
  font-size: 17px;
}

.yns-side-box a {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  color: #28547f;
  text-decoration: none;
  font-weight: 900;
}

.yns-side-box span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  flex: 0 0 auto;
}

.yns-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding: 30px 16px;
  border-top: 1px solid var(--line);
  background: #fbfdfc;
  color: #5d6877;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .yns-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-side {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yns-format-grid,
  .yns-steps,
  .yns-tip-grid,
  .yns-ref-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .yns-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 14px;
  }

  .yns-brand {
    font-size: 21px;
  }

  .yns-header nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .yns-header nav a {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #263446;
    white-space: nowrap;
  }

  .yns-header nav a:last-child {
    background: var(--green);
    color: #fff;
  }

  .yns-shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .yns-hero h1 {
    font-size: 38px;
  }

  .yns-lead {
    font-size: 22px;
  }

  .yns-answer,
  .yns-tool-cta,
  .yns-tool-cta > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-answer {
    padding: 18px;
  }

  .yns-answer > span {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(8, 168, 102, .3);
  }

  .yns-answer ul,
  .yns-format-grid,
  .yns-steps,
  .yns-tip-grid,
  .yns-check-list,
  .yns-compare,
  .yns-ref-grid,
  .yns-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-answer li {
    justify-content: flex-start;
    border-left: 0;
    border-top: 1px dashed #b5d8c4;
    text-align: left;
  }

  .yns-tool-cta {
    padding: 18px;
  }

  .yns-tool-cta span {
    width: 64px;
    height: 64px;
  }

  .yns-format-grid a {
    min-height: 112px;
  }

  .yns-example {
    padding: 18px;
  }

  .yns-example-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .yns-example pre,
  .yns-compare p {
    font-size: 17px;
  }

  .yns-check {
    padding: 16px;
  }
}

/* v1077 final overrides */
body.yns-article {
  background:
    radial-gradient(circle at 78% 9%, rgba(0, 140, 149, .08), transparent 28%),
    linear-gradient(180deg, #fff 0, #f8fbfb 560px, #fffdf8 100%);
}

.yns-mark i {
  background: var(--red);
}

.yns-header nav a:last-child {
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(0, 140, 149, .18);
}

.yns-kicker {
  background: #fff0ef;
  color: var(--red-dark);
}

.yns-hero h1 {
  font-size: clamp(50px, 5.2vw, 78px);
}

.yns-lead {
  width: fit-content;
  padding: 0 0 5px;
  border-left: 0;
  border-bottom: 8px solid rgba(255, 194, 71, .72);
  color: var(--ink);
}

.yns-header nav a:last-child {
  color: #fff;
}

@media (max-width: 780px) {
  .yns-hero h1 {
    font-size: 42px;
  }

  .yns-hero-actions a {
    width: 100%;
  }

  .yns-formula {
    grid-template-columns: minmax(0, 1fr);
  }

  .yns-example-actions a,
  .yns-example-actions button {
    width: 100%;
  }
}
