/*
Theme Name: INTERVIA Media
Description: INTERVIAオウンドメディア用テーマ
Version: 1.2.1
*/

:root {
  --iv-teal: #00a99d;
  --iv-teal-dark: #008f85;
  --iv-blue: #0066b3;
  --iv-navy: #142a3d;
  --iv-text: #1a1d23;
  --iv-muted: #617080;
  --iv-border: #dce5ea;
  --iv-bg: #f4f7f8;
  --iv-white: #ffffff;
  --iv-shadow: 0 12px 32px rgba(19, 47, 66, .08);
  --iv-radius: 14px;
  --iv-container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--iv-text);
  background: var(--iv-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.iv-container {
  width: min(calc(100% - 40px), var(--iv-container));
  margin-inline: auto;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Header */
.iv-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #dfe8ec;
  backdrop-filter: blur(12px);
}

.iv-site-header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 32px;
}

.iv-site-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: 176px;
  line-height: 1;
}

.iv-site-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.iv-global-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.iv-global-nav a {
  color: #38515d;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}

.iv-global-nav a:hover {
  color: var(--iv-teal-dark);
}

.iv-header-cta {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--iv-teal-dark);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.iv-header-cta:hover {
  background: #007a75;
  color: #fff;
  transform: translateY(-1px);
}

/* Media intro */
.iv-media-intro {
  padding: 42px 0 34px;
  background: #fff;
  border-bottom: 1px solid #dfe8ec;
}

.iv-media-intro__eyebrow {
  margin: 0 0 12px;
  color: var(--iv-teal-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
}

.iv-media-intro__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.iv-media-intro__content > p {
  margin: 0;
  color: #183442;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.8;
}

.iv-media-intro__categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.iv-media-intro__categories a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #d6e2e6;
  border-radius: 999px;
  background: #fff;
  color: #31515d;
  font-size: .78rem;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.iv-media-intro__categories a:hover {
  border-color: var(--iv-teal);
  background: #edfafa;
  color: #007d76;
}

/* Article list */
.iv-media-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 42px;
  padding: 42px 0 80px;
}

.iv-side-menu {
  align-self: start;
  padding: 21px;
  border: 1px solid var(--iv-border);
  border-radius: var(--iv-radius);
  background: #fff;
}

.iv-side-menu h2 {
  margin: 0 0 13px;
  color: var(--iv-blue);
  font-size: .72rem;
  letter-spacing: .12em;
}

.iv-side-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iv-side-menu li + li {
  border-top: 1px solid var(--iv-border);
}

.iv-side-menu a {
  display: block;
  padding: 11px 0;
  color: #38515d;
  font-size: .86rem;
  font-weight: 700;
}

.iv-side-menu a:hover {
  color: var(--iv-teal-dark);
}

.iv-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 20px;
}

.iv-section-title h1 {
  margin: 0;
  color: var(--iv-navy);
  font-size: 1.65rem;
  line-height: 1.4;
}

.iv-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.iv-card {
  overflow: hidden;
  border: 1px solid var(--iv-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(19, 47, 66, .03);
  transition: box-shadow .2s ease, transform .2s ease;
}

.iv-card:hover {
  box-shadow: var(--iv-shadow);
  transform: translateY(-3px);
}

.iv-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #d8f2ef, #e0edf8);
}

.iv-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iv-card__body {
  padding: 16px;
}

.iv-category {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--iv-teal-dark);
  font-size: .7rem;
  font-weight: 800;
}

.iv-card h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--iv-navy);
  font-size: .96rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.iv-card h2 a:hover {
  color: var(--iv-teal-dark);
}

.iv-card time {
  display: block;
  margin-top: 12px;
  color: var(--iv-muted);
  font-size: .72rem;
}

/* Single article */
.iv-article {
  padding: 38px 0 92px;
  background: #fff;
}

.iv-breadcrumb {
  margin-bottom: 28px;
  color: var(--iv-muted);
  font-size: .78rem;
}

.iv-article__head {
  max-width: 880px;
  margin: 0 auto 40px;
}

.iv-article__head h1 {
  margin: 10px 0 22px;
  color: var(--iv-navy);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.45;
}

.iv-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 250px;
  justify-content: center;
  gap: 54px;
}

.iv-article-layout:not(.has-sidebar) {
  grid-template-columns: minmax(0, 760px);
}

.iv-content {
  font-size: 1rem;
  line-height: 2;
}

.iv-content h2 {
  margin: 64px 0 22px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--iv-teal);
  color: var(--iv-navy);
  font-size: 1.65rem;
  line-height: 1.5;
}

.iv-content h3 {
  margin: 44px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--iv-blue);
  color: var(--iv-navy);
  font-size: 1.28rem;
}

.iv-content a {
  color: var(--iv-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iv-content blockquote {
  margin: 30px 0;
  padding: 22px 24px;
  border-left: 4px solid var(--iv-teal);
  background: #edfafa;
}

.iv-content table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}

.iv-content th,
.iv-content td {
  min-width: 130px;
  padding: 12px;
  border: 1px solid var(--iv-border);
}

.iv-content th {
  background: var(--iv-bg);
}

.iv-article-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.iv-sidebar-widget {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid var(--iv-border);
  border-radius: 12px;
  background: #fff;
}

.iv-sidebar-widget__title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--iv-teal);
  color: var(--iv-navy);
  font-size: .95rem;
}

