/* 
Theme Name: anyone-for-parhan
Theme URI: https://parhan.jp
Description: パーキング飯のテーマです。
Version: 1.0
Author: AcousticStation
Author URI: https://parhan.jp
*/

/* 
SPファーストで記述
メディアクエリは後半にまとめている。SP,TB,PC版に分けている
ブレイクポイントは768px、1024px
marginは基本はtopにかけるが、デザインの都合上ボトムにかけたい場合は「margin-bottom」を使う
優先順位は、プラグイン自体のCSS→style.cssであることに注意(自分のCSSでプラグインのCSSを打ち消していないか要確認)
フォントはgoogleフォントを使用
*/

/* ========================
全体
======================== */

/* カスタムプロパティ */
:root {
  /* カラー */
  --base-color: #fff;
  --text-color: #000;
  --main-color: #1971ff;
  --accent-color: rgb(110, 197, 227);
  --back-color: #f5f5f5;
  --meshi-color: #ffa71a; /* rgb(255, 167, 26) */
  --meshiback-color: #fff0db;

  /* 数値 */

  /* コンテンツ幅は合計93%~95% */
  --main-content-width: 68%;
  --sidebar-width: 27%;
}

/*
リセットCSSで変わっていない部分をリセット
およびフォントなど全体に関わる部分を変更
*/
*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
 
ul,
ol {
  list-style: none;
}
 
a {
  color: #00bbdd;
  /* トランジションを滑らかに */
  transition-duration: 0.3s;
}
/* リンクホバー時にテキストカラーを変更 */
a:hover {
  color: #d4d4d4;
}

body {
  font-family: "Noto Sans JP", serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  color: #000000;
  line-height: 2;
  background-color: #ffffff;
}
h1,
h2,
h3,
h4,
h5,
h6,
.article-title {
  font-family: "Hiragino Maru Gothic ProN", sans-serif;
  font-weight: 400;
  font-style: normal;
}

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

/* ========================
コンポーネント
======================== */

/*---- ボタン ----*/
.btn-area {
  margin: 2em 0;
}
.page-btn {
  display: block;
  padding: 0.5em 1em;
  margin: 0 auto;
  background-color: var(--main-color);
  color: #fff;
  border: solid 1px var(--main-color); 
  border-radius: 30px;
  font-size: 1.5rem;
}
 
/* ========================
ヘッダー
======================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  background-color: #fff;
}

.header-inner {
  position: relative;
  height: 70px;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/*-- ロゴエリア --*/
.header-logo img {
  display: block;      /* 画像の下に余計な余白ができないようにする */
  width: 160px;         /* 好きな横幅に調整 */
  height: auto;        /* 縦横比を保つ */
  max-width: none;     /* テーマやブラウザのmax-width制限を解除 */
}

.btn-menu {
  display: block;
  width: 44px;
  height: 34px;
  background-image: url(./assets/img/icon-menu.png);
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: solid 2px #000;
  border-radius: 0;
  outline: none;
}

.site-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  background-color: var(--main-color);
  overflow-x: hidden;
  width: 0;
  height: 0;
  transition-duration: 0.5s;
}
.site-menu.open-menu {
  width: 100%;
  height: 100vh;
}
.site-menu ul li {
  padding: 0 2em;
}
.site-menu ul li a {
  color: inherit;
  text-decoration: none;
  display: inline-block;
  padding: 1em 3em;
  white-space: nowrap;
  position: relative;
}
.site-menu ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
  transition: scale 0.4s;
  scale: 0;
}
.site-menu ul li a:hover {
  color: var(--main-color);
}
.site-menu ul li a:hover::after {
  scale: 1;
}

/* サブメニュー */
.site-menu .sub-menu {
  display: none;
}

/* サブサブメニュー */
.site-menu .sub-menu .sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  white-space: nowrap;
}

/* ========================
メイン
======================== */
.main {
  padding: 70px 20px 2rem;
}
/* コンテンツをはみ出ないようにする、および中央揃えに */
.container {
  width: clamp(335px, 85%, 1200px);
  margin: auto;
}

/*---- フロントページ(アーカイブページとと共通の部分は書かない) ----*/

/* 「飲食店をタグから探す」エリア */
.restaurant-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  margin-top: 1em;
}
.restaurant-tag-list li a {
  display: inline-block;
  padding: 0.2em 0.8em;
  color: var(--base-color);
  background-color: var(--meshi-color);
  border: solid 1px var(--meshi-color);
}
.restaurant-tag-list li a:hover {
  color: var(--meshi-color);
  background-color: var(--base-color);
}

