@charset "UTF-8";

/* h1を視覚的に非表示にする（SEOだけ効かせる） */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* companyIntro全体の背景を透明に */
.companyIntro {
  background: transparent;
  margin: 0;
  padding: 0;
}

/* SEOテキストも非表示（デザインに影響なし） */
.seoText {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* メイン画像 */
.mainVisual {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
}

.mainVisual__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.mainVisual__inner picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mainVisual .mainVisual__inner img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  max-width: none;
  object-fit: cover;

  margin: 0;
}


.top-bousai-banner {
  width: 100%;
  margin: 0 0 20px 0;
}

.top-bousai-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== 初期状態（PCでは非表示） ===== */
.fixed-btn {
  display: none;
}

/* ===== スマホ表示（～768px） ===== */
@media screen and (max-width: 768px) {

  /* ボタン全体（固定配置） */
  .fixed-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 145px;
    height: 145px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  /* 画像部分 */
  .fixed-btn img {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
  }

  /* ホバー時（スマホはほぼ影響なし） */
  .fixed-btn:hover img {
    transform: scale(1.1);
  }

  /* 回転するリング */
  .ring {
    position: absolute;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
      red,
      orange,
      yellow,
      green,
      cyan,
      blue,
      purple,
      red
    );
    animation: spin 3s linear infinite, fadeOut 1s ease forwards 10s;
    z-index: 1;
    opacity: 0.8;
    filter: blur(1px);
    mask: radial-gradient(farthest-side, transparent 60%, black 61%);
    -webkit-mask: radial-gradient(farthest-side, transparent 60%, black 61%);
    top: -5px;
  }

  /* 回転アニメーション */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* 10秒後フェードアウト */
  @keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
  }
}

/* =========================
  タブレット（769px〜1200px）
========================= */
@media screen and (min-width: 769px) and (max-width: 1200px) {

  /* ボタン全体（固定配置） */
  .fixed-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transform: scale(2);
    transform-origin: bottom right;
  }

  /* 画像部分 */
  .fixed-btn img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
  }

  /* ホバー時（スマホはほぼ影響なし） */
  .fixed-btn:hover img {
    transform: scale(1.1);
  }

  /* 回転するリング */
  .ring {
    position: absolute;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: conic-gradient(
      red,
      orange,
      yellow,
      green,
      cyan,
      blue,
      purple,
      red
    );
    animation: spin 3s linear infinite, fadeOut 1s ease forwards 10s;
    z-index: 1;
    opacity: 0.8;
    filter: blur(1px);
    mask: radial-gradient(farthest-side, transparent 60%, black 61%);
    -webkit-mask: radial-gradient(farthest-side, transparent 60%, black 61%);
  }

  /* 回転アニメーション */
  @keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
  }

  /* 10秒後フェードアウト */
  @keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
  }
}

/* 画像の修正ある可能性あり */
.top-category-link--kenki {
  background-image: url("/wp-content/uploads/2026/11/menu_back01_sp.webp");
  background-position: center;
}

.top-category-link--care {
  background-image: url("/wp-content/uploads/2026/11/menu_back02_sp.webp");
  background-position: top right;
}

.top-category-link--hoiku {
  background-image: url("/wp-content/uploads/2026/11/menu_back03_sp.webp");
  background-position: top center;
}

.top-category-link--souko {
  background-image: url("/wp-content/uploads/2026/11/menu_back04_sp.webp");
  background-position: top center;
}

.top-category-link--gensai {
  background-image: url("/wp-content/uploads/2026/11/menu_back05_sp.webp");
  background-position: top left;
}

.notice {
  margin-bottom: 80px;
}

.articleList {
  margin-top: 100px;
}