/*
Theme Name: 佐伯スタジオ
Author:
Version: 1.0
*/

/* 基本スタイル */
body {
    font-family: "Noto Sans JP", sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #222222;
}

header {
    box-shadow: 0 0 1px #666;
}

header, footer {
    background-color: #ffffff;
    padding: 20px;
}

header h1 {
    font-size: 20px;
}

header h1 a,
footer a {
    color: #222222;
    text-decoration: none;
}

footer p {
    color: #222222;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    display: inline-block;
    margin-right: 15px;
}

#content {
    max-width: 960px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
}

article {
    margin-bottom: 40px;
}

article h2 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}

.entry {

p {
    font-size: 16px;
    line-height: 1.8;
}

}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

blockquote {
    display: block;
    -webkit-margin-before: 1em;
    -webkit-margin-after: 1em;
    -webkit-margin-start: 40px;
    -webkit-margin-end: 40px;
    background: #E1F5FE;
    padding: 15px;
}

/* img */

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignright {
    float: right;
}

.alignleft {
    float: left;
}

img[class*="wp-image-"],
img[class*="attachment-"] {
    height: auto;
    max-width: 100%;
}

/* clearfix */

.clearfix {
    overflow: hidden;
    zoom: 1;
    width: 100%;
}

.clearfix:after {
    content: "";
    display: block;
    clear: both;
}


img.alignleft {
    margin: 0 20px 20px 0;

&
:after {
    content: "";
    display: block;
    clear: both;
}

}

img.alignright {
    margin: 0 0 20px 20px;

&
:after {
    content: "";
    display: block;
    clear: both;
}

}

.size-full {
    margin-bottom: 20px;
}

/*nav*/
/* nav 全体の基本スタイル */
nav {
    position: relative;
    background-color: #fff; /* 背景は白 */
    padding: 10px 0;
}

/* ハンバーガーメニュー用チェックボックスは非表示 */
.nav-toggle {
    display: none;
}

/* ハンバーガーアイコン用ラベル（初期は非表示） */
.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: absolute;
    top: -40px;
    right: 15px;
    z-index: 2;
}

/* ハンバーガーアイコンのライン */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: #333;
    height: 3px;
    width: 100%;
    border-radius: 2px;
    position: absolute;
    transition: all 0.3s ease;
}

/* 中央のライン */
.nav-toggle-label span {
    top: 50%;
    margin-top: -1.5px;
}

/* 上のライン */
.nav-toggle-label span::before {
    content: '';
    top: -8px;
}

/* 下のライン */
.nav-toggle-label span::after {
    content: '';
    top: 8px;
}

/* デスクトップ用：メニューを横並びで表示 */
nav ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul.menu li {

}

nav ul.menu li a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 10px;
    transition: color 0.3s ease;
    display: block;
}

/* 下線エフェクト用の疑似要素（初期状態は非表示） */
nav ul.menu li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #333;
    transition: width 0.3s ease;
}

/* ホバー時およびアクティブなページで下線を表示 */
nav ul.menu li a:hover::after,
nav ul.menu li.current-menu-item a::after {
    width: 100%;
}


#breadcrumbs {
    font-size: 14px;
    margin: 0;
    color: #555; /* テキストの色 */
    background-color: #f8f9fa; /* 背景色 */
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

#breadcrumbs a {
    color: #007bff; /* リンクの色 */
    text-decoration: none;
    transition: color 0.3s;
}

#breadcrumbs a:hover {
    color: #0056b3; /* ホバー時のリンクの色 */
}

#breadcrumbs .breadcrumb_last {
    color: #333; /* 最後の要素の色 */
    font-weight: bold;
}

.main_vis {
    background: url("./img/mainvis.png");
    background-size: cover;
    width: 100%;
    height: 600px;
    background-position: center;
}

@media screen and (max-width: 768px) {
    .main_vis {
        height: 400px;
    }
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 30px;
    background-color: #f0f0f0;
    border-radius: 12px;
}

