/*
Theme Name: ka-ku
Theme URI: https://tegaki.ka-ku.jp
Author: kanno
Author URI: https://tegaki.ka-ku.jp
Description: ka-ku用テーマ
Version: 1.0
*/



        /* 全体的な保護設定 */
        body {
            /* テキスト選択やiOSの長押しメニューを禁止 */
            /*-webkit-touch-callout: none;
            -webkit-user-select: none;
            user-select: none;*/
            background-color: #fff;
  font-family: "Google Sans",  "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
box-sizing:border-box;
overflow-x:hidden;
border:5px solid #000;
        }
html {
    scroll-behavior: smooth;
}

/* メニューが開いている時にbodyに付与するクラス */
body.is-fixed {
    position: fixed;
    width: 100%;
    left: 0;
}

header{
    padding:1em 0;
}

a{
    text-decoration:none;
    color:#222;
}

header .logo a{
    font-size:1.25em;
    display:block;

    font-weight:bold;
    color:#222;
}


/* 基本レイアウト */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* カード型リスト */
/*.post-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}*/

.post-card {
    width: 100%; /* 1カラム構成 */
    background: #fff;
    border: 1px solid #eee;
    overflow: hidden;
    transition: transform 0.3s ease;
    margin-bottom:2em;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.post-card a{
    display:flex;
    flex-wrap:wrap;
    justify-content:space-between;
    align-items:center;
}

.post-thumbnail{
    width:125px;
    object-fit:cover;
    overflow:hidden;

}
.post-content{
    width:calc(100% - 150px);
}

.post-thumbnail img {
    width: 100%;
    aspect-ratio:1 / 1;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.category-icon {
    background: #333;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

.post-date {
    color: #666;
}

.post-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.4;
}

/* ハンバーガーメニュー */
.menu-trigger {
    position: absolute;
    top: -0.5em;
    right: 0;
    z-index: 1000;
    background: #333;
    color: #fff;
    border: none;
    padding: 1em;
    cursor: pointer;
border-radius:9px;
}

.drawer-menu {
    position: fixed;
    top: 0;
    right: -100%; /* 初期は隠す */
    width: 50%; /* PCデフォルト */
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: right 0.4s ease;
    padding-top: 60px;
    overflow-y: auto;
}

.drawer-menu.is-active {
    right: 0;
}


.side-nav-list{
    padding:3em;
    text-align:center;
}



.side-nav-list ul li a{
    display:block;
    color:#fff;
    font-weight:bold;
    padding:0.5em 1em;
    text-decoration:none;
    font-size:1.5em;
}



table.default{
margin:2em auto;
}


table.default th{
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
padding:0.5em 1em;
}

table.default td{
border-top:1px solid #ccc;
border-bottom:1px solid #ccc;
padding:0.5em 1em;
}

ul.icon{
list-style:none;
text-align:center;
margin:2em 0 3em 0;
padding:0;
}

ul.icon li{
display:inline-block;
margin:0 0.5em ;
}


ul.icon li a{
    font-size:2em;
    color:#888;
display:inline-block;
}


.fa-brands:before, .fa-regular:before, .fa-solid:before, .fa:before, .fab:before, .far:before, .fas:before {
    content: var(--fa);
}

.fa-x-twitter {
    --fa: "\e61b";
}
.fa-instagram {
    --fa: "\f16d";
}
.fa-house {
    --fa: "\f015";
}

.fa-brands, .fab {
    font-weight: 400;
}
.fa-brands, .fab {
    font-family: "Font Awesome 6 Brands";
}


h1{
    font-size:2.5em;
    margin:2em 0;
}

h2{
    border-top:1px solid #999;
    font-size:2.5em;
    margin-top:1em;
    padding-top:1em;

}

h3{
    font-size:1.75em;
    background:#ddd;
    padding:0.5em 1em;
}

h3:not(:first-of-type) {
    margin-top: 4em;
}



h4{
    font-size:1.25em;

}



a:hover{
    opacity:0.7;
}



.news-list {
    max-width: 800px;
    margin: 2em auto;
}

.news-item a {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1em;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
}

.news-item a:hover {
    background-color: #f9f9f9;
}

.news-date {
    font-size: 0.9em;
    color: #888;
}

/* アイコン（ラベル）の基本スタイル */
.news-label {
    font-size: 0.75em;
    font-weight: bold;
    padding: 0.2em 0.8em;
    border-radius: 4px;
    color: #fff;
    min-width: 80px;
    text-align: center;
    /* 立体感 */
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
}

/* カテゴリごとの色分け設定（スラッグ名に合わせる） */
.label-event {
    background-color: #ff6b6b; /* イベントは赤系 */
}

.label-info {
    background-color: #4dabf7; /* お知らせは青系 */
}

.label-default {
    background-color: #adb5bd; /* その他 */
}

.news-title {
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

footer{
    margin-top:2em;
    background:#ccc;
    padding:2em 0;
}


.pcw30{
    width:30%;
}
.pcw65{
    width:65%;
}

.flex_container{
    display:flex;flex-wrap:wrap;
}

.wpcf7 .wpcf7-submit:disabled {
    cursor: not-allowed;
    opacity:0.3;
}

.shape1{
border-radius:15% 85% 43% 57% / 68% 41% 59% 32%;
overflow:hidden;
animation: move 10s linear infinite;
}
.shape2{
border-radius:55% 45% 42% 58% / 86% 28% 72% 14%;
overflow:hidden;
animation: move 12s linear infinite;
}
.shape3{
border-radius:30% 70% 42% 58% / 55% 38% 62% 45%;
overflow:hidden;
animation: move 13s linear infinite;
}
.shape4{
border-radius:27% 73% 43% 57% / 68% 14% 86% 32%;
overflow:hidden;
animation: move 14s linear infinite;
}






@keyframes move {
  50% {
    border-radius: 80% 20% 59% 41% / 72% 21% 79% 28%;
  }

  75% {
    border-radius: 100% 69% 100% 83% / 68% 99% 53% 93%;
  }
}



/* スマホ対応 (768px以下) */
@media (max-width: 768px) {
    .drawer-menu {
        width: 80%; /* スマホは80% */
    }

h1{
    font-size:1.75em;

}

h2{
    font-size:1.75em;
    margin-top:1em;
    padding-top:1em;

}

h3{
    font-size:1.35em;
    padding:0.5em 1em;
}

h3:not(:first-of-type) {
    margin-top: 4em;
}

h4{
    font-size:1.2em;

}
.spcol1{
    width:100%;
}

.news-item a {
    flex-wrap:wrap;
}
.news-item a h4{
    width:100%;
}


.post-thumbnail{
    width:80px;
    padding-left:10px;
}
.post-content{
    width:calc(100% - 100px);
}

}



/* アコーディオンカテゴリ */
.menu-item-has-children .sub-menu {
    display: none;
    padding-left: 20px;
    background: #eee;
}

.category-toggle {
    cursor: pointer;
    margin-left: 10px;
}

.copyright{
    font-size:0.8em;
    text-align:center;
    margin:0.5em 0;
}


.inner{
    max-width:1280px;
    margin:0 auto;
    position:relative;
}

@media (max-width: 1300px) {
.inner{
    max-width:initial;
    width:96%;
    margin:0 2%;
}
}


/* スライダー全体のサイズ調整（必要に応じて変更してください） */
.hero-swiper {
    width: 100%;
    min-height:600px;
    height: 80dvh; /* 任意の高さ */
}

.hero-slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに収める */
}

/* フェード時の重なりをスムーズにするための設定 */
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

input[type="submit"]{
    width:100%;
    cursor:pointer;
    display: block;
    color: #fff;
    background: linear-gradient(to bottom, #444, #222); /* 上から下へ少し色を変える */
    border: none;
    padding: 1em 2em;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;

    /* 影の重ねがけ：ボタンの影 + 設置面の影 */
    box-shadow: 
        0 5px 0 #000, 
        0 8px 10px rgba(0, 0, 0, 0.3);
    transition: 0.1s;
}

input[type="submit"]:hover {
    background: linear-gradient(to bottom, #555, #333);
}

input[type="submit"]:active {
    box-shadow: 
        0 2px 0 #000, 
        0 4px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(3px);
}




.btn{
    display:flex;
    justify-content:space-around;
    margin:2em 0 3em 0;
}

.btn a {
    display: block;
    color: #fff;
    background: linear-gradient(to bottom, #444, #222); /* 上から下へ少し色を変える */
    border: none;
    padding: 1em 2em;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;

    /* 影の重ねがけ：ボタンの影 + 設置面の影 */
    box-shadow: 
        0 5px 0 #000, 
        0 8px 10px rgba(0, 0, 0, 0.3);
    transition: 0.1s;
}

.btn a:hover {
    background: linear-gradient(to bottom, #555, #333);
}

.btn a:active {
    box-shadow: 
        0 2px 0 #000, 
        0 4px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(3px);
}


