/* ===== れなこむ 法人・個人事業主・フリーランス向けページ用CSS ===== */

/* 色や書体は、ここだけ直せば全体に反映されます */
:root {
  --bg: #edf2f4;          /* 背景（クリーム） */
  --white: #FFFFFF;
  --ink: #5B4130;         /* 文字色（ブラウン） */
  --ink-soft: #7A5C49;    /* 補足の文字色 */
  --sand: #49839f;        /* 線・枠（ベージュ） */
  --accent: #49839f;      /* 数字・英字・ボタン（落ち着いた深緑）。ベージュと合い、仕事感も出る色 */
  --beige-light: #b1d2e1; /* 帯・目立たせたい背景（うすいベージュ） */
  --yellow: #F6E7AE;      /* ラベルの黄色 */
  --card-line: #b1d2e1;   /* カードの枠線 */
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: "Cormorant Garamond", serif;
  --brand:#4d3b08;  /* こげ茶 */
  --sub:#f2eae4;    /* くすみベージュ */
}

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-jp);
  line-height: 1.9;
  letter-spacing: 0.04em;
  word-break: normal;        /* 本文は普通に折り返す */
  line-break: strict;
}

a { color: inherit; }

.uc-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 6vw, 64px);   /* 両脇の余白。画面が広くても、広がりすぎません */
  box-sizing: border-box;
}

/* ---------- ヘッダー（上に固定） ---------- */
.uc-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--beige-light);
  border-bottom: 1px solid var(--sand);
}
.uc-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.uc-logo {
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.uc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 15px;
}
.uc-nav a {
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.uc-nav a:hover,
.uc-nav a:focus-visible {
  border-bottom-color: var(--ink);
}

.uc-logo-img {
    width: 250px;
    vertical-align: middle;
}

/* ---------- ヒーロー ---------- */
.uc-hero {
  padding: 72px 0 64px;
}
.uc-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
}
.uc-hero__text {
  flex: 1 1 480px;
}
.uc-hero__title {
  margin: 0 0 20px;
  font-size: clamp(22px, 6.5vw, 38px);   /* 最大38px。スマホでは画面に合わせて小さくなります */
  line-height: 1.5;
}
.uc-hero__lead {
  margin: 0;
  font-size: 18px;
}
.uc-hero__photo {
  flex: 1 1 240px;
  aspect-ratio: 1 / 1;
  max-width: 400px;
}

/* 画像を入れる仮の枠（画像に差し替えると不要になります） */
.uc-ph {
  box-sizing: border-box;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.uc-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3つの入口（中身は中央ぞろえ） */
.uc-route-lead {
  margin: 56px 0 16px;
  font-size: 20px;
  font-weight: 700;
}
.uc-routes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.uc-route {
  display: flex;                 /* 中の文字を、縦の中央にそろえるため */
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  line-height: 1.6;
}
.uc-route:hover,
.uc-route:focus-visible {
  border-color: var(--accent);
}
.uc-route__label {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
}
.uc-route__title {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  text-wrap: balance;            /* 2行になるときは、行の長さをそろえる（「中」だけ残らない） */
}

/* ---------- セクション共通 ---------- */
.uc-section {
  padding: 64px 0;
  scroll-margin-top: 64px;
}
.uc-section--white {
  background: var(--white);
}
.uc-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--sand);
  padding-bottom: 12px;
  margin-bottom: 36px;
}
.uc-heading__num {
  font-family: var(--font-en);
  font-size: 52px;
  line-height: 1;
  color: var(--accent);
}
.uc-heading__title {
  margin: 0;
  font-size: 28px;
}
.uc-heading__en {
  margin-left: auto;
  font-family: var(--font-en);
  font-size: 18px;
  letter-spacing: 0.25em;
  color: var(--accent);
}

/* 悩み（吹き出し風・左ぞろえ） */
.uc-pain {
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.uc-pain p {
  margin: 0;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  font-size: 17px;
}
.uc-section--white .uc-pain p {
  background: var(--bg);
}
.uc-text {
  /*max-width: 40em;*/
  margin: 0 0 16px;
  font-size: 17px;
}
/* Q&Aのグループ見出し */
.uc-faq-group {
  margin: 32px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--sand);
  font-size: 18px;
}
.uc-faq-group:first-of-type {
  margin-top: 0;
}
.uc-note {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- カード（タイトルとボタンは中央、文章は左） ---------- */
.uc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.uc-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
  padding: 28px;
}
.uc-section--white .uc-card {
  background: var(--bg);
}
.uc-card__title {
  margin: 0 0 12px;
  font-size: 21px;
  text-align: center;
}
.uc-card__text {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.8;
  word-break: normal;            /* カードの中は、文節で区切らず、行をいっぱいに使う */
  text-wrap: pretty;             /* 1文字だけ次の行に落ちるのを避ける */
}
.uc-card .uc-btn {
  margin-top: auto;
  align-self: center;
}

/* ボタン */
.uc-btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.uc-btn:hover,
.uc-btn:focus-visible {
  background: var(--white);
  color: var(--accent);
}
.uc-btn--sub {
  background: transparent;
  color: var(--accent);
}
.uc-btn--sub:hover,
.uc-btn--sub:focus-visible {
  background: var(--accent);
  color: var(--white);
}
/* ボタンだけを中央に置くとき */
.uc-cta {
  margin: 28px 0 35px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* 外部サイトへのリンクを示すアイコン */
.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;
}

/* 黄色いラベル */
.uc-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 14px;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 作品例 ---------- */
.uc-gallery-title {
  margin: 40px 0 16px;
  font-size: 20px;
}
.uc-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.uc-gallery .uc-ph {
  aspect-ratio: 4 / 3;
}

