@charset "utf-8";

/* ========================================
   共通レスポンシブCSS - 全ページ共通のモバイルスタイル
   ======================================== */

/* ====== モバイル (max-width:999px) ====== */
@media(max-width:999px){
  html{
    height: 100%;
  }
  body{
    height: 100%;
    font-family: 'Noto Sans JP', sans-serif;
  }

  /* ヘッダー共通（background-imageは各ページで指定） */
  header{
    background-size: cover;
    width: 100%;
    height: 100%;
    color: var(--color-white);
    display: flex;
    flex-direction: column;
  }

  /* 右上お問い合わせ */
  .contactTopOut{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10%;
  }
  .contactTopOut img{
    height: 45px;
    width: 45px;
    margin-left: 0px;
    margin-bottom: 7px;
  }

  .contactTop{
    margin-right: 10px;
    display: flex;
    align-items: center;
    font-size: 19px;
    font-family: 'Noto Serif JP', serif;
    font-weight: 500;
  }
  .contactTop a{
    text-align: center;
  }
  .contactTop span{
    display: block;
    font-size: 10px;
    font-weight: 900;
  }
  .contactTop li:nth-of-type(2){
    display: none;
  }

  /* h1 共通（font-sizeは各ページで上書き可） */
  h1{
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    letter-spacing: 0.1em;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    font-size: 11vw;
  }

  /* スクロール表示 */
  .scroll{
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    width: 100%;
  }
  .scroll span{
    font-size: 20px;
  }

  /* 上部メニュー */
  .menu{
    height: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Noto Serif JP', serif;
    order: -2;
  }
  .menu ul{
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .menu li{
    font-size: 15px;
  }
  /* 4-1修正: a→liに変更（セマンティクス改善） */
  .menu li:first-child{
    display: none;
  }
  .menu li:not(:nth-child(2)){
    padding-left: 3px;
    border-left: 1px solid var(--color-white);
  }
  .menu li:not(:nth-child(5)){
    padding-right: 3px;
  }
  /* ナビリンクは親liのcolorを継承 */
  .menu li a{
    color: inherit;
  }

  /* box-sizing */
  *, *::before, *::after{
    box-sizing: border-box;
  }
}

/* ====== スマホ (max-width:767px) ====== */
@media(max-width:767px){
  /* お問い合わせh2共通（サブページ用） */
  .contactOut h2{
    position: relative;
    display: inline-block;
    padding: 0;
    font-size: 6vw;
    color: var(--color-dark);
    font-weight: 700;
    border-bottom: 1px solid var(--color-dark);
    font-family: 'Noto Serif JP', serif;
  }
  .contactOut h2:before{
    display: none;
  }

  /* お問い合わせセクション */
  .contact{
    color: var(--color-dark);
    margin: 50px auto 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .contactInner{
    text-align: center;
  }
  .contactInner span{
    font-size: 10vw;
    font-weight: 700;
    font-family: 'Noto Serif JP', serif;
  }
  .contactInner p{
    font-size: 4vw;
  }
  .contactInner img{
    width: 9vw;
    height: 9vw;
  }

  .contactItem{
    color: var(--color-white);
    background-color: var(--color-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    margin: 20px 0 20px 0;
    box-shadow: -10px 10px var(--color-light);
    font-size: 15px;
    width: 80%;
  }
  .con1{
    text-align: center;
    font-size: 95%;
  }
  .con2{
    margin-left: auto;
    margin-right: 15px;
  }
  .contactItem:nth-of-type(1){
    margin-top: 50px;
  }

  /* 下部ナビ */
  .navBarBottom{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    height: 80px;
    background-color: var(--color-light);
    font-family: 'Noto Serif JP', serif;
  }
  .navBarBottom li{
    margin: 0 10px;
    color: var(--color-black);
    font-weight: 500;
  }
  /* ナビリンクは親liのcolorを継承 */
  .navBarBottom li a{
    color: inherit;
  }

  /* フッター */
  footer{
    background-color: var(--color-dark);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  small{
    color: var(--color-white);
  }
}
