@charset "utf-8";

:root {
  /* 基本色の赤色を変数として定義しておく */
  --custom-red_1: rgb(255, 30, 0);
  --custom-red_2:rgb(237, 91, 71);
  --custom-red_2_t:rgba(237, 91, 71, 0.8);
  --custom-red_3:rgb(248, 167, 156);
  --custom-red_3_t:rgba(248, 167, 156, 0.8); /* 少し透明 */
  --custom-red_4:rgb(244, 224, 221);
  --custom-red_4_t:rgba(244, 224, 221, 0.8); /* 少し透明 */
  --title-bg: linear-gradient(to bottom, var(--custom-red_1), var(--custom-red_2));
  --title-bg2: linear-gradient(to bottom, var(--custom-red_2), var(--custom-red_3));
  --title-bg2_t: linear-gradient(to bottom, var(--custom-red_2_t), var(--custom-red_3_t)); /* 少し透明 */
  --record-bg: linear-gradient(to bottom, var(--custom-red_3), var(--custom-red_4));
  --record-bg_t: linear-gradient(to bottom, var(--custom-red_3_t), var(--custom-red_4_t)); /* 少し透明 */
  --container-col: #e4f6f4;
  --container-col2: #ebe6e5;
}


/* 全体 */
body {
  all: unset;
  background: white;
  font-family: Arial, Helvetica, sans-serif; 
}

.container {
  background: var(--container-col2);
  width: 375px;
  margin: 0 auto;
  box-sizing: border-box;
}


/* タイトル部分 */
.title_div {
  height: 72px;
  display: flex;
  align-items: center;
  background: var(--title-bg);
  padding: 8px 12px 4px;

  /* position:relativeが指定されていない場合、overflow:hiddenが効かない */
  position: relative;
  overflow: hidden;
}

.logo_div {
  margin-left: 8px;
  text-align: center;
}

.logo_img {
  width: 12%;
}

h1 {
  margin: 0;
  font-size: 24px;
  color: white;
  text-shadow:1px 1px 0 var(--custom-red_1), 2px 2px 0 white;
}

p {
  margin: 0;
  font-size: 12px;
}

.user_name {
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 1;
}

.user_name p {
  font-size: 10px;
}

.white {
  color: white;
  font-size: 14px;
  margin-right: 2px;
}

a {
  color: white;
  font-size: 12px;
  text-decoration: none;
  margin-top: auto;
}

