/*
Theme Name: tarottoi
Theme URI: 
Author: 
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tarottoi
Tags: 
*/

html {
    font-size: 16px;
    font-feature-settings: "palt";   
}

/* header */
header>div {
    margin-bottom: 4rem;
}
.site-logo {
    position: relative;
    max-width: 10rem;
}
.site-logo a{
    display: block;
    line-height: 0;
    padding: 1rem 0 0;
}
.site-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: -3rem;
    width: 16rem;
    height: 16rem;
    background-color: var(--wp--preset--color--custom-main);
    z-index: -1;
    clip-path: circle(50% at 50% 0);
}
.header-navi {
    margin: 1rem 0 0;
}
.header-navi ul li a{
    background-color: var(--wp--preset--color--custom-white);
    border: 2px solid var(--wp--preset--color--custom-main);
    border-radius: 100px;
    padding: 0 .8rem;
    font-weight: 500;
}

/* 共通 */
.wp-site-blocks {
    display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.wp-site-blocks main{
    flex: 1;
}

.horoscope-template article p {
    text-align: justify;
}

/* 初期marginリセット */
.entry-content > * {
	margin: 0;
}

/* 基本の下余白 */
.entry-content > * {
	margin-block-end: .8rem;
}

/* h2 */
.entry-content h2 {
	margin-block-start: 2rem;
	margin-block-end: 1rem;
}

/* h3 */
.entry-content h3 {
    margin-block-start: .5rem;
	margin-block-end: .5rem;
}

/* h4〜h6 */
.entry-content :is(h4, h5, h6) {
	margin-block-start: 2rem;
	margin-block-end: .8rem;
}

/* 最後の要素だけ余白なし */
.entry-content > *:last-child {
	margin-block-end: 0;
}



body:not(.home) h1 {
    border: none;
    padding: 0;
    position: relative;
    text-align: center;
    display: flex;
    align-items: center;
}
body:not(.home) h1::before, body:not(.home) h1::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: var(--wp--preset--color--custom-main);
    display: block;
}
body:not(.home) h1::before {
    margin-right: .4em;
}
body:not(.home) h1:after {
    margin-left: .4em;
}
h2 {
    position: relative;
    padding-left: .3em;
}
h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: .8em;
    height: .8em;
    background-color: var(--wp--preset--color--custom-main);
    z-index: -1;
    opacity: .2;
}
h3 {
    border: 1px solid #d8dae4;
    display: inline-block;
    padding: .1em .4em;
}

