/*
Theme Name: ASAPTEMPLATE
Theme URI: 
Author: 
Description: A WordPress theme converted from HTML template
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gocamp
*/

@charset "UTF-8";
* {
  box-sizing: border-box;
}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  vertical-align: baseline;
  background: transparent;
}
body {
  font-size: 14px;
  line-height: 1.8;
/*   font-family: -apple-system, BlinkMacSystemFont, 'Noto Sans JP', "ヒラギノ角ゴ ProN W3", 'ヒラギノ角ゴ W3', "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif; */
	font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  color: #333;
  padding-top: 80px; /* Add padding to account for fixed header */
}

h1, h2, h3, h4 {
  line-height: 1.5;
}

.heading-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 0.5em;
}

a {
/*   color: #75af57; */
	color:#003366;
  text-decoration: none;
  transition: opacity 0.3s;
}

a:hover {
  opacity: 0.8;
}

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

ul {
  padding: 0;
  list-style: none;
}

section, article {
  /* max-width: 1140px; */
  padding: 0 15px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .heading-title {
    font-size: 36px;
  }
  body {
    padding-top: 70px; /* Adjust padding for tablet screens */
  }
}

@media screen and (min-width: 992px) {
  body {
    font-size: 16px;
    padding-top: 80px; /* Adjust padding for desktop screens */
  }
  .heading-title {
    font-size: 48px;
  }
}

/*-------------------------------------------
 ヘッダー・フッター
-------------------------------------------*/
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px 15px 10px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease; /* Add smooth transition effect */
}

.header-logo img {
  max-height: 60px;
  width: auto;
}

/* WordPress Custom Logo */
.custom-logo-link .custom-logo {
  max-height: 60px;
  width: auto; /* Maintain aspect ratio */
  height: auto; /* Override potential height attributes */
}

/* Header styles when scrolled down */
header.scrolled {
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust logo size when header is scrolled */
header.scrolled .header-logo img {
  /* width: 80%; */ /* Removed percentage width to respect max-height */
  transition: all 0.3s ease;
  max-height: 60px!important; /* Ensure max-height is respected even when scrolled */
}

/* Adjust navigation when header is scrolled */
header.scrolled .header-gnav a {
  padding: 0.5em 0.8em;
}

/* Header styles when scrolling up */
header.scroll-up {
  transform: translateY(0);
}

/* Header styles when scrolling down (not at top) */
header.scrolled:not(.scroll-up) {
  transform: translateY(-100%);
}

.header-button {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  justify-content: center;
  align-items: center;
  border: none;
  width: 75px;
  height: 75px;
  background-color: transparent;
  z-index: 100;
}

.header-button .icon {
  display: block;
  position: relative;
  top: 0;
  margin: 0 auto;
  width: 24px;
  height: 2px;
  background-color: #333;
  transition: .3s ease;
}

.header-button .icon:before, .header-button .icon:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  transition: all .3s;
  background-color: #333;
}

.header-button .icon:before {
  top: -8px;
}

.header-button .icon:after {
  top: 8px;
}

.header-gnav {
  position: fixed;
  right: 0;
  top: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateX(100%);
  transition: .3s ease;
}