.hamburger_menu {
  width: 30px;
  height: 30px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.line {
  width: 100%;
  height: 2px;
  background: #000;
  border-radius: 1px;
  opacity: .8;
}

.l1 {
  transition: all .3s;
}

.l2 {
  transition: all .3s .1s;
}

.l3 {
  transition: all .3s .2s;
}

.hamburger_menu.open .line {
  transform: translateX(-100%);
}

.menu_close {
  font-size: 28px;
  position: absolute;
  transform: scale(0);
  opacity: 0;
}

.hamburger_menu.open .menu_close {
  /* アニメーションの最後の状態で停止するforwards */
  animation: btnClose_show .4s .2s forwards;
}

@keyframes btnClose_show {
  50% {
    transform: scale(1.3);
  }
  100% {
    opacity: .8;
    transform: scale(1);
  }
}

.map {
  width: 20%;
  filter: grayscale(100%) brightness(500%);
  opacity: .2;
  position: absolute;
  top: 5px;
  right: 50px;
}


/* navi部分 */
nav {
  padding: 16px 16px 0;
  border-bottom: 1px #000 solid;
  position: relative;
  overflow: hidden;
}

.sub_menu_bg {
  width: 375px;
  height: 100%;
  background: rgb(0, 0, 0, .7);
  position: absolute;
  z-index: 1;
  pointer-events: none;
  opacity: 0;

  transition: all .5s;
}

.sub_menu_bg.open {
  pointer-events: fill;
  opacity: 1;
}

.sub_menu {
  width: 200px;
  height: 128px;
  padding: 16px;
  background: var(--title-bg2);
  border: #000 2px solid;
  box-shadow: #222 5px 5px 10px;
  opacity: .9;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(256px);
  opacity: 0;

  transition: all .5s;
}

.sub_menu.open {
  transform: translateX(0);
  opacity: .9;
}

.sub_menu p,
.sub_menu a {
  font-size: 16px;
}

.sub_menu .white {
  font-size: 20px;
}

.category {
  all: unset;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 8px;
}

.btnCategory {
  width: calc((100% - 24px) / 4);
  background: white;
  padding: 4px 4px 0;
  text-align: center;
  box-sizing: border-box;
  border: 1px #000 solid;
  box-shadow: #000 2px 2px;
  cursor: pointer;
}

.push:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.selected_category {
  color: white;
  background: var(--custom-red_1);
}

.cateIcon {
  margin: 0 auto;
  width: 60%;
  vertical-align: bottom;
  user-select: none;
  /* クリックに反応しないようにしておく */
  pointer-events: none;
}

/* 選択されたカテゴリーボタンのアイコン画像を白にする */
.selected_category .cateIcon {
  filter: grayscale(100%) brightness(500%);
}

.btnCategory p {
  user-select: none;
  /* クリックに反応しないようにしておく */
  pointer-events: none;
}


/* ソート関連 */
.sort_search {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin: 16px auto 0;
  font-size: 14px;
  align-items: center;
}

.sortBtn_div {
  border: 1px #000 solid;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  gap: 8px;
}

.searchBtn_div button {
  position: relative;
  top: 5px;
  margin-left: 4px;
}

.sort_search p {
  display: block;
  width: 36px;
  line-height: 0.8;
  text-align: center;
  background: var(--container-col2);
  margin: 0 auto;
  padding: 0 4px;
  position: relative;
  top: 5px;
}

button {
  background: white;
  height: 24px;
  color: #000;
  font-size: 14px;
  padding: 0 8px;
  border: 1px #000 solid;
  box-shadow: #000 2px 2px;
  user-select: none;
  cursor: pointer;
}

/* セレクタにクラス名を直結させて書く（このクラスが付加された要素を指定） */
button.selected_sort {
  color: white;
  background: var(--custom-red_1);
}

#search_quit:disabled {
  color: #aaa;
  border: 1px #aaa solid;
  box-shadow: #aaa 2px 2px;
  pointer-events: none;
}


/* メイン部分 */
main {
  padding: 0 0 8px;
  position: relative;
}

#btnAdd {
  display: block;
  margin: 16px auto 24px;
  width: calc(100% - 32px) ;
  height: 40px;
  background: var(--title-bg);
  color: white;
  text-shadow: #000 1px 1px;
}

.records {
  all: unset;
  list-style: none;
}

.records_li {
  padding: 0 16px 16px;
  opacity: 0;
  overflow: hidden;
  transform: translateY(40px);
  /* ふわっとフェードインするアニメーション */
  transition: opacity 1.5s, transform 1s;
}

.records_li.active {
  opacity: 1;
  transform: translateY(0px);
}

/* インデックス表示 */
.record_index {
  background: white;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
  overflow: hidden;
  border: var(--custom-red_1) 2px solid;
  box-shadow: var(--custom-red_1) 2px 2px;
  box-shadow: var(--custom-red_1) 2px 2px, #444 5px 5px 10px;
  position: relative;
  z-index: 1;

  transition: all .5s;
}

.records_li.open .record_index {
  background: var(--custom-red_1);
  padding: 0 8px;
}

.index_info {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;

  transition: all .5s ease-in;
}

.records_li.open .index_info {
  transform: translateX(-100%);
  opacity: 0;
}

