/*
Theme Name: niwano-sonoyama
Author: Infinimum
Author URI: https://infinimum.net/
Description: Please read: tidythemes.com/concept. Donations: https://calmestghost.com/donate. BlankSlate is the definitive WordPress boilerplate starter theme. We've carefully constructed the most clean and minimalist theme possible for designers and developers to use as a base to build websites for clients or to build completely custom themes from scratch. Clean, simple, unstyled, semi-minified, unformatted, and valid code, SEO-friendly, jQuery-enabled, no programmer comments, standardized and as white label as possible, and most importantly, the CSS is reset for cross-browser-compatability and no intrusive visual CSS styles have been added whatsoever. A perfect skeleton theme. For support and suggestions, go to: https://github.com/tidythemes/blankslate/issues. Thank you.
Tags: accessibility-ready, one-column, two-columns, custom-menu, featured-images, microformats, sticky-post, threaded-comments, translation-ready
Version: 2022.8
Requires at least: 5.2
Requires PHP: 8.2.0
License: GNU General Public License v3 or Later
License URI: https://www.gnu.org/licenses/gpl.html
Text Domain: blankslate

BlankSlate WordPress Theme © 2011-2022 TidyThemes
BlankSlate is distributed under the terms of the GNU GPL
*/

/*@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700&display=swap');*/
/*@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@700;900&display=swap');*/
/*
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}html{scroll-behavior:smooth}body{line-height:1}a{text-decoration-skip-ink:auto}a[href^="tel"]{color:inherit;text-decoration:none}button{outline:0}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}q{display:inline;font-style:italic}q:before{content:'"';font-style:normal}q:after{content:'"';font-style:normal}textarea,input[type="text"],input[type="button"],input[type="submit"],input[type="reset"],input[type="search"],input[type="password"]{-webkit-appearance:none;appearance:none;border-radius:0}input[type="search"]{-webkit-appearance:textfield}table{border-collapse:collapse;border-spacing:0}th,td{padding:2px}big{font-size:120%}small,sup,sub{font-size:80%}sup{vertical-align:super}sub{vertical-align:sub}dd{margin-left:20px}kbd,tt{font-family:courier;font-size:12px}ins{text-decoration:underline}del,strike,s{text-decoration:line-through}dt{font-weight:bold}address,cite,var{font-style:italic}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sticky{}.bypostauthor{}.wp-caption{}.wp-caption-text{}.gallery-caption{}.alignright{}.alignleft{}.aligncenter{}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important;word-break:normal}
.screen-reader-text:focus{background-color:#f7f7f7;border-radius:3px;box-shadow:0 0 2px 2px rgba(0,0,0,.6);clip:auto!important;-webkit-clip-path:none;clip-path:none;color:#007acc;display:block;font-size:14px;font-size:.875rem;font-weight:700;height:auto;right:5px;line-height:normal;padding:15px 23px 14px;text-decoration:none;top:5px;width:auto;z-index:100000}
.skip-link{left:-9999rem;top:2.5rem;z-index:999999999;text-decoration:underline}
.skip-link:focus{display:block;left:6px;top:7px;font-size:14px;font-weight:600;text-decoration:none;line-height:normal;padding:15px 23px 14px;z-index:100000;right:auto}
.visually-hidden:not(:focus):not(:active), .form-allowed-tags:not(:focus):not(:active){position:absolute !important;height:1px;width:1px;overflow:hidden;clip:rect(1px 1px 1px 1px);clip:rect(1px, 1px, 1px, 1px);white-space:nowrap}
*/


/*---------reset css-----------*/
/* 
html5doctor.com Reset Stylesheet
v1.6.1
Last Updated: 2025-12-12
Author: Richard Clark - http://richclarkdesign.com 
Twitter: @rich_clark
*/

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
margin:0;
padding:0;
border:0;
outline:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
img{
  vertical-align: bottom;
  
}
body {
line-height:1;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section { 
display:block;
}
nav ul , ul{
list-style:none;
}
blockquote, q {
quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content:'';
content:none;
}
a {
margin:0;
padding:0;
font-size:100%;
vertical-align:baseline;
background:transparent;
}
ins {
background-color:#ff9;
color:#000;
text-decoration:none;
}
mark {
background-color:#ff9;
color:#000; 
font-style:italic;
font-weight:bold;
}
del {
text-decoration: line-through;
}
abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}
table {
border-collapse:collapse;
border-spacing:0;
}
hr {
display:block;
height:1px;
border:0;   
border-top:1px solid #cccccc;
margin:1em 0;
padding:0;
}
input, select {
vertical-align:middle;
}
/*
button, input, select, textarea {
    font: inherit;
    margin: 0;
    width: 100%;
    line-height: initial;
}
*/
button, select {
    text-transform: none;
}








