@charset "utf-8";

/* ---------------------------
  共通設定
---------------------------- */
body {
  font-family: "Yu Gothic", sans-serif;
  background: #FFFCE1;
  margin: 0;
  color: #472A18;
  letter-spacing: 0.05em;
}
.inner {
  max-width: 1200px;
  margin: 0 auto 100px;
  padding: 0 20px;
}
section {
  margin-bottom: 100px;
}
@media screen and (max-width: 768px) {
  .inner{
    margin-bottom: 50px;
  }
}

/* ---------------------------
  ヘッダー
---------------------------- */
header {
  background: white;
  border-bottom: 3px solid #85A222;
  padding: 20px 20px 10px;
  height: 80px;
  position: fixed; /* ← ここを追加 */
  top: 0;           /* ← ここを追加 */
  left: 0;          /* ← ここを追加 */
  width: 100%;      /* ← ここを追加 */
  z-index: 1000;    /* ← 必ず他の要素より前面に */
}
main {
  margin-top: 80px; /* headerの高さ分 */
}
header .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1em;
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  padding: 0;
}
nav ul li {
  cursor: pointer;
}
.logo{
  width: 20%;
}
.logo img {
  width: 100%;
  height: auto;
}
/* レスポンシブ */
@media screen and (max-width: 768px) {
  header .inner {
    flex-wrap: wrap;
    padding: 0;
  }
  .logo {
    width: 30% !important;
}
}

/* ---------------------------
  ハンバーガーメニュー
---------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #472A18;
  border-radius: 2px;
}

@media screen and (max-width: 768px) {
  .hamburger {
    display: flex;
    margin-left: auto;
  }
  nav {
    display: none;
    width: 100%;
    background: white;
    position: absolute;
    top: 80px;
    left: 0;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  }
  nav.open {
    display: block;
  }
  nav ul {
    flex-direction: column;
  }
  nav ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    background: white;
  }
}

/* ---------------------------
  ヒーローエリア
---------------------------- */
.hero {
  background: #f6f6e6 url(../images/content-header.jpg) center/cover no-repeat;
  padding: 60px 20px;
  text-align: left;
  font-weight: bold;
  height: 410px;
  position: relative;
}
.hero .inner {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80%;
  height: 3.2rem;
}
.hero h1,
.hero p {
  color: #85A222;
}
.hero h1 {
  font-size: 40px;
}
.hero p {
  font-size: 24px;
  margin-bottom: 10px;
}

@media screen and (max-width: 768px) {
  .hero {
    height: 300px;
    margin-bottom: 50px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero p {
    font-size: 16px;
  }
  .hero .inner {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
}

/* ---------------------------
  ニュースリスト
---------------------------- */
.news-list-section {
  background: white;
  border: 4px solid #85A222;
  border-radius: 40px;
  padding: 60px 40px;
  margin-bottom: 100px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}
.news-heading {
  flex: 0 0 200px;
  text-align: center;
}
.news-heading h2,
.news-heading p {
  color: #85A222;
  font-weight: bold;
  margin: 0;
}
.news-heading h2 {
  font-size: 40px;
}
.news-heading p {
  font-size: 20px;
  margin-top: 5px;
}
.news-list-wrapper {
  flex: 1;
}
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  flex-direction: row;
}
.news-list li a {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  padding: 15px 0;
  flex-direction: row;
}
.news-list li a:hover {
  opacity: 0.7;
}
.news-list .category {
  display: inline-block;
  background: #85A222;
  color: white;
  border-radius: 9999px;
  padding: 5px 15px;
  font-size: 14px;
  font-weight: bold;
  min-width: 90px;
  text-align: center;
}
.news-list time {
  font-weight: bold;
  white-space: nowrap;
  color: #472A18;
}
.news-list .title {
  color: #472A18;
  margin: 0;
  font-weight: normal;
}

@media screen and (max-width: 768px) {
  .news-list-section {
    gap: 30px;
    padding: 40px 20px;
    margin-bottom: 0;
  }
  .news-heading h2 {
    font-size: 28px;
  }
  .news-heading p {
    font-size: 16px;
  }
  .news-list li,
  .news-list li a {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* ---------------------------
  お問い合わせ
---------------------------- */
.contact {
  text-align: center;
}
.contact h2 {
  color: #472A18;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 50px;
}
.contact h2 span {
  color: #85A222;
}
.contact p.lead {
  margin-bottom: 50px;
}
.contact-box {
  background: #fff;
  border-radius: 30px;
  padding: 50px 70px;
  border: 2px solid #85a222;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}
.contact-box h3 {
  font-size: 24px;
  font-weight: bold;
  color: #85a222;
  margin-bottom: 10px;
}
.contact-box p {
  margin-bottom: 8px;
}
.contact-cta {
  width: 30%;
}
.contact-cta .btn {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 10px;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}
.contact-cta .btn.mail {
  background: #85a222;
  color: #fff;
}
.contact-cta .btn.tel {
  background: #fff;
  color: #85a222;
  border: 1px solid #85a222;
}

@media screen and (max-width: 768px) {
  .contact h2 {
    font-size: 32px;
  }
  .contact-box {
    flex-direction: column;
    padding: 30px 20px;
    align-items: flex-start;
    gap: 20px;
  }
  .contact-cta {
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .contact h2 {
    font-size: 28px;
  }
  .contact-box {
    padding: 20px;
  }
  .contact-box h3 {
    font-size: 20px;
  }
  .contact-box p,
  .access p {
    font-size: 13px;
  }
  .contact-cta .btn {
    font-size: 14px;
    padding: 10px;
  }
}

/* ---------------------------
  フッター
---------------------------- */
.footer-inner {
  background: #85A222;
}
.footer-info {
  color: #fff;
  padding: 20px 0;
  display: flex;
  justify-content: space-around;
  max-width: 1200px;
  margin: 0 auto 50px;
}
.footer-nav {
  width: 40%;
}
.footer-access-info {
  width: 60%;
  display: flex;
}
.footer-univ-logo {
  width: 50%;
  margin-right: 20px;
}
.footer-univ-logo img {
  width: 100%;
}
footer .copy-right {
  background: #553c2d;
  color: #fff;
  text-align: center;
  padding: 20px;
}

@media screen and (max-width: 768px) {
  .footer-info {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }
  .footer-nav,
  .footer-access-info {
    width: 100%;
  }
  .footer-access-info {
    flex-direction: column;
  }
  .footer-univ-logo {
    width: 100%;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .footer-univ-logo img {
    width: 80%;
    max-width: 200px;
  }
}