/* フロントページのメインコンテンツ(最新の記事) */

.content-inner {
  margin-top: 1em;
}

.front-content-title {
  text-align: center;
}


/*---- アーカイブページ ----*/

.archive-content a {
  color: inherit;
  text-decoration: none;
}
.page-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 1rem 0;
  border-bottom: solid 3px var(--meshi-color);
  position: relative;
}
.page-title::after {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px var(--main-color);
  bottom: -3px;
  width: 30%;
}

.article-list-wrapper {
  margin-top: 1em;
}
.article-list li a {
  display: block;
  overflow: hidden;
}
.article-list li a:hover .thumbnail-area img{
  transform: scale(1.05);
}
.thumbnail-area {
  overflow: hidden;
}
.thumbnail-area img {
  /* overflow:hidden; を効かせるためdisplayを変更*/
  display: block;
  
  transition-duration: 0.3s;
}
.text {
  padding: 0.75rem 0 2rem;
}
.entry-date {
  font-size: 0.75rem;
  margin: 0 0 0 1em;
  color: #d4d4d4;
}
.entry-date:before {
  font-family: "Font Awesome 6 Free";
  content: '\f274';
  margin-right: 0.5em;
}
.article-title {
  font-size: 1rem;
  margin-top: 0.67em;
}
.excerpt {
  color: #666;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-top: 0.67em;
}
.excerpt i {
  font-size: 0.75rem;
  margin-left: 0.25em;
  color: var(--accent-color);
}
.category-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1em;
  row-gap: 0.5em;
}
.article-category {
  font-size: 0.625rem;
  padding: 0.2em 0.8em;
  border: solid 1px var(--main-color);
  color: var(--main-color);
  font-weight: 400;
}
.category-list li:not(.category-list li:first-child) {
  margin-left: 1em;
}

/*---- 飲食店タイプ アーカイブページ(body_class=post-type-archive) ----*/


.post-type-archive .text {
  padding: 0.75rem 0 1rem;
}
.post-type-archive .article-list > li {
  padding: 0;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(24, 44, 84, 0.1);	
  transition-duration: 0.3s;
}
.post-type-archive .article-list > li:hover {
  box-shadow: 5px 8px 10px 0 rgba(24, 44, 84, 0.1);	
}

