@charset "utf-8";
/*
 Theme Name:   小樽ナースナビ
 Theme URI:    https://otaru-nursenavi.net/
 Author:       株式会社オー・プラン
 Text Domain:  otaru-nursenavi
*/

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

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family:
    "Hiragino Kaku Gothic ProN",
    "ヒラギノ角ゴ ProN W3",
    "Hiragino Kaku Gothic Pro",
    "ヒラギノ角ゴ Pro W3",
    "Meiryo",
    sans-serif;
  padding-top: 80px;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }
}

/* WPログイン中の調整 */
.admin-bar .p-hero__sns {
    top: 52px;
}

@media screen and (max-width: 782px) {
    .admin-bar .p-hero__sns {
        top: 66px;
    }
}

.admin-bar header {
    margin-top: 32px;
}
@media screen and (max-width: 782px) {
    .admin-bar header {
        margin-top: 46px;
    }
}

/* 配色の一括設定 */
:root {
  --primary-green: #4ec375;
  --dark-green:    #008842;
  --soft-yellow:   #fffaf0;
  --soft-orange:   #edc376;
  --text-gray:     #666666;
}

.font-jost {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.br-pc {
  display: block;
}

@media screen and (max-width: 768px) {
  .br-pc {
    display: inline;
  }
}

.br-sp {
  display: inline;
}

@media screen and (max-width: 768px) {
  .br-sp {
    display: block;
  }
}

/* ==============
   Header
   ============== */
.site-header {
  background-color: var(--primary-green); 
  padding: 1rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: background-color 0.3s ease;
}

.header-inner {
  margin: 0 auto;
  padding: 0 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  position: relative;
  z-index: 1001;
}

.logo img {
  width: 220px;
  height: auto;
  display: block;
}

.nav ul {
  list-style: none;
  display: flex;
  gap: 2.3rem;
  margin: 0;
  padding: 0;
}

.nav a {
  color: #fff; 
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  letter-spacing: 0.2em;
}

.nav a:hover {
  opacity: 0.7;
}

body.home .site-header,
body.front-page .site-header {
  background-color: #ffffff;
}

body.home .nav a,
body.front-page .nav a {
  color: var(--text-gray);
}

@media (max-width: 768px) {
  body.home .nav a,
  body.front-page .nav a {
    color: #fff;
  }
}

body.home .nav a:hover,
body.front-page .nav a:hover {
  color: var(--primary-green);
  opacity: 1;
}

.hamburger-menu {
  display: none; 
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1002;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

body.subpage .site-header {
  background-color: var(--primary-green);
}

body.subpage .nav a {
  color: #ffffff;
}

body.subpage .hamburger-menu span {
  background-color: #fff;
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-green);
    padding-top: 80px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
  }

  .nav.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav ul {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .nav a {
    color: #fff;
    font-size: 1.2rem;
  }

  .hamburger-menu.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    background-color: #fff;
  }
  
  .hamburger-menu.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.is-active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
    background-color: #fff;
  }
  
  .logo img {
    width: 180px;
    top: 0;
  }
}

/* ==============
footer
============== */
footer {
  background-color: var(--dark-green);
  color: #ffffff;
  padding: 3rem 1rem 1rem;
  margin-top: auto;
}

.footer_wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer_spacer {
  flex: 1;
  display: block;
}

.footer_center-block {
  flex: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ft_con {
  margin-bottom: 2rem;
}

.logo_ft-img img {
  width: 240px;
  height: auto;
  margin-bottom: 1rem;
}

.ft_con strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer_menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.8rem;
}

.footer_menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 0;
}

.footer_menu a:hover {
  text-decoration: underline;
}

.footer_social-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer_sns {
  display: flex;
  gap: 0.8rem;
}

.sns-icon {
  width: 32px;
  height: 32px;
  background-color: #fff;
  border-radius: 4px;
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  display: inline-block;
  transition: transform 0.3s ease;
}

.sns-icon:hover {
  transform: scale(1.1);
}

