html {
    height: 100%;
}
body {
    font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
    color: #222;
    background-color: #f4f4f8;
    height: 100%;
}

a {
    color: #2373d6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

h2 {
    font-size: 1.4rem;
    margin: 0 0 .5em 0;
}

.header {
    display: flex;
    justify-content: flex-start;
    /* border-bottom: 1px solid #ddd; */
}
.header .logo img {
    vertical-align: middle;
    width: 25px;
}
.header .logo a,
.header .logo a:hover,
.header .logo a:visited {
    display: block;
    padding: .7rem 1rem;
    color: #000;
    text-decoration: none;
}
.header .logo h1,
.header .logo span {
    display: inline;
    padding: 0 0 0 1rem;
    vertical-align: middle;
    font-size: 1.2rem;
}
.header .logo h1,
.header .logo span {
    padding-left: 0;
    font-size: 1.5rem;
    font-weight: bold;
}
.header-right-nav {
    margin-left: auto;
}
.header-right-nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: table;
    height: 100%;
}
.header-right-nav ul li {
    display: table-cell;
    vertical-align: middle;
    padding-right: .4rem;
}
.header-right-nav a {
    display: block;
    width: 100%;
    color: #000;
    padding: .55rem;
}
.header-right-nav a:hover {
    opacity: 0.7;
    background-color: #f6f6f6;
    text-decoration: none;
}
.header-right-nav a.danger {
    color: red;
}

hr {
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-top: 1px solid #eee;
}

.content {
    padding: 1em;
    max-width: 600px;
    margin: 0 auto;
}
label {
    display: block;
    margin-bottom: .5em;
}
input[type="text"],
input[type="date"],
input[type="password"]
 {
    width: 100%;
    padding: .4em;
    margin-bottom: 1em;
    font-size: 18px;
}
input[type="date"] {
    -webkit-appearance: none;
    min-height: 2.5rem;
}
.btn,
a.btn,
button.btn {
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding: .6rem 2rem;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  /* -webkit-transition: all 0.3s;
  transition: all 0.3s; */
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  letter-spacing: 0.1em;
  color: #fff;
  border-radius: 0.5rem;
  border: none;
  background-color: #000;
}
.btn:hover,
a.btn:hover,
button.btn:hover {
    opacity: 0.7;
}

/* .btn--primary,
a.btn--primary {
  color: #fff;
  background-color: #d6ae6a;
}

.btn--primary:hover,
a.btn--primary:hover {
  color: #fff;
  background: #e7d0a9;
} */

.btn--secondary,
a.btn--secondary,
button.btn--secondary {
    background-color: #999;
}

input:disabled {
    opacity: 0.6;
}

.login h1 {
    font-size: 1.5em;
    text-align: center;
    margin-bottom: 2rem;
}
.login input[type="submit"] {
    margin: 1em auto 2em auto;
}

header h1 {
    font-size: 1em;
    text-align: center;
    margin: 0;
    padding: 0.67em 0;
}
.header-left {
    position: absolute;
    margin-top: -2.1em;
    margin-left: .2em;
}
.header-left a {
    text-decoration: none;
    color: #a78447;
}
.header-right {
    position: relative;
    float: right;
    margin-top: -2.1em;
    margin-right: 1em;
}
.header-right a {
    text-decoration: none;
    color: #a78447;
    display: block;
    float: left;
    padding-left: 1em;
}

