@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/
    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* iOS の過剰なフォント自動拡大を抑止 */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ==============================
   SkyLinks diagrams - responsive
   画像サイズ（=コンテナ幅）に比例して文字サイズをスケール
   ============================== */

/* 横幅プリセット */
.skyfig-lg { width: 1024px; max-width: 100%; }
.skyfig-md { width: 800px;  max-width: 100%; }
.skyfig-sm { width: 600px;  max-width: 100%; }

/* 親コンテナ（ここに font-size は入れない） */
.skyfig {
  position: relative;
  margin: 0 auto;
  font-family: "Noto Sans JP", sans-serif;
  overflow: hidden;
  margin-bottom: 2em !important;
  container-type: inline-size; /* 子要素で cqi を使えるように */
  --fs: 2.2cqi;                /* 基準: 幅800pxで約17.6px → 2.2cqi */
}

/* 画像は通常フローに残す */
.skyfig > img { display: block; width: 100%; height: auto; }

/* skyframe（文字用の仮想ボックス） */
.skyframe {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

/* 文字だけ完全比例（画像=コンテナ幅に対して） */
.skyfig .skyframe,
.skyfig .skylbl { font-size: var(--fs) !important; }
.skyfig .skyframe *, .skyfig .skylbl * { font-size: inherit; line-height: inherit; }
.skyframe--tl   { align-items: flex-start; justify-content: flex-start; text-align: left; }
.skyframe--auto { height: auto !important; }

/* ==============================
   背景色・共通
   ============================== */
:root { --bg: #ffffff; --background: #ffffff; }
html, body { background: #ffffff !important; background-color: #ffffff !important; }
#app, #root, .site, .page, .container, .wrapper, main, section { background: transparent !important; }

.full-bg {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background-color: rgb(255, 230, 200);
  padding: 80px 0;
}

/* アンカーのズレ対策 */
.anchor-target { scroll-margin-top: 100px; }

/* ------------------------------
   フォントサイズユーティリティ（emで相対）
   ------------------------------ */
.fxl { font-size: 1.5em; font-weight: 700; }
.fl  { font-size: 1.25em; font-weight: 700; }
.fm  { font-size: 1.0em;  font-weight: 600; }
.fs  { font-size: 0.85em; font-weight: 500; }
.fxs { font-size: 0.7em;  font-weight: 400; }

/* ------------------------------
   フォント色ユーティリティ
   ------------------------------ */
.f-red   { color: #e60000; }
.f-blue  { color: #0040ff; }
.f-green { color: #008000; }
.f-gray  { color: #555555; }
.f-black { color: #000000; }
.f-white { color: #ffffff; }

/* =====================
   共通フッタースタイル
   ===================== */
footer {
  background-color: #f5f5f5 !important;
  color: #333 !important;
  font-size: 0.95rem !important;
  text-align: center !important;
  margin-top: 4rem !important;
  border-top: 1px solid #ddd !important;
}
.footer-contact { padding: 2rem 1rem 1rem; }
.footer-contact a {
  font-size: 1.2rem !important;
  font-weight: bold !important;
  color: #0072bc !important;
  text-decoration: none !important;
  border-bottom: 2px solid #0072bc !important;
  padding-bottom: 3px !important;
  transition: color 0.3s ease, border-color 0.3s ease !important;
}
.footer-contact a:hover { color: #00bfff !important; border-color: #00bfff !important; }
.footer-links { margin: 1rem 0 !important; }
.footer-links a {
  margin: 0 0.8rem !important; color: #555 !important; text-decoration: none !important;
  font-size: 0.9rem !important; transition: color 0.3s ease !important;
}
.footer-links a:hover { color: #0072bc !important; }
.footer-bottom {
  font-size: 0.8rem !important; color: #777 !important; padding: 1rem 0 2rem !important;
  border-top: 1px solid #e0e0e0 !important;
}

/* =====================
   お問い合わせバナー
   ===================== */
.contact-banner {
  background-color: #0072bc !important;
  color: #fff !important;
  text-align: center !important;
  padding: 3rem 1rem !important;
}
.contact-inner { max-width: 1000px !important; margin: 0 auto !important; position: relative !important; }
.contact-banner .desc { margin-bottom: 0.4em !important; }
.contact-banner .land {
  margin-top: 0.4em !important; margin-bottom: 1.2em !important;
  font-size: 16px !important; color: #fff !important;
}
.contact-inner h2 { font-size: 2rem !important; font-weight: bold !important; margin: 0 0 0.5rem !important; }
.contact-inner .en {
  font-size: 0.9rem !important; letter-spacing: 2px !important; margin: 0 0 1rem !important;
  text-transform: uppercase !important;
}
.contact-inner .desc { margin: 0 0 2rem !important; font-size: 1rem !important; }
.contact-btn {
  display: inline-block !important; background: #fff !important; color: #0072bc !important;
  font-size: 1.5rem !important; font-weight: bold !important; width: 40px !important; height: 40px !important;
  line-height: 40px !important; border-radius: 50% !important; text-decoration: none !important;
  transition: background 0.3s ease, color 0.3s ease !important;
}
.contact-btn:hover { background: #00a3e0 !important; color: #fff !important; }

/* ページタイトル非表示 */
.page .page-title,
.page h1.page-title,
.l-main .page-title,
.entry-header .page-title {
  display: none !important; visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important;
}

/* =====================
   お知らせカード
   ===================== */
.news-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1em;
}
.news-card {
  background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 0.8em 1em;
  font-size: 0.9rem; line-height: 1.4; box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: transform 0.2s ease;
}
.news-card:hover { transform: translateY(-3px); }
.news-date { display: block; font-size: 0.75em; color: #666; margin-bottom: 0.4em; }
.news-link { display: block; color: #333; text-decoration: none; font-weight: 500; }
.news-link:hover { color: #0073aa; text-decoration: underline; }

/* =====================
   StepFlow（h2 ごと 1 画面）
   ===================== */
:root { --step-safe: 100px; }
.stepflow { position: relative; height: 100svh; overflow-y: auto; scroll-snap-type: y mandatory; -webkit-overflow-scrolling: touch; }
.stepflow .step-part {
  min-height: 100svh; display: grid; align-content: center; padding: 10vh 6vw;
  scroll-snap-align: start; scroll-snap-stop: always; background: var(--bg, #fff); color: var(--fg, #111);
}
.stepflow .step-inner { width: min(1000px, 100%); opacity: 0; transform: translate3d(0, 6vh, 0); transition: opacity .7s ease, transform .7s ease; }
.stepflow .step-part.is-in .step-inner { opacity: 1; transform: none; }
.stepflow .step-part h2 { margin: 0 0 .6em; font-size: clamp(28px, 6vw, 64px); line-height: 1.15; scroll-margin-top: var(--step-safe); }
.stepflow .step-part > .step-inner > *:not(h2) { font-size: clamp(16px, 2.2vw, 20px); line-height: 1.8; }
@media (prefers-reduced-motion: reduce) {
  .stepflow { scroll-behavior: auto !important; }
  .stepflow .step-inner { transition: none; opacity: 1 !important; transform: none !important; }
}

/* ==============================
   Business Circles（方法② / 最終版）
   横3列固定・真円・円幅に比例フォント・PCで1.2倍
   ※ 中身は <span class="circle__label">…</span> でラップする
   ============================== */

/* 横3列固定 */
.circle-container{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  column-gap:clamp(12px,3vw,28px) !important;
  row-gap:clamp(14px,4vw,28px) !important;
  justify-items:center !important;
  align-items:start !important;
  text-align:center;
}

/* --- ANDROID SAFE PATCH: 常に中央・真円・折返し・PCで1.2倍 --- */

/* 横3列は維持。超狭幅ではギャップを詰める */
.circle-container{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  column-gap:clamp(10px,3vw,26px) !important;
  row-gap:clamp(12px,4vw,26px) !important;
  justify-items:center !important;
  align-items:start !important;
  text-align:center;
}

/* 円：真円＋中央寄せ。計算用のフォント基準を変数化 */
.circle{
  width:100% !important;
  aspect-ratio:1/1 !important;
  border-radius:50% !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  box-sizing:border-box !important;
  background:#b3ffe6;
  box-shadow:0 6px 12px rgba(0,0,0,.10);
  container-type:inline-size;           /* 100cqi = 円の幅 */
  transform-origin:center;              /* 後述のscale用 */

  --fbase: calc(100cqi / 10.8);         /* 基準フォント */
  --fmax: 26px;
}

/* ラベル：必ず中央・太字・折返し幅を割合で制御 */
.circle__label{
  display:block;
  max-inline-size:72%;
  padding-inline: clamp(6px,1.6cqi,12px);
  text-align:center;
  line-height:1.25;
  font-weight:800;
  white-space: normal;
  word-break: break-word;               /* Androidでの連続語対策 */
  font-size: clamp(12px, var(--fbase), var(--fmax));
}

/* デスクトップでは1.2倍 */
@media (min-width:1024px){
  .circle{ --fbase: calc(1.2 * (100cqi / 10.8)); --fmax: 26px; }
}

/* 超狭幅の“詰め”——横3列のまま少し縮める */
@media (max-width:420px){
  .circle-container{ column-gap:clamp(6px,2vw,12px); }
  .circle__label{ max-inline-size:68%; }
  .circle{ --fbase: calc(0.95 * (100cqi / 10.8)); }
}
@media (max-width:380px){
  .circle{ transform: scale(.92); }     /* 見た目だけ一回り小さく */
}
@media (max-width:340px){
  .circle{ transform: scale(.86); }
}

/* Fallback：.circle__label が無いケースでも崩さない */
@supports selector(:has(*)){
  .circle:not(:has(.circle__label)){
    display:grid !important; place-items:center !important; text-align:center;
  }
}

/* 基準にするラッパをコンテナ化 */
.l-container { container-type: inline-size; }

/* 共通：見出しの折り返し最適化 */
@supports (font-size: 1cqi) {
  .l-container h1,
  .l-container h2,
  .l-container h3,
  .l-container h4,
  .l-container h5 {
    text-wrap: balance;
    margin: 0.6em 0 0.4em;
    font-weight: 700;
  }

  /* 級数ごとのサイズ（小さい容器では小さく・広い容器では大きく） */
  .l-container h1 { font-size: clamp(22px, 7.2cqi, 32px); line-height: 1.12; }
  .l-container h2 { font-size: clamp(20px, 5.6cqi, 24px); line-height: 1.14; }
  .l-container h3 { font-size: clamp(18px, 4.2cqi, 20px); line-height: 1.18; }
  .l-container h4 { font-size: clamp(16px, 3.2cqi, 18px); line-height: 1.22; }
  .l-container h5 { font-size: clamp(15px, 2.6cqi, 16px); line-height: 1.26; }

  /* かなり狭い容器ではもう一段コンパクトに（折り返し抑制） */
  @container (max-width: 360px) {
    .l-container h1 { font-size: clamp(20px, 6.2cqi, 28px); }
    .l-container h2 { font-size: clamp(18px, 4.9cqi, 24px); }
    .l-container h3 { font-size: clamp(16px, 3.6cqi, 20px); }
    .l-container h4 { font-size: clamp(15px, 2.9cqi, 18px); }
    .l-container h5 { font-size: clamp(14px, 2.4cqi, 16px); }
  }
}

/* 英語名などを折り返したくない時用 */
.nowrap { white-space: nowrap; }
/* =========================================
   モバイルの左右余白（ページ全体）を広げる
   ========================================= */
@media screen and (max-width: 768px) {
  
  /* 全幅演出ブロック(.full-bg)は余白を無視するため、スマホだけ通常幅に矯正 */
  .full-bg {
    width: 100% !important;
    margin-left: 0 !important;
  }
}
