/* ===== れなこむ ポートフォリオ（上部）用CSS ===== */

/* 色や書体はここだけ直せば全体に反映されます */
:root {
  --bg: #FBF6EE;          /* ページ全体の背景（クリーム） */
  --ink: #5B4130;         /* 文字色（ブラウン） */
  --rose: #C99C8B;        /* 線・枠（ローズ） */
  --rose-deep: #A8715F;   /* 数字・英字・アイコン（濃いローズ） */
  --rose-light: #F1DDD3;  /* タイトル帯・イラスト背景 */
  --card-bg: #FFFDF9;     /* カードの背景 */
  --card-line: #E8D3C8;   /* カードの枠線 */
  --font-jp: "Zen Maru Gothic", sans-serif;
  --font-en: "Cormorant Garamond", serif;
  --brand:#4d3b08;  /* こげ茶 */
  --accent:#f3e089; /* くすみ黄色 */
  --sub:#f2eae4;    /* くすみベージュ */
  --muted:#decebf;  /* ベージュ */
  --white: #fff;    /* 白 */
}


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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
}

/* ---------- タイトル帯 ---------- */
.title-band {
  background: var(--rose-light);
  border-bottom: 1px solid var(--rose);
  padding: 32px 8%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
}
.title-band__en {
  font-family: var(--font-en);
  font-size: 44px;
  letter-spacing: 0.2em;
  line-height: 1;
}
.title-band__ja {
  font-size: 16px;
  letter-spacing: 0.15em;
}

.title-band-bg {
  background: var(--accent);
}

/* ---------- セクション共通 ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 8% 40px;
  box-sizing: border-box;
}
.section--service {
  padding-top: 40px;
  padding-bottom: 72px;
}

/* 見出し（数字＋日本語＋英字） */
.heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--rose);
  padding-bottom: 12px;
  margin-bottom: 40px;
}
.heading__num {
  font-family: var(--font-en);
  font-size: 52px;
  line-height: 1;
  color: var(--rose-deep);
}
.heading__title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
}
.heading__en {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--rose-deep);
}

/* ---------- 自己紹介 ---------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}
.about__icon {
  flex: 0 0 220px;
  width: 220px;
  height: 220px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--rose-light);
  border: 2px solid var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 15px;
}
.about__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about__text {
  flex: 1 1 360px;
}
.about__lead {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
}
.about__body {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  text-align: justify;
}

/* ---------- サービスカード ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  padding: 28px;
}
.card__icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: var(--rose-deep);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__title {
  margin: 14px 0 12px;
  font-size: 21px;
}
.card__list {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.service-attention {
  margin-top: 15px;
  text-align: center;
}

.ext-icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;   /* リンクの文字色と同じ色になります */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.125em;  /* 文字との上下のずれを直します */
  margin-left: 0.3em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.align-right {
 text-align: right; 
}
.disc-none {
  list-style: none;
}

/* ---------- 作品紹介への案内 ---------- */
.next-note {
  margin: 56px 0 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 20px;
  letter-spacing: 0.3em;
  color: var(--rose-deep);
}

/* ===== 作品紹介（背景は白） ===== */
.works {
  background: #FFFFFF;
  border-top: 1px solid var(--card-line);
}

/* カテゴリ名（例：スライド資料、Webデザイン） */
.category {
  margin: 56px 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-line);
  font-size: 24px;
  font-weight: 700;
}
.category:first-of-type {
  margin-top: 0;
}


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

.work-inner2 {
  display: flex;
}


/* 作品タイトル・説明 */
.work-title {
  background: var(--accent);
  padding: 9px 15px;
  border-radius: 6px;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  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;
}

.g-img2 {
  width: 34% !important;
}

.set {
  width: 50%;
}

.set2 {
  width: 100%;
}

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

.rich5 {
  margin-top: 35px;
}

.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;
}

.logo-images {
  width: 50%;
}

.work-poster {
  margin-top: 20px;
}

.poster-sub {
  margin-left: 230px;
}

/* 区切り線 */
.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;
}



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


/* Q&A */

.category-qa {
  margin: 0 0 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-line);
  font-size: 24px;
  font-weight: 700;
}


.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 {
  padding-top: 0 !important;
}

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

/*  フッター */
footer {
    clear: both;
    padding: 0;
    letter-spacing: 0.05em;
    font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "メイリオ", meiryo, sans-serif;
    font-weight: 400;
    color: #ffffff !important;
}

#footer {
    max-width: 100%;
}

#footer-wrapper {
    max-width: 100%;
    background: url(st-themecss-loader.php?ver=7.0.2), linear-gradient(to left, #dfd4c8 0%, #cdbba7 100%);
    padding: 20px 15px;
    text-align: center;
}

.footermenust {
    text-align: center;
    padding: 0 0 40px;
}


footer .footermenust li {
    border-right-color: #ffffff !important;
}

footer .footermenust li {
    border-right: 1px solid #ccc;
    font-size: 12px;
    line-height: 18px;
    display: inline;
    padding: 0 10px;
}

#footer .footermenust a {
    padding: 0px;
    margin: 0px;
    font-size: 12px;
    color: #ffffff !important;
}

#footer a {
    text-decoration: none;
}

footer .footermenust li:last-child {
    border-right: none;
}

footer .footermenust li {
    border-right-color: #ffffff !important;
}

footer #st-footer-logo-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#st-text-logo {
    word-break: break-all;
}

#footer #st-text-logo p {
    font-size: 12px;
}

#footer p.copyr {
    margin-bottom: 0;
    line-height: 1.2;
    font-size: inherit;
}

small {
    font-size: 80%;
}

#footer .footerlogo img {
    max-width: 300px;
    margin: 0 auto 10px;
    text-align: center;
}

.footerlogo img {
    max-height: 35px;
    width: auto;
}

/* --- 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;
  }

  .logo-images {
    width: 100%;
  }

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

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

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

  #footer {
      margin: 0 auto;
  }

}