.miniIcon {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.record_index p {
  height: 20px;
  padding-top: 2px;
  overflow: scroll;
  border-bottom: 1px solid var(--custom-red_1);
}

.index_name {
  flex: 2;
}

.index_category {
  display: none;
}

.index_area {
  flex: 1;
}

.index_score {
  width: 24px;
  text-align: center;
}

.thumbnail {
  width: 24px;
  height: 24px;
  object-fit: cover;
  background: #eee;
}

.record_index small {
  display: block;
  color: white;
  position: absolute;
  left: 60px;
  opacity: 0;
}

.records_li.open small {
  left: 12px;
  opacity: 1;

  transition: all .5s .5s;
}

.btnRecordOpen {
  width: 16px;
  height: 16px;
  margin-left: auto;
  cursor: pointer;

  transition: all .5s;
}

.records_li.open .btnRecordOpen {
  filter: grayscale(100%) brightness(500%);
  transform: rotate(180deg);
}

/* レコード表示 */
.record_wrap {
  max-height: 0px;

  transition: all .5s;
}

.records_li.open .record_wrap {
  max-height: 2000px;
}

.record_wrap form {
  background: url(../images/layout/note_border.jpg);
  position: relative;
  opacity: 0;
  transform: translateY(-500px);

  transition: all .5s;
}

.records_li.open form {
  opacity: 1;
  transform: translateY(0px);
}

.record_base {
  background: var(--record-bg_t); /* 半透明なグラデで下の画像を透過 */
  border: var(--custom-red_1) 2px solid;
  border-top: none;
  box-sizing: border-box;
  box-shadow: var(--custom-red_1) 2px 2px, #444 5px 5px 10px;
  padding: 12px 16px;
  position: relative;
  overflow: hidden;
}

.record_base p {
  background: white;
  padding: 10px 8px 8px;
  font-size: 14px;
  border: var(--custom-red_1) 1px solid;
  box-shadow: var(--custom-red_1) 2px 2px;
}

.flex_div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.flex_item {
  margin: 4px 0 0;
}

h3 {
  margin: 0 0 4px;
  font-size: 14px;
}

.flex_div p {
  height: 16px;
  margin: 0;
  line-height: 16px;
  overflow: scroll;
  /* white-space: nowrap; */
  /* text-overflow: ellipsis; */
}

.flex_item.tenmei {
  min-width: calc((100% - 8px) / 2);
  flex: 1;
}

.flex_item.sel_category {
  max-width: calc((100% - 8px) / 2);
}

.flex_item.area {
  flex: 1;
}

.flex_item.address {
  width: 100%;
  display: flex;
  gap: 8px;
}

.flex_item.address p {
  flex: 1;
}

.flex_item.comment {
  flex: 1;
  margin-bottom: 16px;
}

.flex_item.comment p {
  height: auto;
  line-height: 1.5;
  
  /* textareaで保存した改行をpに反映する */
  white-space: pre-wrap;
}

.space_div {
  width: 100%;
}


/* 写真 */
.picture_div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picture_div div {
  width: calc((100% - 8px) / 2);
  height: 160px;
  text-align: center;
  margin: 0 0 20px;
}

.picture_div p {
  font-size: 12px;
  padding: 4px 8px;
  height: 18px;
  overflow: scroll;
}

.picture {
  width: 100%;
  height: 90%;
  object-fit: cover; /* 画像を枠内にトリミングして収める */
  cursor: pointer;
}


/* 編集・データコピーのボタン */
.btn_div {
  width: 90%;
  margin: 24px auto 0;
  text-align: center;
  display: flex;
  gap: 16px;
  font-size: 12px;
  font-weight: bold;
}

.btnEdit,
.btnCopy {
  all: unset;
  flex: 1;
  cursor: pointer;
  font-size: 14px;
}

.btnEdit:active,
.btnCopy:active {
  color: var(--custom-red_1);
}


/* 検索 */
#search_div {
  width: 360px;
  height: 120px;
  box-sizing: border-box;
  background: var(--record-bg);
  border: 1px var(--custom-red_1) solid;
  box-shadow: var(--custom-red_1) 2px 2px, #000 5px 5px 10px;
  margin: 0 auto;
  padding: 8px;
  text-align: center;
  position: fixed;
  top: 170px;
  left: calc((100% - 360px) / 2);
  z-index: 2;
  opacity: 0;
  pointer-events: none;

  transition: all .5s;
}