/* ============ Base ============ */
*,*::before,*::after{box-sizing:border-box;}

html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  color:#0f172a; background:#f7fbff;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
html, body { overflow-x: hidden; }



/* ========== ベースフォント読み込み ========== */
/* Noto Sans JP */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;800&display=swap');

/* 游明朝（ローカル） */
.yu-mincho {
  font-family: "游明朝", "Yu Mincho", "YuMincho", serif;
}

/* SignPainter（ファイルは任意パスに設置） */
@font-face {
  font-family: "SignPainter";
  src: url("/fonts/signpainter-housescript.ttf") format("woff2"),
       url("/fonts/signpainter-housescript.ttf") format("woff");
  font-display: swap;
}


/* ================================
   フォント用カスタムプロパティ定義
   （デフォルト値）
================================ */
:root {
  /* ファミリー */
  --font-sans: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mincho: "游明朝", "Yu Mincho", "YuMincho", serif;
  --font-script: "SignPainter", cursive;

  /* 役割ごとのファミリー */
  --font-nav-family: var(--font-sans);
  --font-hero-title-family: var(--font-mincho);
  --font-hero-text-family: var(--font-sans);
  --font-section-en-family: var(--font-script);
  --font-section-sub-family: var(--font-sans);
  --font-title-family: var(--font-mincho);
  --font-body-family: var(--font-sans);
  --font-list-title-family: var(--font-sans);
  --font-list-family: var(--font-sans);
  --font-reason-heading-family: var(--font-mincho);
  --font-reason-title-family: var(--font-sans);
  --font-reason-text-family: var(--font-sans);
  --font-case-heading-family: var(--font-sans);
  --font-case-text-family: var(--font-sans);
  --font-footer-family: var(--font-sans);

  /* 役割ごとのウェイト */
  --font-nav-weight: 700;
  --font-hero-title-weight: 500;
  --font-hero-text-weight: 300;
  --font-section-en-weight: 400;
  --font-section-sub-weight: 500;
  --font-title-weight: 800;
  --font-body-weight: 400;
  --font-list-title-weight: 500;
  --font-list-weight: 400;
  --font-reason-heading-weight: 600;
  --font-reason-title-weight: 500;
  --font-reason-text-weight: 500;
  --font-case-heading-weight: 500;
  --font-case-text-weight: 400;
  --font-footer-weight: 500;

  --color-main: #f7931e;     /* オレンジ */
  --color-accent: #008f5a;   /* ロゴ系グリーン想定 */
  --color-dark: #333;
  --color-gray: #777;
  --color-light: #fafafa;
  --color-border: #ddd;
  /*--font-main: "Hiragino Sans", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;*/
  --main-green: #4b7f3c;
  --accent-orange: #f29c1f;
  --accent-green: #4caf50;
  --text-dark: #333;
  --header-height-pc: 80px;
  --header-height-sp: 64px;


}



/* ナビゲーション */
.font-nav {
  font-family: var(--font-nav-family);
  font-weight: var(--font-nav-weight);
}

/* メインビジュアル */
.font-hero-title {
  font-family: var(--font-hero-title-family);
  font-weight: var(--font-hero-title-weight);
}
.font-hero-text {
  font-family: var(--font-hero-text-family);
  font-weight: var(--font-hero-text-weight);
}

/* セクション見出し（英語 + サブ） */
.font-section-en {
  font-family: var(--font-section-en-family);
  font-weight: var(--font-section-en-weight);
}
.font-section-sub {
  font-family: var(--font-section-sub-family);
  font-weight: var(--font-section-sub-weight);
}

/* コンテンツタイトル・本文 */
.font-title {
  font-family: var(--font-title-family);
  font-weight: var(--font-title-weight);
}
.font-body {
  font-family: var(--font-body-family);
  font-weight: var(--font-body-weight);
}

