/* ===== うちの子サイト（仮）用CSS ===== */

/* 色や書体は、ここだけ直せば全体に反映されます */
:root {
  --bg: #FBF6EE;          /* 背景（クリーム） */
  --white: #FFFFFF;
  --ink: #5B4130;         /* 文字色（ブラウン） */
  --ink-soft: #7A5C49;    /* 補足の文字色 */
  --sand: #D9C29A;        /* 線・枠（ベージュ） */
  --gold-deep: #8A6620;   /* 数字・英字・アイコン（濃い黄土色） */
  --beige-light: #F2E8D0; /* 帯・目立たせたい背景（うすいベージュ） */
  --yellow: #F6E7AE;      /* ラベルの黄色 */
  --card-line: #E5D8BC;   /* カードの枠線 */
  --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: auto-phrase;   /* 文節の区切りで改行（対応ブラウザのみ） */
  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-logo-img {
  width: 250px;
  vertical-align: middle;
}
.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-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: 2px dashed var(--sand);*/
  border-radius: 10px;
  /*background: var(--beige-light);*/
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /*padding: 16px;
  font-size: 14px;*/
  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;
  text-align: center;
}
.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: 12px;
  text-decoration: none;
  text-align: center;
  line-height: 1.6;
}
.uc-route:hover,
.uc-route:focus-visible {
  border-color: var(--gold-deep);
}
.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(--gold-deep);
}
.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(--gold-deep);
}

/* 悩み（吹き出し風・左ぞろえ） */
.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: 999px;
  font-size: 17px;
}
.uc-section--white .uc-pain p {
  background: var(--bg);
}
.uc-text {
  /*max-width: 40em;*/
  margin: 0 0 16px;
  font-size: 17px;
}

.uc-mini-text {
  font-size: 12px;
}

.etc {
  text-align: right;
  margin: -20px 0;
}

/* 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: 12px;
  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(--ink);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.uc-btn:hover,
.uc-btn:focus-visible {
  background: var(--white);
  color: var(--ink);
}
.uc-btn--sub {
  background: transparent;
  color: var(--ink);
}
.uc-btn--sub:hover,
.uc-btn--sub:focus-visible {
  background: var(--ink);
  color: var(--white);
}
/* ボタンだけを中央に置くとき */
.uc-cta {
  margin: 28px 0 0;
  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: 12px;
}
.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(--gold-deep);
}
.uc-details[open] summary::after {
  content: "−";
}
.uc-details summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 12px;
}
.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;
}

a.svc-more,
a.svc-more:visited {
  display: table;          /* 文字の幅だけに縮めて、中央に置く */
  margin: 16px auto 0 !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: 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;
}


/* ---------- 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;   /* お問い合わせ帯は中央ぞろえのまま */
}

/* ---------- スマホの改行・見た目の修正 ---------- */
/* 本文は、文節で切らずに、普通に折り返す */
body {
  word-break: normal;
  line-break: strict;
}
/* 見出しだけは、文節で改行する */
.uc-hero__title,
.uc-route__title,
.uc-heading__title,
.uc-card__title {
  word-break: auto-phrase;
}
/* 1文字だけ次の行に落ちるのを避ける */
.uc-text,
.uc-card__text,
.uc-details__body p {
  text-wrap: pretty;
}
/* 丸い囲みを、2行になっても不自然に見えない形に */
.uc-pain p {
  border-radius: 24px;
}

.sp-br {
  display: none;
}


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

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

