/*
Theme Name: Original Theme
Description: はじめて作るオリジナルテーマです。
Version: 1.0
*/
body {
margin:0;
font-family:sans-serif;
line-height: 1.8;
color: #222;
background: #fff;
}

a{
    color: inherit;
    text-decoration:none;
}

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

.site-header {
    height: 65px;
    display: flex;
    align-items:center;
    gap:10px;
    padding-left:20px;
    flex-shrink:0;
}

.header-logo{
display:flex;
align-items:center;
gap:10px;
padding-left: 10px;
flex-shrink: 0;
}

.header-logo a{
display:block;
flex-shrink:0;
}

.header-logo img{
    width:155px;
    display:block;
}

.site-title{
    margin:0;
    font-size:11px;
    font-weight: normal;
    line-height:1.2;
    color: #333;
    white-space: nowrap;
}

.header-nav-area{
    flex:1;
    display: flex;
    justify-content: flex-end;
    padding: 0 16px;
}

.global-nav {
    display:flex;
    flex-direction:column;
    align-items: flex-end;
    gap: 0;
}

.main-menu,
.sub-menu{
    display:flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}
.main-menu{
    gap: 17px;
    line-height: 1;
}
.sub-menu{
    gap:12px;
    line-height: 1;
    margin-top: 6px;
}

.main-menu a {
    font-size: 10px;
    font-weight: normal;
    line-height:1;
}

.sub-menu a{
    font-size: 10px;
    font-weight: normal;
    line-height: 1;
    color: #333;
}

.sub-menu li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sub-menu li::before {
    content:"";
    display: block;
    width: 0;
    height: 0;
    border-left: 5px solid #CCC;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
}

.main-menu a:hover,
.sub-menu a:hover {
    opacity:0.7;
}

.header-button {
    width: 116px;
    height: 65px;
    display:flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    white-space: nowrap;
}

.header-button:hover {
    opacity: 0.85;
}

.first-view {
    width: 100%;
    background: #fafafa;
}

.first-view-inner {
    max-width: 1080px;
    height: 400px;
    margin: 0 auto;
    overflow:hidden;
}

