/* ベース設定 */
:root {
  --paper: #faf9f4;      /* 温かい紙色の背景 */
  --ink: #37332C;        /* 本文 */
  --ink-soft: #6E675B;   /* 補足テキスト */
  --line: #E9E2CF;       /* 罫線 */
  --cream: #F8F4E6;      /* パネル背景 */
  --sage: #8FA37E;       /* アクセント（セージ） */
  --sage-soft: #EFF2E6;  /* アクセント淡 */
  --apricot: #E8A87C;    /* アクセント（アプリコット） */
  --link: #47708C;       /* テキストリンク */
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.6;
}
img {
  width: 100%;
}
::selection {
  background: #EFE7CF;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* ハンバーガーメニュー全体のスタイル */
.nav-menu {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

/* トグルボタンのスタイル */
.nav-menu__toggle {
  display: block;
  cursor: pointer;
  padding: 0 10px 2px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* アイコンの共通スタイル */
.nav-menu__icon {
  font-size: 24px;
  color: #333333;
}

/* 閉じるアイコンは初期状態で非表示 */
.nav-menu__icon--close {
  display: none;
}

/* メニューリストのスタイル */
.nav-menu__list {
  display: none; /* 初期状態では非表示 */
  position: absolute;
  top: 40px;
  right: 0;
  width: 200px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  margin: 0;
  list-style: none;
}

/* メニュー項目のスタイル */
.nav-menu__item {
  margin: 0;
  padding: 0;
}

/* メニューリンクのスタイル */
.nav-menu__link {
  display: block;
  padding: 12px 20px;
  color: #333333;
  text-decoration: none;
  transition: background-color 0.3s;
}

.nav-menu__link:hover {
  background-color: #f7f7f7;
  color: #4a7b9d;
}

/* チェックボックスの状態に応じたスタイル変更 */
#menustate {
  display: none; /* チェックボックスは非表示 */
}

#menustate:checked ~ .nav-menu .nav-menu__list {
  display: block; /* チェックされたらメニューを表示 */
}

#menustate:checked ~ .nav-menu .nav-menu__icon--open {
  display: none; /* チェックされたら三本線アイコンを非表示 */
}

#menustate:checked ~ .nav-menu .nav-menu__icon--close {
  display: inline; /* チェックされたら閉じるアイコンを表示 */
}


