@charset "utf-8";

/* トップページの並べ方。共通の見た目は site.css
   今のトップページと同じく、サイトの幅（800px）の右に写真を置き、左に名前とメニューの行を重ねる。下は 1 列 */

.hero {
  position: relative;
  max-width: var(--site-width);
  min-height: 600px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* 写真はサイトの幅より広くし、右の端から 32px 内側に置いて、福原さんをメニューに近づける。
   サイトの幅からはみ出た左の部分は切る。左と下は黒に溶かす */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 32px;
  bottom: 0;
  aspect-ratio: 524 / 349;
  background:
    linear-gradient(to right, #000 15%, rgba(0, 0, 0, 0) 50%),
    linear-gradient(to left, #000 0%, rgba(0, 0, 0, 0) 12%),
    linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0) 10%),
    linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 25%),
    url(../img/top/head_bg.jpg) no-repeat center / cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 0 24px 32px;
}

.site-name {
  margin-bottom: 18px;
  font-size: 3.6rem;
  color: var(--orange-light);
  text-shadow: 0 2px 10px #000;
}

/* スマートフォンの幅: 写真を上に置いて名前を重ね、メニューの行を写真のすぐ下から始める */
@media (max-width: 600px) {
  .hero {
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
  }

  .hero::after {
    content: none;
  }

  .hero::before {
    content: "";
    display: block;
    aspect-ratio: 524 / 349;
    background:
      linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 45%),
      linear-gradient(to right, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 60%),
      url(../img/top/head_bg.jpg) no-repeat center / cover;
  }

  .hero-inner {
    width: 100%;
    margin-top: -128px;
    padding: 0 16px 16px;
  }

  .site-name {
    font-size: 2.6rem;
    margin-bottom: 12px;
  }
}
