@charset "UTF-8";

/* =========================================================
   共通スタイル (common.css)
   全ページで読み込まれる共通レイアウト・モジュール
   ========================================================= */

:root {
  --color-black: #333333;
  --color-white: #ffffff;
  --color-gray: #b4b4b4;
  --color-primary: #3e3cdf;
  --color-secondary: #eef26b;
  --color-sub: #9c8a76;
  --color-bg: #e4dfd9;

  --font-family-base: "Jost", "Noto Sans JP", sans-serif;

  --content-width-xs: 720px;
  --content-width-sm: 960px;
  --content-width: 1120px;
  --content-width-lg: 1600px;

  --z-index-back: -1;
  --z-index-default: 1;
  --z-index-header: 100;
  --z-index-modal: 300;
}

body {
  overflow-x: clip;
  font-family: var(--font-family-base);
  color: var(--color-black);
  background-color: var(--color-white);
}

/* =========================================================
   Utility
   ========================================================= */
@media screen and (min-width: 768px) {
  .u_br_sp {
    display: none;
  }
}
.u_br_pc {
  display: none;
}
@media screen and (min-width: 768px) {
  .u_br_pc {
    display: block;
  }
}

@media screen and (min-width: 1080px) {
  .u_br_tab {
    display: none;
  }
}

.u_font-small {
  font-size: 0.75em;
}

/* =========================================================
   Layout Container
   ========================================================= */
.l_container,
.l_container__xs,
.l_container__sm,
.l_container__lg {
  margin-inline: auto;
}

.l_container {
  width: min(90%, var(--content-width));
}
.l_container__xs {
  width: min(90%, var(--content-width-xs));
}
.l_container__sm {
  width: min(90%, var(--content-width-sm));
}
.l_container__lg {
  width: min(90%, var(--content-width-lg));
}

.l_main {
  padding: 60px 0;
}
@media screen and (min-width: 768px) {
  .l_main {
    padding: 100px 0;
  }
}

/* =========================================================
   Header（共通・LP両用）
   ========================================================= */
