@charset "UTF-8";
@import url("layout.css?2025-06-08");
@import url("blog.css?2025-05-27");

/*
Theme Name: 株式会社匠心 Version01
Description: 株式会社匠心 公式ホームページ
Author: MIA RESORT
*/

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
	display: block;
}
/*box-sizingを全ブラウザに対応*/
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}
html { font-size: 62.5%; }
body {
    /*font-family: 'Noto Sans JP', sans-serif;*/
    font-family: "Noto Sans JP", sans-serif;
	font-size: clamp(1.6rem, 1.568rem + 0.101vw, 1.75rem);
	line-height: 1.7;
    color: #302D2D;
}
#s_navi {
    display: none;
}
.img-100 img {
    width: 100%;
    height: auto;
}
.sp-img {
    display: none;
}
a {
    transition: all 0.8s;
}
/*===========================
  カスタムプロパティ(変数)
==========================*/
:root {
    --primary-color: #302D2D;
    --second-color: #EA648F;
}
/*===========================
  全体レイアウト
==========================*/
.container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.sidebar {
    width: 20%;
    min-width: 220px;
    max-width: 350px;
    flex-shrink: 0;
    position: sticky; 
    top: 0;
    height: 100vh;  /* ブラウザの高さ合わす */
    padding-top: 100px;
    text-align: center;
    overflow-y: auto; /* ← ここでスクロールできるように */
}
.main-content {
    flex: 1; /* 残りをすべて使う */
}
/*===========================
  PCサイドバー
==========================*/
.sidebar h1 img {
    min-width: 160px;
    max-width: 210px;
    height: auto;
}
.main-nav {
    width: min(90%, 75%);
    margin: 60px auto 60px;
}
.main-nav li {
    text-align: left;
    letter-spacing: 0.1rem;
    line-height: 1;
    font-weight: 300;
    border-bottom: 1px solid var(--primary-color);
    padding: 20px 0px  20px 10px;
}
.main-nav li a {
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.8s;
    font-size: clamp(1.6rem, 1.575rem + 0.078vw, 1.7rem);
}
.main-nav li a:hover {
	color: var(--second-color);
}
.side-contact a {
    display: block;
    padding: 10px 15px;
    min-width: 160px;
    max-width: 210px;
    background: var(--second-color);
    border-radius: 50px;
    margin: auto;
    text-decoration: none;
    color: #FFF;
}
.side-contact a:hover {
    background-color: var(--primary-color);
}
.insta a {
    display: block;
    font-size: 3rem;
    color: var(--primary-color);
}
/*===========================
  TOPページ PC
==========================*/
.header-img img {
    width: 100%;
    height: auto;
}
.header-img {
    position: relative;
}
.header-img h2 {
    position: absolute;
    top: 25%;
    left: 5%;
    font-size: clamp(2rem, 1.25rem + 2.344vw, 5rem);
    font-weight: 400;
    line-height: 1.4;
    text-shadow:
    0 0 4px rgba(255, 255, 255, 0.6),
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 12px rgba(255, 255, 255, 0.6);
}
.top-con01 {
    width: min(94%, 1000px);
    margin: 120px auto 0px;
    text-align: center;
    background-image: url(images/okinawa-map.png);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 200px;
}
.top-con01 h3 {
    font-size: clamp(2rem, 1.5rem + 1.563vw, 4rem);
    font-weight: 500;
}
.top-con01 h3 + p {
    font-size: 1.5rem;
}
.top-text01 {
    width: min(100%, 800px);
    margin: 20px auto 0px;
    font-size: clamp(1.6rem, 1.55rem + 0.156vw, 1.8rem);
}
/* テキストスライドスペース */
.text-slide {
    margin-top: 120px;
    text-align: right;
}
.img-3picture {
    position: relative;
    top: -20px;
    margin-right: 20px;
}
.slider-wrapper img {
    margin-right: 50px;
}
/* 施工実績 */
.town-img01 {
    width: 80%;
    margin-left: auto;
}
.top-works {
    background-color: #D3E7E7;
    padding: 40px 0px;
}
.top-works01 {
    width: min(94%, 1350px);
    margin: auto;
}
.top-works01 p:first-of-type {
    color: #00B7B7;
    font-size: clamp(1.5rem, 1.45rem + 0.156vw, 1.7rem);
}
.top-works01 h3:first-of-type {
    font-size: clamp(2.5rem, 2.125rem + 1.172vw, 4rem);
    font-weight: 400;
    line-height: 1;
}
.top-works01 p:nth-of-type(2) {
    padding: 15px 0px;
}
.top-jisseki {
    width: min(94%, 1350px);
    margin: 30px auto;
    display: flex;
    justify-content: space-between;
    gap: 0px 45px;
}
.top-jisseki div {
    width: 30%;
    height: auto;
    position: relative;
    transition: all 0.8s;
}
.top-jisseki div a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.top-jisseki div:hover {
    opacity: 0.7;
}
.top-jisseki div img {
    border-radius: 20px;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: 100% 0%;
}
.top-jisseki div p:first-of-type {
    color: #00B7B7;
    font-size: clamp(1.5rem, 1.475rem + 0.078vw, 1.6rem);
    padding: 5px 0px;
}
.top-jisseki div h4 {
    font-size: clamp(1.6rem, 1.55rem + 0.156vw, 1.8rem);
    font-weight: normal;
}
.more-btn {
    display: flex;
    align-items: center;
    justify-content: space-around;
    background-color: #2b2a2a;
    color: #fff;
    padding: 20px;
    border-radius: 999px;
    text-decoration: none;
    font-size: clamp(1.6rem, 1.55rem + 0.156vw, 1.8rem);
    width: min(270px, 300px);
    margin: 50px auto 0px;
    transition: background-color 0.3s;
}
.more-btn:hover {
    background-color: #444;
}
.more-btn .arrow {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    color: #000;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
}
/* TOPお知らせ */
.top-news {
    width: min(94%, 1200px);
    margin: clamp(60px, 10vw, 180px) auto 0;
    text-align: center;
}
.news-list {
    margin: 20px 0px 0px;
    padding: 0;
    border-top: 1px solid #ddd;
}  
.news-list li {
    border-bottom: 1px solid #ddd;
} 
.news-list a {
    display: flex;
    align-items: center;
    padding: 20px 10px;
    text-decoration: none;
    color: #111;
    transition: background-color 0.3s;
}
.news-list a:hover {
    background-color: #f2f2f2;
}  
.news-list .date {
    flex: 0 0 110px;
    font-size: 1.4rem;
    color: var(--primary-color);
}
.news-list .text {
    font-size: clamp(1.5rem, 1.475rem + 0.078vw, 1.6rem);
    color: var(--primary-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 
.news-list .icon {
    flex: 1;
    font-size: 18px;
    text-align: right;
    color: #111;
}
.circle-arrow {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #111;
    color: #fff;
    font-size: 18px;
    text-align: center;
    line-height: 36px;
    transition: background-color 0.3s;
}
.news-list a:hover .circle-arrow {
    background-color: #333;
}
/* フェードインテキスト */
.fadeup-on-scroll {
    opacity: 0;
    transform: translateY(160px);
    transition: all 1s ease-out;
    font-size: clamp(1.6rem, 1.5rem + 0.313vw, 2rem);
    text-align: center;
    padding: 100px 0px;
    font-weight: 500;
    color: var(--primary-color);
}
.fadeup-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}
/* 3枚画像デザイン部分 */
.center-3img {
    text-align: right;
}
.center-3img img {
    margin-right: 20px;
    position: relative;
    z-index: 10;
}
.color-line {
    background-color: #00B7B7;
    height: 120px;
    border-radius: 20px 0px 0px 20px;
    width: 95%;
    margin-left: auto;
    position: relative;
    top: -80px;
    z-index: 1;
}
/*===========================
  下層ページ PC
==========================*/
/* 下層ページ共通 */
.sub-con {
    width: 94%;
    margin: auto;
    padding-top: 60px;
}
.haikei-color {
    background-color: #b6dada;
    width: 60%;
    height: 300px;
    margin-left: auto;
}
.sub-header-img {
    position: relative;
    top: -300px;
}
.sub-header-img img {
    border-radius: 30px;
    width: 100%;
    height: auto;
}
.sub-title {
    margin-top: -250px;
    color: var(--primary-color);
    border-bottom: 1px solid #C3C0C0;
}
.sub-title h2 {
    font-size: clamp(2rem, 1.75rem + 0.781vw, 3rem);
    line-height: 1.3;
}
.sub-title p {
    font-size: clamp(1.6rem, 1.5rem + 0.313vw, 2rem);
    font-weight: 200;
}
.sub-title02 {
    margin-top: 50px;
    color: var(--primary-color);
    border-bottom: 1px solid #C3C0C0;
    padding-bottom: 10px
}
.sub-title02 h3 {
    font-size: clamp(2rem, 1.875rem + 0.391vw, 2.5rem);
    line-height: 1.3;
}
/* 建築事業 */
.promise-wrap {
    margin: 60px auto 0px;
    border-top: 1px solid #C3C0C0;
    width: min(100%, 1350px);
}
.promise-box {
    border-bottom: 1px solid #C3C0C0;
    padding: 90px 50px;
    display: flex;
    align-items: center;
    gap: 0 150px;
}
.pro-box01 p {
    font-size: clamp(3rem, 2.75rem + 0.781vw, 4rem);
    font-weight: 200;
}
.pro-box02 h5 {
    font-size: clamp(1.8rem, 1.625rem + 0.547vw, 2.5rem);
    font-weight: 600;
}
.kentiku-img01 {
    display: flex;
    justify-content: center;
    gap: 0 40px;
    margin-top: 10%;
}
.kentiku-img01 p:first-of-type {
    width: min(40%, 60%);
}
.kentiku-img01 p:nth-of-type(2) {
    width: min(60%, 90%);
}
.kentiku-img02 img {
    border-radius: 20px;
    margin-top: 10%;
}
/* ローラーストーン */
.about-roller {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0 40px;
    margin-top: 10%;
}
.roller-wrap {
    width: min(100%, 1350px);
    margin: 40px auto 60px;
    display: flex;
    justify-content: space-between;
    gap: 0 40px;
    background-color: #D3E7E7;
    border-radius: 20px;
    padding: 3%;
}
.r-box-left {
    width: 45%;
}
.r-box-right {
    width: 55%;
}
.r-box-right h4 {
    font-size: clamp(2rem, 1.75rem + 0.781vw, 3rem);
    color: var(--second-color);
    font-weight: 300;
    margin-bottom: 10px;
}
.r-box-right p {
    font-size: clamp(1.5rem, 1.45rem + 0.156vw, 1.7rem);
    font-weight: 300;
    margin-bottom: 15px;
}
/* 配食サービス */
.food-con01 {
    width: min(100%, 1350px);
    margin: 10% auto 0px;
    background-color: #fde7c9;
    padding: 3%;
}
.food-con01 h3 {
    text-align: center;
    color: #e98949;
    font-size: clamp(2rem, 1.75rem + 0.781vw, 3rem);
}
.food-con01 h4 {
    color: #FFF;
    background-color: #e98949;
    font-size: clamp(2rem, 1.875rem + 0.391vw, 2.5rem);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 50px;
}
.food-con01 p {
    font-size: clamp(1.5rem, 1.45rem + 0.156vw, 1.7rem);
    padding: 15px;
}
/*===========================
  footer お問合せ
==========================*/
.foot-con {
    width: min(94%, 1400px);
    background-color: var(--primary-color);
    margin: 10% auto 0px;
    padding: 40px;
    border-radius: 40px;
    text-align: center;
    color: #FFF;
    white-space: nowrap;
}
.foot-con p {
    font-size: clamp(1.5rem, 1.45rem + 0.156vw, 1.7rem);
}
.foot-con h4 {
    font-size: clamp(2.5rem, 1.625rem + 2.734vw, 6rem);
    letter-spacing: 0.08em;
    line-height: 1;
}
.foot-kameiten-link a {
    display: block;
    background-color: #EA648F;
    text-decoration: none;
    font-size: clamp(2rem, 1.625rem + 1.172vw, 3.5rem);
    width: min(100%, 500px);
    margin: 40px auto 20px;
    padding: 20px 30px;
    border-radius: 40px;
    color: #FFF;
    transition: all 0.8s;
    white-space: nowrap;
}
.foot-kameiten-link a:hover {
    background-color: #C13E69;
}
/*===========================
  footer
==========================*/
footer {
    padding: 40px 0px 0px;
    color: var(--primary-color);
    margin: clamp(20px, 10vw, 120px) auto 0;
}
footer ul {
    width: min(90%, 1000px);
    margin: auto;
    display: flex;
    justify-content: space-between;
    text-align: center;
}
footer li {
    font-size: clamp(1.5rem, 1.45rem + 0.156vw, 1.7rem);
    white-space: nowrap;
}
footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.8s;
}
footer ul li a:hover {
    color: var(--second-color);
}
.footer-con {
    width: min(94%, 1400px);
    margin: 60px auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    align-items: center;
}
.footer-con img {
    width: 140px;
    height: auto;
}
footer p {
    font-size: clamp(1.5rem, 1.475rem + 0.078vw, 1.6rem);
    padding: 5px 0px 0px;
}
.footer-town {
    width: min(100%, 1400px);
    margin: auto;
}
.copy {
    background-color: var(--primary-color);
    text-align: center;
    padding: 0px 0px 5px;
    font-size: 1.4rem;
    color: #FFF;
    line-height: 1.3;
}
/*===========================
メールフォームのスタイル
==========================*/
input,textarea,select {
    /* ress.min.cssでリセットされているのでここで命令 */
    background-color: #f8f8f8;
    border: 1px solid #e2e2e2;
}
.wpcf7 input[type="submit"] {
    font-size: 1.8rem;
    padding: 0.2em 0.4em;
    background: #eee;
    color: #555;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 1px rgba(0,0,0,.2);
    border: 1px solid #ccc;
    text-shadow: -1px 1px 0 rgba(255,255,255,1);
}
.wpcf7 input[type="submit"]:hover {
    box-shadow: 0 0 1px rgba(0,0,0,.2) inset;
}
span.wpcf7-list-item {/*チェックボックス改行*/
    display: block!important;
}
#form {
    width: min(100%, 1000px);
    margin: 30px auto 15px;
    background-color: #FFF;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}
