/* Yossy Tools home — page content only (header/footer: yt-header.css / yt-footer.css) */

a.yt-card {
  text-decoration: none;
  color: inherit;
}

[id="shindan"],
[id="keisan"],
[id="generator"],
[id="articles"],
[id="pickup"],
[id="web-parts"],
[id="yt-about-title"] {
  scroll-margin-top: 90px;
}

/* —— Hero —— */
.yt-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 64% 78% at 84% 43%, #a9d4f4 0%, transparent 78%),
    linear-gradient(115deg, #edf7ff 0%, #d4eafa 54%, #b9dbf4 100%);
  min-height: 440px;
}

.yt-hero::before {
  content: "";
  position: absolute;
  inset: auto -8% -34% -12%;
  height: 65%;
  background: #fff8;
  clip-path: polygon(0 40%, 22% 73%, 43% 44%, 67% 68%, 100% 22%, 100% 100%, 0 100%);
  z-index: -1;
}

.yt-hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(30deg, #92bde8 1px, transparent 1px),
    linear-gradient(150deg, #92bde8 1px, transparent 1px);
  background-size: 74px 42px;
  mask-image: linear-gradient(to right, transparent 8%, #000 100%);
  pointer-events: none;
}

.yt-hero-inner {
  min-height: 440px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}

.yt-hero-copy {
  position: relative;
  z-index: 2;
  padding: 42px 0 48px;
}

.yt-hero .yt-hero-headline {
  font-size: clamp(27px, 3.1vw, 43px);
  line-height: 1.48;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 900;
}

.yt-hero-underline {
  display: block;
  background: var(--yellow);
  height: 8px;
  width: min(295px, 58%);
  border-radius: 99px;
  margin: 8px 0 22px;
}

.yt-hero-description {
  font-size: clamp(14px, 1.55vw, 18px);
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 27px;
  max-width: 520px;
}

.yt-pillars {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.yt-pillars a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #cde1ee;
  box-shadow: 0 4px 10px #123a5a18;
  border-radius: 12px;
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.yt-pillars a span {
  color: #248d48;
  font-size: 22px;
  line-height: 0.7;
}

.yt-pillars a:hover,
.yt-pillars a:focus-visible {
  background: #f2fff1;
  border-color: #8cce8a;
}

/* Web素材だけ別の入口として黄色で目立たせる */
.yt-pillars a.yt-pillar-parts {
  background: #fff7cf;
  border-color: #efd366;
}

.yt-pillars a.yt-pillar-parts span {
  color: #a87c00;
}

.yt-pillars a.yt-pillar-parts:hover,
.yt-pillars a.yt-pillar-parts:focus-visible {
  background: #ffefa3;
  border-color: #deb82a;
}

.yt-hero-art {
  position: relative;
  z-index: 1;
  align-self: end;
  margin-left: -90px;
  margin-right: -64px;
  pointer-events: none;
}

.yt-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 13px #628cb51c);
}

.yt-hero-cube {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #b2d9f7;
  opacity: 0.64;
  transform: rotate(-30deg) skew(15deg, 15deg);
  z-index: 0;
}

.cube-a {
  top: 12%;
  left: 62%;
}

.cube-b {
  bottom: 16%;
  left: 6%;
  width: 32px;
  height: 32px;
  opacity: 0.22;
}

.cube-c {
  top: 26%;
  right: 7%;
  width: 13px;
  height: 13px;
  opacity: 0.3;
}

/* —— About —— */
.yt-about {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 54px 0 58px;
  background: linear-gradient(120deg, #eef8ff, #e3f2fd 55%, #f8fcff);
}

/* 幅は .yt-shell（おすすめツールと同じ）に任せる */
.yt-about-inner {
  position: relative;
  display: block;
  padding: 30px 36px 32px;
  background: linear-gradient(125deg, #ffffffed, #f5fbffef);
  border: 2px solid #b5d9f0;
  border-radius: 24px;
  box-shadow: 8px 9px 0 #b6dff073, 0 15px 30px #1d5b8712;
}

.yt-about-inner::before {
  content: "";
  position: absolute;
  right: 19px;
  top: 17px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #a7d6f3 50%, #77b6de 50%);
  transform: rotate(30deg) skew(-7deg, -7deg);
  opacity: 0.55;
}

.yt-about-inner > h2 {
  display: block;
  margin: 0 0 22px;
  font-size: clamp(23px, 2.5vw, 30px);
  color: #153956;
}

.yt-about-heading-main {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.yt-about-heading-icon {
  width: 32px;
  height: 32px;
  flex: none;
  filter: drop-shadow(2px 3px 0 #8bc8eb55);
}

.yt-about-inner > h2::after,
.yt-about h2::after {
  content: "";
  display: block;
  width: 122px;
  height: 5px;
  background: #ffce0b;
  border-radius: 99px;
  margin: 10px 0 0;
}

.yt-about-content {
  display: grid;
  grid-template-columns: 195px minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.yt-about-avatar {
  width: 195px;
  height: 195px;
  aspect-ratio: 1;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.yt-about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.yt-about-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-left: 2px solid #c8e3f4;
  padding-left: 26px;
  min-width: 0;
}

.yt-about-copy p {
  font-size: 14px;
  line-height: 1.85;
  margin: 0 0 11px;
  color: #243d54;
}

.yt-text-link,
.yt-text-link:visited {
  color: #183957;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.yt-text-link span {
  font-size: 20px;
  font-weight: 600;
  display: inline-block;
  vertical-align: -1px;
  margin-left: 5px;
}

.yt-about-link,
.yt-about-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0;
  align-self: flex-end;
  margin: 14px 0 0 auto;
  padding: 0;
  font-weight: inherit;
}

/* —— Tool sections —— */
.yt-middle {
  padding: 36px 16px 38px;
}

.yt-wrap {
  max-width: 1180px;
  margin: auto;
}

.yt-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 25px;
  align-items: center;
  padding: 32px 24px;
  padding-bottom: 24px;
  margin-bottom: 22px;
  border-radius: 22px;
  background: linear-gradient(115deg, #f7fbff 0%, #edf6fd 100%);
  overflow: hidden;
}

.yt-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 82px;
  height: 82px;
  left: -34px;
  bottom: -22px;
  transform: rotate(30deg) skew(-8deg, -8deg);
  border: 18px solid #d6e9f9;
  opacity: 0.48;
}

.yt-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 38px;
  height: 38px;
  right: 35%;
  top: 13px;
  transform: rotate(30deg) skew(-8deg, -8deg);
  background: #d8eafb;
  opacity: 0.35;
}

.yt-section:nth-child(2) {
  background: linear-gradient(115deg, #f9fcff, #edf7fc);
}

.yt-section:nth-child(3) {
  background: linear-gradient(115deg, #fafcff, #eff6fc);
}

.yt-intro {
  align-self: center;
}

.yt-intro-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.yt-voxel-icon {
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.yt-intro-heading h2 {
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.35;
  letter-spacing: -0.045em;
  margin: 0;
  padding-left: 0;
  border-left: 0;
  position: relative;
}

.yt-intro-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 125px;
  height: 5px;
  background: #ffcf19;
  border-radius: 10px;
}

.yt-intro > p {
  font-size: 16px;
  line-height: 1.85;
  margin: 21px 0 0;
  max-width: 250px;
}

.yt-right {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yt-view-all,
.yt-view-all:visited {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  margin: 13px 0 0 auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #183957;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.yt-view-all span {
  margin-left: 7px;
  text-decoration: none;
}

.yt-view-all:focus-visible {
  outline: 2px solid #146b39;
  outline-offset: 5px;
}

.yt-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.yt-card {
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 148px;
  padding: 21px 45px 33px 17px;
  border-radius: 17px;
  background: #fff;
  border: 1px solid #e4edf4;
  box-shadow: 0 5px 10px #15324a1a;
}

.yt-card-title {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 9px;
}

.yt-wrench {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: #193c5b;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yt-card-title h3 {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.yt-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.yt-created {
  display: block;
  font-size: 11px;
  color: #64788b;
  margin-top: 12px;
  line-height: 1.4;
}

.yt-card .yt-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #2a638c;
  font-size: 24px;
  font-weight: 500;
}

/* —— Articles + stage —— */
.yt-stage3 {
  position: relative;
  overflow: hidden;
  padding: 44px 20px 75px;
  background: linear-gradient(180deg, #fff 0%, #fff 65%, #f1f8ff 100%);
}

.yt-stage3::before,
.yt-stage3::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 95px;
  height: 95px;
  opacity: 0.28;
  background: linear-gradient(135deg, #d4e9ff 0 50%, #b4d9f7 50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.yt-stage3::before {
  left: -35px;
  bottom: 3px;
}

.yt-stage3::after {
  right: -25px;
  bottom: 15px;
  transform: scale(0.68);
}

/* —— Pickup（おすすめツール） —— */
.yt-pickup {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 62px 0 52px;
  background:
    radial-gradient(ellipse 46% 72% at 84% 46%, #e4f3ff 0%, transparent 72%),
    linear-gradient(180deg, #fff 0%, #f6fbff 100%);
}

.yt-pickup::before,
.yt-pickup::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(135deg, #d4e9ff 0 50%, #b4d9f7 50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.yt-pickup::before {
  left: -30px;
  top: 52px;
  width: 100px;
  height: 100px;
  opacity: 0.4;
}

.yt-pickup::after {
  right: -26px;
  bottom: 10px;
  width: 78px;
  height: 78px;
  opacity: 0.32;
}

.yt-pickup-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 38px;
  align-items: center;
  padding: 42px 44px 40px;
  background: linear-gradient(125deg, #fff 0%, #f1f9ff 100%);
  border: 2px solid #b5d9f0;
  border-radius: 26px;
  box-shadow: 9px 10px 0 #b6dff073, 0 18px 34px #1d5b8714;
}

.yt-pickup-badge {
  position: absolute;
  top: -17px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 18px 7px 13px;
  border-radius: 99px;
  background: var(--yellow);
  color: #3b2e00;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 0 #d9a800;
}

.yt-pickup-badge svg {
  width: 17px;
  height: 17px;
  fill: #3b2e00;
}

.yt-pickup-copy {
  min-width: 0;
}

.yt-pickup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 12px;
}

.yt-pickup-meta span {
  padding: 4px 11px;
  border-radius: 99px;
  background: #e3f2fd;
  color: #1d5f8d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.yt-pickup-meta span:first-child {
  background: #0f5f93;
  color: #fff;
}

.yt-pickup-copy h2 {
  position: relative;
  margin: 0;
  padding-bottom: 17px;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.yt-pickup-copy h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 125px;
  height: 5px;
  border-radius: 10px;
  background: #ffcf19;
}

.yt-pickup-lead {
  margin: 16px 0 18px;
  font-size: 15px;
  line-height: 1.85;
  color: #243d54;
}

.yt-pickup-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.yt-pickup-points li {
  position: relative;
  padding: 10px 12px 10px 40px;
  border: 1px solid #d3e6f3;
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  color: #183957;
}

.yt-pickup-points li::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 50%;
  width: 19px;
  height: 19px;
  margin-top: -9.5px;
  border-radius: 50%;
  background: var(--green);
}

.yt-pickup-points li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 5px;
  height: 9px;
  margin-top: -6px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.yt-pickup-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.yt-pickup-cta,
.yt-pickup-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 15px;
  background: linear-gradient(180deg, #2b92d9, #1673b7);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 5px 0 #0f5a8f, 0 12px 20px #0f5a8f33;
}

.yt-pickup-cta span {
  font-size: 22px;
  line-height: 0.7;
}

.yt-pickup-cta:hover,
.yt-pickup-cta:focus-visible {
  color: #fff;
  text-decoration: none;
  transform: translateY(2px);
  box-shadow: 0 3px 0 #0f5a8f, 0 8px 14px #0f5a8f33;
}

/* 右：スライダーの見本（CSSだけで動く飾り） */
.yt-pickup-art {
  position: relative;
  min-width: 0;
  padding: 8px 6px 34px 14px;
}

.yt-pickup-art::before {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  top: -6px;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ffe066 50%, #ffc933 50%);
  transform: rotate(30deg) skew(-8deg, -8deg);
}

.yt-mock {
  position: relative;
  overflow: hidden;
  border: 2px solid #b5d9f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 8px 9px 0 #b6dff0aa, 0 16px 28px #1d5b8718;
  transform: rotate(-1.2deg);
}

.yt-mock-bar {
  display: flex;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #cfe3f1;
  background: #eaf4fb;
}

.yt-mock-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff8e8e;
}

.yt-mock-bar i:nth-child(2) {
  background: #ffd36b;
}

.yt-mock-bar i:nth-child(3) {
  background: #77d28a;
}

.yt-mock-view {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #cfe8f8;
}

.yt-mock-track {
  display: flex;
  width: 400%;
  height: 100%;
}

.yt-mock-track span {
  position: relative;
  flex: 0 0 25%;
  height: 100%;
  overflow: hidden;
}

.yt-mock-track span::before {
  content: "";
  position: absolute;
  right: 16%;
  top: 15%;
  width: 17%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff6b8;
  box-shadow: 0 0 0 8px #fff6b855;
}

.yt-mock-track span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: var(--m, #4f9fd3);
  clip-path: polygon(0 100%, 0 58%, 20% 22%, 40% 62%, 62% 8%, 100% 66%, 100% 100%);
}

.yt-mock-track .s1 {
  background: linear-gradient(180deg, #8fd0f5, #e1f4ff);
  --m: #4f9fd3;
}

.yt-mock-track .s2 {
  background: linear-gradient(180deg, #ffd27f, #ffe9c7);
  --m: #d0675f;
}

.yt-mock-track .s3 {
  background: linear-gradient(180deg, #a8e6c0, #effcf0);
  --m: #3d9d6c;
}

.yt-mock-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: #0b1b3b8c;
}

.yt-mock-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border: solid #fff;
  border-width: 2px 0 0 2px;
}

.yt-mock-arrow.l {
  left: 10px;
}

.yt-mock-arrow.l::before {
  transform: translate(-30%, -50%) rotate(-45deg);
}

.yt-mock-arrow.r {
  right: 10px;
}

.yt-mock-arrow.r::before {
  transform: translate(-70%, -50%) rotate(135deg);
}

.yt-mock-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.yt-mock-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffffffaa;
}

.yt-mock-dots i:first-child {
  background: #fff;
  box-shadow: 0 0 0 2px #1673b7;
}

.yt-mock-code {
  position: absolute;
  right: -4px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 15px;
  border-radius: 14px;
  background: #0e2a47;
  color: #cfe9ff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 20px #0e2a4733, 0 0 0 3px #fff;
  transform: rotate(1.5deg);
}

.yt-mock-code span {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
}

.yt-mock-code em {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--green);
  color: #fff;
  font-style: normal;
}

/* —— Web素材 —— */
.yt-parts {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 60px 0 64px;
  color: #fff;
  background:
    radial-gradient(ellipse 60% 90% at 88% 8%, #3aa7e2 0%, transparent 62%),
    linear-gradient(120deg, #0b3a63 0%, #0f5f93 56%, #1a85c4 100%);
}

.yt-parts::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, #9fd3f5 1px, transparent 1px),
    linear-gradient(150deg, #9fd3f5 1px, transparent 1px);
  background-size: 74px 42px;
  mask-image: linear-gradient(to right, transparent 4%, #000 100%);
}

.yt-parts::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: 5%;
  bottom: -34px;
  width: 130px;
  height: 130px;
  opacity: 0.14;
  pointer-events: none;
  background: linear-gradient(135deg, #fff 0 50%, #cfe9fb 50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.yt-parts-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 36px;
  align-items: end;
  margin-bottom: 26px;
}

.yt-parts-headcopy {
  min-width: 0;
}

.yt-parts-eyebrow {
  display: inline-block;
  padding: 4px 13px;
  border: 1px solid #ffffff55;
  border-radius: 99px;
  background: #ffffff1f;
  color: #bfe4fb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.yt-parts-title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 12px 0 0;
  padding-bottom: 17px;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.04em;
  color: #fff;
}

.yt-parts-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 125px;
  height: 5px;
  border-radius: 10px;
  background: var(--yellow);
}

.yt-parts-title svg {
  flex: none;
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yt-parts-lead {
  max-width: 640px;
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: #e3f3fd;
}

.yt-parts-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-parts-badges li {
  padding: 7px 14px;
  border-radius: 99px;
  background: #fff;
  color: #0f4f7e;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 3px 0 #0a3556;
}

.yt-parts-steps {
  --yt-step-gap: 46px; /* ボックス間の幅。くの字はこの中央に置く（左右に同じ余白） */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px var(--yt-step-gap);
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  counter-reset: yt-parts-step;
}

.yt-parts-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #ffffff3d;
  border-radius: 14px;
  background: #ffffff14;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.yt-parts-steps li::before {
  counter-increment: yt-parts-step;
  content: counter(yt-parts-step);
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  color: #3b2e00;
  font-size: 15px;
  font-weight: 900;
}

.yt-parts-steps li:not(:last-child)::after {
  content: "›";
  position: absolute;
  left: 100%;
  top: 50%;
  width: var(--yt-step-gap);
  transform: translateY(-54%);
  color: var(--yellow);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.yt-parts-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yt-parts-item,
.yt-parts-item:visited {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  height: 100%;
  min-height: 128px;
  padding: 16px 14px 14px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 0 #0a3556, 0 14px 22px #06243f33;
}

.yt-parts-item:hover,
.yt-parts-item:focus-visible {
  color: var(--ink);
  text-decoration: none;
  border-color: var(--yellow);
}

.yt-parts-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e5f4ff, #c6e4f8);
  color: #116aa3;
}

.yt-parts-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -4px;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--yellow);
  transform: rotate(30deg) skew(-8deg, -8deg);
}

.yt-parts-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yt-parts-name {
  font-size: 14px;
  line-height: 1.45;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.yt-parts-count {
  margin-top: auto;
  font-size: 12px;
  font-weight: 800;
  color: #5a7084;
}

.yt-parts-go {
  position: absolute;
  right: 13px;
  bottom: 9px;
  color: #2a638c;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.yt-parts-foot {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.yt-parts-cta,
.yt-parts-cta:visited {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 36px;
  border-radius: 99px;
  background: var(--yellow);
  color: #2f2400;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 0 #c79a00, 0 16px 26px #04203a40;
}

.yt-parts-cta span {
  font-size: 24px;
  line-height: 0.7;
}

.yt-parts-cta:hover,
.yt-parts-cta:focus-visible {
  color: #2f2400;
  text-decoration: none;
  transform: translateY(3px);
  box-shadow: 0 3px 0 #c79a00, 0 8px 16px #04203a40;
}

.yt-parts-item:focus-visible,
.yt-parts-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.yt-pickup-cta:focus-visible {
  outline: 3px solid #146b39;
  outline-offset: 4px;
}

/* —— Responsive —— */
@media (max-width: 1024px) {
  

  

  .yt-hero-inner {
    min-height: 390px;
  }

  .yt-hero .yt-hero-headline {
    font-size: clamp(25px, 3.4vw, 34px);
  }

  .yt-hero-art {
    margin-left: -45px;
    margin-right: -30px;
  }

  .yt-pillars a {
    font-size: 12px;
    padding: 10px;
  }

  .yt-section {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 15px;
    padding: 24px 18px;
  }

  .yt-intro-heading {
    gap: 7px;
  }

  .yt-intro-heading .yt-voxel-icon {
    flex-basis: 63px;
    width: 63px;
    height: 63px;
  }

  .yt-intro > p {
    max-width: 210px;
  }

  .yt-cards {
    gap: 8px;
  }

  .yt-card {
    min-height: 170px;
    padding: 15px 37px 15px 12px;
  }

  .yt-pickup-inner {
    gap: 24px;
    padding: 38px 28px 34px;
  }

  .yt-pickup-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .yt-parts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .yt-parts-steps {
    --yt-step-gap: 34px;
  }

  .yt-parts-steps li {
    font-size: 13px;
    padding: 12px 14px;
  }

  
}

@media (max-width: 768px) {
  

  

  

  

  .yt-about-heading-icon {
    width: 27px;
    height: 27px;
  }

  .yt-about-heading-main {
    gap: 9px;
  }

  

  [id="shindan"],
  [id="keisan"],
  [id="generator"],
  [id="articles"],
  [id="pickup"],
  [id="web-parts"],
  [id="yt-about-title"] {
    scroll-margin-top: 80px;
  }

  

  .yt-stage3 {
    padding: 30px 15px 60px;
  }

  

  

  

  

  .yt-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }

  .yt-hero-copy {
    padding: 34px 0 0;
  }

  .yt-hero .yt-hero-headline {
    font-size: clamp(22px, 5.2vw, 33px);
    line-height: 1.48;
  }

  .yt-hero-underline {
    height: 6px;
    width: 56%;
    margin: 8px 0 17px;
  }

  .yt-hero-description {
    font-size: 14px;
    margin-bottom: 19px;
  }

  .yt-pillars {
    gap: 7px;
  }

  .yt-pillars a {
    font-size: 12px;
    padding: 10px 12px;
  }

  .yt-hero-art {
    align-self: center;
    width: min(112%, 610px);
    margin: -10px -8% -3%;
  }

  .yt-hero-grid {
    opacity: 0.07;
  }

  .yt-about {
    padding: 36px 0 40px;
  }

  .yt-about-inner {
    padding: 22px 19px 23px;
    border-radius: 17px;
    box-shadow: 5px 6px 0 #b6dff073;
  }

  .yt-about-inner > h2 {
    font-size: 23px;
    margin-bottom: 15px;
  }

  .yt-about-content {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .yt-about-avatar {
    width: 135px;
    height: 135px;
    margin: auto;
  }

  .yt-about-copy {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #c8e3f4;
    padding-top: 14px;
  }

  .yt-about-copy p {
    font-size: 13px;
  }

  .yt-about-link,
  .yt-about-link:visited {
    margin-top: 12px;
  }

  .yt-text-link,
  .yt-text-link:visited {
    font-size: 13px;
  }

  .yt-middle {
    padding: 27px 12px 14px;
  }

  .yt-section {
    display: block;
    padding-top: 20px;
    padding-right: 16px;
    padding-bottom: 19px;
    padding-left: 16px;
    margin-bottom: 16px;
  }

  .yt-intro {
    display: block;
    margin-bottom: 14px;
  }

  .yt-intro-heading {
    gap: 10px;
  }

  .yt-intro-heading .yt-voxel-icon {
    flex: 0 0 62px;
    width: 62px;
    height: 62px;
  }

  .yt-intro-heading h2 {
    font-size: 24px;
  }

  .yt-intro > p {
    margin: 14px 0 0;
    max-width: none;
    font-size: 13px;
    line-height: 1.5;
  }

  .yt-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .yt-card {
    min-height: 0;
    padding: 16px 40px 16px 14px;
  }

  .yt-card-title {
    gap: 8px;
  }

  .yt-wrench {
    width: 17px;
    height: 17px;
  }

  .yt-view-all,
  .yt-view-all:visited {
    margin: 12px 0 0 auto;
    font-size: 12px;
  }

  .yt-pickup {
    padding: 50px 0 38px;
  }

  .yt-pickup-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 34px 18px 26px;
    border-radius: 20px;
    box-shadow: 5px 6px 0 #b6dff073, 0 12px 24px #1d5b8712;
  }

  .yt-pickup-badge {
    left: 20px;
    font-size: 13px;
  }

  .yt-pickup-lead {
    font-size: 14px;
  }

  .yt-pickup-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
  }

  .yt-pickup-cta,
  .yt-pickup-cta:visited {
    justify-content: center;
    padding: 15px 18px;
  }

  .yt-pickup-art {
    padding: 4px 4px 32px 6px;
  }

  .yt-parts {
    padding: 44px 0 48px;
  }

  .yt-parts-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 20px;
  }

  .yt-parts-badges {
    justify-content: flex-start;
  }

  .yt-parts-lead {
    font-size: 14px;
  }

  .yt-parts-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .yt-parts-steps li:not(:last-child)::after {
    display: none;
  }

  .yt-parts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .yt-parts-item,
  .yt-parts-item:visited {
    min-height: 112px;
    padding: 13px 11px 12px;
    border-radius: 15px;
  }

  .yt-parts-foot {
    margin-top: 26px;
  }

  .yt-parts-cta,
  .yt-parts-cta:visited {
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
  }

  

  
}

@media (prefers-reduced-motion: no-preference) {
  .yt-card {
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .yt-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 16px #15324a21;
  }

  .yt-pickup-cta,
  .yt-parts-cta {
    transition: transform 0.15s, box-shadow 0.15s;
  }

  .yt-parts-item {
    transition: transform 0.18s, border-color 0.18s;
  }

  .yt-parts-item:hover {
    transform: translateY(-3px);
  }

  /* おすすめツールの見本スライダー（3枚＋ループ用の複製1枚を12秒で回す） */
  .yt-mock-track {
    animation: yt-mock-slide 12s ease-in-out infinite;
  }

  .yt-mock-dots i:nth-child(1) {
    animation: yt-mock-dot1 12s linear infinite;
  }

  .yt-mock-dots i:nth-child(2) {
    animation: yt-mock-dot2 12s linear infinite;
  }

  .yt-mock-dots i:nth-child(3) {
    animation: yt-mock-dot3 12s linear infinite;
  }

  @keyframes yt-mock-slide {
    0%,
    28% {
      transform: translateX(0);
    }

    33%,
    61% {
      transform: translateX(-25%);
    }

    66%,
    94% {
      transform: translateX(-50%);
    }

    99%,
    100% {
      transform: translateX(-75%);
    }
  }

  @keyframes yt-mock-dot1 {
    0%,
    30%,
    97%,
    100% {
      background: #fff;
      box-shadow: 0 0 0 2px #1673b7;
    }

    32%,
    95% {
      background: #ffffffaa;
      box-shadow: 0 0 0 0 transparent;
    }
  }

  @keyframes yt-mock-dot2 {
    0%,
    30%,
    64%,
    100% {
      background: #ffffffaa;
      box-shadow: 0 0 0 0 transparent;
    }

    33%,
    61% {
      background: #fff;
      box-shadow: 0 0 0 2px #1673b7;
    }
  }

  @keyframes yt-mock-dot3 {
    0%,
    63%,
    97%,
    100% {
      background: #ffffffaa;
      box-shadow: 0 0 0 0 transparent;
    }

    66%,
    94% {
      background: #fff;
      box-shadow: 0 0 0 2px #1673b7;
    }
  }
}