.post-type-archive .article-list  {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.post-type-archive .text {
  font-size: 0.75rem;
  line-height: 1.7;
  padding: 1em;
}
.post-type-archive .article-title {
  font-size: 0.75rem;
}

.post-type-archive .article-category {
  font-size: 0.625rem;
  padding: 0.2em 0.8em;
  border: solid 1px var(--meshi-color);
  color: var(--meshi-color);
  font-weight: 400;
}

/*---- 飲食店タイプ アーカイブページ(body_class=tax-genre) ----*/

.tax-genre .text {
  padding: 0.75rem 0 1rem;
}
.tax-genre .article-list > li {
  padding: 0;
  margin-top: 20px;
  background-color: #fff;
  box-shadow: 0 2px 4px 0 rgba(24, 44, 84, 0.1);	
  transition-duration: 0.3s;
}
.tax-genre .article-list > li:hover {
  box-shadow: 5px 8px 10px 0 rgba(24, 44, 84, 0.1);	
}

.tax-genre .article-list  {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.tax-genre .text {
  font-size: 0.75rem;
  line-height: 1.7;
  padding: 1em;
}
.tax-genre .article-title {
  font-size: 0.75rem;
}

.tax-genre .article-category {
  font-size: 0.625rem;
  padding: 0.2em 0.8em;
  border: solid 1px var(--meshi-color);
  color: var(--meshi-color);
  font-weight: 400;
}

/*---- 個別投稿ページ(body_class=.single-post) ----*/

/* 画像を中央寄せ */
.single-post .wp-block-image img {
  display: block;
  margin: 0 auto;
}

/* 個別投稿ページではサイドバーのアーカイブを非表示に */
.single-post .archive-block {
  display: none;
}
 
/* タイトルエリア */
.single-article .article-title {
  font-size: 1.25rem;
}
.single-article .entry-date {
  margin: 1em 0 0 0.5em;
}

/* カテゴリのCSSはアーカイブページのほうでベースを調節しているので注意 */
.single-article .category-list {
  margin: 0.5em 0 0.5em 0.5em;
}

/* アイキャッチエリア */
.eyecatch-area {
  padding: 1rem 0;
}

/*---- 飲食店タイプ 個別投稿ページ ----*/


/*---- 404ページ ----*/

/* リンクのデザイン無効化を戻す */
.content404 a {
  color: #00bbdd;
  text-decoration: underline;
}

/*---- 個別投稿のトップスライドショー(swiper.js) ----*/

/* 詳細度を高めに */
article .top-gallery {
  margin-top: 10px;

  /* デフォルトのz-indexをなしに */
  z-index: 0;
}
/* 詳細度を高めに */
article .top-gallery-wrapper {
  /* デフォルトのz-indexをなしに */
  z-index: 0;
}

.top-gallery-slide {
  text-align: center;
  position: relative;
  width: 100%;
  height: 240px;
  object-fit: cover;  
}
/* フェード切り替え時に白いブラーを挟む */
.top-gallery-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}
/* スライドがフェードアウトする瞬間に白くなる */
.top-gallery-slide.swiper-slide-prev::before,
.top-gallery-slide.swiper-slide-next::before {
  opacity: 0.4; /* お好みで0.2〜0.6あたり調整可能 */
}


/* 記事の本文 */
.article-content {
  padding: 1rem 0;
}
.article-content h2 {
  color: var(--base-color);
  background-color: #478DFF;
  font-size: 1.25rem;
  padding: 0 1em;
  margin: 3rem 0 1.5em 0;
  background-color: var();
}

/* 「飲食店情報ブロック」の見出しに合わせてあるので、「記事のh3」にはちょっと不適かも?(07/29) */
.article-content > h3 {
  font-size: 1rem;
  font-weight: bold;
  padding-top: 1em;
  background-color: var(--meshiback-color);
  text-align: center;
  border-top: 1px solid #000;

  /* SP版ではコンテナを100vwにする */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.article-content > p:not(.restaurant-name) {
  margin-bottom: 2em;
  letter-spacing: 0.05em;
}
.article-content img {
  display: block;
  margin-bottom: 1rem;
}

/*---- 前後ページリンク ----*/
.page-link {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1rem;
}
.page-link a {
  text-decoration: none;
}
.prev-page-link,
.next-page-link {
  display: inline-block;
  color: var(--base-color);
  background-color: var(--accent-color);
  padding: 0.5em 1em;
  text-align: center;
}
.prev-page-link:hover,
.next-page-link:hover {
  color: var(--base-color);
  /* ホバー時に暗い色にする */
  background-color: #269cc3;
}

.prev-page-link {
  border-radius: 2rem 0 0 2rem;
}
.next-page-link {
  border-radius: 0 2rem 2rem 0;
}

 /* fontawesome */
 .prev-page-link::before,
 .next-page-link::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;  
  color: var(--base-color);
 }
.prev-page-link::before {
  content: '\f060';
  margin-right: 0.5em;
}
.next-page-link::after {
  content: '\f061';
  margin-left: 0.5em;
}

/*-- 飲食店タイプ --*/
.type-restaurant .prev-page-link,
.type-restaurant .next-page-link {
  background-color: var(--meshi-color);
  border-radius: 0;
}
.type-restaurant .prev-page-link:hover,
.type-restaurant .next-page-link:hover {
  /* ホバー時に暗い色にする */
  background-color: #E58900;
}

/* コメント欄(ログイン状態に注意) */
.comments {
  max-width: 100%;
  margin-top: 3rem;
}

.comment-reply-title::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: '\f303';
  color: var(--meshi-color);
  margin-right: 0.5em;
}

#comment {
  width: 100%;
  border: solid 1px #000;
}

.comment-form-author #author,
.comment-form-email #email {
  border: solid 1px #000;
}

.comment-notes,
.logged-in-as {
  font-size: 0.875rem;
}

.comment-form-comment,
.comment-form-author {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  margin-top: 1em;
}
.comment-form-author input {
  max-width: 100%;
}

.form-submit {
  text-align: center;
  margin-top: 2em;
}
.submit {
  font-size: 1.2rem;
  padding: 0.3em 1em;
  color: var(--base-color);
  background-color: var(--meshi-color);
  box-shadow: 5px 5px;
  border-radius: 5px;
  transition: all 0.2s;
}
.submit:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px;
}

