@charset "UTF-8";

/* ===============================
   写真
=============================== */
.main-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0px 2px 12px rgba(0,0,0,0.15);
    animation: fadeIn 0.8s ease forwards;
    border: #ddd 1px solid;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(1.02); }
    to   { opacity: 1; transform: scale(1); }
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.image-cover {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: transparent;
    pointer-events: auto;
}

.image-author {
    position: absolute;
    bottom: 12px;
    left: 12px;
    pointer-events: none;
    color: #fff;
    font-size: 14px;
    text-shadow:
        0 0 3px rgba(0,0,0,0.6),
        0 0 6px rgba(0,0,0,0.4),
        0 1px 2px rgba(0,0,0,0.8);
}

.image-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    pointer-events: none;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    letter-spacing: 1.5px;
    color: #e16b17;
    text-shadow:
		0 0 3px rgba(144, 68, 14, 0.7), 0 0 6px rgba(255, 122, 26, 0.45), 0 0 9px rgba(143, 69, 15, 0.25);
}

/* ===============================
   背景
=============================== */
.related-photo,
.dummy-paper {
    position: absolute;
    top: -10px;
    width: 92%;
    height: 100%;
    border-radius: 12px;
    border: #ddd 1px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    z-index: -1;
}

/* 紙風の背景（関連投稿がないとき） */
.dummy-paper {
    background: #f9f9f9;
    transform: rotate(-2deg);
}

/* 本物の写真（関連投稿があるとき） */
.related-photo {
    background-size: cover;
    background-position: center;
}

/* 左寄り */
.before {
    right: -10px;
    transform: rotate(-2deg);
}

/* 右寄り */
.after {
    right: -10px;
    transform: rotate(2deg);
    top: 0px;
}

.main-image-wrapper .related-photo.before,
.main-image-wrapper .dummy-paper.before {
    opacity: 0;
    transform: rotate(-2deg) translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-image-wrapper .related-photo.after,
.main-image-wrapper .dummy-paper.after {
    opacity: 0;
    transform: rotate(2deg) translateY(6px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-image-wrapper.show .related-photo.before,
.main-image-wrapper.show .dummy-paper.before {
    opacity: 1;
    transform: rotate(-2deg) translateY(0);
}

.main-image-wrapper.show .related-photo.after,
.main-image-wrapper.show .dummy-paper.after {
    opacity: 1;
    transform: rotate(2deg) translateY(0);
}

/* ===============================
   関連ボタン
=============================== */
.related-link-box {
    margin: 16px auto;
    text-align: center;
}

.related-link {
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    color: #444;
    background: #f5f5f5;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.related-link:hover {
    background: #eee;
    border-color: #ccc;
}

/* ===============================
   情報エリア
=============================== */
.info-box {
	width: 100%;
	max-width: 420px;
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    margin: 0 auto 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.info-box.show {
    opacity: 1;
    transform: translateY(0);
}

.title a {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #226ba4;
    text-decoration: none;
}

.year {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.address {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.address a {
    color: #226ba4;
    text-decoration: none;
    font-weight: 600;
}

.address a:hover {
    text-decoration: underline;
}
.memo {
    font-size: 14px;
    margin-top: 10px;
    line-height: 1.6;
}

/* ===============================
   Google提供情報ブロック
=============================== */
.google-info {
    padding-left: 14px;
    border-left: 3px solid #ddd;
    margin-top: 20px;
    margin-bottom: 20px;
}

.google-title {
    font-weight: bold;
    color: #333;
}

.google-updated {
    font-size: 0.85em;
    color: #777;
    margin-top: -3px;
    margin-left: 3px;
}

.google-summary-text {
    line-height: 1.6;
    color: #444;
}

.rating-block {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.star-rating__base {
    color: #eee;
    position: relative;
    z-index: 1;
}

.star-rating__fill {
    color: #f5b301;
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    z-index: 2;
}

.star-rating {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    margin-right: 6px;
}

.rating-text {
    font-size: 15px;
    color: #333;
}

/* ===============================
   地図
=============================== */
#map {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

/* ===============================
   広告
=============================== */
.detail-ad {
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.detail-ad ins,
.detail-ad iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===============================
   下部ボタン
=============================== */
.detail-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 420px;
    margin: 20px auto;
    padding: 0.5em 2em;
}

.detail-nav a {
    font-size: 16px;
    color: #2773ae;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: 0.2s;
}

.detail-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* 空白用 span（片方が無いときの幅確保） */
.detail-nav span {
    width: 120px;
    height: 44px;
    display: inline-block;
}

.back {
    text-align: center;
    margin-top: 20px;
}

.back a {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    text-decoration: none;
    color: #2773ae;
    font-weight: 600;
    transition: 0.2s;
}

.back a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
