/*
Theme Name: Iroiro Work Lab Child
Theme URI: https://iroironairo.com/
Description: Iroiro Work Lab専用のTwenty Twenty-Five子テーマ。
Author: Iroiro Work Lab
Template: twentytwentyfive
Version: 1.1.3
Requires at least: 6.7
Text Domain: iroiro-work-lab
*/

:root {
  --iwl-page: #f3f5f7;
  --iwl-surface: #ffffff;
  --iwl-ink: #171a1f;
  --iwl-muted: #66707a;
  --iwl-line: #d9dee5;
  --iwl-line-strong: #c8d0da;
  --iwl-blue: #2457d6;
  --iwl-blue-strong: #1747bb;
  --iwl-blue-soft: #edf3ff;
  --iwl-green: #14855f;
  --iwl-green-soft: #ecf8f2;
  --iwl-red: #c9493d;
  --iwl-radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--iwl-page);
  color: var(--iwl-ink);
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  letter-spacing: 0;
}
img { max-width: 100%; }
a { color: var(--iwl-blue); text-underline-offset: 3px; }

.iwl-site-header {
  border-bottom: 1px solid var(--iwl-line);
  background: var(--iwl-surface);
}
.iwl-header-inner {
  width: min(calc(100% - 32px), 1120px);
  min-height: 62px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 20px;
}
.iwl-brand {
  color: var(--iwl-ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.iwl-brand strong { font-size: 20px; font-weight: 800; }
.iwl-brand small { display: none; }
.iwl-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}
.iwl-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #343a42;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.iwl-nav a:hover { color: var(--iwl-blue); }
.iwl-header-action,
.iwl-mobile-menu {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px;
}
.iwl-header-action { background-image: url("assets/icons/search.svg"); }
.iwl-mobile-nav { display: none; }
.iwl-mobile-menu { background-image: url("assets/icons/menu.svg"); cursor: pointer; list-style: none; }
.iwl-mobile-menu::-webkit-details-marker { display: none; }
.iwl-mobile-panel { display: none; }

.iwl-shell {
  width: min(calc(100% - 32px), 1120px);
  margin: 20px auto 64px;
  display: grid;
  grid-template-columns: minmax(0, 760px) 300px;
  gap: 40px;
  align-items: start;
}
.iwl-main {
  min-width: 0;
  border: 1px solid var(--iwl-line);
  background: var(--iwl-surface);
}
.iwl-article { padding: 28px 34px 44px; }
.iwl-breadcrumbs {
  margin-bottom: 14px;
  color: var(--iwl-muted);
  font-size: 11px;
  line-height: 1.6;
}
.iwl-breadcrumbs a { color: inherit; text-decoration: none; }
.iwl-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
}
.iwl-category {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--iwl-blue);
  font-size: 11px;
  font-weight: 800;
}
.iwl-confirmed-date { color: var(--iwl-muted); font-size: 11px; }
.iwl-article h1 {
  margin: 10px 0 12px;
  font-size: 34px;
  line-height: 1.42;
  letter-spacing: 0;
}
.iwl-article h2 {
  margin: 52px 0 18px;
  padding: 0 0 10px 12px;
  border-left: 3px solid var(--iwl-blue);
  border-bottom: 1px solid var(--iwl-line-strong);
  font-size: 26px;
  line-height: 1.45;
  letter-spacing: 0;
}
.iwl-article h3 {
  margin: 32px 0 12px;
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: 0;
}
.iwl-article p,
.iwl-article li { font-size: 17px; line-height: 1.85; }
.iwl-article p { margin: 0 0 22px; }
.iwl-article ul,
.iwl-article ol { margin: 0 0 24px; padding-left: 1.5em; }
.iwl-article li + li { margin-top: 5px; }
.iwl-pr {
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 1px solid #9bb7ff;
  background: #f7f9ff;
  color: #36539f;
  font-size: 11px;
  line-height: 1.7;
}
.iwl-lead {
  margin-bottom: 14px;
  color: #303741;
  font-size: 16px;
  line-height: 1.85;
}
.iwl-author-strip {
  min-height: 48px;
  margin: 0 0 16px;
  padding: 7px 0;
  border-top: 1px solid var(--iwl-line);
  border-bottom: 1px solid var(--iwl-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.iwl-author-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #bfd0f8;
  border-radius: 50%;
  background: var(--iwl-blue-soft) url("assets/images/operator-iroiro-v2.png") center / cover no-repeat;
}
.iwl-author-copy { min-width: 0; display: grid; gap: 1px; }
.iwl-author-copy strong { font-size: 12px; }
.iwl-author-copy span { color: var(--iwl-muted); font-size: 10px; }
.iwl-trust {
  margin-left: auto;
  padding-left: 20px;
  background: url("assets/icons/trust.svg") left center / 15px no-repeat;
  color: var(--iwl-green);
  font-size: 10px;
  font-weight: 800;
}
.iwl-featured { margin: 0 -34px 18px; }
.iwl-featured img,
.iwl-figure img,
.iwl-article > figure img {
  width: 100%;
  height: auto;
  display: block;
}
.iwl-featured figcaption,
.iwl-figure figcaption,
.iwl-article > figure figcaption {
  margin-top: 7px;
  padding: 0 34px;
  color: var(--iwl-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}
.iwl-figure,
.iwl-article > figure { margin: 32px -34px; }
.iwl-article > .iwl-featured { margin: 0 -34px 18px; }

.iwl-opening-grid {
  margin: 18px 0 34px;
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.iwl-toc {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--iwl-line);
  background: #fff;
}
.iwl-toc strong { display: block; margin-bottom: 7px; font-size: 13px; }
.iwl-toc ol { margin: 0; padding-left: 1.25em; }
.iwl-toc li { margin: 0; border-bottom: 1px solid #edf0f3; font-size: 11px; line-height: 1.55; }
.iwl-toc li:last-child { border-bottom: 0; }
.iwl-toc a { min-height: 28px; padding: 5px 0; color: var(--iwl-blue); text-decoration: none; display: block; }
.iwl-overview { min-width: 0; }
.iwl-overview h2 {
  margin: 0 0 8px;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--iwl-blue);
  border-bottom: 0;
  font-size: 17px;
}
.iwl-overview > p { margin: 0 0 14px; color: #4d5660; font-size: 12px; line-height: 1.7; }
.iwl-step-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.iwl-step {
  min-width: 0;
  position: relative;
  text-align: center;
}
.iwl-step:not(:last-child)::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  top: 19px;
  right: -14px;
  background: url("assets/icons/chevron.svg") center / contain no-repeat;
}
.iwl-step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 7px;
  border: 2px solid #7fa2fb;
  border-radius: 50%;
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  display: block;
}
.iwl-step-icon--plan { background-image: url("assets/icons/plan.svg"); }
.iwl-step-icon--produce { background-image: url("assets/icons/produce.svg"); }
.iwl-step-icon--calendar { background-image: url("assets/icons/calendar.svg"); }
.iwl-step-icon--analyze { background-image: url("assets/icons/analyze.svg"); }
.iwl-step-icon--improve { background-image: url("assets/icons/improve.svg"); }
.iwl-step strong { color: var(--iwl-blue); font-size: 10px; line-height: 1.35; display: block; }
.iwl-step span:last-child { color: var(--iwl-muted); font-size: 9px; line-height: 1.35; display: block; }

.iwl-flow {
  margin: 26px 0;
  border: 1px solid var(--iwl-line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.iwl-flow > div { min-width: 0; padding: 16px; border-right: 1px solid var(--iwl-line); }
.iwl-flow > div:last-child { border-right: 0; }
.iwl-flow span { color: var(--iwl-blue); font-size: 10px; font-weight: 800; }
.iwl-flow strong { margin-top: 5px; font-size: 14px; display: block; }
.iwl-flow p { margin: 5px 0 0; color: var(--iwl-muted); font-size: 12px; line-height: 1.6; }
.iwl-table-scroll {
  width: calc(100% + 68px);
  margin: 28px -34px;
  overflow-x: auto;
  border: 1px solid var(--iwl-line);
  -webkit-overflow-scrolling: touch;
}
.iwl-table-scroll table,
.iwl-table { width: 100%; min-width: 700px; border-collapse: collapse; table-layout: fixed; }
.iwl-table-scroll th,
.iwl-table-scroll td,
.iwl-table th,
.iwl-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--iwl-line);
  border-right: 1px solid var(--iwl-line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.iwl-table-scroll code { font-size: 12px; white-space: nowrap; }
.iwl-table--metrics th:nth-child(1) { width: 24%; }
.iwl-table--metrics th:nth-child(2) { width: 33%; }
.iwl-table--metrics th:nth-child(3) { width: 43%; }
.iwl-table--events { min-width: 760px !important; }
.iwl-table--events th:nth-child(1) { width: 24%; }
.iwl-table--events th:nth-child(2) { width: 46%; }
.iwl-table--events th:nth-child(3) { width: 30%; }
.iwl-table--schedule { min-width: 620px !important; }
.iwl-table--schedule th:first-child { width: 24%; }
.iwl-table th:last-child,
.iwl-table td:last-child,
.iwl-table-scroll th:last-child,
.iwl-table-scroll td:last-child { border-right: 0; }
.iwl-table tr:last-child td,
.iwl-table-scroll tr:last-child td { border-bottom: 0; }
.iwl-table th,
.iwl-table-scroll th { background: #f1f3f6; font-weight: 800; }
.iwl-note {
  margin: 26px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--iwl-red);
  background: #fff5f4;
}
.iwl-note strong { margin-bottom: 4px; color: #8f3028; display: block; }
.iwl-note p { margin: 0; font-size: 14px; }
.iwl-cta {
  margin: 34px 0;
  padding: 20px;
  border: 1px solid #84a6ff;
  background: #f8faff;
}
.iwl-cta h2,
.iwl-cta h3 { margin: 0 0 8px; padding: 0; border: 0; font-size: 19px; }
.iwl-cta p { margin-bottom: 14px; font-size: 14px; line-height: 1.7; }
.iwl-inline-cta {
  margin: 26px 0;
  padding: 12px 14px;
  border: 1px solid #84a6ff;
  background: #f7f9ff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.iwl-inline-cta::before {
  content: "";
  width: 34px;
  height: 34px;
  background: url("assets/icons/trust.svg") center / 27px no-repeat;
}
.iwl-inline-cta p { margin: 0; color: #39424c; font-size: 12px; line-height: 1.6; }
.iwl-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--iwl-blue);
  border-radius: 4px;
  background: var(--iwl-blue);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.iwl-button::after {
  content: "";
  width: 15px;
  height: 15px;
  margin-left: 8px;
  background: url("assets/icons/external.svg") center / contain no-repeat;
  filter: brightness(0) invert(1);
}
.iwl-button:hover { background: var(--iwl-blue-strong); color: #fff; }
.iwl-sources { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--iwl-line); }
.iwl-sources h2 { margin-top: 0; }
.iwl-sources li { font-size: 14px; }
.iwl-source-check { color: var(--iwl-muted); font-size: 12px; }
.iwl-related { margin-top: 40px; }
.iwl-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.iwl-related-card {
  min-width: 0;
  border: 1px solid var(--iwl-line);
  background: #fff;
  color: var(--iwl-ink);
  text-decoration: none;
  overflow: hidden;
  display: block;
}
.iwl-related-card:hover { border-color: var(--iwl-blue); }
.iwl-related-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.iwl-related-copy { min-height: 104px; padding: 11px 12px; display: grid; align-content: space-between; gap: 8px; }
.iwl-related-card span { color: var(--iwl-blue); font-size: 10px; font-weight: 800; }
.iwl-related-card strong { font-size: 13px; line-height: 1.5; }
.iwl-related-card time { color: var(--iwl-muted); font-size: 10px; }
.iwl-back { min-height: 48px; margin-top: 30px; color: var(--iwl-blue); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; }

.iwl-sidebar { position: sticky; top: 18px; display: grid; gap: 14px; }
.iwl-side-section { padding: 16px; border: 1px solid var(--iwl-line); background: var(--iwl-surface); }
.iwl-side-section h2 { margin: 0 0 12px; font-size: 14px; }
.iwl-side-section p,
.iwl-side-section li { color: #4c545d; font-size: 12px; line-height: 1.65; }
.iwl-side-section ul { margin: 0; padding: 0; list-style: none; }
.iwl-side-section li + li { border-top: 1px solid #edf0f3; }
.iwl-side-section a { min-height: 34px; color: #343b43; font-weight: 700; text-decoration: none; display: flex; align-items: center; }
.iwl-side-section a:hover { color: var(--iwl-blue); }
.iwl-side-author { display: grid; grid-template-columns: 56px 1fr; gap: 11px; align-items: center; }
.iwl-side-author-mark {
  width: 56px;
  height: 56px;
  border: 1px solid #bfd0f8;
  border-radius: 50%;
  background: var(--iwl-blue-soft) url("assets/images/operator-iroiro-v2.png") center / cover no-repeat;
}
.iwl-side-author strong { font-size: 13px; }
.iwl-side-author small { color: var(--iwl-muted); font-size: 10px; display: block; }
.iwl-side-link { margin-top: 10px; color: var(--iwl-blue) !important; font-size: 11px; }
.iwl-profile-values { margin: 12px 0 0 !important; padding: 12px 0 0 !important; border-top: 1px solid #edf0f3; }
.iwl-profile-values li {
  min-height: 0;
  padding: 4px 0 4px 18px;
  border: 0 !important;
  background: url("assets/icons/trust.svg") left 7px / 12px no-repeat;
  color: #4c545d;
  font-size: 11px;
  line-height: 1.55;
}
.iwl-side-related { display: grid; gap: 10px; }
.iwl-side-related a { min-height: 0; display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 9px; align-items: start; }
.iwl-side-related img { width: 74px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.iwl-side-related strong { font-size: 11px; line-height: 1.45; }
.iwl-side-related time { margin-top: 3px; color: var(--iwl-muted); font-size: 9px; display: block; }
.iwl-editorial-note { margin: 0; padding-top: 12px; border-top: 1px solid var(--iwl-line); color: var(--iwl-muted) !important; font-size: 10px !important; }
.iwl-site-footer { padding: 30px 16px; border-top: 1px solid var(--iwl-line); background: #20242a; color: #d6d9dd; text-align: center; }
.iwl-site-footer nav { margin-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.iwl-site-footer a { color: #fff; font-size: 12px; }
.iwl-site-footer small { color: #aeb4bb; }

.iwl-home { width: min(calc(100% - 32px), 1120px); margin: 34px auto 72px; }
.iwl-home-intro { padding: 32px 0 28px; border-bottom: 1px solid var(--iwl-line); display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 54px; align-items: end; }
.iwl-home-intro h1 { margin: 0; font-size: 40px; line-height: 1.35; }
.iwl-home-intro p { margin: 14px 0 0; color: #4d555e; font-size: 17px; line-height: 1.85; }
.iwl-home-intro aside { padding-left: 20px; border-left: 4px solid var(--iwl-green); color: #3e474f; font-size: 14px; line-height: 1.75; }
.iwl-home-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.iwl-home-card { min-height: 410px; padding: 0 22px 22px; border: 1px solid var(--iwl-line); background: #fff; color: var(--iwl-ink); text-decoration: none; overflow: hidden; display: grid; align-content: space-between; }
.iwl-home-card:hover { border-color: var(--iwl-blue); }
.iwl-home-card > img.iwl-home-card-media,
.iwl-home-card .wp-block-post-featured-image { width: calc(100% + 44px); margin: 0 -22px 20px; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f4; }
.iwl-home-card > img.iwl-home-card-media { height: auto; object-fit: cover; display: block; }
.iwl-home-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iwl-home-card span { color: var(--iwl-blue); font-size: 11px; font-weight: 800; }
.iwl-home-card h2 { margin: 14px 0; font-size: 21px; line-height: 1.5; }
.iwl-home-card p { color: var(--iwl-muted); font-size: 13px; line-height: 1.7; }
.iwl-home-card strong { font-size: 13px; }

@media (max-width: 900px) {
  .iwl-shell { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .iwl-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iwl-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { background: #fff; }
  .iwl-header-inner { width: 100%; min-height: 56px; padding: 0 12px; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 6px; }
  .iwl-mobile-nav { display: block; }
  .iwl-mobile-nav[open] .iwl-mobile-panel {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--iwl-line);
    border-bottom: 1px solid var(--iwl-line);
    background: #fff;
    position: absolute;
    top: 56px;
    right: 0;
    left: 0;
    z-index: 20;
    display: grid;
  }
  .iwl-mobile-panel a { min-height: 44px; border-bottom: 1px solid #edf0f3; color: var(--iwl-ink); font-size: 13px; font-weight: 700; text-decoration: none; display: flex; align-items: center; }
  .iwl-mobile-panel a:last-child { border-bottom: 0; }
  .iwl-brand { justify-content: center; }
  .iwl-brand strong { font-size: 16px; }
  .iwl-nav { display: none; }
  .iwl-shell { width: 100%; margin: 0 auto 36px; }
  .iwl-main { border-left: 0; border-right: 0; }
  .iwl-article { padding: 20px 16px 38px; }
  .iwl-breadcrumbs { margin-bottom: 10px; font-size: 9px; }
  .iwl-confirmed-date { font-size: 9px; }
  .iwl-article h1 { margin-top: 7px; font-size: 28px; line-height: 1.42; }
  .iwl-article h2 { margin-top: 44px; font-size: 23px; }
  .iwl-article h3 { font-size: 19px; }
  .iwl-article p,
  .iwl-article li { font-size: 16px; }
  .iwl-featured,
  .iwl-figure,
  .iwl-article > figure { margin-right: 0; margin-left: 0; }
  .iwl-article > .iwl-featured { margin-right: 0; margin-left: 0; }
  .iwl-featured figcaption,
  .iwl-figure figcaption,
  .iwl-article > figure figcaption { padding: 0; }
  .iwl-table-scroll { width: 100%; margin-right: 0; margin-left: 0; }
  .iwl-pr { padding: 7px 9px; font-size: 10px; }
  .iwl-lead { font-size: 15px; }
  .iwl-author-strip { gap: 7px 9px; }
  .iwl-trust { margin-left: 0; }
  .iwl-opening-grid { grid-template-columns: 1fr; gap: 18px; }
  .iwl-toc { padding: 11px 12px; }
  .iwl-toc ol { padding-left: 1.2em; }
  .iwl-toc li { font-size: 12px; }
  .iwl-overview h2 { margin-top: 0; font-size: 18px; }
  .iwl-step-row { gap: 6px; }
  .iwl-step:not(:last-child)::after { width: 10px; height: 10px; top: 17px; right: -8px; }
  .iwl-step-icon { width: 42px; height: 42px; background-size: 21px; }
  .iwl-step strong { font-size: 9px; }
  .iwl-step span:last-child { display: none; }
  .iwl-flow { grid-template-columns: 1fr; }
  .iwl-flow > div { border-right: 0; border-bottom: 1px solid var(--iwl-line); }
  .iwl-flow > div:last-child { border-bottom: 0; }
  .iwl-inline-cta { grid-template-columns: 30px minmax(0, 1fr); }
  .iwl-inline-cta .iwl-button { grid-column: 1 / -1; }
  .iwl-button { width: 100%; }
  .iwl-related-grid,
  .iwl-sidebar { grid-template-columns: 1fr; }
  .iwl-related-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); }
  .iwl-related-card img { height: 100%; aspect-ratio: auto; }
  .iwl-related-copy { min-height: 112px; }
  .iwl-sidebar { position: static; padding: 0 16px; }
  .iwl-home { width: min(calc(100% - 32px), 1120px); margin-top: 24px; }
  .iwl-home-intro { grid-template-columns: 1fr; gap: 24px; }
  .iwl-home-intro h1 { font-size: 30px; }
  .iwl-home-intro p { font-size: 16px; }
  .iwl-home-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
