@charset "utf-8";
/* ===================================================================
   column-category.css - カテゴリラベル・カテゴリナビ・関連記事
   （column-category.js から読み込み）
   =================================================================== */

/* ===== カテゴリラベル ===== */
.cc-article-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.cc-label {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid #FE9D2D;
  border-radius: 999px;
  background: #fff;
  color: #E07800;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.6;
  text-decoration: none;
}
.cc-label:hover {
  background: #FFF4E6;
}

/* 一覧カード内のカテゴリ表示 */
.column-card-meta {
  gap: 8px;
  flex-wrap: wrap;
}
.cc-card-cat {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #FFF4E6;
  color: #E07800;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.6;
}

/* ===== カテゴリナビ ===== */
.cc-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.cc-nav li {
  margin: 0;
}
.cc-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid #FFCC80;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  text-decoration: none;
  transition: background .2s;
}
.cc-nav a span {
  color: #999;
  font-size: 11px;
  font-weight: normal;
}
.cc-nav a:hover {
  background: #FFF4E6;
}
.cc-nav a[aria-current="page"] {
  border-color: #FF8A00;
  background: #FF8A00;
  color: #fff;
}
.cc-nav a[aria-current="page"] span {
  color: #fff;
}

/* ===== カテゴリ一覧ページ ===== */
.cc-cat-desc {
  margin: -8px 0 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ===== 記事末尾の関連記事 ===== */
.cc-related {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px 64px;
  box-sizing: border-box;
}
.cc-related *,
.cc-related ::before,
.cc-related ::after {
  box-sizing: border-box;
}
.cc-related-heading {
  margin: 0 0 20px;
  padding: 10px 20px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #FF8A00, #FFAB40);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
}
.cc-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.cc-related-list li {
  margin: 0;
}
.cc-related-list a {
  display: flex;
  gap: 12px;
  height: 100%;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s;
}
.cc-related-list a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}
.cc-related-thumb {
  flex-shrink: 0;
  width: 128px;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: #f0e8dc;
  overflow: hidden;
}
.cc-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-related-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.cc-related-cat {
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 999px;
  background: #FFF4E6;
  color: #E07800;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.6;
}
.cc-related-title {
  color: #333;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
}
.cc-related-date {
  margin-top: auto;
  color: #999;
  font-size: 11px;
}
.cc-related-more {
  width: 100%; /* サイト共通CSSの p の幅指定を打ち消し、枠の右端に揃える */
  margin: 0 0 28px;
  text-align: right;
}
.cc-related-more a {
  color: #E07800;
  font-size: 14px;
  font-weight: bold;
  text-decoration: underline;
}
.cc-related .cc-nav ul {
  margin-bottom: 0;
}

