﻿@charset "UTF-8";
body {
  background-color: #cc9999;
}
a img {
  border: none;
}
h1 {
  width: 720px;
  margin: 2em auto 50px auto;
  padding: 0;
  font-size: 200%;
}

@font-face {
  font-family: 'HG丸ｺﾞｼｯｸM-PRO';
}

ul#polaroids {
  list-style-type: none;
  margin: 0 auto;
  padding: 0;
  width: 360px;
  /*width: 720px;*/
}

ul#polaroids li a {
  position: relative;
  float: left;
  padding: 10px 10px 20px;
  background-color: white;

  -moz-box-shadow: 0 4px 10px #333;
  -webkit-box-shadow: 0 4px 10px #333;
  box-shadow: 0 4px 10px #333;

  -webkit-transform: rotate(5deg);
  -moz-transform: rotate(5deg);
  transform: rotate(5deg);

  width: 100px;
  text-decoration: none;
  text-align: center;
}

ul#polaroids li:nth-child(3n) a {
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  transform: rotate(-10deg);
  position: relative;
  top: -5px;
  left: 50px;
}
ul#polaroids li:nth-child(3n+1) a {
  -webkit-transform: rotate(-10deg);
  -moz-transform: rotate(-10deg);
  transform: rotate(-10deg);
  position: relative;
  top: -5px;
  left: 50px;
}
ul#polaroids li:nth-child(3n+2) a {
  -webkit-transform: rotate(10deg);
  -moz-transform: rotate(10deg);
  transform: rotate(10deg);
  position: relative;
  top: -10px;
  left: 50px;
}
/*ul#polaroids li:nth-child(4) a {
  position: relative;
  top: -10px;
  left: 10px;
}*/
ul#polaroids li a img {
  width: 100px;
  height: 80px;
/*  width: 200px;
  height: 160px;*/
  margin-bottom: 10px;
}
ul#polaroids a:after {
  content: attr(title);
  font-family: 'HG丸ｺﾞｼｯｸM-PRO', sans-serif;
  color: #333;
}

ul#polaroids li a:hover {
  -webkit-transform: scale(1.25);
  -moz-transform: scale(1.25);
  transform: scale(1.25);
  z-index: 6;
}













/* ------- スマートフォン用 ---------- */
@media (max-width: 767px) {
/*@media (max-width: 480px) {*/

@charset "UTF-8";
@font-face {
  font-family: 'Hina2ndGrade';
  src: url('../font/Hina2ndGrade.woff');
}
body {
  background-color: #eee;
}
ul{
  padding-left:0;
}

li{
  list-style:none;
}
a img {
  border: none;
}
h1 {
  text-align: center;
  margin-bottom: 50px;
  padding: 0;
  font-size: 100%;
}

.polaroids a img {
  width: 200px;
  height: 200px;
}

.polaroids {
  position: relative;  /* 基点を設定 */
  margin: 0 auto;
  width: 220px;
}
.polaroids a {
  display: block;
  width: 200px;
  height: 200px;
  padding: 10px 10px 30px; /*上 左右 下のパディング */
  margin: 0 auto;
  background: white;
  -moz-box-shadow: 0 4px 10px #333; /* ボックスシャドー */
  -webkit-box-shadow: 0 4px 10px #333;
  box-shadow: 0 4px 10px #333;

  /* -webkit-transform: rotate(5deg);*/ /* 回転 */
  /*-moz-transform: rotate(5deg);
  transform: rotate(5deg);*/
  z-index: 1;
}
ul#polaroids a:after {
  content: attr(title);
  font-family: 'Hina2ndGrade', sans-serif;
  color: #333;
}

.polaroids h2 {
  margin: 0;
  padding: 10px;
  background-color: rgba(255, 255, 240, 0.8); /* 透明度80%で指定 */
  position: absolute; /* 親要素を基点に配置 */
  top: -20px;
  left: -10px;
  font-size: 100%;
  font-family: 'Hina2ndGrade'; /* webフォントを使用 */
  -moz-box-shadow: 0 2px 4px #666; /* ボックスシャドー */
  -webkit-box-shadow: 0 2px 4px #666;
  box-shadow: 0 2px 4px #666;
  /*-webkit-transform: rotate(-3deg);*/ /* 回転 */
  /*-moz-transform: rotate(-3deg);
  transform: rotate(-3deg);*/
  z-index: 2;
}

}

/*
  ul#polaroids li a {
    position: relative;
    float: left;
    padding: 5px 5px 1px;
    background-color: white;

    -moz-box-shadow: 0 4px 10px #333;
    -webkit-box-shadow: 0 4px 10px #333;
    box-shadow: 0 4px 10px #333;

    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    width: 60px;
    text-decoration: none;
    text-align: center;
  }

  ul#polaroids li:nth-child(1) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 0px;
  }
  ul#polaroids li:nth-child(2) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 180px;
  }
  ul#polaroids li:nth-child(3) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 360px;
  }

  ul#polaroids li:nth-child(4) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 0px;
  }

  ul#polaroids li:nth-child(5) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 0px;
  }

  ul#polaroids li:nth-child(6) a {
    -webkit-transform: rotate(5deg);
    -moz-transform: rotate(5deg);
    transform: rotate(5deg);
    position: relative;
    top: 0px;
  }


  ul#polaroids li a img {
    width: 60px;
    height: 40px;
    margin-bottom: 1px;
  }
  ul#polaroids a:after {
    content: attr(title);
    font-family: 'HG丸ｺﾞｼｯｸM-PRO', sans-serif;
    color: #333;
    font-size: 6pt
  }

  ul#polaroids li a:hover {
    -webkit-transform: scale(4.25);
    -moz-transform: scale(4.25);
    transform: scale(4.25);
    z-index: 6;
  }
}

*/