.sns-icon.facebook { background-image: url("./images/top/icon_fb.png"); }
.sns-icon.instagram { background-image: url("./images/top/icon_ig.png"); }
.sns-icon.x { background-image: url("./images/top/icon_x.png"); }

.copywrite {
  width: 100%;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.8rem;
  opacity: 0.7;
  display: block;
}

@media (max-width: 900px) {
  .footer_spacer {
    display: none;
  }
  .footer_wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer_center-block {
    order: 1;
    width: 100%;
  }
  .footer_menu {
    order: 2;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    width: 100%;
  }
  .copywrite {
    order: 3;
  }
  .footer_menu a {
    margin: 0;
  }
}

/* ==============
top
============== */
.hospital-date {
  text-align: right;
  margin: 0 auto 30px;
  max-width: 800px;
}

.card {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  place-items: center;
  max-width: 1030px;
  margin: 0 auto; 
  padding: 0 30px;
}

.card__item {
  background-image: linear-gradient(180deg, rgba(202, 237, 214, 1) 30%, rgba(232, 247, 237, 1) 30%);
  padding: 20px;
  border-radius: 8px;
  width: 100%;
  height: 100%;
}

.card__item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__img-area {
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
}

.card__img-area img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  height: auto;
  display: block;
}

.card__title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #333;
}

.card__desc {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
  text-align: justify;
  font-feature-settings: "palt";
  letter-spacing: 0.05em;
}

.card__more {
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  height: 40px;
  padding-top: 6px;
  color: #fff;
  background-image: linear-gradient(180deg, rgba(113, 207, 145, 1) 50%, rgba(78, 195, 117, 1) 50%);
  border-radius: 20px;
  cursor: pointer;
  letter-spacing: 0.1em;
  margin-top: auto;
  width: 100%;
}

@media (max-width: 768px) {
  .card {
    grid-template-columns: repeat(2, 1fr);
    max-width: 720px;
    margin: 0 20px;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .card {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
}

.top_news {
  background-image: linear-gradient(180deg, rgba(232, 248, 204, 0.5), rgba(205, 255, 223, 0.5) 60%, rgba(178, 250, 230, 0.5));
}

.banner-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  max-width: 1000px;
  margin: 2rem auto;
  justify-content: center;
}

.banner-container a {
  flex: 0 0 300px; 
  text-decoration: none;
  transition: transform 0.3s ease;
}

.banner-container a:hover {
  transform: scale(1.03);
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ccc;
}

@media (max-width: 768px) {
  .banner-container {
    padding: 2rem 4rem;
    margin: 0;
  }
  .banner-container a {
    flex-basis: calc(50% - 0.5rem);
  }
}

@media (max-width: 480px) {
  .banner-container a {
    flex-basis: 100%;
  }
}

/* ==============
Single (医療機関詳細)
============== */
.hospital_section {
  background-size: cover;
  display: block;
  margin: 0 auto;
  padding: 80px 0;
}

.single-hospital .container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.hospital-title {
  font-size: 1.8rem;
  margin-bottom: 50px;
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.hospital-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.05em;
  font-weight: bold;
}

.hospital-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  text-align: center;
  letter-spacing: 0.05em;
  position: relative;
  top: -10px;
}

.hospital-thumbnail {
  text-align: center;
  margin-bottom: 60px;
}

.hospital-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hospital-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 2rem;
}

.hospital-content:last-of-type {
  margin-bottom: 0;
}

.hospital-images {
  width: 800px;
  margin: 10% auto 0;
  display: grid;
  gap: 3%;
}

.hospital-images.count-1 {
  grid-template-columns: 1fr;
  justify-items: center;
}

.hospital-images.count-1 .hospital-image {
  max-width: 400px;
}

.hospital-images.count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.hospital-images.count-3 {
  grid-template-columns: repeat(2, 1fr);
}
.hospital-images.count-3 > :last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: 50%;
}

.hospital-images.count-4 {
  grid-template-columns: repeat(2, 1fr);
}

