@charset "utf-8";

/* すべての要素の前後において、疑似要素を生成可能にする */
*,
::before,
::after {
  box-sizing: border-box;
  /* レイアウト崩れ防止 */
  margin: 0;
  padding: 0;
}

/* 共通要素 */
body {
  font-family: "Noto Sans JP", sans-serif;

  color: rgb(45, 45, 45);
  background-color: #fffdef;
}

a {
  text-decoration: none;
  color: rgb(45, 45, 45);
}

img {
  max-width: 100%;
  /* 親要素の幅を超えない */
  height: auto;
  /* アスペクト比を維持して高さを自動調整 */
}

ul li {
  list-style-type: none;
}



/* header */
.header-inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 241, 221);
  position: fixed;
  top: 0;
  z-index: 10;
}

.header-inner img {
  width: 300px;
}

.header-navi ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-navi ul li {
  margin-right: 1.5rem;
  font-size: 20px;
  font-weight: bold;
}

.header-navi ul li a:hover {
  color: rgb(255, 125, 4);
  transition: 0.2s;
}

.nav-form a {
  color: rgb(249, 91, 0);
}

.fv {
  height: 90vh;
  width: auto;
  background-image: url(../image/fv.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  top: 10vh;
}

.fv img {
  display: block;
  margin: 5rem auto;
  width: 400px;
  position: absolute;
  top: 30%;
  right: 0;
  left: 0;
  transform: translateY(-30%);
}

main {
  width: 80%;
  margin: 0 auto;
  max-width: 1400px;
}

/* コピー */
.copy {
  text-align: center;
  margin-top: 6rem;
}

.copy-detail {
  margin-top: 4rem;
}

/* <!-- 無料見積誘導 --> */

.btn-box {
  margin-top: 4rem;
  text-align: center;
  background-color: rgb(255, 241, 221);
  padding: 1rem 2rem;
  border-radius: 2rem;
}

.btn-box2 {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.btn-box3 p {
  margin-top: 0.5rem;
  font-size: 18px;
}

.btn-box3 a {
  display: inline-block;
  padding-right: 2rem;
  padding-left: 2rem;
  line-height: 44px;
  border-radius: 22px;
  background-color: rgb(249, 91, 0);
  margin-top: 0.5rem;
  font-weight: bold;
  color: #fff;
}

.btn-box3 a:hover {
  background-color: rgb(18, 62, 119);
  transition: 0.2s;
  color: #fff;
}

/* カテゴリー共通CSS */

.category {
  margin-top: 8rem;
  text-align: center;
}

.category-title::after {
  display: block;
  content: '';
  width: 350px;
  height: 1px;
  background-color: rgb(45, 45, 45);
  margin: 0 auto;
}

/* inview */

.fadein {
  opacity: 0;
  transform: translate(0, 100px);
  transition: all 1s;
}

.fadein.active {
  opacity: 1;
  transform: translate(0, 0);
}

/* サービス一覧 */

.area {
  font-size: 16px;
  margin-top: 0.5rem;
}

.menu-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;
  row-gap: 2rem;
  column-gap: 2rem;
}

.one-menu p {
  font-weight: bold;
}

.tap-text {
  display: inline-block;
  font-size: 14px;
  background-color: rgb(255, 241, 221);
  /* border: 3px solid rgb(255, 241, 221); */
  padding: 0.2rem 1rem;
  border-radius: 1rem;
}

.menu-grid a:hover {
  transform: scale(1.1);
  transition: 0.5s;
}

.coment-btn p {
  font-size: 18px;
  margin-top: 2rem;
}

.coment-btn a {
  display: inline-block;
  padding-right: 2rem;
  padding-left: 2rem;
  line-height: 60px;
  border-radius: 30px;
  background-color: rgb(249, 91, 0);
  margin-top: 2rem;
  font-weight: bold;
  font-size: 26px;
  color: #fff;
}

.coment-btn a:hover {
  background-color: rgb(18, 62, 119);
  transition: 0.2s;
}

/* 事例紹介 */

.beforeafer-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  margin-top: 2rem;
  column-gap: 3rem;
}

.beforeafer-title {
  border-bottom: 3px dotted rgb(45, 45, 45);
  display: inline;
  font-weight: bold;
  font-size: 20px;
}

.small-beforeafer {
  font-size: 14px;
  margin-top: 1rem;
}

.one-beforeafer {
  background-color: rgb(255, 241, 221);
  padding: 1rem 2rem;
  margin-top: 2rem;
}

.one-beforeafer img {
  object-fit: cover;
  aspect-ratio: 1 / 1;
  margin-top: 0.5rem;
}

.beforeafer-detail {
  font-size: 16px;
  margin-top: 1rem;
  text-align: left;
}

