@charset "utf-8";

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #555;
  background: #fff5d8;
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ======================================
COLOR
====================================== */

:root {
  --bg: #fff5d8; /* サイト全体の背景 */
  --section: #fff; /* カード・セクション */
  --main: #bfe8f6;
  --sub: #e6f7fc;
  --accent: #8fd5ee;
  --text: #555555;
  --border: #e8d9d7;
}

/* ======================================
COMMON
====================================== */

section {
  padding: 100px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title p {
  color: #888;
  letter-spacing: 0.2em;
  font-size: 14px;
}

.section-title h2 {
  font-family: "Zen Maru Gothic", sans-serif;

  font-size: 42px;
  margin-top: 10px;
  color: #555;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 16px 42px;

  background: #f287b2;

  color: #fff;

  border-radius: 100px;

  transition: 0.4s;

  font-weight: 700;
}

.btn:hover {
  background: rgba(133, 235, 255, 0.807);

  transform: translateY(-5px);
}

/*=========================
TOP BUTTON
=========================*/

.to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 100px;
  height: 100px;
  background: #f287b2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: 0.35s;
  z-index: 999;
}

.to-top img {
  display: block;
  width: 88px;
  transition: 0.3s;
}

.to-top:hover img {
  transform: translateY(-4px);
}

.to-top.show {
  opacity: 1;

  visibility: visible;

  transform: translateY(0);
}

.to-top:hover {
  background: rgba(133, 235, 255, 0.807);
  color: #666;
  transform: translateY(-5px);
}

/* ======================================
HEADER
====================================== */

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 999;
  background: #f9c5b8;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.35s ease;
}
header.hide {
  transform: translateY(-100%);
}

header.show {
  transform: translateY(0);
}

.logo img {
  height: 80px;
  border-radius: 20px;
  transition: 0.4s;
}

.logo:hover img {
  transform: translateY(-5px);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 35px;
}

.has-sub {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);

  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;

  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s;
}

.has-sub:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  top: 55px;
}

.sub-menu li {
  width: 100%;
  list-style: none;
}

.sub-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 16px 20px;
  color: #555;
  text-decoration: none;
}

.sub-menu span {
  font-size: 18px;
  opacity: 0.6;
  transition: 0.3s;
}

.sub-menu a:hover span {
  transform: translateX(4px);
  opacity: 1;
}

/* 播磨 */

.sub-menu li:nth-child(1) a {
  background: #bfe8f6;
}

/* 加古川事業所：ピンク */
.sub-menu li:nth-child(2) a {
  background: #f6d6e2;
}

/* 相談支援事業所：クリーム */
.sub-menu li:nth-child(3) a {
  background: #fff5d8;
}
/* Hover */

.sub-menu li:nth-child(1) a:hover {
  background: #8fd5ee;
  color: #fff;
}

.sub-menu li:nth-child(2) a:hover {
  background: #f0abc9;
  color: #fff;
}

.sub-menu li:nth-child(3) a:hover {
  background: #fff5d8;
  color: #fff;
}

nav li {
  font-size: 15px;
}

nav a {
  transition: 0.3s;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #f287b2;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.contact-btn {
  background: #f287b2;
  color: #fff;
  padding: 12px 24px;

  border-radius: 50px;
}

.contact-btn::after {
  display: none;
}

.contact-btn:hover {
  background: rgba(133, 235, 255, 0.807);
  color: #555;
}

.hamburger {
  display: none;
}

/* =========================
Consult Hero
========================= */

.consult-hero {
  position: relative;
  min-height: 700px;
  padding: 150px 8% 100px;
  background: #fff5d8;
  overflow: hidden;
}

.consult-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 70px;
}

/* 左右のコンテンツを前面に */
.consult-hero-text,
.consult-hero-logo {
  position: relative;
  z-index: 1;
}

/* =========================
   左側
========================= */

.consult-hero-text {
  flex: 1;

  position: relative;
  z-index: 2;
}

