html {
    background: url(img/youhishi.png) no-repeat center center fixed;
    background-size: cover;
}
/* フォント設定 */
/*修正した関係上yujiなのにsawarabiになっている*/
.yuji-mai-regular {
    font-family: 'Sawarabi Mincho', serif;
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'Sawarabi Mincho', serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-flow: column;
    align-items: center;
    width: 100%;
}

.container {
    margin-left: 50px;
    margin-right: 50px;
}

.dilettante {
    color: #ff0000;     /* 文字色指定 */
}

.oner{
    color: #0f12e0;     /* 文字色指定 */
}

.automata{
    color: #9000ff;     /* 文字色指定 */
}

.capitalist{
    color: #00522b;     /* 文字色指定 */
}

.barmaid{
    color: #f7017c;     /* 文字色指定 */
}

.lines{
    line-height: 1.5;     /*セリフの間隔を拡張*/
    margin:0.5em;
}

.narrative_text{
    line-height: 1.8;
}

main {
    width: 90%;
    margin-top: 7rem;
}

/* メインコンテナ */
div#main {
    margin: 5em 5em;
    padding: 1em;
    display: block;
    position: relative;
    box-shadow: 2px 0 3px #666, -2px 0 3px #666;
}


/* 見出し・テキスト */
h1 {
    margin: 0;
    font-size: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 1px 1px 3px #000;
}

.title-wrapper {
  margin-top: 0;
  text-align: center;
}

.titlecall {
  font-size: 1.8em;
  margin: 0 auto 0.5em auto;
  padding: 0.5em 1em 0.5em 4em;  /* ← 左側の余白を増やす */
  background: url(img/カフェロゴ.png) no-repeat left center;
  background-size: 3em;
  font-family: "Sawarabi Mincho";
  border-bottom: 1px dashed #000;
}

.image-background {
    position: absolute;
    top: 0;
    left: 25%;
    width: 50%;
    height: 95vh;
    background-image: url("img/メモリーデータ.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.2;
    z-index: -1;
}


.image-layer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 2rem auto;
}

.center-image {
    height: auto;
    max-width:600px;
    margin: 2em;
}

.center-image2 {
    width: auto;
    max-height: 500px;
    height: calc(70vw); 
    object-fit: contain;
    margin: 2em;
}

.corner-image {
    width: auto;
    max-height: 500px;
    height: calc(60vw); 
    object-fit: contain;
    margin: 2em;
}

.left-corner {
    float: left;
}

.right-corner {
    float: right;
}


h3 {
    background: url(img/カフェロゴ.png) no-repeat;
    background-size: contain;
    border-bottom: 1px dashed #000;
    font-family: "Sawarabi Mincho";
}

h3 {
    padding-left: 2em;
}

h1 small {
    font-size: 1rem;
    white-space: wrap;
}

p {
    margin: 0;
}

dt {
    font-weight: bold;
}

ol {
    padding-left: 1.5em;
}


/* サブタイトル調整 */
#sub-title {
    padding-left: 53%;
}

.sp-br {
    display: none;
}

/* レスポンシブ対応 */

@media (max-width: 750px) {
    .logo-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .logo {
        width: 80%;
        max-width: 250px;
        margin-bottom: 1em;
    }

    div.logo-left {
        margin: 0;
        text-align: center;
    }

    #sub-title {
        padding-left: 0;
    }

    .center-image {
        height: auto;
        max-width: 90%;
        margin: 2em;
    }

}

/* iframe設定 */
iframe {
    width: 90%;
    aspect-ratio: 4/3;
}

/* グリッド配置 */
.container {
    display: grid;
    gap: 50px;
    margin-left: 50px;
    margin-right: 50px;
    padding-bottom: 30px;
    grid-template-columns: 1fr 1fr;
}

article {
    border-radius: 13px;
}

/* グローバルナビ */
.global-nav {
    float: right;
    padding: 0;
    width: 20rem;
}

.global-nav li {
    float: left;
    margin: 0 20px;
    font-size: 20px;
    list-style: none;
}

.global-nav li a {
    color: #dedede;
    text-decoration: none;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 1em;
}

/* ヘッダー */
header {
    position: fixed;
    height: 3rem;
    width: 100%;
    z-index: 999;
    background-color: #493a35;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    padding: 15px;
}

/* 上スクロール時のアニメーション */
#header.UpMove {
    animation: UpAnime 0.5s forwards;
}

@keyframes UpAnime {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100px);
    }
}

/* 下スクロール時のアニメーション */
#header.DownMove {
    animation: DownAnime 0.5s forwards;
}

@keyframes DownAnime {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ハンバーガーメニュー */
.openbtn {
    position: relative;
    float: right;
    margin-right: 20px;
    background: #ECA869;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 5px;
}

.openbtn span {
    display: inline-block;
    transition: all .4s;
    position: absolute;
    left: 14px;
    height: 3px;
    border-radius: 2px;
    background: #444444;
    width: 45%;
}

.openbtn span:nth-of-type(1) { top: 15px; }
.openbtn span:nth-of-type(2) { top: 23px; }
.openbtn span:nth-of-type(3) { top: 31px; }

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 18px;
    transform: translateY(6px) rotate(-45deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 18px;
    transform: translateY(-6px) rotate(45deg);
    width: 30%;
}

/* ナビゲーションパネル */
#g-nav {
    position: fixed;
    z-index: -999;
    top: -1900%;
    left: 0;
    width: 100%;
    height: 80vmin;
    background: rgba(236, 168, 105, 0.904);
    transition: all 1.5s;
}

#g-nav.panelactive {
    top: 0;
    transition: 0.9s;
}

#g-nav.panelactive #g-nav-list {
    position: fixed;
    z-index: -999;
    width: 100%;
    height: 80vmin;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#g-nav ul {
    position: absolute;
    z-index: -999;
    top: 30%;
    left: 50%;
    padding-top: 8rem;
    transform: translate(-50%, -50%);
}

#g-nav li {
    list-style: none;
    text-align: center;
    float: none;
}

#g-nav li a {
    color: #353535;
    text-decoration: none;
    padding: 10px;
    display: block;
    letter-spacing: 0.1em;
    font-weight: bold;
}

/* リンク色 */
a:link {
    text-decoration: none;
    color: #3707c4;
}

a:link.tab {
    text-decoration: none;
    color: #000;
}