:root {
  --green: #18c964;
  --green-2: #10b85a;
  --green-dark: #08733d;
  --green-soft: #ecfaf2;

  --gold: #e8b83b;

  --text: #172019;
  --muted: #718078;

  --line: #e2e8e3;
  --page: #f3f6f3;

  --white: #ffffff;

  --shadow:
    0 14px 40px
    rgba(20, 50, 30, 0.07);
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;

  color: var(--text);
  background:
    linear-gradient(
      180deg,
      #f7faf8 0%,
      #f2f6f2 100%
    );

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;

  line-height: 1.8;
}


a {
  color: inherit;
}


button,
input {
  font: inherit;
}


/* ========================================
   HEADER
======================================== */

.site-header {
  background:
    rgba(
      255,
      255,
      255,
      0.96
    );

  border-top:
    1px solid #e5eae6;
}


.header-inner {
  width:
    min(
      1450px,
      calc(100% - 40px)
    );

  min-height: 135px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


.brand {
  display: flex;
  align-items: center;

  gap: 20px;

  color: inherit;
  text-decoration: none;
}


.brand-mark {
  width: 78px;
  height: 78px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid #ddf1e5;

  border-radius: 25px;

  background:
    linear-gradient(
      145deg,
      #fff,
      #effbf4
    );

  font-size: 31px;

  box-shadow:
    0 8px 24px
    rgba(20, 100, 60, 0.06);
}


.brand-title {
  display: flex;
  align-items: center;

  font-size:
    clamp(
      28px,
      3vw,
      43px
    );

  font-weight: 900;

  line-height: 1;
}


.brand-green {
  color: #11b85a;
}


.brand-gold {
  color: var(--gold);
}


.brand-copy p {
  margin:
    15px 0 0;

  color: #45554b;

  font-size: 14px;
  font-weight: 700;
}


.header-actions {
  display: flex;
  align-items: center;
}


.auth-menu {
  display: flex;
  align-items: center;

  gap: 15px;
}


.header-user-name {
  margin-right: 4px;

  color: var(--green-dark);

  font-size: 14px;
  font-weight: 800;
}


.header-btn {
  min-width: 130px;

  min-height: 54px;

  padding:
    0 23px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 17px;

  font-size: 14px;
  font-weight: 800;

  text-decoration: none;

  transition:
    transform 0.15s ease,
    background 0.15s ease;
}


.header-btn:hover {
  transform:
    translateY(-1px);
}


.login-btn {
  color: var(--green-dark);

  border:
    1px solid #bdebd0;

  background: #fff;
}


.signup-btn {
  color: #fff;

  border:
    1px solid var(--green);

  background:
    var(--green);
}


.logout-btn {
  color: #48534c;

  border:
    1px solid #dce3de;

  background: #fff;

  cursor: pointer;
}


[hidden] {
  display: none !important;
}


/* ========================================
   NAV
======================================== */

.global-nav {
  background:
    linear-gradient(
      90deg,
      #18c964,
      #0daa50
    );
}


.nav-inner {
  width:
    min(
      1450px,
      calc(100% - 40px)
    );

  min-height: 82px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(
      7,
      1fr
    );

  align-items: center;

  gap: 8px;
}


.nav-inner a {
  min-height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  color: #fff;

  font-size: 15px;
  font-weight: 900;

  text-decoration: none;
}


.nav-inner a:hover {
  background:
    rgba(
      255,
      255,
      255,
      0.12
    );
}


.nav-inner a.active {
  color: var(--green-dark);

  background: #fff;
}


/* ========================================
   COMMON
======================================== */

.article-eyebrow {
  color: #789183;

  font-size: 11px;
  font-weight: 900;

  letter-spacing:
    0.16em;
}


.site-footer {
  margin-top: 80px;

  padding:
    48px 0;

  color: #e9f5ed;

  background:
    #073d26;
}


.footer-inner {
  width:
    min(
      1450px,
      calc(100% - 40px)
    );

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}


.footer-brand strong {
  font-size: 22px;
}


.footer-brand p {
  margin:
    7px 0 0;

  color: #bdd3c5;

  font-size: 12px;
}


.footer-inner nav {
  display: flex;
  flex-wrap: wrap;

  gap:
    12px 24px;
}


.footer-inner nav a {
  color: #d8e8de;

  font-size: 12px;

  text-decoration: none;
}


.back-to-top {
  width: 48px;
  height: 48px;

  position: fixed;

  right: 22px;
  bottom: 22px;

  z-index: 20;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;

  border-radius: 50%;

  color: #fff;

  background:
    var(--green);

  font-size: 20px;

  box-shadow:
    0 8px 25px
    rgba(0, 80, 40, 0.22);

  cursor: pointer;

  opacity: 0;

  pointer-events: none;

  transform:
    translateY(10px);

  transition:
    0.2s ease;
}


.back-to-top.visible {
  opacity: 1;

  pointer-events: auto;

  transform:
    translateY(0);
}


/* ========================================
   ARTICLE LIST
======================================== */

.article-list-page {
  width:
    min(
      1450px,
      calc(100% - 40px)
    );

  margin:
    38px auto 0;
}


.article-list-hero {
  padding:
    50px 55px;

  border:
    1px solid var(--line);

  border-radius: 30px;

  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(24, 201, 100, 0.13),
      transparent 36%
    ),
    #fff;

  box-shadow:
    var(--shadow);
}