.consult-hero-label {
  display: inline-block;

  margin-bottom: 25px;
  padding: 8px 24px;

  background: #fce8a8;

  border-radius: 50px;

  color: #756b56;

  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* =========================
   大きな円
========================= */

.consult-main-circle {
  width: 480px;
  height: 400px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;
  background: #fce8a8;

  border-radius: 50%;
  text-align: center;
  box-shadow: 0 15px 35px rgba(100, 80, 50, 0.08);
  opacity: 0;
  transform: scale(0.5);
  animation: mainCircleIn 1s ease forwards;
}

.consult-main-circle p {
  margin: 0;
  color: #665f50;
  font-family: "Yomogi", cursive;
  font-size: 30px;
  line-height: 2.5;
  opacity: 0;
  animation: mainTextIn 0.8s ease forwards;
  animation-delay: 0.8s;
}

.consult-main-circle strong {
  color: #756b56;
  font-weight: 400;
}

/* 円がふわっと出る */

@keyframes mainCircleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 文字が後から出る */

@keyframes mainTextIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   4つの相談項目
========================= */

.consult-topics {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 20px;
  margin-top: 45px;
}

.consult-topic {
  width: 177px;
  height: 135px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 15px;
  border-radius: 50%;
  text-align: center;
  color: #665f50;
  font-family: "Yomogi", cursive;
  font-size: 18px;

  line-height: 1.6;

  box-sizing: border-box;

  opacity: 0;

  transform: scale(0.6) translateY(20px);

  animation: topicIn 0.7s ease forwards;
}

/* パステルカラー */

.topic-1 {
  background: #f7dfe0;
  animation-delay: 1.8s;
}

.topic-2 {
  background: #fce8a8;
  animation-delay: 2.1s;
}

.topic-3 {
  background: #dcefe5;
  animation-delay: 2.4s;
}

.topic-4 {
  background: #f9c5b8;
  animation-delay: 2.7s;
}

@keyframes topicIn {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* =========================
   右側：ロゴ
========================= */

.consult-hero-logo {
  position: relative;
  flex: 0 0 360px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.consult-hero-logo::before {
  content: "";
  position: absolute;

  width: 650px;
  height: 650px;

  left: 50%;
  bottom: -180px;

  transform: translateX(-50%);

  background-image: url("../img/hero-illust.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  opacity: 0.55;

  z-index: 0;
}

.consult-hero-logo img {
  position: relative;
  z-index: 1;

  width: 100%;
  max-width: 620px;
  height: auto;
  object-fit: contain;

  opacity: 0;

  animation:
    logoIn 1.2s ease forwards,
    logoFloat 4s ease-in-out 2s infinite;
}

@keyframes logoIn {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-8deg);
  }

  70% {
    opacity: 1;
    transform: scale(1.05) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes logoFloat {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(3deg) translateY(-6px);
  }

  50% {
    transform: rotate(-3deg) translateY(0);
  }

  75% {
    transform: rotate(2deg) translateY(5px);
  }

  100% {
    transform: rotate(0deg) translateY(0);
  }
}

/* =========================
   相談対応・計画書作成
========================= */

.consultation-section {
  padding: 100px 20px;
  background: #fff5d8;
}

.consultation-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 70px;
  background: #ffffff;
  border-radius: 35px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(180, 150, 130, 0.08);
}

/* タイトル */

.consultation-title {
  margin-bottom: 45px;
}

.section-label {
  display: block;
  margin-bottom: 10px;
  color: #d69b9b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
}

.consultation-title h2 {
  margin: 0;
  color: #5f5653;
  font-size: 32px;
  font-weight: 600;
}

/* 本文 */

.consultation-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  margin-bottom: 40px;
}

/* アイコン */

.consultation-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fce8a8;
  border-radius: 50%;
}

.consultation-icon span {
  color: #8bb7a7;
  font-size: 52px;
}

/* テキスト */

.consultation-text {
  text-align: left;
}

.consultation-text p {
  margin: 0 0 18px;
  color: #655d59;
  font-size: 24px;
  line-height: 2;
}

.consultation-text .consultation-lead {
  margin-bottom: 10px;
  font-size: 26px;
  font-weight: 600;
  color: #5f5653;
}

.consultation-message {
  margin-top: 25px !important;
  margin-bottom: 0 !important;
  color: #c88f8f !important;
  font-size: 18px !important;
  font-weight: 600;
}

/* ボタン */

.consultation-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;

  min-width: 220px;
  padding: 16px 30px;

  background: #fff5d8;
  color: #5f5653;
  border-radius: 50px;

  text-decoration: none;
  font-size: 20px;
  font-weight: 600;

  transition: 0.3s ease;
}

