* {
  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; /* カード・セクション */
  --sub-bg: #f9c5b8; /* アクセント背景 */
  --accent: #f287b2; /* ボタン・見出し */
  --mint: rgba(133, 235, 255, 0.807); /* ホバー・装飾 */
  --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);
}

/* ======================================
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: #fce8a8;
  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;
}

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

/* ---------- Hero ---------- */

.sub-hero {
  padding: 180px 8% 20px;
  background: #fff5d8;
}

.sub-hero-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* タイトル */

.hero-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  margin-bottom: 15px;
}

.hero-title img {
  width: 55px;
  height: auto;
}

.hero-title h1 {
  font-size: 48px;
  color: #666;
  font-family: "Zen Maru Gothic", sans-serif;
  margin: 0;
}

/* 英字 */

.sub-hero-text span {
  display: block;
  color: #b89999;
  letter-spacing: 0.2em;
  font-size: 1rem;
  margin-bottom: 30px;
}

/* 説明文 */

.sub-hero-text p {
  color: #777;
  line-height: 2;
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* ---------- 共通 ---------- */

.tel-contact,
.office-time,
.mail-contact {
  padding: 88px 8%;
  background: #fff5d8;
}

.lead {
  text-align: center;
  line-height: 2;
  color: #666;
  margin: 30px auto 60px;
}

/*=========================
受付時間
=========================*/

.office-time table {
  width: 100%;
  max-width: 700px;
  margin: auto;
  border-collapse: collapse;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.office-time th {
  width: 100px;
  background: #f287b2;
  color: #fff;
  padding: 22px;
  border-bottom: 1px solid #eee;
}

.office-time td {
  padding: 22px;
  color: #777;
  border-bottom: 1px solid #eee;
  font-size: 20px;
}

.office-time tr:last-child th,
.office-time tr:last-child td {
  border: none;
}

/*=========================
電話
=========================*/

.tel-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.tel-card-h {
  background: #fff;
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0.6, 0.6, 0.8, 0.08);
  transition: 0.35s;
  background-color: #bfe8f6;
}

.tel-card-h:hover {
  transform: translateY(-8px);
}
.tel-card-k {
  background: #fff;
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0.4, 0.4, 0.8, 0.06);
  transition: 0.35s;
  background-color: #f6d6e2;
}

.tel-card-k:hover {
  transform: translateY(-8px);
}

.tel-card {
  background: #fff;
  border-radius: 30px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 1, 0.189);
  transition: 0.35s;
  background-color: #fff5d8;
}

.tel-card:hover {
  transform: translateY(-8px);
}

.tel-card-h h3,
.tel-card-k h3,
.tel-card h3 {
  font-size: 32px;
  color: #666;
  margin-bottom: 25px;
  font-family: "Zen Maru Gothic", sans-serif;
}

.tel-number {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: #88bdbd;
  text-decoration: none;
  margin-bottom: 25px;
  transition: 0.3s;
}

.tel-number:hover {
  color: #7cd8ff;
}

.tel-number-k {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: #e5a8a8;
  text-decoration: none;
  margin-bottom: 25px;
  transition: 0.3s;
}

.tel-number-k:hover {
  color: #f287b2;
}

.tel-number-s {
  display: block;
  font-size: 34px;
  font-weight: bold;
  color: #fce8a8;
  text-decoration: none;
  margin-bottom: 25px;
  transition: 0.3s;

  line-height: 1.9;
}

.tel-number-s span {
  display: block;
}

.tel-number-s:hover {
  color: #dab04e;
}

.tel-card p {
  color: #777;

  line-height: 2;
}

/*=========================
フォーム
=========================*/

.mail-contact form {
  max-width: 800px;
  margin: 50px auto 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mail-contact input,
.mail-contact textarea {
  width: 100%;
  padding: 18px 25px;
  border: none;
  border-radius: 20px;
  background: #fff;
  font-size: 16px;
  color: #666;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.mail-contact textarea {
  min-height: 220px;
  resize: vertical;
}

.mail-contact input:focus,
.mail-contact textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px #7cd8ff;
}

.mail-contact button {
  width: 240px;
  margin: 20px auto 0;
  padding: 18px;
  border: none;
  border-radius: 50px;
  background: #f287b2;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.mail-contact button:hover {
  background: #7cd8ff;
  color: #666;
  transform: translateY(-3px);
}

/*=========================
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: 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);
  }
  .hero-title {
    gap: 15px;
  }

  .hero-title img {
    width: 40px;
  }

  .hero-title h1 {
    font-size: 34px;
  }

  .section-title h2 {
    font-size: 30px;
  }

  .tel-wrap {
    grid-template-columns: 1fr;
  }

  .tel-card {
    padding: 40px 25px;
  }

  .tel-card h3 {
    font-size: 26px;
  }

  .tel-number,
  .tel-number-k,
  .tel-number-s {
    font-size: 29px;
  }
  .tel-number-s a {
    display: block;
    color: inherit;
    text-decoration: none;
  }
  .office-time th,
  .office-time td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .office-time th {
    border-bottom: none;
  }

  .mail-contact button {
    width: 100%;
  }
}
