/*

TemplateMo f-hoyouin

*/



@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Regular.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Light.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-SemiBold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis/Metropolis-Bold.woff2') format('woff2'),
        url('../fonts/Metropolis/Metropolis-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/*---------------------------------------
  CUSTOM PROPERTIES ( VARIABLES )             
-----------------------------------------*/
:root {
  --white-color:                  #ffffff;
  --primary-color:                #5bc1ac;
  --secondary-color:              #5a6f80;
  --section-bg-color:             #f0f8ff;
  --site-footer-bg-color:         #44525d;
  --custom-btn-bg-color:          #597081;
  --custom-btn-bg-hover-color:    #5bc1ac;
  --dark-color:                   #000000;
  --p-color:                      #333333;
  --border-color:                 #e9eaeb;

  --body-font-family:             'Metropolis', sans-serif;

  --h1-font-size:                 52px;
  --h2-font-size:                 46px;
  --h3-font-size:                 32px;
  --h4-font-size:                 28px;
  --h5-font-size:                 24px;
  --h6-font-size:                 18px;
  --p-font-size:                  16px;
  --btn-font-size:                18px;
  --copyright-font-size:          14px;

  --border-radius-large:          100px;
  --border-radius-medium:         20px;
  --border-radius-small:          10px;

  --font-weight-light:            300;
  --font-weight-normal:           400;
  --font-weight-semibold:         600;
  --font-weight-bold:             700;
}

body {
  background-color: var(--white-color);
  font-family: var(--body-font-family); 
}


/*---------------------------------------
  TYPOGRAPHY               
-----------------------------------------*/

h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  letter-spacing: -1px;
}

h1 {
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  letter-spacing: -2px;
}

h2 {
  color: var(--secondary-color);
  font-size: var(--h2-font-size);
  letter-spacing: -2px;
}

h3 {
  font-size: var(--h3-font-size);
}

h4 {
  font-size: var(--h4-font-size);
}

h5 {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
}

h6 {
  font-size: var(--h6-font-size);
}

p {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-light);
}

ul li {
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-normal);
}

a, 
button {
  touch-action: manipulation;
  transition: all 0.3s;
}

a {
  color: var(--p-color);
  text-decoration: none;
}

a:hover {
  color: var(--primary-color);
}

b,
strong {
  font-weight: var(--font-weight-bold);
}

html {
  scroll-behavior: smooth;
}

/* 固定ヘッダー分のズレ解消 */
section {
  scroll-margin-top: 80px; /* ← ヘッダーの高さ */
}

/*---------------------------------------
  SECTION               
-----------------------------------------*/
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-bg {
  background-color: var(--section-bg-color);
}

