/*
Theme Name: wp-cosmetics-reference
Version: 1.0
*/


.error-404-image {
    width: calc(100% - 40px);
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 30px;
}

.error-home-link {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    text-align: center;
    margin-bottom: 60px;
}

.logo img {
    width: 240px;
    height: auto;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 240px;
    height: auto;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* 検索窓 */
.header-search {
    width: 420px;
}

.search-form-1 {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 48px;
    border: 3px solid #48afc4;
    border-radius: 24px;
    box-sizing: border-box;
    background: #48afc4;
}

.search-form-1 label {    
    flex: 1;
    min-width: 0;
    height: 100%;
}

.search-form-1 input {
    width: 100%;
    height: 100%;
    padding: 0 18px;
    border: none;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    font-size: 16px;
}

.search-form-1 input::placeholder {
    color: #c5c4c4;
}

.search-form-1 button {
    position: relative;
    flex: 0 0 64px;
    height: 100%;
    padding: 0;
    border: none;
    background-color: transparent;
    cursor: pointer;

    background-image: url("images/search-icon.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}


footer {
    margin-top: 80px;
    text-align: center;
}

.footer-logo img {
    width: 180px;
    height: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}
.copyright {
    text-align: center;
}

/*=== カラム 全体===*/
.site_layout {
    display: grid;
    grid-template-columns: minmax(0,800px) 280px;
    gap: 40px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page_content {
    min-width: 0;
}

.side_bar {
    min-width: 0;
}

/*=== 右カラム=== */
.site_article {
    display: block;
    width: 260px;    
    margin: 0 auto;    
}

.side_article_image {
    display: block;
    width: 100%;
}

.side_article_image img {
    display: block;
    width: 100%;
    height: auto;
}

.site_article_title {
    display: block;
    width: 100%;
}



/*==== サイト全体の見出し・段落・画像 ==== */

.page-eyecatch {
    padding-bottom: 30px;
}

h1
 {
    text-align: center;
}

/*==== 目次 ==== */
.article-toc {
    max-width: 600px;
    box-sizing: border-box;
    margin: 30px auto 40px;
    padding: 20px 24px;
    border: 1px solid #aaa;
    border-radius: 8px;
}

.article-toc-title {
    margin: 0 0 12px;
    font-weight: bold;
}

.article-toc ul {
    margin: 0;
    padding-left: 24px;
}



h2,
h3,
h4,
h5,
h6
{
max-width: 600px;
margin: 40px auto 0;
text-align: left;
}

main h1 > span,
main h2 > span,
main h3 > span,
main h4 > span,
main h5 > span,
main h6 > span {
    max-width: 600px; 
    display: inline-block;
    text-align: left !important;
}



p > .text-inner {
    display: block;
    width: calc(100% - 40px);
    max-width: 600px; 
    margin-left: auto;
    margin-right: auto;  
    text-align: left;
}

/*=== 運営者情報の表 ===*/
.profile_table {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    border-collapse: collapse;
}

.profile_table td:first-child {
    width: 28%;
    background-color: #f5f5f5;
    font-weight: 700;
}

.profile_table td:last-child {
    width: 72%;
}

/*==== 問い合わせページ ==== */

.wpcf7-form p {
    width: auto;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}



/*==== トップページ ==== */

.page-eyecatch {
    width: calc(100% - 40px);
    max-width: 1000px;
    margin: 0 auto 40px;

}

.page-eyecatch img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
    
.hero {
    padding: 80px 20px;
}

.hero-text {
    width: calc(100% - 40px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

/*  使い回し用グレーボックス */

.wp-blok-group .theme-content-card {
    background-color: #f5f5f7;
    padding: 40px;
    margin: 40px auto;
    max-width: 600px;
    width: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    text-align: left;
}



/* ========================================
   FT リスト・ボックス
======================================== */


/* POINTタブ付き新橋色ボックス */

/* POINT box */
.point-box {
    max-width: 600px;    
    position: relative;
    margin: 40px auto 32px;
    padding: 36px 28px 24px;
    border: 3px solid #4bafc4;
    border-radius: 0 18px 18px 18px;
    background: #fff;
}

/* POINT tab */
.point-box::before {
    content: "POINT";
    position: absolute;
    top: -31px;
    left: -3px;
    padding: 8px 18px;
    background: #4bafc4;
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
}

/* テキスト変更可能なタブ付きボックス */
/* グループにクラス名 */
.tab-box {
    max-width: 600px;
    position: relative;
    margin: 80px auto 32px;
    padding: 36px 28px 24px;
    border: 3px solid #4bafc4;
    border-radius: 0 18px 18px 18px;
    background: #fff;
}

.tab-box > ul {
    padding-left: 0;
}

/* タブ （段落にクラス名でテキスト編集できる）*/

.tab-title {
    position: absolute;
    top: -31px;
    left: -3px;
    margin: 0;
    padding: 8px 18px;
    width: fit-content;
    text-indent: 0 !important;
    background: #4bafc4;
    border-radius: 10px 10px 0 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.tab-title > .text-inner {
    width: auto;
    margin: 0;
}

/* Text inside */
.point-box p {
    margin: 0 0 14px;
    line-height: 1.8;
}

.point-box p:last-child {
    margin-bottom: 0;
}

/* ボックス内リスト ※ボックスなしだと左に寄る*/

.point-list {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.point-list:last-child {
    margin-bottom: 0;
}

.point-list::before {
    content: "✅";
    flex-shrink: 0;
    margin-right: 6px;
}

.dot-list {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.dot-list:last-child {
    margin-bottom: 0;
}

.dot-list::before {
    content: "●";
    flex-shrink: 0;
    margin-right: 6px;
}

/* 丸囲み番号リスト */

.number-list {
    list-style: none;
    counter-reset: number;
    padding-left: 0;
}

.number-list li {
    display: flex;
    align-items: flex-start;
    counter-increment: number;
    margin-bottom: 10px;
}

.number-list li::last-child {
    margin-bottom: 0;
}

.number-list li::before {
    display: inline-block;
    min-width: 1.7em;
    margin-right: 5px;
    border-radius: 50%;
    background-color: #4bafc4;
    color: #fff;
    font-weight: bold;
    font-size: .75em;
    line-height: 1.7em;
    text-align: center;
    content: counter(number);
    transform: translateY(2px);
}

/* ロジックフロー */
.logic-flow {
  max-width: 600px;
  background: #f5f6f6;
  border-left: 4px solid #4bafc4;
  border-radius: 4px;
  padding: 20px;
  margin: 40px auto;
  text-align: center;
}

.logic-arrow {
  color: #4bafc4;
  font-size: 28px;
  font-weight: bold;
   -webkit-text-stroke: 2px #4bafc4;
  text-align: left;
  padding-left: 20%;
  margin: 4px 0;
}




/* ボックスの中のWordPressリスト機能に対する設定 */
.theme-content-card ul,
.theme-content-card ol ,
.theme-content-card .wp-block-list { /* WordPressのブロックエディタ用クラス名も追加 */
    padding-left: 25px !important; /*黒丸がはみ出さないための左側余白 */
    margin: 15px 0 !important; /* リストの上下のすきま */
    list-style-type: disc !important; /* 黒丸を確実に表示させる */

.theme-content-card li {
    margin-bottom: 10px; /* 箇条書きの項目ごとのすきま */
}
}

/*==== Serviceページ 背景なし通常段落 ==== */


.ai-note p {
    width: calc(100% - 40px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}




/*==== 実績ページ ==== */
/*==== Works ジャンル一覧 ==== */ 
.works-category-nav  {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start !important;
    gap: 16px;

    max-width: 692px;
    margin-left: auto;
    margin-right: auto;
}  

.works-category-nav > .wp-block-button {
    flex: 0 0 220px !important;
    width: 220px !important;
}

.works-category-nav > .wp-block-button__link {
    width: 100% !important;
    box-sizing: border-box;
    text-align: center;
}

/*==== グレー背景色ｈ2 ==== */ 
.section-title {
    max-width: 600px;
    margin: 40px auto 50px;
    padding: 20px;
    background: #34393d;
    color: #fff;
}

.section-title-sinbashi{
    max-width: 600px;
    margin: 40px auto 50px;
    padding: 20px;
    background: #94bdc5;
    color: #34393d;
}

/*==== 段落 中央配置左揃え ==== */ 
.works-description {
    width: calc(100% - 40px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: left !important;
}

/*==== h3 余白 ==== */ 
.works-item-title {
    width: calc(100% - 40px);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
     margin-top: 50px;
     margin-bottom: 40px;
}


/*==== ギャラリー ==== */ 
.works-gallery {
    width: calc(100% - 40px) !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}



/*==== Contactページ ==== */

.contact-intro {
    text-align: center;
}

.contact-form {
    max-width: 700px;
    margin: 40px auto;
}

.contact-form > div {
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 300px;
}


/* グレーボックス */

.is-style-gray-box {
    background-color: #f5f5f7;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 20px;
}



@media (max-width: 768px) {

    .site_layout {
        grid-template-columns: 1fr;
    }


    .logo,
    .header-search {
        width: calc((100% - 32px) / 2);
    }

    .logo img {
        width: 100%;
        height: auto;
    }


    header {
        padding: 10px;
        position: relative;
        align-items: center;
        gap: 32px;
    }

    .search-form-1 {
        height: 32px;
        border-radius: 16px;
    }

    .search-form-1 button {
      flex: 0 0 43px;
      background-size: 18px 18px;  
    }

    .footer-logo {
        text-align: center;
    }

    .footer-logo img {
        width: calc((100% - 32px) / 2);
        height: auto;
    }

    header {
        padding: 10px;
        position: relative;
        gap: 32px;
    }


    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {       
        width: calc(100% - 40px);
        font-size: 18px !important;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        box-sizing: border-box;
    }

    h1 {
        font-size: 22px !important;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        }

.point-box {
        margin: 32px 0 24px;
        padding: 34px 20px 20px;
        border-width: 3px;        
    }

    .point-box::before {
        padding: 7px 16px 8px;
        font-size: 14px;
    }

.tab-box {
    width: auto;
    box-sizing: border-box;
    margin-left: 20px;
    margin-right: 20px;
}


.works-category-nav {
    justify-content: center !important;
}

.blog-thumbnail {
    width: 100%;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    border: 1px solid #888;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 180px;
}



}