/* body */
body {
	color:#1a1a1a;
	margin:0px;
	padding:0px;
	background:#ffffff url(bg9.gif) repeat-y;
	background-position:center;
	font-family:'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', sans-serif;
}

/* テーブル・段落 */
td { font-size:15px; line-height:160%; }
p  { margin:3px 5px; }

/* リンク */
a       { color:chocolate; text-decoration:underline; }
a:hover { color:#aa0000; text-decoration:none; background-color:#ffcc99; }

/* コンテンツ */
h1 { color:chocolate; font-size:24px; margin:0px 0px;}
h2 { color:chocolate; font-size:20px; margin:0px 0px;}
h3 { color:chocolate; font-size:16px; margin:0px 0px;}


/* ホームページの横幅 */
table {
    max-width: 900px;
    margin: 0 auto;
}

/* 全体のコンテンツ枠（中央寄せ + 最大幅を制限） */
.container {
  max-width: 1200px;  /* 画面いっぱいに広がらないよう制限 */
  margin: 0 auto;     /* 中央寄せ */
  padding: 20px;      /* 余白 */
  background-color: #ffffff;  /* 背景色（必要なら） */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* 軽い影で見た目を整える */
  border: 1px solid #c7c7c7;  /* 枠線（必要なら） */
  box-sizing: border-box;
}

/* 横スクロール防止 */
body {
  overflow-x: hidden;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #f9fafc; /* 読み込み前の優しい背景色 */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed figcaption {
  text-align: center;
  color: #444;
  font-size: 0.95rem;
  margin-top: 8px;
}

/* ==========================================================
   template-review ページ専用スタイル（他ページには影響しません）
   ========================================================== */
.template-review body {
  background: linear-gradient(120deg, #f8fbff, #eaf2ff, #dfeaff);
  background-attachment: fixed;
  line-height: 1.7;
}

/* サイドバー追従 */
.template-review .layout-2col {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.template-review .sidebar {
  width: 250px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

/* 目次（上部配置版） */
.template-review .toc-top {
  background: #fff;
  border: 1px solid #cfdaf9;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 30px auto;
  box-shadow: 0 4px 12px rgba(26,63,170,0.08);
}

.template-review .toc-top h3 {
  color: #1a3faa;
  font-size: 1.1rem;
  margin-bottom: 10px;
  border-left: 4px solid #1a3faa;
  padding-left: 8px;
}

.template-review .toc-top ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.template-review .toc-top a {
  color: #1a3faa;
  text-decoration: none;
}

.template-review .toc-top a:hover {
  text-decoration: underline;
  color: #dc2626;
}


/* サイドバーの横幅（メインコンテンツの横幅も自動的に決まる） */
.sidebar {
    width: 210px;
}


/* パソコンでは「mobile-sidebar」の箇所を非表示にする */
.mobile-sidebar {
    display: none;
}

/*「mobile-only」の箇所はパソコンでは非表示にする */
.mobile-only {
    display: none;
}

/* 上に戻るボタンのデザイン */
.scroll-to-top {
  position: fixed;
  bottom: 20px; 
  right: 20px;  
  background-color: #ffcc99; /* ボタンの色 */
  color: #333;  /* 文字の色 */
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
  display: none;  /* 初期状態では非表示 */
}

.scroll-to-top:hover {
  background-color: #ffaa66; /* ホバー時の色 */
  color: white;
}

/* ==========================
   サイドバー追従スタイル（アサちゃん版）
   ========================== */
.layout-2col {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* 本文 */
.layout-2col main {
  flex: 1;
  min-width: 0;
}





/*===============================================================
  モバイル向けのスタイルシート
===============================================================*/

@media screen and (max-width: 768px) {

    /* モバイルではテーブルを拡大する */
    table {
        width: 100%;
        max-width: none;
    }

    /* モバイルで見るときの文字サイズと文字の間隔 */
    td {
        font-size: 15px;
        line-height: 160%;
    }

    /* モバイルでは画像を拡大する */
    img {
        max-width: 100%;
        height: auto;
    }

    /* モバイルではコンテンツバーを折り返して表示する */
    .nav-row {
        display: flex;
        flex-wrap: wrap;
    }

    /* モバイルではコンテンツバーを横に3つずつ表示する */
    .nav-item {
        width: 33.33%;
        box-sizing: border-box;
        background-size: cover;
        padding-top: 5px;
        padding-bottom: 5px;
    }


    /* モバイルではサイドバーを非表示にする */
    .sidebar {
        display: none;
    }

    /* モバイルではサイドバーの情報をフッターに表示する */
    .mobile-sidebar {
        display: block;
        margin-top: 20px;
    }


    /* モバイルではメールフォームの横幅を広げる */
    input[type="text"], textarea {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    /* モバイルではテーブルを縦に並べる */
    .responsive-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }


    /*「pc-only」の箇所はモバイルでは非表示にする */
    .pc-only {
        display: none;
    }

    /*「mobile-only」の箇所はモバイルでは表示する */
    .mobile-only {
        display: block;
    }





}

/*===============================================================
  ここまで  モバイル向けのスタイルシート
================================================================*/

/*===============================================================
  ギャラリー画像（Eufy紹介用）
===============================================================*/

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.gallery .tile {
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden;
}

.gallery .tile img {
  width: 100%;
  height: 200px;        /* 高さを統一 */
  object-fit: cover;    /* 中央を基準に切り抜き表示 */
  display: block;
}

.gallery .cap {
  padding: 8px;
  font-size: 14px;
  color: #333;
}

/*===============================================================
  レビュー吹き出し（アサちゃんブルーVer.）
===============================================================*/
.review-box {
  display: flex;
  align-items: flex-start;
  margin: 20px 0;
}

.review-icon img {
  width: 60px;
  height: 60px;
  border-radius: 50%; /* 丸アイコン */
  object-fit: cover;
  margin-right: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.review-bubble {
  background: #1a3faa; /* アサちゃんブルー */
  color: #fff; /* 文字は白 */
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 600px;
  font-size: 15px;
  line-height: 1.6;
  position: relative;
}

.review-bubble::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 20px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent #1a3faa transparent transparent;
}