ul.shopping-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 4em 0;
}
ul.shopping-list li {
    /* border-bottom: 1px solid #eee; */
    margin-bottom: .5em;
}
ul.shopping-list li:first-child .shopping-list-item {
    padding-top: 0;
}
ul.shopping-list li a {
    display: block;
    text-decoration: none;
    background-color: #fff;
    padding: 1em;
    border-radius: 10px;
}
ul.shopping-list li a:hover {
    background-color: #ccc;
}
.shopping-list-item {
    display: flex;
    padding: 0;
    margin-bottom: .1em;
}
.shopping-list-title {
    flex: 1;
    font-size: 1.1em;
}
.shopping-list-title h2 {
    font-size: 1em;
    font-weight: normal;
    margin-bottom: .2em;
    padding-right: 1em;
    color: #222;
}
.shopping-list-title p {
    font-size: .8em;
    margin: 0;
    padding-right: 1em;
    color: #666;
}
.shopping-list-menu:hover {
    background-color: #f6f6f6;
    cursor: pointer;
}
.fixed-button {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 1em;
}
.btn--create {
    /* padding: .5rem 1rem !important; */
    float: right;
    /* margin: 0; */
}

.placeholder {
    color: #999;
}

ul.shopping-list-items {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1em 0;
    background-color: #fff;
    padding: 1em;
    border-radius: 10px;
}
.shopping-list-checkbox {
    width: 2em;
    padding-top: .2em;
}
.shopping-list-checkbox > input[type=checkbox] {
    transform: scale(1.5);
    margin: 0 0 0 6px;
}
.shopping-list-input {
    flex: 1;
    line-height: 1;
}
.shopping-item {
    border: none;
    margin: 0 !important;
}
textarea {
    width: 100%;
    font-size: 16px;
}

.dropdown {
    margin: 0 0 0 auto;
    position: relative;
}
.dropdown__btn {
    display: block;
    width: 1.5em;
    padding: 0.2em;
    background: none;
    border: 0;
    color: #2373d6;
}
.dropdown__header {
    width: auto;
    padding: 0;
}
.dropdown__btn.is-open::after {
    content: "";
    width: 100%;
    height: 100%;
    cursor: default;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 4;
}
.dropdown__btn.is-open + .dropdown__body {
    display: block;
    z-index: 5;
}
.dropdown__body {
    display: none;
    min-width: 110px;
    background: #fff;
    box-shadow: 0 2px 6px 2px rgba(60,64,67,0.149), 0 1px 2px 0 rgba(60,64,67,0.302);
    border-radius: 4px;
    overflow: hidden;
    position: absolute;
    top: 50px;
    /* left: -110px; */
    right: 10px;
}
ul.dropdown__list {
    margin: 0;
    padding: 0;
    display: block;
}
ul.dropdown__list li {
    display: block;
    border-bottom: 1px solid #eee;
    margin-bottom: 0;
    padding-right: 0;
}
.dropdown__item a {
    float: none;
    /* color: #212529; */
}
.dropdown__item-link {
    display: block;
    padding: 1em 1.2em;
    font-size: 0.95em;
    text-decoration: none;
    /* color: #444; */
}
.dropdown__item-link:hover {
    background: #f6f6f6;
}
.link-delete {
    color: red;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}
.modal-content {
    background-color: #fff;
    margin: 20% auto;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.17);
    animation-name: modalopen;
    animation-duration: .1s;
}
.modal-center {
    margin-top: 40vh;
}
.modal-image {
    background-color: rgba(0,0,0,0.9);
}
.modal-content-image {
    /* background-color: #fff; */
    margin: auto;
    width: 100%;
    /* box-shadow: 0 5px 8px 0 rgba(0,0,0,0.2),0 7px 20px 0 rgba(0,0,0,0.17); */
    animation-name: modalopen;
    animation-duration: .1s;
}
@keyframes modalopen {
    from {opacity: 0}
    to {opacity: 1}
}
.modal-header h1 {
    margin: 1rem 0;
}
.modal-header {
    padding: 0 1em;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #ddd;
}
.modalClose {
    font-size: 2rem;
}
.modalClose:hover {
    cursor: pointer;
}
.modal-body {
    padding: 10px 20px;
    color: black;
}

.center {
    text-align: center;
}

.right {
    text-align: right;
}

.block {
    display: block;
}

.margin-auto {
    margin: 0 auto;
}

.shopping-title {
    /* margin-top: .5em; */
}

.shopping-memo {
    margin: .5em 0;
    box-sizing: border-box;
    padding: 2px;
}

