/*
Theme Name: incrementone
*/

body {
  font-size: 18px;
  font-family: 'Noto Sans JP', sans-serif;
  margin: 0;
  color: #222;
  background: #f8f8f8;
}

h2 {
  color: #133c62;
  font-size: 2em;
  display: inline-block;
  position: relative;
  padding-bottom: 0.3em;
  margin-bottom: 1em;
}

h2::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%; /* 下線の長さは調整可 */
  height: 4px;  /* 下線の太さ */
  background: linear-gradient(to right, #1e6fb8, #133c62);
  border-radius: 2px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  padding: 18px 0;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  color: #133c62;
  text-decoration: none;
}

/* ヘッダー横並びレイアウト */
.header-flex {
  padding: 0 10%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- メインメニュー横並び・ボタン風・リストマーク非表示 --- */
.main-nav {
  /* 横並びを崩さないために追加 */
  flex-shrink: 0;
  margin: 0 0 0 auto;
}
.main-nav .nav-list {
  display: flex !important; /* 強制横並び */
  flex-direction: row !important;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-list ul {
  display: contents;
}

.main-nav .nav-list li {
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
  display: flex; /* ボタン高さを揃えるため */
  align-items: center;
}
.main-nav .nav-list li a {
  display: block;
  padding: 10px 28px;
  border-radius: 8px;
  border: 2px solid #1e6fb8;
  background: #fff;
  color: #1e6fb8;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-width: 90px;
  text-align: center;
}
.main-nav .nav-list li a:hover,
.main-nav .nav-list li.current-menu-item a {
  background: #1e6fb8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,111,184,0.07);
  border-color: #133c62;
}

/* レスポンシブ対応 */
@media (max-width: 800px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-nav .nav-list {
    flex-direction: column !important;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
  }
  .main-nav .nav-list li a {
    width: 100%;
    min-width: 0;
  }
}

/* --- 以下は既存のデザイン --- */

.hero {
  background: linear-gradient(90deg, #e1f0fc 0%, #fdf6e3 100%);
  text-align: center;
  padding: 60px 0 40px 0;
}

.site-title {
  font-size: 2.5em;
  color: #133c62;
  margin-bottom: 10px;
}

.site-description {
  font-size: 1.3em;
  color: #555;
}

.intro {
  background: #fff;
  padding: 44px 0 30px 0;
}

.service-section {
  background: #f6fafd;
  padding: 50px 0 60px 0;
}

.service-section h2 {
  text-align: center;
  color: #133c62;
  margin-bottom: 36px;
  font-size: 2em;
}

.service-boxes {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: center;
}

.service-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 18px 0 #e9eef2;
  padding: 28px 22px;
  width: 260px;
  text-align: center;
}

.site-footer {
  background: #133c62;
  color: #fff;
  text-align: center;
  padding: 22px 0;
  margin-top: 40px;
  font-size: 0.96em;
}

@media (max-width: 800px) {
  .service-boxes {
    flex-direction: column;
    align-items: center;
  }
}

/* 会社概要ページ */
.company-hero {
  background: linear-gradient(90deg, #e1f0fc 0%, #fdf6e3 100%);
  padding: 50px 0 30px 0;
  text-align: center;
}
.company-hero h1 {
  color: #133c62;
}

.company-info {
  background: #fff;
  padding: 40px 0;
}

.company-table {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px #e9eef2;
}
.company-table th, .company-table td {
  border: 1px solid #e5e5e5;
  padding: 15px 20px;
  text-align: left;
}
.company-table th {
  background: #f6fafd;
  color: #133c62;
  width: 140px;
}

/* ブログ一覧ページ */
.blog-hero {
  background: #e1f0fc;
  padding: 48px 0 28px 0;
  text-align: center;
}
.blog-hero h1 {
  color: #133c62;
}

.blog-list {
  background: #fff;
  padding: 40px 0;
}

.posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 32px;
}

.post-item {
  display: flex;
  gap: 18px;
  background: #f6fafd;
  border-radius: 10px;
  box-shadow: 0 2px 6px #e9eef2;
  padding: 18px;
  transition: box-shadow 0.2s;
}
.post-item:hover {
  box-shadow: 0 4px 14px #d6e5f2;
}
.post-thumb {
  flex-shrink: 0;
}
.post-info {
  flex-grow: 1;
}
.post-title {
  font-size: 1.2em;
  color: #133c62;
  margin-bottom: 8px;
}
.post-date {
  font-size: 0.95em;
  color: #999;
  margin-bottom: 12px;
  display: block;
}
.post-excerpt {
  color: #333;
  font-size: 1em;
}

.pagination {
  margin-top: 36px;
  text-align: center;
}

@media (max-width: 650px) {
  .company-table th, .company-table td {
    padding: 10px;
  }
  .post-item {
    flex-direction: column;
    gap: 10px;
  }
}

/* お問い合わせページ */
.contact-hero {
  background: linear-gradient(90deg, #e1f0fc 0%, #fdf6e3 100%);
  padding: 48px 0 28px 0;
  text-align: center;
}
.contact-hero h1 {
  color: #133c62;
}

.contact-form-section {
  background: #fff;
  padding: 40px 0;
}
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background: #f6fafd;
  border-radius: 10px;
  box-shadow: 0 2px 8px #e9eef2;
  padding: 28px 22px;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #133c62;
  font-weight: bold;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #c3d6e8;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  background: #fff;
}
.form-group textarea {
  resize: vertical;
}
.form-group .required {
  color: #e55039;
  font-size: 0.95em;
}
.form-group button[type="submit"] {
  background: #1e6fb8;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  transition: background 0.2s;
}
.form-group button[type="submit"]:hover {
  background: #133c62;
}
.contact-success {
  color: #158467;
  background: #e7fbe9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 14px;
  text-align: center;
}
.contact-error {
  color: #e55039;
  background: #fbe9e7;
  padding: 10px;
  border-radius: 6px;
  margin-top: 14px;
  text-align: center;
}

/* 404ページ用 */
.notfound-hero {
  background: linear-gradient(90deg, #e1f0fc 0%, #fdf6e3 100%);
  padding: 80px 0 60px 0;
  text-align: center;
}
.notfound-title {
  font-size: 2.6em;
  color: #133c62;
  margin-bottom: 18px;
  font-weight: bold;
}
.notfound-message {
  font-size: 1.2em;
  color: #555;
  margin-bottom: 32px;
}
.notfound-home-btn {
  display: inline-block;
  padding: 12px 36px;
  border-radius: 8px;
  border: 2px solid #1e6fb8;
  background: #fff;
  color: #1e6fb8;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.1em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.notfound-home-btn:hover {
  background: #1e6fb8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(30,111,184,0.07);
  border-color: #133c62;
}

/* indexページの記事一覧 */
.popular-articles {
  background: #fff;
  padding: 40px 0 36px 0;
}
.popular-title {
  font-size: 1.6em;
  color: #133c62;
  margin-bottom: 28px;
  text-align: center;
}
.popular-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 900px;
  margin: 0 auto 30px auto;
}
.popular-item {
  background: #f6fafd;
  border-radius: 10px;
  box-shadow: 0 2px 8px #e9eef2;
  display: flex;
  gap: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.popular-item a {
  display: flex;
  gap: 16px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}
.popular-thumb img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 0;
  background: #e5e5e5;
  display: block;
}
.popular-info {
  padding: 12px 0;
  flex: 1;
}
.popular-article-title {
  font-size: 1.07em;
  color: #133c62;
  margin-bottom: 8px;
  font-weight: bold;
}
.popular-desc {
  font-size: 0.98em;
  color: #444;
}
.more-link-wrap {
  text-align: center;
  margin-top: 18px;
}
.more-link {
  display: inline-block;
  padding: 10px 38px;
  background: #1e6fb8;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.2s;
}
.more-link:hover {
  background: #133c62;
}

/* レスポンシブ */
@media (max-width: 650px) {
  .popular-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .popular-thumb img {
    width: 90px;
    height: 70px;
  }
}

/* カテゴリーページ用 */
.category-tree-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
}
.category-tree-list .cat-item {
  margin-bottom: 1.8em;
  padding-left: 0;
}
.cat-link {
  display: flex;
  align-items: center;
  gap: 1.2em;
  padding: 1.2em 2em;
  background: #f0f6fb;
  border-radius: 2em;
  font-size: 1.35em;
  text-decoration: none;
  color: #175782;
  box-shadow: 0 2px 12px rgba(30,111,184,.06);
  transition: background 0.2s, box-shadow 0.2s;
}
.cat-link:hover {
  background: #e0efff;
  color: #0b3559;
  box-shadow: 0 6px 24px rgba(30,111,184,.13);
}
.cat-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1e6fb8;
  flex-shrink: 0;
}
.cat-img-placeholder {
  display: inline-block;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e7e7e7;
  border: 2px dashed #b5b5b5;
}
.cat-name {
  font-weight: bold;
  font-size: 1em;
  letter-spacing: 0.04em;
}
.child-cat-list {
  margin-top: 1.2em;
  margin-left: 3.2em;
  padding-left: 1.5em;
  border-left: 2px solid #b5d4f4;
  list-style: none;
}
@media (max-width: 600px) {
  .cat-link {
    font-size: 1em;
    padding: 1em 1em;
  }
  .cat-img, .cat-img-placeholder {
    width: 38px;
    height: 38px;
  }
}