/* 主な施工内容 */
.font-list-title {
  font-family: var(--font-list-title-family);
  font-weight: var(--font-list-title-weight);
}
.font-list,
.font-more {
  font-family: var(--font-list-family);
  font-weight: var(--font-list-weight);
}

/* REASON */
.font-reason-heading {
  font-family: var(--font-reason-heading-family);
  font-weight: var(--font-reason-heading-weight);
}
.font-reason-title {
  font-family: var(--font-reason-title-family);
  font-weight: var(--font-reason-title-weight);
}
.font-reason-text {
  font-family: var(--font-reason-text-family);
  font-weight: var(--font-reason-text-weight);
}

/* 施工事例・NEWS・FAQ・3DCAD・会社情報・フッター */
.font-case-heading,
.font-news-heading,
.font-faq-heading,
.font-cad-heading,
.font-company-heading,
.font-footer {
  font-family: var(--font-case-heading-family);
  font-weight: var(--font-case-heading-weight);
}

.font-case-text,
.font-news-text {
  font-family: var(--font-case-text-family);
  font-weight: var(--font-case-text-weight);
}


body {
  font-family: var(--font-main);
  color: var(--color-dark);
  background: #fff;
  line-height: 1.7;
  /*font-family: "Hiragino Sans", "游ゴシック体", system-ui, -apple-system,*/
    /*BlinkMacSystemFont, "Segoe UI", sans-serif;*/
  color: var(--text-dark);
  line-height: 1.6;
}


/* ===== 管理画面からの切り替え ===== */

/* ▼ ナビゲーション用 */

/* Noto Sans JP（デフォルト） */
body[data-font-nav="noto"] {
  --font-nav-family: var(--font-sans);
}

/* 游明朝に変えたい場合 */
body[data-font-nav="mincho"] {
  --font-nav-family: var(--font-mincho);
}

/* ▼ メインビジュアルタイトル */

body[data-font-hero-title="mincho"] {
  --font-hero-title-family: var(--font-mincho);
}
body[data-font-hero-title="noto"] {
  --font-hero-title-family: var(--font-sans);
}

/* ▼ 本文テキスト */

body[data-font-body="noto"] {
  --font-body-family: var(--font-sans);
}
body[data-font-body="mincho"] {
  --font-body-family: var(--font-mincho);
}


    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    .wrapper {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 16px;
    }








/* =================================================================
   HEADER (Base Styles)
   ================================================================= */
header.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  height: var(--header-height-pc); /* PC初期値 */
  display: flex;
  align-items: stretch;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* --- ロゴ --- */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-logo img {
  height: 44px; /* ロゴサイズ調整 */
  width: auto;
}
.site-logo-text {
  font-size: 12px;
  color: var(--color-gray);
}

/* --- ハンバーガーメニュー（初期状態：非表示） --- */
.hamburger {
  display: none; /* PCでは消す */
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001; /* メニューより手前に */
  background: none;
  border: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  border-radius: 999px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* ハンバーガー OPEN時 */
.hamburger.is-open span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-open span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}


/* =================================================================
   PC Navigation (> 769px)
   ================================================================= */
