/*
Theme Name: flpjテスト環境用
*/
@charset "utf-8";

/*-----------------------------------
テーマ用CSS設定　自由入力
-----------------------------------*/
ul {
    list-style: none !important;
}
.regSec .cautionList li {
  list-style: none;
}
/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }

.box-shadow {
  overflow: hidden;
  color: #333333;
  background-color: #fff;
  width: 100%;
  display: block;
  border-radius: 9px;
  padding: 35px;
  box-shadow: 0 5px 10px rgba(0,0,0,.1);
}

ul.link-button{
	position: relative;
	margin: 20px 0 !important;
}
ul.link-button li {
  float: left;
  text-align: center !important;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  border-radius: 5px;
  width: 78px;
  height: 78px;
  padding: 30px 0;
  margin-bottom: 20px !important;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}
ul.link-button li{
  margin-right:16px;
}
ul.link-button li:last-child{
  margin-right:0;
}

ul.link-button{
	margin: 20px 0 !important;
}
ul.link-button2 li {
  float: left;
  text-align: center !important;
  line-height: 1;
  text-decoration: none;
  color: #333;
  background: #EBEAEA;
  font-size: 18px;
  border-radius: 5px;
  width: 173px;
  height: 52px;
  padding: 20px 0;
  margin-bottom: 20px !important;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

ul.link-button2 li{
  margin-right:20px;
}
ul.link-button2 li:last-child{
  margin-right:0;
}

ul.link-button2 li a{
	width: 100%;
	height: auto;
	display: block;
	font-size: 14px;
	text-decoration: none;
	color: #333;
	cursor: pointer;
}

ul.link-button2 li:hover {
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}
.ttlh2 {
  text-align: center;
  line-height: 1;
  text-decoration: none;
  color: #333;
  background: #EBEAEA;
  font-size: 30px !important;
  border-radius: 9px;
  width: 100%;
  padding: 20px 0 !important;
  margin-bottom: 10px !important;
  font-weight: bold;
  transition: 0.3s;
}
.ec-button {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-decoration: none !important;
  color: #000;
background: #ccc;
  font-size: 18px;
  border-radius: 5px;
  width: 95%;
  height: 50px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.5);
}