/* 今月の運勢 */
.post-type-archive-horoscope h1 {
    letter-spacing: -1px;
}
.horoscope-wrap {
    position: relative;
    border: 2rem solid transparent;
    border-image-source: url('assets/img/frame.png');
    border-image-slice: 100;
    border-image-repeat: stretch;
}
.horoscope-wrap .wp-block-template-part {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.horoscope-wrap .wp-block-template-part p {
    width: 100%;
}
.zodiac-list {
    max-width: 400px;
    text-align: center;
    gap: 0;
    margin-bottom: 4rem;
}
.zodiac-list figure{
    position: relative;
    padding: 1rem;
    border-bottom: 1px solid var(--wp--preset--color--custom-gray);
    border-right: 1px solid var(--wp--preset--color--custom-gray);
}
.zodiac-list figure:nth-child(3n) {
    border-right: none;
}
.zodiac-list figure:nth-last-of-type(-n+3) {
    border-bottom: none;
}
.zodiac-list figure:nth-child(1)::before,.zodiac-list figure:nth-child(2)::before,.zodiac-list figure:nth-child(4)::before,.zodiac-list figure:nth-child(5)::before,.zodiac-list figure:nth-child(7)::before,.zodiac-list figure:nth-child(8)::before {
    content: '';
    position: absolute;
    right: -8px;
    bottom: -8px;
    width: 15px;
    height: 15px;
    background: url(assets/img/star-g.png) no-repeat;
    background-size: contain;
    background-position: bottom;
}
.zodiac-list figure>a{
    background: #ccc;
    border-radius: 50%;
    padding: 1rem;
}
.zodiac-list figure:nth-child(1)>a{
    background-color: var(--wp--preset--color--custom-aries);
}
.zodiac-list figure:nth-child(2)>a{
    background-color: var(--wp--preset--color--custom-taurus);
}
.zodiac-list figure:nth-child(3)>a{
    background-color: var(--wp--preset--color--custom-gemini);
}
.zodiac-list figure:nth-child(4)>a{
    background-color: var(--wp--preset--color--custom-cancer);
}
.zodiac-list figure:nth-child(5)>a{
    background-color: var(--wp--preset--color--custom-leo);
}
.zodiac-list figure:nth-child(6)>a{
    background-color: var(--wp--preset--color--custom-virgo);
}
.zodiac-list figure:nth-child(7)>a{
    background-color: var(--wp--preset--color--custom-libra);
}
.zodiac-list figure:nth-child(8)>a{
    background-color: var(--wp--preset--color--custom-scorpio);
}
.zodiac-list figure:nth-child(9)>a{
    background-color: var(--wp--preset--color--custom-sagittarius);
}
.zodiac-list figure:nth-child(10)>a{
    background-color: var(--wp--preset--color--custom-capricorn);
}
.zodiac-list figure:nth-child(11)>a{
    background-color: var(--wp--preset--color--custom-aquarius);
}
.zodiac-list figure:nth-child(12)>a{
    background-color: var(--wp--preset--color--custom-pisces);
}
.zodiac-list figcaption {
    margin: 0;
    font-size: 12px;
}
.zodiac-list figcaption a{
    font-size: 12px;
    display: block;
    text-decoration: none;
    color: var(--wp--preset--color--custom-main);
    padding-top: 2px;
}
p.horoscope-day strong{
    font-size: 140%;
    font-weight: 500;
}

/* 新着情報 */
.news-item {
    background: #f5f5fa;
    padding: var(--wp--preset--spacing--m);
    font-size: var(--wp--preset--font-size--m);
    margin: var(--wp--preset--spacing--s) 0;
}
span.news-date,span.news-label {
    border: 1px solid var(--wp--preset--color--custom-main);
    font-size: var(--wp--preset--font-size--s);
    padding: .2em .8em;
    margin-right: .2em;
    background: var(--wp--preset--color--custom-white);
    color: var(--wp--preset--color--custom-main);
    font-weight: 500;
}
span.news-date {
    background: var(--wp--preset--color--custom-main);
    color: var(--wp--preset--color--custom-white);
}
a.news-title {
    display: block;
    margin: .4em 0 .2em;
}
.news-excerpt {
    font-size: .85em;
}


/* footer */
footer {
    font-size: 14px;
}
.footer-navi {
    width: 90%;
}
.footer-navi p{
    margin: 0 1em;
}
.footer-navi p a{
    position: relative;
    text-decoration: none;
    padding-left: 1em;
    display: flex;
    align-items: center;
}
.footer-navi p a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: url('assets/img/star-w.svg')no-repeat;
    background-size: contain;
    background-position: center;
    width: .8em;
    height: 100%;
}
@media screen and (max-width: 600px) {
	.footer-navi {
        max-width: 400px;
    }
}
@media (hover: hover) {
    .footer-navi p a:hover{
        opacity: .8;
    }
}


/* フォーム */
.wpcf7-form {
    position: relative;
}
.wpcf7-form label {
    display: block;
    margin: 1rem 0;
}
.wpcf7 input,
.wpcf7 textarea {
	width: 100%;
	padding: .75rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	font: inherit;
    box-sizing: border-box;
    margin: .5rem 0 0;
}
.wpcf7 textarea {
	min-height: 10em;
	resize: vertical;
}
.wpcf7 select {
    display: block;
    margin: .5rem 0 0;
}
.wpcf7-submit {
	width: fit-content;
	padding: .75rem 1.5rem;
	cursor: pointer;
}
.required {
    display: inline-block;
    margin-left: .5em;
    padding: 0 0 0 .2em;
    font-size: .6rem;
    color: #d33;
    margin: 0;
    vertical-align: text-top;
}
.wpcf7-list-item {
    margin: 0;
}
span.wpcf7-list-item>label {
    margin: 0;
    line-height: 1.4;
}
span.wpcf7-list-item>label input{
    cursor: pointer;
}
span.wpcf7-list-item-label {
    display: flex;
    justify-content: center;
}
p.terms-link {
    margin: 0;
}
p.terms-link a{
    font-size: var(--wp--preset--font-size--s);
}



