/* ===== base ===== */

html,
body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 12px;
  line-height: 2.0;
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

p {
  margin: 0;
}

.p-center {
  text-align: center;
}

/* =====レイアウト===== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;

  min-height: 100vh;
  /* 追加：画面の高さまで伸ばす */
  display: flex;
  /* 追加：縦flex */
  flex-direction: column;
  /* 追加：上→下に積む */
}

header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.layout {
  display: flex;
  gap: 20px;

  flex: 1;
}

/* ===============左メニュー=============== */
.side {
  width: 160px;
  flex-shrink: 0;
}

.side ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.side li {
  margin-bottom: 10px;
}

.side li.menu-separator {
  margin-bottom: 40px;
}

.side a {
  color: #666;
  text-decoration: none;
}

.iconSmall {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
  border-radius: 25%;
}

/* ===============ホームメイン=============== */
.content {
  flex: 1;
}

footer {
  margin-top: auto;
  margin-bottom: 0px;
  text-align: center;
}

/* 線そのもの */
.footer-divider {
  height: 1px;
  background: #ddd;
  margin-top: 60px;
  margin-bottom: 15px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 30px;
  margin-top: 20px;
  margin-left: 45px;
  margin-right: 45px;
  margin-bottom: 20px;
}

.app-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.app-item img {
  width: 64px;
  height: 64px;
  border-radius: 25%;
}

/* PCでは名前を隠す */
.app-name {
  display: none;
}

/* ===============下層ページ=============== */
/* タイトル */
.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.app-download img {
  height: 40px;
}

/* メイン画像 */
.app-hero {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.app-hero.tight {
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 60px;
}

.app-hero img {
  max-width: 100%;
  height: auto;
}

/* 文字ブロック */
.app-icon-float {
  width: 56px;
  height: 56px;
  float: left;
  margin: 5px 20px 10px 0px;
  /* 上 右 下 左 */
  border-radius: 25%;
}

/* float解除（超重要） */
.app-description::after {
  content: "";
  display: block;
  clear: both;
}

/*右詰め*/
.right {
  text-align: right;
}

/*改行*/
.mb-1em {
  margin-bottom: 1em;
}

.mb-2em {
  margin-bottom: 2em;
}

.mb-3em {
  margin-bottom: 3em;
}

/* ===============スマホ=============== */

@media (max-width: 768px) {
  .layout {
    display: block;
  }

  .side {
    display: none;
  }

  .app-grid {
    gap: 20px 30px;
    margin: 5px;
  }

  .app-name {
    display: block;
    margin-top: 0px;
    font-size: 10px;
    line-height: 1.25;
  }

}