#form dt {
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 10px 10px;
    background-color: #cfe3e3;
    margin-top: 15px;
}
#form dd {
    font-size: 1.5rem;
    background-color: #FFF;
    padding: 15px 0px 20px 0px;
    max-width: 100%;
}
#form dd p{
    line-height: 170%;
}
.hiss {
    font-size: 1.2rem;
    background-color: #ff677d;
    padding: 2px 5px;
    color: #FFF;
    margin-left: 15px;
}
.mail_box {
    margin: 5px 0px;
    font-size: 1.5rem;
}
.form-width {/* class:form-widthをcontact-form7へ テキストエリアの幅*/
    max-width: 100%;
}
/*===========================
  ブログページ
==========================*/

/* 記事一覧 */

/*/ _// _// _// _// _// _// _// _// _// _// _/
メディアクエリによる切り替え
/ _// _// _// _// _// _// _// _// _// _// _// _*/
@media only screen and (max-width: 1300px) {
nav {
    margin-right: 20px;
}
.main-nav {
    gap: 0px 20px;
}

}
@media only screen and (max-width: 1024px) { /* 1024pxとそれ以下 */
.sidebar {
    display: none;
}
/* topイメージ */
.header-img {
    display: none;
}
/* レイアウト */
.container {
    display: block;
}
.sub-header-img {
    display: none;
}
.haikei-color {
    display: none;
}
/*===========================
  TOPページ スマホ
==========================*/
.top-con01 {
    width: min(94%, 1000px);
    margin: 20px auto 0px;
    text-align: center;
    background-image: url(images/okinawa-map.png);
    background-repeat: no-repeat;
    background-position: right top 50px;
    background-size: 120px;
}
/* テキストスライドスペース */
.text-slide {
    margin-top: 80px;
}
.img-3picture {
    position: relative;
    top: -15px;
    margin-right: 0px;
    margin-left: auto;
    padding: 0px 10px;
}
.slider-wrapper img {
    margin-right: 50px; /* 画像間の余白 */
    width: 60%;
}
/* 施工実績 スマホ */
.town-img01 {
    width: 90%;
    margin-left: auto;
}
.top-jisseki {
    width: min(94%, 1350px);
    margin: 30px auto;
    flex-direction: column;
    gap: 60px 0px;
}
.top-jisseki div {
    width: 100%;
}
.top-jisseki div img {
    border-radius: 20px;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: 100% 0%;
}
/* 3枚画像デザイン部分 スマホ */
.center-3img {
    text-align: center;
}
.center-3img img {
    width: 85%;
    margin: auto;
}
.color-line {
    background-color: #00B7B7;
    height: 50px;
    border-radius: 15px 0px 0px 15px;
    width: 95%;
    margin-left: auto;
    top: -30px;
}
/*===========================
  下層ページ スマホ
==========================*/
/* 下層ページ共通 */
.sub-con {
    padding-top: 0px;
}
.sub-title {
    margin-top: auto;
}
/* 建築事業 */
.promise-wrap {
    margin: 40px auto 0px;
}
.promise-box {
    padding: 30px 10px;
    gap: 0 30px;
}
.kentiku-img01 {
    gap: 0 20px;
    margin-top: 60px;
}
/* ローラーストーン */
.about-roller {
    display: block;
    margin-top: 10%;
}
.roller-wrap {
    margin: 40px auto 0px;
    display: block;
    padding: 5%;
    border-radius: 10px;
}
.r-box-left {
    width: 100%;
}
.r-box-right {
    width: 100%;
}
.r-box-left img {
    margin-bottom: 10px;
}
/*===========================
  footer お問合せ スマホ
==========================*/
.foot-con {
    margin: 15% auto 0px;
    padding: 30px 15px;
    border-radius: 30px;
    display: block;
}

/*===========================
  footer スマホ
==========================*/
.footer-con {
    display: block;
    text-align: center;
}
footer ul {
    display: block;
    margin: 30px auto;
}
footer li {
    margin-top: 15px;
    margin-left: 0px;
}
/*===========================
  ブログ スマホ
==========================*/

/*===========================
  トップスライドインナビゲーション
==========================*/
#s_navi.m_fixed { /*スマホheader降りてくる*/
    position: fixed;
}
.menu-trigger,
.menu-trigger span{
    display: inline-block;
    transition: all .4s;
    box-sizing: border-box;
    cursor: pointer;
    align-items: flex-start;
}
.menu-trigger {
    display: block;
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    z-index: 50;
    float: right;
    border-radius: 50%;
    margin: 15px 10px 0px 0px;
}
.menu-trigger span {
    position: absolute;
    background: #FFF;
    width: 30px;
    height: 2px;
    left: 0;
    right: 0;
    margin: auto;
}
.menu-trigger span:nth-of-type(1){
    top: 15px;
}
.menu-trigger span:nth-of-type(2){
    top: 0;
    bottom: 0;
}
.menu-trigger span:nth-of-type(3){
    bottom: 15px;
}