@media (min-width: 769px) {

  /* ナビゲーション配置 */
  nav.gnav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 15px;
    font-weight: 500;
    height: 100%;
  }

  nav.gnav ul {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    height: 100%;
    margin: 0;
    padding: 0;
  }

  /* メニュー項目 */
  nav.gnav ul li {
    position: relative; /* 子メニュー配置の基準 */
    height: 100%;
    display: flex;
    align-items: center;
  }

  nav.gnav ul li a {
    position: relative;
    padding: 10px 0;
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  /* 親メニューの下線アニメーション */
  nav.gnav ul li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--main-green);
    transition: width 0.2s ease;
  }
  nav.gnav ul li > a:hover::after {
    width: 100%;
  }

  /* 矢印アイコン（子メニューがある場合） */
  nav.gnav ul li.menu-item-has-children > a {
    padding-right: 18px;
  }
  nav.gnav ul li.menu-item-has-children > a::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 2px solid #999;
    border-bottom: 2px solid #999;
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.3s, border-color 0.3s;
    pointer-events: none;
  }
  nav.gnav ul li.menu-item-has-children:hover > a::before {
    transform: translateY(-30%) rotate(225deg);
    border-color: var(--main-green);
  }

  /* --- サブメニュー（ドロップダウン） --- */
  nav.gnav ul.sub-menu {
    display: block;
    position: absolute;
    top: 100%; /* ヘッダーの下 */
    left: 50%;
    transform: translateX(-50%);
    
    min-width: 220px;
    height: auto; /* 高さは自動 */
    background-color: #fff;
    padding: 10px 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    
    /* アニメーション */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  /* 親ホバーで表示 */
  nav.gnav ul li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
  }

  nav.gnav ul.sub-menu li {
    display: block;
    height: auto;
    margin: 0;
  }
  nav.gnav ul.sub-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    border-bottom: 1px dotted #eee;
  }
  nav.gnav ul.sub-menu li:last-child a { border-bottom: none; }
  
  /* サブメニューのホバー */
  nav.gnav ul.sub-menu li a:hover {
    background-color: #f7f7f7;
    color: var(--main-green);
  }
  /* サブメニュー内の装飾解除 */
  nav.gnav ul.sub-menu li a::after { display: none; }
  nav.gnav ul.sub-menu li.menu-item-has-children > a::before { display: none; }


  /* --- PC用 CTAボタン --- */
  .header-cta {
    display: flex;
    height: 100%;
  }
  .header-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: 0.25s ease;
  }
  .header-cta .btn-consult { background: var(--accent-orange); }
  .header-cta .btn-estimate { background: var(--accent-green); }
  
  .header-cta a:hover {
    filter: brightness(1.08);
  }
  .header-buttons { display: flex; gap: 8px; margin-left: 24px; } /* 予備ボタン用 */

  /* スマホ用ボタンエリアはPCでは隠す */
  .sp-menu-cta {
    display: none;
  }
}


/* =================================================================
   SP Navigation (< 768px)
   ================================================================= */