.header-gnav ul {
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.header-gnav a {
  color: #333;
  font-weight: normal;
  font-size: 17px;
  display: block;
  padding: 0.8em;
}

.open .header-button .icon {
  background-color: transparent;
}

.open .header-button .icon:before, .open .header-button .icon:after {
  top: 0;
}

.open .header-button .icon:before {
  transform: rotate(45deg);
}

.open .header-button .icon:after {
  transform: rotate(-45deg);
}

.open .header-gnav {
  transform: translateX(0);
}

.top .icon {
  background-color: #eee;
}

.top .icon:before, .top .icon:after {
  background-color: #eee;
}

.top.open .icon {
  background-color: transparent;
}

.top.open .icon:before, .top.open .icon:after {
  background-color: #000;
}

@media screen and (min-width: 768px) {
  header {
    align-items: center;
  }
  .header-button {
    display: none;
  }
  .header-gnav {
    margin-right: -0.8em;
    transform: translateX(0);
    position: relative;
    background: none;
  }
  .header-gnav ul {
    flex-direction: row;
    justify-content: flex-end;
  }
}

@media screen and (min-width: 992px) {
  header {
    padding-top: 30px;
    padding-bottom: 20px; /* Add more padding at the bottom for larger screens */
  }
  header .header-logo {
    flex: none;
  }
  header .header-logo img {
    /* width: 360px; */ /* Removed fixed width to respect max-height */
  }
}

footer {
  margin: 70px 0 10px;
  text-align: center;
}

/*-------------------------------------------
 メインビジュアル
-------------------------------------------*/
/* 新規追加箇所 */
.hero {
  /* background: url("../img/photo-hero.jpg") no-repeat center center/cover; */
  /* max-width: 1300px; */
  max-width:100vw;
  height: 420px;
  margin: 0 auto; /* Removed negative margin since we have padding-top on body */
  display: flex;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  z-index: 10;
}
.hero .mv-visual-area{
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height:600px;
  z-index: -1;
}
.mv-visual {
  width: 100%;
  height: 0;
  padding-bottom: 76.7777%;
  background-image: url(../img/top/mv.jpg);
  background-size: cover;
}

.hero h1 {
  font-size: 31px;
  letter-spacing: 0.03em;
  margin-top: 0;
  /* Removed color to allow customizer setting to work */
}

.hero p {
  font-size: 16px;
  /* Removed color to allow customizer setting to work */
  line-height: 1.5;
  font-weight: bold;
  letter-spacing: 0.01em;
  margin-top: 0;
}

.mv-copy {
  position: absolute;
  top: 48%;
  right: 30px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
/*   font-family: 'Playfair Display', 'Noto Serif JP', serif; */
	font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  /* Removed hardcoded color to allow customizer setting to work */
	  text-shadow:
        0   0   4px  rgba(255,255,255,0.7),   /* 内側の細い光 */
        0   0  10px  rgba(255,255,255,0.6),   /* 中間の光 */
        0   0  20px  rgba(0,  255,255,0.5),   /* 外側に淡く伸びる光（薄水色） */
        0   0  35px  rgba(0,  255,255,0.4),
        0   0  55px  rgba(0,  255,255,0.3);
}
.mv-copy p{
	 text-shadow:
        0   0   4px  rgba(255,255,255,0.7),   /* 内側の細い光 */
        0   0  10px  rgba(255,255,255,0.6),   /* 中間の光 */
        0   0  20px  rgba(0,  255,255,0.5),   /* 外側に淡く伸びる光（薄水色） */
        0   0  35px  rgba(0,  255,255,0.4),
        0   0  55px  rgba(0,  255,255,0.3);
}


@media screen and (min-width: 992px) {
  .hero {
    height: 600px;
  }
  .hero h1 {
    font-size: 60px;
    letter-spacing: 0.05em;
    margin-bottom: 0.25em;
  }
  /* Removed hardcoded font-size to allow customizer setting to work */
  
  .hero p {
    font-size: 24px;
    letter-spacing: 0.04em;
  }
  /* Removed hardcoded font-size to allow customizer setting to work */
}

@media screen and (min-width: 768px) {
  .hero {
    margin-top: 0;
  }
}

.section-medication {
  background: #fafafa;
  padding: 80px 0;
  padding-bottom:110px;
  position: relative;
}

.section-wrap.-has-margin-full {
  padding: 0 8vw;
}

/* Add offset for anchor links to account for fixed header */
#products {
  margin-top: -50px;
  padding-top: 50px;
}
.section-wrap {
  max-width: 1366px;
  padding: 0 7.142vw;
  margin: 0 auto;
}
header.section-index{
  display:block;
  z-index: 10; /* Ensure this is lower than the main header's z-index of 100 */
  position: relative;
  background-color: transparent;
  box-shadow: none;
}
.mission-lead {
  font-size: 18px;
  text-align: center;
}
.section-index {
  margin-bottom: 40px;
}
.section-index .section-index-subttl {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 1.6rem;
  color: #9aa3a8;
  letter-spacing: 1.5px;
}
p {
  margin-top: 20px;
  margin-bottom: 0;
}
.section-index {
  font-size: 3.8rem;
  line-height: 1;
  position: relative;
  margin-bottom: 70px;
  text-align: center;
  z-index: 10; /* Ensure this is lower than the main header's z-index of 100 */
}
.section-index h2 {
  font-size: 4rem;
}
.section-index h2 {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-weight: 400;
  font-size: 3.6rem;
  line-height: 1.6;
  margin-top: 20px;
  letter-spacing: 3px;
}

