@charset "utf-8";

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
}

/*---------------------------------------------------------------------------
CMS用に追加
---------------------------------------------------------------------------*/

/* NEW,UPマークなどのアイコン共通 */
.newicon, .upicon, .option1-icon, .option2-icon {
  display: inline-block;
  padding: 0.3rem 0.5rem;
  border-radius: 3px;
  font-size: 0.7rem;
  line-height: 1;
  margin-right: 2px;
}

.newicon { background: #f00; color: #fff; }
.upicon { background: #257dce; color: #fff; }
.option1-icon {
  background: #fff;
  color: #777;
  border-radius: 3px;
  border: 1px solid #999;
}
.option2-icon { background: #ccc; color: #555; }

/* option帯 */
.option1, .option2 {
  font-size: 0.7rem;
  display: inline-block;
  width: 200px;
  text-align: center;
  position: absolute;
  top: 0px;
  left: 0px;
  transform: translate(-60px, 20px) rotate(-30deg);
  box-shadow: 0px 3px 2px rgba(0,0,0,0.2);
}

h2 .option1, h2 .option2 {
  width: auto; box-shadow: none;
  position: relative;
  transform: translate(0px, -4px) rotate(0deg);
  padding: 5px 5px;
  margin-left: 5px;
  border-radius: 3px;
}

.option1 { background: #ff0000; color: #fff; }
.option2 { background: #ccc; color: #777; }


/* ==========================================================================
   gridタイプのボックス
   ========================================================================== */
@media screen and (min-width:500px) {
  .list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media screen and (min-width:500px) {
  .list-blog {
    display: grid;
    grid-template-columns: repeat(5, 3fr);
    gap: 1rem;
  }
  .list-grid .list img {
    margin-bottom: 0;
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   2カラムレイアウト・および【最重要】サイドバー追従（PC版）の設定
   ========================================================================== */
.column {
  padding: 0 2rem;
  margin-top: 30px !important; /* コンテンツの上の30px余白 */
}

.column .main-contents {
  margin-bottom: 2rem;
}

/* PC版（画面幅900px以上）の時の挙動 */
@media screen and (min-width: 900px) {
  .column {
    display: flex !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    /* 💡超重要：サイドバーが下に引き伸びるのを防ぎ、動くための独立したレールにします */
    align-items: flex-start !important; 
  }
  
  .column .main-contents {
    margin-bottom: 0;
    flex: 1;
  }
  
  /* サイドバー外枠（追従の土台） */
  .column .sub-contents {
    flex-shrink: 0 !important;
    width: 230px !important;
  }
}


/* sub,sideブロック設定 */
#contents .sub-contents h3::before, #contents .side h3::before { border: none; padding: 0; }
#contents .sub-contents h3, #contents .side h3 {
  margin: 0; border: none; border-radius: 0; font-weight: normal; padding: 5px;
  background-color: var(--primary-color); color: #4e4e4e; text-align: center;
}
#contents .sub-contents h3 a, #contents .side h3 a { color: inherit; }

.submenu { padding: 0; margin: 0 0 0.2rem; }
.submenu li { border-bottom: 1px solid rgba(0,0,0,0.2); list-style: none; margin: 0 0 0.2rem; }
.submenu a { display: block; text-decoration: none; padding: 0.2rem 1rem; }
.submenu a::before {
  transition: 0.3s; font-family: "Font Awesome 5 Free"; content: "\f0da";
  color: #ABABAB; padding-right: 0.8em; font-weight: bold;
}
.submenu a:hover::before { color: #666; }


/* ==========================================================================
   ボックス全体の設定（追従機能を完全最適化）
   ========================================================================== */
.box1 {
  background: #fff;       /*背景色*/
  border: 1px solid #ccc; /*枠線の幅、線種、色*/
  padding: 20px 10px;     /*ボックス内の余白*/
  border-radius: 5px;     /*角を丸くする指定*/
  margin-bottom: 1rem;    /*ボックスの下に空けるスペース*/
}

/* PC閲覧時（900px以上）の時だけ、この白い箱を画面にピタッと追従させる */
@media screen and (min-width: 900px) {
  .box1 {
    position: -webkit-sticky !important; /* Safari用 */
    position: sticky !important;         /* 追従機能を強制ON */
    top: 40px !important;               /* 画面上端から40pxの位置で美しく固定 */
    z-index: 10 !important;
  }
}

.box1 .submenu { margin-bottom: 0; }
#contents .sub-contents .list h4 { margin: 0; }
#contents .sub-contents .list p { line-height: 1.5; font-size: 0.8rem; margin: 0; }

/* ページャー */
.pager { margin-top: 3rem; margin-bottom: 3rem; text-align: center; color: #999; }
.pager a { display: inline-block; text-decoration: none; margin-bottom: 5px; padding: 0.5rem 1rem; border: 1px solid #999; background: #fff; color: #555; }
.pager a:hover { background: #fff; color: #999; border: 1px solid #333; }
.pager span { display: inline-block; margin-bottom: 5px; padding: 0.5rem 1rem; border: 1px solid #ccc; background: rgba(0,0,0,0.1); }

.list { position: relative; overflow: hidden; }
.list.sumi figure img { opacity: 0.4; }
.sumi-btn { display: inline-block; font-size: 1.8rem; letter-spacing: 0.1em; background: #eee; color: #999; padding: 0 1.5rem; border-radius: 5px; border: 1px solid #ccc; }

.list-normal-sub .list { display: flex; padding: 0.3rem 0; }
.list-normal-sub .list div { flex: 1; }
.list-normal-sub .list figure { width: 30%; margin-right: 0.5rem; }
.list-normal-sub .list h4 { margin: 0; line-height: 1; }
.list-normal-sub .list h4 a { color: inherit; }
.list-normal-sub .list p { margin: 0; font-size: 0.7em; }


/* ==========================================================================
   ★最重要：新・実績テーブルスタイル（PC・スマホ常に横並び2カラムを強制）
   ========================================================================== */
.line2-container {
  border-top: 1px solid #ccc !important;
  font-size: 0.8em !important;
  width: 100% !important;
  display: block !important;
  clear: both !important;
}

.line2-row {
  display: grid !important;
  grid-template-columns: 90px 1fr !important; 
  border-bottom: 1px solid #ccc !important;
  width: 100% !important;
}

.line2-dt {
  background: #eee !important;
  color: #333 !important;
  padding: 0.5rem !important;
  font-weight: bold !important;
  display: flex !important;
  align-items: center !important; 
}

.line2-dd {
  background: #fff !important;
  color: #333 !important;
  padding: 0.5rem !important;
  margin: 0 !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
}

/* スマホ（500px以下）の時の全体の配置調整 */
@media screen and (max-width: 500px) {
  .list-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .list-grid .list {
    width: 100% !important;
  }
}


/* その他装飾系 */
.ofx { overflow-x: hidden; }
.panorama-img { width: 600px !important; height: 400px !important; }
@media screen and (max-width:600px) {
  .panorama-img { width: 450px !important; height: 300px !important; }
}

.btn2 a { display: block; text-decoration: none; text-align: center; border-radius: 3px; padding: 1rem 2rem; background: var(--primary-color); }

/* 古い既存テーブル ta1 */
.ta1 { padding: 0; width: 80%; margin: 10px auto; border-collapse: collapse; }
@media screen and (max-width: 768px) {
  .ta1 { margin: 2vw auto; width: 100%; border-collapse: collapse; }
}
.ta1 th, .ta1 td { border: 1px solid #ccc; padding: 10px 0 10px 10px; text-align: left; }
.ta1 td { border: 1px solid #ccc; margin: 0; padding: 10px 0 10px 10px; text-align: left; }
.ta1 td:nth-child(1), .ta1 th:nth-child(1) { width: 20%; }
.ta1 td, .ta1 th { width: auto; }

@media screen and (max-width: 768px) {
  .ta1 { width: 90%; }
  .ta1 td:nth-child(1), .ta1 th:nth-child(1) { width: 25%; }
  .ta1 th, .ta1 td { border: 1px solid #ccc; padding: 8px; }
}

.mb10 { margin-bottom: 10px !important; }
#menubar nav ul { list-style: block; margin-left: 0px; padding: 0; display: flex; justify-content: center; }
#menubar nav ul li { margin-right: 20px; justify-content: center; }
#menubar nav ul li a { text-decoration: none; color: #ffffff; font-weight: bold; }
.normal { font-weight: lighter; }

.manga { margin: 200px 0 150px 0; padding: 30px 150px 0 150px; }
@media screen and (max-width: 768px) {
  .manga { margin: 60px 0 0 0; padding: 30px 30px; }
}

.main-content { display: inline-flex; margin: 0 0 5px 9vw; flex-direction: row; width: 20%; gap: 10px; }
.main-content1 { display: flex; margin: 0 40px 5px 0; flex-direction: row; width: 100%; gap: 10px; overflow-x: auto; }
.gaiheki img { width: 100%; overflow-x: auto; }

@media screen and (max-width: 768px) {
  .main-content { display: flex; flex-direction: row; overflow-x: auto; width: 70%; gap: 5px; margin: 0 auto; scroll-snap-type: x mandatory; }
  .main-content img { flex-shrink: 0; width: 70%; height: auto; scroll-snap-align: start; object-fit: cover; }
}

.plusone { max-width: 30%; margin: 0 auto; text-align: center; }
@media screen and (max-width: 768px) {
  .plusone { max-width: 30%; margin: 0 auto 0; }
}

img { max-width: 100%; height: auto; }
.box { overflow: hidden; margin: 0; padding: 0; background-color: #ffffff; margin-top: 0; }

.slidein { transition: 2s cubic-bezier(0.75, 0, 0.25, 1); opacity: 0; }
.slidein:nth-child(1) { transition-delay: 0s; }
.slidein:nth-child(2) { transition-delay: 0.3s; }
.slidein:nth-child(3) { transition-delay: 0.5s; }

.slide_left { opacity: 0; transform: translateY(-20px); transition: opacity 3s ease-out, transform 5s ease-out; }
.slide_right { transform: translateX(calc(50vw + 50%)); }
.slide_bottom { transform: translateY(10px); }
.slide_up { transform: translateY(-100px); }
.show { transform: translateX(0) translateY(0); opacity: 1; }

.title-fontsize { width: 100%; margin: 20px auto 0; }

header { opacity: 0; transform: translateY(-50px); transition: opacity 3s ease-out, transform 5s ease-out; }
header.show { opacity: 1; transform: translateY(0); margin: 0 auto; }

.back-groundskeleton { opacity: 0; width: 35%; height: 33vw; }
@media screen and (max-width: 768px) {
  .back-groundskeleton { opacity: 0; max-width: 100%; height: 77vw; }
}

.main-word1 { display: flex; margin: 0 auto; max-width: 100%; }
.img-pc, .img-sp { display: none; }
@media screen and (min-width: 769px) { .img-pc { display: block; } }
@media screen and (max-width: 768px) { .img-sp { display: block; } }

.main-word { display: flex; margin: 0 auto; max-width: 97%; }
@media screen and (max-width: 768px) {
  .main-word1 { margin: 50px auto 0; display: flex; justify-content: center; align-items: center; }
  .main-word { display: flex; justify-content: center; align-items: center; }
}

.photo-contents-idealhome { margin: 0 auto; text-align: center; margin-top: 6%; margin-bottom: 2%; max-width: 90%; }
@media screen and (max-width: 768px) {
  .photo-contents-idealhome { margin: 0 0 0 5vw; margin-top: 6%; margin-bottom: 2%; max-width: 90%; }
}

.photo-contents { margin: 0 auto; margin-top: 6%; margin-bottom: 2%; max-width: 80%; }
.photo-contents-news { margin: 0 0 0 6.5vw; max-width: 70%; padding-right: 0vw; }
@media screen and (max-width: 1025px) {
  .photo-contents-news { margin: 0 0 0 10vw; max-width: 80%; padding-right: 0vw; }
}

.box-washi1, .box-washi2, .box-washi3 { display: flex; flex-wrap: wrap; justify-content: center; padding: 5vw; margin: 3vw auto; max-width: 90%; }
.box-washi1 img, .box-washi2 img, .box-washi3 img { width: 100%; max-width: 100%; height: auto; }

.box-washi4 { display: flex; margin: 3vw auto; max-width: 40%; padding-bottom: 3vw; }
@media screen and (max-width: 768px) {
  .box-washi4 { display: flex; margin: 3vw auto; max-width: 40%; padding-bottom: 3vw; }
}

.right-lineup { display: grid; grid-template-columns: repeat(3, 3fr); gap: 0; }
@media screen and (max-width: 768px) {
  .right-lineup { display: grid; grid-template-columns: repeat(1, 1fr); gap: 0; }
}

.main-contents-word { font-size: 130%; text-align: center; margin-top: 10%; margin-bottom: 10%; letter-spacing: 0.3em; font-weight: 400; font-family: Georgia, 'Times New Roman', Times, serif; }
.font-color-blue { color: rgb(47, 66, 174); }
.font-color-orenge { color: #FBB03B; }
@media screen and (max-width: 768px) {
  h1 { width: 100%; font-size: 80%; }
}

.house { margin: 0 0; padding: 0 0; height: 600px; }
@media screen and (max-width: 768px) {
  .house { margin: 0 0; padding: 0 0; height: 600px; }
}

.box1 h3 { background-color: #ddd; color: #333; padding: 7px; text-align: center; font-size: 1.2rem; font-weight: lighter; margin: 0; border-radius: 3px; }

/* ==========================================================================
   2カラム・サイドバー追従のための完璧なCSS指定
   ========================================================================== */

/* PC表示（900px以上）の時の2カラムレール設定 */
@media screen and (min-width: 900px) {
  .column {
    display: flex !important;
    justify-content: space-between !important;
    gap: 2rem !important;
    align-items: flex-start !important; /* 👈これがサイドバーの自動引き伸ばしを防ぎ、レールを作ります */
  }

  .column .main-contents {
    flex: 1 !important;
  }

  /* サイドバーの外枠 */
  .column .sub-contents {
    width: 230px !important;
    flex-shrink: 0 !important;
  }

  /* 💡【確実な固定】サイドバーの中の「白い箱」をスクロール追従させる */
  .box1 {
    position: -webkit-sticky !important; /* Safari対策 */
    position: sticky !important;         /* 追従機能を強制ON */
    top: 40px !important;                /* 画面上端から40pxの美しい位置で固定 */
    z-index: 100 !important;
  }
}
/* ==========================================================================
   ヘッダーが上から降りてきた際の見切れ（中途半端）を完全に解消する
   ========================================================================== */

	 header {
		/* 💡ヘッダー全体の縦幅を「90px」にがっちり固定して制限します */
		height: 90px !important; 
		
		/* 💡中身の要素（ロゴやボタン）が縦幅からはみ出さないように自動調整 */
		padding-top: 10px !important;
		padding-bottom: 10px !important;
		box-sizing: border-box !important;
		
		/* アニメーションの基本設定（元々のスライドを活かします） */
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		z-index: 100 !important;
		background: transparent !important;
	}
	
	/* 上から降りきった状態（.show）の指定 */
	header.show {
		/* 💡JavaScriptがヘッダーを完全に押し出せるよう、位置のズレを確実に「0」にします */
		transform: translateY(0) !important;
		opacity: 1 !important;
	}
	
	header .btn a {
		/* 💡ボタンが縦に大きすぎてヘッダーからはみ出るのを防ぐため、高さを少しスリムにします */
		padding: 1rem 1.5rem !important;
		display: inline-block !important;
	}