.l_header {
  overflow-x: hidden;
  background-color: var(--color-white);
  padding: 12px 0;
  top: 0;
  z-index: var(--z-index-header);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.l_header_inner {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
@media screen and (min-width: 768px) {
  .l_header_inner {
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
  }
}

.l_header_logo {
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}
@media screen and (min-width: 768px) {
  .l_header_logo {
    font-size: 18px;
  }
}

.l_header_link {
  text-decoration: none;
  color: var(--color-black);
}

/* ナビ（通常ヘッダー） */
.l_header_nav {
  margin-left: auto;
  margin-right: 30px;
}
.l_header_nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
}
.l_header_nav-list a {
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  color: var(--color-black);
  transition: opacity 0.3s;
}
.l_header_nav-list a:hover {
  opacity: 0.7;
}

/* 問い合わせボタン */

.m_contact-btn_link {
  display: block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;

  text-align: center;
  border-radius: 100vh;
  font-size: 14px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}
@media screen and (min-width: 768px) {
  .m_contact-btn_link {
    padding: 12px 26px;
    font-size: 13px;
  }
}
.m_contact-btn_link:hover {
  opacity: 0.8;
}

/* =========================================================
   Footer
   ========================================================= */
.l_footer {
  background-color: var(--color-black);
  padding: 20px;
  text-align: center;
}

.l_footer-copyright {
  display: block;
  font-size: 11px;
  color: var(--color-gray);
  letter-spacing: 0.05em;
}

/* =========================================================
   追従ボタン（LP共通）
   ========================================================= */
.m_fixed-btn {
  position: fixed;
  bottom: 20px;
  right: 0;
  z-index: var(--z-index-header);
  display: flex;
  align-items: center;
  text-decoration: none;
  transform: scale(0.9);
  transform-origin: right bottom;
  transition: opacity 0.3s;
}
@media screen and (min-width: 768px) {
  .m_fixed-btn {
    bottom: 40px;
    transform: scale(1);
  }
}
.m_fixed-btn:hover {
  opacity: 0.85;
}

.m_fixed-btn_body {
  background-color: #00985b;
  color: var(--color-white);
  padding: 14px 24px 14px 20px;
  border-radius: 8px 0 0 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.m_fixed-btn_text {
  font-size: 13px;
  font-weight: bold;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.05em;
}
@media screen and (min-width: 768px) {
  .m_fixed-btn_text {
    font-size: 15px;
  }
}

/* 追従ボタン 三角矢印 */
.m_fixed-btn_arrows {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  vertical-align: middle;
  margin-left: 2px;
  margin-bottom: 4px;
}

.m_fixed-btn_arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #ffffff;
}

.js_fixed-btn {
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease;
}

.js_fixed-btn.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   ブログ一覧 (home.php)
   ========================================================= */
.p_blog_header {
  margin-bottom: 40px;
}
.p_blog_title {
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 12px;
}

.p_blog_list {
  display: grid;
  gap: 30px;
  list-style: none;
}
@media screen and (min-width: 768px) {
  .p_blog_list {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}
@media screen and (min-width: 1080px) {
  .p_blog_list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.p_blog_link {
  display: block;
  text-decoration: none;
  color: var(--color-black);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.p_blog_link:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.p_blog_thumbnail {
  margin: 0;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.p_blog_thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p_blog_body {
  padding: 20px;
}
.p_blog_date {
  font-size: 12px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 8px;
}
.p_blog_post-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.5;
}
.p_blog_excerpt {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
}
.p_blog_empty {
  text-align: center;
  padding: 60px 0;
  color: var(--color-gray);
}

/* ページネーション */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 50px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  color: var(--color-black);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.page-numbers.current,
.page-numbers:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* =========================================================
   個別投稿 (single.php)
   ========================================================= */
.p_single {
  max-width: 780px;
  margin: 0 auto;
}
.p_single_header {
  margin-bottom: 30px;
}
.p_single_date {
  font-size: 13px;
  color: var(--color-gray);
  display: block;
  margin-bottom: 12px;
}
.p_single_title {
  font-size: 26px;
  font-weight: bold;
  line-height: 1.4;
}
@media screen and (min-width: 768px) {
  .p_single_title {
    font-size: 32px;
  }
}
.p_single_thumbnail {
  margin: 0 0 40px;
  border-radius: 12px;
  overflow: hidden;
}
.p_single_thumbnail-img {
  width: 100%;
  height: auto;
}
.p_single_content {
  font-size: 15px;
  line-height: 1.9;
}
.p_single_content p {
  margin-bottom: 1.5em;
}
.p_single_content h2 {
  font-size: 22px;
  font-weight: bold;
  margin: 2em 0 0.8em;
}
.p_single_content h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 1.8em 0 0.6em;
}
.p_single_footer {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

/* =========================================================
   固定ページ (page.php)
   ========================================================= */
.p_page_header {
  margin-bottom: 30px;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 12px;
}
.p_page_title {
  font-size: 28px;
  font-weight: bold;
}
.p_page_content {
  font-size: 15px;
  line-height: 1.9;
}

/* =========================================================
   お問い合わせページ (page-contact.php)
   ========================================================= */
.p_contact_inner {
  max-width: 680px;
  margin: 0 auto;
}
.p_contact_header {
  text-align: center;
  margin-bottom: 24px;
}
.p_contact_title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
@media screen and (min-width: 768px) {
  .p_contact_title {
    font-size: 36px;
  }
}
.p_contact_desc {
  font-size: 14px;
  line-height: 1.8;
  color: #555;
}
.p_contact_notice {
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 16px 20px;
  border-radius: 6px;
  font-size: 13px;
}

/* =========================================================
   404ページ (404.php)
   ========================================================= */
.p_404 {
  text-align: center;
  padding: 100px 0;
}
.p_404_title {
  font-size: 80px;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 20px;
}
.p_404_text {
  font-size: 16px;
  margin-bottom: 40px;
}
.p_404_btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: opacity 0.3s;
}
.p_404_btn:hover {
  opacity: 0.8;
}