.article-list-hero h1 {
  margin:
    7px 0 12px;

  font-size:
    clamp(
      30px,
      4vw,
      46px
    );

  line-height: 1.3;
}


.article-list-hero p {
  max-width: 720px;

  margin: 0;

  color: var(--muted);

  font-size: 14px;
}


.article-list-section {
  margin-top: 32px;

  padding:
    45px 45px 50px;

  border:
    1px solid var(--line);

  border-radius: 30px;

  background: #fff;

  box-shadow:
    var(--shadow);
}


.article-section-heading {
  margin-bottom: 26px;

  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}


.article-section-heading h2 {
  margin:
    5px 0 0;

  font-size: 30px;
}


.article-list-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(
        0,
        1fr
      )
    );

  gap: 24px;
}


.article-list-card {
  overflow: hidden;

  border:
    1px solid #e2e8e4;

  border-radius: 22px;

  color: inherit;

  background: #fff;

  text-decoration: none;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}


.article-list-card:hover {
  border-color:
    #bfe5cc;

  transform:
    translateY(-4px);

  box-shadow:
    0 16px 35px
    rgba(20, 50, 30, 0.1);
}


.article-list-thumb {
  min-height: 210px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}


.rain-thumb {
  background:
    linear-gradient(
      135deg,
      #dfeef2,
      #c8dde3
    );
}


.article-category {
  position: absolute;

  top: 18px;
  left: 18px;

  padding:
    6px 13px;

  border-radius: 30px;

  color: #fff;

  background:
    #178552;

  font-size: 11px;
  font-weight: 900;
}


.article-thumb-icon {
  font-size: 63px;
}


.article-list-content {
  padding:
    23px 24px 25px;
}


.article-list-meta {
  display: flex;

  gap: 15px;

  color: #8b978f;

  font-size: 11px;
}


.article-list-content h3 {
  margin:
    10px 0;

  font-size: 19px;

  line-height: 1.65;
}


.article-list-content p {
  margin: 0;

  color: #738079;

  font-size: 12px;

  line-height: 1.9;
}


.article-read-more {
  margin-top: 18px;

  display: inline-flex;

  gap: 8px;

  color: var(--green-dark);

  font-size: 12px;
  font-weight: 900;
}


.article-coming-section {
  margin-top: 32px;

  padding:
    40px 45px;

  border:
    1px solid var(--line);

  border-radius: 30px;

  background: #fff;

  box-shadow:
    var(--shadow);
}


.article-coming-section h2 {
  margin:
    5px 0 22px;

  font-size: 27px;
}


.coming-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}


.coming-tags span {
  padding:
    9px 15px;

  border:
    1px solid #e0e7e2;

  border-radius: 30px;

  color: #526058;

  background: #f7f9f7;

  font-size: 12px;
  font-weight: 700;
}


/* ========================================
   ARTICLE DETAIL
======================================== */

.article-page {
  width:
    min(
      1450px,
      calc(100% - 40px)
    );

  margin:
    30px auto 0;
}