.section-overlay {
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.section-overlay + .container {
  position: relative;
}


/*---------------------------------------
  CUSTOM BLOCK               
-----------------------------------------*/
.custom-block-wrap {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  transition: all 0.5s;
}

.custom-block-wrap:hover {
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.custom-block-body {
  padding: 30px;
}

.custom-block-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-block .custom-btn {
  border-radius: 0;
  display: block;
}


/*---------------------------------------
  PROGRESS BAR               
-----------------------------------------*/
.progress {
  background: var(--border-color);
  height: 5px;
}

.progress-bar {
  background: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM ICON COLOR               
-----------------------------------------*/
.custom-icon {
  color: var(--secondary-color);
}


/*---------------------------------------
  CUSTOM LIST               
-----------------------------------------*/
.custom-list {
  margin-bottom: 0;
  padding-left: 0;
}

.custom-list-item {
  list-style: none;
  margin-top: 10px;
  margin-bottom: 10px;
}


/*---------------------------------------
  CUSTOM TEXT BOX               
-----------------------------------------*/
.custom-text-box {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  margin-bottom: 24px;
  padding: 40px;
}

.custom-text-box-image {
  border-radius: var(--border-radius-medium);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-text-box-icon {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--secondary-color);
  font-size: var(--h6-font-size);
  text-align: center;
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 25px;
  line-height: 30px;
}


/*---------------------------------------
  AVATAR IMAGE - TESTIMONIAL, AUTHOR               
-----------------------------------------*/
.avatar-image {
  border-radius: var(--border-radius-large);
  width: 65px;
  height: 65px;
  object-fit: cover;
}


/*---------------------------------------
  CUSTOM BUTTON               
-----------------------------------------*/
.custom-btn {
  background: var(--secondary-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--btn-font-size);
  font-weight: var(--font-weight-normal);
  line-height: normal;
  padding: 15px 25px;
}

.navbar-expand-lg .navbar-nav .nav-link.custom-btn {
  color: var(--custom-btn-bg-color);
  margin-top: 8px;
  padding: 12px 25px;
}

.custom-btn:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

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

.navbar-expand-lg .navbar-nav .nav-link.custom-btn:hover,
.custom-border-btn:hover {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
  color: var(--white-color);
}


/*---------------------------------------
  NAVIGATION              
-----------------------------------------*/
.navbar {
  background: var(--white-color);
  z-index: 9;
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand {
  color: var(--primary-color);
  font-size: var(--h6-font-size);
  font-weight: var(--font-weight-bold);
}

.navbar-brand span {
  display: inline-block;
  vertical-align: middle;
}

.navbar-brand small {
  color: var(--secondary-color);
  display: block;
  font-size: 10px;
  line-height: normal;
  text-transform: uppercase;
}

.logo {
  width: 50px;
  height: auto;
}

.navbar-expand-lg .navbar-nav .nav-link {
  margin-right: 0;
  margin-left: 0;
  padding: 20px;
}

.navbar-nav .nav-link {
  display: inline-block;
  color: var(--p-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar-nav .nav-link.active, 
.navbar-nav .nav-link:hover {
  background: transparent;
  color: var(--primary-color);
}

.dropdown-menu {
  background: var(--white-color);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
  border: 0;
  max-width: 50px;
  padding: 0;
  margin-top: 20px;
}

.dropdown-item {
  display: inline-block;
  color: var(--p-bg-color);
  font-size: var(--menu-font-size);
  font-weight: var(--font-weight-medium);
  position: relative;
  padding-top: 10px;
  padding-bottom: 10px;
}

.dropdown-menu li:last-child .dropdown-item {
  padding-top: 0;
}

.dropdown-item.active, 
.dropdown-item:active,
.dropdown-item:focus, 
.dropdown-item:hover {
  background: transparent;
  color: var(--primary-color);
}

.dropdown-toggle::after {
  content: "\f282";
  display: inline-block;
  font-family: bootstrap-icons !important;
  font-size: var(--copyright-font-size);
  font-style: normal;
  font-weight: normal !important;
  font-variant: normal;
  text-transform: none;
  line-height: 1;
  vertical-align: -.125em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  left: 2px;
  border: 0;
}

@media screen and (min-width: 992px) {
  .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.navbar-toggler {
  border: 0;
  padding: 0;
  cursor: pointer;
  margin: 0;
  width: 30px;
  height: 35px;
  outline: none;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before,
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease;
  transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:before {
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon:after {
  transform: rotate(-45deg);
}

.navbar-toggler .navbar-toggler-icon {
  background: var(--dark-color);
  transition: background 10ms 300ms ease;
  display: block;
  width: 30px;
  height: 2px;
  position: relative;
}

.navbar-toggler .navbar-toggler-icon:before,
.navbar-toggler .navbar-toggler-icon:after {
  transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease;
  transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
  position: absolute;
  right: 0;
  left: 0;
  background: var(--dark-color);
  width: 30px;
  height: 2px;
  content: '';
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -8px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 8px;
}


/*---------------------------------------
  SITE HEADER              
-----------------------------------------*/
.site-header {
  background: var(--primary-color);
  padding-top: 15px;
  padding-bottom: 10px;
}

.site-header p,
.site-header p a,
.site-header .social-icon-link {
  color: var(--white-color);
  font-size: var(--copyright-font-size);
}

.site-header .social-icon {
  text-align: right;
}

.site-header .social-icon-link {
  background: transparent;
  width: inherit;
  height: inherit;
  line-height: inherit;
  margin-right: 15px;
}


/*---------------------------------------
  HERO & HERO SLIDE         
-----------------------------------------*/
.hero-section-full-height {
  height: 60vh;
  min-height: 300px;
  position: relative;
}


.carousel:hover .carousel-control-next-icon, 
.carousel:hover .carousel-control-prev-icon {
  opacity: 1;
}

#hero-slide .carousel-item {
  height: 60vh;
  min-height: 300px;
}


/* =========================================
   HERO キャプション（完成版）
========================================= */

#hero-slide .carousel-caption {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;

  width: 50%;
  min-width: 540px;
  height: 100%;

  padding: 0 80px 60px 80px;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;

  text-align: right;
  color: var(--secondary-color);

  background: transparent;
  z-index: 2;
}

/* 白三角 */
#hero-slide .carousel-caption::before {
  content: "";
  position: absolute;
  inset: 0;

  background: var(--white-color);
  clip-path: polygon(100% 100%, 100% 65%, 0 100%);

  z-index: -1;
}

/* 余白リセット */
#hero-slide .carousel-caption p,
#hero-slide .carousel-caption h2 {
  margin: 0;
}

/* 最終行だけ幅固定 */
#hero-slide .carousel-caption p:last-of-type {
  display: inline-block;
  width: 22em;
  text-align: right;
}


.carousel-image {
  display: block;
  width: 100%;
  height: 60vh;
  min-height: 300px;
  object-fit: cover;
}

#hero-slide .carousel-indicators-wrap {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
}

#hero-slide .carousel-indicators {
  margin-right: 0;
  margin-left: 22px;
  justify-content: inherit;
}

.carousel-control-next, 
.carousel-control-prev {
  opacity: 1;
}

.carousel-control-next-icon, 
.carousel-control-prev-icon {
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-large);
  background-size: 60% 60%;
  width: 80px;
  height: 80px;
  opacity: 0;
  transition: all 0.5s;
}

.carousel-control-next-icon:hover, 
.carousel-control-prev-icon:hover {
  background-color: var(--primary-color);
}

@media screen and (max-width: 768px) {
  #hero-slide .carousel-caption {
    min-width: 100%;
    height: 100%;
    padding: 60px 30px;
    clip-path: none; /* スマホでは斜めカット外す */
  }
}



