@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css");
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300&family=Noto+Serif+JP:wght@300;600&display=swap');

:root{
    --primary: #1C2364;
}

html,body{
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: 'Hiragino Mincho ProN', 'Noto Serif JP', serif;
    font-weight: 300;
    background: #fff;
    color: var(--primary);
}

.grecaptcha-badge { visibility: hidden; }

/************************
    基本スタイル
*************************/

h2{
    width: 100%;
    padding: 24px;
    margin: 48px 0 36px;
    background: radial-gradient(ellipse farthest-corner at 0% 10%, #ffffff 0%, #f5f5f6 74.9%, #d9d9f4 75%, #e9e9f4 100%);
    color: var(--primary);
    box-sizing: border-box;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

h3{
    margin: 24px 0;
    padding: 16px 0;
    color: var(--primary);
    border-bottom: 1px solid var(--primary);
}

h2:first-child,
h3:first-child{
    margin-top: 0;
}

p{
    font-size: 1rem;
    line-height: 1.9em;
    letter-spacing: 0.025rem;
}

a{
    color: #2a2aa8;
    transition: color 0.1s;
}

a:hover{
    color: #4889eb;
}

.page-content ul,
.post-content ul{
    background-color: #f5f5f6;
    padding: 16px;
    border-radius: 8px;
    list-style-type: none!important;
}

.page-content li,
.post-content li{
    position: relative;
    padding-left: 24px;
    margin-left: 8px;
}

.page-content li::before,
.post-content li::before{
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0,-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

.page-content li:not(:last-child),
.post-content li:not(:last-child){
    margin-bottom: 8px;
}

form{
    padding: 0 16px;
    background-color: #f5f5f6;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

label{
    position: relative;
    display: block;
    font-family: sans-serif;
    margin: 16px 0;
}

input[type="text"],
input[type="email"],
textarea{
    max-width: 300px;
    width: 100%;
    padding: 8px;
    border: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    font-size: 1.25rem;
    font-family : inherit;
}

textarea{
    max-width: 900px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus{
    outline: 3px solid #4f77fa;
}

input[type="submit"]{
    border-radius: 4px;
    padding: 8px 16px;
    background-color: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover{
    filter: brightness(150%);
}

table{
    width: 100%;
    font-family: sans-serif;
    border-collapse: collapse;
    border-spacing: 0;
}

table.has-fixed-layout{
    table-layout: fixed;
}

.is-style-regular table{
    border: 1px solid var(--primary);
}

.is-style-stripes table{
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}

th{
    background: var(--primary);
    color: #fff;
    padding: 8px;
}

td{
    padding: 8px;
    background-color: #fff;
}

.is-style-regular td{
    border: 1px solid #ccc;
}

.is-style-stripes tr:nth-child(2n) td{
    background-color: #f5f5f6;
}

/************************
    Contact Form 7
*************************/

.wpcf7-not-valid-tip{
    display: block;
    color: #ff0000;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1rem 0;
    padding: 0.5rem;
    background-color:  #00a0d2; /* Blue */
    color: #fff;
    font-family: sans-serif;
    font-weight: bold;
}
  
.wpcf7 form.init .wpcf7-response-output {
    display: none;
}
  
.wpcf7 form.sent .wpcf7-response-output {
    background-color: #46b450; /* Green */
}
  
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    background-color: #dc3232; /* Red */
}
  
.wpcf7 form.spam .wpcf7-response-output {
    background-color: #f56e28; /* Orange */
}
  
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #ffb900; /* Yellow */
}


/************************
    WPスタイル
*************************/

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

.has-text-align-right{
    text-align: right;
}

.is-content-justification-left{
    justify-content: left;
}

.is-content-justification-center{
    justify-content: center;
}

.is-content-justification-right{
    justify-content: right;
}

.wp-block-image{
    margin: 0;
    width: 100%;
}

.wp-block-image img{
    width: 100%;
    height: auto;
    border-radius: 0;
}

.wp-block-table{
    margin: 16px 0;
    overflow: initial;
}

.wp-block-table.is-style-stripes{
    border: none;
}

.has-small-font-size{
    font-size: 0.75rem;
}

/*カラム*/

.wp-block-columns{
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
}

.wp-block-column{
    width: 100%;
}

.are-vertically-aligned-center{
    align-items: center;
}

/*ボタン*/
.wp-block-button__link{
    background: none;
    padding: 0;
    border-radius: 0;
}

.wp-block-button{
    background-color: var(--primary);
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transition: transform 0.1s, box-shadow 0.1s;
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-button a{
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 1.25rem;
    box-sizing: border-box;
    position: relative;
    color: #fff;
    transition: all 0.1s ease;
    overflow: hidden;
}

.wp-block-button:hover{
    transform: translateY(2px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
}

.wp-block-button a::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    margin: -8px -16px;
    background: linear-gradient(45deg, #232c7f, #3845ba);
    opacity: 0;
    transition: all 0.1s;
    z-index: -1;
}

.wp-block-button a:hover::before{
    opacity: 1;
}

.wp-block-button a::after{
    position: relative;
    content: '\f138';
    font-family: bootstrap-icons !important;
}

/************************
    ボタンデザイン
*************************/

.button{
    display: inline-flex;
    gap: 12px;
    align-items: center;
    padding: 16px 24px;
    text-decoration: none;
    font-size: 1.5rem;
    box-sizing: border-box;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transition: transform 0.1s, box-shadow 0.1s;
}

.button:hover{
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.16);
    transform: translateY(2px);
}

.button.outline{
    border: 1px solid var(--primary);
    color: var(--primary);
    background-color: #fff;
}

.button.fill{
    position: relative;
    background-color: var(--primary);
    color: #fff;
    transition: background-color 0.2s;
    overflow: hidden;
    transition: all 0.1s ease;
    cursor: pointer;
}

.button.fill.white{
    background-color: #fff;
    color: var(--primary);
}

.button.fill i,
.button.fill span{
    position: relative;
}

.button.fill::before{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    margin: -16px -24px;
    background: linear-gradient(45deg, #232c7f, #3845ba);
    opacity: 0;
    transition: all 0.1s;
}

.button.fill.white::before{
    background: #e6e9ff;
}

.wp-block-button a:hover::before,
.button.fill:hover::before{
    opacity: 1;
}

.wp-block-button a::after{
    position: relative;
    content: '\f138';
    font-family: bootstrap-icons !important;
}

/************************
    セクション
*************************/

.section{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    padding: 48px;
    width: 100%;
    box-sizing: border-box;
}

.section.primary{
    background-color: var(--primary);
    color: #fff;
}

.section .section-name{
    font-size: 2.25rem;
    font-weight: 600;
    margin: 0;
}

/************************
    ヘッダー
*************************/

.header{
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px;
    top: 100px;
    transform: translateY(-100px);
    color: var(--primary);
    background-color: #fff;
    z-index: 99;
}

.header.page{
    color: #fff;
    background: none;
}

.toppage .header{
    color: var(--primary);
}

.header.hide{
    position: sticky;
    top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100px);
    transition: transform 0.5s;
    color: var(--primary);
    background-color: #fff;
}

.header.scrolled{
    position: sticky;
    top: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(0px);
    transition: transform 0.5s;
    color: var(--primary);
    background-color: #fff;
}

.header-nav-switch{
    display: none;
}

.site-name,
.site-logo{
    font-size:  2rem;
    font-weight: 600;
}

.site-logo{
    height: 48px;
    color: currentColor;
    line-height: 48px;
}

.site-logo a{
    color: currentColor;
    text-decoration: none;
}

.site-logo svg{
    fill: currentColor;
    width: auto;
    height: 48px;
}

.site-name a{
    color: currentColor;
    text-decoration: none;
}

.site-name a:hover{
    filter: brightness(80%);
}

.header-nav ul{
    display: flex;
    justify-content: space-between;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-nav ul li{
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav ul li a{
    position: relative;
    display: block;
    padding: 4px 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: currentColor;
    transition: color 0.2s;
}

.header-nav ul li a::before{
    content: "";
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    left: 0;
    border-bottom: 1px solid currentColor;
    transition: width 0.2s;
}

.header-nav ul li a:hover::before{ 
    width: 100%;
}

/************************
    トップコンテンツ
*************************/

.top_content{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(100vh - 96px);
    max-height: calc(100vw / 16 * 9);
    background: linear-gradient(45deg, #cccce1, #fff);
    overflow: hidden;
    box-sizing: border-box;
}

.top_content img{
    width: 100%;
    height: auto;
}

/************************
    各ページ紹介（事務所について・サービスについて）
*************************/

.page_nav{
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    height: auto;
    max-height: 600px;
    margin: 24px 0;
}

.page_nav.reverse{
    flex-direction: row-reverse;
}

.page_nav_img{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page_nav_img img{
    width: 100%;
}

.page_nav_img.fade::after{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 25%;
    height: 100%;
    background: linear-gradient(-90deg, #ffffffff, #ffffff00);
}

.page_nav.reverse .page_nav_img.fade::after{
    left: 0;
    background: linear-gradient(-90deg, #ffffff00, #ffffffff);
}

.page_nav_body{
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 48px;
    gap: 24px;
    box-sizing: border-box;
}

.page_nav_title{
    font-size: 2.25rem;
}

.page_nav_context{
    font-size: 1.25rem;
    color: #1b1b1b;
}

.service_example{
    display: flex;
    gap: 8px;
    background-color: #f5f5f6;
    padding: 16px;
    box-sizing: border-box;
    margin-top: 16px;
}

.service_example ul{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/************************
    トップページ最新投稿
*************************/

.wrap-top-articles{
    padding: 48px;
}

.top-articles-title{
    font-size: 2.5rem;
    border-bottom: 1px solid var(--primary);
}

.top-article-list{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
    list-style: none;
    padding: 24px 0;
}

.top-article-list a{
    text-decoration: none;
    color: #1b1b1b;
}

.top-article-list .article .title{
    font-size: 1.25rem;
}

/************************
    パンくずリスト
*************************/

.breadcrumb p{
    margin: 0;
    font-size: 0.75rem;
    text-align: right;
    font-family: 'Hiragino Mincho ProN', 'Noto Serif JP', 'Bootstrap-icons', serif;
}

/************************
    固定ページタイトル
*************************/

.page-title{
    position: relative;
    width: 100%;
    background-color: #eee;
}

.page-title h1{
    position: relative;
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 48px;
    color: #fff;
    font-size: 3rem;
    box-sizing: border-box;
}

.page-title h1 .sub-title{
    border-top: 1px solid #fff;
    margin-top: 4px;
    padding-top: 4px;
    font-size: 1.5rem;
    text-align: right;
}

.page-thumbnails{
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% + 192px);
    margin-top: -96px;
    margin-bottom: -96px;
    overflow: hidden;
}

.page-thumbnails::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100%);
    background: linear-gradient(0deg,rgba(0,0,0,0), rgba(0,0,0,0.8));
}

.page-thumbnails img{
    width: 100%;
    height: 100%;
    object-fit:cover;
}

/************************
    固定ページコンテンツ
*************************/

.page-content{
    position: relative;
    width: 100%;
    padding: 16px 48px 48px;
    max-width: 900px;
    margin: 0 auto;
    color: #1b1b1b;
    box-sizing: border-box;
    z-index: 1;
}

.page-content::before,
.wrap_article-list::before{
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 96px;
    background: linear-gradient(0deg, #ffffffff, #ffffffaa);
    z-index: -1;
    backdrop-filter:blur(8px);
}

/************************
    最新投稿一覧ページ
*************************/

.article-list-title{
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 120px 16px;
    background: linear-gradient(-45deg, #0d3c98, #5050a2);
    color: #fff;
    font-size: 2.5rem;
    box-sizing: border-box;
}

.wrap_article-list{
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
    box-sizing: border-box;
    z-index: 1;
}

.article-list{
    display: grid;
    justify-items: stretch;
    grid-auto-rows: auto;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px 16px;
    list-style: none;
    padding: 0;
}

.article-list a{
    text-decoration: none;
}

.article{
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
}

.article .thumbnail{
    width: 100%;
    line-height: 0;
    overflow: hidden;
    cursor: pointer;
}

.article .thumbnail img{
    width: 100%;
    height: auto;
    transform: scale(100%);
    transition: transform 0.3s ease;
}

.article:hover .thumbnail img{
    transform: scale(110%);
}

.article .category{
    padding: 8px 16px;
    background-color: #f5f5f6;
}

.article .category .post-categories{
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.article .category a{
    font-size: 0.75rem;
    color: #1b1b1b;
}

.article .category a:hover{
    text-decoration: underline;
}

.article .info{
    padding: 16px;
    color: #1b1b1b;
    cursor: pointer;
}

.article .title{
    font-size: 1.5rem;
}

.article .info .date{
    font-size: 0.75rem;
    color: #888;
}

.pagination{
    margin: 48px auto;
}

.pagination .nav-links{
    text-align: center;
}

.pagination .nav-links a{
    text-decoration: none;
}

.pagination .page-numbers{
    padding: 16px;
    border: 1px solid var(--primary);
    background-color: #fff;
    color: var(--primary);
    border-radius: 8px;
    transition: background-color 0.2s;
}

.pagination .page-numbers:not(.current):hover{
    background-color: #ececfc;
}

.pagination .page-numbers:not(:last-child){
    margin-right: 8px;
}

.pagination .page-numbers.current{
    background-color: var(--primary);
    color: #fff;
}

/************************
    投稿ページ
*************************/

.post-breadcrumb{
    margin: 0;
    width: 100%;
    padding: 4px 24px;
    background-color: #f5f5f6;
    box-sizing: border-box;
}

.post-breadcrumb p{
    margin: 0;
    font-size: 0.75rem;
    font-family: 'Hiragino Mincho ProN', 'Noto Serif JP', 'Bootstrap-icons', serif;
    color: #1b1b1b;
}

.post-breadcrumb p span{
    line-height: 36px;
}

.wrap-post{
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    color: #1b1b1b;
}

.wrap-post .post-categories{
    list-style: none;
    padding: 0;
}

.wrap-post .post-categories li{
    display: inline;
}

.wrap-post .post-categories li a{
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: var(--primary);
}

.wrap-post .post-categories li a{
    color: #fff;
    text-decoration: none;
}

.wrap-post .post-categories li a:hover{
    text-decoration: underline;
}

.wrap-post h1{
    font-size: 2.5rem;
}

.wrap-post .post-thumbnail{
    width: 100%;
}

.wrap-post .post-thumbnail img{
    width: 100%;
    height: auto;
}

.pager{
    margin-top: 48px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
}

.prev-post,
.next-post{
    flex-basis: 50%;
    background-color: #fff;
    transition: background-color 0.2s;
}

.next-post{
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.prev-post:hover,
.next-post:hover{
    background-color: #f5f5f6;
}

.prev-post a,
.next-post a{
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1b1b1b;
    height: 100%;
}

.next-post a{
    justify-content: flex-end;
}

.prev-post .thumbnail,
.next-post .thumbnail{
    position: relative;
    display: flex;
    align-items: center;
    width: 150px;
    height: 100%;
    line-height: 0;
}

.prev-post .thumbnail .hover,
.next-post .thumbnail .hover{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 2.5rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.prev-post:hover .thumbnail .hover,
.next-post:hover .thumbnail .hover{
    opacity: 1;
}

.prev-post .thumbnail img,
.next-post .thumbnail img{
    width: 100%;
}

.prev-post .info,
.next-post .info{
    padding: 16px;
    box-sizing: border-box;
}

.next-post .info{
    text-align: right;
}

.prev-post .info .title,
.next-post .info .title{
    color: #1b1b1b;
}

.prev-post .info .subtitle,
.next-post .info .subtitle{
    font-size: 0.75rem;
    color: #444;
}

.prev-post .nothing-post,
.next-post .nothing-post{
    display: flex;
    align-items: center;
    padding: 16px;
    height: 100%;
    box-sizing: border-box;
}

/************************
    Footer
*************************/

.footer{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0px 48px;
    background-color: #1b1b1b;
    padding: 48px;
}

.footer nav ul{
    display: flex;
    gap: 48px;
    list-style: none;
    padding: 0;
}

.footer nav ul li a{
    color: #fff;
    text-decoration: none;
    padding: 4px 0;
}

.footer nav ul li a:hover{
    color: #aaa;
}

.site-name.white{
    color: #fff;
}

.footer-copy{
    background-color: #1b1b1b;
    color: #888;
    padding: 16px 48px 48px;
}

.footer-copy small{
    font-size: 1rem;
}

/************************
    トップへ戻るボタン
*************************/

.float-button{
    position: fixed;
    bottom: 48px;
    right: 48px;
    padding: 24px;
    border-radius: 8px;
    background-color: var(--primary);
    font-size: 24px;
    color: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    line-height: 0;
    cursor: default;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 99;
}

.float-button.scrolled{
    display: block;
    opacity: 1;
    pointer-events: initial;
    cursor: pointer;
}

/*-ローディングアニメーション-------------------------------*/

#main.hide{
    width: 100%;
    height: 100vh;
    overflow: hidden;
    visibility: hidden;
}

.loading{
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--primary);
    z-index: 999;
}

.loading-inner{
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
}

.loading-inner::before{
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background:linear-gradient(90deg, #fff, #aaa, #fff);
    opacity: 0;
    background-size: 200% 200%;
}

.loading:not(.hide) .loading-inner::before,
.loading.show .loading-inner::before{
    animation: loading 1s ease-in-out 1000ms infinite normal none;
}

.loading.hide{
    animation: afterLoading 400ms ease-in 200ms 1 normal forwards;
}

.loading.hide .loading-inner{
    animation: afterLoading 400ms ease-out 0ms 1 normal forwards;
}

.loading.show{
    left: 0;
    animation: beforeLoading 400ms ease-out 0ms 1 normal forwards;
}

.loading.show .loading-inner{
    left: 0;
    visibility: hidden;
    animation: beforeLoading 400ms ease-in 200ms 1 normal forwards;
}

@keyframes loading {
    0% {
        opacity: 0;
        background-position: 100% 50%;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        background-position: 0% 50%;
    }
}

@keyframes beforeLoading {
    0% {
        visibility: initial;
        width: 0vw;
    }
    100% {
        visibility: initial;
        width: 100vw;
    }
}

@keyframes afterLoading {
    0% {
        width: 100vw;
        visibility: initial;
    }
    100% {
        width: 0vw;
        visibility: hidden;
    }
}

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

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

    /************************
    ヘッダー
    *************************/

    .header{
        display: block;
        position: relative;
        top: 0;
        transform: none;
        transition: none;
    }

    .header.active{
        background-color: #fff;
        color: var(--primary);
        transition: background-color 0.1s;
    }

    .header.hide,
    .header.scrolled{
        position: relative;
        top: 0;
        transform: none;
    }

    .header-nav-switch{
        display: block;
        border: none;
        color: currentColor;
        background: none;
        font-size: 36px;
        cursor: pointer;
    }

    .header-inner{
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .site-name,
    .site-logo{
        font-size: 1.5rem;
    }

    .header-nav{
        position: absolute;
        top: 96px;
        left: 0;
        width: 100%;
        display: flex;
        background-color: #fff;
        padding: 16px;
        justify-content: center;
        box-sizing: border-box;
        opacity: 0;
        transition: opacity 0.1s;
        visibility: hidden;
    }

    .header.active .header-nav{
        opacity: 1;
        visibility: initial;
    }

    .header-nav ul{
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 16px;
    }

    .header-nav ul li{
        width: initial;
        flex-grow: 1;
    }

    .header-nav ul li a{
        width: 100%;
        text-align: center;
        background-color: #f5f5f6;
        color: var(--primary);
        border-radius: 8px;
        padding: 16px;
        box-sizing: border-box;
    }

    .header-nav ul li a::before{
        display: none;
    }

    /************************
    各ページ紹介（事務所について・サービスについて）
    *************************/

    .page_nav{
        flex-wrap: wrap;
        max-height: initial;
        overflow: initial;
    }

    .page_nav_img{
        max-height: 400px;
    }

    .page_nav_img.fade::after{
        display: none;
    }

    /************************
    トップページ最新投稿
    *************************/

    .top-article-list{
        display: flex;
        flex-direction: column;
        gap: 48px;
    }

    /************************
    最新投稿一覧ページ
    *************************/

    .article-list{
        grid-template-columns: 1fr 1fr;
    }

    /************************
    投稿ページ
    *************************/

    .pager{
        flex-wrap: wrap;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .prev-post,
    .next-post{
        flex-basis: 100%;
    }

    .next-post{
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .prev-post .thumbnail,
    .next-post .thumbnail{
        padding: 8px 0;
        box-sizing: border-box;
    }

    .prev-post .thumbnail img,
    .next-post .thumbnail img{
        border-radius: 8px;
    }

    .prev-post .thumbnail{
        margin-left: 80px;
    }
    .next-post .thumbnail{
        margin-right: 80px;
    }

    .prev-post .thumbnail .hover,
    .next-post .thumbnail .hover{
        background-color: #fff;
        color: #1b1b1b;
    }

    .prev-post .thumbnail .hover{
        opacity: 1;
        left: -80px;
        width: 80px;   
    }

    .next-post .thumbnail .hover{
        opacity: 1;
        left: initial;
        right: -80px;
        width: 80px;   
    }

    /************************
    Footer
    *************************/

    .footer{
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 24px;
    }

    .footer nav ul{
        flex-wrap: wrap;
        justify-content: center;
    }

}

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

    /************************
    基本スタイル
    *************************/

    h2{
        margin: 48px 0 24px;
        padding: 24px 16px;
        width: initial;
        border-radius: 8px;
    }

    p{
        font-size: 1rem;
        line-height: 1.75em;
        letter-spacing: 0.02rem;
    }

    /************************
    WPスタイル
    *************************/

    .wp-block-columns{
        flex-wrap: wrap;
        gap: 0;
    }

    .wp-block-image{
        margin: 0 -16px;
        width: initial;
    }
    
    .wp-block-image img{
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    .wp-block-table{
        position: relative;
        overflow: scroll;
        margin: -16px;
        padding: 16px;
    }

    /************************
    ボタンデザイン
    *************************/

    .wp-block-button,
    .button{ 
        font-size: 1.25rem;
    }

    /************************
    セクション
    *************************/

    .section{
        padding: 24px 16px;
        gap: 24px;
    }

    .section .section-name{
        font-size: 1.75rem;
    }

    /************************
    ヘッダー
    *************************/

    .header{
        padding: 16px;
    }

    .header-nav{
        top: 80px;
    }

    .site-name,
    .site-logo{
        font-size: 0.9rem;
    }

    /************************
    各ページ紹介（事務所について・サービスについて）
    *************************/

    .page_nav{
        position: relative;
        max-height: initial;
    }
    
    .page_nav_img{
        display: flex;
        position: absolute;
        max-height: initial;
        top: 0;
        left: 0;
    }
    
    .page_nav_img img{
        width: 100%;
        height: 100%;
        object-fit:cover;
    }
    
    .page_nav_body{
        position: relative;
        padding: 16px;
        background-color: rgba(255, 255, 255, 0.8);
        text-align: center;
    }

    .page_nav_title{
        font-size: 2rem;
        padding: 8px;
        border-bottom: 2px solid var(--primary);
        box-sizing: border-box;
    }

    .page_nav_context{
        font-size: 1rem;
        color: var(--primary);
        text-align: left;
    }

    /************************
    トップページ最新投稿
    *************************/

    .wrap-top-articles{
        padding: 16px;
    }

    .top-article-list{
        gap: 16px;
        padding: 16px 0;
    }

    /************************
    固定ページタイトル
    *************************/

    .page-title h1{
        font-size: 2rem;
        padding: 80px 16px;
    }

    /************************
    固定ページコンテンツ
    *************************/

    .page-content{
        padding: 24px 16px;
    }

    /************************
    最新投稿一覧ページ
    *************************/

    .article-list-title{
        padding: 80px 16px;
    }

    .article-list{
        grid-template-columns: 1fr;
    }

    /************************
    投稿ページ
    *************************/

    .wrap-post{
        padding: 16px;
    }
    
    .wrap-post h1{
        font-size: 2rem;
    }

    .wrap-post .post-thumbnail{
        margin: 0 -16px;
        width: initial;
    }

    .pager{
        margin: 48px -16px 0;
        width: initial;
    }


    .prev-post .thumbnail,
    .next-post .thumbnail{
        margin: 0;
        padding: 8px;
    }

    .prev-post .thumbnail .hover,
    .next-post .thumbnail .hover{
        display: none;
    }

    /************************
    フッター
    *************************/

    .footer{
        padding: 24px 16px 0px;
        align-items: flex-start;
        gap: 8px;
    }

    .footer .site-name{
        font-size: 1.1rem;
    }

    .footer nav ul{
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer nav ul li a{
        color: #aaa;
    }

    .footer-copy{
        padding: 16px;
    }

    .footer-copy small{
        font-size: 0.5rem;
    }

    /************************
    トップへ戻るボタン
    *************************/
    
    .float-button{
        padding: 16px;
        bottom: 24px;
        right: 24px;
    }
}