.article-breadcrumb {
  margin-bottom: 18px;

  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  color: #839087;

  font-size: 11px;
}


.article-breadcrumb a {
  color: #587163;

  text-decoration: none;
}


.article-layout {
  display: grid;

  grid-template-columns:
    minmax(
      0,
      1fr
    )
    310px;

  gap: 28px;

  align-items: start;
}


.article-detail {
  padding:
    55px 65px;

  border:
    1px solid var(--line);

  border-radius: 30px;

  background: #fff;

  box-shadow:
    var(--shadow);
}


.article-detail-header {
  padding-bottom: 40px;

  border-bottom:
    1px solid #e8ece9;
}


.article-category-large {
  padding:
    7px 14px;

  display: inline-block;

  border-radius: 30px;

  color: #fff;

  background: var(--green-dark);

  font-size: 11px;
  font-weight: 900;
}


.article-detail-header h1 {
  margin:
    18px 0 17px;

  font-size:
    clamp(
      31px,
      4vw,
      48px
    );

  line-height: 1.4;
}


.article-detail-header h1 span {
  display: block;

  color: #264435;

  font-size:
    0.72em;
}


.article-lead-copy {
  max-width: 850px;

  margin: 0;

  color: #637168;

  font-size: 14px;

  line-height: 2;
}


.article-info {
  margin-top: 20px;

  display: flex;
  flex-wrap: wrap;

  gap:
    8px 20px;

  color: #839087;

  font-size: 11px;
}


.article-hero-image {
  min-height: 300px;

  margin-top: 30px;

  padding: 30px;

  position: relative;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 25px;

  background:
    radial-gradient(
      circle at 70% 25%,
      rgba(255, 255, 255, 0.8),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #dbeef4,
      #cae0e6
    );
}


.article-hero-label {
  position: absolute;

  top: 22px;
  left: 25px;

  color: #417166;

  font-size: 10px;
  font-weight: 900;

  letter-spacing:
    0.14em;
}


.article-hero-emoji {
  font-size: 88px;
}


.article-hero-image strong {
  margin-top: 15px;

  color: #26483a;

  font-size: 21px;
}


.article-section {
  padding-top: 44px;
}


.article-section h2 {
  margin:
    0 0 22px;

  padding-left: 17px;

  position: relative;

  font-size:
    clamp(
      23px,
      3vw,
      31px
    );

  line-height: 1.55;
}


.article-section h2::before {
  content: "";

  width: 6px;
  height: 100%;

  position: absolute;

  top: 0;
  left: 0;

  border-radius: 8px;

  background:
    var(--green);
}


.article-section h3 {
  margin:
    34px 0 13px;

  padding-bottom: 10px;

  border-bottom:
    1px solid #e7ece8;

  font-size: 19px;
}


.article-section p {
  margin:
    0 0 20px;

  color: #445149;

  font-size: 14px;

  line-height: 2.05;
}


.article-section ul {
  margin:
    19px 0 25px;

  padding:
    0;

  list-style: none;
}


.article-section li {
  margin-top: 9px;

  padding:
    11px 15px 11px 40px;

  position: relative;

  border-radius: 10px;

  background:
    #f7f9f7;

  color: #405048;

  font-size: 13px;
}


.article-section li::before {
  content: "✓";

  position: absolute;

  left: 15px;

  color: var(--green-dark);

  font-weight: 900;
}


/* ========================================
   TOC
======================================== */

.article-toc {
  margin-top: 38px;

  padding:
    25px 27px;

  border:
    1px solid #dce9df;

  border-radius: 17px;

  background:
    #f5fbf7;
}


.article-toc > strong {
  color:
    var(--green-dark);

  font-size: 15px;
}


.article-toc ol {
  margin:
    16px 0 0;

  padding-left: 22px;
}


.article-toc li {
  margin-top: 7px;

  color: #52635a;

  font-size: 12px;
}


.article-toc a {
  text-decoration: none;
}


.article-toc a:hover {
  color:
    var(--green-dark);

  text-decoration: underline;
}


/* ========================================
   BOX
======================================== */

.article-point-box,
.article-note-box,
.article-warning-box,
.article-stop-box {
  margin:
    25px 0;

  padding:
    23px 25px;

  border-radius: 15px;
}


