
@charset "utf-8";

/*
  MIHODORI Secret Page CSS
============================== */


/* 全体共通設定 ==================== */

:root {
  --color-cream: #FFF8E8;
  --color-brown: #4A1D0A;
  --color-pink: #FF9FAF;
  --color-yellow: #FFC928;
  --color-mint: #A9E5D0;
}

html {
  font-size: 18px;
  line-height: 1.8;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  background-color: var(--color-cream);
  color: var(--color-brown);
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-cream);
}

/* レスポンシブイメージ */
img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

/* リンク */
a {
  transition: 0.6s;
}

/* 見出し共通 */
h1,
h2,
h3 {
  font-family: "M PLUS Rounded 1c", sans-serif;
  text-align: center;
}

h1 {
  font-size: 40px;
  font-weight: 800;
}

h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

/* 英語・日本語フォント */
.en {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}

.ja {
  font-family: "M PLUS Rounded 1c", sans-serif;
}

/* 本文 */
p {
  font-weight: 400;
}


/* Navigation ==================== */

nav {
  background-color: var(--color-brown);
  text-align: center;
  box-shadow: 0 4px 8px rgb(74 29 10 / 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

nav ul li a {
  display: inline-block;
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding: 10px;
  color: var(--color-cream);
}

nav ul li a:hover {
  color: var(--color-pink);
}

/* 作品ページのTOPナビ */
nav ul li:first-child a[href="index.html"] {
  color: var(--color-yellow);
}


/* Header ==================== */

header {
  background-color: var(--color-cream);
  color: var(--color-brown);
  text-align: center;
}

/* アイキャッチ */
header .eyeCatch {
  background: var(--color-cream);
  color: var(--color-pink);
  padding: 100px 20px;
  text-shadow: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* タイトルとミホドリを横並び */
header .eyeCatch h1:first-child {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
}

/* ミホドリのピンクシルエット */
header .eyeCatch .mihodoriPinkSilhouette {
  width: 80px;
  max-width: 80px;
  height: auto;
  flex-shrink: 0;
}


/* ページの説明 ==================== */

#introduction {
  background-color: var(--color-cream);
  padding: 60px 20px;
  text-align: center;
}

#introduction .innerWrap {
  max-width: 900px;
  margin: 0 auto;
}

#introduction h2 {
  font-size: 28px;
  color: var(--color-brown);
  margin-bottom: 10px;
}

#introduction p {
  font-size: 16px;
  line-height: 2.2;
  color: var(--color-brown);
  margin-bottom: 8px;
}

#introduction p:last-child {
  margin-bottom: 0;
}


/* Main 共通設定 ==================== */

main p {
  margin-bottom: 16px;
}

main > section {
  padding: 60px 20px;
  scroll-margin-top: 40px;
  background-color: var(--color-cream);
}

main section .innerWrap {
  max-width: 1000px;
  margin: 0 auto;
}


/* 共通カード ==================== */

.frame {
  background-color: var(--color-cream);
  border: none;
  box-shadow: none;
  padding: 24px;
  border-radius: 0;
}


/* カラム共通 ==================== */

.column {
  display: grid;
  gap: 40px;
}

.col2 {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.col3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.col4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.col5 {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}


/* Secret Description ==================== */

/* 見出し */
.secretDescription h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-pink);
  text-align: left;
  margin-bottom: 20px;
}

/* 説明文 */
.secretDescription p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.03em;
  color: var(--color-brown);
  text-align: left;
  overflow-wrap: anywhere;
}

/* 各セクションの間隔 */
.secretDescription section {
  margin-bottom: 30px;
}

.secretDescription section:last-child {
  margin-bottom: 0;
}


/* Works ==================== */

/* 外側のカード */
#works .frame {
  background: var(--color-cream);
  border: none;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
  min-height: 200px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* カード全体のリンク */
#works a.frame {
  display: flex;
  text-decoration: none;
  color: var(--color-brown);
}

/* 作品カテゴリーの文字配置 */
#works .worksImage {
  background: none;
  height: auto;
  min-height: 90px;
  border-radius: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;

  text-align: center;
  padding: 0;
  box-sizing: border-box;

  color: var(--color-brown);
  font-family: "Fredoka", sans-serif;
  font-size: 32px;
  font-weight: 700;
}

/* 英語 */
#works .worksImage .en {
  font-size: 28px;
  line-height: 1.3;
}

/* 日本語 */
#works .worksImage .ja {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
}


/* ページトップに戻るボタン ==================== */

#pageTop .pageTopButton {
  text-align: center;
}

#pageTop .pageTopButton a {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 80px;
  height: 80px;
  margin: 0 auto;
  padding: 0;

  background-color: var(--color-yellow);
  border: 3px solid var(--color-brown);
  border-radius: 50%;

  transition: 0.3s;
}

#pageTop .pageTopButton img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#pageTop .pageTopButton a:hover {
  background-color: var(--color-pink);
}

/* ページトップボタンを左下に固定 */
#pageTop {
  position: fixed;
  bottom: 100px;
  left: 60px;
  z-index: 1000;
  padding: 0;
}


/* 画像 ==================== */

#banner img {
  border-radius: 0;
}


/* 最後の挨拶 ==================== */

/* 写真と文章を横並び・上下中央 */
.lastGreeting .column {
  align-items: center;
}

/* 写真 */
.lastGreeting .greetingImage img {
  display: block;
  width: 100%;
  height: auto;
}

/* メッセージ */
.lastGreeting .lastMessage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  text-align: center;
  color: var(--color-pink);
}

/* メッセージの文字 */
.lastGreeting .lastMessage p {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 最後の一文 */
.lastGreeting .lastMessage p:last-child {
  margin-bottom: 0;
  font-size: 30px;
}


/* Footer ==================== */

footer {
  background-color: var(--color-brown);
  color: var(--color-cream);
  text-align: center;
  padding: 30px 0;
}


/* スマートフォン対応 ==================== */

@media screen and (max-width: 600px) {

  h1,
  h2 {
    font-size: 30px;
  }

  header .eyeCatch {
    padding: 40px 20px;
  }

  header .eyeCatch h1:first-child {
    flex-wrap: wrap;
    gap: 12px;
  }

  header .eyeCatch .mihodoriPinkSilhouette {
    width: 60px;
    max-width: 60px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
    padding: 0 10px;
  }

  nav ul li a {
    font-size: 16px;
    padding: 8px;
  }

  main > section {
    padding: 40px 20px;
  }

  .column {
    gap: 24px;
  }

  .col2,
  .col3,
  .col4,
  .col5 {
    grid-template-columns: 1fr;
  }

  #profile img {
    width: 100%;
    max-width: 420px;
  }

  #pageTop {
    left: 20px;
    bottom: 30px;
  }

  #pageTop .pageTopButton a {
    width: 60px;
    height: 60px;
  }

  #pageTop .pageTopButton img {
    width: 30px;
    height: 30px;
  }

  .secretDescription h3 {
    font-size: 21px;
  }
}