.shopping-item-textarea {
    font-family: inherit;
    width: 100%;
    height: 1.8em;
    resize: none;
    border: none;
    /* font-size: 18px; */
    overflow: hidden;
    padding: .2em;
}
.shopping-item-textarea:disabled {
    background-color: white;
    color: #222;
    -webkit-text-fill-color: #222;
    opacity: 1; /* required on iOS */
}

ul.share-users {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1em 0;
}
ul.share-users li:first-child {
    border-top: 1px solid #ddd;
}
ul.share-users li {
    border-bottom: 1px solid #ddd;
}
.share-user {
    display: flex;
    padding: 0;
    margin-bottom: .1em;
}
.share-user p:first-child {
    flex: 1;
}
.share-user p:nth-child(2) {
    width: 1em;
}

.width-100 {
    width: 100%;
}
button.btn-danger {
    background-color: rgb(184, 0, 0);
}

ul.profile-list {
    list-style-type: none;
    padding: 0;
    margin: 0 0 1em 0;
}
ul.profile-list a {
    display: block;
    text-decoration: none;
    /* padding-bottom: 1rem; */
    color: #222;
}
ul.profile-list a:hover {
    text-decoration: underline;
}
ul.profile-list h3 {
    font-size: 1rem;
    margin-bottom: 0;
}
.profile-item {
    display: flex;
    padding: 0;
    margin-bottom: .1em;
}
.profile-item p {
    margin-top: .5em;
    margin-bottom: 0;
    padding-bottom: .5em;
}
.profile-item p:first-child {
    flex: 1;
}
.profile-item p:nth-child(2) {
    width: 1em;
}

#loading {
    width: 100vw;
    height: calc(100vh - 63px);
    /* transition: all 1s; */
    background-color: #f4f4f8;
    display: none;
    position: fixed;
    top: 53px;
    left: 0;
    z-index: 9999;
}
/* .spinner {
    width: 50px;
    height: 50px;
    margin: auto;
    background-color: #ccc;
    border-radius: 100%;
    animation: sk-scaleout 1.0s infinite ease-in-out;
} */
/* ローディングアニメーション */
/* @keyframes sk-scaleout {
    0% {
        transform: scale(0);
    } 100% {
        transform: scale(1.0);
        opacity: 0;
    }
} */

#home-loading {
    width: 100vw;
    height: 100vh;
    transition: all 1s;
    background-color: #f4f4f8;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
}
.home-spinner {
    width: 50px;
    height: 50px;
    margin: auto;
    background-color: #ccc;
    border-radius: 100%;
    animation: home-sk-scaleout 1.0s infinite ease-in-out;
}
/* ローディングアニメーション */
@keyframes home-sk-scaleout {
    0% {
        transform: scale(0);
    } 100% {
        transform: scale(1.0);
        opacity: 0;
    }
}


.error-message {
    color: red;
}

p.app-list {
    background-color: #fff;
    padding: 1em;
    border-radius: 10px;
}

.ul-text {
    padding-left: 1.2em;
}

#photo-container {
    display: flex;
    flex-wrap: wrap;
}
#photo-container .photo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30vw;
    height: 30vw;
    padding: 1px;
}
@media (orientation: landscape) {
    #photo-container .photo-item {
        width: 19vw;
        height: 19vw;
    }
}
#photo-container .photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}
#photo-container .photo-item a {
    display:table-cell;
    vertical-align:middle;
    text-align: center;
    padding: 2em;
}

