* {
  box-sizing: border-box;
}

:root {
  --ink: #28343b;
  --muted: #78848a;
  --green: #6f9d78;
  --green-dark: #527d5c;
  --line: #e6ebe7;
  --paper: #ffffff;
  --page: #f5f7f5;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

a:hover {
  color: var(--green-dark);
  opacity: .82;
}

#wrapper {
  min-height: 100vh;
  overflow: hidden;
}

.contents_in {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.clearfix::after {
  display: block;
  clear: both;
  content: "";
}

header {
  position: relative;
  z-index: 5;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

header > .contents_in {
  display: flex;
  align-items: center;
  min-height: 94px;
  gap: 28px;
}

header h1 {
  flex: 0 0 auto;
  margin: 0;
  line-height: 0;
}

header h1 img {
  display: block;
  width: 190px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.nav_in,
nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav_in {
  flex: 1;
  justify-content: center;
}

.nav_in a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #536168;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav_in img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

nav {
  display: none;
}

.header_right {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #66736d;
  font-size: 12px;
}

.about_nav a {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #dce5dd;
  border-radius: 3px;
}

.powerdby {
  line-height: 1.5;
  white-space: nowrap;
}

.powerdby b {
  color: var(--green-dark);
}

#nav_toggle {
  display: none;
}

.main_contents {
  padding-top: 40px;
  padding-bottom: 72px;
}

#main_area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: start;
  gap: 34px;
}

#article_g,
#recommended_g,
#side_area,
.tw-area,
.bnr-area {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
}

#article_g {
  min-width: 0;
  padding: 42px 50px 48px;
}

.article_info {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  background: #edf4ee;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}

#article_g > h1 {
  margin: 16px 0 10px;
  color: #293a34;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: .015em;
}

.authorLink {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.authorLink a {
  border-bottom: 1px solid #cfd8d0;
}

.cnt_box > .cnt_img {
  margin: 24px 0;
  text-align: center;
}

.cnt_box > .cnt_img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}

#article_g .cnt_box > h2 {
  margin: 38px 0 14px;
  padding: 0 0 11px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--green);
  color: #34463d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.65;
}

#article_g .cnt_box > h2:first-of-type {
  margin-top: 28px;
}

#article_g .cnt_box > h3 {
  margin: 26px 0 8px;
  color: #4f7658;
  font-size: 18px;
  line-height: 1.6;
}

#article_g .cnt_box > p {
  margin: 0 0 19px;
  color: #4c575b;
  font-size: 15px;
  line-height: 2.05;
}

#article_g .cnt_box > p span {
  color: var(--muted);
}

#recommended_g {
  margin-top: 28px;
  padding: 26px 30px 30px;
}

#recommended_g > h2,
#side_area .h2_g h2 {
  margin: 0 0 20px;
  color: #34463d;
  font-size: 19px;
  letter-spacing: .04em;
}

#recommended_g .cnt_g {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

#recommended_g .cnt_box,
#side_area .cnt_box {
  min-width: 0;
}

#recommended_g .cnt_box > a,
#side_area .cnt_box > a {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

#recommended_g .cnt_img,
#side_area .cnt_img {
  flex: 0 0 105px;
  width: 105px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0ed;
}

#recommended_g .cnt_img img,
#side_area .cnt_img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

#recommended_g .cnt_text,
#side_area .cnt_text {
  min-width: 0;
}

#recommended_g .cnt_text h3,
#side_area .cnt_text h3 {
  margin: 0 0 8px;
  color: #3b4945;
  font-size: 13px;
  line-height: 1.65;
}

#recommended_g .article_info,
#side_area .article_info {
  gap: 7px;
  font-size: 10px;
}

#recommended_g .category,
#side_area .category {
  padding: 2px 6px;
  font-size: 9px;
}

.side_wrap {
  display: grid;
  gap: 20px;
}

#side_area {
  padding: 24px 20px;
}

#side_area .h2_g {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

#side_area .cnt_g {
  display: grid;
  gap: 20px;
}

#side_area .cnt_box > a {
  gap: 11px;
}