.ec-button:hover {
background: #707070;
color: #fff;
  transform: translateY(2px);
  box-shadow: 0 0 rgba(0, 0, 0, 0);
}
.float-left{
	width: 45%;
	float: left;
}
.float-right{
	width: 45%;
	float: right;
}
.ttl_detail{
	font-size: 30px;
	font-weight: bold;
}
.catch{
	font-size: 20px;
	font-weight: bold;
	margin: 20px 0:
}
.catch span img{
	width: 150px;
	height: 59.5px;
}
img.item_photo{
	width: 365px;
	height: 272px;
}
/* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
@media only screen and (max-width: 750px) {
    .pc { display: none !important; }
    .sp { display: block !important; }
	.float-left{
	float: none;
}
.float-right{
	float: none;
}
html :where(img[class*=wp-image-]) {
    height: auto;
    max-width: 100% !important;
    float: none !important;
	margin-right: 0 !important;
}
.left-box {
    height: auto;
    max-width: 100% !important;
    float: none !important;
	margin-right: 0 !important;
}
ul.link-button li {
  width: 22%;
}
ul.link-button2 li {
  width: 95%;
}
ul.link-button li{
  margin-right:8px;
}
ul.link-button li:last-child{
  margin-right:0;
}
}

.clear{
	clear: both;
}
html :where(img[class*=wp-image-]) {
    height: auto;
    max-width: 47%;
    float: left !important;
	margin-right: 5% !important;
}
.left-box {
    height: auto;
    max-width: 47% !important;
    float: left !important;
	margin-right: 5% !important;
}
.left-box2 {
    height: auto;
    max-width: 45% !important;
    float: left !important;
	margin-right: 0px !important;
}
a {
  text-decoration: none !important;
}
.h400{
	max-height: 430px !important;
	height: auto;
}
.h490{
	max-height: 590px !important;
	height: auto;
}

.h600{
	max-height: 800px !important;
	height: auto;
}

.h970{
	max-height: 2065px !important;
	height: auto;
}

@media only screen and (max-width: 750px) {
	html :where(img[class*=wp-image-]) {
    height: auto;
    width: 100% !important;
    float: none !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}
.item1,.item3{display: none;
	width: 0%;}
.item2{width: 100% !important;}
.left-box2,
.left-box {
    height: auto;
    width: 100% !important;
    float: none !important;
	margin-right: 0 !important;
	max-width: 100% !important;
}
table.nutrition{
	float: none;
}
table.nutrition td.left{
width: 100% !important;
}
table.nutrition td.img{
margin: 0 auto;
width: 130px !important;
}
table.nutrition td.left{
width: 60% !important;
}
.ttlh2 {
	font-size: 120% !important;
	}
.catch span img{
	width: 150px !important;
	height: 56px !important;
}
}

img.circle {
width:257px !important;
height:257px !important;
border-radius:50% !important;
margin-left: 100px;
}
img.circle2 {
width:171px !important;
height:171px !important;
border-radius:50% !important;
}
table.nutrition{
}
table.nutrition td.left{
width: 37% ;
}
table.nutrition td.img{
width: 130px !important;
}
@media only screen and (max-width: 750px) {
table.nutrition td.left{
width: 60% !important;
}
img.circle {
width:90% !important;
border-radius:50% !important;
margin-left: 0 !important;
}
.h600{
	max-height: 900px !important;
	height: auto;
}
.h970{
	max-height: 1530px !important;
	height: auto;
}
}
.mgt20{
	margin-top:20px !important;
}
.mgt45{
	margin-top:45px !important;
}
.mgt60{
	margin-top:60px !important;
}
.mgr20{
	margin-right: 20px !important;
}
.mgl20{
	margin-left: 20px !important;
}

img.circle2 {
width:171px !important;
height:auto !important;
border-radius:50% !important;
}

.w100{
	width: 100% !important;
}

.w45{
	width: 45% !important;
}

.w47{
	width: 47% !important;
}

.w50{
	width: 50% !important;
}

.w25{
	width: 23% !important;
	margin-right: 18px !important;
	float: left !important;
}

.w25 h3{
	color: #489598;
	font-size: 16px;
}
.mgr0{
	margin-right: 0 !important;
}
@media only screen and (max-width: 750px) {
.w50,
.w47,
.w45,
.w25{
	width: 100% !important;
	float: none;
}
.widget_tag_cloud .tagcloud a {
    width: 90% !important;
	margin: 0 auto 10px auto;

}
}
.newsDetail p, .newsDetail li {
  line-height: 2;
text-align:justify !important;
}

body.shortHd p.caption{
	text-align: center !important;
}

.widget_tag_cloud .tagcloud a {
    padding: 9px;
    text-decoration: none;
    color: #333;
    display: inline-block;
    font-size: 16px;
    text-align: center;
    margin-bottom: 6px;
    margin-left: 6px;
    background: #fff;
    border-radius: 3px;
	border: 1px solid #ccc;
    float: left;
    width: 30.3% ;
	font-weight: bold;
	cursor:default;
}

.widget_tag_cloud {
    zoom: 1; /* float解除 for IE6/7  */
}
.widget_tag_cloud:after, .widget_tag_cloud:before {
    content: "";
    clear: both;
    display: block;
}

/* トップへ戻るボタン */
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 99;
}
#page-top a {
  background: #ab101b;
  text-decoration: none;
  color: #fff;
  width: 60px;
  padding: 23px 5px;
  text-align: center;
  display: block;
  border-radius: 90px;
  opacity: 0.9;
  transition: all .3s ease;
}
#page-top a:hover {
  text-decoration: none;
  opacity: .5;
}
.itembox {
  display: flex;
  height: auto;
}
.item1{
	width: 20%;
}
.item2{
	width: 60%;
}
.item3{
	width: 20%;
}

.youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.youtube iframe {
  width: 100%;
  height: 100%;
}
iframe {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: auto;
 }
 

 
