@charset "utf-8";

body {
  margin: 0px;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
  overflow-x: hidden; /* 横スクロール抑制 */
  background-color: #ffffff;
  font-family: 'Kosugi Maru', sans-serif;
}

* {
  box-sizing: inherit;
}

/* ヘッダー */
header {
  position: sticky;
  top: 0px;
  width: 100%;
  background-color: #ffffff;
  border-bottom: 2px solid #e67e22;
  z-index: 999; /* 他要素より上に表示 */
  height: 80px; /* ← 例えば固定で60pxにする */
}

.header-top {
  display: flex;
  justify-content:
  space-between; align-items: center;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo-title img {
  height: 75px;
  margin-right: 10px;
}

h1 {
  font-size: 2rem;
  margin: 0rem;
  margin-bottom: 0.5rem;
  color: #e67e22;
}

h4 {
  font-size: 1.25rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: blue;
}

h5 {
  font-size: 1rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: blue;
  text-decoration: none;
}

h6 {
  font-size: 0.75rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: #333;
}


.header-info {
  text-align: right;
  margin-right: 1rem;
  color: #ffffff;
  font-size: 14px;      /* 文字サイズ */
  line-height: 1.2;     /* 行間（行の高さ） */
}

.header-buttons {
  display: flex;
  gap: 10px;
  margin-right: 10px;
  justify-content: flex-end; /* 右寄せ */
  margin-top: -10px;
  z-index: 1000; /* 他要素より上に表示 */

}

.header-buttons a {
  background: white;
  color: #f68c1f !important;
  padding: 0;
  border-radius: 10px;
  text-decoration: none;
  width: 80px; /*  固定幅を指定 */
  height: 25px;               /*  固定高さを指定 */
  line-height: 15px;          /*  行の高さで中央揃え */
  text-align: center; /*  テキストを中央に */
  box-sizing: border-box; /*  paddingを含めて幅を計算 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* 立体感の影 */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.main-nav {
  background-color: #ffffff;
  position: sticky;
  top: 80px; /* ヘッダーの高さと合わせる */
  z-index: 999;
  border-bottom: 1px solid #e0c2a2;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  width: 100%;
  gap: 0px;
}

.main-nav li {
  width: 20%;       /* 固定幅を指定 */
  margin: 0;
  text-align: center; /* 中央揃え（任意） */
  border-top: 1px solid #ffffff;     /* ここを追加：白い横線 */
  border-right: 2px solid #e67e22; /* 白の縦線 */
  border-bottom: 2px solid #e67e22;
}

.main-nav a {
  display: block;
  padding: 5px 15px;
  color: #e67e22;
  text-decoration: none;
  font-weight: bold;
  font-size: 12px;      /* 文字サイズ */
}

.main-nav a:hover {
  background-color: #ffe4c4;
}


.top_main {
  display: flex;
  align-items: center;
}

.top_main img {
  width: 100%;
  height: 50%;
  margin-right: 0;
}

.top_main p1{
    position: absolute;
    color: #f68c1f;
    top:22%;
    left:50%;
    transform: translate(-50%,-50%);
    padding:0;
    margin:0;
    font-size:32px;
}

.top_main p2{
    position: absolute;
    top:30%;
    left:50%;
    transform: translate(-50%,-50%);
    padding:0;
    margin:0;
    font-size:20px;
    color: #ffffff;
}

.main-top-title {
  max-width: 1000px;
  margin: auto;
}

.main-top-title h2 {
  color: #e67e22;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 0.25rem;
  scroll-margin-top: 100px; /* ヘッダーや上部と重ならないように調整 */
}

.main-top-title h3 {
  color: #e67e22;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-title {
  max-width: 1000px;
  margin: auto;
}

.card-title h2 {
  color: #e67e22;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 0.25rem;
  scroll-margin-top: 100px; /* ヘッダーや上部と重ならないように調整 */
}

.card-title h3 {
  color: #e67e22;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.reason-card {
  min-height: 180px;
}

.card-list {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch; /* ← 高さを揃えるために追加 */
}

.card-item {
  background-color: #ffe4c4;
  border: 1px solid #ddd;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 8px;
  border-left: 5px solid #e67e22;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  line-height: 1.3;
  min-width: 0;
  box-sizing: border-box; /* パディング込みで幅を計算 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 下部揃え */
  width: calc((100% - 2rem) / 3); /* gap分を引く */
  aspect-ratio: 3 / 1;
}

.card-item p {
  word-wrap: break-word;  /* 長い単語が折り返される */
  white-space: normal;    /* 改行を許可（デフォルト） */
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-item img {
  width: 100%;
  height: 180px; /* ← 追加して高さを固定 */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.card-list2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.card-link2 {
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card-item2 {
  background-color: #ffe4c4;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 300px; /* ← 高さを統一 */
  box-sizing: border-box;
  padding: 10px;
  transition: transform 0.2s;
}

.card-item2 img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.card-item2 h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.card-item2 p {
  font-size: 0.9rem;
  line-height: 1.4;
  flex-grow: 1;
}

.card-item2:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.card-item-reason-card {
  flex: 0 0 calc((100% / 3) - (1rem * 2 / 3)); /* 幅を3分割（gap考慮） */
  background-color: #ffe4c4;
  border: 1px solid #ddd;
  padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 8px;
  border-left: 5px solid #e67e22;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  line-height: 1.3;
  min-width: 0;
  box-sizing: border-box; /* パディング込みで幅を計算 */
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* 下部揃え */
  height: 100%; /* 高さをカードリンクに合わせる */
  min-height: 100px; /* 任意：高さを統一したい場合 */
}

.card-item-reason-card p {
  word-wrap: break-word;  /* 長い単語が折り返される */
  white-space: normal;    /* 改行を許可（デフォルト） */
  overflow-wrap: break-word;
  word-break: break-word;
}

.card-item-reason-card img {
  width: 100%;
  height: 180px; /* ← 追加して高さを固定 */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.card-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}

/* 念のため :hover や :visited でも色や装飾を維持 */
.card-link:link,
.card-link:visited,
.card-link:hover,
.card-link:active {
  text-decoration: none;
  color: inherit;
}

/* スライダー全体の見た目 */
.scroll-container {
  width: 100%;
  overflow-x: scroll;
  scroll-behavior: smooth;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.scroll-content {
  display: inline-flex;
}

.scroll-item {
  flex: 0 0 300px; /* ← ここも正確に幅指定に揃えると◎ */
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  height: 200px;
  margin-right: 10px;
  background-color: #fff;
  color: #333;
  font-size: 0.75em;
  display: flex;
  justify-content: center;
  align-items: center;
  border-left: 4px solid #e67e22;
  padding: 1rem;
  border-radius: 8px;
  scroll-snap-align: start;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  box-sizing: border-box;
  overflow: hidden;         /* はみ出し防止 */
  text-overflow: ellipsis;  /* （必要に応じて）...を付ける */
  white-space: normal;      /* ← 折り返しを許可 */
  word-break: break-word;   /* ← 長い単語も折り返し */
  flex-direction: column;   /* ↓縦方向に整列するように変更 */
  text-align: left;         /* ← 左寄せにするなら */
}



/* 吹き出し風に */
.scroll-item blockquote {
  margin: 0;
  font-style: italic;
}

/* フッター黒背景＋白文字 */
.scroll-item blockquote footer2 {
  background-color: #333 !important;
  color: #fff !important;
  padding: 0.3rem 0.5rem;
  margin-top: 1rem;
  border-radius: 4px;
  display: inline-block;
}




.service-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}

.service-card {
  position: relative;
  background-color: #ffe4c4;
  border-radius: 10px;
  padding: 20px 20px 20px 24px;
  text-align: left;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  font-family: 'Kosugi Maru', sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: #e67e22;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #e67e22;
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.service-page {
  max-width: 1000px;
  margin: auto;
}

.service-page h2 {
  color: #e67e22;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #e67e22;
  padding-bottom: 0.25rem;
}

.service-page h3 {
  color: #e67e22;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-page p1 {
  color: #e67e22;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-page p2 {
  color: #000;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.service-page div {
  margin-bottom: 3em;
}

.under-buttons {
  display: flex;
  gap: 10px;
  margin-right: 10px;
  justify-content: center; /* 右寄せ */
  margin-top: -10px;

}

.under-buttons a {
  background: #F68C1F;
  color: #fff !important;
  padding: 0;
  border-radius: 10px;
  text-decoration: none;
  width: 180px; /*  固定幅を指定 */
  height: 35px;               /*  固定高さを指定 */
  line-height: 35px;          /*  行の高さで中央揃え */
  text-align: center; /*  テキストを中央に */
  box-sizing: border-box; /*  paddingを含めて幅を計算 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* 立体感の影 */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.faq {
  margin-bottom: 30px;
}

ul.toc {
  background: #f8f8f8;
  padding: 10px 20px;
  border-left:
  5px solid #e67e22;
  margin-bottom: 40px;
}
ul.toc li {
  margin: 10px 0;
}

.line_qr {
  justify-content: center; /* 横方向中央 */
  align-items: center;      /* 縦方向中央 */
  max-width: 1000px;
  margin: auto;
  display: flex;         /* 横並びの基本 */
  align-items: center;   /* 垂直中央揃え */
  gap: 1rem;             /* 要素間スペース */
}
.line_qr h3 {
  color: #e67e22;
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}


.about-logo {
  display: flex;
  align-items: center;
  justify-content: center; /* 横方向中央 */
}

.about-logo img {
  height: 300px;
  margin-right: 10px;
}


/*body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background: #f9f9f9;
  color: #333;
}*/

#latest-news, #news-list {
  max-width: 800px;
  margin: 0 auto 40px;
}

h2 {
  border-bottom: 2px solid #ff7a00;
  padding-bottom: 0.3em;
  color: #ff7a00;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  margin-bottom: 10px;
}

.news-link {
  text-decoration: none;
  color: #007acc;
  cursor: pointer;
}

.news-link:hover {
  text-decoration: underline;
}

button {
  background-color: #ff7a00;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 1em;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 15px;
}

button:hover {
  background-color: #e06900;
}

/* モーダルスタイル */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2em 2.5em;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  white-space: pre-wrap; /* 改行を反映 */
}

#modal-close {
  position: absolute;
  top: 0.5em;
  right: 1em;
  cursor: pointer;
  font-size: 1.8em;
  color: #999;
  transition: color 0.3s;
}

#modal-close:hover {
  color: #ff7a00;
}


/* フッター */
footer {
  position: fixed;
  bottom: 0px;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 0.2rem 0;   /* ✅ さらに縮めた余白 */
  font-size: 0.7rem;    /* ✅ 小さめのフォントで高さも抑える */
  text-align: center;
  line-height: 1.2;     /* ✅ 行の高さも少し詰める */
}


footer nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

footer nav ul li {
    margin-left: 20px;
}

footer nav ul li a {
    text-decoration: none;
    color: white;
}

/* 既存スタイルはそのまま */

@media screen and (max-width: 768px) {
  header {
  width: 100%;
  margin: 0 auto;
  padding: 0 0.25rem;
  box-sizing: border-box;
  height: 70px; /* ← 例えば固定で60pxにする */
  }



  .header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo-title {
    flex-direction: row;
    align-items: center;
  }

  .logo-title img {
    top: 0.5rem;
    width: 25px;
    height: 25px;
    margin-left: 0;
  }

  .logo-title h1 {
    font-size: 0.8rem;
    margin: 0rem;
    margin-bottom: 0rem;
  }

h4 {
  font-size: 0.8rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: blue;
  text-align: right;
}

h5 {
  font-size: 0.6rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: blue;
  text-decoration: none;
  text-align: right;
}

h6 {
  font-size: 0.75rem;
  margin: 0rem;
  margin-bottom: 0rem;
  color: #333;
  text-align: right;
}

  .header-info {
    flex-direction: column;
    position: absolute;
    top: 0.5rem;
    right: 0rem;
    align-items: flex-end;
    text-align: right;
    gap: 0.25rem;
    width: 100%;
    justify-content: flex-start; /* これが"上寄せ" */
  }

.header-buttons {
  display: flex;
  flex-direction: column; /
  gap: 5px;
  margin-right: 5px;
  justify-content: flex-end; /* 右寄せ */
  margin-top: -10px;
  z-index: 1000; /* 他要素より上に表示 */

}

.header-buttons a {
  background: white;
  color: #f68c1f !important;
  padding: 0;
  border-radius: 10px;
  text-decoration: none;
  width: 65px; /*  固定幅を指定 */
  height: 25px;               /*  固定高さを指定 */
  line-height: 25px;          /*  行の高さで中央揃え */
  text-align: center; /*  テキストを中央に */
  box-sizing: border-box; /*  paddingを含めて幅を計算 */
  box-shadow: 0 4px 6px rgba(0,0,0,0.3); /* 立体感の影 */
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.main-nav {
  background-color: #fdf6f0;
  position: sticky;
  top: 70px; /* ヘッダーの高さと合わせる */
  z-index: 999;
  border-bottom: 1px solid #e0c2a2;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

  .main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  gap: 0px;
  }


  .top_main img {
    TOP: 200px;
    height: 150px;
    object-fit: cover;
  }

  .top_main p1 {
    TOP: 150px;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  .top_main p2 {
    TOP: 180px;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
  }

  .card-list {
    flex-direction: column;
    align-items: stretch;
  }

  .card-item {
    padding: 1rem;
    font-size: 1rem;
  }

.card-link {
  display: block;              /* aタグをブロック化して改行を許可 */
  text-decoration: none;
  color: inherit;
  width: 100%;                 /* 親の幅にフィット */
}


/* スマホ対応 */
@media screen and (max-width: 768px) {
  .card-item {
    width: 90%;
    margin: 10px auto;
  }
}

  .scroll-container {
    padding: 0.5rem;
  }

  .scroll-content {
    padding: 0.5rem;
  }

  .scroll-item {
    font-size: 0.9rem;
  }

  .service-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
.service-card {
  width: 30%;
  padding: 1rem;
  margin: 1rem;
  box-sizing: border-box;
}

.faq {
  margin-bottom: 30px;
}


}

@media (max-width: 768px) {
  .service-card {
    width: 90%;
    margin: 1rem auto;
  }
  }
}