@charset "UTF-8";

/* photo-ggraph内ページ用 追加CSS */

/* body */
.plain {
  background: #FAF7F0;
  min-height: 100vh;
}

/* nav */
header {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 10;
}

/* タイトル */
.page-title {
    position: relative;       /* 相対位置 */
    z-index: 2;               /* 重ね順：基準面より２個上の層 */
    font-size: 1.75rem;
    text-align: center;
    margin: 0 0 150px;
    text-transform: none;     /* テキストの大文字・小文字設定：そのまま（=変換無し） */
}

/* ページレイアウト */
main {
    margin: 120px 0 0;        /* 上100px、左右０、下０ */
    position: relative;       /* 通常の相対位置で配置 */
    padding: 65px 0 120px;    /* 上65px、左右０、下０ */
    background: #FAF7F0;      /* 背景色：白茶 */
}
/* photo-gの親セクション */
section#photo-g .wrap-blk {
    display: flex;            /* flexの初期値：row 横並び（左から右）、nowrap 折り返し無し、flex-start 左揃え、stretch 親要素または一番多い子要素の高さに合わせる。 */
    flex-wrap: wrap;          /* 折り返し：内容を折り返して表示 */
}
/* アイコン */
section#photo-g .page-title h2:before {
    display: block;
    content: url(./images/camera.svg);
}
/* １つ１つの写真を入れるためのコンテナ */
section#photo-g .img-frame {
  /* 縦横固定 */
  width: 50%;            /* 親要素の1/2 */
  height: 550px;              /* 高さ：550px */
  /* 固定した幅からはみ出たものは隠してしまう */
  overflow: hidden;
}

section#photo-g .contents-blk {
  position: relative;         /* 親要素より前面に配置。 */
  width: 100%;                /* 親要素の1/1 */
  height: 100%;               /* 高さ：550px */
  transition: transform 0.6s;
}

section#photo-g .contents-blk:hover {
  transform: scale(1.1);
  transition: all 0.6s;
}


/* モバイル版
------------------------------- */
@media (max-width: 600px) {
  .page-title {
      margin: 0 0 50px;
  }
  main {
      margin: 50px 0 0;        /* 上100px、左右０、下０ */
      padding: 25px 0 120px;    /* 上65px、左右０、下０ */
  }

  header {
    margin: 30px auto 0px;
  }

  /* アイコン非表示 */
  header .page-header h1 {
    display: none;
  }

  /* 各写真を含んだコンテナ */
  section {
    padding: 30px 0 0;
  }
  section#photo-g .img-frame{
    /* 縦横固定 */
    width: 50%;            /* 親要素の1/2 */
    height: 200px;              /* 高さ：550px */
    margin: 0;
    overflow: hidden;
  }

  section#photo-g .contents-blk {
    position: relative;         /* 親要素より前面に配置。 */
    width: 100%;            /* 親要素の1/2 */
    height: 100%;              /* 高さ：550px */
    transition: transform 0.6s;
  }

  section#photo-g .contents-blk:hover {
    transform: scale(1.1);
    transition: all 0.6s;
  }
}