#search_div.show {
  transform: translateY(-20px);
  opacity: 1;
  pointer-events: auto;
}

#search_bg {
  width: 100%;
  height: 100%;
  background: #000;
  position: fixed;
  top: 0px;
  left: 0px;
  z-index: 1;
  opacity: 0;
}

#search_div div {
  margin: 4px 0 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

#search_div > p {
  font-size: 14px;
}

#search_txt {
  width: 240px;
  margin: 4px 0 8px;
}

#search_clear {
  font-size: 20px;
  display: inline-block;
  cursor: pointer;

  /* 少し高かったので、相対位置にして下に下げた（親要素は特にイジらず） */
  position: relative;
  top: 4px;
}

#hitCount {
  margin: 16px 0 8px;
  text-align: center;
}

.hit {
  color: var(--custom-red_1);
  font-weight: bold;
}


/* トップに戻るボタン */
.toTop_div {
  position: fixed;
  bottom: 12px;
  right: 16px;
  width: 80px;
  height: 48px;
  z-index: 2;
  background: var(--custom-red_1);
  text-align: center;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  font-size: 14px;
  box-shadow: #444 5px 5px 10px;
  opacity: 0;
  pointer-events: none;

  transition: all .5s;
}

.toTop_div.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-20px);
}

#btnPagetop {
  margin: 0 auto;
  color: white;
  cursor: pointer;
}


/* ログイン失敗時 */
.loginErr_div a {
  font-size: 16px;
}


/* フッター */
footer {
  background: var(--title-bg);
  color: white;
  padding: 16px 32px;
  text-align: center;
}


/* 写真カルーセル */
.carousel {
  width: 375px;
  background: var(--container-col2);
  position: fixed;
  top: 0;
  left: calc((100% - 375px) / 2);
  z-index: 4;

  transition: all .5s;
}

.carousel.hidden {
  transform: translateX(375px);
  opacity: 0;
  pointer-events: none;
}

.carousel_bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .7;
}

.carousel_bg.hidden {
  display: none;
}

.showPic_area {
  width: 90%;
  height: 540px;
  margin: 4px auto;
  background: #000;
  border: 1px #fff solid;
  box-shadow: #444 5px 5px 10px;
  position: relative;
  overflow: hidden;
}

.showPic_area ul {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;

  transition: transform .3s;
}

.showPic_area li {
  height: 100%;
  min-width: 100%; /* ←min-widthを使えば、flexで横に縮む設定を打ち消せる */
}

.showPic_area img {
  width: 100%;
  height: 100%;
  object-fit:contain;
}

.olText {
  width: 100%;
  overflow: scroll;
  position: absolute;
  bottom: 20px;
  left: 10px;
  color: white;
  font-size: 18px;
  text-shadow: #000 0 0 10px;
  
  transform: translateX(100px);
  opacity: 0;
}

.olText.move {
  transform: translateX(0);
  opacity: 1;

  transition: all .7s;
}