.article-point-box {
  border:
    1px solid #d8e9dd;

  background:
    #f3fbf6;
}


.article-note-box {
  border:
    1px solid #dde4df;

  background:
    #f7f9f7;
}


.article-warning-box {
  border:
    1px solid #f0d7cf;

  background:
    #fff7f4;
}


.article-stop-box {
  border:
    1px solid #f0d9b0;

  background:
    #fffaf0;
}


.article-point-box > strong,
.article-note-box > strong,
.article-warning-box > strong,
.article-stop-box > strong {
  color: #244d36;

  font-size: 14px;
}


.article-warning-box > strong {
  color:
    #b15039;
}


.article-tip-box {
  margin:
    24px 0;

  padding:
    18px 20px;

  display: flex;

  align-items: flex-start;

  gap: 12px;

  border-radius: 14px;

  background:
    #fff9e8;
}


.article-tip-box > span {
  font-size: 22px;
}


.article-tip-box p {
  margin: 0;
}


.warning-item {
  margin-top: 18px;

  padding:
    22px 24px;

  border:
    1px solid #eadfd9;

  border-radius: 15px;

  background:
    #fffaf8;
}


.warning-item h3 {
  margin:
    0 0 10px;

  padding: 0;

  border: 0;

  color:
    #943f2f;
}


/* ========================================
   TODAY
======================================== */

.today-step-list {
  display: grid;

  gap: 12px;
}


.today-step {
  padding:
    18px 20px;

  display: flex;

  align-items: flex-start;

  gap: 17px;

  border:
    1px solid #e0e8e2;

  border-radius: 15px;

  background:
    #fafcfb;
}


.today-step > span {
  width: 42px;
  height: 42px;

  flex:
    0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;

  background:
    var(--green);

  font-size: 11px;
  font-weight: 900;
}


.today-step strong {
  font-size: 14px;
}


.today-step p {
  margin:
    3px 0 0;

  color: #76837b;

  font-size: 12px;
}


/* ========================================
   SUMMARY
======================================== */

.article-summary {
  margin-top: 50px;

  padding:
    34px 35px;

  border-radius: 22px;

  background:
    linear-gradient(
      135deg,
      #eaf9ef,
      #f7fcf8
    );
}


.article-summary h2 {
  margin:
    5px 0 18px;

  font-size: 26px;
}


.article-summary p {
  margin:
    0 0 14px;

  color: #425148;

  font-size: 13px;

  line-height: 2;
}


/* ========================================
   COMMUNITY
======================================== */

.article-community-box {
  margin-top: 32px;

  padding:
    25px 27px;

  display: grid;

  grid-template-columns:
    auto 1fr auto;

  align-items: center;

  gap: 18px;

  border:
    1px solid #d7e9dc;

  border-radius: 18px;

  background:
    #f8fcf9;
}


.article-community-box > span {
  font-size: 30px;
}


.article-community-box strong {
  font-size: 15px;
}


.article-community-box p {
  margin:
    4px 0 0;

  color: #78867e;

  font-size: 11px;
}


.article-community-box a {
  padding:
    10px 16px;

  border-radius: 10px;

  color: #fff;

  background:
    var(--green);

  font-size: 11px;
  font-weight: 900;

  text-decoration: none;
}


/* ========================================
   RELATED
======================================== */

.related-articles {
  margin-top: 45px;

  padding-top: 38px;

  border-top:
    1px solid #e4e9e5;
}


.related-heading h2 {
  margin:
    5px 0 20px;

  font-size: 26px;
}


.related-coming {
  display: flex;
  flex-wrap: wrap;

  gap: 9px;
}


.related-coming span {
  padding:
    9px 13px;

  border-radius: 30px;

  background:
    #f1f5f2;

  color: #56635c;

  font-size: 11px;
}


.back-articles-link {
  margin-top: 24px;

  display: inline-flex;

  gap: 8px;

  color:
    var(--green-dark);

  font-size: 12px;
  font-weight: 900;

  text-decoration: none;
}


/* ========================================
   SIDE
======================================== */

.article-side {
  position: sticky;

  top: 22px;

  display: grid;

  gap: 18px;
}