/*---- 目次パネル ----*/

/* 固定ボタン */
.toc-fixed-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.toc-fixed-button:hover {
  background-color: #43B4D9;
}

/* 目次パネル */
.toc-panel {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  background-color: var(--main-color);
  overflow-x: hidden;
  width: 0;
  height: 0;
  padding: 1em 0;
  transition-duration: 0.5s;
  z-index: 99;
}

.toc-panel.open-toc {
  width: 100%;
  height: 100vh;
}

.toc-panel a {
  color: inherit;
  text-decoration: none;
}

.toc-panel-header .header-title {
  font-size: 1.5rem;
  font-weight: bold;
}
#toc-close {
  display: inline-block;
}
.toc-panel-header .fa-xmark {
  font-size: 1.25rem;
}

/* 目次パネルではLuckyWPデフォルトのヘッダーを非表示 */
.lwptoc_header {
  display: none;
}

 
/* ========================
フッター
======================== */
.footer {
  text-align: center;
  padding: 3rem 0 1rem;
  color: #fff;
  background-color: var(--main-color);
}
.footer-logo {
  color: inherit;
  text-decoration: none;
  font-size: 1.5rem;
}
.copyright {
  font-size: 1rem;
  margin-top: 1rem;
}

/* ========================
サイドバー
======================== */

.sidebar {
  display: none;
}

.sidebar a {
  color: inherit;
  text-decoration: none;
}
.sidebar a:hover {
  color: #d4d4d4;
}

.sidebar h3 {
  font-size: 1rem;
  margin: 1em 0;
}

.parking-map-area {
  transition-duration: 0.3s;
}
.parking-map-area:hover {
  scale: 1.5;
}

/* 
/*-- 最新の記事エリア --*/
.latest-pages {
  line-height: 1.8;
}
.latest-pages h3:before {
  font-family: "Font Awesome 6 Free";
  content: '\f1d8';
  color: var(--accent-color);
  margin-right: 0.5em;
}
.latest-pages ul li {
  margin-top: 0.5em;
  border-top: solid 0.5px #000;
  padding-top: 10px;
} */

/*-- 過去のアーカイブ --*/
.archive-block {
  margin-top: 20px;
}
.archive-block h3:before {
  font-family: "Font Awesome 6 Free";
  content: '\f07c';
  font-weight: 900;
  color: var(--accent-color);
  margin-right: 0.5em;
}


/* ========================
ウィジェット
======================== */

/*-- 検索フォーム --*/
/* SP版では検索フォームを非表示 */
.search-block {
  display: none;
}

/* ========================
ブロック
======================== */

/*-- リスト --*/
.wp-block-list {
  background-color: var(--back-color);
  padding: 1em 2em;
  margin-bottom: 1em;
}
.wp-block-list li{
  margin-top: 0.5em;
  line-height: 1.5;
  text-indent: -1em;
  padding-left: 1em;
}
/* fontawesomeアイコン */
.wp-block-list li:before{
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: '\f058';
  color: var(--main-color);
}

/*-- 詩 --*/
pre.wp-block-verse {
  background-color: var(--back-color);
  padding: 1em;
  margin: 2em 0;
}

/* ========================
wordpressの装飾
======================== */

/*---- 動画のキャプション ----*/
.wp-element-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #c0c0c0;
}
/* wpデフォルトのmarginを消す */
.wp-block-embed :where(figcaption) {
  margin-top: 0;
}

/* ========================
googlemap内の装飾
======================== */

/*-- マップ内の飲食店情報 --*/
.gm__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* 記事用についているcssを解除 */
.single-article .gm__info img {
  max-width: 100%;
  margin-bottom: 0;
  width: 60px;
  height: 60px;
}
.img-tag {
  border: solid 3px #ffa71a;
  border-radius: 50%;
}
.name-tag {
  background-color: rgba(255, 167, 26, 0.9);
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 0.625rem;
  padding: 0.5em 1em;
  position: relative;
  transform: translateY(-8px);
}

.name-tag::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 0);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffa71a;
}



/* ========================
プラグイン(本から基本はコードを拝借。本のコードは、プラグイン本体のコードをある程度そのまま上書きしているよう)
CSSの優先度に注意。クラスを詳細に指定しないとプラグインのCSSに上書きされてしまうことがある
======================== */