.menu-trigger.active span:nth-of-type(1){
    -webkit-transform: translateY(9px) rotate(-45deg);
    transform: translateY(9px) rotate(-45deg);
}
.menu-trigger.active span:nth-of-type(2){
    opacity: 0;
}
.menu-trigger.active span:nth-of-type(3){
    -webkit-transform: translateY(-9px) rotate(45deg);
    transform: translateY(-9px) rotate(45deg);
}
.g-nav {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    width: 100%;
    height: 100vh; /* 高さを画面全体に調整 */
    overflow-y: auto; /* 縦スクロールを許可 */
    z-index: 45;
    padding-top: 0px;
}
.tate-scroll {/* 縦スクロールをできるように */
    overflow-y: auto; /* スクロール可能にする */
    -webkit-overflow-scrolling: touch; /* 慣性スクロールを有効に */
}
.g-nav .list .item a{
    display: block;
    text-decoration: none;
    color: var(--primary-color);
    padding: 5px 0;
    width: 100%;
    font-size: 2rem;
    font-weight: 600;
}
.list {
    width: 100%;
    text-align: center;
    margin-top: 40px;
}
.list li {
	margin: 15px auto;
}
#s_navi:after {
	content: "";
	display: block;
	clear: both;
}
#s_navi {
    display: block;
    top: 0px;
    width: 100%;
    height: auto;
    z-index: 35;
}
nav {
    margin-top: 0px;
}
.sp-head {
    display: flex;
    justify-content: space-between;
}
.sp-logo {
    z-index: 30;
    width: 80px;
    height: auto;
    padding: 0px;
}
.sp-img {
    display: block;
    position: relative;
    top: -80px;
    object-fit: cover;
}
/*===========================
メールフォームのスタイル
==========================*/
#form {
    padding: 30px 15px;
}
.form-width {/* class:form-widthをcontact-form7へ テキストエリアの幅*/
    max-width: 100%;
}
textarea,input {
    max-width: 100%;
}
.w-700 {
    width: auto;
    margin: auto;
}
}
@media only screen and (max-width: 768px) { /* 768pxとそれ以下 */
footer li {
    margin-bottom: 15px;
}

}