/* 追加CSS ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */

.edit-link{
	display:none;
}

*, ::after, ::before {
    border-color: #e5e7eb;
}

a:hover{
	opacity:0.8;
}

.main-navigation ul.sub-menu{
    display: block;
    background: #efefef;
}
.main-navigation ul.sub-menu li{
    padding: 15px;
    border-bottom: 1px solid #ccc;
}
.main-navigation ul.sub-menu li:last-child{
    border-bottom:none;
}
.main-navigation ul li.main-nav-item:first-child{
    padding-left: 0rem;
}
.main-nav-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: rgba(107, 114, 128, 0.3); 
}

@media screen and (min-width: 901px) {
	.main-nav-item{
		padding-left: 1.5rem;
	}
}

/* grecaptcha */
.grecaptcha-badge{
	display:none;
}

/* 縦書き設定用カスタムCSS */
.writing-vertical {
	writing-mode: vertical-rl;
	text-orientation: upright;
	letter-spacing: 0.1em;
}

/*
モバイルメニュー調整 ----------------------------------------------------
menu-toggle サイズ調整済
*/

/* ============================================
   1. 共通リセット（余計な線を消す）
   ============================================ */
.custom-menu-list ul.sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================
   2. モバイル設定（900px以下）
   ============================================ */
@media screen and (max-width: 900px) {
    .custom-menu-container {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(238, 238, 238, 0.98) !important;
        z-index: 90 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding-top: 100px !important;
        overflow-y: auto !important;
        
        /* デザイン重視のふわっとした設定 */
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .custom-menu-container.is-open {
        visibility: visible !important;
        opacity: 1 !important;
    }

    .custom-menu-list { width: 100% !important; }

    .custom-menu-list li { 
        width: 100% !important; 
        border-bottom: 1px solid #ccc !important; 
        text-align: center !important; 
    }

    /* 通常のメニューリンク */
    .custom-menu-list li a { 
        display: block !important; 
        padding: 18px 20px !important; 
        font-size: 1.2rem !important; 
        font-weight: bold; 
        color: #333 !important; 
        text-decoration: none !important; 
    }

    /* 【リクエスト項目】サブメニューを持つ親メニューの調整 */
    .custom-menu-list li.menu-item-has-children {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    /* 親メニューの a タグのパディングを 0 に（上下のみ） */
    .custom-menu-list li.menu-item-has-children > a {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        line-height: 3 !important; 
    }

    /* サブメニュー常時表示 */
    .custom-menu-list ul.sub-menu { 
        display: block !important; 
        background: rgba(0, 0, 0, 0.04) !important; 
    }

    /* サブメニュー内のリンク */
    .custom-menu-list ul.sub-menu li a { 
        padding: 12px 20px !important; 
        font-size: 1rem !important; 
        font-weight: normal; 
        border-bottom: none !important; /* サブメニュー内の線は消す */
    }
	
/* モバイルメニューが開いている時（bodyにoverflow:hiddenが付いている時など）
       追従サイドバーを強制的に非表示にする */
    body.is-open aside.fixed,
    .custom-menu-container.is-open ~ aside.fixed,
    body[style*="overflow: hidden"] aside.fixed {
        display: none !important;
    }
	
	.main-nav-item:not(:first-child)::before{
		display:none;
	}
}

/* ============================================
   3. PC設定（901px以上）
   ============================================ */
@media screen and (min-width: 901px) {
    .custom-menu-container, 
    .custom-menu-container.is-open {
        position: static !important;
        display: block !important; 
        visibility: visible !important;
        opacity: 1 !important;
        background: transparent !important;
        padding: 0 !important;
        transition: none !important;
        overflow: visible !important;
    }

    .custom-menu-list {
        display: flex !important;
        flex-direction: row !important;
        gap: 24px !important;
        justify-content: flex-end !important;
    }

    .custom-menu-list li { 
        position: relative !important; 
        border: none !important; 
        width: auto !important; 
    }

    /* PC版では親メニューのパディングを戻す（必要に応じて） */
    .custom-menu-list li.menu-item-has-children > a {
        padding: 10px 0 !important;
        line-height: normal !important;
    }

    /* PCサブメニューのデザイン */
    .custom-menu-list ul.sub-menu {
        display: none !important; 
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        background: #ffffff !important;
        min-width: 200px !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.12) !important;
        padding: 10px 0 !important;
        z-index: 1000 !important;
        border-top: 3px solid #333;
    }

    .custom-menu-list li:hover > ul.sub-menu {
        display: block !important;
    }

    .custom-menu-list ul.sub-menu li a {
        color: #333 !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
        font-weight: normal !important;
        text-align: left !important;
        display: block !important;
    }

    .custom-menu-list ul.sub-menu li a:hover { 
        background: #f7f7f7 !important; 
    }
}

/* ===================================================
   コンタクトフォーム（Contact Form 7）のスタイル
=================================================== */

/* フォーム全体のラッパー（幅を制限して中央配置） */
.wpcf7 {
  max-width: 700px;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
}

/* 各項目の余白 */
.wpcf7 p {
  margin-bottom: 2em;
}

/* 見出し（ラベル）のスタイル */
.wpcf7 label {
  font-weight: bold;
  display: block;
  font-size: 16px;
}

/* (必須) の文字をバッジ風に装飾 */
.wpcf7 label span[style="color:red;"] {
  display: inline-block;
  background-color: #e53e3e; /* 赤系の背景 */
  color: #fff !important;    /* インラインの赤文字を白で上書き */
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: normal;
  vertical-align: middle;
}

/* -------------------------------------------
   入力欄（テキスト、メール、テキストエリア）
------------------------------------------- */
.wpcf7-text,
.wpcf7-textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 15px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

/* 入力中のフォーカス状態（枠線を青色に） */
.wpcf7-text:focus,
.wpcf7-textarea:focus {
  border-color: #003380;
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 51, 128, 0.2);
}