#side_area .cnt_img {
  flex-basis: 88px;
  width: 88px;
}

.tw-area,
.bnr-area {
  padding: 20px;
  color: var(--muted);
  font-size: 13px;
}

.followbtn {
  margin: 12px 0 0;
  color: var(--green-dark);
}

.bnr-area {
  padding: 12px;
  text-align: center;
}

.bnr-area img {
  display: block;
  width: 100%;
}

.totop {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  width: 46px;
  height: 46px;
  padding: 10px;
  border-radius: 50%;
  background: var(--green-dark);
  box-shadow: 0 3px 12px #26372d30;
  cursor: pointer;
}

.totop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

footer {
  padding: 26px 0;
  background: #35463e;
  color: #e5ebe6;
  font-size: 12px;
}

footer .contents_in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.sitemap a {
  display: inline-block;
  margin: 4px 8px 4px 0;
}

.copyright {
  color: #c2cec5;
  white-space: nowrap;
}

@media (max-width: 980px) {
  header > .contents_in {
    flex-wrap: wrap;
    gap: 12px 20px;
    padding-block: 12px;
  }

  header h1 img {
    width: 160px;
  }

  .nav_in {
    gap: 14px;
  }

  .nav_in a {
    gap: 5px;
    font-size: 10px;
  }

  .nav_in img {
    width: 23px;
    height: 23px;
  }

  .header_right {
    display: none;
  }

  #main_area {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 22px;
  }

  #article_g {
    padding: 34px 32px 40px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .contents_in {
    width: min(100% - 30px, 560px);
  }

  header > .contents_in {
    min-height: 70px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  header h1 img {
    width: 150px;
  }

  .nav_in {
    display: none;
  }

  #nav_toggle {
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 3px;
  }

  #nav_toggle > div {
    display: grid;
    gap: 5px;
  }

  #nav_toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--green-dark);
  }

  header nav {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 12px 20px;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 14px #26372d12;
  }

  header nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    width: min(100%, 520px);
    margin: auto;
  }

  header nav li {
    border-bottom: 1px solid var(--line);
  }

  header nav a {
    display: block;
    padding: 10px 4px;
    color: #536168;
    font-size: 13px;
  }

  .main_contents {
    padding-top: 18px;
    padding-bottom: 40px;
  }

  #main_area {
    display: block;
  }

  #article_g {
    padding: 25px 20px 30px;
  }

  #article_g > h1 {
    margin-top: 12px;
    font-size: 24px;
  }

  .authorLink {
    margin-bottom: 22px;
  }

  #article_g .cnt_box > h2 {
    margin-top: 30px;
    font-size: 19px;
  }

  #article_g .cnt_box > h3 {
    font-size: 17px;
  }

  #article_g .cnt_box > p {
    font-size: 14px;
    line-height: 1.95;
  }

  #recommended_g {
    padding: 22px 18px;
  }

  #recommended_g .cnt_g {
    grid-template-columns: 1fr;
  }

  #recommended_g .cnt_img {
    flex-basis: 100px;
    width: 100px;
  }

  .side_wrap {
    margin-top: 22px;
  }

  #side_area {
    padding: 22px 18px;
  }

  #side_area .cnt_g {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  #side_area .cnt_box > a {
    display: block;
  }

  #side_area .cnt_img {
    width: 100%;
    margin-bottom: 9px;
  }

  #side_area .cnt_text h3 {
    font-size: 12px;
  }

  footer .contents_in {
    display: block;
  }

  .copyright {
    margin-top: 12px;
    white-space: normal;
  }

  .totop {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 420px) {
  .contents_in {
    width: calc(100% - 22px);
  }

  #article_g {
    padding-inline: 16px;
  }

  #article_g > h1 {
    font-size: 21px;
  }

  #article_g .cnt_box > h2 {
    padding-left: 10px;
    font-size: 17px;
  }

  #side_area .cnt_g {
    grid-template-columns: 1fr;
  }

  #side_area .cnt_box > a {
    display: flex;
  }

  #side_area .cnt_img {
    flex: 0 0 88px;
    width: 88px;
    margin-bottom: 0;
  }
}
