/* 検索と連絡先付きメニュー */
/* Search and contact menu */

.extras-menu {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 16px;
  padding-block-end: 24px;

  .menu-header {
    min-height: 64px;
  }

  .menu-search {
    align-self: start;
  }

  .extras-list {
    align-content: start;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;

    a {
      min-height: 56px;
      font-size: 2rem;
      line-height: 1.1;

      @media (width <= 568px) {
        font-size: 1.75rem;
      }
    }
  }
}

.menu-search {
  display: grid;
  gap: 12px;

  label {
    font-weight: bold;
  }

  input {
    min-height: 48px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    transition:
      background-color 0.2s,
      border-color 0.2s;

    @media (any-hover: hover) {
      &:hover {
        background-color: var(--bg);
        border-color: var(--text);
      }
    }
  }
}

.extras-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block-start: 8px;

  @media (width <= 568px) {
    align-items: stretch;
    flex-direction: column;
  }
}

.extras-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  @media (width <= 568px) {
    grid-template-columns: 1fr;
  }
}

.action-button {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding-inline: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: bold;
  transition:
    background-color 0.2s,
    border-color 0.2s;

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--bg);
      border-color: var(--text);
    }
  }
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  display: grid;
  place-items: center;
  inline-size: 48px;
  block-size: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition:
    background-color 0.2s,
    border-color 0.2s;

  @media (any-hover: hover) {
    &:hover {
      background-color: var(--bg);
      border-color: var(--text);
    }
  }

  img {
    inline-size: 20px;
    block-size: 20px;
  }
}