.first-view-inner img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.site-footer {
    padding: 24px;
    background: #222;
    color: #fff;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

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

.opening-section {
   padding: 40px 0;
   background: #fff;
   text-align: center; 
}

.section-inner {
    max-width: 1080px;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.section-label {
    margin: 0 0 14px;
    font-size: 14px;
    font-weight: bold;
    color: #777;
    letter-spacing: 0.12em;
}

.opening-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.section-lead {
    max-width: 720px;
    margin: 0 auto 38px;
    font-size: 16px;
    line-height: 2;
}

.opening-section ul {
    display: flex;
    gap: 24px;
    margin: 0;
    padding:0;
    list-style: none;
    text-align: left;
}

.opening-section li {
    flex:1;
    padding: 32px;
    background: #f7f7f7;
    border-radius: 20px;
}

.opening-section li img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
    border-radius: 14px;
}

.opening-section li h3 {
    margin: 0 0 16px;
    font-size: 22px;
    line-height: 1.5;
}

.opening-section li p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.body-section {
    padding: 80px 0;
    background: #f7f7f7;
}

.body-section .section-inner {
    display:flex;
    align-items: center;
    gap: 56px;
}

.body-section .section-inner > img {
    width: 50%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}
 
.body-section .section-inner > div{
    flex: 1 ;
}

.body-section .section-label {
    margin: 0 0 14px;
}

.body-section h2 {
    margin: 0 0 24px;
    font-size: 36px;
    line-height: 1.5;
}

.body-section .section-inner > div > p {
    margin:0 0 18px;
    font-size: 16px;
    line-height: 2;
}

.body-section .section-inner > div > p:last-child {
    margin-bottom: 0;
}

.service-section {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}

.service-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.service-section .section-lead {
    max-width: 780px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
}

.service-section dl {
    display: grid;
    grid-template-columns: 240px 1fr;
    max-width: 980px;
    margin: 0 auto;
    text-align: left;
    border-top: 1px solid #dddddd;
    border-left: 1px solid #dddddd;
    border-radius: 20px;
    overflow: hidden;
}

.service-section dt,
.service-section dd {
    margin: 0;
    padding: 24px 28px;
    border-right: 1px solid #dddddd;
    border-bottom: 1px solid #dddddd;
}

.service-section dt {
    font-weight: bold;
    background: #eeeeee;
}

.service-section dd {
    background:  #f7f7f7;
    line-height: 2;
}

.works-section {
    padding: 80px 0;
    background: #f7f7f7;
    text-align: center;
}

.works-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.works-section .section-lead {
    max-width: 780px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
}

.works-section ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.works-section li {
    background: #ffffff;
    border-radius:  20px;
    overflow: hidden;
}

.works-section li img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.works-section li h3 {
    margin: 24px 24px 12px;
    font-size: 15px;
    line-height: 1.5;
}

.works-section li p {
    margin: 0 24px 28px;
    font-size: 15px;
    line-height: 1.9;
}

.flow-section {
    padding: 80px 0;
    background: #ffffff;
    text-align: center;
}

.flow-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.flow-section .section-lead {
    max-width: 780px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
}

.flow-section ol {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: flow-number;
    text-align: left;
}

.flow-section li {
    position: relative;
    padding: 32px 24px 28px;
    background: #f7f7f7;
    border-radius: 20px;
    counter-increment: flow-number;
}

.flow-section li::before {
    content:counter(flow-number, decimal-leading-zero);
    display: block;
    margin: 0 0 20px;
    font-size:  32px;
    font-weight: bold;
    line-height: 1;
    color: #cccccc;
}

.flow-section li h3 {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.5;
}

.flow-section li p {
    margin: 0;
    font-size: 14px;
    line-height: 1.9;
}

.price-section {
    padding: 80px 0;
    background: #f7f7f7;
    text-align: center;
}

.price-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.price-section .section-lead {
    max-width: 780px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 2;
}

.price-section ul {
    display: grid;
    grid-template-columns:  repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    text-align: left;
}

.price-section li{
    padding: 36px 28px;
    background:  #ffffff;
    border-radius: 20px;
}

.price-section li h3 {
    margin: 0 0 24px;
    font-size: 18px;
    line-height: 1.5;
    text-align: center;
}

.price-section .price {
    margin: 0 0 10px;
    text-align: center;
    line-height: 1.2;
}

.price-section .price strong {
    font-size: 30px;
    line-height: 1;
}

.price-section .price span {
    font-size: 14px;
    font-weight: bold;
}

.price-section li small {
    display: block;
    text-align: center;
    font-size: 12px;
    line-height: 1.8;
    color: #666666;
}

.price-section li p {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.9;
}

.price-section li p:last-child {
    margin-bottom: 0;
}

.price-section .section-inner > p:last-child {
    margin: 0;
}

.price-section .section-inner >p:last-child small {
    font-size: 12px;
    line-height: 1.8;
    color: #666666;
}

.cta-section {
    padding: 80px 0;
    background: #222222;
    color: #ffffff;
    text-align: center;
}

.cta-section .section-label {
    color: #cccccc;
}

.cta-section .section-lead {
    max-width: 780px;
    margin: 0 auto 36px;
    font-size: 16px;
    line-height: 2;
}

.cta-section a {
    display: inline-block;
    min-width: 260px;
    padding: 18px 36px;
    color: #222222;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    background: #ffffff;
    border-radius: 999px;
}

.cta-section a:hover {
    opacity: 0.8;
}

.cta-section small {
    display: block;
    margin: 20px 0 0;
    font-size: 12px;
    line-height: 1.8;
    color:#cccccc;
}

/*＝＝＝＝＝＝第12章：トップページ全体の仕上げ＝＝＝＝＝＝*/

.opening-section,
.body-section,
.service-section,
.works-section,
.flow-section,
.price-section,
.cta-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.opening-section h2,
.body-section h2,
.service-section h2,
.works-section h2,
.flow-section h2,
.price-section h2,
.cta-section h2 {
    margin: 0 0 20px;
    font-size: 36px;
    line-height: 1.5;
}

.opening-section li,
.works-section li,
.flow-section li,
.price-section li {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

*{
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/*====レスポンシブ対応====*/

@media (max-width: 768px){

    .section-inner{
        width: calc(100% - 32px);
        max-width: none;
        margin: 0 auto;
    }

    .opening-section,
    .service-section,
    .works-section,
    .flow-section,
    .price-section,
    .cta-section,
    .body-section{
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .opening-section h2,
    .service-section h2,
    .works-section h2,
    .flow-section h2,
    .price-section h2,
    .cta-section h2,
    .body-section h2{
        font-size: 28px;
        line-height: 1.5;
    }

    .section-lead{
        margin-bottom: 32px;
        font-size: 15px;
        line-height: 1.9;
    }

/*FV:スマホではスマホ用画像を比率のまま表示*/
    .first-view {
        width:100%;
        margin: 0;
        padding: 0;
    }

    .first-view-inner {
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .first-view-inner {
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 0;
    }

    .first-view-inner picture {
        display: block;
        width: 100%;
    }

    .first-view-inner img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center center;
        display: block;
    }

/*Header*/
.site-header {
    height: auto;
    padding: 14px 0;
}

.site-header .section-inner {
    display: block;
}

.site-title {
    margin: 0 0 10px;
    text-align: center;
}

.site-title img {
    max-height: 36px;
}

/*Opening:スマホでは必ず１列*/
.opening-section ul{
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.opening-section li{
    width: 100%;
    margin:0 0 20px;
    padding:24px;
}

.opening-section li:last-child{
    margin-bottom: 0;
}

.opening-section li img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 0 20px;
}

.opening-section li p{
    margin: 0;
    font-size: 15px;
    line-height: 1.9;
}

/*Body*/
.body-section .section-inner{
    display: block;
}

.body-section .section-inner >img{
    width: 100%;
    height: 260px;
    margin-bottom: 28px;
}

.body-section .section-inner > div > p{
    font-size: 15px;
    line-height: 1.9;
}

/*Service*/
.service-section .section-inner{
    padding-left: 0;
    padding-right: 0;
}

.service-section dl {
    display: block;
    width: 100%;
}

.service-section dt,
.service-section dd{
    width: 100%;
    margin: 0;
    padding: 18px 20px;
    border-right: 1px solid #dddddd;
}

/*Works*/
.works-section ul{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.works-section li img{
    height: 220px;
}

/*Flow*/
.flow-section ol{
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.flow-section li{
    padding:  28px 24px;
}

/*Price*/
.price-section ul {
    display: grid;
    grid-template-columns: 1fr;
    gap :20px;
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
}

.price-section li {
    padding: 32px 24px;
}

/*CTA*/
.cta-section a {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
}
}

/* PCではハンバーガーボタンを非表示 */
.menu-toggle {
    display: none;
}

/* PC用：header-nav-areaの中でナビとボタンを横並びにする */
.header-nav-area {
    display: flex;
    align-items: center;
    margin-left: auto;
    padding: 0;
}

.header-nav-area .global-nav{
    margin-right: 30px;
}

.header-nav-area .header-button{
    display: flex;
    justify-content: center;
    align-items: center;
}

/*  スマホ表示 */
@media (max-width: 768px){
    .site-header{
        position: relative;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 65px;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .header-logo {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }
    .header-logo a {
        display: block;
        line-height: 1;
    }

.header-logo img {
    width: 140px;
    height: auto;
    display: block;
}

.site-title {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cccccc;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    background: #333333;
}

.header-nav-area {
    display: none;
    position: absolute;
    top: 65px;
    left: 0;
    width: 100%;
    padding: 0 16px 20px;
    box-sizing: border-box;
    background: #f7f7f7;
    z-index: 1001;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-nav-area.is-open {
    display: block;
}

.header-nav-area .global-nav {
    margin-right: 0;
}

.main-menu,
.sub-menu {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

.main-menu a,
.sub-menu a {
    display: block;
    padding: 22px 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.sub-menu{
    margin-top: 0;
}

.sub-menu li {
    gap: 0;
}

.main-menu li,
.sub-menu li {
    display: block;
    border-bottom: 1px solid #e3e3e3;
}

.sub-menu li::before {
    display: none;
}

.header-nav-area .header-button {
    width: 100%;
    max-width: none;
    height: 56px;
    margin-top: 20px;
    font-size: 14px;
}
}

html {
    scroll-behavior: smooth;
}

/*固定ページ*/
.page-main {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    margin-bottom: 32px;
    font-size: 32px;
    line-height: 1.5;
    text-align: center;
}

.page-body {
    font-size: 16px;
    line-height: 1.9;
}

.page-body h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}

.page-body h3 {
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}

.page-body p {
    margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
    margin-bottom: 24px;
    padding-left: 1.5em;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body table {
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.page-body th,
.page-body td {
    padding: 14px 16px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}

.page-body th {
    width:30%;
    background: #F7F7F7;
    font-weight: 700;
}

@media screen and (max-width: 768px) {
    
    .page-main {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-content {
        max-width: 100%;
    }

    .page-title {
        margin-bottom: 24px;
        font-size: 26px;
    }

    .page-body {
        font-size: 15px;
    }

    .page-body h2 {
        margin-top: 40px;
        font-size: 22px;
    }

    .page-body h3 {
        margin-top: 32px;
        font-size: 18px;
    }

    .page-body table {
        font-size: 14px;
    }

    .page-body th,
    .page-body td {
        display: block;
        width: 100%;
    }
    
}


/*　ブログ一覧　*/
.blog-main,
.archive-main {
    padding-top: 60px;
    padding-bottom: 60px;
}

.blog-heading,
.archive-heading {
    margin-bottom: 40px;
    text-align: center;
}

.blog-title,
.archive-title {
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1.5;
}

.blog-lead {
    font-size: 16px;
    line-height: 1.8;
}

.blog-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
}

.blog-card-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    aspect-ratio: 3 / 2;
    background: #F7F7F7;
}

.blog-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-date {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    color: #777;
}

.blog-card-title {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.5;
}

.blog-excerpt {
    font-size: 15px;
    line-height: 1.8;
}

.blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.blog-pagination .page-numbers {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
}

.blog-pagination .current {
    background: #333;
    color: #fff;
}

/* 記事詳細 */
.single-main {
    padding-top: 60px;
    padding-bottom: 60px;
}

.single-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-date {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
    color: #777;
}

.single-title {
    font-size: 32px;
    line-height: 1.5;
}

.single-eyecatch {
    margin-bottom: 40px;
}

.single-eyecatch img {
    display: block;
    width: 100%;
    height: auto;
}

.single-body {
    font-size: 16px;
    line-height: 1.9;
}

.single-body h2 {
    margin-top: 48px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    font-size: 24px;
    line-height: 1.5;
    border-bottom: 1px solid #ddd;
}

.single-body h3 {
    margin-top: 36px;
    margin-bottom: 16px;
    font-size: 20px;
    line-height: 1.5;
}

.single-body p {
    margin-bottom: 20px;
}

.single-body ul,
.single-body ol {
    margin-bottom: 24px;
    padding-left: 1.5em;
}

.single-body li {
    margin-bottom: 8px;
}

.single-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
}

.single-nav a,
.back-to-blog {
    margin-top: 32px;
    text-align: center;
}

@media screen and (max-width:768px) {

    .blog-main,
    .archive-main,
    .single-main {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .blog-heading,
    .archive-heading {
        margin-bottom: 32px;
    }

    .blog-title,
    .archive-title,
    .single-title {
        font-size: 26px;
    }

    .blog-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-card-body{
        padding: 20px;
    }

    .single-header {
        margin-bottom: 32px;
    }

    .single-eyecatch {
        margin-bottom: 32px;
    }

    .single-body {
        font-size: 15px;
    }

    .single-body h2 {
        margin-top: 40px;
        font-size: 22px;
    }

    .single-body h3 {
        margin-top: 32px;
        font-size: 18px;
    }

    .single-nav {
        display: block;
    }

    .single-nav-prev,
    .single-nav-next {
        margin-bottom: 16px;
    }

}


/* お問い合わせフォーム */
.page-body .wpcf7-form {
    max-width: 640px;
    margin: 0 auto;
}

.page-body .wpcf7-form p {
    margin-bottom: 20px;
}

.page-body .wpcf7-form label {
    display: block;
    font-weight: 700;
}

.page-body .wpcf7-form input[type="text"],
.page-body .wpcf7-form input[type="email"],
.page-body .wpcf7-form input[type="tel"],
.page-body .wpcf7-form select,
.page-body .wpcf7-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 12px 14px;
    border:  1px solid #CCC;
    font-size: 16px;
    line-height: 1.6;
}

.page-body .wpcf7-form textarea {
    min-height: 180px;
}

.page-body .wpcf7-form input[type="submit"] {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    background:  #333;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.page-body .wpcf7-form input[type="submit"]:hover {
    opacity: 0.8;
}

.page-body .wpcf7-not-valid-tip {
    margin-top: 6px;
    font-size: 14px;
    color: #c00;
}

.page-body .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 16px;
}

/* カーソルがある行の色を変更 */
.page-body .wpcf7-form input[type="text"]:focus,
.page-body .wpcf7-form input[type="email"]:focus,
.page-body .wpcf7-form input[type="tel"]:focus,
.page-body .wpcf7-form select:focus,
.page-body .wpcf7-form textarea:focus {
    outline: none;
    border-color: #d8a7b1;
    box-shadow: 0 0 0 3px rgba(216, 167, 177, 0.25);
}

/* aboutセクションの見出しを整える */
.about-title {
  font-size: 56px;
  line-height: 1.35;
  margin: 0 0 6px;
}

.about-subtitle {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0px;
  margin-top: -15px;
  margin-bottom: 25px;
  font-weight: 700;
}

/* ページ全体を773designぽく見出しとカラーを変える */

/* セクション大見出しは明朝体 */
main h2,
.about-title,
.about-subtitle {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif !important;
  color: #4a3f3f !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

/* カード内の見出しはゴシックに戻す */
.opening-section ul li h3,
.works-section ul li h3,
.flow-section ol li h3,
.price-section ul li h3 {
  font-family: sans-serif !important;
  color: #4a3f3f !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* Aboutの小見出しだけは明朝体のまま */
.about-subtitle {
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif !important;
  font-size: 36px !important;
  font-weight: 500 !important;
}

.cta-section h2 {
  color: #ffffff !important;
}

/* =========================
   773design color customize
========================= */

/* 英字ラベル Concept / About / Works など */
.section-label {
  color: #c9a7a7 !important;
  letter-spacing: 0.18em;
}

/* セクション大見出し */
main h2,
.about-title,
.about-subtitle {
  color: #5b4a4a !important;
}

/* 本文 */
main p,
main li,
main dd {
  color: #3f3737;
}

/* セクション背景をほんのりピンクベージュに */
.opening-section,
.flow-section {
  background: #fffafa;
}

.body-section,
.price-section {
  background: #f8f3f1;
}

/* カード背景 */
.opening-section li,
.works-section li,
.flow-section li,
.price-section li {
  background: #fffdfc !important;
  box-shadow: 0 16px 40px rgba(170, 130, 130, 0.12) !important;
}

/* カード見出し */
.opening-section ul li h3,
.works-section ul li h3,
.flow-section ol li h3,
.price-section ul li h3 {
  color: #5b4a4a !important;
}

/* Flowの数字 */
.flow-section ol li::before {
  color: #e3caca !important;
}

/* 料金の数字 */
.price {
  color: #8f6f6f !important;
}

.price strong {
  color: #7b5f5f !important;
}

/* CTAは黒ではなく、深いブラウンに */
.cta-section {
  background: #4a3f3f !important;
}

.cta-section h2,
.cta-section p,
.cta-section .section-label,
.cta-section small {
  color: #fffaf8 !important;
}

/* CTAボタン */
.cta-section a {
  background: #fffaf8 !important;
  color: #5b4a4a !important;
  border: 1px solid #ead6d1;
}


/* ヘッダーの無料相談会ボタン */
.header-button {
  background: #8f6f6f !important;
  color: #fffaf8 !important;
  border: 1px solid #8f6f6f !important;
  border-radius: 16px !important;
  padding: 14px 24px !important;
  min-width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
}

.header-button:hover {
  background: #735858 !important;
  border-color: #735858 !important;
  color: #fffaf8 !important;
}


/* フッターをやわらかく */
.site-footer {
  background: #4a3f3f !important;
  color: #fffaf8 !important;
  text-align: center;
  padding: 32px 20px !important;
}

.site-footer p,
.site-footer small {
  color: #fffaf8 !important;
}

/* リンクボタンのエラー解消 */
.site-header {
  position: relative;
  z-index: 100;
}

.header-button {
  position: relative;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

/* =========================
   Contact Form 7 - 773design
========================= */

.wpcf7 {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form-wrap {
  background: #fffdfc;
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 16px 40px rgba(170, 130, 130, 0.12);
  color: #4a3f3f;
}

.contact-form-lead {
  margin: 0 0 20px;
  line-height: 2;
  text-align: center;
  color: #5b4a4a;
}

.wpcf7 label {
  display: block;
  margin-bottom: 24px;
  color: #5b4a4a;
  font-weight: 700;
  line-height: 1.8;
}

.required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: #c9a7a7;
  color: #fffaf8;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 15px 16px;
  background: #fffafa;
  border: 1px solid #ead6d1;
  border-radius: 14px;
  color: #4a3f3f;
  font-size: 16px;
  line-height: 1.6;
}

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

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #b8aaa5;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: #c9a7a7;
  box-shadow: 0 0 0 3px rgba(201, 167, 167, 0.2);
}

.contact-note {
  margin: 8px 0 28px;
  text-align: center;
  font-size: 14px;
  color: #8f6f6f;
}

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

.wpcf7 input[type="submit"] {
  min-width: 220px;
  padding: 16px 48px;
  background: #8f6f6f !important;
  color: #fffaf8 !important;
  border: 1px solid #8f6f6f !important;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.wpcf7 input[type="submit"]:hover {
  background: #735858 !important;
  border-color: #735858 !important;
}

/* エラーメッセージ */
.wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #b85c5c;
  font-size: 14px;
}

.wpcf7-response-output {
  border-color: #c9a7a7 !important;
  background: #fffafa;
  color: #5b4a4a;
  border-radius: 14px;
  padding: 16px !important;
}

/* スマホ */
@media (max-width: 768px) {
  .contact-form-wrap {
    padding: 32px 20px;
    border-radius: 22px;
  }

  .contact-form-lead {
    text-align: left;
  }

  .wpcf7 input[type="submit"] {
    width: 100%;
  }
}

/* PCのみ、ヘッダーのナビを右に寄せる */
@media (min-width: 769px) {
  .header-nav-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
  }

  .global-nav {
    margin-right: 0;
  }

  .header-button {
    margin-left: 0;
    flex-shrink: 0;
  }
}

/* =========================
   スマホヘッダー最終修正
========================= */
@media (max-width: 768px) {

  .site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 65px;
    padding: 0 16px;
  }

  .header-logo {
    flex-shrink: 0;
  }

  .menu-toggle {
    display: flex;
    flex-shrink: 0;
  }

  .header-nav-area {
    display: none !important;
    position: absolute !important;
    top: 65px !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 16px 20px !important;
    background: #f7f7f7 !important;
    box-sizing: border-box !important;
    z-index: 1001 !important;
  }

  .header-nav-area.is-open {
    display: block !important;
  }

  .header-nav-area .global-nav {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .header-nav-area .main-menu,
  .header-nav-area .sub-menu {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .header-nav-area .main-menu li,
  .header-nav-area .sub-menu li {
    display: block !important;
    width: 100% !important;
  }

  .header-nav-area .main-menu a,
  .header-nav-area .sub-menu a {
    display: block !important;
    width: 100% !important;
    padding: 18px 0 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: keep-all !important;
    writing-mode: horizontal-tb !important;
  }

  .header-nav-area .header-button {
    display: flex !important;
    width: 100% !important;
    margin: 20px 0 0 !important;
  }
}

/* PC版：メニューと無料相談会ボタンの間隔を調整 */
@media (min-width: 769px) {
  .header-nav-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px !important;
  }

  .header-nav-area .global-nav {
    margin-right: 0 !important;
  }

  .header-nav-area .header-button {
    margin-left: 0 !important;
  }
}