.btnNav_div {
  padding: 0 0 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.btnPrevPic,
.btnNextPic {
  all: unset;
  display: block;
  background: white;
  height: 24px;
  padding: 0 16px;
  box-sizing: border-box;
  border: 1px #000 solid;
  box-shadow: #000 2px 2px;
  cursor: pointer;
}

.btnPrevPic:active,
.btnNextPic:active {
  background: var(--custom-red_1);
  color: white;
}

.hiddenPNbtn {
  visibility: hidden;
}

.btnDots_div {
  text-align: center;
  margin: 8px 0;
}

.btnDots_div button {
  all: unset;
  border: none;
  width: 14px;
  height: 14px;
  cursor: pointer;
  background: white;
  border-radius: 50%;
  box-shadow: #444 3px 3px 10px;
}

.btnDots_div button + button {
  margin-left: 8px;
}

.btnDots_div .current {
  background: var(--custom-red_1);
}

.btnToMain {
  padding: 8px 16px 0;
  text-align: right;
  font-size: 16px;
  color: black;
  cursor: pointer;
}


/* データ編集・新規作成ページ -------------------- */
main.edit {
  padding: 8px 16px 16px;
}

h2 {
  margin: 8px auto;
  font-size: 20px;
  text-align: center;
  color: var(--custom-red_1);
}

[type="text"] {
  box-sizing: border-box;
  margin: 0 0 8px;
  padding: 8px;
  font-size: 14px;
}

.cateCheck_div label {
  display: inline-block;
  margin: 0 8px 4px 0;
}

select {
  font-size: 14px;
  padding: 4px;
  text-align: center;
}

[type="date"] {
  font-size: 14px;
}

[name="restaulant_name"],
[name="area"] {
  width: 100%;
}

[name="address_data"] {
  flex: 1;
  margin-bottom: 16px;
}

textarea {
  /* heightはJSで自動設定にする */
  width: 100%;
  margin: 0 0 16px;
  padding: 8px;
  line-height: 1.5;
  box-sizing: border-box;
  font-size: 14px;
  resize: none; /* 右下のリサイズアイコンを消す */
}

main.edit .picture_div div {
  margin: 0 0 24px;
}

.editBtn_div {
  margin: 8px 0;
  padding-top: 24px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

#btnClearText,
#btnAddPic {
  all: unset;
  margin-left: auto;
  color: var(--custom-red_1);
  font-size: 14px;
  font-weight: bold;
  user-select: none;
  cursor: pointer;
}

h4 {
  /* allをunsetすると、htmlで指定したhidden属性もクリアされてしまう！ */
  /* all: unset; */
  
  font-weight: normal;
  font-size: 14px;
  margin: 4px 0 8px;
}

/* 削除する画像をクリックしたら付加するクラス */
.removePic {
  opacity: .5;
}

.picture_div [type="text"] {
  width: 100%;
}



/* 写真選択ページ -------------------- */
.addPic_div {
  text-align: center;
  padding: 16px 0;
}

#btnSelPic {
  display: block;
  width: 80%;
  height: 40px;
  background: var(--title-bg2);
  color: white;
  text-shadow: #000 1px 1px;
  margin: 16px auto;
}

#selImage {
  margin: 16px 0 8px;
}

#pic_div [type="text"] {
  margin: 0;
  width: 200px;
}



/* ログイン・新規登録ページ -------------------- */
.map.login {
  right: 8px
}

main.login {
  padding: 16px;
}

.attention {
  margin: 8px auto 24px; 
}

.intro {
  width: 300px;
  margin: 8px auto;
  padding: 8px 4px;
  font-size: 14px;
  text-align: center;
  border: 1px #000 solid;
  border-radius: 4px;
}

.start_mess {
  font-size: 16px;
  text-align: center;
  margin: 0 0 8px;
}

.login_div {
  width: 320px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}

[name="user"],
[name="pass"],
[name="newUser"],
[name="newPass"] {
  margin: 0;
  padding: 8px;
  box-sizing: border-box;
  width: calc((100% - 8px) / 2);
}

#btnLogin,
#btnSignup {
  display: block;
  margin: 16px auto;
  text-align: center;
}

.signup {
  font-size: 16px;
  display: block;
  text-align: right;
  margin-top: 32px;
  color: var(--custom-red_1);
}

.loginErr_div {
  text-align: center;
}

.loginErr_div h3 {
  margin: 32px 0;
  font-size: 16px;
  color: var(--custom-red_1);
}

.loginErr_div a {
  display: block;
  color: #000;
  font-weight: bold;
  margin-bottom: 16px;
}