/* 技術一覧表示スライドショー */
.tech-content-list-section {
  margin: 40px 0;
  padding: 24px 0;
  background: #f6f8fa;
  border-radius: 8px;
}
.tech-content-title {
  text-align: center;
  margin-bottom: 24px;
}
.tech-content-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tech-content-catbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 100px;
  padding: 16px 24px 20px 24px;
  font-size: 1.2em;
  font-weight: bold;
  color: #1e6fb8;
  background: #fff;
  border: 3px solid #1e6fb8;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.tech-content-catbox:hover {
  background: #e6f0fa; /* 薄い青 */
}

.catbox-label {
  margin-bottom: 12px;
  text-align: center;
}

.catbox-image img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* 前の記事、次の記事 */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  margin: 2em 0 0 0;
  padding: 0 2%;
  gap: 16px;
}
.post-nav-previous,
.post-nav-next {
  flex: 1;
  text-align: center;
}
.post-nav a {
  display: inline-block;
  padding: 0.8em 1.2em;
  background: #1e6fb8;
  color: #fff;
  border-radius: 2em;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.post-nav a:hover {
  background: #174f7a;
}

/* 外部リンクのスタイル */
.outer-link {
  display: inline-block;
  font-size: 16px;
  color: #0073aa; /* WordPress管理画面風の青色 */
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-left: 1.2em;
}

.outer-link::before {
  position: absolute;
  left: 0;
  color: #0073aa;
}

.outer-link:hover {
  text-decoration: underline;
  color: #005177;
}
