body {
    margin: 0;
    font-family: "Noto Serif JP", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.1em;
}

button,
input,
textarea,
select {
    font: inherit;
}

.disabled-btn {
  pointer-events: none;
  color: #888;
  text-decoration: none;
  cursor: not-allowed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://www.junyanese.site/style/jsbgs.png") center / cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

header,
footer {
    color: black;
    padding: 1rem;
    text-align: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
}

header img {
    width: 280px;
    height: auto;
}

section {
    width: 90%;
    margin: 1rem auto;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.88);
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    border-radius: 15px;
}

.contact-img {
    height: 60px;
    width: auto;
    margin-right: 20px;
    border-radius: 10px;
}

.link-row {
    display: flex;
    justify-content: center;
    /* 橫向置中 */
    align-items: center;
    /* 直向置中（同一行其實差不多） */
    gap: 16px;
    /* 三個 a 的間距 */
    padding: 24px 0;
}

.link-btn {
    display: inline-block;
    /* 讓 padding 生效得漂亮 */
    padding: 10px 14px;
    text-decoration: none;
}

.link-btn,
.to-btn,
.link-btn:visited,
.link-btn:hover,
.link-btn:active,
.link-btn:focus {
    color: inherit;
    /* 或指定一個固定顏色 */
    text-decoration: none;
}

.btn-p {
    margin-top: 45px;
    margin-bottom: 45px;
    padding-bottom: 25px;
}

#gustbook div {
    font-size: 1rem;
}

#guestbook button {
    display: block;
    padding: 10px;
    margin-right: 25px;
    margin-top: 18px;
    margin-bottom: 18px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    color: #000000;
    text-decoration: none;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: none;
}

/* input, button {
    outline: none;
    box-shadow: 0 0 0 1px #666;
}

#guestbook div {
    margin-top: 45px;
    margin-bottom: 45px;
    font-size: 1rem;
}  */

.to-btn {
    display: block;
    padding: 10px;
    margin-right: 25px;
    margin-top: 18px;
    margin-bottom: 18px;
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    color: #000000;
    text-decoration: none;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


section h2,
section h3,
section div {
    padding: 1rem;
}


a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.back-to-home {
    position: fixed;
    bottom: 20px;
    /* 距離下方 20px */
    right: 20px;
    /* 距離右邊 20px */
    z-index: 999;
    /* 確保蓋在上層 */

    padding: 10px 16px;

    color: #000000;
    text-decoration: none;
    font-size: 14px;
    border-radius: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);


}

.back-to-home:hover {
    background-color: #555;
}

h1 {
    font-size: 1.6em;
    line-height: 100%;
}

h2 {
    font-size: 1.25em;
    line-height: 100%;
}

h3 {
    font-size: 1.1em;
    line-height: 100%;
}

.smaller {
    font-size: 0.8em;
}

/* class p1代表日文段落，縮排一字。p2代表漢語段落，縮排兩字，英文段落不縮排 */
.p1 {
    text-indent: 1em;
}

.p2 {
    text-indent: 2em;
    font-family: "Cactus Classical Serif";
    font-style: normal;
}

.audio-wrap {
    padding: 0;
    margin: 0.5rem 0;
}

#guestbook textarea,
#guestbook input {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 1em;
    padding: 0.5rem 0.5rem;
    border-radius: 12px;
    min-height: 2em;
}