.hscroll {
	width:100%;
	height:100%;
	position:relative;
	/* border:1px solid lightgray; */
}
.hscroll ul {
	padding:0;
	margin:0;
	width:100%;
	height:100%;
	overflow:hidden;
	white-space:nowrap;
	scroll-snap-type:x mandatory;
	scroll-behavior:smooth;
}
.hscroll img {
	width:100%;
	height:100%;
	object-fit:contain;
}
.hscroll li {
	list-style:none;
	display:inline-block;
	scroll-snap-align:center;
	width:100%;
	height:100%;
}
.arrow {
	top:0;
	position:absolute;
	width:8%;
	height:100%;
	/* background:rgba(255,255,255,0.3); */
	cursor:pointer;
}
.arrow:before {
	content:'';
	position:absolute;
	width:10px;
	height:10px;
	border-left:2px solid gray;
	border-bottom:2px solid gray;
}
.slide-left {
	left:0px;
}
.slide-left:before {
	top:calc(50% - 10px);
	left:calc(50% - 4px);
	transform:rotate(45deg);
}
.slide-right {
	right:0;
}
.slide-right:before {
	top:calc(50% - 10px);
	right:calc(50% - 6px);
	transform:rotate(-135deg);
}
@media screen and (max-width:480px) {
	.hscroll ul {
		overflow-x:auto;
	}
}

.slide-btn {
    padding: 1rem;
    color: white;
}
a.danger {
    color: red;
}
.slide-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.fadein {
    animation: fadeIn 1s ease 0s 1 normal;
    -webkit-animation: fadeIn 1s ease 0s 1 normal;
}
@keyframes fadeIn {
    0% {opacity: 0} /* 始め */
    100% {opacity: 1} /* 終わり */
}

/* アニメーション定義 */
@keyframes skeleton-animation {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
   
.skelton {
position: relative;
overflow: hidden;
background-color: #eee;
}

.skelton::before {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 100;
content: "";
display: block;
background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.4),
    rgba(255, 255, 255, 0)
);
animation: skeleton-animation 1.2s linear infinite;
}

footer {
    text-align: center;
    position: sticky;
    top: 100vh;
    width: 100%;
    padding-bottom: 1rem;
}
footer a {
    color: #666;
    font-size: .9rem;
}

.rotate90 {
    transform: rotate(90deg);
}

#list-sort-complete {
    display: none;
    padding: .86rem;
}

.memo-menu {
    display: flex;
    justify-content: flex-end;
}
.memo-menu a {
    padding-left: .5rem;
}
#ul-memo-menu {
    list-style-type: none;
    padding-left: 0;
}
#ul-memo-menu li {
    margin-bottom: .5rem;
}
.memo-menu-item {
    padding: .8rem;
    border: 1px solid #aaa;
    border-radius: 8px;
}
.memo-menu-item:hover {
    background-color: #f6f6f6;
}
.meno-menu-option {
    display: flex;
    justify-content: flex-end;
}
.meno-menu-option a {
    display: block;
    padding-left: .5rem;
}

.modal-list{
    list-style-type: none;
    padding-left: 0;
}
.modal-list li {
    margin-bottom: 0.5rem;
}
.modal-list li a {
    padding: 0.8rem;
    display: block;
    height: 100%;
    width: 100%;
    color: black;
    border: 1px solid #aaa;
    border-radius: 8px;
    text-decoration: none;
}
.modal-list li a:hover {
    background-color: #f6f6f6;
}

.template-detail-content {
    padding-bottom: 4rem;
}
.fixed-bottom {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    background-color: #f4f4f8;
}

.alert {
    border: 1px solid rgb(210, 122, 122);
    background-color: rgb(255, 220, 220);
    border-radius: 4px;
    padding: .2rem 1rem;
    margin-bottom: 1rem;
}
.info {
    border: 1px solid rgb(122, 179, 210);
    background-color: rgb(220, 243, 255);
    border-radius: 4px;
    padding: .2rem 1rem;
    margin-bottom: 1rem;
}

dt {
    float: left;
    clear: left;
    width: 40%;
    border-left: 1px solid #999999;
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    padding: 0.5rem;
}
dt:first-child,
dt:first-child + dd {
    border-top: 1px solid #999999;
}
dd {
    float: left;
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    width: 60%;
    margin: 0;
    padding: 0.5rem;
}
.clearfix:after {
    content: "";
    display: block;
    clear: both;
    height: 0;
    visibility: hidden;
}