/*---------------------------------------
  FEATURE BLOCK              
-----------------------------------------*/
.featured-block {
  text-align: center;
  transition: all 0.5s ease;
  min-height: 256px;
  padding: 15px;
}

.featured-block:hover {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.featured-block:hover .featured-block-image {
  transform: scale(0.75);
}

.featured-block-image {
  display: block;
  margin: auto;
  transition: all 0.5s;
}

.featured-block:hover .featured-block-text {
  margin-top: 0;
}

.featured-block-text {
  color: var(--primary-color);
  font-size: var(--h5-font-size);
  margin-top: 20px;
  transition: all 0.5s;
}


/*---------------------------------------
  ABOUT              
-----------------------------------------*/
.about-section {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.about-image {
  border-radius: var(--border-radius-medium);
  display: block;
  width: 350px;
  height: 400px;
  object-fit: cover;
}

.custom-text-block {
  padding: 60px 40px;
}


/*---------------------------------------
  COUNTER NUMBERS              
-----------------------------------------*/
.counter-thumb {
  margin: 20px;
  margin-bottom: 0;
}

.counter-number,
.counter-text {
  color: var(--secondary-color);
  display: block;
}

.counter-number,
.counter-number-text {
  color: var(--primary-color);
  font-size: var(--h1-font-size);
  font-weight: var(--font-weight-bold);
  line-height: normal;
}


/*---------------------------------------
  recruit              
-----------------------------------------*/
.recruit-section {
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

.recruit-section::after {
  content: "";
  background: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  bottom: -110px;
  right: -80px;
  width: 350px;
  height: 350px;
}

.recruit-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  padding: 50px;
}

.recruit-image {
  border-radius: 100%;
  display: block;
  margin: auto;
  width: 300px;
  height: 300px;
  object-fit: cover;
}

.recruit-section .custom-block-body {
  max-width: 440px;
  margin: 0 auto;
}

.recruit-section .custom-block-body p {
  line-height: 1.7;
}


/*---------------------------------------
  DONATE              
-----------------------------------------*/
.donate-section {
  background-image: url('../images/folwer.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
}

.donate-form {
  background: var(--white-color);
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  padding: 50px;
}


/*---------------------------------------
  CONSULTATION         
-----------------------------------------*/
.consultation-detail-header-section {
  background-image: url('../images/news/Medical-services.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  position: relative;
  padding-top: 150px;
  padding-bottom: 150px;
}

.consultation-block-top {
  border-radius: var(--border-radius-medium);
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.consultation-block-two-col-image-wrap {
  border-radius: var(--border-radius-small);
  position: relative;
  overflow: hidden;
  width: 150px;
  margin-right: 20px;
}

.consultation-category-block {
  background: var(--secondary-color);
  position: absolute;
  color: #ffffff;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 10px 20px;
}

.consultation-category-block .category-block-link {
  color: var(--white-color);
  margin-right: 10px;
}

.consultation-block-info {
  padding-top: 10px;
  padding-bottom: 10px;
}

.consultation-block-title-link {
  color: var(--dark-color);
}

.consultation-detail-image {
  display: block;
  border-radius: var(--border-radius-medium);
}

blockquote {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  font-size: var(--h5-font-size);
  font-weight: var(--font-weight-semibold);
  color: var(--site-footer-bg-color);
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 90px 50px 50px 50px;
  text-align: center;
}

blockquote::before {
  content: "“";
  color: var(--custom-btn-bg-color);
  font-size: 100px;
  line-height: 1rem;
  display: block;
}

.author-comment-link {
  font-size: var(--copyright-font-size);
  font-weight: var(--font-weight-semibold);
}

.search-form {
  margin-top: 20px;
}

.category-block,
.subscribe-form {
  margin-top: 40px;
  margin-bottom: 40px;
}

.category-block-link {
  font-size: var(--copyright-font-size);
  margin-top: 5px;
  margin-bottom: 5px;
}

.category-block-link:hover {
  color: var(--primary-color);
}

.badge {
  background: var(--secondary-color);
  border-radius: var(--border-radius-medium);
  font-weight: var(--font-weight-normal);
  line-height: normal;
  padding-bottom: 2px;
}

.tags-block-link {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-medium);
  display: inline-block;
  font-size: var(--copyright-font-size);
  line-height: normal;
  margin-right: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  padding: 8px 15px;
}

.tags-block-link:hover {
  border-color: var(--dark-color);
  color: var(--dark-color);
}

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: -100px;
  left: -30px;
  margin: auto;
  width: 200px;
  height: 200px;
}

.cta-section::after {
  content: "";
  border: 20px solid var(--custom-btn-bg-color);
  border-radius: 50%;
  position: absolute;
  bottom: -100px;
  right: 0;
  left: 0;
  margin: auto;
  width: 150px;
  height: 150px;
}

/*---------------------------------------
  CONTACT               
-----------------------------------------*/
.contact-section {
  background: var(--white-color);
}

.contact-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  padding: 40px;
}

.contact-info-wrap {
  padding-top: 40px;
}

.contact-image-wrap {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 20px;
  margin-bottom: 30px;
  padding-bottom: 30px;
  width: 100%;
}


/*---------------------------------------
  CUSTOM FORM               
-----------------------------------------*/
.custom-form .form-control,
.input-group-file {
  background-color: var(--section-bg-color);
  box-shadow: none;
  border: 0;
  color: var(--p-color);
  margin-bottom: 24px;
  padding-top: 13px;
  padding-bottom: 13px;
  outline: none;
}

.custom-form .form-control:hover,
.custom-form .form-control:focus {
  border-color: var(--secondary-color);
}

.custom-form label {
  margin-bottom: 10px;
}

.custom-form .form-check-group {
  margin-bottom: 20px;
}

.donate-form .form-check-group-donation-frequency {
  padding-right: 0;
}

.form-check-group-donation-frequency + .form-check-group-donation-frequency {
  padding-right: 12px;
  padding-left: 0;
}

.form-check-group-donation-frequency .form-check-label {
  font-weight: var(--font-weight-semibold);
}

#DonationFrequencyOne {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#DonationFrequencyMonthly {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.custom-form .form-check-radio {
  position: relative;
  height: 100%;
  padding-left: 0;
}

.custom-form .input-group-text {
  background: var(--secondary-color);
  border: 0;
  color: var(--white-color);
}

.custom-form .form-check-radio .form-check-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.form-check-radio .form-check-input[type=radio] {
  background-color: var(--section-bg-color);
  border-radius: .25rem;
  border: 0;
  box-shadow: none;
  outline: none;
  width: 100%;
  margin-top: 0;
  margin-left: 0;
  padding: 25px 50px;
  transition: all 0.5s;
}

.form-check-radio .form-check-input:checked[type=radio] {
  background-image: none;
}

.form-check-radio .form-check-input:checked[type=radio] + .form-check-label,
.form-check-radio .form-check-input:hover + .form-check-label,
.form-check-radio .form-check-input:checked + .form-check-label {
  color: var(--white-color);
}

.form-check-radio .form-check-input:hover,
.form-check-radio .form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--white-color);
}