@media (max-width: 740px) {
  .cc-nav ul {
    flex-wrap: nowrap;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cc-nav a {
    padding: 5px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .cc-related {
    padding: 0 16px 48px;
  }
  .cc-related-heading {
    padding: 8px 16px;
    font-size: 16px;
  }
  .cc-related-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .cc-related-thumb {
    width: 112px;
  }
  .cc-related-title {
    font-size: 13px;
  }
  .cc-related .cc-nav ul {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* カテゴリ一覧ページ見出しの件数 */
[data-cc-count] {
  margin-left: 4px;
  font-size: .8em;
  font-weight: normal;
}

/* カテゴリ一覧ページ見出し：「の記事一覧」を途中で改行させない */
.cc-nowrap {
  display: inline-block;
}

/* ===== ページネーション（コラム一覧・カテゴリ一覧。URLは変えずJSで切り替え） ===== */
.cc-pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 8px 0 40px;
}
.cc-pager button {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #FFCC80;
  border-radius: 999px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.cc-pager button:hover:not(:disabled) {
  background: #FFF4E6;
}
.cc-pager button[aria-current="page"] {
  border-color: #FF8A00;
  background: #FF8A00;
  color: #fff;
  cursor: default;
}
.cc-pager button:disabled:not([aria-current]) {
  opacity: .35;
  cursor: default;
}
.cc-pager-ellipsis {
  color: #999;
  font-size: 14px;
}

/* ===== au おうちあんしんサポートとは（一覧の直下） ===== */
.cc-about {
  margin: 0 0 40px;
  padding: 32px 28px;
  border: 1px solid #FFE0B2;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.cc-about-heading {
  margin: 0 0 12px;
  color: #FF6B00;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.5;
}
.cc-about-lead {
  width: 100%;
  margin: 0 auto 24px;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}
.cc-about-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.cc-about-service {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  padding: 20px 16px;
  border-radius: 10px;
  background: #FFF8EE;
}
.cc-about-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  margin-bottom: 12px;
}
.cc-about-icon img {
  width: auto;
  max-width: 110px;
  max-height: 72px;
}
.cc-about-name {
  margin: 0 0 8px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
}
.cc-about-text {
  width: 100%;
  margin: 0 0 16px;
  color: #555;
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
  flex: 1;
}
.cc-about-text sup,
.cc-about-price sup {
  font-size: .7em;
}
.cc-about-btn {
  display: inline-block;
  min-width: 150px;
  padding: 8px 24px;
  border: 2px solid #FE9D2D;
  border-radius: 999px;
  background: #fff;
  color: #E07800;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.cc-about-btn:hover {
  background: #FE9D2D;
  color: #fff;
}
.cc-about-notes {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  text-align: left;
}
.cc-about-notes li {
  margin: 0;
  color: #777;
  font-size: 11px;
  line-height: 1.7;
}
.cc-about-code {
  width: 100%;
  margin: 0 0 20px;
  color: #777;
  font-size: 11px;
  text-align: left;
}
.cc-about-top {
  width: 100%;
  margin: 0 0 28px;
}
.cc-about-top a {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  background: #FE9D2D;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity .2s;
}
.cc-about-top a:hover {
  opacity: .85;
}
.cc-about-apply {
  padding: 28px 5% 24px;
  border-radius: 12px;
  background: var(--lylw, #F7F6E4);
}
.cc-about-price {
  width: 100%;
  margin: 0;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}
.cc-about-price strong {
  color: var(--dorg, #F88501);
  font-size: 1.8em;
}
.cc-about-badge {
  width: 100%;
  margin: 8px 0 0;
}
.cc-about-apply .btnApp {
  margin: 16px auto 0;
}
.cc-about-apply .notes {
  width: 100%;
  max-width: 640px;
  margin: 12px auto 0;
  padding-bottom: 0;
}
.cc-about-apply .notes li {
  text-align: left;
}
.cc-about-note {
  width: 100%;
  margin: 8px 0 0;
  color: #555;
  font-size: 13px;
}

@media (max-width: 740px) {
  .cc-pager {
    gap: 6px;
    margin-bottom: 32px;
  }
  .cc-pager button {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 13px;
  }
  .cc-about {
    margin-bottom: 32px;
    padding: 24px 16px;
  }
  .cc-about-heading {
    font-size: 19px;
  }
  .cc-about-services {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cc-about-service {
    display: grid;
    grid-template-columns: 72px 1fr;
    grid-template-areas: "icon name" "icon text" "btn btn";
    align-items: center;
    column-gap: 12px;
    padding: 16px;
    text-align: left;
  }
  .cc-about-icon {
    grid-area: icon;
    height: auto;
    margin: 0;
  }
  .cc-about-icon img {
    max-width: 72px;
    max-height: 56px;
  }
  .cc-about-name {
    grid-area: name;
    margin: 0 0 4px;
    font-size: 15px;
  }
  .cc-about-text {
    grid-area: text;
    margin: 0;
    font-size: 12px;
  }
  .cc-about-btn {
    grid-area: btn;
    justify-self: center;
    margin-top: 12px;
  }
  .cc-about-top a {
    padding: 12px 24px;
    font-size: 14px;
  }
  .cc-about-apply {
    padding: 24px 16px 20px;
  }
}

/* .column-card は display:flex のため hidden 属性を明示的に効かせる */
.column-grid > .column-card[hidden] {
  display: none !important;
}

/* ページタイトル（h1）はメインカラムの先頭に置く（一覧と左端、サイドバーと上端をそろえる） */
.column-content .column-page-title {
  max-width: none;
  margin: 0;
  padding: 0 0 24px;
}
@media (max-width: 740px) {
  .column-content .column-page-title {
    padding: 0 0 16px;
  }
}

/* サイト共通CSSのヘッダー用 nav 指定（PC：左余白24px、SP：flex）を打ち消す */
nav.cc-nav,
nav.cc-pager {
  width: auto;
  height: auto;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}
nav.cc-nav {
  display: block;
}

/* ===== サイドバー見出し（人気記事・サービスについて） =====
   メインの見出し（オレンジ帯）と同系色で、サイドバー向けに一段控えめにする */
.column-sidebar .column-sidebar-heading {
  position: relative;
  margin: 0 0 16px;
  padding: 0 0 8px 14px;
  border-bottom: 1px solid #FFE0B2;
  color: #FF6B00; /* ページタイトル（h1）と同じオレンジ */
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: .04em;
}
.column-sidebar .column-sidebar-heading::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FF8A00, #FFAB40);
}
/* 2つ目以降の見出しは上のリストとの間を空ける */
.column-sidebar .column-popular-list + .column-sidebar-heading {
  margin-top: 36px;
}


/* ===== 人気記事の順位（1〜3位に金・銀・銅の王冠アイコン：assets/img/rank/rank1〜3.svg） ===== */
.column-popular-thumb,
.column-sp-popular-thumb {
  position: relative;
  overflow: visible;
}
.column-popular-thumb img,
.column-sp-popular-thumb img {
  border-radius: 4px;
}
.column-popular-item:nth-child(-n+3) .column-popular-thumb::before,
.column-sp-popular-item:nth-child(-n+3) .column-sp-popular-thumb::before {
  content: "";
  position: absolute;
  top: -18px;
  left: -12px;
  z-index: 1;
  width: 42px;
  height: 39px;
  background: center / contain no-repeat;
}
.column-popular-item:nth-child(1) .column-popular-thumb::before,
.column-sp-popular-item:nth-child(1) .column-sp-popular-thumb::before {
  background-image: url("/ouchi-anshin/column/assets/img/rank/rank1.svg?v=20261016j");
}
.column-popular-item:nth-child(2) .column-popular-thumb::before,
.column-sp-popular-item:nth-child(2) .column-sp-popular-thumb::before {
  background-image: url("/ouchi-anshin/column/assets/img/rank/rank2.svg?v=20261016j");
}
.column-popular-item:nth-child(3) .column-popular-thumb::before,
.column-sp-popular-item:nth-child(3) .column-sp-popular-thumb::before {
  background-image: url("/ouchi-anshin/column/assets/img/rank/rank3.svg?v=20261016j");
}

/* ===== 運営者情報・記事の作成方針（about.html） ===== */
.cc-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 64px;
}
.cc-page .column-page-title {
  max-width: none;
  padding: 0 0 24px;
}
.cc-page-sec {
  margin: 0 0 40px;
}
.cc-page-heading {
  margin: 0 0 16px;
  padding: 8px 16px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #FF8A00, #FFAB40);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
.cc-page-sub {
  margin: 24px 0 8px;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}
.cc-page-sec p {
  width: 100%;
  margin: 0 0 12px;
  color: #333;
  font-size: 15px;
  line-height: 1.8;
}
.cc-page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.cc-page-table th,
.cc-page-table td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.cc-page-table th {
  width: 9em;
  background: #FFF4E6;
  color: #333;
  font-weight: bold;
}
.cc-page-table a {
  color: #E07800;
  text-decoration: underline;
}
@media (max-width: 740px) {
  .cc-page {
    padding: 0 16px 48px;
  }
  .cc-page-table th,
  .cc-page-table td {
    display: block;
    width: 100%;
    padding: 8px 12px;
  }
  .cc-page-table td {
    border-top: none;
  }
  .cc-page-sec p,
  .cc-page-table {
    font-size: 14px;
  }
}
