/*
Theme Name: My Original Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: オリジナルで作成したWordPressテーマです。
Version: 1.0.0
*/

/* -------------------------------------------
 * 1. CSS リセットとベーススタイル
 * ------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ★スマホ (モバイルファースト) の基本スタイル (ブレイクポイントなし) */
body {
    min-height: 100vh;
    font-family: sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;

}

body, h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
dl, dd, ol, ul, menu,
figure, fieldset, legend,
hr {
    margin: 0;
    padding: 0;
}

h1,h2,h3,h4 { line-height: 1.5; }
a {
    color: inherit;
    text-decoration: none;
}

a:visited { color: inherit; }

ol, ul { list-style: none; }

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

button, input, select, textarea {
    font-family: inherit; /* フォントを親要素から継承 */
    font-size: inherit;
    line-height: inherit;
    border: none;
    background: none;
    color: inherit;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
    display: block;
}

.small,
.site-info { font-size: 12px; }



#nav {
	width: 32px;
	height: 40px;
	position: fixed;
	z-index: 2;
}

.site-header {
    height: 60px;
    width: 100%;
    padding:5px 5%;
    display: flex;
    align-items: center;
    color: #fff;
    position: fixed;
    z-index: 999;
}

.site__branding-outer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site__branding-outer img {
    height: 40px;
    width: auto;
}
.site__branding p {
    font-size: 12px;
    font-weight: normal;
}

.site__branding h1 {
    font-size: 16px;
}

/*ナビメニューのスタイルを指定*/
nav.NavMenu {
    height: 100vh;
    margin: 60px 0 0;
	position: fixed; /*表示位置を固定*/
	z-index: 2; /*重ね順を変更*/
	top: 0; /*表示位置を指定*/
	right: 0; /*表示位置を指定*/
	width: 100%; /*全幅表示*/
	transform: translateX(150%); /*ナビを上に隠す*/
	transition: all 0.6s; /*アニメーションの時間を指定*/
    background: #0a52b2;
}

nav.NavMenu ul {
    padding: 0;
}

nav.NavMenu ul li {
    height: 70px;
    width: 100%;
    padding: 0;
    border-top: dotted 1px;
}

.nav__contact {
    padding: 20px;
    border-top: dotted 1px;
    border-bottom: dotted 1px;
}

nav.NavMenu ul li a {
	height: 70px;
    width: 100%;
    padding: 0 0 0 20px;
	display: flex;
	align-items: center;
	color: #ffffff;
	line-height: 1;
    
}


/*トグルボタンが押されたときに付与するクラス*/
nav.NavMenu.active { transform: translateX(0%); }

/* --- ここからが子階層のためのスタイル --- */

/* 子階層を持つ親要素のスタイル */
nav.NavMenu ul.menu li.has-child {
    position: relative; /* 矢印配置の基準 */
}

/* 子階層メニュー(ul)は初期状態で非表示 */
nav.NavMenu ul.menu .submenu {
    width: 100%;
    margin: 0;
    list-style: none;
    padding-left: 0;
    display: none;
}

nav.NavMenu ul.menu .is-open ul.submenu {
    height: 210px;
}

