@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Shippori+Mincho&display=swap');

body {
    font-family: 'Shippori+Mincho', serif; /* 日本語は明朝体 */
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #1a1612; /* 暗い木のような茶色 */
    background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png'); /* 革の質感 */
    color: #d4c4a8; /* 色褪せた紙のような色 */
}

header {
    background-color: #2c241a;
    border-bottom: 3px double #8b4513;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

h1, h2, h3, h4 {
    font-family: 'MedievalSharp', cursive; /* 中世風フォント */
    color: #c5a059; /* アンティークゴールド */
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    letter-spacing: 2px;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

a {
    color: #a0522d;
    text-decoration: underline;
    transition: 0.3s;
}

a:hover {
    color: #c5a059;
}

.card {
    background: #f4e4bc; /* 羊皮紙の色 */
    background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    color: #2c241a;
    border: 2px solid #8b4513;
    border-radius: 2px; /* 丸みを取り、古文書風に */
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

/* カードの角に装飾的なアクセントを擬似的に表現 */
.card::before {
    content: "📜";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 1.5rem;
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.nav-links a {
    display: block;
    background: #3d2b1f;
    color: #d4c4a8;
    padding: 10px;
    text-align: center;
    border: 1px solid #c5a059;
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover {
    background: #c5a059;
    color: #1a1612;
}

.btn, .btn-sub {
    display: inline-block;
    padding: 10px 25px;
    background: linear-gradient(to bottom, #8b4513, #5d2e0c);
    color: #f4e4bc;
    border: 1px solid #c5a059;
    font-family: 'MedievalSharp', cursive;
    cursor: pointer;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    text-transform: uppercase;
}

.btn:hover {
    background: #c5a059;
    color: #1a1612;
}

form div {
    margin-bottom: 20px;
}

input[type="text"], textarea, select {
    width: 100%;
    padding: 12px;
    background: #fff9eb;
    border: 1px solid #8b4513;
    color: #2c241a;
    font-family: 'Shippori+Mincho', serif;
    box-sizing: border-box;
}

.comment-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #8b4513;
}

.cmt-list {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.cmt-list li {
    background: rgba(139, 69, 19, 0.1);
    margin-bottom: 8px;
    padding: 8px 12px;
    border-left: 3px solid #8b4513;
    font-size: 0.9rem;
}

/* 動画・画像の枠 */
.card img, .card video {
    border: 5px inset #8b4513;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    background-color: #000;
}

p, a {
  word-wrap: break-word;     /* 古いブラウザ用 */
  overflow-wrap: break-word; /* 標準的 */
  white-space: normal;       /* 自然に折り返す */
}

