/* ========================================
   にじいろ訪問看護ステーション高槻 共通CSS
   ======================================== */

/* カラー変数定義 */
:root {
  --primary-blue: #4A90E2;
  --light-blue: #87CEEB;
  --sky-blue: #E3F2FD;
  --accent-blue: #64B5F6;
  --dark-blue: #2196F3;
  --white: #FFFFFF;
  --text-dark: #333333;
  --text-gray: #666666;
  --border-color: #E0E0E0;
  --header-height: 120px;
}

/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'M PLUS Rounded 1c', 'Noto Sans JP', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul, ol {
  list-style: none;
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヘッダー */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ページトップでの半透明ヘッダー */
.header.header-transparent {
  background-color: transparent;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.header-transparent .header-top-area {
  background-color: rgba(255, 255, 255, 0.3);
  border-bottom-color: rgba(224, 224, 224, 0.2);
}

.header.header-transparent .header-nav {
  background-color: rgba(74, 144, 226, 0.4);
}

.header-top-area {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.header-top-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-logo a {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.header-logo-img {
  width: 60px;
  height: 60px;
  background-color: var(--sky-blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--primary-blue);
}

.header-logo-text {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--text-gray);
}

.header-info {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header-info-label {
  font-size: 0.75rem;
  color: var(--text-gray);
}

.header-info-value {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-dark);
  line-height: 1.4;
}

.header-phone-number .header-info-value {
  font-size: 0.95rem;
  color: var(--primary-blue);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-phone-number .header-info-value:hover {
  opacity: 0.7;
}

/* ナビゲーション */
.header-nav {
  background-color: var(--primary-blue);
  transition: background-color 0.3s ease;
}

.header-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.nav-list {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
}

.nav-item {
  flex: 1;
  text-align: center;
}

.nav-item a {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  padding: 18px 20px;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.nav-item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--white);
  opacity: 1;
}

.nav-item.active a {
  background-color: rgba(255, 255, 255, 0.15);
  border-bottom-color: var(--white);
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* メインコンテンツ */
main {
  margin-top: 120px;
  min-height: calc(100vh - 120px);
}

@media (max-width: 768px) {
  main {
    margin-top: 0;
    padding-top: 10px;
  }
}

/* セクション共通スタイル */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-blue), var(--light-blue));
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-gray);
  font-size: 1rem;
  margin-bottom: 50px;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
  opacity: 1;
}

.btn-secondary {
  background-color: var(--accent-blue);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(100, 181, 246, 0.4);
  opacity: 1;
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  opacity: 1;
}

/* カード */
.card {
  background-color: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img {
  width: 100%;
  height: 200px;
  background-color: var(--sky-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* フッター */
.footer {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-section ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.footer-contact-item img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.footer-hours {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-hours p {
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.95);
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-social a:hover {
  background-color: var(--white);
  color: var(--primary-blue);
  opacity: 1;
}

.footer-nav {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-menu ul li a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-menu ul li a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ページトップボタン */
.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
}

.page-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
}

/* アニメーション効果 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ブレークポイント別改行制御 */
.br-pc {
  display: inline;
}

.br-sp {
  display: none;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  /* ブレークポイント別改行制御（SP版） */
  .br-pc {
    display: none;
  }

  .br-sp {
    display: inline;
  }

  :root {
    --header-height: auto;
  }

  .header-top-inner {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
  }

  .header-logo-text {
    font-size: 0.9rem;
    max-width: 250px;
  }

  .header-info {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .header-nav.active {
    display: block;
  }

  .header-nav-inner {
    padding: 0;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .nav-item a {
    padding: 20px;
  }

  .hamburger {
    display: flex;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-menu ul {
    flex-direction: column;
    gap: 12px;
  }

  .page-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .header-inner {
    padding: 0 15px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
}