.input-group-file {
  border-radius: .25rem;
  padding: 13px .75rem;
}

.input-group-file input[type=file] {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
  padding: 0;
}

.input-group-file .input-group-text {
  background: transparent;
  color: inherit;
  margin-bottom: 0;
  padding: 0;
}

.custom-form button[type="submit"] {
  background: var(--custom-btn-bg-color);
  border: none;
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--p-font-size);
  font-weight: var(--font-weight-semibold);
  transition: all 0.3s;
  margin-bottom: 0;
}

.custom-form button[type="submit"]:hover,
.custom-form button[type="submit"]:focus {
  background: var(--custom-btn-bg-hover-color);
  border-color: transparent;
}


/*---------------------------------------
  CONTACT SEARCH & DONATE & SUBCRIBE FORM              
-----------------------------------------*/
.contact-form .form-control {
  background: var(--white-color);
}

.search-form {
  position: relative;
}

.search-form .form-control {
  padding-right: 50px;
}

.search-form button[type="submit"] {
  background: transparent;
  position: absolute;
  top: 0;
  right: 0;
  color: var(--p-color);
  width: 50px;
  padding: 12px;
}

.search-form button[type="submit"]:hover {
  background: transparent;
  color: var(--dark-color);
}

.subscribe-form {
  background: var(--section-bg-color);
  border-radius: var(--border-radius-small);
  padding: 30px;
}

.subscribe-form .form-control {
  background: var(--white-color);
}

.donate-form .form-control {
  margin-bottom: 0;
}


/*---------------------------------------
  SITE FOOTER              
-----------------------------------------*/
.site-footer {
  background-color: var(--site-footer-bg-color);
  padding-top: 20px;
}

