/*
Theme Name: kishuarida-cci New
Text Domain: 
Theme URI: 
Description: 
Version: 1.0
Author: Webleaf
*/

:root { /* Colors */ --arida-primary-color: #689F38; --arida-primary-dark: #33691E; --arida-accent-color: #FFB74D; --arida-text-main: #424242; --arida-text-light: #757575; --arida-bg-body: #F5F5F5; --arida-bg-white: #FFFFFF;  /* Spacing */ --arida-container-width: 1000px; --arida-section-padding: 5rem 5%;}

body { margin: 0; padding: 0; background-color: var(--arida-bg-body); font-family: "BIZ UDGothic", "BIZ UDPゴシック", "Meiryo", sans-serif; line-height: 1.5; letter-spacing: 0.05rem; }

/* wp defualt custom */
.wp-block-file *+.wp-block-file__button { color: #fff!important; text-decoration: none!important; border-radius: 10px!important; padding: 5px 10px!important; }

/* このデザイン内で使用するベースフォント設定 */
.arida-wrapper { letter-spacing: 0.06em;line-height: 1.8;font-weight: 500;-webkit-font-smoothing: antialiased; color: var(--arida-text-main); box-sizing: border-box; overflow-x: hidden; /* 横スクロール防止 */ width: 100%;}

.arida-wrapper *, .arida-wrapper *::before, .arida-wrapper *::after { box-sizing: border-box;}
.arida-wrapper a { text-decoration: none; color: inherit; transition: 0.3s;}
.arida-wrapper ul { list-style: none; margin: 0; padding: 0;}
.arida-wrapper h1, .arida-wrapper h2, .arida-wrapper h3, .arida-wrapper p { margin: 0;}

.post_btcontent ul {list-style: circle; margin: 1em 0 1em 20px; }


/* Header */
.arida-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; /* 重なり順を高く */ padding: 1.4rem 5% 1rem; background-color: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center;}

.arida-logo { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; line-height: 1.2; letter-spacing: 0.1em; font-size: 1.4rem; font-weight: 700; color: var(--arida-text-main); display: flex; align-items: center; gap: 0.5rem; z-index: 1001; /* モバイルメニュー展開時もロゴは上に出す場合 */}
.arida-nav-links { display: flex; gap: 2rem; align-items: center;}
.arida-nav-link { font-size: 0.95rem; font-weight: 700; color: var(--arida-text-main);}
.arida-nav-link:hover { color: var(--arida-primary-color);}

.arida-cta-button { background-color: var(--arida-primary-color); color: #fff !important; padding: 0.5rem 1.2rem; border-radius: 50px; font-weight: 700; display: inline-block;}
.arida-cta-button:hover { background-color: var(--arida-primary-dark);}

.post-block .article { width: 80%; margin: 3em auto 4em; background: #fff; padding: 4rem; max-width: 1128px;}
.post-block .article p { margin-bottom: 1.8em;line-height: 1.8; margin-top: 0;}
.post-block .article p br { display: block;content: ""; margin-top: 0.2em; }
.post-block .article .cate-tag { text-align: right; margin-top: 3rem;}
.relation-post {text-align: center; margin-bottom: 3rem;}

.post-block h1 { margin-bottom:2rem; font-family: serif; border-bottom: 2px solid #009845; }
.post-block h2 { margin-bottom:1rem; font-family: serif; }
.post-block h3 { margin-bottom:1rem; font-family: serif; }
.post-block h4 { margin-bottom:1rem; font-family: serif; }
.post-block h5 { margin-bottom:1rem; font-family: serif; }

.post_btcontent a { text-decoration: underline; }

.arida-member-section p { margin-bottom: 1.5em;line-height: 1.8; margin-top: 0;}
.arida-member-section p br { display: block;content: ""; margin-top: 0.2em; }
section.arida-member-section ul { margin-bottom:1rem; }
section.arida-member-section ul li { list-style: circle; margin-left: 1rem; }

/* バナー枠 */
.banner_content { width: 100%; margin: 0; background-color: #fff; padding: 2em 0; display: flex; justify-content: center; }

/* -------------------------------------------
New Content Section Styles (arida-content-*)
------------------------------------------- */
.arida-content-section { background-color: #F8F9FA; padding: 5rem 5%; width:80%; margin: 4em auto 3em; }

#bn2_flex { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; margin: 0 auto; padding:4em 16em; gap: 10px;}
#bn2_flex .item  { background: #fff; }
#bn2_flex .item img { width: 100%; height: 80px; object-fit: contain; }

/* Mobile Menu Button */
.arida-mobile-menu-btn { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1002; /* メニューより上に配置 */ padding: 5px;}
.arida-mobile-menu-btn span { width: 25px; height: 2px; background-color: var(--arida-text-main); border-radius: 2px; transition: all 0.3s ease;}

/* Mobile Menu Styles & Responsive */
@media (max-width: 768px) { 
.arida-logo {     font-size: 1.1rem; }
.arida-mobile-menu-btn {     display: flex; }
/* モバイルメニュー展開時のスタイル */ 
.arida-nav-links {     position: fixed;     top: 0;     right: 0;     width: 100%;     height: 100vh;     background-color: rgba(255, 255, 255, 0.98);     flex-direction: column;     justify-content: center;     gap: 2rem;     transform: translateX(100%); /* 初期状態は画面外 */     transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);     z-index: 1001; }
/* JSでクラスが付与された時のスタイル */ .arida-nav-links.is-active {     transform: translateX(0); }
.arida-nav-link {     font-size: 1.2rem; }
/* ハンバーガーボタンのアニメーション */ .arida-mobile-menu-btn.is-active span:nth-child(1) {     transform: translateY(8px) rotate(45deg); } .arida-mobile-menu-btn.is-active span:nth-child(2) {     opacity: 0; } .arida-mobile-menu-btn.is-active span:nth-child(3) {     transform: translateY(-8px) rotate(-45deg); }
}

/* Hero Section */
.arida-hero { position: relative; height: 600px; width: 100%; /* WPのadmin barやテーマヘッダーとの兼ね合いでmargin-topは調整が必要になる場合があります */ margin-top: 46px;  display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; overflow: hidden;}

.arida-hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://kishuarida-cci.jp/topics/images/2026/04/kishuaridacci-hero.webp'); background-size: cover; background-position: center; z-index: 1;}
.arida-hero-overlay { position: absolute; top: 0; left: 0; width: auto; height: 100%; background: url(https://kishuarida-cci.jp/topics/images/2026/04/kishuaridacci-hero.webp); z-index: 2;}
.arida-hero-content { position: relative; z-index: 3; max-width: 800px; padding: 0 20px;}
.arida-hero-title { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; letter-spacing: 0.1em; font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.3); color: #ffffff; line-height: 1.2;}

.arida-hero-lead { font-size: 1.1rem; margin-bottom: 2rem; text-shadow: 0 2px 5px rgba(0,0,0,0.3); color: #ffffff;}

/* Topics Section */
.arida-topics-section { background-color: var(--arida-bg-white); padding: var(--arida-section-padding); min-height: 60vh; /* コンテンツが少ない時用 */ }
.top-infomation {}
.top-infomation a { text-decoration: none; color: inherit; transition: 0.3s;}
.top-infomation a:hover { text-decoration: underline; color: var(--arida-accent-color); transition: 0.2s;}
.top-infomation .item { background: #f4f4f4; padding: 2em; border-radius: 12px;}


.arida-container { max-width: var(--arida-container-width); margin: 0 auto; padding: 0 1rem;}
.arida-topics-content { display: flex; flex-direction: column; width: 100%;}
.arida-section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 2rem; border-bottom: 2px solid var(--arida-primary-color); padding-bottom: 1rem;}
.arida-section-title { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; letter-spacing: 0.1em; font-size: 2rem; color: var(--arida-primary-dark); line-height: 1.2;}

.arida-view-all { font-size: 0.9rem; color: var(--arida-primary-color); font-weight: 700;}
.arida-news-list { display: flex; flex-direction: column;}
.arida-news-item { padding: 1.2rem 0; border-bottom: 1px solid #eee; transition: 0.2s; margin: 0;list-style: none;}
.arida-news-item:hover { transform: translateX(5px); background-color: #fafafa;}
.arida-news-link { display: flex; flex-direction: row; gap: 0.5rem; padding: 0 1rem; color: var(--arida-text-main);}

.arida-news-meta { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem;}
.arida-news-date { color: #999; font-weight: 500;}
.arida-news-tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; background-color: #eee; color: #555; line-height: 1.4;}
.arida-news-tag.is-urgent { background-color: #ffebee; color: #c62828; }
.arida-news-tag.is-event { background-color: #e3f2fd; color: #1565c0; }
.arida-news-title { font-size: 1rem; color: var(--arida-text-main); line-height: 1.5; font-weight: bold;}

/* Footer Section */
.arida-footer { background-color: var(--arida-primary-dark); color: #fff; padding: 4rem 5% 1rem; margin-top: auto;}
.arida-footer-content { max-width: var(--arida-container-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3rem; margin-bottom: 3rem;}

.arida-footer-info { flex: 1; min-width: 280px;}
.arida-footer-logo { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 500; line-height: 1.2; letter-spacing: 0.1em; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem;}
.arida-footer-address { font-style: normal; font-size: 0.9rem; line-height: 1.8; opacity: 0.9;}
.arida-footer-map-link { display: inline-block; margin-top: 1rem; color: var(--arida-accent-color); font-size: 0.9rem; border-bottom: 1px solid var(--arida-accent-color);}

.arida-footer-links-wrapper { flex: 1; min-width: 280px; display: flex; gap: 2rem; flex-wrap: wrap;}
.arida-footer-col { flex: 1; min-width: 140px;}
.arida-footer-heading { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; color: var(--arida-accent-color);}
.arida-footer-list li { margin-bottom: 0.8rem;}
.arida-footer-list a { font-size: 0.9rem; color: #fff; opacity: 0.8; transition: opacity 0.3s;}
.arida-footer-list a:hover { opacity: 1; text-decoration: underline;}

.arida-copyright { text-align: center; font-size: 0.8rem; opacity: 0.6; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem;}

/* ページネーション全体 */
.page-numbers { display: flex; justify-content: center; list-style: none; margin: 0 0 30px; perspective: 600px;           /* 3D表現の奥行き */}
.page-numbers li { margin: 0 5px; transform-style: preserve-3d; /* 子要素の3Dを有効化 */}
.current,
a.page-numbers { display: inline-block; border-radius: 30px;          /* 丸みを帯びたピル型 */ padding: 8px 16px; text-decoration: none; font-weight: bold; background: linear-gradient(45deg, #5e6374, #eeeeee); color: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.2); transition:   transform 0.4s ease,   box-shadow 0.4s ease,   background 0.6s ease;}
a.page-numbers:hover { transform: translateY(-4px) rotateX(15deg); box-shadow: 0 8px 30px rgba(0,0,0,0.3); background: linear-gradient(45deg, #ff6b6b, #f06595);}
.current { pointer-events: none;         /* クリック無効 */ transform: scale(1.2) rotateX(15deg); background: linear-gradient(45deg, #6584f0, #6b8bff);}
nav.pagination-wrap {  margin-top: 3rem;}


@media (max-width: 768px) {
iframe { width:100%; }
.arida-hero { height: 500px; } 
.arida-footer-content { flex-direction: column; gap: 2rem; }  
.arida-news-link { flex-direction: column; align-items: flex-start; } 
.arida-news-meta { min-width: auto; }

.post-block .article { width: 100%;padding: 1rem; }
.arida-content-section {  width:100%; }
.top-infomation { grid-template-columns:1fr; width: 100%;}
.top-infomation .item { padding:0; }
.arida-topics-section { padding:3em 0; }

#bn2_flex { grid-template-columns: 1fr 1fr; padding:4em 1em;}

}


/* top contents 全体のスタイル調整（リセット含む） */
.cci-nav-container * { box-sizing: border-box; }
.cci-nav-container { max-width: 1000px; margin: 0 auto; padding: 20px; color: #333; }

/* グリッドレイアウト */
.top-infomation { display: grid; grid-template-columns: 1fr; /* スマホは1列 */ gap: 30px; }

@media (min-width: 768px) {
.top-infomation { grid-template-columns: 1fr 1fr; /* PC・タブレットは2列 */ gap: 40px 30px;}
}

/* 各アイテムボックス */
.top-infomation .item {background: #fff;}
/* 見出しのデザイン */
.top-infomation h4.wp-block-heading {font-size: 1.1rem;font-weight: bold;color: #333;border-bottom: 2px solid #009845; /* 緑色の下線 */ padding-bottom: 10px;margin-bottom: 15px;margin-top: 0;display: flex;align-items: center;gap: 10px;}

/* 見出しアイコン（SVG） */
.heading-icon {width: 24px;height: 24px;fill: #009845; /* アイコンの色 */}

/* リストのデザイン */
.cci-link-list {list-style: none;padding: 0;margin: 0;}

.cci-link-list li {display: flex;align-items: baseline; padding: 8px 0;border-bottom: 1px dashed #ccc; font-size: 0.95rem;line-height: 1.5;}
/* 最後の行の下線を消す場合 */
.cci-link-list li:last-child {border-bottom: none;}

/* ラベル（経営、税務など）のデザイン */
.cci-label {background-color: #009845;color: #fff;font-size: 0.75rem;font-weight: bold;padding: 3px 8px;border-radius: 4px;margin-right: 12px;white-space: nowrap; min-width: 4em;text-align: center;display: inline-block;}
.cci-link-list a {color: #333;text-decoration: none;transition: color 0.2s;}
.cci-link-list a:hover {color: #009845;text-decoration: underline;}

/* 後半の単独リスト（もし表示する場合）のデザイン調整 */
/* 画像のデザインには含まれていないようですが、元のコードにあったため整えて表示します */
.item-simple-list ul.wp-block-list {padding-left: 20px;margin-top: 0;}
.item-simple-list ul.wp-block-list li {margin-bottom: 5px;}
.item-simple-list ul.wp-block-list a:hover {text-decoration: underline;}