@media (max-width: 768px) {

  /* ヘッダー高さ調整 */
  header.site-header {
    height: var(--header-height-sp);
  }
  .header-inner {
    padding: 0 12px;
  }
  .header-logo img {
    height: 36px;
  }

  /* ハンバーガー表示 */
  .hamburger {
    display: block;
  }
  /* PC用ボタン類を非表示 */
  .header-buttons, 
  .header-cta { 
    display: none; 
  }

  /* --- スマホメニュー本体 --- */
  nav.gnav {
    display: none; /* 初期状態は非表示 */
    position: absolute;
    top: var(--header-height-sp);
    left: 0;
    width: 100%;
    
    /* スクロール設定 */
    height: calc(100vh - var(--header-height-sp));
    overflow-y: auto;
    
    background: #fff;
    padding: 20px 16px 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    box-sizing: border-box;
  }

  nav.gnav.is-open {
    display: flex; 
  }

  nav.gnav ul {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* メニュー項目 */
  nav.gnav ul li {
    width: 100%;
    border-bottom: 1px solid #eee;
    position: relative; /* ★重要：開閉ボタンの配置基準 */
  }

  nav.gnav ul li a {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    box-sizing: border-box;
  }

  /* 親メニューの文字右側余白（ボタンと被らないように） */
  nav.gnav ul li.menu-item-has-children > a {
    padding-right: 50px;
  }

  /* ★変更点：CSSの擬似要素(::before)によるアイコンは削除（JSボタンに任せるため） */
  nav.gnav ul li.menu-item-has-children > a::before {
    display: none;
  }
  nav.gnav ul li a::after { display: none; }


  /* --- ★追加：JSで追加した開閉ボタンのデザイン --- */
  .sp-submenu-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;  /* タップしやすい広さ */
    height: 54px; /* 親メニューと同じくらいの高さ */
    cursor: pointer;
    z-index: 10;
    display: flex;       /* 中央寄せ */
    justify-content: center;
    align-items: center;
    background: transparent; /* 背景透明 */
  }

  /* ボタンの中の矢印 */
  .sp-submenu-toggle::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-main);
    border-bottom: 2px solid var(--color-main);
    transform: rotate(45deg);
    transition: transform 0.3s;
    margin-top: -4px; /* 位置微調整 */
  }

  /* 開いた時の矢印（回転） */
  .sp-submenu-toggle.is-open::before {
    transform: rotate(225deg) translate(-2px, -2px);
  }


  /* --- SP版 サブメニュー（初期状態：非表示） --- */
  nav.gnav ul.sub-menu {
    display: none; /* ★重要：最初は隠す */
    position: static;
    width: 100%;
    background-color: #f7f9f8;
    border-left: 4px solid var(--color-main);
    padding: 5px 15px;
    margin: 0 0 10px 0;
    box-sizing: border-box;
  }

  nav.gnav ul.sub-menu li {
    border-bottom: 1px dotted #ccc;
  }
  nav.gnav ul.sub-menu li:last-child {
    border-bottom: none;
  }

  nav.gnav ul.sub-menu li a {
    font-size: 13px;
    padding: 12px 0;
    font-weight: normal;
    color: #555;
  }
  
  nav.gnav ul.sub-menu li a::before { display: none; }


  /* --- SPメニュー内 CTAボタン --- */
  .sp-menu-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-top: 30px;
    padding-bottom: 20px;
  }

  .sp-cta-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 56px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: opacity 0.3s;
  }
  .sp-cta-btn:hover { opacity: 0.9; }
  .sp-cta-btn--line { background-color: #f09c16; }
  .sp-cta-btn--tel { background-color: #568a47; }
}








/* =======================
   FOOTER
   ======================= */
.footer {
  background: #2e3639;  /* ダークグレー */
  color: #fff;
  padding-top: 40px;
  padding-bottom: 20px;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 20px;
}

/* 左カラム（ロゴ・住所） */
.footer-col-left {
  flex: 1;
}

.footer-logo {
  width: 180px;
  margin-bottom: 20px;
}

.footer-address {
  line-height: 1.8;
}

/* SNSアイコン */
.footer-sns {
  margin-top: 20px;
}

.sns-icon img {
  width: 32px;
  height: 32px;
  filter: invert(1);
}

/* 中央カラム：メニュー */
.footer-col-center {
  flex: 2;
  display: flex;
  justify-content: space-between;
}

.footer-nav {
  list-style: none;
  padding: 0;
}

.footer-nav li a {
  color: #fff;
  text-decoration: none;
  line-height: 2.2;
  transition: 0.2s;
}

.footer-nav li a:hover {
  opacity: 0.7;
}

/* コピーライト */
.footer-copy {
  text-align: center;
  margin-top: 20px;
  opacity: 0.8;
  font-size: 12px;
}

.sns-icon {
  width: 32px;
  height: 32px;
}

.sns-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sns-icon img {
  color: #fff; /* ← ここで白指定 */
   filter: brightness(0) invert(1);
}


/* ------------- スマホ対応 ------------- */
@media (max-width: 768px) {

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-col-center {
    flex-direction: column;
    gap: 20px;
  }

  .footer-logo {
    margin: auto;
    margin-bottom: 16px;
  }

  .sns-icon img {
    margin: auto;
  }
}




    /* ==========================
   セクションタイトル 共通
   ========================== */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

/* 英字メインタイトル */
.section-heading-main {
  position: relative;
  display: inline-block;
  /*font-family: "Montserrat", sans-serif;*/
  font-size: 34px;
  font-style: italic;
  letter-spacing: 0.18em;
  font-weight: 700;
  line-height: 1;
}

/* 下の日本語サブタイトル */
.section-heading-sub {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 700;
}

/* グリーンバーの基本 */
.section-heading-main::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 15px;
  background: #4a8b42;
  z-index: -1;
}

/* ── バーの位置バリエーション ── */

/* 右にバー（WORKS / 3DCAD 共通） */
.section-heading--bar-right .section-heading-main {
  position: relative;
  display: inline-block; /* ←ここ大事。すでに指定済みならOK */
}
/* 左にバー（SERVICES / INSTAGRAM） */
.section-heading--bar-left .section-heading-main::before {
  left: -90px;       /* 伸ばしたい長さに応じて調整 */
  width: 150px;
}

/* 右にバー（WORKS / 3DCAD） */
.section-heading--bar-right .section-heading-main::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 30%;        /* テキストの右端が基準 */
  margin-left: 10px; /* テキストとのすき間 */
  width: 150px;      /* バーの長さ（PC） */
  height: 15px;
  background: #4a8b42;
  z-index: -1;
}

/* 中央にバー（REASON / NEWS / QUESTION） */
.section-heading--bar-center .section-heading-main::before {
  left: 0;
  right: 0;
}

/* セクション自体に薄いグレーの帯を入れたい場合 */
.section-heading-wrap--gray {
  /*background: #e4e8e7;*/
  padding: 40px 0 30px;
}