.site-footer-bottom {
  background-color: var(--secondary-color);
  position: relative;
  z-index: 2;
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-footer-bottom a {
	color: var(--white-color);
}

.site-footer-bottom a:hover {
	color: #FF6;
}

.site-footer-link {
  color: var(--white-color);
}

.copyright-text {
  color: var(--section-bg-color);
  font-size: var(--copyright-font-size);
  margin-right: 30px;
}

.site-footer .custom-btn {
  font-size: var(--copyright-font-size);
}

.site-footer .custom-btn:hover {
  background: var(--primary-color);
}

/*---------------------------------------
  FOOTER MENU               
-----------------------------------------*/
.footer-menu {
  column-count: 2;
  margin: 0;
  padding: 0;
}

.footer-menu-item {
  list-style: none;
  display: block;
}

.footer-menu-link {
  font-size: var(--p-font-size);
  color: var(--white-color);
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  margin-bottom: 5px;
}

/*---------------------------------------
  SOCIAL ICON               
-----------------------------------------*/
.social-icon {
  margin: 0;
  padding: 0;
}

.social-icon-item {
  list-style: none;
  display: inline-block;
  vertical-align: top;
}

.social-icon-link {
  background: var(--site-footer-bg-color);
  border-radius: var(--border-radius-large);
  color: var(--white-color);
  font-size: var(--copyright-font-size);
  display: block;
  margin-right: 5px;
  text-align: center;
  width: 35px;
  height: 35px;
  line-height: 38px;
}

.social-icon-link:hover {
  background: var(--primary-color);
  color: var(--white-color);
}


/*---------------------------------------
  RESPONSIVE STYLES               
-----------------------------------------*/
@media screen and (min-width: 1600px) {
  .featured-block {
    min-height: inherit;
  }

  .recruit-section::after {
    width: 450px;
    height: 450px;
  }
  
  .recruit-image {
    width: 350px;
    height: 350px;
  }
}

@media screen and (max-width: 991px) {
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 36px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 28px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 18px;
  }

  .section-padding {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .hero-form {
    padding-bottom: 40px;
  }

  .donate-form {
    padding: 35px;
  }

  .navbar {
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .navbar-expand-lg .navbar-nav {
    padding-bottom: 30px;
  }
}

@media (min-width: 992px) {

  nav.navbar .navbar-nav {
    margin-left: 100px;
    padding-bottom: 0;
  }

  .dropdown:hover .dropdown-menu {
    display: block;
    position: relative;
    margin-top: 5px;
    margin-bottom: 20px;
    left: 20px;
  }

  .site-header .social-icon {
    text-align: left;
    margin-top: 5px;
  }

  .carousel:hover .carousel-control-next-icon,
  .carousel:hover .carousel-control-prev-icon {
    opacity: 1;
  }

  .carousel-control-prev {
    left: 12px;
  }

  .carousel-control-next {
    right: 12px;
  }

  .carousel-control-next-icon,
  .carousel-control-prev-icon {
    opacity: 1;
    width: 60px;
    height: 60px;
  }

  .news-detail-header-section {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .cta-section::before {
    width: 150px;
    height: 150px;
  }

  .cta-section::after {
    bottom: -60px;
    width: 100px;
    height: 100px;
  }

  .cta-section .row {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .recruit-section::after {
    width: 300px;
    height: 300px;
  }

  .testimonial-section::before {
    width: 150px;
    height: 150px;
  }

  .testimonial-section::after {
    width: 200px;
    height: 200px;
  }

  #testimonial-carousel .carousel-caption {
    padding-top: 0;
  }

  blockquote {
    padding: 70px 30px 30px 30px;
  }

  .about-image {
    width: inherit;
    height: 450px;
  }

  .recruit-image {
    width: 250px;
    height: 250px;
  }

  .custom-text-block {
    padding: 20px 0 0 0;
  }

  .custom-text-box,
  .recruit-form {
    padding: 30px;
  }

  .counter-number,
  .counter-number-text {
    font-size: var(--h2-font-size);
  }

  .contact-info-wrap {
    padding-top: 0;
  }

  .site-footer {
    padding-top: 50px;
  }

  .copyright-text-wrap {
    justify-content: center;
  }

  .site-footer-bottom {
    text-align: center;
    margin-top: 50px;
  }

  .site-footer-bottom .footer-menu {
    margin-top: 10px;
    margin-bottom: 10px;
  }

}

@media screen and (max-width: 580px) {

  .hero-section-full-height,
  #hero-slide .carousel-item,
  .carousel-image {
    height: 60vh;
    min-height: 250px;
  }

  #hero-slide .carousel-caption {
    clip-path: polygon(100% 100%, 100% 80px, 0 100%);
    padding-right: 30px;
  }
}

@media screen and (max-width: 480px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 26px;
  }

  h4 {
    font-size: 22px;
  }

  h5 {
    font-size: 20px;
  }

  #hero-slide .carousel-caption {
    min-width: inherit;
    padding-bottom: 30px;
  }

  .carousel-control-next-icon, 
  .carousel-control-prev-icon {
    width: 45px;
    height: 45px;
  }

  .recruit-image {
    width: 150px;
    height: 150px;
  }

  .recruit-section::after {
    width: 200px;
    height: 200px;
  }

  .testimonial-section::before {
    top: -50px;
    width: 100px;
    height: 100px;
  }

  .testimonial-section::after {
    bottom: -150px;
    width: 200px;
    height: 200px;
  }

  .social-share .tags-block {
    margin-bottom: 10px;
  }

  .donate-form {
    padding: 25px;
  }
}

/* ===== Footer Sitemap ===== */

.footer-sitemap {
  background: #5bc1ac;
  padding: 40px 0 20px;
  border-top: 1px solid #ddd;
}

.sitemap-toggle {
  background: none;
  border: none;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
}

.sitemap-toggle:hover {
  text-decoration: underline;
}

.toggle-icon {
  display: inline-block;
  width: 1.2em;
  text-align: center;
}

