/* リセット＆基本設定 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  height: 100%;
  margin: 0;
  font-family: "Noto Sans JP", "Helvetica Neue", Segoe UI, Hiragino Kaku Gothic ProN, Hiragino Sans, "ヒラギノ角ゴ ProN W3", Arial, メイリオ, Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: #222;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "kern";
  font-feature-settings: "kern";
  -webkit-font-kerning: normal;
  font-kerning: normal;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* twitter */
.icon-sns-x:before {
  content: '𝕏'!important;
  font-weight: bold!important;
}

/* h2 をアニメーション */
h1, h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  line-height: 1.1;
}
.animate {
  opacity: 1;
  transform: translateY(0);
}

p.date {
  font-size: 1rem;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
  letter-spacing: 0.2em;
  position: relative;
}
p.date span {
  font-size: 1.7rem;
  position: absolute;
  top: -13px;
}

/* アーカイブページの条件表示「カテゴリー：XXXX」など */
.archive p.filter {
  margin: 20px auto 40px;
}

/* ------------------------- */
/* ページネーション */
/* ------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  position: relative;
  }
  
  .pagination span,
  .pagination a {
  display: block;
  width: auto;
  margin: 4px;
  padding: 8px;
  /* border: 1px solid #555; */
  text-decoration: none;
  text-align: center;
  line-height: 16px;
  }
  
  /* ページ番号 */
  .pagination .pager {
  width: 32px;
  }
  
  /* ホバー時 & 現在のページ */
  /* .pagination a:hover, */
  .pagination .current {
  color: #555;
  /* border: 1px solid #555; */
  /* border-radius: 50px; */
  font-weight: bold;
  }
  .pagination a {
    color: #555;
  }
  /* 前へ */
  .pagination a.prev {
  margin-right: 16px;
  }
  /* 次へ */
  .pagination a.next {
  margin-left: 16px;
  }
  /* 最初へ */
  .pagination a.first {}
  /* 最後へ */
  .pagination a.last {}
  
  /* Page x / y */
  .pagination span.page_num {
  display: none;
  }
/* ページネーション　ここまで */

/* ナビゲーション */
nav {
  background-color: rgba(255, 255, 255, 0.95);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
  font-family: 'Montserrat Alternates', sans-serif;
}

nav .logo img {
  max-width: 140px;
  vertical-align: top;
}

nav .menu a {
  margin-left: 1rem;
  text-decoration: none;
  color: #4A90E2;
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.3s ease;
  position: relative;
}

nav .menu a:hover {
  opacity: 0.7;
}

/* 下線を全体に表示するための擬似要素 */
.menu a::after,
.post_link_navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px; /* 下線の位置（必要に応じて調整） */
  width: 100%;
  height: 2px;  /* 下線の太さ */
  background-color: #333;
  transform: scaleX(0);        /* 初期状態は非表示 */
  transform-origin: center;     /* 中心から拡大 */
  transition: transform 0.3s ease;
}

.menu a:hover::after,
.post_link_navigation a:hover::after {
  transform: scaleX(1);  /* ホバー時に全幅に広がる */
}

/* ヒーローセクション */
header {
  position: relative;
  height: 80vh;
  background: url("assets/images/hero-image.jpg") no-repeat center center/cover;
  text-align: left;
}

/* にわか */
.niwaka {
  width: 100px;
  position: absolute;
  right: 0px;
  bottom: 20px;
}
.niwaka img {
  width: 80px;
}

/* 擬似要素でグラデーションオーバーレイを追加 */
header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 薄い青のグラデーション。ここでは上から下へ同じ色の透明な青 */
  background: linear-gradient(
    rgba(74, 144, 226, 0.4),
    rgba(74, 144, 226, 0.1)
  );
  z-index: 1;
}

/* コンテンツはオーバーレイより上に表示 */
header .content {
  position: relative;
  top: 100px;
  z-index: 1;
  max-width: 90%;
  margin: auto;
}

header h1 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 11rem;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.btn-back {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #fff;
  color: #4A90E2;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  border: 2px solid #4A90E2;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.btn-back:hover {
  background-color: #f0f8ff;
}

/* セクション共通 */
section {
  padding: 3rem 2rem;
  /* background-color: #f9fbfd; */
  position: relative;
}

section.second {
  /* padding-bottom: 160px; */
  /* background-image: linear-gradient(-45deg, rgba(255, 255, 255, 0.6), #e0edfb); */
  background: linear-gradient(
    rgba(155, 202, 255, 0.3),
    rgba(74, 144, 226, 0.0)
  );
}

section h2 {
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 5rem;
  font-weight: bold;
  margin-bottom: 2rem;
  color: #4A90E2;
  text-align: center;
  /* position: absolute; */
}

/* section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #4A90E2;
  margin: 0.5rem auto 1rem;
  border-radius: 2px;
} */

section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

/* about 欄*/
#about small {
  font-size: 0.6rem;
}

/* --- サービスセクション詳細（画像対応版） --- */
#services ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  max-width: 1100px;
  margin: 0 auto;
}

#services ul li {
  width: calc(33.333% - 1rem);
  margin-bottom: 1rem;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0,0,0,0.1); */
  display: flex;
  flex-direction: column;  /* 画像→タイトル→説明の縦並び */
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

#services ul li:hover {
  transform: translateY(-5px);
}

/* 画像部分：パネル上部に表示 */
.service-image {
  width: 100%;
  height: 150px;        /* 固定高さ（適宜調整してください） */
  overflow: hidden;
  margin-bottom: 1rem;  /* 下のテキストとの余白 */
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* アスペクト比を保ちながらコンテナにフィット */
}

