:root{
  --brand:#4d3b08;  /* こげ茶 */
  --accent:#f3e089; /* くすみ黄色 */
  --muted:#decebf;  /* ベージュ */
  --sub:#f2eae4;    /* くすみベージュ */
  --main: #fff0b6;  /* 濃い黄色 */
  --white: #fff;    /* 白 */
  --base: #caaa99;  /* 赤茶 */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--brand);
  line-height: 1.8;
  background: var(--white);
  margin: 0;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, .client, .etc, footer {
  font-family: 'Noto Serif JP', serif;
}

.bold {
  font-weight: bold;
}

.font-sm {
  font-size: 12px;
}

.br-pc {
  display: inline-block;
}

.br-sp {
    display: none;
}

h1 {
  position: relative;
  display: inline-block;
  padding: 0 55px;
  text-align: center;
}

h1:before, h1:after {
  content: '';
  position: absolute;
  top: 50%;
  display: inline-block;
  width: 45px;
  height: 2px;
  border-top: solid 1px var(--brand);
  border-bottom: solid 1px var(--brand);
}

h1:before {
  left:0;
}
h1:after {
  right: 0;
}

h3 {
  margin: -23px 10px 0;
}

.section-title {
  text-align: center;
  background-color: var(--sub);
  padding: 10px 0;
}

/* 各セクション */
.section {
  max-width: 900px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.h2-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.mb-50 {
  margin-bottom: 50px;
}

/* 見出し */
.section-heading {
  position: relative;
  display: inline-block;
}

.span-circle {
  font-size: 14px;
}

.c1 {
  color: var(--muted);
}

.c2 {
  color: var(--accent);
  margin: 0 5px;
}

.profile {
  text-align: left;
  display: inline-block;
  text-align: justify;
　text-justify: inter-ideograph;
}

.profile-p {
  margin-bottom: 15px;
}

.profile-ul {
  list-style: disc;
  padding: 0;
  margin: 0 0 0 30px;
  text-align: left;
  display: inline-block;
}

.troubles {
  display: inline-block;
  width: 90%;
}

.trouble {
  display: flex;
  align-items: center;
}

.trouble-img {
  width: 17%;
  text-align: right;
}

.trouble img {
  height: 100px;
}

.trouble-voice {
  width: 66%;
}

.center {
  text-align: center;
}

.vacant {
  width: 17%;
}

.bubble {
  position: relative;
  display: inline-block;
  margin: 1.5em 0 1.5em 15px;
  padding: 15px 10px;
  min-width: 120px;
  max-width: 100%;
  color: var(--white);
  font-size: 16px;
  background: var(--base);
  border-radius: 5px;
  width: 100%;
  line-height: 1.5;
  text-align: center;
}

.right:before {
  content: "";
  position: absolute;
  top: 50%;
  left: -30px;
  margin-top: -15px;
  border: 6px solid transparent;
  border-right: 30px solid var(--base);
}

.left:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -15px;
  border: 6px solid transparent;
  border-left: 30px solid var(--base);
}

/* サービスメニュー */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  text-align: left;
}

.service-title span {
  font-size: 1.1rem;
  background: linear-gradient(transparent 70%, var(--accent) 70%);
  padding-right: 5px;
  padding-left: 5px;
}

.align-right {
 text-align: right; 
}

.disc-none {
  list-style: none;
}

/* 作品ジャンルタイトル */
.category-title {
  display: flex;
  align-items: center;
}

.work-inner {
  display: flex;
  justify-content: space-between;
}

.work-inner2 {
  display: flex;
}

.title-img {
  width: 40px;
}

/* 作品タイトル・説明 */
.work-title {
  background: var(--accent);
  padding: 9px 15px;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100;
  align-items: center;
  justify-content: center;
}

.work-title1 {
  display: flex;
}

.work-title2 {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 10px;
}
.work-desc {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  max-width: 50%;
  margin-left: 10px;
  text-align: left;
  text-align: justify;
　text-justify: inter-ideograph;
}