.article-side-card {
  padding:
    25px 24px;

  border:
    1px solid var(--line);

  border-radius: 20px;

  background: #fff;

  box-shadow:
    var(--shadow);
}


.article-side-card > strong {
  margin-top: 5px;

  display: block;

  font-size: 18px;
}


.article-side-card nav {
  margin-top: 16px;

  display: grid;
}


.article-side-card nav a {
  padding:
    9px 0;

  border-bottom:
    1px solid #edf0ee;

  color: #637168;

  font-size: 11px;

  text-decoration: none;
}


.article-side-card nav a:hover {
  color:
    var(--green-dark);
}


.community-side-card p {
  color: #758279;

  font-size: 11px;

  line-height: 1.8;
}


.community-side-card a {
  min-height: 43px;

  margin-top: 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  color: #fff;

  background:
    var(--green);

  font-size: 12px;
  font-weight: 900;

  text-decoration: none;
}


/* ========================================
   MOBILE
======================================== */

@media (
  max-width: 1050px
) {

  .article-layout {
    grid-template-columns: 1fr;
  }


  .article-side {
    display: none;
  }


  .article-list-grid {
    grid-template-columns:
      repeat(
        2,
        1fr
      );
  }

}



@media (
  max-width: 780px
) {

  .header-inner {
    width:
      min(
        100% - 24px,
        1450px
      );

    min-height: auto;

    padding:
      18px 0;

    align-items: flex-start;

    gap: 15px;
  }


  .brand {
    gap: 10px;
  }


  .brand-mark {
    width: 50px;
    height: 50px;

    border-radius: 16px;

    font-size: 21px;
  }


  .brand-title {
    font-size: 24px;
  }


  .brand-copy p {
    display: none;
  }


  .auth-menu {
    flex-wrap: wrap;

    justify-content: flex-end;

    gap: 6px;
  }


  .header-user-name {
    width: 100%;

    margin: 0;

    text-align: right;

    font-size: 11px;
  }


  .header-btn {
    min-width: auto;
    min-height: 40px;

    padding:
      0 12px;

    border-radius: 11px;

    font-size: 11px;
  }


  .nav-inner {
    width: 100%;

    min-height: auto;

    padding:
      8px 10px;

    grid-template-columns:
      repeat(
        4,
        1fr
      );

    gap: 5px;
  }


  .nav-inner a {
    min-height: 43px;

    padding:
      0 4px;

    border-radius: 11px;

    font-size: 10px;

    text-align: center;
  }


  .article-list-page,
  .article-page {
    width:
      calc(
        100% - 24px
      );
  }


  .article-list-page {
    margin-top: 20px;
  }


  .article-list-hero {
    padding:
      31px 24px;

    border-radius: 21px;
  }


  .article-list-hero h1 {
    font-size: 29px;
  }


  .article-list-section {
    padding:
      30px 20px;

    border-radius: 21px;
  }


  .article-list-grid {
    grid-template-columns: 1fr;
  }


  .article-list-thumb {
    min-height: 185px;
  }


  .article-coming-section {
    padding:
      28px 22px;

    border-radius: 21px;
  }


  .article-breadcrumb {
    margin-top: 18px;
  }


  .article-detail {
    padding:
      31px 21px;

    border-radius: 22px;
  }


  .article-detail-header h1 {
    font-size: 29px;
  }


  .article-detail-header h1 span {
    margin-top: 4px;

    font-size: 20px;
  }


  .article-hero-image {
    min-height: 220px;

    padding: 22px;
  }


  .article-hero-emoji {
    font-size: 67px;
  }


  .article-hero-image strong {
    font-size: 16px;
  }


  .article-section {
    padding-top: 35px;
  }


  .article-section h2 {
    font-size: 23px;
  }


  .article-section h3 {
    font-size: 17px;
  }


  .article-section p {
    font-size: 13px;
  }


  .article-community-box {
    grid-template-columns:
      auto 1fr;

    padding:
      20px;
  }


  .article-community-box a {
    grid-column:
      1 / -1;

    text-align: center;
  }


  .footer-inner {
    flex-direction: column;

    align-items: flex-start;
  }


  .site-footer {
    margin-top: 50px;
  }

}