/* 各カテゴリを二列表示にする */
.category_wrap {
    flex: 1 1 28%;
    max-width: 28%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

/*.category_wrap:hover {*/
/*    transform: translateY(-5px);*/
/*}*/

.category_wrap h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    border-bottom: 2px solid #222;
    padding-bottom: 5px;
}

.child-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.child-category h3 {
    font-size: 16px;
    color: #0078a0;
    margin-bottom: 5px;
}

.category_wrap ul,
.child-category ul {
    list-style: none;
    padding-left: 0;
}

.category_wrap ul li,
.child-category ul li {
    margin-bottom: 5px;

i {
    margin-right: 5px;
    color: #ccc;
}

}

.category_wrap ul li a,
.child-category ul li a {
    text-decoration: none;
    color: #222;
    transition: color 0.3s;
}

.category_wrap ul li a:hover,
.child-category ul li a:hover {
    color: #0056b3;
}

/*フォーム*/
.wpcf7 form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.wpcf7 form label {
    display: block;
    margin-bottom: 20px;
    color: #333;
    width: 100%;
}

/* バッジスタイル */
.wpcf7 form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 25px;
}

.wpcf7 form label {
    display: inline-block;
    margin-bottom: 8px;
    color: #333;
}

/* バッジスタイル */
.badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    color: #fff;
    vertical-align: middle;
}

.badge.required {
    background-color: #e53935; /* 赤 */
}

.badge.optional {
    background-color: #1e88e5; /* 青 */
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: #0078d4;
    outline: none;
    background-color: #fff;
}

.wpcf7-radio {
    margin-top: 5px;
}

.wpcf7 input[type="submit"] {
    background-color: #0078d4;
    color: #fff;
    font-size: 16px;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #005ea2;
}

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

.wpcf7-spinner {
    display: block;
}

.to_contact {
    display: block;
    background: #0c6ca0;
    color: #ffffff;
    padding: 15px;
    max-width: 320px;
    text-align: center;
    margin: auto;

&
:hover {
    background: #0a4b78;
}

}

.content_list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.content_list img {
    max-width: 280px;
    margin: 15px;

&
:hover {
    opacity: 0.6;
}

}

.category-thumbnail {
    max-width: 300px;
    height: 120px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.category-thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    height: auto;
    width: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
}


.table01 th {
    padding: 10px;
    vertical-align: top;
    width: 165px;
    text-align: left;
}

.table01 td {
    padding: 10px;
}

.d-flex{
    display: flex;
}



/* スマホ対応：768px以下で1列表示 */
@media screen and (max-width: 768px) {
    .category {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .category_wrap {
        max-width: 100%;
        flex: 1 1 100%;
    }


    .content_list img {
        max-width: 96%;
        margin: 2%;
    }
    .d-flex{
        display: flex;
        flex-wrap: wrap;
    }

    .d-flex div{
        width: 100%;
    }

    .d-flex div img{
        display: block;
        margin: auto;
    }

    .table01 th {
        width: auto;
    }
}

.ngg-gallery-thumbnail span {
    padding: 5px;
    display: block;
    font-size: 12px;
}


/* スマホ用（画面幅768px以下）のスタイル */
@media screen and (max-width: 768px) {
    header {
        height: 60px;
    }


    /* ハンバーガーアイコンを表示 */
    .nav-toggle-label {
        display: block;
    }

    /* メニューは縦並びにし、デフォルトは非表示 */
    nav ul.menu {
        position: absolute;
        top: 10px;
        right: 15px;
        background: #ffffff;
        width: 200px;
        flex-direction: column;
        display: none;
        box-shadow: 0 0 2px #666;
    }

    nav ul.menu li {
        border-bottom: 1px solid #ccc;
    }

    nav ul.menu li:last-child {
        border-bottom: none;
    }

    /* チェックボックスがオンのときにメニューを表示 */
    .nav-toggle:checked ~ ul.menu {
        display: flex;
        z-index: 100;
    }

    /* ハンバーガーアイコンのアニメーション（チェック時） */
    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked + .nav-toggle-label span::before {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked + .nav-toggle-label span::after {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media screen and (max-width: 500px) {
    .ngg-gallery-thumbnail-box {
        max-width: 50% !important;
    }
}