.name {
  font-size: 14px;
  text-align: right;
}

.sita {
  border-right: 1px solid rgb(45, 45, 45);
  border-bottom: 1px solid rgb(45, 45, 45);
  width: 2rem;
  height: 2rem;
  margin: 1rem auto 2rem;
  transform: rotate(45deg);
}

/* 会社の特徴 */
.category-taka img {
  width: 400px;
}

.taka-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, 200px);
  justify-content: center;
  margin-top: 2rem;
  column-gap: 3rem;
}

.one-taka {
  margin-top: 2rem;
}

.one-taka img {
  border-radius: 50%;
  border: 10px solid rgb(255, 241, 221);
}

.one-taka p {
  font-weight: bold;
}


/* 流れ */
.one-flow {
  margin-top: 2rem;
}

.one-flow-title {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  border-bottom: 5px dotted rgb(45, 45, 45);
  font-size: 25px;
}

.step {
  font-weight: bold;
  font-size: 35px;
  margin-right: 2rem;
  padding-left: 2rem;
  display: flex;
}

.number {
  color: rgb(255, 125, 4);
}

.yajirushi {
  width: 20%;
  height: 50vh;
  position: relative;
  /* background-color: #fff; */
}

.yajirushi-1 {
  width: 25px;
  height: 41vh;
  background-color: rgb(255, 125, 4);
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
}

.yajirushi-2 {
  width: 50px;
  height: 10vh;
  background-color: rgb(255, 125, 4);
  clip-path: polygon(0% 0%, 100% 0%, 50% 60%);
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: 0;
}

.one-flow-detail {
  margin-top: 1rem;
  display: flex;
  width: 100%;
  justify-content: flex-end;
  font-size: 16px;
  text-align: left;
}

.flex-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.flex-2 p {
  width: 60%;
}

.flex-2 img {
  width: 40%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

/* キャンセルについて */

.category-cancel table {
  margin: 2rem auto 0;
  border-collapse: collapse;
  /* 2重線を1本にする */
  border: 1px solid rgb(45, 45, 45);
  text-align: left;
}

.category-cancel table td {
  border: 1px solid rgb(45, 45, 45);
  padding: 0.5rem;
}

.category-cancel table tr td:first-child {
  background-color: rgb(255, 241, 221);
}

/* よくある問い合わせ */

.QA-box {
  margin-top: 2rem;
}

.one-QA {
  margin-top: 2rem;
  text-align: left;
  padding: 1rem;
  border-radius: 1rem;
  background-color: #fff;
}

.one-QA p:first-child {
  font-weight: bold;
}

/* ご挨拶 */
.category-hello img {
  margin-top: 2rem;
  border-radius: 50%;
  width: 300px;
  border: 10px solid rgb(255, 241, 221);
}

.category-hello p {
  font-size: 18px;
  padding: 2rem;
  border-radius: 1rem;
  background-color: #fff1dd;
}

/* 新着記事 */
.news-box {
  margin-top: 2rem;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3列に並べる */
  gap: 20px;
  /* マス同士の間隔 */
}

.post-item {
  display: flex;
  flex-direction: column;
  /* 中身を縦並びにする */
  height: 100%;
  /* 高さを揃える */
  background: #fff;
  border-radius: 12px;
  /* 角を少し丸く */
  border: 1px solid #eee;
  /* 薄い枠線 */

  /* 軽い影（横、縦、ぼかし、広がり、色） */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);

  transition: transform 0.3s, box-shadow 0.3s;
  /* 動きを滑らかに */
  overflow: hidden;
  text-align: left;
}

.post-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  padding: 4px;
}

.post-link {
  text-decoration: none;
  /* 下線を消す */
  color: inherit;
  /* 文字色を親要素に合わせる */
  display: block;
  /* 範囲を広げる */
  transition: 0.3s;
  /* ホバー時の動きを滑らかに */
}

.post-link:hover .post-item {
  transform: translateY(-5px);
  /* 5px上に浮かす */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  /* 影を少し強くする */
}

.post-content h2 {
  /* 2行まで表示し、それ以降は「...」にする設定 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;

  /* 行の高さを固定して、1行でも2行でも高さを一定にする */
  height: 3em;
  /* 1.5em(行間) × 2行分 */
  line-height: 1.5;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.post-content p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  /* 3行で止める */
  overflow: hidden;

  height: 4.5em;
  /* 1.5em × 3行分 */
  line-height: 1.5;
  font-size: 0.9rem;
  color: #666;
}

.post-content {
  display: flex;
  flex-direction: column;
  /* コンテンツ内も縦並び */
  flex-grow: 1;
  /* 余ったスペースを自動で埋める */
  padding: 15px;
}