/* ヒーロー画像セクション */
.hero {
  text-align: center;
  padding: 2.5rem 1rem 0;
}
.hero__title {
  max-width: 420px;
  margin: 1rem auto 1.75rem;
  animation: fade-up 0.7s ease-out both;
}
.hero__subtitle {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-top: 1rem;
  animation: fade-up 0.7s ease-out 0.2s both;
}
.hero__image {
  display: block;
  margin: 0 auto;
  width: 320px;
  height: auto;
  animation: fade-up 0.7s ease-out 0.1s both;
}
@media screen and (max-width: 768px) {
  .hero__title {
    max-width: 350px;
  }
  .hero__subtitle {
    font-size: 0.9rem;
  }
  .hero__image {
    width: 65%;
  }
}
/* ==== スマホ（〜599px） ==== */
@media screen and (max-width: 599px) {
  .hero__title {
    max-width: 320px;
  }
  .hero__subtitle {
    font-size: 0.9rem;
  }
  .hero__image {
    width: 60%;
    max-width: 300px;
  }
}
/* ==== タブレット（600px〜1024px） ==== */
@media screen and (min-width: 600px) and (max-width: 1024px) {
  .hero__title {
    max-width: 380px;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .hero__image {
    width: 42%;
    max-width: 300px;
  }
}
/* ==== PC（1025px〜） ==== */
@media screen and (min-width: 1025px) {
  .hero__title {
    max-width: 420px;
  }
  .hero__subtitle {
    font-size: 1.05rem;
  }
  .hero__image {
    width: 320px;
  }
}
.category {
  margin: 0 auto;
  padding: 0 1rem;
  @media (min-width: 640px) {
    max-width: 800px;
    padding: 0;
  }
}
.category__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  animation: fade-up 0.7s ease-out 0.3s both;
}
@media (min-width: 640px) {
  .category__grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
}
.category__card a {
  color: inherit;
  text-decoration: none;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(90, 74, 58, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  @media (min-width: 640px) {
    padding: 0.8rem 0.5rem;
  }
}
.category__card a:hover {
  background: var(--sage-soft);
  border-color: var(--sage);
  transform: translateY(-2px);
}
.category__card-title {
  font-size: clamp(0.78rem, 3.2vw, 0.95rem);
  white-space: nowrap;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.category__card-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4em;
  vertical-align: 0.05em;
  background: var(--sage);
}
.category__card--remote .category__card-title::before {
  background: var(--apricot);
}
.category__card--money .category__card-title::before {
  background: #D9B85C;
}
.category__card--digital .category__card-title::before {
  background: #9AAEBB;
}
.category__card:last-child .category__card-title{
  letter-spacing: -0.03rem;
}
/* メインセクション */
.main-content {
  padding: 0.5rem 1rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

/* セクションタイトル */
.section {
  margin-top: 3rem;
}
.section__title {
  position: relative;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  border-radius: 2px;
  background: var(--sage);
}

/* 説明文など */
.section__description {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

/* リスト */
.articles,
.tags {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}
.articles__item,
.tags__item {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  border-bottom: 1px dotted #ccc;
}

/* ボタン */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.button:hover {
  background-color: #111;
  color: #fff;
  transition: 0.3s;
}


body.maintenance {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background-color: #f8f8f8;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem 1rem;
}

.maintenance__header {
  margin-bottom: 2rem;
}

.maintenance__site-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
  color: #111;
}

.maintenance__main {
  max-width: 600px;
}

.maintenance__heading {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.maintenance__text {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 2rem;
}

.maintenance__link {
  display: inline-block;
  text-decoration: none;
  color: #007acc;
  border-bottom: 1px solid #007acc;
  font-size: 0.9rem;
}

/* ===== プライバシーポリシー用スタイル（共通） ===== */
.page {
  padding: 2rem 1rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  color: #333;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
}

.page__title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: bold;
  color: #111;
  text-align: center;
}

.page__main {
  padding-top: 1rem;
}

.page__heading {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: bold;
  color: #111;
}

.page__text {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: #444;
}

.page__list {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.page__item {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  list-style: disc;
  color: #444;
}

.page__text a {
  color: var(--link);
  text-decoration: underline;
}
/* リスト全体の調整 */
.section__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* アイテム間の余白 */
  list-style: none;
  padding-left: 1rem;
  margin: 1rem 0;
}

.section__item {
  position: relative;
  padding-left: 1.2em;
}

.section__item::before {
  position: absolute;
  content: "›";
  top: -0.2em;
  left: 0;
  font-size: 1.1em;
  color: var(--sage);
  transition: transform 0.2s ease;
}

/* 各リスト項目のスタイル */
.section__item a {
  display: inline-block;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
  transition: opacity 0.2s ease;
}

.section__item a:hover {
  opacity: 0.8;
  text-decoration: underline;
  text-decoration-color: var(--sage);
  text-underline-offset: 3px;
}
.section__item:hover::before {
  transform: translateX(3px);
}

/* スマホ対応も意識したベーシック設計 */
@media (max-width: 600px) {
  .section__list {
    gap: 0.6rem;
    padding-left: 0.5rem;
  }
  .section__item {
    padding-left: 1rem;
  }
  .section__item::before {
    top: -0.2rem;
  }
  .section__item a {
    font-size: 1.05rem;
  }
  .section__description {
    font-size: 1rem;
  }
}
.author-box {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
  flex-direction: column;
}
.author-box__content {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.author-box__image {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(90, 74, 58, 0.14);
  @media (min-width: 467px) {
      width: 84px;
      height: 84px;
    }
}

.author-box__name {
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
.author-box__bio {
  margin: 0.25rem 0;
  font-size: 0.85rem;
}
.author-box__link {
  color: #0077cc;
  text-decoration: underline;
  font-size: 0.9rem;
}
/* フッター */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.footer__policy {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer__policy a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__sns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  list-style: none;
  padding-left: 0;
}
.footer__sns-item {
  display: flex;
  align-items: center;
}
.footer__sns-item a {
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
  display: inline-flex;

  &:hover {
    opacity: 0.75;
    text-decoration: underline;
    img {
      opacity: 0.75;
    }
  }
}
.footer__sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}
.footer__sns-icon--x svg {
  width: 25px;
  height: 25px;
}
.footer__sns-icon--note img {
  width: 38px;
  height: 38px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}