/*
Theme Name: COMUGI & ME — 三浦半島
Author: COMUGI & ME
Description: 柴犬こむぎとボクの三浦半島。写真・散歩・ブログ・みんなのお店を更新できる専用テーマ。
Version: 1.0.4
Requires at least: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: comugi-miura
*/
:root{--ink:#183f48;--blue:#14596a;--paper:#fff;--line:#d8e2e3;--accent:#df7949}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;font-size:16px;line-height:1.85}a{color:inherit;text-decoration:none}button{font:inherit}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #de824e;outline-offset:5px}img{display:block;width:100%;height:100%;object-fit:cover}.header{height:104px;padding:0 5%;display:flex;align-items:center;justify-content:space-between;background:#fff;gap:30px}.brand{line-height:1.3;display:inline-block;white-space:nowrap}.brand-top{display:block;font-size:13px;font-weight:700;letter-spacing:.12em}.brand strong{font-size:30px;letter-spacing:.17em;font-family:"Yu Mincho","Hiragino Mincho ProN",serif}.brand-dot{color:var(--accent)}nav{display:flex;gap:30px;font-size:14px;font-weight:700}nav a{padding:10px 0;border-bottom:1px solid transparent}nav a:hover{border-color:var(--accent)}.menu{display:none}.hero{position:relative;min-height:630px;height:calc(100svh - 150px);max-height:850px;isolation:isolate;overflow:hidden;color:white}.hero>img{position:absolute;inset:0;z-index:-3;object-position:center 55%}.hero-shade{position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(5,37,46,.64),rgba(6,47,63,.12) 80%),linear-gradient(0deg,rgba(7,33,44,.2),transparent 50%)}.hero-copy{padding:75px 8% 80px}.eyebrow{font-size:12px;letter-spacing:.18em;font-weight:700;margin:0 0 20px}.hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:clamp(36px,4.3vw,66px);line-height:1.7;font-weight:600;letter-spacing:.11em;margin:0 0 22px}.hero-copy>p:not(.eyebrow){font-size:16px;line-height:2.2;letter-spacing:.08em}.hero-link{margin-top:20px;display:inline-flex;gap:40px;border-bottom:1px solid #ffffff85;padding:10px 0;font-size:14px}.hero-link span{font-size:22px}.photo-caption{position:absolute;bottom:25px;right:5%;font-size:12px;letter-spacing:.12em}.hero-index{position:absolute;right:6%;top:60px;writing-mode:vertical-rl;font-family:serif;letter-spacing:.4em;font-size:18px;line-height:2}.intro-strip{padding:25px 8%;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:14px;gap:20px}.intro-strip>a{font-size:13px}.intro-strip a span{margin-left:20px}.section{max-width:1320px;margin:auto;padding:100px 8%}.section-head{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:42px}.section-head .eyebrow,.about-copy .eyebrow,.local-block .eyebrow{color:var(--blue)}h2{font-family:"Yu Mincho","Hiragino Mincho ProN",serif;font-size:36px;line-height:1.7;letter-spacing:.07em;margin:0;font-weight:600}h2 span{color:var(--accent)}.section-head>p{font-size:14px;margin:0 0 8px;color:#506b73}.place-grid{display:grid;grid-template-columns:1fr 1fr;gap:36px}.image-wrap{height:300px;position:relative;overflow:hidden}.image-wrap img{transition:transform .5s}.place-card a:hover img{transform:scale(1.025)}.category{position:absolute;left:16px;bottom:16px;background:#fff;padding:5px 14px;font-size:12px}.card-meta{font-size:12px;color:#647b80;margin:22px 0 8px;letter-spacing:.06em}h3{font-size:21px;line-height:1.7;margin:0 0 10px}.place-card p{font-size:14px;margin:0;color:#506b73}.text-link{display:block;margin-top:20px;font-size:13px}.field-notes{margin-top:40px;border-top:1px solid var(--line)}.field-notes details{border-bottom:1px solid var(--line)}summary{cursor:pointer}.field-notes summary{list-style:none;padding:20px 0;display:flex;gap:20px;align-items:center;font-size:14px}.field-notes summary::-webkit-details-marker{display:none}.field-notes summary span{color:#779096;font-size:12px}.field-notes summary b{margin-left:auto;font-size:20px;font-weight:400}.field-notes details>div{padding:0 35px 25px;max-width:800px;font-size:15px}.field-notes details a{border-bottom:1px solid #aac0c4}.about{background:#133f49;color:white;display:grid;grid-template-columns:1fr 1.15fr;padding:85px max(8%,calc((100vw - 1110px)/2));gap:90px;align-items:center}.about-mark{border:1px solid #88a7ad88;padding:35px 32px;position:relative}.about-mark>span,.about-mark>small{font-size:11px;letter-spacing:.16em}.about-mark p{font-family:"Yu Mincho",serif;font-size:48px;letter-spacing:.14em;line-height:1.7;margin:30px 0}.about-copy .eyebrow{color:#97c6cc}.about-copy h2{font-size:29px;margin-bottom:25px}.about-copy>p:not(.eyebrow){font-size:15px;color:#e1ecee;line-height:2.2}.signature{font-family:serif;margin-top:30px;font-size:16px;letter-spacing:.08em}.photo-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:36px;align-items:start}.photo-grid figure{margin:0}.photo-grid figure:nth-child(2){margin-top:75px}.photo-grid img{height:340px}.photo-grid figure:nth-child(2) img{height:275px}.photo-grid figcaption{display:flex;justify-content:space-between;font-size:12px;margin-top:15px;letter-spacing:.06em}.photo-note{font-size:12px;color:#667a7f;margin-top:40px}.local-section{display:grid;grid-template-columns:1fr 1fr;background:#f0f5f6;padding:70px 8%;gap:70px}.local-block+ .local-block{border-left:1px solid #c9d9dc;padding-left:70px}.local-block>p:not(.eyebrow){font-size:15px;color:#4f6970}.empty-note{border-top:1px solid #c9d9dc;margin-top:28px;padding-top:25px}.pill{border:1px solid #8aa7af;border-radius:2px;padding:4px 10px;font-size:12px}.empty-note p{font-size:14px;max-width:360px}.local-block h2{font-size:32px}footer{padding:65px 8% 25px}footer>p{font-family:serif;letter-spacing:.1em;margin:22px 0 45px}.footer-bottom{display:flex;border-top:1px solid var(--line);padding-top:22px;align-items:start;gap:25px;justify-content:space-between;font-size:12px}.footer-bottom small{font-size:12px}.credits{max-width:420px}.credits>div{font-size:12px;padding-top:10px}.credits a{text-decoration:underline}@media(min-width:1500px){.section{padding-left:70px;padding-right:70px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}@media(max-width:850px){.header{height:90px;padding:0 6%}.brand strong{font-size:25px}.brand-top{font-size:12px}nav{gap:16px;font-size:12px}.hero{min-height:580px;height:720px;max-height:calc(100svh - 90px)}.hero-copy{padding:65px 7%}.hero h1{font-size:43px}.hero-index{right:5%;font-size:15px}.section{padding:70px 6%}.about{gap:40px;padding:65px 6%}.about-mark p{font-size:38px}.image-wrap{height:240px}.photo-grid img{height:290px}.local-section{padding:60px 6%;gap:35px}.local-block+ .local-block{padding-left:35px}}@media(max-width:620px){html{scroll-padding-top:20px}.header{height:84px;position:relative;z-index:10}.menu{display:block;border:0;background:none;color:var(--ink);font-size:23px;padding:10px}nav{display:none;position:absolute;top:84px;left:0;right:0;background:white;padding:20px 7%;box-shadow:0 12px 18px #133f4910;gap:5px}nav.open{display:flex;flex-direction:column;font-size:15px}.hero{min-height:560px;height:calc(100svh - 84px);max-height:760px}.hero-copy{padding:56px 7% 45px}.hero .eyebrow{font-size:10px;letter-spacing:.12em}.hero h1{font-size:34px;line-height:1.85;letter-spacing:.04em}.hero-copy>p:not(.eyebrow){font-size:14px}.hero-index{display:none}.hero>img{object-position:64% center}.hero-shade{background:linear-gradient(90deg,#07323dbf,#103e5133)}.photo-caption{font-size:10px}.intro-strip{padding:20px 7%;display:block;font-size:13px}.intro-strip>a{display:block;margin-top:8px;font-size:12px}.section{padding:60px 7%}.section-head{display:block;margin-bottom:28px}.section-head>p{margin-top:15px;font-size:14px}.eyebrow{font-size:11px;margin-bottom:10px}h2{font-size:28px}.place-grid{grid-template-columns:1fr;gap:38px}.image-wrap{height:260px}h3{font-size:20px}.field-notes summary{font-size:13px;gap:10px}.field-notes details>div{padding:0 0 20px}.about{grid-template-columns:1fr;gap:38px;padding:55px 7%}.about-mark{max-width:360px;padding:25px 28px}.about-mark p{font-size:37px;margin:20px 0}.about-copy h2{font-size:27px}.photo-grid{gap:24px;grid-template-columns:1fr}.photo-grid figure:nth-child(2){margin:0 0 0 40px}.photo-grid img{height:270px}.photo-grid figure:nth-child(2) img{height:240px}.photo-note{font-size:12px}.local-section{grid-template-columns:1fr;padding:50px 7%;gap:40px}.local-block+ .local-block{padding:40px 0 0;border-left:0;border-top:1px solid #c9d9dc}.local-block h2{font-size:28px}footer{padding:45px 7% 25px}.footer-bottom{flex-direction:column;gap:15px}} 

/* Keep the author's line breaks across screen sizes. */
.keep-lines{white-space:pre!important;overflow-wrap:normal;word-break:normal}
.long-heading{white-space:pre-wrap!important;overflow-wrap:anywhere}
.place-card,.photo-grid figure,.section-head>div,.about-copy,.about-mark,.local-block{min-width:0}
.place-card p,.added-description{white-space:pre-line;overflow-wrap:anywhere}
.added-description{font-size:14px;color:#506b73;margin-top:12px}
.photo-grid figure:nth-child(n+3){margin-top:0}
@media(max-width:620px){.hero h1{font-size:clamp(24px,6.4vw,34px)}.hero-copy>p:not(.eyebrow){font-size:16px}.about-mark p{font-size:clamp(24px,6.8vw,37px)}.section-head h2,.local-block h2{font-size:clamp(23px,6vw,28px)}.about-copy h2{font-size:clamp(23px,6vw,27px)}.signature{font-size:16px}.photo-grid figcaption{gap:10px;flex-wrap:wrap}}

img[hidden],[hidden]{display:none!important}.no-photo.image-wrap{display:none}.hero.no-photo{background:#143e48}.hero.no-photo .photo-caption{display:none}.photo-grid figure.no-photo{margin-top:0}.field-notes summary .note-title{font-size:14px;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.field-notes summary b{flex-shrink:0}.field-notes details>div{overflow-wrap:anywhere}

/* Give the photograph its own space on phones, even when copy is edited. */
@media(max-width:620px){
  .hero{display:flex;flex-direction:column;height:auto;min-height:0;max-height:none;background:#143e48}
  .hero-copy{order:0;padding:32px 7% 28px;min-width:0}
  .hero h1{margin-bottom:16px;line-height:1.65}
  .hero-link{margin-top:8px}
  .hero>img{order:1;position:static;inset:auto;z-index:auto;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;object-position:57% center}
  .hero-shade{display:none}
  .hero .photo-caption{order:2;position:static;padding:12px 7% 16px;font-size:12px;overflow-wrap:anywhere}
}

.community-section{border-top:1px solid var(--line)}
.community-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.community-card{min-width:0;border:1px solid var(--line);background:#fff}
.community-card>img{width:100%;height:auto;max-height:420px;object-fit:contain;background:#f0f5f6}
.community-card-body{padding:24px}
.community-card-body p{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.community-card h3{overflow-wrap:anywhere}
.community-meta{font-size:14px;color:#506b73;margin-bottom:10px;overflow-wrap:anywhere}
.community-ad{display:inline-block;font-size:12px;border:1px solid #829da3;padding:2px 8px;margin-bottom:14px}
.community-empty{font-size:16px;padding:24px 0;color:#506b73;border-top:1px solid var(--line)}
@media(max-width:620px){.community-grid{grid-template-columns:1fr;gap:24px}.community-card-body{padding:20px}}

.link-cards{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
.link-card{display:inline-flex;align-items:center;gap:10px;min-width:0;max-width:100%;border:1px solid var(--line);padding:10px 14px;transition:border-color .2s}
.link-card:hover{border-color:var(--blue)}
.link-card-visual{display:flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;color:var(--blue)}
.link-card-visual svg{width:28px;height:28px}
.link-card-visual img{width:36px;height:36px;object-fit:contain}
.link-card-label{font-size:14px;font-weight:700;overflow-wrap:anywhere;min-width:0}
@media(max-width:620px){.link-cards{gap:10px}.link-card{padding:8px 12px}}

.latest-blog{border-bottom:1px solid var(--line)}
.latest-blog-all{font-size:14px;border-bottom:1px solid #a8bec3;white-space:nowrap}
.latest-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.latest-blog-card{min-width:0;border:1px solid var(--line)}
.latest-blog-card>a{display:block;height:100%}
.latest-blog-card img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.latest-blog-copy{padding:22px}
.latest-blog-copy time{font-size:13px;color:#506b73}
.latest-blog-copy h3{font-size:20px;margin-top:10px;overflow-wrap:anywhere}
.latest-blog-copy p{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.latest-blog-card a:hover h3{text-decoration:underline;text-underline-offset:4px}
.latest-blog-empty{font-size:16px;color:#506b73}
@media(max-width:850px){.latest-blog-grid{gap:18px}.latest-blog-copy{padding:18px}}
@media(max-width:620px){.latest-blog-grid{grid-template-columns:1fr;gap:24px}.latest-blog-all{display:inline-block;margin-top:16px}}

.field-notes .note-photo{width:100%;height:auto;max-height:480px;object-fit:contain;object-position:left center;margin:0 0 20px}

.note-official{margin-top:14px}

.note-gallery{margin-bottom:24px}.field-notes .note-gallery .note-photo{height:clamp(220px,45vw,440px);margin-bottom:8px;object-position:center}
.note-photo-caption{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 12px}
.note-thumbs{display:flex;gap:10px;overflow-x:auto;padding:4px 4px 10px}
.note-thumbs button{flex:0 0 68px;width:68px;height:68px;background:white;border:2px solid transparent;padding:3px;cursor:pointer}
.note-thumbs button[aria-pressed="true"]{border-color:var(--blue)}.note-thumbs img{width:100%;height:100%;object-fit:cover}

/* WordPress layout */
.hero{background:#143e48}.cm-card summary{list-style:none}.cm-card summary::-webkit-details-marker{display:none}.cm-card{border:1px solid var(--line);align-self:start;background:white;min-width:0}.cm-card summary h3{padding:20px;margin:0}.cm-card summary h3:after{content:' ＋';color:var(--accent)}.cm-card[open] summary h3:after{content:' −'}.cm-card summary>img{height:auto;aspect-ratio:3/2;object-fit:cover}.cm-card .cm-body{padding:0 24px 24px}.cm-body{overflow-wrap:anywhere}.cm-body img{height:auto;max-width:100%;object-fit:contain}.cm-body a{text-decoration:underline;text-underline-offset:4px}.cm-body .wp-block-gallery{display:flex;flex-wrap:wrap;gap:12px}.cm-body .wp-block-gallery figure{flex:1 1 180px;margin:0}.cm-body .wp-block-gallery img{max-height:420px}.cm-body iframe{max-width:100%}.cm-body .wp-block-image{margin:20px 0}.cm-body .wp-block-image img{max-height:650px}.cm-body .wp-block-image figcaption{font-size:13px}.cm-empty{color:#627d84}.cm-article{max-width:900px;margin:auto;padding:60px 7%}.cm-article h1{font-size:clamp(26px,5vw,42px);line-height:1.6}.cm-article>.wp-post-image{height:auto;max-height:600px;object-fit:contain;margin:24px 0}.cm-article time{font-size:13px}.cm-links{display:grid;gap:12px;margin-top:20px}.cm-links a{justify-self:start}.cm-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px}.cm-list .place-card{border-bottom:1px solid var(--line);padding-bottom:22px}.cm-list img{aspect-ratio:3/2;height:auto}.cm-pagination{margin-top:30px}.cm-pagination .page-numbers{padding:8px}.skip-link{position:absolute;left:-10000px}.skip-link:focus{left:10px;top:10px;z-index:100000;background:white;padding:12px}.hero-copy h1,.hero-copy>p{white-space:pre-line}.cm-about-text{white-space:pre-line}.cm-small-image{width:36px!important;height:36px!important;object-fit:contain}.cm-ad{display:inline-block;border:1px solid #829da3;font-size:12px;padding:2px 8px;margin:0 0 12px}.admin-bar .header{margin-top:0}.cm-view-all{display:inline-block;margin-top:26px;border-bottom:1px solid var(--ink)}.cm-body p{white-space:normal}.cm-card summary:hover{background:#f0f5f6}footer a{display:inline-block}footer .cm-footer-links{display:flex;gap:20px;font-size:13px;margin-top:20px}
@media(max-width:620px){.cm-list{grid-template-columns:1fr}.hero h1{font-size:clamp(21px,5.8vw,34px)}.cm-card .cm-body{padding:0 18px 18px}.hero-copy>p:not(.eyebrow){font-size:14px}.hero.no-photo{min-height:0}}

/* 1.0.2: Preserve intentional line breaks in the about panel. */
.about>div{min-width:0}
.about-mark p{font-size:clamp(24px,3vw,44px);white-space:nowrap;letter-spacing:.08em}
@media(max-width:1100px){
 .about{grid-template-columns:minmax(0,1fr);gap:36px}
 .about-mark{width:100%;max-width:440px}
 .about-mark p{font-size:clamp(20px,5.6vw,36px)}
}

/* 1.0.3: Intentional phone line breaks for community and introduction. */
.cm-mobile-copy{display:none}
@media(max-width:620px){
 .cm-desktop-copy{display:none}
 .cm-mobile-copy{display:block}
 .cm-mobile-line{display:block;white-space:nowrap}
 #community-shops h2{font-size:clamp(20px,5.8vw,28px);letter-spacing:.02em}
 .cm-mobile-about{font-size:clamp(12px,3.6vw,15px);letter-spacing:normal}
}

/* 1.0.4: Links to published profile and contact pages. */
.cm-about-link{display:inline-flex;align-items:center;gap:18px;padding:10px 0;border-bottom:1px solid #97c6cc;color:#fff;font-size:16px}
.cm-about-link:hover{text-decoration:underline;text-underline-offset:4px}
footer .cm-footer-links{flex-wrap:wrap;gap:12px 24px}
