/* TOPだけに適用する新着写真カード。記事本文のスタイルには適用しない。 */
.home-photo-feed{padding-top:20px;padding-bottom:24px}
.home-photo-feed .gallery-masthead{gap:16px;margin:0 0 18px;align-items:end}
.home-photo-feed .gallery-masthead h1{font-size:25px;line-height:1.5;letter-spacing:.015em}
.home-photo-feed .gallery-masthead>p{font-size:11px;line-height:1.65;flex:none}
.home-photo-feed .home-news-heading-link{display:inline-block;margin-top:4px;color:#795344;text-decoration:underline;text-underline-offset:3px}
.home-photo-feed .home-content-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}
.home-photo-feed .home-main-column{min-width:0}
.home-photo-feed .gallery-news-list,.home-photo-feed .home-product-grid,.home-photo-feed .home-news-archive{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.home-photo-feed .home-card{display:flex;flex-direction:column;grid-template-columns:none;min-width:0;margin:0;padding:0;gap:0;border:1px solid #dce2e4;border-radius:3px;background:#fff;overflow:hidden}
.home-photo-feed .home-card-link{display:flex;flex-direction:column;flex:1;min-width:0;color:#243c58;text-decoration:none}
.home-photo-feed .home-card-link:hover{color:#9b3e2c}
.home-photo-feed .home-card-link:focus-visible{outline:3px solid #b94f38;outline-offset:-4px}
.home-photo-feed .home-card-media{display:flex;align-items:center;justify-content:center;position:relative;width:100%;height:clamp(270px,27vw,340px);flex:none;background:#fafaf8;border-bottom:1px solid #e7e9e5;padding:12px}
.home-photo-feed .home-card-media img{display:block;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
.home-photo-feed .home-card-copy{display:flex;flex-direction:column;flex:1;min-width:0;padding:14px 16px 15px;gap:9px}
.home-photo-feed .home-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;color:#626f78;font-size:11px;line-height:1.6}
.home-photo-feed .home-card-meta .tag{position:static;flex:none;font-size:10px;padding:2px 6px}
.home-photo-feed .home-card h3{font-size:17px;line-height:1.65;font-weight:700;letter-spacing:0;margin:0;overflow-wrap:anywhere;word-break:normal}
.home-photo-feed .home-card-release{font-size:12px;line-height:1.65;color:#626f78;margin:0}
.home-photo-feed .home-card-action{display:block;margin-top:auto;padding-top:3px;color:#795344;font-size:11px;line-height:1.5}
.home-photo-feed .home-card-link:hover h3{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.home-photo-feed .home-news-more{display:flex;justify-content:flex-end;margin:14px 0 0;font-size:13px;color:#795344}
.home-photo-feed .home-latest-products,.home-photo-feed .home-news-history{margin-top:34px}
.home-photo-feed .home-latest-products .section-head,.home-photo-feed .home-news-history .section-head{margin-bottom:18px;padding-bottom:10px}
.home-photo-feed .home-latest-products h2,.home-photo-feed .home-news-history h2{font-size:22px;line-height:1.5}
.home-photo-feed .shelf-shortcuts{margin-block:28px}
.home-photo-feed .reading-recommendations{margin-block:30px}
.home-photo-feed .reading-recommendations .reading-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.home-photo-feed .reading-recommendations .reading-card-main{display:flex;flex-direction:column;min-width:0}
.home-photo-feed .reading-recommendations .reading-card-image{display:flex;align-items:center;justify-content:center;width:100%;height:280px;aspect-ratio:auto;min-height:0;background:#fafaf8}
.home-photo-feed .reading-recommendations .reading-card-image img{width:100%;height:100%;object-fit:contain;object-position:center}
.home-photo-feed .reading-recommendations .reading-card-copy{width:100%;min-width:0}
.home-photo-feed .size-guide-promo{margin-block:28px;grid-template-columns:180px minmax(0,1fr);padding:18px;gap:20px}
.home-photo-feed .size-guide-promo>img{width:180px;max-height:130px;object-fit:contain}
.home-photo-feed .size-guide-promo h2{font-size:19px;line-height:1.6}
.home-photo-feed .gallery-side.home-info-sidebar{display:block;position:static;min-width:0;margin:0}
.home-photo-feed .home-info-sidebar>section{min-width:0;margin-bottom:24px}
.home-photo-feed .home-sidebar-panel{border:1px solid #dce2e1;border-top:3px solid #b94f38;padding:15px}
.home-photo-feed .home-sidebar-panel h2{font-size:18px;line-height:1.6;margin-bottom:8px}
.home-photo-feed .home-sidebar-item{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e1e5e3}
.home-photo-feed .home-sidebar-item:last-child{border-bottom:0;padding-bottom:2px}
.home-photo-feed .home-sidebar-item>img{display:block;width:76px;height:88px;object-fit:contain;object-position:center;background:#fafaf8;border:1px solid #e6e9e5}
.home-photo-feed .home-sidebar-item>span{min-width:0;overflow-wrap:anywhere}
.home-photo-feed .home-sidebar-item small,.home-photo-feed .home-sidebar-item time{display:block;font-size:10px;line-height:1.6;color:#94513e;margin-bottom:4px}
.home-photo-feed .home-sidebar-item b{display:block;font-size:13px;line-height:1.7;font-weight:700}
.home-photo-feed .home-sidebar-note{margin-top:10px;font-size:11px;line-height:1.7;color:#626f78}
.home-photo-feed .shelf-comparisons,.home-photo-feed .shelf-reservations,.home-photo-feed .shelf-category-section{margin-top:34px}
.home-photo-feed .product-img{min-height:250px;object-fit:contain}
.home-photo-feed .product-img img{object-fit:contain;object-position:center}
.home-photo-feed .home-photo-news>.section-head{margin-bottom:18px;padding-bottom:10px}
.home-photo-feed .home-photo-news>.section-head h2{font-size:22px;line-height:1.5}
.home-photo-feed .home-explanation-section .reading-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.home-photo-feed .home-explanation-section .reading-card-main{display:grid;grid-template-columns:120px minmax(0,1fr);align-items:center;height:100%}
.home-photo-feed .home-explanation-section .reading-card-image{width:120px;height:160px}
.home-photo-feed .home-explanation-section .reading-card-copy{padding:12px;min-width:0}
.home-photo-feed .home-explanation-section .reading-card-copy h3{font-size:15px;line-height:1.65}
@media(min-width:1280px){
 .home-photo-feed .home-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .home-photo-feed .home-product-grid .home-card-media{height:280px;padding:10px}
 .home-photo-feed .home-product-grid .home-card h3{font-size:16px}
}
@media(max-width:1100px){.home-photo-feed .home-content-layout{grid-template-columns:minmax(0,1fr) 270px;gap:24px}}
@media(max-width:1000px){
 .home-photo-feed .gallery-news-list,.home-photo-feed .home-product-grid,.home-photo-feed .home-news-archive{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .home-photo-feed .reading-recommendations .reading-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-photo-feed .home-card-media{height:310px}
}
@media(max-width:1100px){
 .home-photo-feed .home-explanation-section .reading-cards{grid-template-columns:minmax(0,1fr)}
 .home-photo-feed .home-explanation-section .reading-card-main{grid-template-columns:140px minmax(0,1fr)}
 .home-photo-feed .home-explanation-section .reading-card-image{width:140px}
}
@media(max-width:900px){.home-photo-feed .home-content-layout{grid-template-columns:minmax(0,1fr);gap:28px}.home-photo-feed .gallery-side.home-info-sidebar{margin-top:0}}
@media(max-width:599px){
 .home-photo-feed{width:calc(100% - 28px);padding-top:16px}
 .home-photo-feed .gallery-masthead{display:block;margin-bottom:15px}
 .home-photo-feed .gallery-masthead h1{font-size:22px}
 .home-photo-feed .gallery-masthead>p{text-align:left;margin-top:5px;font-size:10px}
 .home-photo-feed .home-news-heading-link{margin-left:12px;margin-top:0}
 .home-photo-feed .gallery-news-list,.home-photo-feed .home-product-grid,.home-photo-feed .home-news-archive{grid-template-columns:minmax(0,1fr);gap:18px}
 .home-photo-feed .home-card-media{height:320px;padding:12px}
 .home-photo-feed .home-card-copy{padding:13px 14px 15px;gap:8px}
 .home-photo-feed .home-card h3{font-size:17px;line-height:1.65}
 .home-photo-feed .home-card-meta{font-size:11px}
 .home-photo-feed .home-latest-products,.home-photo-feed .home-news-history{margin-top:28px}
 .home-photo-feed .reading-recommendations .reading-cards{grid-template-columns:minmax(0,1fr);gap:18px}
 .home-photo-feed .reading-recommendations .reading-card-image{height:290px}
 .home-photo-feed .home-explanation-section .reading-card-main{display:flex;flex-direction:column}
 .home-photo-feed .home-explanation-section .reading-card-image{width:100%;height:250px}
 .home-photo-feed .home-explanation-section .reading-card-copy{width:100%;padding:14px}
 .home-photo-feed .home-explanation-section .reading-card-copy h3{font-size:16px}
 .home-photo-feed .size-guide-promo{grid-template-columns:100px minmax(0,1fr);padding:12px;gap:12px}
 .home-photo-feed .size-guide-promo>img{width:100px;max-height:100px}
 .home-photo-feed .size-guide-promo h2{font-size:16px}
 .home-photo-feed .size-guide-promo .summary{font-size:12px}
 .home-photo-feed .shelf-shortcuts a{padding:11px 8px;font-size:11px;gap:4px}
}
@media(max-width:359px){.home-photo-feed .home-card-media{height:290px}.home-photo-feed .gallery-masthead h1{font-size:20px}}

/* Mobile card collections use two columns; desktop roles and sidebar stay as configured. */
@media(max-width:767px){
 .home-photo-feed .gallery-news-list,.home-photo-feed .home-product-grid,.home-photo-feed .home-news-archive,.home-photo-feed .reading-recommendations .reading-cards,.home-photo-feed .home-explanation-section .reading-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;min-width:0}
 .home-photo-feed .home-card,.home-photo-feed .home-card-link,.home-photo-feed .home-card-copy{min-width:0;max-width:100%;box-sizing:border-box}
 .home-photo-feed .home-card-media{height:clamp(140px,44vw,200px);padding:6px;min-width:0}
 .home-photo-feed .home-card-copy{padding:10px;gap:6px}
 .home-photo-feed .home-card h3{font-size:14px;line-height:1.6;white-space:normal;overflow-wrap:break-word;word-break:normal;line-break:strict;hyphens:none}
 .home-photo-feed .home-card-meta{font-size:10px;gap:3px 5px;overflow-wrap:anywhere}
 .home-photo-feed .home-card-meta .tag{font-size:9px;padding:1px 4px}
 .home-photo-feed .home-card-release{font-size:11px;line-height:1.6}
 .home-photo-feed .home-card-action{display:none}
 .home-photo-feed .home-explanation-section .reading-card-main{display:flex;flex-direction:column;min-width:0}
 .home-photo-feed .reading-recommendations .reading-card-image,.home-photo-feed .home-explanation-section .reading-card-image{width:100%;height:clamp(140px,44vw,200px);min-height:0}
 .home-photo-feed .home-explanation-section .reading-card-copy{padding:10px}
 .home-photo-feed .home-explanation-section .reading-card-copy h3{font-size:14px;line-height:1.6}
 .home-photo-feed .product-img{min-height:0;height:clamp(140px,44vw,200px)}
 .home-photo-feed .home-sidebar-list,.home-photo-feed .home-info-sidebar .agenda-panel,.home-photo-feed .home-info-sidebar .shelf-questions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px;min-width:0}
 .home-photo-feed .home-info-sidebar .agenda-panel>.section-head,.home-photo-feed .home-info-sidebar .agenda-panel>.button,.home-photo-feed .home-info-sidebar .shelf-questions>h2{grid-column:1/-1}
 .home-photo-feed .home-sidebar-item,.home-photo-feed .home-info-sidebar .shelf-agenda{display:flex;flex-direction:column;min-width:0;align-items:stretch;padding:0 0 10px;gap:7px}
 .home-photo-feed .home-sidebar-item>img,.home-photo-feed .home-info-sidebar .shelf-agenda>img{width:100%;height:140px;max-width:100%;object-fit:contain;box-sizing:border-box}
 .home-photo-feed .home-sidebar-item b,.home-photo-feed .home-info-sidebar .shelf-agenda b,.home-photo-feed .home-info-sidebar .shelf-questions b{font-size:13px;line-height:1.6;overflow-wrap:anywhere}
 .home-photo-feed .home-info-sidebar .shelf-agenda>span:last-child,.home-photo-feed .home-info-sidebar .shelf-questions small{display:none}
 .home-photo-feed .home-info-sidebar .shelf-questions>a{min-width:0;width:auto;margin:0;padding:10px 14px 10px 0}
}

/* Preserve the same mobile card image and title slots on the photo-feed homepage. */
@media(max-width:767px){
 body main .home-photo-feed .reading-recommendations .reading-card-image,body main .home-photo-feed .home-explanation-section .reading-card-image{display:block;position:relative;width:100%;height:auto;min-height:0;aspect-ratio:1/1;overflow:hidden}
 body main .home-photo-feed .home-explanation-section .reading-card-main{display:flex;flex-direction:column}
 body main .home-photo-feed .home-card h3,body main .home-photo-feed .home-product-grid .home-card h3,body main .home-photo-feed .home-explanation-section .reading-card-copy h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;font-size:14px;line-height:1.5;min-height:calc(var(--figure-card-size)*2.8);max-height:calc(var(--figure-card-size)*2.8);overflow:hidden;text-overflow:ellipsis;white-space:normal;word-break:normal;overflow-wrap:break-word;line-break:strict}
}

/* 2026-10-20: retain the site's desktop feed; mobile cards are image, title, copy. */
@media(max-width:767px){
 body main .home-photo-feed :is(.gallery-news-list,.home-product-grid,.home-news-archive,.reading-recommendations .reading-cards,.home-explanation-section .reading-cards){display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
 body main .home-photo-feed :is(.gallery-news-list,.home-product-grid,.home-news-archive)>*{grid-column:auto;grid-row:auto}
 body main .home-photo-feed :is(.home-card,.home-card-link){display:flex;flex-direction:column;width:100%;max-width:100%;min-width:0;height:auto;min-height:0}
 body main .home-photo-feed :is(.home-card-media,.reading-recommendations .reading-card-image,.home-explanation-section .reading-card-image){display:block;position:relative;order:-2;width:100%;min-width:0;height:auto;min-height:0;aspect-ratio:16/10;flex:none}
 body main .home-photo-feed .home-card-media img{position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain}
 body main .home-photo-feed :is(.home-card-copy,.reading-card-copy){display:flex;flex-direction:column;position:static;inset:auto;order:0;width:100%;min-width:0;min-height:0}
 body main .home-photo-feed :is(.gallery-news-list,.home-product-grid,.home-news-archive) .home-card h3,body main .home-photo-feed .home-explanation-section .reading-card-copy h3,body main .home-photo-feed .reading-recommendations .reading-card-copy h3{order:-1;position:static;min-width:0;min-height:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
 body main .home-photo-feed .home-card-meta{order:0;height:auto;min-height:0}
}

@media(max-width:767px){
 body main .home-photo-feed .home-info-sidebar .home-sidebar-list{display:grid;grid-template-columns:minmax(0,1fr);min-width:0}
 body main .home-photo-feed .home-info-sidebar :is(.home-sidebar-item,.shelf-agenda)>img{width:100%;height:auto;aspect-ratio:16/10;object-fit:contain;order:-2}
 body main .home-photo-feed .home-info-sidebar :is(.home-sidebar-item,.shelf-agenda)>span:has(b){display:flex;flex-direction:column;width:100%;min-width:0}
 body main .home-photo-feed .home-info-sidebar :is(.home-sidebar-item,.shelf-agenda) b{order:-1;min-height:0}
}

/* The shared desktop-only image-first article rail lives inside the existing TOP sidebar. */
@media(min-width:1100px){
 body main .home-photo-feed .home-info-sidebar .home-sidebar-products{display:block;min-width:0}
 body main .home-photo-feed .home-sidebar-products h2{font-size:18px;line-height:1.5;margin:20px 0 12px;padding:0 0 8px;border-bottom:2px solid #54774b}
 body main .home-photo-feed .home-sidebar-products .detail-related-card{background:#fff;border:1px solid #dbe3d9;border-radius:4px;padding:8px;margin:0 0 12px}
 body main .home-photo-feed .home-sidebar-products .detail-related-card a{display:block;text-decoration:none}
 body main .home-photo-feed .home-sidebar-products .detail-related-card img{display:block;width:100%;height:auto;max-height:360px;object-fit:contain}
 body main .home-photo-feed .home-sidebar-products .detail-related-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;font-size:15px;line-height:1.5;font-weight:700;margin:7px 0 3px}
 body main .home-photo-feed .home-sidebar-products .detail-related-price{display:block;font-size:14px;line-height:1.5;color:#26372f}
 body main .home-photo-feed .home-sidebar-products .detail-related-note{display:none}
}
@media(max-width:1099px){body main .home-photo-feed .home-info-sidebar .home-sidebar-products{display:none}}

/* R8 desktop density: retain the photo-led top, use the shared 300px rail and two natural-height columns. */
@media(min-width:1120px){
 body main .gallery-home.container{box-sizing:border-box;width:min(1280px,100%);max-width:none;padding-inline:28px}
 body main .home-photo-feed .home-content-layout{grid-template-columns:minmax(0,1fr) 300px;gap:28px}
 body main .home-photo-feed .home-main-column :is(.gallery-news-list,.home-product-grid,.home-news-archive,.reading-recommendations .reading-cards,.home-explanation-section .reading-cards){display:block;columns:2;column-gap:20px;min-width:0}
 body main .home-photo-feed .home-main-column :is(.gallery-news-list,.home-product-grid,.home-news-archive)>.home-card,
 body main .home-photo-feed .home-main-column :is(.reading-recommendations,.home-explanation-section) .reading-card{break-inside:avoid;display:flex;width:100%;height:auto;min-height:0;margin:0 0 20px}
 body main .home-photo-feed .home-main-column .home-card-link{flex:0 0 auto}
 body main .home-photo-feed .home-main-column .home-card-media{display:block;position:static;height:auto;min-height:0;max-height:none;aspect-ratio:auto;padding:0}
 body main .home-photo-feed .home-main-column .home-card-media img{display:block;position:static;width:100%;height:auto;max-height:none;object-fit:contain}
 body main .home-photo-feed .home-main-column :is(.reading-recommendations,.home-explanation-section) .reading-card-image{width:100%;height:auto;min-height:0;aspect-ratio:auto}
 body main .home-photo-feed .home-main-column :is(.reading-recommendations,.home-explanation-section) .reading-card-image img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
 body main .home-photo-feed .home-sidebar-products .detail-related-card img{max-height:none}
}

/* 2026-10-24: separate product types with the existing photo-card layout. */
.home-photo-feed .home-other-products{margin-top:34px}
.home-photo-feed .home-other-products>.section-head{margin-bottom:18px;padding-bottom:10px}
.home-photo-feed .home-other-products h2{font-size:22px;line-height:1.5}
.home-photo-feed .home-other-category+.home-other-category{margin-top:28px}
.home-photo-feed .home-other-category>.section-head{margin-bottom:12px;padding-bottom:6px}
.home-photo-feed .home-other-category h3{font-size:18px;line-height:1.4}
@media(max-width:767px){
 .home-photo-feed .home-other-products{margin-top:28px}
 .home-photo-feed .home-other-category+.home-other-category{margin-top:22px}
}