.hospital-image img {
  width: 100%;
  object-fit: cover;
  display: block;
}

.hospital-info-text h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.hospital-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 590px;
  margin: 50px 0 0 0;
}

.hospital-tag-label {
  display: inline-block;
  padding: 6px 20px;
  background: #edc376;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.bg-light { background-color: #fffaf0; }
.bg-white { background-color: #ffffff; }

.hospital_point {
  width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.point-block {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 1.5rem 0;
}

.point-block.has-border {
  border-bottom: 1px solid #ccc;
}

.point-number {
  font-family: 'Jost', sans-serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--primary-green);
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  transform: scaleX(0.9);
  position: relative;
  top: -20px;
}

.point-text {
  flex: 1;
}

.point-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.point-desc {
  font-size: 1rem;
  line-height: 1.6;
}

.hospital_table {
  width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.hospital_table th {
  font-size: 1.2rem;
  color: #4ec385;
  text-align: left;
  width: 200px;
  vertical-align: top;
  padding: 18px 0;
}

.hospital_table tr {
  border-top: solid 1px #bdbab9;
}

.hospital_table tr:first-of-type {
  border-top: none;
}

.hospital_table td {
  padding: 18px 0 18px 10px;
  text-align: justify;
}

.hospital_table td a {
  color: #008842;
}

.hospital-url {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: #000000;
  text-decoration: none;
  font-weight: 500;
}

.hospital-url:hover {
  opacity: 0.8;
}

.url-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 25px;
  height: 25px;
  background-color: #83d59e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.8rem;
  line-height: 1;
}

.hospital_botton {
  height: 60px;
  width: 230px;
  background-image: linear-gradient(90deg, rgba(232, 248, 204, 1), rgba(205, 255, 223, 1) 60%, rgba(178, 250, 230, 1));
  border: 1px solid var(--primary-green);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-green);
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 auto;
  padding-left: 15px;
  line-height: 1.4;
}

.hospital_botton_icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 15px;
  height: 15px;
  background-color: var(--primary-green);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.55rem;
  padding-left: 1.4px;
  flex-shrink: 0;
  position: relative;
  margin-left: 10px;
}

.hospital_message {
  width: 800px;
  margin: 0 auto;
}

.message-block {
  padding: 1.5rem 0;
  position: relative;
}

.rep-message {
  background-color: #ffffff;
  padding: 1.5rem;
  margin: 2rem 0;
}

.rep-message::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1.5px;
  border-radius: 8px;
  background: linear-gradient(50deg, rgba(90, 205, 131, 1), rgba(124, 255, 192, 1) 50%, rgba(80, 200, 120, 1));
  -webkit-mask: linear-gradient(#fff, #fff) content-box, linear-gradient(#fff, #fff);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  z-index: 0;
}

.rep-message > * {
  position: relative;
  z-index: 1;
}

.senior-message {
  border-bottom: solid 1px #bdbab9;
  text-align: justify;
}

.senior-message:last-of-type {
  border-bottom: none;
}

.message-image img {
  width: 290px;
  height: auto;
  object-fit: cover;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  gap: 0.8rem;
  font-weight: bold;
  font-size: 1.15rem;
  align-items: center;
}

.message-position {
  font-weight: 500;
  font-size: 1rem;
}

.message-text {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 0.5rem;
}

.hospital-video-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 680px;
  margin: 2rem auto;
}

.hospital-video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.title_saiseikai img {
  margin-bottom: -3px;
}

