/* ベースリセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

li {
	list-style:none;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

/* ヘッダー */
header {
  text-align: center;
  margin-bottom: 20px;
}

a {
	text-decoration:none;
}

header h1 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.search-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.search-form input {
  padding: 16px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  background-color: #fff;
  transition: box-shadow 0.3s, transform 0.3s;
}

.search-form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.4);
  transform: translateY(-1px);
}

.search-form button {
  padding: 16px 28px;
  font-size: 1.1rem;
  font-weight: bold;
  background: linear-gradient(145deg, #4da3ff, #3578e5);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
}

.search-form button:hover {
  background: linear-gradient(145deg, #3c8ce7, #2a6ccc);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
}

/* パンくず */
.breadcrumb {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 10px;
}

/* サブカテゴリ一覧 */
.subcat-list {
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.subcat-list a {
  display: inline-block;
  margin: 0 5px;
  color: #3498db;
  text-decoration: none;
}
.subcat-list a:hover {
  text-decoration: underline;
}

/* アプリリスト */
.app-list {
  list-style: none;
  padding: 0;
}

.app-item {
  background: #fff;
  margin-bottom: 10px;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.app-row {
  display: flex;
  flex-wrap: wrap; /* レスポンシブ対応 */
  gap: 10px;
}

/* 左カラム */
.app-info-area {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.icon-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-number {
  font-size: 1.2rem;
  color: #3498db;
  font-weight: bold;
  min-width: 30px;
  text-align: right;
}
.app-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}
.app-title {
  font-size: 1rem;
  font-weight: bold;
}

/* 右カラム：スライダー */
.app-screens {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-container {
  position: relative;
  display: inline-block;
}
.slide-img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  display: block;
}
.btn-prev,
.btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.btn-prev {
  left: -15px;
}
.btn-next {
  right: -15px;
}

/* レイティングなど */
.rating {
  color: #f39c12;
  font-weight: bold;
  font-size: 0.9rem;
}
.desc {
  font-size: 0.9rem;
  color: #555;
}
.app-link {
  font-size: 0.9rem;
  color: #3498db;
	text-decoration: none;
	margin: 0 auto;

}
.app-link:hover {
  text-decoration: underline;
}

.linkbtn {
	height:60px;
	width:auto;
}
.notice-box {
      background: #f0f8ff;
      border: 1px solid #add8e6;
      border-radius: 8px;
      padding: 10px 15px;
      margin: 20px 0;
      font-size: 0.95rem;
      color: #333;
    }
    .rank-number {
      font-weight: bold;
      font-size: 1.2rem;
    }
    .app-screens img.slide-img {
      width: auto;
      height: auto;
      max-width: 240px;
    }
    .app-screens img.slide-img.portrait {
      height: 120px !important;
      object-fit: cover;
}

* 注意書きスタイル */
.notice {
  font-weight: bold;
  color: #555; /* やや薄いグレー */
  background: #f9f9f9;
  padding: 10px 15px;
  border-left: 4px solid #3498db;
  margin: 20px 0;
  border-radius: 8px;
  font-size: 1rem;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .logo-title {
    height: 40px;
    align-items: center;
  }
	
	.logo-title img {
		width: 150px;
	}
	
  .title-logo {
    height: auto;
    margin-right: 8px;
  }

  .site-header h1 {
    font-size: 8px; /* タイトル文字も少し小さくする */
    margin: 0;
  }

  .search-form {
    flex-wrap: nowrap; /* 横一列に並べる */
    gap: 10px; /* 間隔もスマホ向きに縮める */
    margin-top: 10px;
  }

  .search-form input {
    min-width: 140px; /* スマホ向けに小さめ */
    flex: 1; /* 残り幅で調整 */
  }

  .search-form button {
    padding: 12px 16px;
    font-size: 1rem;
    white-space: nowrap; /* ボタン内のテキスト折返し防止 */
  }

  .app-row {
    flex-direction: column;
  }
  .icon-title-line {
    flex-wrap: wrap;
  }
  .rank-number {
    min-width: auto;
    text-align: left;
  }
  .slide-img {
    width: 100%;
    max-width: 300px;
  }
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

.logo-title {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.title-logo {
  width: 229px; /* サイズは適宜調整 */
  height: auto;
  margin-right: 10px;
}

.site-header h1 {
  font-size: 12px;
  margin: 0;
}

.latest-keywords {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 30px auto;
}

.keyword-card {
  display: flex;
  align-items: center;
  background: #f4f6fa;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 12px 16px;
  transition: transform 0.2s ease;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.keyword-card:hover {
  transform: translateY(-2px);
}

.thumb-square {
  width: 64px;
  height: 64px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-right: 16px;
}

.keyword-text h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
}

.keyword-text p {
  font-size: 0.95rem;
  margin: 4px 0 0;
  color: #666;
}

.desc-container {
  position: relative;
  margin-bottom: 1em;
}

.desc.full {
  display: none;
  margin-top: 0.5em;
}

.read-more-btn {
  background-color: #3498db;
  color: #fff;
  border: none;
  padding: 0.5em 1em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.read-more-btn:hover {
  background-color: #2980b9;
}