/* 今月の運勢記事 */
.zodiac-icon {
    background: #ccc;
    border-radius: 50%;
    padding: 1rem;
    width: 15vw;
    max-width: 70px;
}
.zodiac-icon img{
    overflow: unset;
}
.term-aries .zodiac-icon {
    background: var(--wp--preset--color--custom-aries);
}
.term-aries h2::before {
    background-color: var(--wp--preset--color--custom-aries);
}
.term-taurus .zodiac-icon {
    background: var(--wp--preset--color--custom-taurus);
}
.term-taurus h2::before {
    background-color: var(--wp--preset--color--custom-taurus);
}
.term-gemini .zodiac-icon {
    background: var(--wp--preset--color--custom-gemini);
}
.term-gemini h2::before {
    background-color: var(--wp--preset--color--custom-gemini);
}
.term-cancer .zodiac-icon {
    background: var(--wp--preset--color--custom-cancer);
}
.term-cancer h2::before {
    background-color: var(--wp--preset--color--custom-cancer);
}
.term-leo .zodiac-icon {
    background: var(--wp--preset--color--custom-leo);
}
.term-leo h2::before {
    background-color: var(--wp--preset--color--custom-leo);
}
.term-virgo .zodiac-icon {
    background: var(--wp--preset--color--custom-virgo);
}
.term-virgo h2::before {
    background-color: var(--wp--preset--color--custom-virgo);
}
.term-libra .zodiac-icon {
    background: var(--wp--preset--color--custom-libra);
}
.term-libra h2::before {
    background-color: var(--wp--preset--color--custom-libra);
}
.term-scorpio .zodiac-icon {
    background: var(--wp--preset--color--custom-scorpio);
}
.term-scorpio h2::before {
    background-color: var(--wp--preset--color--custom-scorpio);
}
.term-sagittarius .zodiac-icon {
    background: var(--wp--preset--color--custom-sagittarius);
}
.term-sagittarius h2::before {
    background-color: var(--wp--preset--color--custom-sagittarius);
}
.term-capricorn .zodiac-icon {
    background: var(--wp--preset--color--custom-capricorn);
}
.term-capricorn h2::before {
    background-color: var(--wp--preset--color--custom-capricorn);
}
.term-aquarius .zodiac-icon {
    background: var(--wp--preset--color--custom-aquarius);
}
.term-aquarius h2::before {
    background-color: var(--wp--preset--color--custom-aquarius);
}
.term-pisces .zodiac-icon {
    background: var(--wp--preset--color--custom-pisces);
}
.term-pisces h2::before {
    background-color: var(--wp--preset--color--custom-pisces);
}
.link-wrap>div {
    width: 40%;
}
.link-wrap a {
    position: relative;
}
.link-wrap a::before {
    position: absolute;
    content: '';
    display: block;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    width: .4rem;
    height: .4rem;
    border-bottom: none;
    border-left: none;
    border-top: 2px solid var(--wp--preset--color--custom-white);
    border-right: 2px solid var(--wp--preset--color--custom-white);
    transform: rotate(45deg);
}
.link-wrap .is-style-outline--1 a::before {
    border-color: var(--wp--preset--color--custom-main);
}
@media screen and (max-width: 600px) {
    .link-wrap {
        flex-direction: column-reverse;
    }
    .link-wrap>div {
        width: 90%;
    }
}
@media (hover: hover) {
    .link-wrap a:hover {
        background-color: #555f8c;
    }
    .link-wrap .is-style-outline--1 a:hover {
        background-color: #e6e6f0;
    }
}