/* Footer */
.iv-footer {
  padding: 54px 0 22px;
  color: #d7e2e8;
  background: var(--iv-navy);
}

.iv-footer__main {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 42px;
}

.iv-footer__brand p {
  margin: 14px 0 0;
  color: #b9c8d1;
  font-size: .82rem;
  line-height: 1.9;
}

.iv-footer-logo {
  display: inline-flex;
  width: 190px;
}

.iv-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.iv-footer__links {
  display: flex;
  gap: 72px;
}

.iv-footer__links div {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.iv-footer__links h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: .82rem;
}

.iv-footer__links a {
  color: #b9c8d1;
  font-size: .78rem;
}

.iv-footer__links a:hover {
  color: #fff;
}

.iv-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 226, 232, .25);
  color: #aabcc6;
  font-size: .7rem;
}

.iv-footer__bottom a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 1000px) {
  .iv-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .iv-global-nav {
    display: none;
  }

  .iv-header-cta {
    margin-left: auto;
  }

  .iv-media-layout,
  .iv-article-layout,
  .iv-article-layout.has-sidebar,
  .iv-article-layout:not(.has-sidebar) {
    grid-template-columns: 1fr;
  }

  .iv-side-menu {
    display: none;
  }

  .iv-article-sidebar {
    position: static;
  }

  .iv-footer__main {
    flex-direction: column;
    gap: 36px;
  }
}

@media (max-width: 620px) {
  .iv-container {
    width: min(calc(100% - 28px), var(--iv-container));
  }

  .iv-site-header__inner {
    min-height: 62px;
    gap: 16px;
  }

  .iv-site-logo {
    width: 142px;
  }

  .iv-header-cta {
    min-height: 36px;
    padding: 0 12px;
    font-size: .7rem;
  }

  .iv-media-intro {
    padding: 30px 0 26px;
  }

  .iv-media-intro__content {
    display: block;
  }

  .iv-media-intro__content > p {
    margin-bottom: 18px;
  }

  .iv-media-intro__categories {
    justify-content: flex-start;
  }

  .iv-post-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .iv-card__body {
    padding: 15px;
  }

  .iv-footer__links {
    gap: 36px;
  }

  .iv-footer__bottom {
    flex-direction: column;
    gap: 8px;
  }

  .iv-footer-logo {
    width: 165px;
  }
}
/* 記事の監修者・公開日 */
.iv-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: var(--iv-muted);
}

.iv-author__name {
  color: var(--iv-navy);
  font-size: .84rem;
  font-weight: 700;
}

/* 資料ダウンロードCTA */
.iv-resource-cta {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  margin-top: 56px;
  padding: 28px 34px;
  border: 2px solid var(--iv-teal);
  border-radius: 10px;
  background: #fff;
}

.iv-resource-cta__visual {
  position: relative;
  height: 150px;
}

.iv-resource-cta__document {
  position: absolute;
  width: 112px;
  height: 142px;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(20, 42, 61, .15);
}

.iv-resource-cta__document--back {
  top: 8px;
  left: 20px;
  background: #dceef2;
  transform: rotate(-8deg);
}

.iv-resource-cta__document--front {
  top: 0;
  left: 56px;
  padding: 16px 13px;
  background: linear-gradient(155deg, #0a9d9a, #0066b3);
  color: #fff;
  transform: rotate(5deg);
}

.iv-resource-cta__document--front span {
  display: block;
  margin-bottom: 14px;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.iv-resource-cta__document--front strong {
  display: block;
  font-size: .88rem;
  line-height: 1.45;
}

.iv-resource-cta__document--front i {
  display: block;
  width: 65%;
  height: 3px;
  margin-top: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
}

.iv-resource-cta__content {
  min-width: 0;
}

.iv-resource-cta__label {
  margin: 0 0 5px;
  color: var(--iv-teal-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.iv-resource-cta__content h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--iv-navy);
  font-size: 1.25rem;
  line-height: 1.5;
}

.iv-resource-cta__content > p:not(.iv-resource-cta__label) {
  margin: 8px 0 18px;
  color: var(--iv-muted);
  font-size: .84rem;
  line-height: 1.75;
}

.iv-resource-cta__button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-radius: 999px;
  background: #f26a21;
  color: #fff !important;
  text-decoration: none !important;
  font-size: .82rem;
  font-weight: 700;
  transition: background-color .2s ease, transform .2s ease;
}

.iv-resource-cta__button:hover {
  background: #dc5612;
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .iv-resource-cta {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }

  .iv-resource-cta__visual {
    width: 170px;
    margin: 0 auto;
  }

  .iv-resource-cta__button {
    width: 100%;
    justify-content: center;
  }
}
/* 監修者プロフィール */
.iv-supervisor {
  margin-top: 54px;
  padding: 32px 0 0;
  border-top: 1px solid var(--iv-border);
}

.iv-supervisor__head {
  display: flex;
  align-items: center;
  gap: 22px;
}

.iv-supervisor__photo {
  width: 104px;
  height: 104px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: #e8f0f2;
}

.iv-supervisor__identity p {
  margin: 0 0 4px;
  color: var(--iv-muted);
  font-size: .78rem;
  font-weight: 700;
}

.iv-supervisor__identity h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--iv-navy);
  font-size: 1.35rem;
  line-height: 1.4;
}