@media (
  max-width: 480px
) {

  .brand-title {
    font-size: 21px;
  }


  .nav-inner {
    grid-template-columns:
      repeat(
        4,
        minmax(
          0,
          1fr
        )
      );
  }


  .article-list-hero h1 {
    font-size: 26px;
  }


  .article-detail {
    padding:
      27px 18px;
  }


  .article-detail-header h1 {
    font-size: 26px;
  }


  .article-toc {
    padding:
      20px;
  }


  .article-summary {
    padding:
      27px 22px;
  }

}

/* ========================================
   記事内テーブル
======================================== */

.delivery-table-wrap {
  width: 100%;

  margin:
    24px 0 30px;

  overflow-x: auto;

  border:
    1px solid #dfe7e1;

  border-radius:
    14px;
}


.delivery-table {
  width: 100%;

  min-width: 650px;

  border-collapse:
    collapse;

  background:
    #fff;
}


.delivery-table th,
.delivery-table td {
  padding:
    15px 17px;

  border-bottom:
    1px solid #e6ebe7;

  border-right:
    1px solid #e6ebe7;

  text-align:
    left;

  vertical-align:
    top;

  font-size:
    12px;

  line-height:
    1.8;
}


.delivery-table th:last-child,
.delivery-table td:last-child {
  border-right:
    0;
}


.delivery-table tr:last-child td {
  border-bottom:
    0;
}


.delivery-table th {
  color:
    #25523a;

  background:
    #eff9f3;

  font-weight:
    900;
}


/* ========================================
   参考情報
======================================== */

.article-sources {
  margin-top:
    45px;

  padding-top:
    36px;

  border-top:
    1px solid #e4e9e5;
}


.article-sources h2 {
  margin:
    5px 0 13px;

  font-size:
    25px;
}


.article-sources p {
  color:
    #76837b;

  font-size:
    11px;

  line-height:
    1.9;
}


.article-sources ul {
  margin:
    18px 0 0;

  padding:
    0;

  list-style:
    none;
}


.article-sources li {
  margin-top:
    8px;
}


.article-sources a {
  color:
    #08733d;

  font-size:
    12px;

  font-weight:
    700;

  text-decoration:
    underline;

  text-underline-offset:
    3px;
}


/* ========================================
   関連記事リンク
======================================== */

.related-article-link {
  padding:
    9px 13px;

  border-radius:
    30px;

  color:
    #08733d;

  background:
    #eaf8ef;

  font-size:
    11px;

  font-weight:
    800;

  text-decoration:
    none;
}


.related-article-link:hover {
  background:
    #ddf4e5;
}

/* ========================================
   初心者向け記事サムネイル
======================================== */

.beginner-thumb {
  background:
    linear-gradient(
      135deg,
      #ecf6e5,
      #dcebd3
    );
}

/* ========================================
   確定申告記事サムネイル
======================================== */

.tax-thumb {
  background:
    linear-gradient(
      135deg,
      #fff3d7,
      #f5dfac
    );
}

/* ========================================
   トラブル対策記事サムネイル
======================================== */

.trouble-thumb {
  background:
    linear-gradient(
      135deg,
      #e7f1ff,
      #d3e5fb
    );
}

/* ========================================
   副業・住民税記事サムネイル
======================================== */

.resident-tax-thumb {
  background:
    linear-gradient(
      135deg,
      #f3edff,
      #e5dcfa
    );
}

/* ========================================
   掛け持ち報酬管理サムネイル
======================================== */

.earnings-thumb {
  background:
    linear-gradient(
      135deg,
      #e9f7f2,
      #d5ede4
    );
}

/* ========================================
   スマホ記事 横はみ出し修正
   表を含む記事でも本文全体を広げない
======================================== */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.article-page {
  min-width: 0;
  max-width: 100%;
}


.article-layout {
  min-width: 0;
}


.article-detail {
  min-width: 0;
  max-width: 100%;
}


.article-detail-header,
.article-section,
.article-summary,
.article-community-box,
.related-articles,
.article-sources {
  min-width: 0;
  max-width: 100%;
}


/* 表だけ横スクロールできるようにする */
.delivery-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  -webkit-overflow-scrolling: touch;
}