@media screen and (max-width: 850px) {
  .hospital-info-text h2 {
    font-size: 1.2rem;
  }
  .hospital_section {
    padding: 50px 20px;
  }
  .hospital-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }
  .hospital-subtitle {
    font-size: 1.3rem;
  }
  .hospital-text {
    font-size: 1.1rem;
    top: 0;
  }
  .hospital-thumbnail {
    margin-bottom: 30px;
  }
  .hospital-tags {
    width: 100%;
    margin: 30px 0 0 0;
  }
  .hospital_point,
  .hospital_table,
  .hospital_message {
    width: 100%;
  }
  .point-block {
    flex-direction: column;
    gap: 1rem;
  }
  .point-number {
    font-size: 3rem;
    width: auto;
    top: 0;
    text-align: left;
  }
  .hospital-images {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .hospital-images.count-3 .hospital-image:nth-child(3) {
    grid-column: 1 / -1;
  }

  .hospital_table th {
    display: block;
    width: 100%;
    padding: 15px 0 5px;
    font-size: 1.1rem;
  }
  .hospital_table td {
    display: block;
    width: 100%;
    padding: 5px 0 15px;
  }
  .hospital_table tr {
    display: block;
  }
  .message-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  .message-image img {
    width: 100%;
    margin-bottom: 1rem;
  }
  .hospital-video-wrapper {
    max-width: 100%;
  }
}

/* ==============
Hero Area
============== */
.full-width-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 11 / 9;
  min-height: 500px;
  overflow: visible; 
  margin: 0;
  padding: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/top/background.png);
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 10;
  -webkit-mask-image: radial-gradient(circle at top right, transparent 0%, black 70%);
  mask-image: radial-gradient(circle at top right, transparent 0%, black 70%);
}

.people-container {
  position: absolute;
  top: 5%;
  right: 0;
  width: 65%;
  max-width: 1200px;
  pointer-events: none;
}

.people-container > img {
  position: relative;
  z-index: 20;
  width: 100%;
  height: auto;
  display: block;
}

.hero-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(images/top/wave.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  mix-blend-mode: multiply;
  z-index: 30;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black);
  mask-image: linear-gradient(to right, transparent, black);
}

.iju_botton-pc {
  width: 150px;
  position: absolute;
  right: 20%;
  bottom: 0;
  z-index: 100; 
  display: block;
  pointer-events: auto;
  top: 100%;
}

.iju_botton-pc img {
  width: 100%;
  height: auto;
}

.vertical-text-image {
  display: flex;
  align-items: flex-start;
  position: absolute;
  z-index: 40; 
  top: 10%;
  left: 5%;
}

.vertical-text-image img {
  width: 40%;
  margin: 0 0 0 10%;
}

.vertical-text-image-sp1 {
  position: absolute;
  left: 5%;
  z-index: 40;
  display: none;
}

.vertical-text-area-sp {
  display: none;
}

.hero-text-area {
  position: relative;
  z-index: 50; 
}

.hero-text-area img {
  width: 650px;
  height: auto;
  padding-bottom: 20px;
}

.hero-text-area p {
  font-feature-settings: "palt";
  color: #000;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.8;
  letter-spacing: 0.1em;
  margin: 0;
}

.hero-text-area-sp {
  display: none;
}

/* ==============
Layout Components
============== */
.container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.grid-4-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 40px;
  row-gap: 30px;
  margin: 0 auto;
  margin-bottom: 410px;
}

#hospitals, #news {
  scroll-margin-top: 80px;
}

.target-container {
  text-align: center;
  margin-top: -40vw; 
  position: relative;
  z-index: 60;
  padding: 0 30px 50px 30px;
}

.target-container img {
  max-width: 100%;
  height: auto;
  display: inline-block; 
}

.iju_botton-sp {
  display: none;
}

.toiawase-pc {
  display: block;
  margin: 50px auto 0;
  width: 840px;
}

.toiawase-sp {
  display: none;
}

.js-more-item { display: none; }