/* ===== フッターサイトマップ ===== */
.sitemap-box {
  background: #5bc1ac;
  padding: 30px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sitemap-box h6 {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 15px;
  color: #000000;   /* 見出しも黒 */
}

.sitemap-box ul {
  list-style: none;
  padding-left: 0;
}

.sitemap-box li {
  margin-bottom: 6px;
}

.sitemap-box a {
  color: #000000;   /* 通常は黒 */
  text-decoration: none;
  font-size: 14px;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.sitemap-box a:hover {
  color: #ffffff;   /* ホバー時は白で上品に */
  opacity: 0.85;
}


/* Google Map responsive */
.map-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
}

.map-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.entry-btn {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;

  /* ご要望どおりの配色 */
  background: var(--custom-btn-bg-color);     /* #597081 */
  border: 1px solid #cccccc;   /* 薄いグレー */
  border-radius: 0.375rem;

  color: #ffffff;              /* 文字：白 */
  text-align: center;
  text-decoration: none;
  font-weight: 600;
}

.entry-btn:hover {
  background: var(--custom-btn-bg-hover-color);     /* #5bc1ac */
  color: #ffffff;
}

/* jobs.html 専用CSS */
.job-card img {
      height: 180px;
      object-fit: cover;
    }

    .job-card {
      transition: .2s;
    }

    .job-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    }

    /* 募集停止カード */
    .job-card.closed {
      opacity: 0.5;
      pointer-events: none; /* クリック不可 */
      transform: none !important;
      box-shadow: none !important;
    }

    .closed-badge {
      position: absolute;
      top: 10px;
      right: 10px;
    }

    /* ===== 採用情報 詳細ページ ===== */

/* 全体の枠 */
.job-detail-box {
  border: 1px solid var(--border-color);   /* 枠線 */
  border-radius: var(--border-radius-medium);
  overflow: hidden;
  background: var(--white-color);
}

/* タイトル部分 */
.job-detail-header {
  background: var(--section-bg-color);     /* タイトル背景色 */
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-color);
}

.job-detail-header h1 {
  font-size: var(--h3-font-size);
  color: var(--secondary-color);
}

/* 本文 */
.job-detail-body {
  padding: 32px;
}

/* スマホ調整 */
@media screen and (max-width: 576px) {
  .job-detail-header {
    padding: 20px;
  }

  .job-detail-body {
    padding: 20px;
  }
}

/* 採用情報 表形式 */
.job-table-title {
  background: var(--section-bg-color);
  color: var(--secondary-color);
  font-weight: 600;
  width: 30%;
  min-width: 180px;
  vertical-align: top;
}

/* 表内リスト調整 */
table ul {
  padding-left: 1.2em;
}

@media screen and (max-width: 576px) {
  .job-table-title {
    width: 100%;
    display: block;
  }

  table td {
    display: block;
  }
}

/* btn-primary を entry-btn と同じ配色にする */
.btn-primary {
  background-color: var(--custom-btn-bg-color) !important; /* #597081 */
  border-color: var(--custom-btn-bg-color) !important;
}

.btn-primary:hover {
  background-color: var(--custom-btn-bg-hover-color) !important; /* #5bc1ac */
  border-color: var(--custom-btn-bg-hover-color) !important;
}

/* アクセス関連ボックス：背景・余白・枠線・角丸を完全統一 */
#section_6 .contact-info-wrap,
#section_6 .custom-text-box {
  background-color: var(--section-bg-color);
  padding: 40px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 16px;
}

.contact-info-wrap,
.custom-text-box {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* 新着情報セクション */
.news-section {
  background-color: var(--secondary-color);
}

/* 一覧リンク */
.news-more {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--secondary-color);
}

/* ニュース一覧 */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-list li {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.news-list li:first-child {
  border-top: none;
}

.news-date {
  font-size: 0.9rem;
  color: #777;
  white-space: nowrap;
}

.news-list a {
  color: inherit;
  text-decoration: none;
}

.news-list a:hover {
  text-decoration: underline;
}

/* =========================================
   採用ページ メインビジュアル（#5bc1ac 色調補正）
========================================= */

.job-hero-section {
  padding: 40px 0 20px;
}

.job-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0,0,0,0.12);
  background: #000;
}

/* ▼ 画像本体 */
.job-hero-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* ▼ #5bc1ac カラーフィルター */
.job-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(91, 193, 172, 0.55),
    rgba(91, 193, 172, 0.35)
  );
  z-index: 1;
}

/* ▼ 文字オーバーレイ */
.job-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 60px;
  color: #ffffff;
}

.job-hero-overlay h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: #ffffff;
}

.job-hero-overlay p {
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0;
  color: #e9fffb;
}

/* ===== スマホ対応 ===== */
@media screen and (max-width: 576px) {
  .job-hero-image {
    height: 260px;
  }

  .job-hero-overlay {
    padding: 24px;
  }

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

  .job-hero-overlay p {
    font-size: 0.95rem;
  }
}

/* ===== 採用ページ ヒーロー画像 ===== */
.job-hero-section {
  padding: 0;
}

.job-hero {
  position: relative;
  width: 100%;
  height: 420px;          /* ← これが最重要 */
  overflow: hidden;
  border-radius: 12px;
}

.job-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* 画像を切り抜いて全面表示 */
  display: block;
}

.job-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 193, 172, 0.15); /* #5bc1ac 系オーバーレイ */
  z-index: 1;
}

.job-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.job-hero-overlay h1 {
  font-size: 2rem;
  font-weight: 700;
}

.job-hero-overlay p {
  font-size: 1.1rem;
  margin-top: 10px;
}

/* =========================================
   新着情報 & 右バナー（最終・整理済みCSS）
========================================= */

/* =========================================
   左：新着情報エリア
========================================= */

/* 新着情報ボックス */
.news-box {
  background: #ffffff;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 16px;
  padding: 40px 48px;
}

/* 見出し */
.news-header h2 {
  font-size: 1.7rem;
}

