/*
Theme Name: umanohizume
Theme URI: https://umanohizume.com/
Author: YU HAM
Description: Original design theme
Version: 1.0
*/



html, body {
  background: #ffffff !important;
  margin: 0;
  padding: 0;
}

/* ===================================
   FONT SETTINGS for UMANOHIZUME
=================================== */

/* ----本文（読みやすい丸ゴ）----- */
body, p, li, span {
    font-family: "Heisei Maru Gothic Std", sans-serif;
    font-weight: 400; /* W4 */
    line-height: 1.9;
    font-size: 16px;
}


/* ----H1：ページの大タイトル（存在感UP）----- */
h1 {
    font-family: "Mizolet", sans-serif;
    font-weight: 400; /* 1種類のみ */
    line-height: 1.2;
    letter-spacing: 0.02em;
}


/* ----H2：セクション見出し（やさしい印象）----- */
h2 {
    font-family: "Bokutoh Rera", sans-serif;
    font-weight: 400; /* 1種類のみ */
    line-height: 1.3;
    letter-spacing: 0.03em;
}


/* ----H3：小見出し（丸ゴ太めで統一）----- */
h3 {
    font-family: "Heisei Maru Gothic Std", sans-serif;
    font-weight: 800; /* W8 */
    line-height: 1.4;
}


/* ----強調（strong, b）----- */
strong, b {
    font-family: "Heisei Maru Gothic Std", sans-serif;
    font-weight: 800; /* W8 */
}


/* ----ボタン・UI----- */
button,
input[type="submit"],
input[type="button"],
input[type="text"],
textarea {
    font-family: "Heisei Maru Gothic Std", sans-serif;
    font-weight: 600;
}











.TOP-wrapper {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}

.sway img {
  width: 100%;
  display: block;
}

.sway img {
  animation: breathing 6s ease-in-out infinite;
}

@keyframes breathing {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}




.logotop {
  position: absolute;
  top: 50%;   /* 位置はここを調整 */
  left: 50%;
  transform: translate(-50%, -50%);
}

.logotop img {
  width: 100%; /* 大きさ調整 */
}


.oshirase_2024 {
  position: absolute;
  top: 30%;
  left: 56%;
  display: flex;
  flex-direction: column;        /* ★縦に積む！ */
  align-items: center;           /* ★中央揃え */
  gap: 30px;                     /* 画像とテキストの間 */
}

.oshirase_2024 img.alignright {
  margin-top: -30%;
  width: 350px;
  height: auto;
  transform: rotate(8deg);   /* ★ここで右に傾ける！ */
  transform-origin: center;   /* 回転の支点（中心） */
  z-index: 1;
}

/* ★縦書きテキスト */
.text_tate {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: pre-line;
  line-height: 1.8;
  font-size: 16px;
  font-family: heisei-maru-gothic-std, sans-serif;
  font-weight: 800;
  z-index: 10;
}







/* -------------------------
   スマホ用（768px以下）
------------------------- */
@media screen and (max-width: 768px) {

  html, body {
    overflow-x: hidden !important;
    width: 100%;
  }

  /* 背景の画像 */
  .sway img {
    width: 100% !important;
    height: auto !important;
    margin-top: 10%;
  }

  /* ロゴ（中央のやつ）はスマホでも重ねる */
  .logotop {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    text-align: center;
  }

  .logotop img {
    width: 65% !important;
    z-index: 1;
  }

  /* お知らせブロックは絶対配置解除して通常フローへ */
  .oshirase_2024 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin-top: 40px;
    width: 100%;
    padding: 20px 0;
    z-index: 10;
  }
  
  /* 画像：右上に重ねる（スマホは relative 内で絶対配置OK） */
  .oshirase_2024 img.alignright {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 40% !important;
    transform: rotate(6deg);
    z-index: 20;
  }
  
  /* 縦書きテキスト */
  .text_tate {
    position: relative;
    margin-left: 50px;
    padding-right: 40%;
    z-index: 5;
  }

}