.post-content .date {
  margin-top: auto;
  /* ★これが魔法の1行！上の要素を押し上げて一番下に配置する */
  padding-top: 15px;
  /* 本文との間に少し隙間を作る */
  font-size: 0.8rem;
  color: #999;
  text-align: right;
  /* 日付は右寄せが一般的 */
}


/* ページネーション全体の配置 */
.pagination {
  display: flex;
  justify-content: center;
  /* 中央寄せ */
  gap: 10px;
  /* ボタン同士の間隔 */
  margin: 40px 0;
  /* 上下の余白 */
}

/* 通常のボタン（リンク） */
.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #fff1dd;
  border: 1px solid rgb(255, 241, 221);
  /* 枠線の色 */
  border-radius: 50%;
  /* 角を少し丸める */
  transition: 0.3s;
  /* 変化を滑らかに */
}

/* マウスを乗せたとき（ホバー） */
.pagination a:hover {
  background-color: rgb(18, 62, 119);
  border-color: rgb(18, 62, 119);
  color: #fff;
}

/* 今いるページのボタン（activeクラス） */
.pagination a.active {
  background-color: rgb(249, 91, 0);
  /* ★好きな背景色に変えてください */
  color: #fff;
  /* ★文字の色を白にする */
  border-color: rgb(249, 91, 0);
  /* 枠線も同じ色に */
  pointer-events: none;
  /* クリックできないようにする */
}

/* ... の部分がリンクにならないように、少し余白を整える */
.pagination .ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #999;
}




/* --------------------各記事ページの設定--------------------- */

/* パンくずリスト */
.breadcrumb {
  padding: 10px 20px;
  background-color: #fff1dd;
  /* ほんのり背景色をつける */
  font-size: 0.85rem;
  padding-top: 4rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: #666;
}

/* リンクの間（セパレーター）に「＞」を入れる */
.breadcrumb li:not(:last-child)::after {
  content: '>';
  margin: 0 10px;
  color: #ccc;
  font-size: 0.7rem;
}

.breadcrumb a {
  color: rgb(18, 62, 119);
  /* リンクの色 */
}

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

/* 最後の項目（今いるページ）は太字にする */
.breadcrumb li:last-child {
  font-weight: bold;
  color: #333;
}


/* 記事内容 */
.article-header .date {
  display: block;
  text-align: right;
}

.article-detail {
  max-width: 800px;
  /* 記事が横に広がりすぎないように制限 */
  margin: 0 auto;
  /* 中央寄せ */
  padding: 20px 20px;
}


.article-header h1 {
  font-size: 2rem;
  margin: 10px 0 20px;
}

.article-header h1::after,
.article-content::after {
  content: '';
  display: block;
  border-bottom: 2px dotted #666;
  margin-top: 0.5rem;
}

.article-content h2 {
  margin-top: 3rem;
}

.article-content h3 {
  margin-top: 1rem;
}

.article-detail img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.article-content p {
  line-height: 1.8;
  /* 行間を広げて読みやすく */
}

.article-line {
  margin-bottom: 0.5rem;
  display: flex;
  text-align: center;
  margin-top: 2rem;
}

.article-line-QR {
  margin-left: 1rem;
}

.article-line p {
  font-size: 12px;
  margin-bottom: 0.3rem;
}

.article-line a {
  display: inline-block;
  color: #fff;
  text-align: center;
  padding: 12px 27px;
  border-radius: 50px;
  font-weight: bold;
  background-color: #06C755;
}

.article-line img {
  width: 130px;
}

/* 一覧に戻るボタン */
.back-to-home a {
  display: inline-block;
  padding: 12px 40px;
  background-color: rgb(18, 62, 119);
  color: #fff1dd;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: bold;
  border: 2px solid rgb(18, 62, 119);
  margin-top: 4rem;
}

.back-to-home a:hover {
  background-color: #fff1dd;
  color: rgb(18, 62, 119);
  transition: 0.3s;
}

/* footer */
footer {
  width: 100%;
  background-color: #fff1dd;
  margin-top: 6rem;
}

footer img {
  width: 400px;
  margin: 2rem 0;
}

.footer-navi ul {
  display: flex;
  flex-wrap: wrap;
  padding-top: 2rem;
  padding-left: 1rem;
  padding-right: 1rem;
  justify-content: space-around;
}

.footer-navi ul li {
  font-size: 20px;
  font-weight: bold;
}

.footer-navi ul li a:hover {
  color: rgb(255, 125, 4);
  transition: 0.2s;
}

.footer-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-detail a {
  margin-bottom: 1rem;
}

/* ライン、インスタ、電話ボタン */
.three-btn {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
}

.maru {
  margin-top: 1rem;
}

.maru img {
  width: 50px;
}

.tel-btn img {
  border-radius: 30%;
}