/* ★★ タブレット設定 ★★★★★★★★★★★★ */
@media (min-width: 768px) {

  .container {
    width: 768px;
    position: relative;
  }

  /* タイトル部分 */
  .title_div {
    height: 80px;
    padding: 12px 20px 8px;
  }

  .logo_div {
    margin-left: 12px;
  }

  .logo_img {
    width: 7%;
  }

  h1 {
    font-size: 32px;
  }

  .logo_div p {
    font-size: 14px;
  }

  .user_name p {
    font-size: 14px;
  }

  .white {
    font-size: 18px;
  }

  .user_name a {
    font-size: 14px;
  }

  .map {
    width: 16%;
    position: absolute;
    top: -5px;
    right: 90px;
    transform: rotate(15deg);
  }

  /* navi部分 */
  nav {
    padding: 16px 32px 8px;
  }

  .sub_menu_bg {
    width: 768px;
    height: calc(100% - 80px);
  }

  .sub_menu {
    right: 32px;
  }
  
  .btnCategory {
    width: calc((100% - 40px) / 6);
  }

  .btnCategory p {
    font-size: 14px;
  }

  #btnAdd {
    width: calc((100% - 80px) / 2);
    position: absolute;
    top: 310px;
    left: 32px;
  }

  /* ソート関連 */
  .sort_search {
    width: calc((100% - 16px) / 2);
    margin: 16px 0 0 auto;
  }

  .sortBtn_div {
    margin-left: 4px;
  }

  .sort_search p {
    width: 48px;
    font-size: 14px;
    left: 4px;
  }

  /* メイン部分 */
  main {
    position: static;
    padding: 24px 32px;
  }

  .record_index {
    gap: 16px;
  }

  .records_li.open .record_index {
    height: 28px;
  }

  .index_info {
    gap: 16px;
  }

  .miniIcon {
    width: 24px;
    height: 24px;
  }

  .record_index p {
    height: 24px;
    padding-top: 4px;
    font-size: 16px;
  }
  
  .index_category {
    display: block;
    flex: 1;
  }

  .index_score {
    width: 36px;
  }

  .thumbnail {
    width: 36px;
    height: 36px;
  }

  .btnRecordOpen {
    width: 20px;
    height: 20px;
  }
  
  .record_base small {
    font-size: 18px;
  }

  .flex_div {
    margin-top: 16px;
  }

  .flex_item.tenmei {
    min-width: calc((100% - 24px) / 3);
  }
  
  .flex_item.sel_category {
    max-width: calc((100% - 24px) / 3);
    order: 2;
  }

  .space_div.sp1 {
    order: 5;
  }

  .flex_item.saiten {
    width: 48px;
    order: 3;
  }

  .flex_item.saiten p {
    text-align: center;
  }
  
  .flex_item.area {
    flex: 0;
    min-width: calc((100% - 8px) / 3);
    order: 6;
  }

  .flex_item.visit_date {
    order: 4;
  }

  .space_div.sp2 {
    order: 8;
  }
  
  .flex_item.address {
    display: block;
    max-width: calc((100% - 8px) * 2 / 3);
    order: 7;
  }

  .space_div.sp3 {
    order: 9;
  }

  .flex_item.comment {
    order: 10;
  }

  .flex_parent > div + div {
    margin-top: 16px;
  }

  .picture_div div {
    width: calc((100% - 16px) / 3);
    height: 200px;
  }

  .btn_div {
    width: 50%;
    margin: 24px 0 16px auto;
    text-align: right;
  }

  .btnEdit,
  .btnCopy {
    font-size: 16px;
  }

  /* 検索 */
  #search_div {
    width: 400px;
    height: 160px;
    padding: 24px 16px 16px;
    top: 160px;
    left: calc((100% - 400px) / 2);
  }

  #search_div > p {
    font-size: 16px;
  }

  #search_txt {
    width: 320px;
    margin: 8px 0 16px;
  }

  #hitCount {
    font-size: 16px;
  }

  /* 写真カルーセル */
  .carousel {
    width: 500px;
    left: calc((100% - 500px) / 2);
    padding: 0 8px 0;
  }

  .btnToMain {
    font-size: 18px;
  }

  .showPic_area {
    height: 720px;
  }


  /* データ編集・新規作成ページ -------------------- */
  main.edit {
    padding: 16px 48px;
  }
  
  main.edit .flex_item.tenmei {
    min-width: calc((100% - 16px) / 2);
    flex: 1;
  }

  main.edit .flex_item.saiten {
    width: auto;
  }

  .cateCheck_div {
    order: 5;
  }

  main.edit .flex_item.address [type="text"] {
    width: 100%;
    margin-bottom: 0;
  }

  .editBtn_div {
    gap: 16px;
  }


  /* 写真選択ページ -------------------- */
  #btnSelPic {
    width: 60%;
  }

  #pic_div h4 {
    font-size: 16px;
  }

  #pic_div [type="text"] {
    width: 300px;
  }


  /* ログイン・新規登録ページ -------------------- */
  .map.login {
    right: 12px
  }

  .intro {
    margin-top: 16px;
  }

  .start_mess {
    font-size: 16px;
    text-align: center;
    margin: 0 0 8px;
  }

  .login_div {
    width: 400px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
  }
}




