@charset "utf-8";

:root {
  --main-blue: #0066A2;
  --sub-blue: #0095D9;
  --light-blue-bg: #F2F8FC;
  --text-dark: #333;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Yu Gothic", "游ゴシック体", "Meiryo", sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: #fff;
}

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

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

ul {
  list-style: none;
}

.main {
  overflow-x: hidden;
}

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}

.blue-txt {
color: #0083c7;
}

/* ハンバーガー */
.hamburger {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #0066A2;
  border-radius: 2px;
  transition: 0.3s;
}

/* スマホ表示 */
@media (max-width: 768px) {
  .hamburger {
    position: absolute;
    top: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
  }

  .global-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 70%;
    height: calc(100% - 64px);
    background: #fff;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    padding: 20px;
  }

  .global-nav.open {
    right: 0;
  }

  .global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  /* ハンバーガー開閉アニメ */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* ============================
見出し
============================ */
.section-title {
  color: var(--main-blue);
}


/* ヘッダー */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

@media (max-width: 768px) {
  .header-inner {
  height: 80px;
}

  }

.logo a {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--main-blue);
}
.logo-img{
   width: 100%;
  height: auto;
  max-width: 400px;
}

@media (max-width: 1000px) {
.logo{  margin-right: 50px;}
.logo-img  {
    max-width: 280px;
}
}

.global-nav ul {
  display: flex;
  gap: 20px;
}

.global-nav a {
  font-size: 0.9rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.global-nav a:hover {
  border-bottom-color: var(--main-blue);
}

/* ヒーローエリア */

.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  background-image: url("https://images.unsplash.com/photo-1530053969600-caed2596d242?q=80&w=2148&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D"); /* ここを差し替え */
  background-size: cover;
  background-position: center;
  margin-top: 100px; /* 固定ヘッダーの分だけ下げる */
  color: #fff;
}


@media (max-width: 768px) {
  .hero {  margin-top: 80px; /* 固定ヘッダーの分だけ下げる */}
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0, 131, 199, 0.65), rgba(0, 0, 0, 0.35));
}

.hero-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.hero-text {
  font-size: 1rem;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ボタン */

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--sub-blue);
  color: #fff;
}

.btn-primary:hover {
  background-color: #007bbf;
  transform: scale(1.03);
}

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

.btn-outline:hover {
  background-color: var(--sub-blue);
  color: #fff;
  transform: scale(1.03);
}


/* 共通セクション */

.section {
  padding: 60px 0;
}

.section:nth-of-type(odd) {
  background-color: var(--light-blue-bg);
}

.section:nth-of-type(odd) {
  background-color: #f7fbff;
}

.section-title {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 24px;
  color: #0083c7;
}

.section-lead {
  text-align: center;
  font-size: 0.98rem;
}

/* 特徴 */