.iv-supervisor__identity span {
  display: block;
  margin-top: 6px;
  color: var(--iv-muted);
  font-size: .84rem;
  line-height: 1.7;
}

.iv-supervisor__bio {
  margin-top: 24px;
  color: #3b4a53;
  font-size: .9rem;
  line-height: 2;
}

.iv-supervisor__bio p {
  margin: 0;
}

.iv-back-to-list {
  margin-top: 42px;
  padding-top: 30px;
  border-top: 1px solid var(--iv-border);
  text-align: center;
}

.iv-back-to-list a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--iv-navy);
  color: #fff;
  font-size: .84rem;
  font-weight: 700;
}

.iv-back-to-list a:hover {
  background: var(--iv-teal-dark);
  color: #fff;
}

@media (max-width: 620px) {
  .iv-supervisor {
    margin-top: 42px;
    padding-top: 26px;
  }

  .iv-supervisor__head {
    align-items: flex-start;
    gap: 15px;
  }

  .iv-supervisor__photo {
    width: 76px;
    height: 76px;
  }

  .iv-supervisor__identity h2 {
    font-size: 1.15rem;
  }
}
/* 記事内 H4：個別サービス名・補足見出し */
.iv-content h4 {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin: 36px 0 18px;
  padding: 10px 16px;
  border-left: 5px solid var(--iv-teal);
  border-radius: 0 6px 6px 0;
  background: #eef8f7;
  color: var(--iv-navy);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .01em;
}

@media (max-width: 620px) {
  .iv-content h4 {
    min-height: 46px;
    margin: 30px 0 16px;
    padding: 9px 13px;
    font-size: 1.05rem;
  }
}

/* 記事内FAQ */
.iv-faq {
  margin-top: 54px;
  padding: 30px;
  border: 1px solid var(--iv-border);
  border-radius: 12px;
  background: #f8fbfb;
}

.iv-faq h2 {
  margin: 0 0 8px;
  padding: 0 0 13px;
  border-bottom: 3px solid var(--iv-teal);
  color: var(--iv-navy);
  font-size: 1.45rem;
  line-height: 1.5;
}

.iv-faq__item {
  border-bottom: 1px solid var(--iv-border);
}

.iv-faq__item:last-child {
  border-bottom: 0;
}

.iv-faq__item summary {
  position: relative;
  padding: 20px 38px 20px 0;
  color: var(--iv-navy);
  cursor: pointer;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.7;
  list-style: none;
}

.iv-faq__item summary::-webkit-details-marker {
  display: none;
}

.iv-faq__item summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--iv-teal-dark);
  border-bottom: 2px solid var(--iv-teal-dark);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s ease;
}

.iv-faq__item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.iv-faq__answer {
  padding: 0 0 20px;
  color: #41515a;
  font-size: .92rem;
  line-height: 1.9;
}

.iv-faq__answer p {
  margin: 0;
}

@media (max-width: 620px) {
  .iv-faq {
    margin-top: 42px;
    padding: 22px 18px;
  }

  .iv-faq h2 {
    font-size: 1.25rem;
  }

  .iv-faq__item summary {
    padding: 17px 31px 17px 0;
    font-size: .92rem;
  }

  .iv-faq__answer {
    font-size: .87rem;
  }
}
/* 記事ページのアイキャッチ */
.iv-featured-image {
  overflow: hidden;
  width: min(100%, 900px);
  aspect-ratio: 16 / 9;
  margin: 30px auto 52px;
  border-radius: 12px;
  background: #edf3f5;
  box-shadow: 0 10px 28px rgba(20, 42, 61, .08);
}

.iv-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 620px) {
  .iv-featured-image {
    width: 100%;
    margin: 22px auto 36px;
    border-radius: 8px;
  }
}

/* CTAに実画像を設定した場合 */
.iv-resource-cta__image {
  display: flex;
  height: 150px;
  align-items: center;
  justify-content: center;
}

.iv-resource-cta__image img {
  display: block;
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
}

@media (max-width: 620px) {
  .iv-resource-cta__image {
    height: auto;
  }

  .iv-resource-cta__image img {
    max-height: 190px;
  }
}
.iv-site-header .iv-header-cta {
  margin-left: auto;
}

/* スマホ記事本文の文字サイズ・横はみ出し対策 */
@media (max-width: 620px) {
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .iv-article {
    overflow-x: hidden;
  }

  .iv-article .iv-container {
    width: calc(100% - 32px);
  }

  .iv-content {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 2;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .iv-content p,
  .iv-content li,
  .iv-content blockquote {
    max-width: 100%;
  }
}