.consultation-button .arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.consultation-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(180, 130, 130, 0.15);
  background: #fce8a8;
}

.consultation-button:hover .arrow {
  transform: translateX(5px);
}

.consultation-free {
  margin: 30px auto;
  padding: 22px 30px;
  max-width: 600px;

  background: #f7eeeb;
  border: 2px solid #eacbca;
  border-radius: 20px;

  text-align: center;
}

.consultation-free p {
  margin: 0;
  color: #5f5653;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 600;
}

.consultation-free p::first-line {
  color: #c88f8f;
}

/*=========================
FOOTER
=========================*/

footer {
  background: #f9c5b8;
  padding: 70px 8% 30px;
  text-align: center;
  border-top: 1px solid #eacbca;
}

/* ロゴ */

.footer-logo img {
  width: 300px;
  margin: 0 auto;
  border-radius: 30px;
  transition: 0.4s;
}

.footer-logo:hover img {
  transform: translateY(-5px);
}

/* 施設名 */

.footer-info p {
  font-size: 1rem;
  color: #666;
  letter-spacing: 0.08em;
  margin-bottom: 35px;
  line-height: 1.8;
}

/* メニュー */

.footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 40px;
}

.footer-menu a {
  display: inline-block;
  padding: 12px 24px;
  background: #faf4e3;
  border-radius: 50px;
  color: #666;
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.footer-menu a:nth-child(1):hover {
  background-color: #7ccfe5;
  color: #fff;
  transform: translateY(-3px);
}

.footer-menu a:nth-child(2):hover {
  background-color: #f0abc9;
  color: #fff;
  transform: translateY(-3px);
}

.footer-menu a:nth-child(3):hover {
  background-color: #fce8a8;
  color: #666;
  transform: translateY(-3px);
}

.footer-menu a:nth-child(4):hover {
  background-color: #f287b2;
  color: #fff;
  transform: translateY(-3px);
}

/* コピーライト */

.copy {
  font-size: 0.8rem;

  color: #999;

  border-top: 1px solid #e8d9d7;

  padding-top: 25px;

  margin-top: 20px;
}

/* =========================
   タブレット
========================= */

@media (max-width: 900px) {
  .consult-hero {
    padding: 150px 20px 80px;
  }

  .consult-hero-inner {
    gap: 40px;
  }

  .consult-main-circle {
    width: 340px;
    height: 340px;
  }

  .consult-main-circle p {
    font-size: 20px;
  }

  .consult-main-circle strong {
    font-size: 26px;
  }

  .consult-topics {
    margin-left: 40px;
    margin-top: -20px;
  }

  .consult-hero-logo {
    flex: 0 0 280px;
  }
}

/* =========================
   スマホ
========================= */

@media (max-width: 768px) {
  header {
    padding: 12px 5%;
  }

  .logo img {
    height: 48px;
    border-radius: 15px;
  }

  /* ハンバーガー */

  .hamburger {
    display: flex;
    width: 48px;
    height: 48px;

    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    background: #fff;
    border-radius: 50%;

    cursor: pointer;

    background: linear-gradient(135deg, #f6d6e2 0%, #fff5d8 50%, #bfe8f6 100%);

    border-radius: 50%;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);

    z-index: 1001;

    transition: 0.3s;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);

    z-index: 1001;
  }

  .hamburger span {
    display: block;

    width: 21px;
    height: 3px;

    border-radius: 10px;

    transition: 0.3s;
  }

  /* 上：ピンク */

  .hamburger span:nth-child(1) {
    background: #f287b2;
  }

  /* 中：ブルー */

  .hamburger span:nth-child(2) {
    background: #7ccfe5;
  }

  /* 下：ピンク */

  .hamburger span:nth-child(3) {
    background: #f287b2;
  }

  /* ホバー */

  .hamburger:hover {
    transform: rotate(5deg) scale(1.05);
  }

  /* ======================================
   OPEN → ×
====================================== */

  .hamburger.active span:nth-child(1) {
    background: #f287b2;

    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    background: #7ccfe5;

    transform: translateY(-8px) rotate(-45deg);
  }
  /* ======================================
     NAV
  ====================================== */

  header nav {
    display: block;

    position: fixed;

    top: 0;
    right: -100%;

    width: 80%;
    max-width: 360px;
    height: 100vh;

    background: #fff;

    padding: 100px 30px 40px;

    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);

    transition: right 0.4s ease;

    z-index: 1000;

    overflow-y: auto;
  }

  /* 開いた状態 */

  header nav.active {
    right: 0;
  }

  /* メインメニュー */

  header nav > ul {
    display: flex;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    width: 100%;

    padding: 0;
    margin: 0;
  }

  header nav > ul > li {
    width: 100%;
    font-size: 16px;
    border-bottom: 1px solid #f287b2;
  }

  header nav > ul > li > a {
    display: block;

    padding: 18px 10px;

    color: #555;
  }

  /* PC用下線を消す */

  header nav a::after {
    display: none;
  }

  /* ======================================
     施設紹介
  ====================================== */

  .has-sub > a {
    display: flex !important;

    justify-content: space-between;
    align-items: center;
  }

  /* サブメニュー */

  .sub-menu {
    position: static !important;

    width: 100% !important;

    display: none !important;

    transform: none !important;

    opacity: 1 !important;
    visibility: visible !important;

    padding: 0 !important;
    margin: 0 0 10px !important;

    box-shadow: none !important;

    border-radius: 15px;

    overflow: hidden;
  }

  /* サブメニューを開いた状態 */

  .has-sub.open .sub-menu {
    display: flex !important;

    flex-direction: column;

    gap: 0;
  }

  .sub-menu li {
    width: 100%;
  }

  .sub-menu a {
    padding: 14px 20px !important;
  }

  /* ======================================
     CONTACT
  ====================================== */

  header nav .contact-btn {
    margin-top: 20px;

    padding: 15px 20px;

    text-align: center;

    color: #fff;
  }

  /* ======================================
     HAMBURGER → ×
  ====================================== */

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .consult-hero h1 {
    font-size: 36px;
  }

  .consultation-section {
    padding: 70px 15px;
  }

  .consultation-inner {
    padding: 45px 25px;
    border-radius: 25px;
  }

  .consultation-title {
    margin-bottom: 35px;
  }

  .consultation-title h2 {
    font-size: 26px;
  }

  .consultation-content {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
  }

  .consultation-icon {
    width: 75px;
    height: 75px;
  }

  .consultation-icon span {
    font-size: 34px;
  }

  .consultation-text {
    text-align: center;
  }

  .consultation-text p {
    font-size: 15px;
    line-height: 1.9;
  }

  .consultation-text .consultation-lead {
    font-size: 18px;
  }

  .consultation-message {
    font-size: 16px !important;
  }

  .consultation-button {
    width: 100%;
    box-sizing: border-box;
  }

  /* hero */

  .consult-hero {
    padding: 70px 20px 70px;
  }

  .consult-hero-inner {
    flex-direction: column;
  }

  /* 左 */

  .consult-hero-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .consult-hero-label {
    margin: 30px;
    font-size: 24px;
  }

  /* メインサークル */

  .consult-main-circle {
    width: 460px;
    height: 300px;
  }

  .consult-main-circle p {
    font-size: 24px;
    line-height: 1.9;
  }

  .consult-main-circle strong {
    font-size: 28px;
  }

  /* 相談内容 */

  .consult-topics {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 360px;
    margin: 30px auto 0;
    gap: 14px;
  }

  .consult-topic {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;

    border-radius: 45px;
    text-align: start;
    font-size: 20px;
    line-height: 1.4;
  }

  /* ロゴ */

  .consult-hero-logo {
    width: 100%;
    flex: none;
  }

  .consult-hero-logo img {
    width: 320px;
  }
}

/* =========================
   小さいスマホ
========================= */

@media (max-width: 480px) {
  .consult-hero {
    padding: 55px 15px 60px;
  }

  .consult-main-circle {
    width: 370px;
    height: 250px;
  }

  .consult-main-circle p {
    font-size: 20px;
  }

  .consult-main-circle strong {
    font-size: 24px;
  }

  .consult-topics {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .consult-topic {
    min-height: auto;
  }

  .topic-1,
  .topic-2,
  .topic-3,
  .topic-4 {
    transform: none;
  }
}