/* ---------- 開閉（アコーディオン）※中身は左ぞろえのまま ---------- */
.uc-details {
  margin: 12px 0;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
}
.uc-section--white .uc-details {
  background: var(--bg);
}
.uc-details summary {
  position: relative;
  padding: 16px 56px 16px 20px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.uc-details summary::-webkit-details-marker {
  display: none;
}
.uc-details summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-en);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}
.uc-details[open] summary::after {
  content: "−";
}
.uc-details summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.uc-details__body {
  padding: 0 20px 20px;
  font-size: 16px;
}
.uc-details__body h4 {
  margin: 16px 0 6px;
  font-size: 16px;
}
.uc-details__body p,
.uc-details__body ul {
  margin: 0 0 8px;
}
.uc-details__body ul {
  padding-left: 1.4em;
}

/* ---------- お問い合わせ ---------- */
.uc-contact {
  padding: 72px 0;
  background: var(--beige-light);
  text-align: center;
  scroll-margin-top: 64px;
}
.uc-contact__title {
  margin: 0 0 16px;
  font-size: 28px;
}
.uc-contact__text {
  margin: 0 0 28px;
  font-size: 17px;
}

/* ---------- フッター ---------- */
.uc-footer {
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- 2行以上の文章は両端そろえ（1行だけの文章は影響なし） ---------- */
.uc-text,
.uc-card__text,
.uc-details__body p,
.uc-details__body li,
.uc-contact__text {
  text-align: justify;
  text-justify: inter-character;
}
.uc-contact__text {
  text-align: center;   /* お問い合わせ帯は中央ぞろえのまま */
}

/* ---------- 見出しだけ、文節で改行／本文は1文字落ちを避ける ---------- */
.uc-hero__title,
.uc-route__title,
.uc-heading__title,
.uc-card__title {
  word-break: auto-phrase;
}
.uc-hero__lead,
.uc-text,
.uc-card__text,
.uc-details__body p {
  text-wrap: pretty;
}

/* ============================================================
   ここから、法人・個人事業主向けページ専用の部品
   ============================================================ */

/* ヒーローの小さな補足文 */
.uc-hero__lead {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}
.uc-hero__sub {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
}

/* 対応範囲の一覧（項目／内容／料金の目安） */
.uc-scope {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
}
.uc-section--white .uc-scope {
  background: var(--bg);
}
.uc-scope__row {
  display: grid;
  grid-template-columns: 9em 1fr 11em;
  gap: 4px 24px;
  align-items: baseline;
  padding: 18px 24px;
  border-top: 1px solid var(--card-line);
}
.uc-scope__row:first-child {
  border-top: 0;
}
.uc-scope__name {
  font-weight: 700;
  font-size: 17px;
}
.uc-scope__desc {
  font-size: 16px;
}
.uc-scope__desc small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-soft);
}
.uc-scope__price {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}
@media (max-width: 640px) {
  .uc-scope__row {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }
  .uc-scope__price {
    text-align: left;
  }
}

/* 注意書き（運用は対象外など） */
.uc-notice {
  margin: 20px 0 30px;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  font-size: 16px;
}
.uc-section--white .uc-notice {
  background: var(--bg);
}
.uc-notice strong {
  display: block;
  margin-bottom: 4px;
}
.uc-price-note {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: right;
}

/* チェックリスト風の箇条書き */
.uc-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  max-width: 40em;
}
.uc-list li {
  position: relative;
  padding: 1px 0 1px 1.6em;
  font-size: 16px;
}
.uc-list li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.9em;
  width: 0.5em;
  height: 0.5em;
  background: var(--accent);
}

/* ご依頼の流れ（番号つき） */
.uc-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.uc-steps li {
  counter-increment: step;
  box-sizing: border-box;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 4px;
}
.uc-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-en);
  font-size: 28px;
  line-height: 1.2;
  color: var(--accent);
}
.uc-steps strong {
  display: block;
  margin-bottom: 4px;
}
.uc-steps span {
  font-size: 15px;
}

/* 小見出し（講座の対象など） */
.uc-subtitle {
  margin: 40px 0 5px;
  font-size: 20px;
}

a.svc-more,
a.svc-more:visited {
  display: table;          /* 文字の幅だけに縮めて、中央に置く */
  margin-top: 16px !important;
  font-size: 13px;
  color: #7A6540;          /* 見出し（講座など）と同じ色 */
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  position: relative;      /* 右下の大きな数字より前に出す */
}

a.svc-more:hover,
a.svc-more:focus-visible {
  opacity: .7;
}
a.svc-more span {
  display: inline-block;
  margin-left: .3em;
  transition: transform .2s;
}
a.svc-more:hover span,
a.svc-more:focus-visible span {
  transform: translateX(4px);
}

/*  フッター */
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: var(--accent);
    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;
}
.sp-br {
  display: none;
}

@media (max-width: 640px) {
  .sp-br {
    display: inline;
  }

  .uc-btn {
    width: 100%;
    text-align: center;
  }
  
  .uc-cta {
    flex-direction: column;
  }
}


/* ---------- スマホ：見出しが窮屈にならないように ---------- */
@media (max-width: 480px) {
  .uc-heading {
    gap: 12px;
  }
  .uc-heading__num {
    font-size: 40px;
  }
  .uc-heading__title {
    font-size: 24px;
  }
  .uc-heading__en {
    display: none;
  }
  a.svc-more {
    margin-bottom: 16px;
  }
}

.uc-steps span,
.uc-notice,
.uc-price-note {
  text-wrap: pretty;
}