.delivery-table {
  min-width: 650px;
  max-width: none;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 780px) {

  .article-page {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    min-width: 0;

    margin-left: auto;
    margin-right: auto;
  }


  .article-layout {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    grid-template-columns:
      minmax(0, 1fr);
  }


  .article-detail {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow: hidden;
  }


  .article-detail-header,
  .article-section,
  .article-summary,
  .related-articles,
  .article-sources {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }


  .delivery-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;
  }


  .delivery-table {
    width: 650px;
    min-width: 650px;
  }

}

/* ========================================
   労災・保険記事サムネイル
======================================== */

.insurance-thumb {
  background:
    linear-gradient(
      135deg,
      #e7f3ff,
      #d7e9f9
    );
}

/* ========================================
   冬の寒さ対策記事サムネイル
======================================== */

.winter-thumb {
  background:
    linear-gradient(
      135deg,
      #edf6ff,
      #d9eaf8
    );
}

/* ========================================
   夏の暑さ対策記事サムネイル
======================================== */

.summer-thumb {
  background:
    linear-gradient(
      135deg,
      #fff4d5,
      #ffe5a5
    );
}

/* ========================================
   スマホ充電切れ対策記事サムネイル
======================================== */

.battery-thumb {
  background:
    linear-gradient(
      135deg,
      #e9f7ef,
      #d5efe0
    );
}

/* ========================================
   配達専用スマホ記事サムネイル
======================================== */

.second-phone-thumb {
  background:
    linear-gradient(
      135deg,
      #eeeaff,
      #ded8f7
    );
}

/* ========================================
   配達中の事故対応記事サムネイル
======================================== */

.accident-thumb {
  background:
    linear-gradient(
      135deg,
      #fff0e7,
      #f8ddcf
    );
}

/* ========================================
   自転車青切符記事サムネイル
======================================== */

.blue-ticket-thumb {
  background:
    linear-gradient(
      135deg,
      #e8f3ff,
      #d4e7fa
    );
}

/* ========================================
   記事一覧ページャー
======================================== */

.article-pagination {
  width: 100%;
  margin: 34px 0;
}


/* 表示件数 */

.article-pagination-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 18px;
  color: #344a3d;
}

.article-pagination-info strong {
  font-size: 15px;
  font-weight: 900;
}

.article-pagination-info span {
  font-size: 13px;
  font-weight: 700;
  color: #718078;
}


/* ボタン全体 */

.article-pagination-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}


/* 各ボタン */

.article-page-btn {
  min-width: 48px;
  height: 48px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #c9efda;
  border-radius: 14px;

  background: #ffffff;

  color: #244335;

  font-family: inherit;
  font-size: 14px;
  font-weight: 900;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.article-page-btn:hover:not(:disabled) {
  border-color: #18c964;
  background: #f1fcf6;

  transform: translateY(-1px);
}


/* 現在ページ */
.article-page-btn.active,
.article-page-btn[aria-current="page"] {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.28);
}

/* 現在ページはホバーしても色を変えない */
.article-page-btn.active:hover,
.article-page-btn[aria-current="page"]:hover {
  border-color: #22c55e;
  background: #22c55e;
  color: #ffffff;
  transform: none;
}


/* 最初・最後 */

.article-page-edge {
  min-width: 66px;
}


/* 無効 */

.article-page-btn:disabled {
  border-color: #e3e9e5;
  background: #f7f9f7;
  color: #aeb8b1;

  cursor: default;
  transform: none;
  box-shadow: none;
}


/* ========================================
   スマホ
======================================== */

@media (max-width: 600px) {

  .article-pagination {
    margin: 26px 0;
  }


  .article-pagination-info {
    gap: 4px 8px;
    margin-bottom: 14px;
  }


  .article-pagination-info strong {
    width: 100%;
    font-size: 13px;
  }


  .article-pagination-info span {
    font-size: 11px;
  }


  .article-pagination-buttons {
    gap: 7px;
  }


  .article-page-btn {
    min-width: 42px;
    height: 42px;

    padding: 0 11px;

    border-radius: 12px;

    font-size: 12px;
  }


  .article-page-edge {
    min-width: 54px;
  }

}