/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
html {
	scroll-padding-top: 75px;
}
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 75px 0 0;
    background-color: #f4f4f4;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    z-index: 1000;
}

.header.scrolled {
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.logo {
    font-size: 1.5rem;
    color: #ff7b3a;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
}

.nav-links li {
    margin-left: 1.5rem;
}

.nav-links li a {
    color: #ff7b3a;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #ffab76;
}

/* メインビジュアル */
.hero {
    background-color: #ff7b3a;
    color: white;
    text-align: center;
    padding: 6rem 0;
    /*margin-top: 60px;*/ /* ヘッダー高さのマージン */
}

.news,
.about,
.services,
.contact,
.form-section {
    margin: 4rem auto;
    padding: 2rem;
    max-width: 800px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    /*text-align: center;*/
}

h2 {
	margin: 0 0 30px;
	text-align: center;
}

.service {
    margin-bottom: 2rem;
}

.service i {
    font-size: 2rem;
    color: #ff7b3a;
    margin-bottom: 1rem;
}

.footer {
    background-color: #ff7b3a;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.form-section form {
    display: flex;
    flex-direction: column;
}

.form-section label {
    margin: 0.5rem 0 0.2rem;
}

.form-section input, 
.form-section textarea {
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.form-section button {
    padding: 0.75rem;
    background-color: #ff7b3a;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-section button:hover {
    background-color: #ffab76;
}

.privacy-policy {
    margin: 4rem auto;
    max-width: 800px;
    padding: 2rem;
}

.policy-content {
    /*max-height: 150px;
    overflow-y: scroll;*/
    border: 1px solid #ccc;
    padding: 1rem;
}

/* スムーズスクロールのための調整 */
:target::before {
    content: "";
    display: block;
    height: 60px; /* ヘッダーの高さ分のスペースを確保 */
    margin-top: -60px; /* ヘッダーの高さ分のマージンを調整 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hero {
        padding: 4rem 2rem;
    }

    .about,
    .services,
    .contact,
    .form-section,
    .privacy-policy {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.5rem 1rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .about,
    .services,
    .contact,
    .form-section,
    .privacy-policy {
        padding: 1rem 0.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links li a {
        font-size: 0.875rem;
    }
}

.contact-desc {
	margin: 0 0 30px;
}

/* 投稿管理用 */
.news-section .news-list {
  margin-bottom: 2.5em;
}
@media screen and (max-width: 479.98px) {
  .news-section .news-list {
    margin-bottom: 2em;
  }
}
.news-detail {
  padding: 1.6rem 1rem;
  border-top: 1px dotted #000000;
  border-bottom: 1px dotted #000000;
}
@media screen and (min-width: 1100px), print {
  .news-detail {
    padding: 3rem 2rem;
  }
}
.news-detail-section .news-date {
  margin-bottom: 0.7em;
}
.news-topics {
  padding: 2rem 2rem 2rem 2rem;
  border-bottom: 1px dotted #000000;
  display: flex;
  align-items: flex-start;
}
@media screen and (max-width: 639.98px) {
  .news-topics {
    flex-direction: column;
    padding: 1.5rem 1rem;
  }
}
.news-topics:first-child {
  border-top: 1px dotted #000000;
}
.news-link {
  display: block;
  color: #007FFF;
  line-height: 1.2;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  -webkit-font-feature-settings: "palt";
          font-feature-settings: "palt";
  transition: color 0.3s ease;
}
@media screen and (max-width: 767.98px) {
  .news-link {
    font-size: 1.4rem;
  }
}
.news-link:hover {
  text-decoration: none;
  color: #BD0000;
}
.news-date {
  display: block;
  font-size: 1.6rem;
  color: #000000;
  line-height: 1.2;
  -webkit-font-feature-settings: "palt";
          font-feature-settings: "palt";
  width: 7em;
  font-weight: 400;
  letter-spacing: 0.15em;
  margin-right: 1rem;
  transition: color 0.3s ease;
}
@media screen and (max-width: 767.98px) {
  .news-date {
    font-size: 1.4rem;
  }
}
@media screen and (max-width: 575.98px) {
  .news-date {
    margin-right: 0;
    margin-bottom: 0.5em;
  }
}
.news-title {
  line-height: 1.2;
  word-break: break-all;
  word-wrap: break-word;
  transition: color 0.3s ease;
}
@media screen and (max-width: 575.98px) {
  .news-title {
    margin-left: 0;
    display: block;
  }
}
.news-body {
  word-break: break-all;
  word-wrap: break-word;
  text-align: left;
}
.news-text {
  word-break: break-all;
  word-wrap: break-word;
}
.news-text p,
.news-text div {
  word-break: break-all;
  word-wrap: break-word;
}
.news-more {
  text-align: center;
  margin-top: 1.5em;
}
.news-more__area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 3.5em -1em 2em 0;
}
@media screen and (max-width: 767.98px) {
  .news-more__area {
    margin: 2em -1em 1em 0;
  }
}
.news-back {
  text-align: center;
  margin-top: 3em;
}
@media screen and (max-width: 767.98px) {
  .news-back {
    margin-top: 2em;
  }
}
.news-detail-section .news-date {
  margin-top: 0.3em;
}

.topicsArea #category_name {
  background-color: #ff7b3a;
  border-radius: 5px;
  margin: 0 0 5px;
  padding: 3px 10px;
  line-height: 1.5;
  display: inline-block;
  color: #fff;
}