/* ---------------PCの時、電話リンクオフ----------- */
@media (min-width:801px) {
  a[href^="tel:"] {
    pointer-events: none;
  }
}


/* ---------スマートフォン用--------- */
@media (max-width:800px) {

  main {
    font-size: 18px;
  }

  .header-navi ul {
    display: block;
    line-height: 2.7rem;
  }

  /* ハンバーガーメニューのスタイル */
  .hamburger {
    position: fixed;
    top: 28px;
    right: 20px;
    width: 30px;
    cursor: pointer;
    z-index: 10;
    /* メニューより前に表示 */
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: rgb(255, 125, 4);
    /* ボタンの色 */
    margin: 5px 0;
    transition: 0.4s;
  }

  /* メニューのスタイル */
  nav {
    padding-left: 1.5rem;
    margin-top: 5.2rem;
    padding-bottom: 0.5rem;
    text-align: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: auto;
    background-color: #fff1dd;
    opacity: 0;
    /* 初期状態は透明 */
    pointer-events: none;
    /* クリック不可 */
    transition: opacity 0.5s ease;
    /* フェードインのアニメーション */
    box-sizing: border-box;
    z-index: 1000;
  }

  /* メニューが開いたとき */
  nav.open {
    opacity: 1;
    /* 不透明にする */
    pointer-events: auto;
    /* クリック可能にする */
  }

  /* バツ印に変わるハンバーガーボタン */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    /* 真ん中の線を透明にする */
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* <!-- fv --> */
  .fv img {
    width: 300px;
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    transform: translateY(-50%);
  }

  .copy-title {
    font-size: 18px;
  }

  .copy-detail {
    margin-top: 1rem;
  }

  /* <!-- 無料見積誘導 --> */
  .btn-box {
    margin-top: 2rem;
    padding: 1rem 0.5rem;
  }

  .btn-box p {
    font-weight: bold;
  }

  .btn-box2 {
    display: block;
    margin-top: 1rem;
  }

  .btn-box3 p {
    font-weight: 500;
    font-size: 14px;
  }

  .btn-box3 a {
    margin-top: 0.3rem;
    margin-bottom: 1rem;
  }

  /* カテゴリー共通CSS */
  .category {
    margin-top: 4rem;
  }

  .category-title::after {
    width: auto;
  }

  /* サービス一覧 */
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    row-gap: 2rem;
    column-gap: 2rem;
  }

  /* 流れ一覧 */
  .one-flow {
    margin-top: 1rem;
  }

  .one-flow-title {
    display: block;
    text-align: center;
  }

  .step {
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .one-flow-detail {
    flex-direction: column-reverse;
    justify-content: center;
    align-items: center;
  }

  .yajirushi {
    width: auto;
    height: 10vh;
  }

  .yajirushi-1 {
    display: none;
  }

  .yajirushi-2 {
    position: static;
    margin-top: 1rem;
  }



  .flex-2 {
    display: block;
  }

  .flex-2 p,
  .flex-2 img {
    width: auto;
    max-width: 250px;
  }

  .flex-2 p {
    margin-bottom: 1rem;
  }


  /* 記事一覧 */

  /* --- スマホ用の設定（1列スクロール） --- */
  .post-grid {
    display: flex;
    /* gridよりflexの方が横1列は簡単です */
    overflow-x: auto;
    /* 横スクロールを許可 */
    scroll-snap-type: x mandatory;
    /* ピタッと止まる設定 */
    -webkit-overflow-scrolling: touch;
    /* 滑らかスクロール */

    gap: 15px;
    padding: 20px 15px;
    list-style: none;
  }

  .article-line {
    display: block;
  }

  .article-line-QR {
  margin-left: 0;
  margin-top: 8px;
}


  .article-line  .article-line-QR img {
    width: 40%;
  }


  /* 記事カード1個の横幅を決める */
  .post-link {
    flex: 0 0 70%;
    /* 1枚の幅を画面の70%にする（次が少し見える） */
    scroll-snap-align: start;
  }

  /* スクロールバーをオシャレに（または隠す） */
  .post-grid::-webkit-scrollbar {
    height: 5px;
  }

  .post-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 10px;
  }

  /* 各記事のページ */
  /* パンくずリスト */
  .breadcrumb {
    padding-top: 4rem;
  }

  .article-detail {
    width: 100%;
    padding: 5px;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-detail img {
    width: 100%;
  }

  .article-content h2 {
    font-size: 1.5rem;
  }

  .back-to-home {
    text-align: center;
  }

  /* footer */
  .footer-navi ul {
    display: block;
    text-align: center;
  }

  .footer-navi ul li {
    margin-top: 0.5rem;
  }

  .footer-detail img {
    width: 300px;
  }
}