.work-images {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.work-images img {
  width: 100%;
}

.g-img {
  width: 70% !important;
}

.set {
  width: 50%;
}

.set2 {
  width: 100%;
}

.client {
  font-weight: 900;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.rich5 {
  margin-top: 42px;
}

.grid-2 { 
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 { 
    grid-template-columns: repeat(3, 1fr);
}

.other {
  text-align: left;
}

.note {
  font-size: 16px;
  margin-bottom: 10px;
  display: inline-block;
}

.url-link {
    margin: 10px 0;
}

.url-link a {
    color: var(--brand);
    text-decoration: none;
}

.url-link a:hover {
    opacity: 0.7;
}

.etc {
  text-align: right;
  margin-top: 10px;
}

/* 区切り線 */
.divider {
  border: none;
  border-top: 1px solid var(--accent);
  position: relative;
  margin: 35px auto;
  width: 80%;
}
.divider::before,
.divider::after {
  content: "◆";
  color: var(--accent);
  position: absolute;
  top: -12px;
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.margin {
  margin: 50px;
}

/* Q&A */

.qa {
  max-width: 980px;
  margin: 0 auto 18px;
}

.qband {
  background: var(--muted);
  padding: 8px;
  color: var(--white);
  font-weight: 500;
  text-align: center;
  font-size: 1.1rem;
}

.a {
  padding: 16px;
  line-height: 1.9;
  text-align: justify;
　text-justify: inter-ideograph;
}

.a p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.qa-t {
  font-weight: 600;
  margin-bottom: 0px !important;
}

/* 最後の挨拶 */
.final-box {
  border: 2px solid var(--accent);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

/*  フッター */
footer {
  background: var(--main);
  text-align: center;
  padding: 40px 0;
  position: relative;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
  background: var(--main);
}

.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.btn {
  display: inline-block;
  padding: 8px 40px;
  border: 1px solid var(--brand);
  color: var(--brand);
  text-decoration: none;
  border-radius: 5px;
  transition: 0.3s;
  font-family: "Noto Sans JP", sans-serif;
}

.btn:hover {
  background-color: var(--brand);
  color: var(--white);
}

.policy a {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.8rem;
}

.policy a:hover {
  opacity: 0.7;
}

.copy {
  font-size: 0.8rem;
  margin-top: 5px;
}

/* --- TOPに戻るボタン --- */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    padding: 10px;
    transition: .3s;

    z-index: 999;

    background-color: var(--sub);
    color: var(--brand);
    font-size: 12px;
    box-shadow:1px 1px 4px 0px rgba(0,0,0,0.19);

    width: 55px;
    height: 55px;
    border-radius: 50%;

    cursor: pointer;

    /* 上向きの三角と、TOPの文字の位置を揃える */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  
    /*デフォルトで非表示にする*/
    opacity: 0;
    border: none;
}

.back-to-top::before {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--brand);
    border-right: 2px solid var(--brand);
    transform: rotate(-45deg);
    transition: .3s;
}

.back-to-top:hover {
    opacity: 0.7 !important;
    transform: translateY(-4px);
    border: none;
    box-shadow: 3px 3px 4px 1px rgba(0, 0, 0, 0.19);
} 

/* 表示時 */
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  border: none;
}


/* レスポンシブ */
@media (max-width: 768px) {

  .br-pc {
    display: none;
  }

  .br-sp {
    display: block;
  }

  h2 {
    font-size: 1.2rem;
  }

  .trouble-voice {
    width: 84%;
  }

  .vacant {
    width: 0;
  }

  .bubble {
    padding: 10px 10px;
    text-align: justify;
    text-justify: inter-ideograph;
  }

  .right:before {
    left: auto;
    z-index: -1;
  }

  .left:before {
    left: auto;
    z-index: -1;
  }

  .work-category h3,
  .category-title h3 {
    text-align: center;
    font-size: 1.1rem;
  }

  .services {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .work-images {
    grid-template-columns: 1fr;
  }

  .work-images.grid-2 img,
  .work-images.grid-3 img {
    width: 100%;
  }

  .work-inner, .work-inner2 {
    justify-content: unset;
    flex-direction: column;
  }

  .work-title {
    width: 100%;
    text-align: center;
  }

  .work-title2 {
    width: 100%;
    text-align: center;
  }

  .work-desc {
    max-width: 100%;
    margin-left: 0;
    margin-top: 10px;
  }

  .set {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center
  }

  .half-img {
    width: 50% !important;
  }

  .g-img {
    width: 100% !important;
  }

  .client {
    margin-bottom: 5px;
  }

  .rich5 {
    margin-top: 0;
  }

  .align-right  {
    padding-right: 0;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-content .btn {
    width: 80%;
    margin-top: -30px;
  }

  .back-to-top {
    /*display: none;*/
  }


}