/* サービス内容部分：タイトルや説明文 */
.service-content {
  text-align: center;   /* 中央寄せにする場合 */
}

.service-content strong {
  display: block;
  font-size: 1.3rem;
  color: #4A90E2;
  margin-bottom: 0.5rem;
}

/* レスポンシブ対応：画面幅768px以下では1列表示 */
@media (max-width: 768px) {
  #services ul li {
    width: 100%;
  }
}


/* レスポンシブ対応：画面幅768px以下では縦並び */
@media (max-width: 768px) {
  #services ul li {
    flex-direction: column;
    text-align: center;
  }
  .service-image {
    margin-right: 0;
    margin-bottom: 1rem;
    flex: 0 0 auto;
  }
}


/* Blog セクション */
#blog {
text-align: center;
}

/* h2 は横並びから外し、1行全体に表示 */
#blog h2 {

}

/* article を3列レイアウトに */
#blog div {
  display: flex; /* 子要素がフレックスアイテムとして並ぶ */
  align-items: center;     /* 子要素を縦方向にも中央に配置 */
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: auto;
}
#blog div article {
  width: calc(33.333% - 1rem);
  display: flex;
  /* flex: 1 0 calc(33.333% - 1rem); */
  flex-direction: column;  /* 画像→タイトル→説明の縦並び */
  /* margin-right: 1.5rem; */
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
  position: relative;
}
#blog a.toblog {
  background: #4A90E2;
  margin: auto;
  padding: 15px 40px;
  display: inline-block;
  color: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
#blog a.toblog:hover {
  transform: translateY(-3px);
}

/* 中程度の画面（例：992px以下）では2列 */
@media (max-width: 768px) {
  #blog div article {
    width: 100%;
  }
}

/* 3列の各行で、右端のアイテムの余白をリセット */
#blog article:nth-of-type(3n) {
  margin-right: 0;
}

#blog article:hover {
  transform: translateY(-5px);
}

/* 記事内のリンク設定 */
#blog article a {
  text-decoration: none;
  color: inherit;
  display: block;
}
#blog article a:hover{
  /* text-decoration: underline; */
}

/* 画像部分 */
#blog article a > div.thumbnail {
  width: 100%;
  height: 200px;  /* お好みで調整 */
  overflow: hidden;
}

#blog article a > div.thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* 日付とテキスト */
#blog article a p {
  margin: 0.5rem 1rem;
  font-size: 1rem;
  text-align: initial;
}
#blog article a p.date {
  position: absolute;
  top: -17px;
  right: 90px;
}

/* お問い合わせフォーム */
#contact .form {
  max-width: 600px;
  margin: auto;
  margin-bottom: 10px;
  padding: 30px;
  background-color: #fff7cf;
  border-radius: 5px;
  box-shadow: 0 3px 0 #a58900;
}

#contact .form h2 {
  margin: 0 auto 20px;
  text-align: center;
  font-weight: 800;
  font-size: 4rem;
  padding: 0;
  color: initial;
}
#contact h2::after {
  background-color: initial;
}
#contact .form input.mail {
  max-width: 300px;
  font-size: 1.1rem;
}
#contact textarea {
  width: 100%;   /* 横幅300px */
  height: 150px;  /* 高さ150px */
}

.btn.btn-warning {
  box-shadow: 0 5px 0 #925600 !important;
  width: 200px !important;
  font-weight: bold !important;
  font-size: 1.1rem !important;
}
/* アニメーション */
.contactArea .form h2 small {
  font-size: 1rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  line-height: 1;
  color: #777;
}
.contactArea .form h2 small.animate {
  opacity: 1;
  transform: translateY(0);
}

/* フッター */
footer {
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  /* background-color: #f1f3f5; */
}
footer .snsArea {
  margin-bottom: 10px;
}
footer .snsArea img {
  width: 18px;
  margin: 0 3px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  header h1 {
    font-size: 4.6rem;
    letter-spacing: 0.04em;
  }
  header {
    height: 46vh;
  }
  header p { font-size: 1.5rem; }
  nav { padding: 0.5rem 1rem; }
  nav .menu a { margin-left: 0.5rem; font-size: 1rem; }
  #contact .form h2 {
    font-size: 3rem;
  }
}

/* bootstrap */
.form-group {
  margin-bottom: 15px;
} 
label {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 5px;
  font-weight: 700;
}
.form-control {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  -webkit-transition: border-colorease-in-out .15s, -webkit-box-shadowease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-colorease-in-out .15s, box-shadowease-in-out .15s;
}

input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
input {
  line-height: normal;
}
button, input, optgroup, select, textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}
.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.btn-warning {
  color: #fff;
  background-color: #f0ad4e;
  border-color: #eea236;
}
.btn {
  display: inline-block;
  padding: 6px 12px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  -ms-touch-action: manipulation;
  touch-action: manipulation;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  background-image: none;
  border: 1px solid transparent;
  border-radius: 4px;
}
input, button, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, html input[type=button], input[type=reset], input[type=submit] {
  -webkit-appearance: button;
  cursor: pointer;
}
button, select {
  text-transform: none;
}
button {
  overflow: visible;
}
button, input, optgroup, select, textarea {
  margin: 0;
  font: inherit;
  color: inherit;
}
.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}
pre {
  display: block;
  padding: 9.5px;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.42857143;
  color: #333;
  word-break: break-all;
  word-wrap: break-word;
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  border-radius: 4px;
}

code, kbd, pre, samp {
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
code, kbd, pre, samp {
  font-family: monospace, monospace;
  font-size: 1em;
}
pre {
  overflow: auto;
}