html {
  min-height: 100svh;
}

body {
  min-height: 100svh;
  font-family: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
  /* 1. 画像の指定 */
  background-image: url('../img/sunset-city1.webp');
  /* 2. 画像を画面いっぱいに拡大（縦横比を保って全体をカバー） */
  background-size: cover;
  /* 3. 画像の位置を中央に合わせる */
  background-position: center center;
  /* 4. スクロールしても画像を固定する */
  background-attachment: fixed;
  /* 5. 画像が繰り返されないようにする */
  background-repeat: no-repeat;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #0072b1;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(1, 183, 255, 0.4); /* ネオン風の文字発光を入れる */
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}



.pc-only {
  display: block;
}

.sp-only {
  display: none;
}


/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
  min-height: 100svh; 
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

main,
.content {
  flex: 1;                   /* メインコンテンツを自動で引き伸ばし、フッターを一番下に押し下げる */              
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(odd) {
  background-color: rgba(247, 247, 247, 0.7);
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, .1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  color: #333;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
}

.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  text-align: center;
}

.mv-container {
  position: relative;
  padding: 0 20px;
}

.mv-container img {
  width: 100%;
  height: auto;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: .9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.profile-img {
  width: 20%;
  margin-right: 30px;
  border-radius: 50%;
}

.profile-img img {
  border-radius: 50%;
}

.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  font-weight: bold;
  padding: 10px;
  cursor: pointer;
  text-align: center;
  background-color: #4c4c4c;
}

.page-top .material-icons-outlined {
  vertical-align: bottom;
  color: #fff;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #cccccc;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;                         /* 角丸の大きさ */
  border: 1px solid #e6e6e6;                   /* 枠線（太さ 種類 色） */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);  /* 影（シャドウ） */
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/*--------------------------------
 WORKS: 2カラム (860px〜1279pxの時だけ適用)
---------------------------------*/
@media screen and (min-width: 860px) and (max-width: 1279px) {
  .works-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-bottom: -40px;
  }

  .works-item {
    width: calc((100% - 40px) / 2);
    max-width: 400px;
    margin-right: 0 !important;
    margin-bottom: 40px;
    margin-left: 0;
  }

  .works-item:nth-of-type(3n),
  .works-item:nth-of-type(2n) {
    margin-right: 0;
  }
}

/*--------------------------------
 WORKS: 860px未満で1カラム (〜859px)
---------------------------------*/
@media screen and (max-width: 859px) {
  /* アイテム全体の幅を制限し、中央に寄せる */
  .works-item {
    width: 100%;
    max-width: 400px;  /* 最大幅を400pxに制限 */
    margin-left: auto;   /* 左の余白を自動にして中央寄せ */
    margin-right: auto;  /* 右の余白を自動にして中央寄せ */
  }
  
  /* 3カラム時のマージン設定を上書きして中央寄せを効かせる */
  .works-item:nth-of-type(n) {
    margin-right: auto;
  }

  /* 元画像が400pxより小さい場合でも、400pxまで広げて幅を統一する */
  .works-img img {
    width: 100%;
  }
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /*  メインビジュアル */
  .mv {
    height: 40vh;
  }

  .mv-container {
    padding: 0 20px;
  }

  .mv-title {
    font-size: 30px;
  }

  .mv-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .mv-text {
    top: 75%;
    font-size: 14px;
    line-height: 1.7;
  }

/* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-item {
    margin-bottom: 30px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }

  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }
}

/*--------------------------------
 Contact Form
---------------------------------*/
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.plain{
  font-weight: normal;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  background-color: #fff;
  font-size: 15px;
}

.required {
  color: #e74c3c;
  font-size: 0.8em;
  margin-left: 5px;
}

.error {
  color: #e74c3c;
  font-size: 0.85em;
  margin-top: 5px;
  display: none;
}

.submit-btn {
  display: block;
  width: 200px;
  margin: 30px auto 0;
  padding: 12px 0;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #555;
}

/* ページネーション全体の外側（マージンとセンタリング） */
.pagination {
  margin-top: 50px;       /* 実績リストとの間の余白（お好みで40px〜60pxなどに調整してください） */
  text-align: center;     /* インライン要素を中央に寄せる場合 */
  display: flex;          /* フレックスボックスで中央に綺麗に配置する場合 */
  justify-content: center;
  align-items: center;
}

/* ページネーションのリンクや数字の見た目・配置 */
.pagination .nav-links,
.pagination .page-numbers {
  display: inline-flex;
  gap: 10px;              /* 数字や「前へ」「次へ」のボタン同士の間隔 */
  align-items: center;
}

/* 数字やボタン一つひとつのデザイン（もし既存にあれば調整用） */
.pagination a.page-numbers,
.pagination span.page-numbers {
  display: inline-block;
  padding: 8px 14px;
  background-color: #fff; /* 背景色（必要に応じて） */
  border: 1px solid #ddd; /* 枠線 */
  color: #333;
  text-decoration: none;
  border-radius: 4px;     /* 角丸（お好みで） */
  transition: background-color 0.2s;
}

/* ホバー時や現在のページのデザイン */
.pagination a.page-numbers:hover {
  background-color: #f0f0f0;
}

.pagination span.page-numbers.current {
  background-color: #333; /* 現在のページの背景色（例：黒やメインカラー） */
  color: #fff;
  border-color: #333;
}

/* 記事の前後ナビゲーション全体 */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}

/* 左側（未来・新しい記事へ） */
.nav-next {
  order: 1;
}

/* 中央（Works一覧へ） */
.home-link {
  order: 2;
  margin: 0 auto;
}

/* 右側（過去・古い記事へ） */
.nav-previous {
  order: 3;
}

.wp-block-image img {
  border-radius: 10px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}