@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 div.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;
}
nav ul li {
  cursor: pointer;
}
.logo{
  width: 20%;
}
.logo img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  header div.inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0;
  }
  .logo {
    width: 30% !important;
}
}

/* ---------------------------
  ハンバーガーメニュー
---------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.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;
    padding: 0;
    margin: 0;
  }
  nav ul li {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
    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;
}
section.hero div.inner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 80%;
  height: 3.2rem;
}
.hero h1 {
  color: #85A222;
  font-size: 40px;
}
.hero p {
  font-size: 24px;
  color: #85A222;
  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;
  }
  section.hero div.inner{
    width: 100%;
  }
}
@media screen and (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }
  .hero p {
    font-size: 14px;
  }
}

/* ---------------------------
  注意書き
---------------------------- */
.note {
  font-weight: bold;
  font-size: 20px;
  line-height: 1.5;
}
.note a {
  color: #00a0c6;
  text-decoration: underline;
}

@media screen and (max-width: 768px) {
  .note {
    font-size: 18px;
  }
}
@media screen and (max-width: 480px) {
  .note {
    font-size: 16px;
  }
}

/* ---------------------------
  見出しと項目
---------------------------- */
.under-line {
  font-size: 32px;
  font-weight: bold;
  letter-spacing: 0.1em;
  padding-bottom: 5px;
  border-bottom: 2px solid #85A222;
  color: #85A222;
  margin-top: 50px;
  margin-bottom: 30px;
}
.item {
  background: #ffffff;
  padding: 10px 15px;
  margin: 0;
  border-left: 4px solid #dce17a;
}
.item .year {
  font-weight: bold;
  color: #555;
}
.item .text em {
  font-style: italic;
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .under-line {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
}

/* ---------------------------
  お問い合わせ
---------------------------- */
.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: #ffffff;
  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-box .contact-cta .btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
}
.contact-box .contact-cta .btn.mail {
  background: #85a222;
  color: #fff;
  display: block;
  width: 100%;
  text-align: center;
}
.contact-box .contact-cta .btn.tel {
  background: #fff;
  color: #85a222;
  border: 1px solid #85a222;
  display: block;
  width: 100%;
  text-align: center;
}

@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-box .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: auto;
  margin-bottom: 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 div.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;
  }
}