nav.NavMenu ul.menu .submenu li { background: #24407f; }

/* 子階層のメニュー項目 */
nav.NavMenu ul.menu .submenu li a {
    padding-left: 40px; /* インデントを付けて階層を分かりやすくする */
}

nav.NavMenu ul li.last-child a { border-bottom: dotted 1px; }

nav.NavMenu ul.menu .has-child > a::after {
    margin: 10px 0 0 10px;
    content: ''; /* テキストを削除 */
    display: block;
    width: 8px;   /* アイコンの幅 */
    height: 8px;  /* アイコンの高さ */
    border-bottom: 2px solid #ffffff; /* V字の右下の線 */
    border-right: 2px solid #ffffff;  /* V字の左下の線 */
    /* 初期状態で下向き( V )になるように回転 */
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.4s ease; /* 回転アニメーションの速度 */
}

/* 開いた状態では上向き( ^ )になるように回転 */
nav.NavMenu ul.menu .has-child.is-open > a::after {
    /* translateYで位置を維持しつつ、回転角度だけを変更 */
    transform: translateY(-40%) rotate(-135deg);
}

/*トグルボタンのスタイルを指定*/
.Toggle {
	display: block;
	position: fixed;    /* bodyに対しての絶対位置指定 */
	right: 5px;
	width: 42px;
	height: 40px;
	cursor: pointer;
	z-index: 3;
}


.Toggle div span {
	display: block;
	position: absolute;
	width: 30px;
	border-bottom: solid 2px #fff;
	-webkit-transition: .35s ease-in-out;	/*変化の速度を指定*/
	-moz-transition: .35s ease-in-out;		/*変化の速度を指定*/
	transition: .35s ease-in-out;			/*変化の速度を指定*/
	left: 6px;
}
 
.Toggle div span:nth-child(1) {
	top: 9px;
}
 
.Toggle div span:nth-child(2) {
	top: 18px;
}
 
.Toggle div span:nth-child(3) {
	top: 27px;
}
 
/* 最初のspanをマイナス45度に */
.Toggle.active span:nth-child(1) {
	top: 18px;
	left: 6px;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
 
/* 2番目と3番目のspanを45度に */
.Toggle.active span:nth-child(2),
.Toggle.active span:nth-child(3) {
	top: 18px;
	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	transform: rotate(45deg);
}

.header__phone-number {
    padding:  0;
    line-height: 1.5;
    font-size: 20px;
    font-weight: bold;
    display: block;
}

.header__phone-number span {
    font-size: 15px;
    font-weight: normal;
    display: block;
}



main {
    width: 90%;
    margin: 0 auto 30px;
    padding: 80px 0 0;
}

.site__info { margin: 0 0 20px; }

.site__info h2 { color: #37aa34; }

.latest-posts h2,
.category-posts h2 {
    margin: 0 0 10px;
    font-size: 23px;
    color: #c63117;
}

.post-info {
    display: flex;
    gap: 10px;
}

.post-list { margin: 0 auto 30px; }

.post-list li { margin: 0 auto 20px; }

.post-thumbnail {
    margin: 0 auto 10px;
}

.post-tags-list {
    width: 100px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
}

.post-date,
.entry-meta,
.seller-addoress { font-size: 12px;}

.entry-header { margin: 0 0 10px; }

.terms-label {
    line-height: 34px;
    margin: 0 0 .5em;
    font-size: 16px;
    font-weight: normal;
}

.entry-title h2 {
    font-size: 22px;
    margin: 0 0 .1em;
}

.terms-label a {
    height: 34px;
    padding: 0 10px;
    font-size: 14px;
    background: #EF4123;
    display: inline-block;
    border-radius: 10px;
    color: #fff;
}

.entry-content {
    gap: 20px;
}

.entry-content table {
    font-size: 14px;
    background-color: none !important;
}

.entry-content table td:first-of-type {
    width: 110px;
    background: #ecf4ff;
}

.seller-wrap > div {
    display:flex;
    gap: 10px;
}

.seller { 
    height: 34px;
    width: 60px;
    padding: 0 10px;
    font-size: 14px;
    background: #EF4123;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    color: #fff;
}

.seller__name { gap: 0; }

.post-tags-list,
.seller { background: #5fa054; }




/* -------------------------------------------
 * 矢印アイコンの追加
 * ------------------------------------------- */

/* ナビゲーション全体を対象とするクラス */
.post-navigation {
    margin-top: 2em;
    padding-top: 1em;
    border-top: 1px solid #ddd;
    display: flex; /* 左右に配置するためにFlexboxを使用 */
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-previous a,
.nav-next a {
  position: relative;
  display: flex;
  align-items: center;
  height: 21px;
}

.nav-previous a::before,
.nav-previous a::after,
.nav-next a::before,
.nav-next a::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  width: 12px;
  height: 1px;
  border-radius: 9999px;
  background-color: #000000;
  transform-origin: 1px 50%;
}

.nav-previous a::before,
.nav-previous a::after {
  left: 0;
  transform-origin: 1px 50%;
  
}

.nav-next a::before,
.nav-next a::after {
  right: 0;
  transform-origin: calc(100% - 0.5px) 50%;
}

.nav-previous a::before,
.nav-next a::before {
  transform: rotate(45deg);
}

.nav-previous a::after,
.nav-next a::after {
  transform: rotate(-45deg);
}

.nav-previous a span { padding: 0 0 0 1em; }

.nav-next a span { padding: 0 1em 0 0; }

.land-archive-link a {
    width: fit-content;
    margin: 0 auto;
    padding: 10px 20px;
    display: block;
    background: #c65440;
    color: #fff;
    border-radius: 8px;
}

.entry-header h1 {
    font-size: 23px;
    color: #0a52b2;
}

.page-indormation { margin: 0 0 20px; }



footer#colophon {
    margin-top: auto;
}

.footer-wrap {
    padding: 10px 5% 50px;
    background: #f1f9ff;
}

.entry-content table td {
    border: solid 1px #ccc;
}

.footer-contact {
    height: 40px;
    width: 100%;
    color: #fff;
    position: fixed;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer button {
    font-size: 18px;
    font-weight: bold;
}

.company-name {
    font-size: 16px;
    font-weight: bold;
    color: #0a52b2;
}

.footer-menu ul {
    display: flex;
    gap: 10px;
}



.site-header,
.footer-contact { background: #3579d5; }







@media (min-width: 430px) {

body,
.seller { font-size: 15px; }


}





@media (min-width: 768px) {

body { font-size: 16px; }

main { margin: 0 auto 50px; }

main.category-archive { padding: 100px 0 0; }

.entry-header {
    margin: 0 0 20px;
    display: flex;
    gap: 10px;
}

.entry-content table { font-size: 16px;}

.entry-content table td { padding: 1em !important; }

.entry-content table td:first-of-type { width: 130px; }


.site__branding h1 {
    font-size: 20px;
    font-weight: bold;
}

.seller-address { font-size: 14px; }

.seller-address br { display: none; }

.post-navigation { padding-top: 2em; }




    /* ナビゲーションの横並び化 */
    .main-navigation ul {
        display: flex; /* 横並びにする */
        justify-content: center;
        border-bottom: none;
    }
    .main-navigation li {
        border-bottom: none;
        margin: 0 15px;
    }

    /* コンテンツ幅の調整 */
    .site-content {
        padding: 30px;
        max-width: 740px; /* タブレット用の最大幅 */
        margin: 0 auto;
    }



.post-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.post-list li { width: 50%; }

.archive-link a {
    font-weight: bold;
    font-size: 18px;
}

.footer-wrap { padding: 30px 5% 50px; }

.footer-inner {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer__site-indo {
    border-right: solid 1px;
    padding: 0 30px 0 0;
}

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



}



@media (min-width: 1024px) {

.site__branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav.NavMenu {
    height: auto;
    width: auto;
    margin: 0;
    transform: none;
    background: none;
}

#site-navigation,
nav.NavMenu ul {
    display: flex;
}

#site-navigation { gap: 20px; }

nav.NavMenu ul {
    margin: 0;
    height: auto;
    gap: 20px;
}

nav.NavMenu ul li {
    height: 60px;
    border-top: none;
    white-space: nowrap;
}

nav.NavMenu ul li a {
    height: 60px;
    padding: 0;
}

.nav__contact {
    height: 90px;
    background: #0a52b2;
    border-radius: 0 0 0 16px;
    border: none;
}

.Toggle { display: none; }

main { padding: 100px 0 0; }

.latest-posts h2,
.category-posts h2 { font-size: 26px; }

}





@media (min-width: 1180px) {

main,
.footer-inner { width: 1000px; }

a:hover { opacity: 50%; }


    .site-content {
        max-width: 1140px;
    }
    

    
}


/* ===========================================
 * min-width: 1200px (さらに広めのデスクトップ)
 * =========================================== */
@media (min-width: 1200px) {
    /* 最大幅をさらに広げる */
.site-content {
    max-width: 1180px;
}



}