html {
    width: 100%;
    height: 100%;
    background-color: #fffdfd;
    margin: 0;
}

body {
    width: 100%;
    min-height: 100%;
    background-color: #fffdfd;
    margin: 0;
    font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
}

header {
    width: 100%;
    height: 44px;
    background-color: #ddd8d8;
    position: fixed;
    top: 0;
    padding: 0;
    margin: 0;
    z-index: 10;
}

nav {
    width: 100%;
    height: 90%;
    position: absolute;
    margin-top: 0%;
}

nav.menu {
    padding: 0px;
}

nav ul {
    list-style-type: none;
    padding-left: 5%;
}

nav li {
    font-size: 14px;
    color: #444444;
    padding: 0px 3px;
    display: inline-block;
}

/* upper nav link for PhotoGallery, TripNote, AboutUS */
nav ul li a {
    color: #888888;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    nav ul li a {
        font-size: 16px;
    }
}

@media screen and (min-width: 900px) {
    nav ul li a {
        font-size: 20px;
    }
}

nav ul li a:hover {
    color: #444444;
}

nav li#logo a {
    margin-right: 10px;
    font-size: 14px;
    color: #666666;
    display: inline-block;
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    nav li#logo a {
        font-size: 18px;
    }
}

@media screen and (min-width: 900px) {
    nav li#logo a {
        font-size: 22px;
    }
}

nav li#logo a:hover {
    color: #333333;
}

nav ul li.lang-switch {
  float: right;
  margin-right: 5%;
}

/* aタグにだけ適用（他のa指定より後ろに書く） */
nav ul li.lang-switch a {
  font-size: 10px;   /* スマホ */
}

/* 600-899px */
@media screen and (min-width: 600px) and (max-width: 899px) {
  nav ul li.lang-switch a {
    font-size: 14px;
  }
}

/* 900px以上 */
@media screen and (min-width: 900px) {
  nav ul li.lang-switch a {
    font-size: 18px;
  }
}

main {
    position: relative;
    margin-top: 40px;
    width: 100%;
    height: 95%;
    overflow: hidden;
    /* to make div non-0 ht */
}

article#page_description {
    margin-top: -5px;
    width: 100%;
    text-align: center;
    color: #444400;
}

article#page_description.trip_note {
    margin-top: 18px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
}

h1 {
    margin-top: 18px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 26px;
    font-weight: bold;
}

@media screen and (min-width: 600px) {
    article#page_description {
        margin-top: -10px;
    }
}

article.trip_note,
article.profile {
    margin-right: 10px;
    margin-left: 10px;
    text-align: left;
    color: #222222;
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    article.trip_note {
        margin: 0px 20px;
    }
}

@media screen and (min-width: 900px) {
    article.trip_note {
        margin: 0px 40px;
    }
}

div#photo_tile {
    width: 100%;
    height: 90%;
    margin-top: -10px;
    overflow: hidden;
}

div#photo_tile_index {
    width: 90%;
    height: 400px;
    margin-left: 5%;
    margin-right: 5%;
}

@media screen and (min-width: 600px) and (max-width: 899px) {
    div#photo_tile_index {
        width: 70%;
        margin-left: 15%;
        margin-right: 15%;
    }
}

@media screen and (min-width: 900px) {
    div#photo_tile_index {
        width: 60%;
        margin-left: 15%;
        margin-right: 15%;
    }
}

/* for smart phone, 2 columns for Gallery_list */

figure.gallery_list {
    float: left;
    width: 50%;
    margin: 0px;
    overflow: hidden;
}

figure.gallery_list_index {
    float: left;
    width: 29%;
    margin: 2%;
    margin-top: 20px;
    overflow: hidden;
}


/* iPad 3 columns for Gallery_list */

@media screen and (min-width: 600px) and (max-width: 899px) {
    figure.gallery_list {
        width: 32.8%;
        margin: 1px;
    }
}


/* 800 px or larger 4 columns for Gallery_list */

@media screen and (min-width: 900px) {
    figure.gallery_list {
        width: 24.7%;
        margin: 1px;
    }
}

img.gallery_list {
    width: 100%;
    height: auto;
}

/* show figcaption in gallery_list */

figcaption.gallery_list {
    position: relative;
    margin-top: -30px;
    width: 100%;
    display: block;
    height: 28px;
    padding: 0px 0px 0px 5px;
    ;
    color: #eee;
    background: #222222;
    /* Fallback color */
    background: rgba(0, 0, 0, .2);
    font-size: 1em;
    font-style: italic;
    text-align: center;
    text-overflow: ellipsis;
}