/* ★★ パソコン設定 ★★★★★★★★★★★★★ */
@media (min-width: 960px) {

  .container {
    width: 960px;
  }

  /* タイトル部分 */
  .title_div {
    height: 100px;
    padding: 12px 20px 8px 24px;
  }

  .logo_img {
    width: 7.5%;
  }

  h1 {
    font-size: 40px;
  }

  .map {
    width: 15%;
    position: absolute;
    top: -5px;
    right: 84px;
    transform: rotate(13deg);
  }

  /* navi部分 */
  nav {
    padding: 16px 16px 8px;
  }

  .sub_menu_bg {
    width: 960px;
    height: calc(100% - 100px);
  }

  .btnCategory {
    width: calc((100% - (8px * 11)) / 12);
  }

  .btnCategory:hover {
    opacity: .6;
  }

  .btnCategory p {
    font-size: 12px;
  }

  /* ソート関連 */
  .sortBtn_div {
    padding: 8px 16px;
  }

  .sort_search button {
    width: 96px;
  }

  /* メイン部分 */
  #btnAdd {
    top: 208px;
  }

  .record_base {
    padding: 12px 32px;
  }

  .flex_parent {
    display: flex;
    gap: 32px;
  }

  .flex_parent > div {
    margin: 16px 0;
    width: calc((100% - 32px) / 2);
  }

  .flex_parent > .flex_div {
    height: 100%;
  }

  .flex_div > .flex_item,
  .space_div.sp1,
  .space_div.sp2,
  .space_div.sp3 {
    order: 1;
  }

  .flex_item.area {
    flex: 1;
  }

  .flex_item.address {
    max-width: 100%;
  }

  .flex_item.comment {
    margin-bottom: 0;
  }

  /* 写真 */
  .picture_box {
    display: flex;
    flex-direction: column;
  }

  .picture_div {
    flex: 1;
    box-sizing: border-box;
    padding: 8px;
    background: var(--title-bg2_t);
    border: 2px solid var(--custom-red_1);
    box-shadow: var(--custom-red_1) 2px 2px;
  }

  .picture_div div {
    width: calc((100% - 8px) / 2);
    margin-bottom: 16px;
  }

  .picture {
    height: 180px;
  }

  .btn_div {
    width: 40%;
    margin: 16px 0 8px auto;
  }


  /* データ編集・新規作成ページ -------------------- */
  main.edit {
    padding: 24px 100px;
  }

  main.edit .flex_item.saiten {
    width: auto;
    order: 2;
  }

  main.edit .flex_item.visit_date {
    order: 3;
  }

  .cateCheck_div {
    order: 4;
  }
  
  main.edit .flex_item.area {
    flex: 0;
    min-width: calc((100% - 8px) / 3);
    order: 5;
  }

  main.edit .flex_item.address {
    max-width: calc((100% - 8px) * 2 / 3);
    order: 6;
  }

  main.edit .picture_div {
    background: none;
    border: none;
    box-shadow: none;
  }

  main.edit .picture_div div {
    width: calc((100% - 16px) / 3);
    height: 200px;
  }


  /* 写真選択ページ -------------------- */
  #btnSelPic {
    width: 50%;
  }


  /* ログイン・新規登録ページ -------------------- */
  .map.login {
    margin-right: 12px;
  }
}
