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;
}
/* Reset & base styles */
* {
  margin: 0;japanese-paper-03-p.jpg
  padding: 0;
  box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 横スクロールを強制的に消す */
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #f2f2f2;
  color: #333;
  line-height: 1.6;
  background-image: url("/bizapla/english/images/back.jpg");
  background-repeat: repeat;
  background-size: 200px 200px; /* 好きなサイズに拡大/縮小 */
}

a {
  color: #5a3e36;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #8b5e3c;
}

img {
  max-width: 100%;
  display: block;
}

h1, h2, h3 {
  font-weight: 500;
  color: #2e2e2e;
  margin-bottom: 0.5em;
}

p { margin-bottom: 1em; }
ul { list-style-type: disc; margin-left: 20px; }

button {
  cursor: pointer;
  border: none;
  background-color: #5a3e36;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
button:hover { background-color: #8b5e3c; }

/* --- Layout --- */
.layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 100px 50px 50px;
}
.main-content {
  flex: 1 1 70%;
  padding: 20px;
}

/* --- Sidebar --- */
.sidebar {
  width: 250px;
  background-color: #2b2b2b;
  color: #e0e0e0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  font-family: 'Segoe UI', sans-serif;
}
.sidebar h2 {
  font-size: 1.2em;
  margin-bottom: 12px;
  border-bottom: 2px solid #555;
  padding-bottom: 4px;
  color: #f0f0f0;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar-profile img {
  width: 100%;
  border-radius: 50%;
  border: 2px solid #555;
  margin-bottom: 10px;
}
.sidebar ul {
  list-style: none;
  padding-left: 0;
  margin: 0 0 20px;
}
.sidebar ul li {
  margin-bottom: 6px;
  line-height: 1.4;
  padding-left: 8px;
  transition: all 0.2s ease;
}
.sidebar ul li ul {
  margin-top: 4px;
  margin-left: 15px;
  border-left: 1px dashed #555;
}
.sidebar ul li ul li {
  padding-left: 5px;
  font-size: 0.95em;
}
.sidebar a {
  color: #c0c0c0;
  transition: color 0.2s ease;
}
.sidebar a:hover {
  color: #ffcc00;
  text-decoration: underline;
}
.sidebar-ads img {
  width: 100%;
  border-radius: 4px;
  margin-top: 10px;
}

/* --- Back to Top --- */
#back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none;
}
#back-to-top img {
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
#back-to-top:hover img { opacity: 0.7; }

/* --- Article Card --- */
.article-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
  background: #fff;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.article-card .article-link {
  display: flex;
  text-decoration: none;
  color: inherit;
}
.article-card .thumb img {
  width: 150px;
  height: 100px;
  object-fit: cover;
}
.article-card .article-info {
  padding: 10px;
  flex: 1;
}
.article-card .article-info h2 {
  font-size: 1.2rem;
  margin: 0 0 5px;
}
.article-card .description {
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.article-card .meta span {
  font-size: 0.85rem;
  margin-right: 10px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;   /* 縦並び */
    margin: 80px 20px;        /* 左右余白を少しに */
    gap: 0;                   /* 不要な隙間を消す */
    align-items: center;      /* 中央寄せ */
  }

  .main-content {
    flex: unset;              /* flexを解除 */
    width: 100%;              /* 親幅いっぱい */
    max-width: 100%;          /* はみ出し防止 */
    margin: 0;                /* 右寄り解消 */
    box-sizing: border-box;   /* paddingを含める */
  }

  /* サイドバーも幅調整 */
  .layout aside {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }
  .article-card .article-link {
    flex-direction: column;
  }
  .article-card .thumb img {
    width: 100%;
    height: auto;
  }
  #back-to-top { display: none; }
}
/* sidebar search */
/* search-form.css */

/* サイドバー検索フォーム全体 */
.sidebar form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    background-color: #696969; /* 薄灰色 */
    padding: 15px;
    border-radius: 8px;
}

/* テキスト入力 */
.sidebar input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    background-color: #fafafa;
    color: #333;
}

/* プレースホルダ */
.sidebar input[type="text"]::placeholder {
    color: #999;
}

/* 検索ボタン */
.sidebar button {
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #ccc; /* 薄灰色 */
    color: #333;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.2s;
}

.sidebar button:hover {
    background-color: #bbb; /* ホバーで少し濃く */
}