.top-service-item {
  text-align: center;
  margin-top: 100px;
  margin-bottom: 100px;
}
.section-index-lv03 {
/*   font-family: 'Playfair Display', 'Noto Serif JP', serif; */
	font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1.6;
}

.top-service-protein {
  /* display: -webkit-box;
  display: -ms-flexbox; */
  display: flex;
  margin-top: 50px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.top-service-protein .top-service-protein-item.js-effect.-on {
  -ms-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.top-service-protein .top-service-protein-item.js-effect {
  -ms-transform: translateY(40px);
  transform: translateY(40px);
  transition: .5s;
  opacity: 0;
}
.top-service-protein .top-service-protein-item:first-of-type, .top-service-protein .top-service-protein-item:nth-of-type(2) {
  margin-bottom: 15px;
}

.top-service-protein .top-service-protein-item {
  width: 48%;
  display: flex;
  flex-direction: column;
}
.top-service-protein .top-service-protein-item--logo {
  max-width: 100px;
  max-height: 70px;
  margin-right: auto;
  margin-left: auto;
  margin-top: auto;
  display: flex;
}
.top-service-protein .top-service-protein-item p {
  text-align: center;
  margin-top: auto;
}

.top-service-protein .top-service-protein-item img {
  max-width: 400px;
  max-height: 300px;
  margin: 0 auto;
}

.buttonArea {
  margin-top: 40px;
}
.top-service-item .buttonArea .button {
  margin: 0 auto;
}

.button {
  display: block;
  width: 340px;
  letter-spacing: .05em;
}
.button a {
  font-weight: normal;
  line-height: 1;
  position: relative;
  display: block;
  padding: 24px;
  text-align: center;
  color: #54585a;
  background-color: #fff;
  border: 1px solid #54585a;
  font-size: inherit;
}
.section-common {
  /* margin: 120px 0; */
}

.section-news {
  background: #fafafa;
  padding: 80px 0;
}
.section-index h2 {
  font-size: 40px;
}
.section-index h2 {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-weight: 400;
  /* font-size: 3.6rem; */
  line-height: 1.6;
  margin-top: 20px;
  letter-spacing: 3px;
}
.news-list-area {
  max-width: 1000px;
  margin: 0 auto;
}
.news-list-area dl.info-list.news-list {
  position: relative;
}

.news-list-area dl:last-of-type {
  border-bottom: none;
}
dl.info-list:last-of-type {
  border-bottom: 1px solid #e9eef1;
}
dl.info-list {
  width: 100%;
  border-top: 1px solid #e9eef1;
  padding: 30px 0;
  display: table;
}
dl dt, dl dd {
  margin: 0;
  padding: 0;
}
dl {
  margin: 0;
  padding: 0;
}
dl.info-list.news-list dt {
  width: 28%;
}
dl.info-list.news-list dt, dl.info-list.news-list dd {
  box-sizing: border-box;
}
dl.info-list dt {
  width: 30%;
  font-weight: bold;
  padding-right: 3%;
}
dl.info-list dt, dl.info-list dd {
  display: table-cell;
  vertical-align: top;
}

.category-label {
  border: 1px solid #d6dfe2;
  color: #a2aaad;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 6px;
  margin-right: 15px;
  width: 100px;
  display: inline-block;
  line-height: 1;
  text-align: center;
}

.category-label {
  width: 122px;
  font-size: 13px;
  color: #9aa3a8;
  border: 1px solid #9aa3a8;
}

.button.ctr {
  margin: 0 auto;
}

/* 新規追加箇所end */

/*-------------------------------------------
 フィーチャー・リスト
-------------------------------------------*/
.top-feature {
  text-align: center;
  position: relative;
  z-index: 1;
}

.top-feature .top-feature_box {
  padding: 0 30px 20px;
}

.top-feature h2 {
  font-size: 28px;
  margin-bottom: 0.5em;
}

.top-feature p {
  text-align: left;
}

.top-feature a {
  padding-bottom: 0.2em;
  border-bottom: 2px solid #75af57;
  font-size: 18px;
}

.top-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.top-list li {
  width: 100%;
  padding: 0 10px;
  margin-bottom: 30px;
}

.top-list li a {
  display: flex;
  align-items: center;
}

.top-list li img {
  flex: 0 1 90px;
}

.top-list li .top-list_info {
  margin-left: 20px;
}

.top-list li time {
  font-size: 14px;
  color: #333;
}

.top-list li .top-list_title {
  margin-top: 0.25em;
  line-height: 1.4;
}

@media screen and (min-width: 768px) {
  .top-feature {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    background-color: #f3f2e8;
    margin-top: -50px;
    padding-top: 100px;
    padding-bottom: 50px;
  }
  .top-feature .top-feature_box {
    background-color: #fff;
    max-width: 600px;
    padding: 0 60px 30px 40px;
  }
  .top-feature img {
    margin-top: 40px;
    margin-left: -30px;
    max-width: 48vw;
  }
  .top-feature:last-of-type {
    flex-direction: row-reverse;
    padding-top: 50px;
    padding-bottom: 80px;
  }
  .top-feature:last-of-type .top-feature_box {
    padding-right: 40px;
    padding-left: 60px;
  }
  .top-feature:last-of-type img {
    margin-right: -30px;
    margin-left: 0;
  }
  .top-list li {
    width: 50%;
  }
}

/*-------------------------------------------
 ニュースページ
-------------------------------------------*/
.news-article {
  margin-top: 20px;
  max-width: 800px;
}

.news-article .news-thumb {
  text-align: center;
}

.news-article h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 0.5em;
}

.news-article time {
  font-size: 12px;
}

.news-article h3, .news-article h4 {
  margin-top: 2em;
  margin-bottom: 0.5em;
}

.news-article h3 {
  font-size: 19px;
}

.news-article h4 {
  font-size: 17px;
}

.news-article figure {
  text-align: center;
  margin: 0;
}

.news-article figcaption {
  font-size: 14px;
}

.news-article blockquote {
  border-left: 5px solid #dcd6cb;
  margin-left: 0;
  padding-left: 0.8em;
}

.news-article ul, .news-article ol {
  padding-left: 1.5em;
}

.news-article ul {
  list-style: disc;
}

@media screen and (min-width: 768px) {
  .news-article h2 {
    font-size: 24px;
  }
  .news-article time {
    font-size: 14px;
  }
}

/*-------------------------------------------
 よくある質問ページ
-------------------------------------------*/
.faq-section {
  max-width: 800px;
}

.faq-section .faq-content {
  margin-bottom: 60px;
}

.faq-section h2, .faq-section p {
  margin-top: 1.2em;
  display: flex;
}

.faq-section h2:before, .faq-section p:before {
  font-size: 40px;
  font-weight: bold;
  line-height: 1;
  margin-top: -0.16em;
  margin-right: 15px;
}

.faq-section h2:before {
  content: "Q";
}

.faq-section p:before {
  content: "A";
  color: #4EB0B5;
}

@media screen and (min-width: 768px) {
  .faq-section h2, .faq-section p {
    margin-top: 2em;
  }
  .faq-section h2:before, .faq-section p:before {
    margin-top: -0.2em;
    font-size: 55px;
  }
}

/*-------------------------------------------
 カテゴリーページ
-------------------------------------------*/
/* Category header styling */
.boxed-layout-header {
  padding: 0px 0;
  background-color: #fafafa;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-filter-gradient {
  background: linear-gradient(45deg, rgba(0, 51, 102, 1) 0%, rgba(0, 102, 204, 1) 100%);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  z-index: -1;
}

.hestia-title {
  font-family: 'Playfair Display', 'Noto Serif JP', serif;
  font-size: 36px;
  color: #fff;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.category-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.8;
  color: #fff;
}

/* Main content area */
.main-raised {
  margin: -60px 30px 0;
  border-radius: 6px;
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.hestia-blogs {
  padding: 60px 0;
}

/* Card styling */
.card-blog {
  margin-bottom: 30px;
}

.card-plain {
  background: transparent;
  box-shadow: none;
}

.card-blog .row {
  margin: 0;
}

.card-blog .card-image {
  margin-bottom: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.card-blog .card-image:hover {
  transform: translateY(-3px);
}

.card-blog .card-image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.card-blog .card-image:hover img {
  transform: scale(1.05);
}

.card-blog .category {
  margin-bottom: 10px;
  display: block;
}

.card-blog .category a {
  color: #003366;
  font-size: 14px;
  font-weight: 500;
  margin-right: 5px;
}

.card-blog .card-title {
  font-size: 22px;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 15px;
}

.card-blog .card-title a {
  color: #333;
  transition: color 0.3s ease;
}

.card-blog .card-title a:hover {
  color: #003366;
}

.card-blog .card-description {
  color: #666;
  margin-bottom: 15px;
}

.card-blog .posted-by {
  font-size: 13px;
  color: #999;
}

.card-blog .posted-by a {
  color: #003366;
  font-weight: 500;
}

/* Pagination styling */
.pagination-container {
  margin: 40px 0 20px;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  color: #333;
  font-weight: bold;
  transition: all 0.3s ease;
}

.pagination .page-numbers.current {
  background-color: #003366;
  color: #fff;
  border-color: #003366;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #f5f5f5;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .main-raised {
    margin: -30px 10px 0;
  }
  
  .hestia-blogs {
    padding: 30px 0;
  }
  
  .card-blog .card-title {
    font-size: 18px;
  }
  
  .hestia-title {
    font-size: 28px;
  }
  
  .category-description {
    font-size: 14px;
  }
}

/*-------------------------------------------
 シングルページ
-------------------------------------------*/
/* Single post header styling */
.single .boxed-layout-header {
  padding: 60px 0;
  position: relative;
}

.single .header-filter {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.single .header-filter:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.single .hestia-title {
  color: #fff;
  font-size: 36px;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page .hestia-title {
  color: #fff;
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
/*   font-family: 'Playfair Display', 'Noto Serif JP', serif; */
	font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
}

/* Main content area */
.single .main-raised {
  margin: -60px 30px 0;
  border-radius: 6px;
  box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.single .blog-post {
  padding: 40px 0;
}

.single .blog-post .section-text {
  padding: 0;
}

.single .page-content-wrap {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.page .page-content-wrap {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.single .page-content-wrap h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
}

.single .page-content-wrap h4 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 20px;
  font-weight: 500;
}

.single .page-content-wrap p {
  margin-bottom: 20px;
}

.single .page-content-wrap img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 4px;
}

.single .page-content-wrap ul, 
.single .page-content-wrap ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.single .page-content-wrap li {
  margin-bottom: 10px;
}

/* Single Post Container */
.single-post-container {
  padding: 30px;
}

/* Post Thumbnail */
.post-thumbnail {
  margin-bottom: 30px;
  border-radius: 6px;
  overflow: hidden;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
}

/* Post Tags */
.post-tags {
  margin: 30px 0;
  font-size: 14px;
}

.post-tags .tags-title {
  font-weight: bold;
  margin-right: 10px;
}

.post-tags a {
  display: inline-block;
  margin: 0 5px 5px 0;
  padding: 5px 10px;
  background-color: #f5f5f5;
  border-radius: 3px;
  color: #666;
  transition: all 0.3s ease;
}

.post-tags a:hover {
  background-color: #003366;
  color: #fff;
}

/* Social Sharing */
.social-sharing {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.share-buttons {
  display: flex;
  justify-content: center;
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 10px;
  border-radius: 50%;
  color: #fff;
  transition: all 0.3s ease;
}

.btn-twitter {
  background-color: #1da1f2;
}

.btn-facebook {
  background-color: #3b5998;
}

.btn-linkedin {
  background-color: #0077b5;
}

.btn-social:hover {
  opacity: 0.8;
  transform: translateY(-3px);
}

/* Post Navigation */
.post-navigation {
  margin: 30px 0;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  max-width: 48%;
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 5px;
}

.post-navigation .nav-title {
  font-size: 16px;
  font-weight: 500;
}

/* Related Posts */
.related-posts {
  margin: 40px 0;
}

.related-posts h3 {
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  text-align: center;
}

.related-posts .card-blog {
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-posts .card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-posts .card-image {
  height: 180px;
  overflow: hidden;
}

.related-posts .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-posts .card-blog:hover .card-image img {
  transform: scale(1.05);
}

.related-posts .content {
  padding: 15px;
}

.related-posts .category {
  font-size: 12px;
  margin-bottom: 5px;
}

.related-posts .card-title {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.4;
}

.related-posts .card-description {
  font-size: 14px;
  color: #666;
  margin: 0;
  line-height: 1.5;
}

/* Blog Sidebar */
.blog-sidebar {
  padding: 30px;
}

.sidebar-container {
  margin-bottom: 40px;
}

.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #003366;
  color: #003366;
}

.widget ul {
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: #333;
  transition: color 0.3s ease;
}

.widget a:hover {
  color: #003366;
}

.widget .post-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* No Image Placeholder */
.no-image-placeholder {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  background-color: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.no-image-placeholder:hover {
  transform: translateY(-3px);
}

.no-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #999;
  border: 1px dashed #ccc;
}

/* Category Page Specific Styles */
.category-posts-container {
  padding: 30px;
}

.category-posts-container .card-blog {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.category-posts-container .card-blog:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-posts-container .card-image {
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
}

.category-posts-container .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-posts-container .card-blog:hover .card-image img {
  transform: scale(1.05);
}

.category-posts-container .category {
  font-size: 12px;
  margin-bottom: 5px;
  display: block;
}

.category-posts-container .card-title {
  font-size: 20px;
  margin: 10px 0;
  line-height: 1.4;
}

.category-posts-container .card-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.category-posts-container .read-more {
  font-weight: bold;
  color: #003366;
  margin-left: 5px;
}

.category-posts-container .posted-by {
  font-size: 12px;
  color: #999;
}

.category #primary{
  height:300px;
  margin:0 auto;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .single .main-raised {
    margin: -30px 15px 0;
  }
  
  .single-post-container,
  .blog-sidebar {
    padding: 20px;
  }
  
  .related-posts .card-image {
    height: 160px;
  }
  
  .category-posts-container .card-image {
    height: 160px;
  }
}

@media screen and (max-width: 768px) {
  .single .boxed-layout-header {
    padding: 40px 0;
  }
  
  .single .hestia-title {
    font-size: 28px;
  }
  
  .single .main-raised {
    margin: -20px 10px 0;
  }
  
  .single-post-container,
  .blog-sidebar {
    padding: 15px;
  }
  
  .related-posts .col-md-4 {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .related-posts .card-image {
    height: 200px;
  }
  
  .btn-social {
    width: 35px;
    height: 35px;
    margin: 0 5px;
  }
}

@media screen and (max-width: 576px) {
  .single .boxed-layout-header {
    padding: 30px 0;
  }
  
  .single .hestia-title {
    font-size: 24px;
  }
  
  .post-navigation .nav-previous,
  .post-navigation .nav-next {
    max-width: 100%;
    margin-bottom: 15px;
  }
  
  .post-navigation .nav-links {
    flex-direction: column;
  }
  
  .related-posts .card-image {
    height: 180px;
  }
}

/* Contact button */
.contact_btn {
  display: block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  width: 320px;
  margin: 40px auto;
  padding: 15px 0;
  font-weight: bold;
  border: 2px solid #00345b;
  color: #00345b;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.contact_btn:hover {
  color: #fff;
  background-color: #00345b;
  transition: 1s;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 14px;
  margin-bottom: 20px;
  color: #666;
}

.breadcrumbs a {
  color: #00345b;
  text-decoration: none;
}

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

/* Tables */
.table_design07 {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
}

.table_design07 th, 
.table_design07 td {
  padding: 12px 15px;
  border: 2px solid #fff;
}

.table_design07 th {
  background-color: #00345b;
  color: #fff;
  text-align: center;
  width: 25%;
  position: relative;
}

.table_design07 td {
  background-color: #e6f1f6;
}

/* Flow design */
.flow04 {
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.flow04 > li {
  list-style-type: none;
  width: 100%;
  max-width: 350px;
}

.flow04 > li dl {
  padding: 20px;
  border: 3px solid #00345b;
  height: 100%;
}

.flow04 > li dl dt {
  margin-bottom: 15px;
  text-align: center;
}

.flow04 > li dl dt img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.flow04 > li .icon04 {
  display: block;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  background: #00345b;
  border-radius: 50%;
  margin: 0 auto 15px;
}

/* Responsive adjustments for single page */
@media screen and (max-width: 768px) {
  .single .main-raised {
    margin: -30px 10px 0;
  }
  
  .single .blog-post {
    padding: 20px 0;
  }
  
  .single .hestia-title {
    font-size: 28px;
  }
  
  .contact_btn {
    width: 100%;
    max-width: 320px;
  }
  
  .flow04 {
    gap: 20px;
  }
  
  .flow04 > li {
    max-width: 100%;
  }
  
  .table_design07 th {
    width: 35%;
  }
}

#primary{
  padding-bottom:2em;
}

.wpsubmit p{
  text-align:center;
  margin:0 auto;
}

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

div.main{
  margin-top:0px!important;
}

.postCards{
	padding-top:20px;
	padding-bottom:20px;
}

.brandLogos img:hover{
/* 	box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.1); */
	border:1px solid #ccc;

}
.section-index-lv03{
	position:relative;
}
h3.section-index-lv03:before{
	    content: '';
    position: absolute;
    bottom: -5px;
    display: inline-block;
    width: 60px;
    height: 5px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    background-color: #0e3467;
    border-radius: 2px;
}

/*-------------------------------------------
 Hero Section Responsive Background Images
-------------------------------------------*/
/* Hide mobile background on desktop by default */
.mv-visual-area-mobile {
  display: none;
}

/* Show PC background on desktop */
.mv-visual-area-pc {
  display: block;
}

.mv-copy{
	color:#003366;
}
/* Mobile styles */
@media screen and (max-width: 767px) {
  /* Hide PC background on mobile */
  .mv-visual-area-pc {
    display: none;
  }
  
  /* Show mobile background on mobile */
  .mv-visual-area-mobile {
    display: block;
  }
	
	.hero .mv-visual-area{
		width: 100%;
		height: 500px;
	}
	.mv-copy{
		width: 100%;
        position: relative;
        text-align: center;
        margin: 0 auto;
		right:0;
		top:45%;
		color:white;
	}
	.mv-copy h1{
		text-align:center;
	}
	.mv-copy p{
		font-size:15px!important;
	}
	
	.wpcf7-form-control-wrap input{
		padding:1rem 0 1rem 0;
	/* 	border-radius: 10px; */
	}
	
	.wpcf7-form-control-wrap input[type=text], .wpcf7-form-control-wrap input[type=tel], .wpcf7-form-control-wrap input[type=email], .wpcf7-form-control-wrap textarea{
		width:100%;
	}
	
	  /* ▼ .top-service-protein を縦並び＆中央寄せに */
	  .top-service-protein{
		display: flex !important;        /* 既存の float / grid / flex を上書き */
		flex-direction: column !important; /* 上から下へ積む */
		align-items: center;             /* 任意：中央揃えにしたい場合 */
		gap: 1rem;                       /* ブロック間余白（好みで調整） */
	  }

	  /* ▼ 直下の子要素は幅100%で折り返さない */
	  .top-service-protein > *{
		width: 100% !important;
	  }

	  /* ▼ 画像をレスポンシブ化（はみ出し防止）*/
	  .top-service-protein img{
		max-width: 100% !important;      /* 横幅を親要素以内に制限 */
		height: auto !important;         /* 縦横比を保持 */
		display: block;                  /* 余計な余白をなくす */
	  }
	
	header{
		justify-content:center;
	}
	.button{
		width:100%;
	}
	
	.section-index-lv03{
		font-size:25px;
	}
	
	.section-index .section-index-subttl{
		font-size:1.5rem;
	}
	
}
.wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item {
    display: block; 
    margin: 0 0 0.5em 0;
  }

.wpcf7-form-control-wrap input{
	padding:1rem;
/* 	border-radius: 10px; */
}

.hestia-title, .page .hestia-title{
	margin-bottom:0px;
}

/* ラッパー：位置合わせ用 */
.fade-img{
  position:relative;
  display:inline-block;   /* 必要なら width:240px など指定可 */
  cursor:pointer;
  width:100%;
	height:280px;
}
@media screen and (max-width: 767px) {
	.fade-img{
		height:220px;
	}
}
/* 2 枚とも同じ位置に重ねる */
.fade-img img{
  position:absolute;
  inset:0;               /* top/right/bottom/left:0 の短縮形 */
  width:100%;
  height:auto;
  display:block;
  transition:opacity .4s ease;   /* ふわっと */
}

/* 初期状態：下の画像だけ見える */
.fade-img .base { opacity:1; }
.fade-img .hover{ opacity:0; }

/* ホバー時：上の画像をフェードイン、下をフェードアウト */
.fade-img:hover .base  { opacity:0; }
.fade-img:hover .hover { opacity:1; }