/* タブ */
.news-tabs {
  border-bottom: 2px solid #e0e0e0;
}

.news-tabs .nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  border: none;
  padding: 10px 20px;
}

.news-tabs .nav-link.active {
  color: #5bc1ac;
  border-bottom: 3px solid #5bc1ac;
  background: none;
}

.news-tabs .nav-link:hover {
  color: #3f8fd8;
}

/* 新着一覧 */
.news-list li {
  display: flex;
  align-items: center;
}

/* 日付 */
.news-date {
  font-size: 1rem;
  color: #777;
  white-space: nowrap;
}

/* 本文 */
.news-list a {
  font-size: 1.05rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}

.news-list a:hover {
  text-decoration: underline;
}

/* NEWバッジ */
.news-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #e5533d;
  border-radius: 4px;
}


/* =========================================
   右：情報へのアクセス（バナー風カード）
========================================= */

/* ラッパー */
.news-side-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* カード本体 */
.info-card {
  position: relative;
  display: block;
  padding: 14px 56px 14px 64px;
  border-radius: 16px;
  color: #f5fffc;
  text-decoration: none;
  overflow: hidden;

  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}

/* 左アクセント帯 */
.info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 100%;
  background: rgba(255,255,255,0.4);
}

/* 右矢印 */
.info-card::after {
  content: "▶";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  opacity: 0.85;
}

/* アイコン */
.info-card .icon {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #ffffff;
}

/* タイトル */
.info-card h5 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000;
}

/* 説明文 */
.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #242121;
}

/* hover */
.info-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(0,0,0,0.18);
}

/* 種類別カラー */
.info-card.dementia {
  background: linear-gradient(135deg, #4a90e2, #357ac8);
}

.info-card.clozapine {
  background: linear-gradient(135deg, #5cb85c, #449d44);
}

.info-card.reha_physical {
  background: linear-gradient(135deg, #6f8dd9, #5a73c4);
}

.info-card.laboratory {
  background: linear-gradient(135deg, #f0ad4e, #ec971f);
}

.news-new {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background-color: #e5533d;
  border-radius: 4px;
  vertical-align: middle;
}

/* 採用：募集中バッジ */
/* 募集中バッジ（Bootstrap success準拠） */
.recruit-open {
  display: inline-block;
  margin-left: 8px;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background-color: #198754; /* Bootstrap success */
  border-radius: 50rem;      /* Bootstrap pill風 */
  vertical-align: middle;
}

.recruit-closed {
  background: #999;
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  margin-left: 8px;
  border-radius: 20px;
}

/*---------------------------------------
  accecc              
-----------------------------------------*/
.access-section {
  background: var(--secondary-color);
  position: relative;
  overflow: hidden;
}

/*---------------------------------------
  featured-block              
-----------------------------------------*/
.featured-block a {
    text-align: center;
    width: 100%;
}

/*---------------------------------------
  accecc              
-----------------------------------------*/
.consultation-section {
  background: var(--white-color);
  position: relative;
  overflow: hidden;
}

.depression-hero {
    position: relative;
    background: url('../images/depression-hero.jpg') center/cover no-repeat;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.depression-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.depression-card-group .card-img-top {
    height: 220px;
    object-fit: cover;
}

.admission-section {
    background: #0d6efd;
    color: #fff;
    border-radius: 10px;
}

@media screen and (max-width: 768px) {

  #hero-slide .carousel-caption {
    min-width: 100%;
    padding: 0 20px 40px 20px;
    justify-content: flex-end;
    align-items: flex-end;  /* ← 文字を右へ */
    text-align: right;
  }
}

/* =========================================
   HERO 矢印を上に移動
========================================= */

#hero-slide .carousel-control-prev,
#hero-slide .carousel-control-next {
  top: 20px;           /* ← 上からの位置（調整可） */
  bottom: auto;        /* 下基準を解除 */
  align-items: flex-start;
}

/* アイコンの微調整 */
#hero-slide .carousel-control-prev-icon,
#hero-slide .carousel-control-next-icon {
  margin-top: 0;
}

/* =========================================
   HERO 文字を画像の下端に揃える
========================================= */

#hero-slide .carousel-caption {
  padding-bottom: 0 !important;   /* 下余白を消す */
}

/* 最後の要素の余白も完全除去 */
#hero-slide .carousel-caption p:last-child {
  margin-bottom: 0;
}

#hero-slide .carousel-caption {
    text-align: right;         /* 文字を右寄せ */
    display: flex;
    flex-direction: column;    /* 縦方向に並べる */
    align-items: flex-end;     /* flex 内のアイテムを右端に揃える */
    justify-content: flex-end; /* 下方向に寄せる */

    right: 0;                  /* 右端に固定 */
    left: auto;                /* 左の制約を解除 */
    padding-right: 20px;          /* 右の余白を削除 */
    padding-left: 0;           /* 左の余白も削除 */
}

/* ===== 装飾丸を背面に回す（CTA & Recruit 共通対応） ===== */

.cta-section,
.recruit-section {
  position: relative;
  z-index: 1;
}

.cta-section::before,
.cta-section::after,
.recruit-section::after {
  z-index: -1;
}