/* テキストエリア特有の調整 */
.wpcf7-textarea {
  resize: vertical; /* 縦方向のみサイズ変更可能に */
  min-height: 200px;
}

/* -------------------------------------------
   チェックボックス（お問い合わせ内容）
------------------------------------------- */
.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 25px; /* 上下左右の隙間 */
  margin-top: 10px;
}

.wpcf7-list-item {
  margin: 0; /* CF7特有の余分なマージンをリセット */
}

/* チェックボックスのラベルとボタンの配置 */
.wpcf7-list-item label {
  display: flex;
  align-items: center;
  font-weight: normal;
  cursor: pointer;
}

.wpcf7-list-item input[type="checkbox"] {
  margin-right: 8px;
  transform: scale(1.2); /* チェックボックスを少し大きくしてタップしやすく */
  cursor: pointer;
}

/* -------------------------------------------
   送信ボタン
------------------------------------------- */
.wpcf7-submit {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 40px auto 0;
  padding: 15px 30px;
  background-color: #003380; /* メインカラーの濃い青 */
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wpcf7-submit:hover {
  background-color: #001f4d; /* ホバー時に少し暗く */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateY(2px); /* 押したようなアニメーション */
}

/* -------------------------------------------
   下部のエラー時代替テキスト
------------------------------------------- */
.wpcf7 form > p:last-of-type {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.8;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px dashed #ddd;
}

/* チャットシステム */

    #chat-container {
      position: fixed;
      bottom: 20px;
      right: 20px;
      z-index: 9999;
      font-family: sans-serif;
    }

    #chat-widget {
      width: 320px;
	  max-height: 350px;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 8px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      display: none; /* 初期状態は非表示 */
      flex-direction: column;
		line-height:1.2;
    }
	  
	#question{
		    text-align: center;
	}

    #chat-header {
      background-color: #2115c3;
      color: #fff;
      padding: 10px;
      border-radius: 8px 8px 0 0;
      font-weight: bold;
    }

    #chat-body {
      padding: 10px;
      overflow-y: auto;
    }

    .message {
      max-width: 80%;
      margin-bottom: 10px;
      padding: 15px 15px 8px;
      border-radius: 12px;
      clear: both;
    }

    .left {
      background-color: #f1f1f1;
      float: left;
      border-top-left-radius: 0;
    }

    .right {
      background-color: #dcf8c6;
      float: right;
      border-top-right-radius: 0;
    }

    .home select {
      width: 100%;
      padding: 6px;
      margin-top: 10px;
    }

    .clearfix::after {
      content: "";
      clear: both;
      display: table;
    }

    #toggle-button {
      background-color: #2115c3;
      color: white;
      padding: 8px 12px;
      border: none;
      border-radius: 20px;
      cursor: pointer;
      font-size: 14px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      margin-bottom: 5px;
    }
	  
	.message a{
    margin-bottom: 5px;
    display: block;
    background: #fff;
    padding: 10px;
	}

img.emoji{
	filter: brightness(0) invert(1);
}

.single .cat-links{
	display:none;
}

.wpcf7-select{
    padding: 5px;
    border: 1px solid #cccccc;
    margin-top: 8px;
}

.font-notsans {
    font-family: "Noto Sans JP", sans-serif;
}

.bg-firstview{
	background: url(../../uploads/firstviewback2.webp) center / cover;
}

.bg-img{
    position: relative;
    overflow: hidden;
    background: url(../../uploads/ice2.webp) center / cover;
}

/* 上下ライン */
.bg-img::before,
.bg-img::after{
    content:"";
    position:absolute;
    left:0;
    width:100%;
    height:4px;
    background:#f1f9f7;
    z-index:1;
}

/* 上ライン */
.bg-img::before{
    top:0;
}

/* 下ライン */
.bg-img::after{
    bottom:0;
}

/* 光 */
.bg-img .shine-top,
.bg-img .shine-bottom{
    position:absolute;
    left:-180px;
    width:180px;
    height:8px;
    pointer-events:none;
    z-index:2;

    background:linear-gradient(
        90deg,
        rgba(255,255,255,0),
        rgba(255,255,255,.2),
        rgba(255,255,255,1),
        rgba(255,255,255,.2),
        rgba(255,255,255,0)
    );

    filter:blur(3px);

    animation:shineMove 3s linear infinite;
}

.bg-img .shine-top{
    top:-2px;
}

.bg-img .shine-bottom{
    bottom:-2px;
    animation-delay:1.5s;
}

@keyframes shineMove{

    0%{
        left:-180px;
    }

    100%{
        left:calc(100% + 180px);
    }

}