/* 今週のひとこと */
.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.cards h2 {
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.card {
    border: 1px solid var(--wp--preset--color--custom-gray);
    padding: .5rem;
    border-radius: 4px;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}
.card p {
    margin: .2rem 0;
}
.cards .card h2::before {
    display: none;
}
.cards .card h2 span {
    display: inline-block;
    position: relative;
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: center;
    border-radius: 3px;
    width: 1em;
    height: 1em;
    margin-right: .2em;
}
.cards .card:nth-child(1) h2 span {
    background-image: url(assets/img/aries.png);
    background-color: var(--wp--preset--color--custom-aries);
}
.cards .card:nth-child(2) h2 span {
    background-image: url(assets/img/taurus.png);
    background-color: var(--wp--preset--color--custom-taurus);
}
.cards .card:nth-child(3) h2 span {
    background-image: url(assets/img/gemini.png);
    background-color: var(--wp--preset--color--custom-gemini);
}
.cards .card:nth-child(4) h2 span {
    background-image: url(assets/img/cancer.png);
    background-color: var(--wp--preset--color--custom-cancer);
}
.cards .card:nth-child(5) h2 span {
    background-image: url(assets/img/leo.png);
    background-color: var(--wp--preset--color--custom-leo);
}
.cards .card:nth-child(6) h2 span {
    background-image: url(assets/img/virgo.png);
    background-color: var(--wp--preset--color--custom-virgo);
}
.cards .card:nth-child(7) h2 span {
    background-image: url(assets/img/libra.png);
    background-color: var(--wp--preset--color--custom-libra);
}
.cards .card:nth-child(8) h2 span {
    background-image: url(assets/img/scorpio.png);
    background-color: var(--wp--preset--color--custom-scorpio);
}
.cards .card:nth-child(9) h2 span {
    background-image: url(assets/img/sagittarius.png);
    background-color: var(--wp--preset--color--custom-sagittarius);
}
.cards .card:nth-child(10) h2 span {
    background-image: url(assets/img/capricorn.png);
    background-color: var(--wp--preset--color--custom-capricorn);
}
.cards .card:nth-child(11) h2 span {
    background-image: url(assets/img/aquarius.png);
    background-color: var(--wp--preset--color--custom-aquarius);
}
.cards .card:nth-child(12) h2 span {
    background-image: url(assets/img/pisces.png);
    background-color: var(--wp--preset--color--custom-pisces);
}
div.c-i {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    text-align: center;
    margin-top: auto
}
div.c-i>div {
    position: relative;
    color: var(--wp--preset--color--custom-main);
    border: 1px solid var(--wp--preset--color--custom-gray);
    line-height: 1;
}
div.c-i>div h3{
    border: none;
    font-size: var(--wp--preset--font-size--s);
    background: var(--wp--preset--color--custom-gray);
    margin: 0;
    padding: 0;
    width: 100%;    
}
div.c-i>div p{
    margin: .4rem 0;
    font-size: var(--wp--preset--font-size--s);
}
@media screen and (max-width: 600px) {
    .cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* お悩みレター */
.letters_text {
    margin-bottom: var(--wp--preset--spacing--l);
    padding-top: var(--wp--preset--spacing--s);
    padding-right: var(--wp--preset--spacing--s);
    padding-bottom: var(--wp--preset--spacing--s);
    padding-left: var(--wp--preset--spacing--s);
    font-size: var(--wp--preset--font-size--s);
    background-color: var(--wp--preset--color--custom-gray);
    border-radius: 8px;
}
.letters-archive li {
    border: 1px solid var(--wp--preset--color--custom-gray);
    padding: .8rem;
}
.letters-archive .taxonomy-letters_genre a {
    font-size: var(--wp--preset--font-size--s);
    text-decoration: none;
    background: var(--wp--preset--color--custom-main);
    color: var(--wp--preset--color--custom-white);
    padding: 0 .8em;
    display: inline-block;
    border-radius: 40px;
    vertical-align: middle;
}
.a-send {
    padding: 1px;
    margin-bottom: 2rem;
}
.a-send a{
    position: relative;
    display: block;
    text-decoration: none;
    background: var(--wp--preset--color--custom-main);
    border: 2px solid #7382c8;
    box-shadow: 0 0 0 1px var(--wp--preset--color--custom-main);
    color: #fff55a;
    padding: .5rem;
    border-radius: 100px;
    font-size: var(--wp--preset--font-size--l);
    font-weight: 500;
    letter-spacing: 1px;
}
.a-send a::before {
    position: absolute;
    content: '';
    display: block;
    right: 1rem;
    top: 0;
    bottom: 0;
    margin: auto;
    width: .4rem;
    height: .4rem;
    border-bottom: none;
    border-left: none;
    border-top: 2px solid #fff55a;
    border-right: 2px solid #fff55a;
    transform: rotate(45deg);
}
@media (hover: hover) {
    .a-send a:hover {
        opacity: .95;
    }
}