.section-features .features-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-item {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.material-symbols-outlined.feature-icon {
  font-size: 48px;
  color: #0066A2; /* 高田眼科カラーに寄せた青 */
  margin-bottom: 10px;
}


/* 診療内容 */


.section-services .services-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.service-card h3 {
  font-size: 1.1rem;
  margin: 14px 16px 6px;
  text-align: center;
}

.service-card p {
  font-size: 0.9rem;
  margin: 0 16px 16px;
}

.bc_blue{
  background-color:#0083c7;
  color: #fff;
}
.services-grid2 {
    margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;

}

@media (max-width: 768px) {
.services-grid2 {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
}

/*求人*/
.section-recruit .recruit-wrapper {
  max-width: 800px;
  margin: 20px auto 0;
}

.recruit-accordion {
 max-width: 800px;
  width: 90%;
  margin: 30px auto;
}

.recruit-accordion-item {
  margin-bottom: 20px;
  border-radius: 6px;
  overflow: hidden;
}

.recruit-accordion-header {
  background: #0083c7;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: 0.3s;
  border-radius: 6px;
    font-size: 1.2em;
}

.recruit-accordion-header:hover {
  background: white;
  color: #0083c7;
  box-shadow: inset 0 0 0 1px #0083c7;
}

.recruit-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: 0.3s ease;
}

/* 開いたとき矢印を反転 */
.recruit-accordion-item.active .recruit-arrow {
  transform: rotate(-135deg);
}

.recruit-accordion-content {
  background: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.recruit-accordion-content-inner {
  padding:20px 10px;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-table th,
.recruit-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.recruit-table th {
  background: #f7fbff;
  width: 35%;
  text-align: center;
   vertical-align: middle;
}
.recruit-accordion td {
  width: 65%;
}

.recruit-table2{
  margin-top: 20px;
}
.recruit-table2 th{

   background: #fff !important;
}

  @media (max-width: 768px) {
.recruit-accordion {
 max-width: 800px;
  width: 100%;
}

  .recruit-table th,
  .recruit-table td {
    display: block;
    width: 100%;
  }

  .recruit-table td {
    border-top: none;
  }

}

/* お知らせ */

.section-news .news-list {
  max-width: 700px;
  margin: 20px auto 0;
  border-top: 1px solid #ddd;
}

.news-list li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.92rem;
}

.news-date {
  color: #777;
  white-space: nowrap;
}

.news-list a {
  color: #333;
}

.news-list a:hover {
  color: #0083c7;
}

/*当院について*/

.about-box-flx{
  display: flex;
  justify-content: space-between;
}
.about-card {
  background-color: #fff;
  padding: 50px 30px;
  margin-bottom: 20px;
  color: #0083c7;
  border:1px solid #0083c7;
  border-radius: 10px;
}
.w48{  width: 49%;}

.about-card2 {
  background-color: #0083c7;
  padding: 50px 30px;
  margin-bottom: 20px;
width: 100%;
color: #fff;
}
.about-h3 {
    color: #0083c7;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}
.about-h3_2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 30px;
    text-align: center;
}
.about-h3::before,.about-h3_2::before  {
    content: "●";
  margin-right: 5px;
  color: inherit;
}
.about-txt {
  text-align: center;
  font-size: 1.1em;
}
.about-ul{
  width: 50%;
  margin: auto;
   font-size: 1.1em;
}

@media (max-width: 768px) {
.about-box-flx{
  display: block;
}
.about-card {
  background-color: #fff;
  padding: 20px;
  width: 100%;
  margin-bottom: 20px;
}
.about-card2 {
  background-color: #0083c7;
  padding: 20px;
width: 100%;
color: #fff;
margin-bottom: 0;
}
.about-h3,.about-h3_2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}
.about-txt {
  font-size: 1em;
}
.about-ul{
  width: 100%;
   font-size: 1em;
}
}

/* 院長紹介 */

.section-doctor .doctor-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.doctor-photo {
  flex: 0 0 260px;
  height: 260px;
  background-color: #e6f1fb;
  border-radius: 16px;
  background-image: url("../images/doctor.png"); /* 差し替え */
  background-size: cover;
  background-position: center;
}

.doctor-profile {
  flex: 1;
  min-width: 260px;
}

@media (max-width: 768px) {
.doctor-profile {
width: 100%;
}
}

.doctor-name {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.doctor-p_mt20{
  margin-top: 20px;
}
@media (max-width: 768px) {
.doctor-sp_mt50{
  margin-top: 50px;
}
  }
.doctor-history-sec{
  width: 100%;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 768px) {
.doctor-history-sec{
 display: block;
}
  }

.doctor-history-sec-waku_l,.doctor-history-sec-waku_r{
  background: #fff;
  padding: 30px;
}
.doctor-history-sec-waku_l{
margin-top: 20px; width: 60%;}

.doctor-history-sec-waku_r{
margin-top: 20px; width: 35%;}

@media (max-width: 768px) {
.doctor-history-sec-waku_l,.doctor-history-sec-waku_r{
width: 100%;
}
}

.doctor-history-ttl{
  font-size :1.2rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #0083c7;

}

.career-item .institution {
  margin-left: 10px;
}
 .career-item .year{
   display: inline-block;
  width: 80px;
}

@media (max-width: 768px) {
  .career-item .institution, .career-item .year{
 display: block;
}
  }

@media (max-width: 768px) {
  .doctor-inner {
    flex-direction: column; /* 縦並びにする */
  }

  .doctor-photo {
    width: 100%;        /* 横幅いっぱい */
    height: 300px;      /* 高さはお好みで調整 */
    flex: none;         /* 固定幅を解除 */
    border-radius: 12px;
  }
}

/* アクセス・診療時間 */

.section-access .access-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.access-info {
  flex: 1;
  min-width: 260px;
}

.access-subtitle {
  font-size: 1.1rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.time-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.time-table th,
.time-table td {
  border: 1px solid #ccc;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.85rem;
}

.time-table thead th {
  background-color: #e6f1fb;
}

.time-table tbody th {
  background-color: #f4f7fb;
  font-weight: 600;
}

.access-uketsuke-text {
  margin-top: 20px;
}

.access-note {
  font-size: 0.85rem;
  color: #777;
  margin-top: 20px;
}

.access-map {
  flex: 1;
  min-width: 260px;
}

.access-map iframe{
  width: 100%;
}
.map-dummy {
  width: 100%;
  height: 260px;
  background-color: #ddd;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
}

/* フッター */

.site-footer {
  background-color: #003a5f;
  color: #fff;
  padding: 20px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.footer-logo {
  font-weight: 600;
}

.footer-copy {
  font-size: 0.8rem;
}

/* ============================
アニメーション初期状態
============================ */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

/* 表示されたとき */
.animate.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================
バリエーション
============================ */

/* 下からフェードアップ */
.fade-up {
  transform: translateY(30px);
}
.fade-up.show {
  transform: translateY(0);
}

/* 左から */
.fade-left {
  transform: translateX(-40px);
}
.fade-left.show {
  transform: translateX(0);
}

/* 右から */
.fade-right {
  transform: translateX(40px);
}
.fade-right.show {
  transform: translateX(0);
}

/* 遅延 */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

/* ============================
1文字ずつフェードイン
============================ */
.hero-title span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  animation: fadeChar 0.6s ease forwards;
}

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

/* レスポンシブ */

@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .header-inner {
    justify-content: center;
  }

  .section {
    padding: 48px 0;
  }
}

/* ============================
トップへ戻るボタン
============================ */
.pagetop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  background: #0066A2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  z-index: 9999;
}

/* フッターに近づいたら上に押し上げる */
.pagetop.stop {
  position: absolute;
}

.pagetop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pagetop:hover {
  background: #0083d4;
  transform: translateY(-4px);
}

.pagetop .material-symbols-outlined {
  font-size: 32px;
}

/* ============================
PC用 右上予約ボタン
============================ */
.pc-reserve {
  display: inline-block;
  padding: 10px 20px;
  background: #0095D9;
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  margin-left: 20px;
  transition: 0.3s;
}

.pc-reserve:hover {
  background: #007bbf;
}

/* ============================
スマホ用 下部固定ボタン（初期は非表示）
============================ */
.sp-reserve {
  display: none;
}

/* ============================
画面幅が狭くなったら切り替え
============================ */
@media (max-width: 1024px) {
  /* PC右上ボタンを非表示 */
  .pc-reserve {
    display: none;
  }

  /* 下部固定ボタンを表示 */
  .sp-reserve {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0095D9;
    color: #fff;
    text-align: center;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.15);
  }

  .sp-reserve:hover {
    background: #007bbf;
  }
}