/* start:「ACF」(カスタムフィールド) */

/* パーキング情報 */
.parking-info-container {
  display: grid;
  background-color: var(--back-color);
  padding: 1em;

  /* SP版ではコンテナを100vwにする */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.parking-info-container > img {
  max-width: 100%;
}
.detail-container .traffic-sign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-container .traffic-sign {
  /* SP版はスポットアイコンは最大5コ並ぶ */
  width: calc((100% - 50px) / 5);
}

.restaurant-container {
  margin-top: 1em;
}
.restaurant-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.restaurant-item img {
  display: inline-block;
  max-width: 80px;
  margin-top: 0.3em;
}

/* 飲食店情報 */
.restaurant-block {
  padding: 1em;
  background-color: var(--meshiback-color);

  /* SP版ではコンテナを100vwにする */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}
.restaurant-info-container {
  display: grid;
}

/* 飲食店別スライドショー */
.restaurant-slider {
  /* はみ出しを防ぐ */
  max-width: 100%;
  overflow: hidden; 
}

.restaurant-name {
  text-align: center;
  font-size: 1.3rem;

  margin-bottom: 1em;
  /* .article-content > p のmargin-bottomではこのクラスを除外してある */

  font-weight: bold;
}
.restaurant-info-container img {
  max-width: 100%;
  object-fit: cover;
}
.restaurant-info-container .acf-map {
  width: 100%;
  height: 240px;
}
.restaurant-desc {
  margin-top: 1em;
}
/* end:「ACF」(カスタムフィールド) */
/* start: プラグイン| LIQUIDO SPEECH BALLOON (吹き出し)の設定 */
.liquid-speech-balloon-wrap {
  display: flex;
  flex-direction: row;
  /* マージンを広く */
  margin-bottom: 3rem;
}
.liquid-speech-balloon-wrap:not(.liquid-speech-balloon-vertical) .liquid-speech-balloon-arrow {
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 10px solid rgba(0, 0, 0, 0.2);
}
.liquid-speech-balloon-avatar {
  flex-shrink: 0;
  background-position: left top;
  background-size: 100% auto;
  background-repeat: no-repeat;
  line-height: 1;
  position: relative;
}
.liquid-speech-balloon-text {
  width: 100%;
  /* パディングを調整 */
  padding: 1em;
  margin-left: 20px;
  position: relative;
  z-index: 1;
}
/* 個別投稿のpに効いている余白を無効化 */
.liquid-speech-balloon-text p,
.liquid-speech-balloon-text .wp-block-liquid-speech-balloon {
    margin: 0;
    padding: 0;
}
.liquid-speech-balloon-arrow {
  content: ".";
  width: 0;
  height: 0;
  color: transparent;
  line-height: 1;
  position: absolute;
  z-index: 2;
}

/* start：Breadcrumb navXT*/

.breadcrumb-inner {
  font-size: 0.875rem;
}
.breadcrumb-inner .fas,
.breadcrumb-inner .fa-solid {
  margin: 0 0.5em;
  color: var(--main-color);
}

.breadcrumb-inner a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb-inner a:hover {
  color: #d4d4d4;
}

.single-post .breadcrumb .current-item {
  display: none;
}
/* 個別投稿ページ(通常投稿、「飲食店」)では現在の記事が表示されないようにする */
.single-post .breadcrumb .current-item,
.single-restaurant .breadcrumb .current-item {
  display: none;
}
/* 最後のfontawesomeを非表示にする */
.single-post .breadcrumb .fas:last-of-type,
.single-post .breadcrumb .fa-solid:last-of-type,
.single-restaurant .breadcrumb .fas:last-of-type,
.single-restaurant .breadcrumb .fa-solid:last-of-type {
  display: none;
}

/* 飲食店タイプのBreadnumb navXT */
.type-restaurant .breadcrumb-inner .fas,
.type-restaurant .breadcrumb-inner .fa-solid {
  color: var(--meshi-color);
}

/* end：Breadcrumb navXT */
/* start：WP-Paginavi(前後記事表示のページャーじゃないよ */
.pagination {
  display: flex;
  justify-content: center;
  margin: 0.5em 0;
}

/* プラグイン元のCSSを上書きしているのでクラスを詳細に指定 */
.pagination .wp-pagenavi a,
.pagination .wp-pagenavi span {
  font-size: 1.25rem;
}

.pagination .wp-pagenavi a:hover {
  color: #fff;
  background-color: var(--main-color);
}

.pagination .wp-pagenavi .page {
  color: var(--main-color);
  border: solid 1px var(--main-color);
}

.pagination .wp-pagenavi span.current {
  font-weight: inherit;
}
/* end：プラグイン｜WP-Paginavi */
/*　start：プラグイン｜LuckyWP */

.lwptoc,
/* サイドバーの目次では、h2直下のh3を非表示 */
.sidebar.lwptoc_item > .lwptoc_itemWrap {
  display: none;
}

.lwptoc {
  font-size: 0.875rem;
}

.lwptoc_i {
  width: 100%;
}

/* 優先度を高くして文字色を変更 */
.sidebar .lwptoc-light .lwptoc_i A {
  color: var(--text-color);
}
.sidebar .lwptoc-light .lwptoc_i A:visited {
  color: var(--text-color);
}

/* end：プラグイン｜WP-Paginavi */

/* ========================
API
======================== */

/*-- Google Maps API --*/

/* 情報ウィンドウ(API既定の設定を変更するので強め) */
/* APIが勝手に付けている外枠の制限を強制解除する */
.gm-style .gm-style-iw-c {
  max-width: none !important;  /* インラインのチェックを外すのと同じ効果 */
  padding: 0 !important;       /* 中の余白もリセットしてスッキリさせる */
}
/* インフォウィンドウ内の実際のコンテンツサイズを指定 */
.gm-custom-popup {
  width: 300px !important;    /* ここで好きな幅を強制指定 */
  max-height: 500px;          /* 高さも必要に応じて制限 */
  overflow-y: auto;           /* 中身が長すぎる場合はスクロール */
}
/* 画像を横幅いっぱい、かつ大きく見せる */
.popup-image-wrap img {
  width: 100% !important;
  height: 200px; /* 高さを固定すると、写真が大きく目立つ */
  object-fit: cover; /* 縦横比を保ったまま枠を埋める */
  border-radius: 8px 8px 0 0;
  display: block;
}
/* テキスト部分の余白とサイズ */
.popup-body {
  padding: 15px 10px;
}
.popup-body h3 {
  margin: 0 0 8px 0 !important;
  font-size: 20px !important; /* タイトルを大きく */
  font-weight: bold;
  color: #333;
}
.popup-body p {
  margin: 0 !important;
  font-size: 15px !important; /* 本文も読みやすく大きく */
  line-height: 1.6;
  color: #555;
}

/*　タブレット(TB)版*/
 
@media screen and (min-width: 768px) {
 
  /* ========================
  全体
  ======================== */

  .single-article > img {
    max-width: 85%;
    height: auto;
  }

  /* ========================
  コンポーネント
  ======================== */

  /*---- フロントページ ----*/

  .front-content-title {
    font-size: 1.5rem;
    margin: 1rem 0;
  }

  .tag-search-area {
    padding: 2em;
    margin-top: 40px;
    background-color: #fff;
    border-radius: 10px;
  }

  /*---- アーカイブページ ----*/
  .title {
    margin: 2rem 0 1rem;
  }

  .page-title {
    text-align: left;
  }

  .article-list > li {
    padding: 1em;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 10px;
	  box-shadow: 0 2px 4px 0 rgba(24, 44, 84, 0.1);	
    transition-duration: 0.3s;
  }
  .article-list > li:hover {
	  box-shadow: 5px 8px 10px 0 rgba(24, 44, 84, 0.1);	
  }

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

  .thumbnail-area {
    max-width: 200px;
    margin-right: 20px;
  }

  .text {
    padding: 0;
    width: 100%;
  }

  .information {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
  }

  .entry-date {
    margin: 0;    
  }

  .category-list {
    margin: 0;
  }

  /*---- 飲食店タイプ アーカイブページ(body_class=post-type-archive) ----*/
  
  /* グリッドを解除 */
  .post-type-archive .article-list  {
    display: block;
  }

  .post-type-archive .text {
    font-size: 1rem;
    line-height: 2;
    padding: 1em;
  }
  .post-type-archive .article-list > li {
    padding: 1em;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgba(24, 44, 84, 0.1);	
    transition-duration: 0.3s;
  }

  .post-type-archive .article-title {
    font-size: 1rem;
  }

  /*---- 飲食店タイプ アーカイブページ(body_class=tax-genre) ----*/
  
  /* グリッドを解除 */
  .tax-genre .article-list  {
    display: block;
  }

  .tax-genre .text {
    font-size: 1rem;
    line-height: 2;
    padding: 1em;
  }
  .tax-genre .article-list > li {
    padding: 1em;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgba(24, 44, 84, 0.1);	
    transition-duration: 0.3s;
  }

  .tax-genre .article-title {
    font-size: 1rem;
  }

  /*---- 個別投稿ページ --*/

  .single-post .archive-block {
    display: block;
  }

  .article-content {
    padding: 2rem 0;
  }
  .article-content h2 {
    font-size: 1.5rem;
  }
  .article-content h3 {

    /* SP版の幅スタイルを無効化 */
    width: 100%;
    position: static;
    margin-left: 0;
    margin-right: 0;

    font-size: 1.2rem;
  }
  .single-article .article-title {
    font-size: 2rem;
    margin-top: 0;
  }
  .eyecatch-area {
    text-align: center;
  }

  .article-content > img {
    margin: 0 auto 1rem;
  }

  /* 前後ページリンク */
  .page-link {
    justify-content: space-between;
    max-width: 80%;
    margin: 0 auto;
  }
  .prev-page-link,
  .next-page-link {
    max-width: 250px;
  }

  /* 最新の記事エリア */
  .latest-pages-title {
    font-size: 1.5rem;
  }

  /* コメント欄 */
  .comment-form-author input {
    max-width: 40%;
  }

  /* ========================
  フッター
  ======================== */

  /*-- フッターのアーカイブ表示(サイドバーにもアーカイブブロックあり。共通の記述はそちらへ) --*/   
  .footer .yearly-archive {
    display: flex;
    justify-content: center;
    gap: 1em;
  }
  .footer .yearly-archive li {
    font-size: 1.3rem;
  }

  /*-- 検索フォーム --*/
  .input-group {
    width: auto;
  }
  .form-control {
    width: 100%;
  }

  /* ========================
  サイドバー
  ======================== */

  .sidebar-inner {
    top: calc(70px + 2rem);
  }

  /* PCではh3のmargin-topを0に */
  .sidebar h3 {
    margin-top: 0;
  }
  
  /* 最新の記事エリア */
  .latest-pages {
    padding: 2em;
    margin-top: 40px;
    background-color: #fff;
    border-radius: 10px;
  }
  .latest-pages ul li {
    margin: 0.625em 0.625em 0 1em ;
  }
  

  /*-- 過去のアーカイブ --*/
  .archive-block {
    padding: 2em;
    margin-top: 40px;
    background-color: #fff;
    border-radius: 10px;
  }
  .yearly-archive li {
    margin: 0.5em 0;
  }
  .yearly-archive li::before {
    content: '・';
  }

  /* ========================
  ウィジェット
  ======================== */

  /* ========================
  ブロック
  ======================== */

  /*-- リスト --*/
  /* fontawesomeアイコン */
  .wp-block-list li:before{
    padding-right: 1em;
  }
  
   /*-- 詩 --*/
   pre.wp-block-verse {
    text-align: center;
   }

  /* ========================
  wordpressの装飾
  ======================== */

  /*---- 動画のキャプション ----*/
  .wp-element-caption {
    font-size: 1rem;
  }

  /* ========================
  プラグイン
  ======================== */

  /* start:「ACF」(カスタムフィールド) */

  /* パーキング情報 */
  .article-content .parking-info-container img {
    margin-bottom: 0;
  }
  .parking-info-container {

    /* SP版の幅スタイルを無効化 */
    width: 100%;
    position: static;
    margin-left: 0;
    margin-right: 0;

    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 30px;
  }
  .parking-info-container > img {
    /* 優先度を高くするためPC版でも表記 */
    max-width: 100%;
  }
  .detail-container .traffic-sign-list {
    gap: 10px;
  }
  .detail-container .traffic-sign {
    /* TB版は道路標識アイコンは最大5コ並ぶ */
    width: calc((100% - 50px) / 5);
  }

/* 飲食店情報 */
.restaurant-block {
  /* SP版の幅スタイルを無効化 */
  width: 100%;
  position: static;
  margin-left: 0;
  margin-right: 0;
}

  .restaurant-info-container {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
    column-gap: 30px;
    row-gap: 20px;
  }

/* 飲食店別スライドショー */
.restaurant-slider {
  grid-column: 1 / -1; /* 2枚をフル幅で横に並べる */
}

  .restaurant-info-container > img {

    /* 優先度を高くするためPC版でも表記 */
    max-width: 100%;
    object-fit: cover;
  }
  .restaurant-info-container .acf-map {
    width: 100%;
  }
  /* end:「ACF」(カスタムフィールド) */
  /* start:「luckyWP)サイドバーの目次 */
  
  /* end:「luckyWP)サイドバーの目次 */
  /* start：プラグイン｜Breadcrumb navXT*/

  .breadcrumb-inner {
    font-size: 1rem;
  }
  .breadcrumb-inner .fas {
    margin: 0 0.5em;
  }
  /* end：プラグイン｜Breadcrumb navXT */
  /* start：プラグイン｜WP-Paginavi */
  .pagination {
    display: flex;
    justify-content: center;
    margin: 1em 0;
  }
  /* end：プラグイン｜WP-Paginavi */
 
}

/* PC版 */
@media screen and (min-width: 1024px) {

  /* ========================
  ヘッダー
  ======================== */
  .btn-menu {
    display: none;
  }
  .site-menu {
    /* SP時のCSSを変更 */

    /* header-innerのflexによって変わってしまった位置を元に戻す */
    position: relative;
    /* SP版の配置を初期状態へ */
    top: 0;
    /* SP版のoverflowを初期値へ */
    overflow-x: visible;
    

    color: #000;
    background-color: #fff;
    width: auto;
    height: auto;
  }
  .site-menu > ul {
    display: flex;
  }
  .site-menu ul li a {
    white-space: nowrap;
    padding: 0.5em 1em;
  }
  .site-menu .sub-menu {
    position: absolute;
    top: 100%;
    background-color: var(--base-color);
  }
  .site-menu  .sub-menu li {
    position: relative;

    /* ここで作業を中断してある。bgcolor考え中 */
    background-color: #f5f5f5;
  }
  /* ホバー時にサブメニュー、サブサブメニューを表示 */
  .site-menu li:hover > .sub-menu {
    display: block;
  }

  .header .search-block .input-group {
    border: 0.5px solid #000;
  }

  /* ========================
  メイン
  ======================== */
  .main {
    display: flex;
    padding: calc(70px + 2rem) 0 2rem;
    background-color: #f5f5f5;
  }
  .container {
    display: flex;
    justify-content: space-between;
    border-radius: 10px;
  }

  .main-content .toc-panel {
    display: none;
  }

  /* アーカイブページのコンテンツ */
  .container .archive-content {
    width: var(--main-content-width);
    padding:0 2rem 2rem;
  }

  /* シングルページのコンテンツ */
  .container .main-content {
    width: var(--main-content-width);
    padding: 2rem;
    background-color: #fff;
  }

  /* 目次パネル */
  .toc-fixed-button {
    display: none;
  }

  /* ========================
  サイドバー
  ======================== */
  .sidebar {
    display: block;
    width: var(--sidebar-width);
  }

  .post-it {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  

  /* ========================
  ウィジェット
  ======================== */

  /*-- 検索フォーム(searchform.php) --*/
  .search-block {
    display: block;
  }

  label[for="searchword"] {
    display: none;
  }
  #searchform .btn {
    line-height: 1.5em;
    border-width: 0;
    color: #f0264b;
    font-size: 1rem;
    cursor: pointer;
    background-color: transparent;
  }
  #searchform .btn span {
    display: none;
  }
  .input-group {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    border-radius: 30px;
    padding: 0.3em 2em;
    color: #000;
    background-color: #fff;
    width: auto;
    max-width: 80%;
  } 
  .form-control {
    padding: 0 0 0 10px;
    line-height: 1.5em;
    border-width: 0;
    width: 100%;
  }
  .search-form-block {
    margin: 2em 0;
  }



  /* ========================
  プラグイン
  ======================== */
  

  /* start:「ACF」(カスタムフィールド) */
  /* end:「ACF」(カスタムフィールド) */

  /* start:「luckyWP)サイドバーの目次 */

  /* 目次が高さをはみだした場合、スクロールさせる */
  .lwptoc_items {
    max-height: 300px;
    overflow-y: scroll;
  }
  .lwptoc_items::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 8px;
  }
  .lwptoc_items::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
  }


  /* end:「luckyWP)サイドバーの目次 */
}