body.category-faq html :where(img[class*=wp-image-]){
    height: auto;
    max-width: 100% !important;
    float: none !important; 
    margin-right: 0 !important;
}

/* -----------------------------------
 * 固定ボタンの共通スタイル
 * ----------------------------------- */
#fixed-buttons {
    /* 画面右下に固定表示 */
    position: fixed;
    bottom: 20px;       /* 画面下端からの距離 */
    right: 20px;        /* 画面右端からの距離 */
    /* ボタンを縦に並べる（TOPが下、フィードバックが上になるように） */
    display: flex;
    flex-direction: column;
    gap: 10px;          /* ボタン間のスペース */
    z-index: 1000;      /* 他の要素より手前に表示 */
}

/* 共通のボタンデザイン - TOPボタンの基本スタイルを流用 */
.top-btn {
    /* TOPボタンは円形を維持 */
    display: block;
    width: 93px;
    height: 93px;
    line-height: 93px; 
    text-align: center;
    border-radius: 50%; 
    font-weight: bold;
    font-size: 14px;
    text-decoration: none; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    transition: transform 0.2s, opacity 0.3s;
    cursor: pointer;
    border: none; 
    color: white; 
}

/* -----------------------------------
 * 各ボタンの個別スタイル
 * ----------------------------------- */

/* フィードバックボタン（画像） */
.feedback-btn {
    /* 画像の寸法に合わせてサイズを設定 */
    width: 200px; /* 画像の幅に合わせて調整 */
    height: 95px; /* 画像の高さに合わせて調整 */
    
    /* 背景に画像を設定 */
    background-image: url('https://www.flpj.co.jp/images/btn_feed.png');
    background-size: contain; /* 画像全体が表示されるように調整 */
    background-repeat: no-repeat;
    background-position: left;
    background-color: transparent; /* 背景色を透明に */
    
    /* リンクとして機能させるための設定 */
    display: block;
    text-indent: -9999px; /* テキスト（今回は空ですが、念のため隠す） */
    cursor: pointer;
    box-shadow: none; /* 画像自体に影があるため削除 */
    border-radius: 0; /* 画像に合わせた四角形 */
    transition: transform 0.2s, opacity 0.3s;
}

/* TOPに戻るボタン*/
.top-btn {
    background-color: #ffcc00; 
    order: 1; /* feedback-btnより下に配置 */
}

/* ホバーエフェクト */
.feedback-btn:hover,
.top-btn:hover {
    transform: translateY(-2px); /* 少し上に動かす */
    opacity: 0.85; /* 少し透明にしてホバーを表現 */
}

/* -----------------------------------
 * 【📱 モバイル用調整】メディアクエリ
 * ----------------------------------- */
@media (max-width: 600px) {
    /* 固定ボタンコンテナの位置調整 */
    #fixed-buttons {
        /* 中央揃えの解除 (right, left, transformをリセット) */
        left: unset; 
        
        /* 画面右端に配置 */
        right: 10px; /* 右端から10pxの余白 */
        bottom: 10px; /* 下端から10pxの余白 */
    }

    /* フィードバックボタンの幅を縮小し、TOPボタンと高さを合わせる */
    .top-btn,
    .feedback-btn {
        width: 90px;  /* TOPボタンと同じ幅 */
        height: 90px; /* TOPボタンと同じ高さ */
    }
    
    /* 認定マークを目立たせるための追加CSS */
.cert-mark-container {
    text-align: center;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.cert-mark-container:hover {
    transform: translateY(-3px);
}

/* 🌟 今回の追加ポイント：画像を枠に合わせて大きくする */
.cert-mark-container img {
    width: 100%;       /* 親要素(w47)の幅に合わせて画像を最大化します */
    max-width: 450px;  /* パソコン画面で大きくなりすぎないよう上限を設定（数値は調整可能です） */
    height: auto;      /* 画像が歪まないように縦横比を自動調整します */
    display: block;
    margin: 0 auto;    /* 中央揃え */
}

.cert-description {
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 10px;
}