div#photo_gallery {
    width: 100%;
    height: auto;
    margin: 0px;
    text-align: center;
    overflow: visible;
}

div#photo_gallery_index {
    margin-top: 35px;
}

figure.slides,
figure.gallery_index.slides {
    height: auto;
}


/* iPad portrait screen size */

@media screen and (min-width: 750px) and (max-width: 1024px) and (orientation: portrait) {
    div#photo_gallery {
        width: 100%;
        height: 900px;
        /* height difference for figcaption*/
    }

    figure.slides {
        height: 870px;
    }
}

/* window height increase with media size in landscape */

@media screen and (max-width: 700px) and (orientation: landscape) {
    div#photo_gallery {
        width: 100%;
        height: 380px;
    }

    figure.slides {
        height: 350px;
    }
}

/* window height increase with media size in landscape */

@media screen and (min-width: 700px) and (max-width: 800px) and (orientation: landscape) {
    div#photo_gallery {
        width: 100%;
        height: 430px;
    }

    figure.slides {
        height: 400px;
    }
}

@media screen and (min-width: 800px) and (max-width: 900px) and (orientation: landscape) {
    div#photo_gallery {
        width: 100%;
        height: 630px;
    }

    figure.slides {
        height: 600px;
    }
}

@media screen and (min-width: 900px) and (orientation: landscape) {
    div#photo_gallery {
        width: 100%;
        height: 680px;
    }

    figure.slides {
        height: 650px;
    }
}

/* hide image by default */

figure.slides {
    display: none;
    width: 100%;
    margin: 0px;
    text-align: center;
}

img.gallery {
    object-fit: scale-down;
}

figcaption.gallery {
    position: relative;
    width: 100%;
    display: block;
    height: 30px;
    padding: 0px;
    color: #555555;
    font-size: 1.2em;
    font-style: italic;
    text-align: center;
}

div#arrows {
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 22px;
}

div#arrows_gallery_index {
    width: 100%;
    text-align: center;
}


/* Next & previous buttons */

.prev,
.next {
    position: relative;
    cursor: pointer;
    top: 50%;
    width: 8px;
    height: 35px;
    margin-top: 300px;
    color: #bbb;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    user-select: none;
    padding: 1px;
}

/* On hover, add a black background color with a little bit see-through */

.prev:hover,
.next:hover {
    color: #717171;
}

div#pseudoblock {
    height: 30px;
    width: 100%;
}

/* Fading animation */

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

@keyframes fade {
    from {
        opacity: .4
    }

    to {
        opacity: 1
    }
}

article.trip_note p {
    padding-left: 10px;
    padding-right: 5px;
    margin-top: 2px;
    margin-bottom: 10px;
}

div.trip_note.header {
    font-size: 20px;
    font-weight: bold;
    padding-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    clear: both;
    background-color: #f1efef;
}

div.trip_note.header2 {
    font-size: 20px;
    font-weight: bold;
    padding-left: 10px;
    clear: both;
    margin-top: 5px;
}

table.trip_note {
    font-size: 12pt;
}

th,
td {
    padding-left: 30px;
}

img.trip_note {
    width: 100%;
    margin-bottom: 10px;
}

img.trip_note.left {
    float: left;
    margin-right: 20px;
}

img.trip_note.right {
    float: right;
    margin-left: 20px;
}

/* non-smart phone */

@media screen and (min-width: 600px) {
    img.trip_note {
        margin-top: 3px;
        margin-bottom: 3px;
    }

    img.trip_note.portrait {
        width: 300px;
        height: 400px;
    }

    img.trip_note.portrait_long {
        width: 300px;
        height: 450px;
    }

    img.trip_note.landscape {
        width: 400px;
        height: 300px;
    }

    img.trip_note.landscape_long {
        width: 450px;
        height: 300px;
    }

    img.trip_note.landscape_pano {
        width: 600px;
        height: 300px;
    }

    img.trip_note.square {
        width: 350px;
        height: 350px;
    }

    img.trip_note.square_mini {
        width: 250px;
        height: 250px;
    }
}

ul.trip_note.itinerary {
    list-style-type: none;
}

code {
  font-size: 1em;      /* same as surrounding text */
  line-height: 1.25;
}