/* 緑の丸を薄くする（正しい側を上書き） */
.recruit-section::before,
.cta-section::before {
  background: radial-gradient(
    circle,
    rgba(91,193,172,0.6) 0%,
    rgba(91,193,172,0.4) 70%
  ) !important;
}

/* ===== ハンバーガーをロゴ右横に固定 ===== */

.navbar .container {
  display: flex;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.navbar-toggler {
  margin-left: auto;   /* ロゴの右へ押し出す */
  position: relative;
  top: 0;
}

/* ロゴと病院名の間隔を調整 */
.navbar-brand .logo {
    margin-right: 12px; /* 数値はお好みで調整（10〜20px程度がおすすめ） */
}

/* 部門カードホバーアニメーション */
        .department-card {
            transition: all 0.4s ease;
            border-radius: 12px;
            overflow: hidden;
        }

        .department-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .department-card img {
            transition: transform 0.5s ease;
        }

        .department-card:hover img {
            transform: scale(1.05);
        }

        .department-card .btn {
            transition: all 0.3s ease;
        }

        .department-card:hover .btn {
            background-color: #0d6efd;
            color: #fff;
        }

/* ===== 部門カード統一デザイン ===== */

.department-card {
  background-color: #ffffff;
  border-radius: 10px;
  border-left: 6px solid var(--primary-color);
  display: flex;
  align-items: flex-start;
  padding: 6px 16px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.department-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* アイコン */
.department-icon {
  font-size: 48px;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-right: 14px;
  margin-top: 2px;
}

/* テキスト部分 */
.department-content {
  text-align: left;
}

/* 部門名 */
.department-content h5 {
  margin-bottom: 6px;
  font-weight: 700;
  color: #111;
}

/* 説明文 */
.department-content p {
  margin-bottom: 0;
  color: #333;
  line-height: 1.5;
  font-size: 0.95rem;
}

.department-bg {
  background-color: #eaf6f1;
}

/* ===== nav直下 フル幅ヒーロー ===== */

.department-hero-full {
    width: 100%;
    height: 60vh; /* 高さ調整可能 */
    margin-top: 0px;   /* ← ここで上の余白調整 */
    background: url("../images/department-main.jpg") center center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 暗幕 */
.department-hero-full::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.department-hero-full h2,
.department-hero-full .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* 文字中央 */
.hero-inner {
    position: relative;
    color: #ffffff;
    max-width: 800px;
    padding: 20px;
}

.hero-inner h2 {
    font-size: 2.5rem;
}

.hero-inner .lead {
    font-size: 1.2rem;
}

/* ===== スマホだけ高さを小さく ===== */
@media (max-width: 768px) {
    .department-hero-full {
        height: 35vh;   /* ← 好みで調整 */
    }

    .hero-inner h2 {
        font-size: 1.8rem;
    }

    .hero-inner .lead {
        font-size: 1rem;
    }
}

/* カード部分とサイトマップの間の余白＋グラデーション背景 */
.department-footer-gap {
    height: 50px; /* 余白の高さ */
    background-color: #ffffff; 
}

/* スマホだけ高さを小さくする */
@media (max-width: 768px) {
    .department-footer-gap {
        height: 40px;
    }
}

/* ===================================
   新着情報 超コンパクト版
=================================== */

/* リスト初期化 */
.news-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;      /* ← これを追加 */
    margin-bottom: 0;
}

/* 記事ブロック余白さらに削減 */
.news-item {
    margin-bottom: 8px;   /* 12px → 8px */
    padding: 4px 0;       /* 6px → 4px */
}

/* 日付＋タイトル横並び（さらに圧縮） */
.news-list li {
    display: flex;
    align-items: center;
    gap: 10px;            /* 15px → 10px */
    flex-wrap: wrap;
    line-height: 1.2;     /* 1.35 → 1.2 */
    margin-bottom: 0;
}

/* 日付 */
.news-list .news-date {
    display: inline-block !important;
    min-width: 95px;
    white-space: nowrap;
    font-size: 0.85rem;   /* 少し小さく */
    color: #777;
    margin: 0;
}

/* タイトル */
.news-list li a {
    flex: 1;
    text-decoration: none;
    font-size: 0.9rem;    /* 少し小さく */
    line-height: 1.2;
    margin: 0;
}

/* 画像ブロック */
.news-item .news-image {
    width: 100%;
    margin-top: 4px;      /* 6px → 4px */
}

/* 画像サイズ（維持） */
.news-item .news-image img.news-thumb {
    display: inline-block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

/* ===============================
届出画像ギャラリー
=============================== */

.notice-gallery{
margin-top:20px;
}

.notice-gallery div{
margin-bottom:25px;
text-align:center;
}

/* 届出画像 */

.notice-img{

width:100%;
height:auto;
max-height:650px;

border-radius:6px;
box-shadow:0 2px 8px rgba(0,0,0,0.15);

cursor:pointer;
transition:0.2s;

background:#fff;

}

.notice-img:hover{
transform:scale(1.02);
}

/* ===============================
画像ビューア（拡大表示）
=============================== */

.notice-modal{
background:#000;
border:none;
}

#noticeModalImg{
max-height:85vh;
width:auto;
}

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

@media (max-width:768px){

.notice-img{
max-height:500px;
}

}