/* ── 日本語だけの見出し（会社情報） ── */

.section-heading--underline {
  text-align: left;
}

.section-heading-ja-only {
  position: relative;
  display: inline-block;
  font-size: 32px;
  font-weight: 700;
}

.section-heading-ja-only::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 8px;
  background: #4a8b42;
  z-index: -1;
}


#works-heading{
  text-align: right;
}
#instagram-heading{
  text-align: left;
}
#cad-heading{
  text-align: right;
  position: relative;
}
#company-heading{
  text-align: center;
}


/* SP：バーを少し短くするだけ。位置付けはそのまま */
@media (max-width: 768px) {
  .section-heading--bar-right .section-heading-main {
    padding-right: 0;   /* 余白は不要なのでリセットしてOK */
  }
  .section-heading--bar-right .section-heading-main::before {
    width: 90px;        /* SP 用に長さだけ調整 */
    height: 12px;       /* お好みで高さも少しだけ細く */
  }
}


.font-case-heading,
.font-news-heading,
.font-faq-heading,
.font-cad-heading,
.font-company-heading,
.font-footer {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500; /* Medium */
}

.font-case-text,
.font-news-text {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400; /* Regular */
}







/* ====================================
   Contact Section (CTA)
   ==================================== */
.p-contact {
  position: relative;
  background-color: #d9dcdb; /* 背景色（グレー） */
  padding: 60px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* 背景パターン（植物線画） */
.p-contact__bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px; /* 画像の高さに合わせて調整 */
  /* CSSファイルから見た画像の相対パスを指定 */
  background-image: url('/wp/wp-content/themes/niwano-sonoyama/assets/images/bg_contact.png'); 
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: contain;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.p-contact__inner {
  position: relative;
  z-index: 1; /* 背景より前面に表示 */
}

/* --- 見出し --- */
.p-contact__head {
  margin-bottom: 30px;
}

.p-contact__title {
  display: inline-block;
  position: relative;
}

.p-contact__title .en {
  display: block;
  font-family: "Brush Script MT", cursive; /* 筆記体フォント */
  font-size: 3.5rem;
  line-height: 1;
  color: #000;
  font-style: italic;
  position: relative;
  z-index: 1;
  padding: 0 15px;
}

/* 緑色のバー（タイトルの背景） */
.p-contact__title .en::before {
  content: "";
  position: absolute;
  bottom: 8px; /* 文字の下部 */
  left: 50%;
  transform: translateX(-50%);
  width: 110%; /* 文字より少し広く */
  height: 14px; /* バーの太さ */
  background-color: #568a47; /* 濃い緑 */
  z-index: -1;
}

.p-contact__title .jp {
  display: block;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-top: 8px;
  color: #000;
}

/* --- テキスト --- */
.p-contact__text {
  font-size: 1rem;
  line-height: 2;
  font-weight: bold;
  margin-bottom: 40px;
  color: #000;
}

/* --- ボタンエリア --- */
.p-contact__actions {
  display: flex;
  justify-content: center;
  gap: 30px; /* ボタン間の余白 */
}

.p-contact__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 260px;
  height: 60px;
  color: #fff;
  font-weight: bold;
  font-size: 1.125rem;
  text-decoration: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.15); /* 影 */
}

.p-contact__btn:hover {
  opacity: 0.9;
  transform: translateY(-2px); /* ホバー時に少し浮く */
}

/* LINEボタン（オレンジ） */
.p-contact__btn--line {
  background-color: #f09c16;
}

/* 電話ボタン（緑） */
.p-contact__btn--tel {
  background-color: #568a47;
}


/* ====================================
   Responsive (SP)
   ==================================== */
@media (max-width: 768px) {
  .p-contact {
    padding: 50px 0 60px;
  }

  /* 背景画像の高さ調整 */
  .p-contact__bg {
    height: 100px;
  }

  .p-contact__title .en {
    font-size: 3rem;
  }

  .p-contact__text {
    font-size: 0.9rem;
    line-height: 1.8;
    padding: 0 15px;
  }
  
  /* スマホではテキストの改行を無効化 */
  .p-contact__text br {
    display: none;
  }

  .p-contact__actions {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .p-contact__btn {
    width: 100%;
    max-width: 320px;
  }
}