.more-btn-container {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.more-btn {
  display: inline-block;
  background-color: #4f4644;
  color: #ffffff;
  padding: 15px 50px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  outline: none;
}

.more-btn:hover { background-color: #666666; }
.more-btn:active { transform: translateY(2px); }

/* ==============
Media Queries
============== */
@media (max-width: 1100px) {
  .iju_botton-pc {
    width: 130px;
    right: 10%;
  }
}

@media (max-width: 870px) {
  .iju_botton-pc {
    width: 100px;
  }
}

@media (max-width: 768px) {
  .full-width-hero {
    min-height: 760px;
    height: auto;
  }
  .hero-text-area {
    display: none;
  }
  .hero-text-area-sp {
    display: block;
    margin-bottom: -80px;
    position: relative;
    top: -100px;
    z-index: 200;
  }
  .hero-text-area-sp img {
    width: 200px;
    margin-bottom: 15px;
  }
  .hero-text-area-sp p { letter-spacing: 0.03em; }
  .vertical-text-image { display: none; }
  .vertical-text-image-sp1 { display: block; margin-bottom: 20px; left: 10%; z-index: 200; }
  .vertical-text-image-sp1 img { width: 30%; height: auto; }
  .p-fv { min-height: 760px; height: auto; padding: 100px 20px; }
  
  .vertical-text-area-sp {
    display: flex;
    position: relative; 
    top: -480px;
    left: 0;
    flex-direction: column; 
    align-items: center;
    margin-bottom: 15px;
    z-index: 200;
  }
  .vertical-text-area-sp p {
    font-size: 1.2rem;
    color: #333; 
    text-align: center;
  }
  
  .people-container {
    width: 76%;
    top: 0%;
  }
  .grid-4-cols {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 15px;
    row-gap: 15px;
    padding: 0 20px;
    margin-bottom: 10px;
  }
  .target-container { margin-top: 0; padding: 0 0 50px 0; z-index: 200; }
  .iju_botton-pc { display: none; }
  .iju_botton-sp { display: inline-block; margin-top: 40px; }
  .iju_botton-sp img { width: 280px; padding: 0 0 50px; }
  .toiawase-pc { display: none; }
  .toiawase-sp { display: block; margin: 20px; }
}

@media (max-width: 740px) {
  .vertical-text-area-sp {
    top: -500px;
  }
}

@media (max-width: 540px) {
  .vertical-text-area-sp {
    top: -600px;
  }
}

@media (max-width: 430px) {
  .full-width-hero {
    min-height: 670px;
  }
  .vertical-text-area-sp {
    top: -550px;
    margin-bottom: 30px;
  }
  .vertical-text-area-sp p {
    font-size: 0.9rem;
  }  
  .vertical-text-image-sp1 { left: 5%; }
  .people-container { width: 80%; }
  .p-fv { min-height: 670px; }
}

@media (min-width: 768px) {
  .target-container {
    margin-top: -540px;
  }
}

@media (min-width: 769px) {
  .vertical-text-image { top: 8%; }
  .vertical-text-image img { width: 35%; margin: 0 0 0 10%; }
}

@media (min-width: 1000px) { 
  .target-container { margin-top: -600px; }
}

@media (min-width: 1200px) {
  .vertical-text-image { top: 10%; }
  .vertical-text-image img { width: 40%; margin: 0 0 0 15%; }
}

@media (min-width: 1500px) {
  .vertical-text-image img { width: 45%; margin: 0 0 0 20%; }
}

@media (min-width: 1600px) {
  .people-container { left: auto; max-width: 1200px; margin-left: auto; }
}

@media (min-width: 1900px) {
  .people-container { width: 80%; max-width: 1400px; }
  .target-container { margin-top: -640px; } 
}

/* =========================================
   新着情報・共通スタイル
   ========================================= */
#news {
  background-image: linear-gradient(180deg, rgba(232, 248, 204, 0.5), rgba(205, 255, 223, 0.5) 60%);
}

.news-list { margin-bottom: 40px; }
.section-title { text-align: center; margin: 40px 0; }
.news-item.has-border-top { border-top: 1px solid #918c8a; }

.news-item { width: 100%; }

.news-link {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  color: #000;
  transition: background-color 0.2s;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.news-meta.has-tag {
    flex-wrap: wrap;
}
.news-meta.has-tag .news-page-title {
    width: 100%;
}

.news-date {
  min-width: 90px; 
  flex-shrink: 0;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

.news-cat {
  background-color: #e6aa3c;
  color: #fff;
  padding: 5px 30px;
  border-radius: 9999px;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
  margin: 0 10px;
}

.news-cat:hover {
  opacity: 1;
}

.news-tag {
  color: #000;
  flex-shrink: 0;
  font-size: 1.2rem;
  margin: 0;
}

.news-title, .news-page-title {
  font-size: 1.2rem;
  color: #000;
  line-height: 1.5;
  flex-grow: 1;
}

.news-title {
  margin-left: 145px; 
  padding-top: 5px;
}

.news-meta-top {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
}

.news-meta-top .news-tag {
  flex-basis: auto; 
  order: 0;
  white-space: nowrap;
}

.news-meta-top .news-cat {
  flex-grow: 0;
  text-align: center;
  min-width: 140px; 
}

@media screen and (max-width: 768px) {
  .section-title { font-size: 1.7rem; }
  .news-item { width: 100%; }
  .news-meta { flex-wrap: wrap; gap: 5px 15px; }
  
  .news-meta-top {
    flex-wrap: wrap;
  }
  .news-meta-top .news-tag {
    flex-basis: 100%; 
    order: 2; 
    font-size: 1.1rem;
  }
  
  .news-title, .news-page-title { margin-left: 0; flex-basis: 100%; }
  .news-cat {
    padding: 5px 20px;
    margin: 0 10px;
  }
}

.news-more-btn {
  display: inline-block;
  background-color: #4f4644;
  color: #fff;
  padding: 15px 60px;
  font-weight: bold;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.news-more-container { text-align: center; }

/* =========================================
   一覧ページ (Archive) レイアウト
   ========================================= */
.news-container {
  width: 100%;
  max-width: 1030px;
  margin: 0 auto;
  padding: 50px 30px;
}

.archive-layout-container {
  display: flex;
  max-width: 1300px; 
  margin: 0 auto;
  padding: 50px 0 100px;
  position: relative;
}

.archive-sidebar {
  width: 200px;
  margin-right: 50px;
  flex-shrink: 0;
}

.sidebar-inner {
  position: sticky; 
  top: 50px;
}

.archive-main {
  flex: 1;
  max-width: 1000px; 
  width: 700px; 
  overflow: hidden;
}

/* 記事がない時のメッセージ表示 */
.no-posts {
  display: block;
  width: 700px;
  padding: 20px 0;
  border-top: 1px solid #918c8a;
}

.sidebar-title {
  color: #008842;
  font-size: 18px;
  font-weight: bold;
  border-bottom: 1px solid #918c8a; 
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-item { border-bottom: 1px solid #fffaf0; }

.sidebar-item a {
  color: #000;
  display: block;
  padding: 5px 10px 5px 0;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-item a:hover {
  color: #888;
  background-color: #fafafa;
}

.sidebar-item.is-active a {
  color: #008842;
  font-weight: bold;
}

/* =========================================
   スマートフォン対応 (999px以下)
   ========================================= */
@media (max-width: 999px) {
  .news-container {
    padding: 30px 20px;
  }

  .archive-layout-container {
    flex-direction: column;
    padding: 30px 20px 60px;
    width: 100%;
    margin: 0;
  }

  .archive-sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .sidebar-inner {
    position: static;
  }

  .archive-main {
    width: 100%;
  }

  .article-meta {
    gap: 10px 0; 
  }

  .article-meta .news-cat {
    flex-grow: 1; 
    text-align: center; 
    margin: 0 10px 0 25px; 
    padding: 5px 10px; 
  }

  .article-meta .post-tags {
    flex-basis: 100%; 
    margin-top: 5px; 
    margin-right: 0;
  }

    .archive-main {
    width: 100%; 
  }

  .no-posts {
    width: 100%;
  }
}

/* =========================================
   ページネーション
   ========================================= */
.pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.pagination .page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  align-items: center;
}

.pagination .page-numbers a,
.pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
}

.pagination .page-numbers .current {
  background-color: #e6e6e6; 
  border-color: #e6e6e6;
  color: #fff;
}

.pagination .page-numbers a:hover {
  background-color: #f5f5f5;
}

.pagination .page-numbers .next,
.pagination .page-numbers .prev {
  background-color: var(--dark-green);
  color: #fff;
  border-color: var(--dark-green);
  font-weight: bold;
}

.pagination .page-numbers .next:hover,
.pagination .page-numbers .prev:hover {
  background-color: #555555;
  border-color: #555555;
}

.pagination .page-numbers .dots {
  border: none;
  background: none;
  width: auto;
  min-width: 20px;
}

/* =========================================
   お知らせ個別ページ (single.php) スタイル
   ========================================= */
.single-main-content {
  max-width: 800px;
  margin: 50px auto;
  padding: 60px 20px 0;
}

.single-article {
  padding-bottom: 30px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 30px;
}

.article-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 10px 0 30px;
  line-height: 1.5;
}

.article-meta {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.post-date { margin-right: 15px; }

.post-category,
.post-tags {
  margin-right: 15px;
  padding: 3px 8px;
  border-radius: 3px;
  background-color: #f0f0f0;
  font-size: 0.9rem;
  color: #444;
}

.article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.article-content p { margin-bottom: 1.5em; }

.back-to-list-wrap {
  text-align: center;
  margin-top: 100px;
}

.back-to-list-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--dark-green);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.back-to-list-btn:hover { background-color: #5cb85c; }

/* =========================================
   サイトマップ
   ========================================= */
.sitemap-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
}

.sitemap-container h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 30px 0 15px;
  padding-bottom: 5px;
  color: var(--text-gray);
  border-bottom: 1px solid #918c8a;
}

.sitemap-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 40px;
}

.sitemap-list li {
  padding: 8px 0;
  border-bottom: 1px dashed #ddd;
  margin-left: 20px;
}

.sitemap-list li a {
  text-decoration: none;
  color: #0073aa;
  font-size: 1.1rem;
  transition: color 0.2s;
}

.sitemap-list li a:hover { color: #d54e21; }

.sitemap-list ul {
  margin-top: 5px;
  padding-left: 20px;
  list-style: none; 
}

.sitemap-list .count {
  font-size: 0.9rem;
  color: #666;
  margin-left: 5px;
}


@media screen and (max-width: 768px) {
  .sitemap-list li a {
    font-size: 1rem;
  }
  .sitemap-container h2 {
    font-size: 1.3rem;
  }
  .sitemap-list li {
    margin-left: 0;
  }
  .u-hidden-sp {
    display: none;
  }
}

/* トップへ戻るボタン */
#page_top{
  width: 50px;
  height: 50px;
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: var(--primary-green);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
  border-radius: 50%;
  z-index: 999;
}

#page_top.is-show {
  opacity: 0.6;
  visibility: visible;
}

#page_top a{
  position: relative;
  display: block;
  width: 50px;
  height: 50px;
  text-decoration: none;
}
#page_top a::before{
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  content: '\f106';
  font-size: 25px;
  color: #fff;
  position: absolute;
  width: 25px;
  height: 25px;
  top: -15px;
  bottom: 0;
  right: 0;
  left: 0;
  margin: auto;
  text-align: center;
}

/* 画像スライダー */
.infinit-slider {
  overflow: hidden;
  width: 100%;
  background: #fff;
  padding: 0;
  border-top: 7px solid #fff;
}

.infinit-slider__wrap {
  display: flex;
  width: max-content;
}

.infinit-slider__list {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  animation: infinit-loop 75s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden; /* チラつき防止 */
  perspective: 1000;           /* 3D加速を安定化 */
}

.infinit-slider__item {
  width: 300px;
  margin: 0;
  flex-shrink: 0;
}

.infinit-slider__item img {
  width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

@keyframes infinit-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@media (max-width: 768px) {
  .infinit-slider__item {
    width: 150px;
  }

  .infinit-slider__list {
    animation: infinit-loop 35s linear infinite;
  }
}