/* Shared styles for ITのトリセツ pages. */
:root {
        --blue-900: #132b47;
        --blue-800: #1e3a5f;
        --teal-500: #24b6bf;
        --teal-700: #117f89;
        --ink: #162033;
        --muted: #687486;
        --line: #dbe4ee;
        --soft: #f4f7fa;
        --white: #ffffff;
        --shadow: 0 18px 50px rgba(20, 42, 71, 0.16);
      }

      * { box-sizing: border-box; }
      html { scroll-behavior: smooth; }
      body {
        margin: 0;
        color: var(--ink);
        font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
        line-height: 1.8;
        background: var(--white);
      }
      a { color: inherit; text-decoration: none; }
      img { display: block; max-width: 100%; }

      .article-header {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 14px clamp(20px, 5vw, 64px);
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
      }
      .brand {
        display: inline-flex;
        align-items: center;
        width: 158px;
      }
      .brand img { width: 100%; height: auto; }
      .article-nav {
        display: flex;
        align-items: center;
        gap: 20px;
        color: var(--blue-800);
        font-size: 14px;
        font-weight: 800;
      }
      .article-nav a:hover { color: var(--teal-700); }

      .article-hero {
        padding: 88px clamp(20px, 5vw, 64px) 58px;
        color: var(--white);
        background:
          linear-gradient(135deg, rgba(19, 43, 71, 0.96), rgba(19, 43, 71, 0.76)),
          url("../assets/hero-it-ai.webp") center / cover;
      }
      .article-hero-inner {
        width: min(1080px, 100%);
        margin: 0 auto;
      }
      .eyebrow {
        margin: 0 0 12px;
        color: var(--teal-500);
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: uppercase;
      }
      .article-hero h1 {
        max-width: 940px;
        margin: 0;
        font-size: clamp(34px, 5vw, 58px);
        line-height: 1.16;
        letter-spacing: 0;
      }
      .article-hero p {
        max-width: 760px;
        margin: 24px 0 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: clamp(16px, 2vw, 19px);
      }
      .article-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 28px;
        color: rgba(255, 255, 255, 0.82);
        font-size: 13px;
      }
      .article-meta span {
        padding: 6px 10px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
      }

      .page-section {
        width: min(1080px, calc(100% - 40px));
        margin: 0 auto;
        padding: 72px 0;
      }
      .section-heading {
        max-width: 760px;
        margin-bottom: 28px;
      }
      .section-heading h2 {
        margin: 0;
        font-size: clamp(28px, 4vw, 42px);
        line-height: 1.25;
      }
      .section-heading p {
        margin: 14px 0 0;
        color: var(--muted);
      }

      .slide-shell {
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--blue-900);
        box-shadow: var(--shadow);
      }
      .slide-stage {
        position: relative;
        min-height: 460px;
        color: var(--white);
      }
      .slide {
        position: absolute;
        inset: 0;
        display: grid;
        align-content: center;
        gap: 24px;
        padding: clamp(28px, 5vw, 58px);
        opacity: 0;
        pointer-events: none;
        transform: translateX(18px);
        transition: opacity 180ms ease, transform 180ms ease;
        background:
          radial-gradient(circle at top right, rgba(36, 182, 191, 0.24), transparent 34%),
          linear-gradient(135deg, #132b47, #1e3a5f);
      }
      .slide.is-active {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(0);
      }
      .slide-kicker {
        color: var(--teal-500);
        font-size: 13px;
        font-weight: 900;
        text-transform: uppercase;
      }
      .slide h3 {
        max-width: 840px;
        margin: 0;
        font-size: clamp(30px, 5vw, 54px);
        line-height: 1.16;
      }
      .slide p {
        max-width: 760px;
        margin: 0;
        color: rgba(255, 255, 255, 0.86);
        font-size: clamp(16px, 2vw, 20px);
      }
      .slide ul {
        display: grid;
        gap: 10px;
        max-width: 760px;
        margin: 0;
        padding: 0;
        list-style: none;
      }
      .slide li {
        padding-left: 1.3em;
        color: rgba(255, 255, 255, 0.9);
        font-size: clamp(16px, 2vw, 19px);
      }
      .slide li::before {
        content: "";
        display: inline-block;
        width: 7px;
        height: 7px;
        margin: 0 10px 2px -1.3em;
        border-radius: 50%;
        background: var(--teal-500);
      }
      .slide-note {
        width: fit-content;
        max-width: 100%;
        padding: 12px 16px;
        border-left: 4px solid var(--teal-500);
        background: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.92);
        font-weight: 800;
      }
      .slide-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px clamp(18px, 3vw, 28px);
        background: rgba(255, 255, 255, 0.06);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
      }
      .slide-button {
        min-width: 82px;
        border: 0;
        border-radius: 999px;
        padding: 10px 16px;
        color: var(--blue-900);
        background: var(--teal-500);
        font-weight: 900;
        cursor: pointer;
      }
      .slide-button:disabled {
        opacity: 0.38;
        cursor: not-allowed;
      }
      .slide-progress {
        display: flex;
        justify-content: center;
        gap: 7px;
      }
      .dot {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
      }
      .dot.is-active { background: var(--teal-500); }
      .slide-count {
        margin-top: 8px;
        color: rgba(255, 255, 255, 0.72);
        font-size: 12px;
        text-align: center;
      }

      .article-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 46px;
        align-items: start;
      }
      .article-body {
        min-width: 0;
      }
      .article-body h2 {
        margin: 54px 0 16px;
        color: var(--blue-900);
        font-size: clamp(26px, 3.6vw, 36px);
        line-height: 1.3;
      }
      .article-body h2:first-child { margin-top: 0; }
      .article-body h3 {
        margin: 32px 0 10px;
        color: var(--blue-800);
        font-size: 22px;
        line-height: 1.45;
      }
      .article-body p {
        margin: 0 0 16px;
      }
      .article-body ul,
      .article-body ol {
        margin: 0 0 20px;
        padding-left: 1.3em;
      }
      .article-body li {
        margin: 5px 0;
      }
      .article-body table {
        width: 100%;
        margin: 18px 0 24px;
        border-collapse: collapse;
        font-size: 15px;
      }
      .article-body th,
      .article-body td {
        border: 1px solid var(--line);
        padding: 10px 12px;
        text-align: left;
        vertical-align: top;
      }
      .article-body th {
        color: var(--blue-900);
        background: var(--soft);
        font-weight: 900;
      }
      .article-body strong {
        color: var(--blue-900);
      }
      .related-note {
        margin: 24px 0;
        padding: 16px 18px;
        border-left: 4px solid var(--teal-500);
        border-radius: 8px;
        background: #eefbfc;
        color: var(--blue-800);
        font-weight: 800;
      }
      .related-note a {
        color: var(--teal-700);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      blockquote {
        margin: 24px 0;
        padding: 18px 22px;
        border-left: 4px solid var(--teal-500);
        background: var(--soft);
        color: var(--blue-800);
        font-weight: 800;
      }
      .answer-box,
      .supplement-box,
      .summary-box,
      .article-cta {
        margin: 32px 0;
        padding: 26px;
        border-radius: 8px;
      }
      .answer-box {
        border: 1px solid rgba(36, 182, 191, 0.36);
        background: #eefbfc;
      }
      .answer-box h2,
      .supplement-box h2,
      .summary-box h2,
      .article-cta h2 {
        margin-top: 0;
      }
      .supplement-box {
        border: 1px solid var(--line);
        background: var(--soft);
      }
      .supplement-box > p {
        margin-bottom: 14px;
      }
      .supplement-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 20px;
      }
      .supplement-card {
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
      }
      .supplement-card h3 {
        margin-top: 0;
        color: var(--blue-800);
      }
      .supplement-card p:last-child {
        margin-bottom: 0;
      }
      .summary-box {
        border: 1px solid var(--line);
        background: var(--soft);
      }
      .article-cta {
        color: var(--white);
        background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
      }
      .article-cta h2 { color: var(--white); }
      .article-cta p { color: rgba(255, 255, 255, 0.86); }
      .cta-link {
        display: inline-flex;
        margin-top: 8px;
        border-radius: 999px;
        padding: 11px 18px;
        color: var(--blue-900);
        background: var(--teal-500);
        font-weight: 900;
      }
      .article-aside {
        position: sticky;
        top: 86px;
        padding: 20px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
      }
      .article-aside h2 {
        margin: 0 0 12px;
        font-size: 18px;
      }
      .article-aside ol {
        display: grid;
        gap: 9px;
        margin: 0;
        padding-left: 1.2em;
        color: var(--muted);
        font-size: 14px;
        font-weight: 800;
      }
      .article-aside a:hover { color: var(--teal-700); }

      .article-footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
        padding: 14px clamp(20px, 5vw, 64px);
        color: var(--ink);
        background: #eef4f8;
        border-top: 1px solid var(--line);
      }
      .footer-logo {
        justify-self: start;
        width: 148px;
        height: auto;
        max-width: 45vw;
      }
      .article-footer p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
      }
      .article-footer a {
        justify-self: end;
        color: var(--blue-800);
        font-size: 13px;
        font-weight: 800;
      }

      @media (max-width: 900px) {
        .article-layout {
          grid-template-columns: 1fr;
        }
        .article-aside {
          position: static;
          order: -1;
        }
      }

      @media (max-width: 620px) {
        .article-header {
          align-items: flex-start;
          flex-direction: column;
          gap: 12px;
        }
        .article-nav {
          flex-wrap: wrap;
          gap: 14px;
        }
        .article-hero {
          padding-top: 58px;
          padding-bottom: 46px;
        }
        .article-hero h1 { font-size: 34px; }
        .page-section {
          width: min(100% - 32px, 1080px);
          padding: 56px 0;
        }
        .slide-stage { min-height: 500px; }
        .slide h3 { font-size: 32px; }
        .slide-controls {
          align-items: stretch;
          flex-wrap: wrap;
        }
        .slide-controls > div {
          order: -1;
          width: 100%;
        }
        .slide-button {
          flex: 1;
        }
        .article-body table {
          display: block;
          overflow-x: auto;
          white-space: nowrap;
        }
        .answer-box,
        .supplement-box,
        .summary-box,
        .article-cta {
          padding: 22px;
        }
        .supplement-grid {
          grid-template-columns: 1fr;
        }
        .article-footer {
          align-items: flex-start;
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .article-footer p { text-align: left; }
        .article-footer a { justify-self: start; }
      }

/* Blog index layout. */

.page-header {
        position: sticky;
        top: 0;
        z-index: 20;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 14px clamp(20px, 5vw, 64px);
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
      }
      .brand {
        display: inline-flex;
        align-items: center;
        width: 158px;
      }
      .brand img { width: 100%; height: auto; }
      .page-nav {
        display: flex;
        align-items: center;
        gap: 20px;
        color: var(--blue-800);
        font-size: 14px;
        font-weight: 800;
      }
      .page-nav a:hover { color: var(--teal-700); }

      .blog-hero {
        padding: 88px clamp(20px, 5vw, 64px) 64px;
        color: var(--white);
        background:
          linear-gradient(135deg, rgba(19, 43, 71, 0.97), rgba(19, 43, 71, 0.72)),
          url("../assets/hero-it-ai.webp") center / cover;
      }
      .blog-hero-inner {
        width: min(1080px, 100%);
        margin: 0 auto;
      }
      .eyebrow {
        margin: 0 0 12px;
        color: var(--teal-500);
        font-size: 13px;
        font-weight: 900;
        letter-spacing: 0;
        text-transform: uppercase;
      }
      .blog-hero h1 {
        max-width: 780px;
        margin: 0;
        font-size: clamp(38px, 6vw, 64px);
        line-height: 1.12;
        letter-spacing: 0;
      }
      .blog-hero p {
        max-width: 720px;
        margin: 22px 0 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: clamp(16px, 2vw, 19px);
      }

      .blog-section {
        width: min(1080px, calc(100% - 40px));
        margin: 0 auto;
        padding: 72px 0;
      }
      .section-heading {
        max-width: 760px;
        margin-bottom: 28px;
      }
      .section-heading h2 {
        margin: 0;
        font-size: clamp(28px, 4vw, 42px);
        line-height: 1.25;
      }
      .section-heading p {
        margin: 14px 0 0;
        color: var(--muted);
      }
      .article-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
      }
      .article-card {
        display: grid;
        grid-template-rows: 180px 1fr;
        overflow: hidden;
        min-height: 100%;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: 0 12px 34px rgba(20, 42, 71, 0.08);
        transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
      }
      .article-card:hover {
        transform: translateY(-3px);
        border-color: rgba(36, 182, 191, 0.52);
        box-shadow: var(--shadow);
      }
      .thumbnail {
        display: grid;
        grid-template-rows: auto 1fr;
        min-height: 0;
        padding: 28px 22px 22px;
        align-content: end;
        color: var(--white);
        background:
          radial-gradient(circle at top right, rgba(36, 182, 191, 0.3), transparent 36%),
          linear-gradient(135deg, var(--blue-900), var(--blue-800));
      }
      .thumbnail span {
        width: fit-content;
        padding: 6px 10px;
        border-radius: 999px;
        color: var(--blue-900);
        background: var(--teal-500);
        font-size: 12px;
        font-weight: 900;
      }
      .thumbnail span.tag-column {
        color: #123d2f;
        background: #7bdca8;
      }
      .thumbnail strong {
        display: block;
        margin-top: 12px;
        font-size: 28px;
        line-height: 1.18;
      }
      .card-body {
        display: grid;
        gap: 14px;
        padding: 22px;
      }
      .card-body h3 {
        margin: 0;
        min-height: calc(22px * 1.4 * 2);
        font-size: 22px;
        line-height: 1.4;
      }
      .card-body p {
        margin: 0;
        min-height: calc(15px * 1.8 * 3);
        color: var(--muted);
        font-size: 15px;
      }
      .card-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 4px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 800;
      }
      .card-meta span {
        padding: 4px 8px;
        border-radius: 999px;
        background: var(--soft);
      }
      .card-link {
        color: var(--teal-700);
        font-size: 14px;
        font-weight: 900;
      }

      .coming-soon {
        display: grid;
        min-height: 100%;
        padding: 28px;
        border: 1px dashed #c7d3df;
        border-radius: 8px;
        background: var(--soft);
      }
      .coming-soon h3 {
        margin: 0 0 10px;
        font-size: 22px;
      }
      .coming-soon p {
        margin: 0;
        color: var(--muted);
        font-size: 15px;
      }

      .blog-footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
        padding: 14px clamp(20px, 5vw, 64px);
        color: var(--ink);
        background: #eef4f8;
        border-top: 1px solid var(--line);
      }
      .footer-logo {
        justify-self: start;
        width: 148px;
        height: auto;
        max-width: 45vw;
      }
      .blog-footer p {
        margin: 0;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.45;
        text-align: center;
      }
      .blog-footer a {
        justify-self: end;
        color: var(--blue-800);
        font-size: 13px;
        font-weight: 800;
      }

      @media (max-width: 900px) {
        .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      }

      @media (max-width: 620px) {
        .page-header {
          align-items: flex-start;
          flex-direction: column;
          gap: 12px;
        }
        .page-nav {
          flex-wrap: wrap;
          gap: 14px;
        }
        .blog-hero {
          padding-top: 58px;
          padding-bottom: 46px;
        }
        .blog-hero h1 { font-size: 38px; }
        .blog-section {
          width: min(100% - 32px, 1080px);
          padding: 56px 0;
        }
        .article-grid { grid-template-columns: 1fr; }
        .article-card { grid-template-rows: 160px 1fr; }
        .blog-footer {
          align-items: flex-start;
          grid-template-columns: 1fr;
          gap: 10px;
        }
        .blog-footer p { text-align: left; }
        .blog-footer a { justify-self: start; }
      }