pre {
    background-color: #f3ffff;
    border-radius: 10px;
    width: 95%;
    padding: 10px;
    overflow-x: scroll;
    font-size: 0.9em;    /* make block code a bit smaller */
    line-height: 1.35;   /* tighter lines in code block */
    margin: 10px auto;   /* optional: reduce big gaps */
    padding: 10px;       /* keep your existing padding if you like */
}

pre code {
    line-height: 1.35;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace;
    font-size: inherit;
    line-height: inherit;
    white-space: pre;    /* keep formatting */
}

a.gallery_link {
    text-decoration: none;
}

a.gallery_link:visited {
    color: red;
}

footer {
  width: 100%;
  height: 35px;          /* 固定の高さにするのが安定 */
  clear: left;
  background-color: #ddd8d8;
  text-align: right;
  color: #333333;
  font-size: 10px;
  position: fixed;
  left: 0;
  bottom: 0;             /* 3px -> 0 にする */
  z-index: 10;
}

footer p {
  margin: 0;
  padding-right: 5%;
  line-height: 44px;     /* footerの高さと合わせる */
}

article.about_me {
    width: 320px;
    margin: 0 auto;
}

form {
    width: 320px;
    margin: 0 auto;
}

@media screen and (min-width: 600px) {
    form {
        width: 450px;
    }

    article.about_me {
        width: 550px;
    }
}

.item {
    overflow: hidden;
    width: 100%;
    margin-bottom: 20px;
}

.label {
    margin-right: 20px;
    margin-top: 5px;
    width: 50%;
    border-left: solid 3px #ddd8d8;
    padding-left: 5px;
    float: left;
    text-align: left;
}

.inputs {
    width: 90%;
    float: left;
}

@media screen and (min-width: 600px) {
    .label {
        width: 25%;
    }

    .inputs {
        width: 60%;
        float: left;
    }
}

input[type="text"],
input[type="email"] {
    border: solid 1px #aaa;
    border-radius: 5px;
    padding: 10px;
    font-size: 15px;
}

textarea {
    border: solid 1px #aaa;
    border-radius: 5px;
    padding: 10px;
    height: 160px;
    font-size: 15px;
}

.btn-area {
    text-align: center;
}

input[type="submit"] {
    background: #ddd8d8;
    border: none;
    color: #666666;
    font-size: 14px;
    padding: 8px 16px;
    margin: 0 5px;
}

input[type="reset"] {
    background: #ddd8d8;
    border: none;
    color: #666666;
    font-size: 14px;
    padding: 8px 16px;
    margin: 0 5px;
}

div.ss_link {
    width: 98%;
    position: fixed;
    bottom: 30px;
    z-index: 10;
    text-align: right;
}

div.ssn_link {
    text-align: center;
    margin-bottom: 10px;
}

.insta_btn {
    /*ボタンの下地*/
    color: #FFF;
    /*文字・アイコン色*/
    border-radius: 3px;
    /*角丸に*/
    position: relative;
    margin-top: -11px;
    display: inline-block;
    height: 22px;
    /*高さ*/
    width: 120px;
    /*幅*/
    text-align: center;
    /*中身を中央寄せ*/
    font-size: 11px;
    /*文字のサイズ*/
    font-weight: 500;
    line-height: 22px;
    /*高さと合わせる*/
    vertical-align: middle;
    /*垂直中央寄せ*/
    background: -webkit-linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
    background: linear-gradient(135deg, #427eff 0%, #f13f79 70%) no-repeat;
    /*グラデーション①*/
    overflow: hidden;
    /*はみ出た部分を隠す*/
    text-decoration: none;
    /*下線は消す*/
}

.insta_btn:before {
    /*グラデーション②*/
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /*全体を覆う*/
    height: 100%;
    /*全体を覆う*/
    background: -webkit-linear-gradient(15deg, #ffdb2c, rgb(249, 118, 76) 25%, rgba(255, 77, 64, 0) 50%) no-repeat;
    background: linear-gradient(15deg, #ffdb2c, rgb(249, 118, 76) 25%, rgba(255, 77, 64, 0) 50%) no-repeat;
}

.insta_btn .fa-instagram {
    /*アイコン*/
    font-size: 22px;
    /*アイコンサイズ*/
    position: relative;
    top: 5px;
    /*アイコン位置の微調整*/
}

.insta_btn span {
    /*テキスト*/
    display: inline-block;
    position: relative;
    transition: .5s
}

.insta_btn:hover span {
    /*ホバーで一周回転*/
    -webkit-transform: rotateX(360deg);
    -ms-transform: rotateX(360deg);
    transform: rotateX(360deg);
}

