/* nk-mobile.css — スマホの見やすさの直し（株式会社ツヨシオカ 2026-11-23）
   テーマのファイルは変えずに、上から重ねる。戻すときはこのファイルを読み込む mu-plugin（nk-mobile.php）を外す。 */

@media only screen and (max-width:640px){

  /* 1. メニュー：英字を日本語の右に小さく並べる（次の項目に食い込まないように） */
  #global li{border-bottom:solid 1px rgba(255,255,255,.35)}
  #global a{height:auto;min-height:48px;line-height:1.4;display:flex;align-items:center;padding:12px 16px;font-size:15px}
  #global a:before{flex:0 0 auto}
  #global a[data-slug]::after{content:attr(data-slug);display:block;margin:0 0 0 auto;padding:0 0 0 12px;
    font-size:11px;line-height:1.2;letter-spacing:.06em;color:rgba(255,255,255,.78);font-weight:400;text-align:right;white-space:nowrap}

  /* 4. 最初の画面：キャッチを主役に */
  .nk-catch{padding:30px 18px 26px}
  .nk-catch .nk-catch-main{font-size:clamp(22px,6.4vw,27px);line-height:1.55;letter-spacing:.08em;font-weight:600;color:#372820;margin-bottom:.7em}
  .nk-catch .nk-catch-main::after{content:"";display:block;width:44px;height:1px;background:#b68d41;margin:.65em auto 0}
  .nk-catch .nk-catch-sub{font-size:15px;line-height:1.85;letter-spacing:.04em}
  .nk-catch .nk-catch-sub2{font-size:14px;margin-top:.5em}

  /* 3. Instagram：大きな写真を横にスライド */
  #sb_instagram #sbi_images{display:flex!important;flex-wrap:nowrap;gap:8px!important;overflow-x:auto;overflow-y:hidden;
    scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:0 0 8px!important;scrollbar-width:none}
  #sb_instagram #sbi_images::-webkit-scrollbar{display:none}
  #sb_instagram #sbi_images .sbi_item{flex:0 0 64%!important;width:64%!important;max-width:280px;scroll-snap-align:start;padding:0!important}
  #sb_instagram .sbi_photo_wrap,#sb_instagram .sbi_photo{width:100%!important}
  #sb_instagram .sbi_photo{height:auto!important;aspect-ratio:1/1;display:block;overflow:hidden;border-radius:4px;border:solid 1px #e6dfd2;box-sizing:border-box}
  #sb_instagram .sbi_photo img{width:100%!important;height:100%!important;object-fit:cover;display:block!important;opacity:1!important}
  #sb_instagram::after{content:"横にスライドしてご覧いただけます";display:block;text-align:center;font-size:12px;letter-spacing:.06em;color:#a78849;margin-top:6px}

  /* 5. フッター：1列・まとまりごとの見出し・押しやすい高さ */
  #footer2 .block{float:none!important;width:auto!important;max-width:none!important;margin:0 0 24px!important}
  #footer2 .block:nth-child(2)::before,#footer2 .block:nth-child(3)::before{display:block;font-size:13px;font-weight:700;letter-spacing:.1em;color:#a78849;
    padding:0 0 6px;border-bottom:solid 1px #d9ccb0;margin-bottom:2px}
  #footer2 .block:nth-child(2)::before{content:"サイトのご案内"}
  #footer2 .block:nth-child(3)::before{content:"撮影プラン"}
  #footer2 .link{margin-bottom:12px}
  #footer2 .link li{border-bottom:solid 1px #e6dfd2}
  #footer2 .link a{display:flex;align-items:center;min-height:46px;padding:8px 22px 8px 2px;line-height:1.45;font-size:14px;position:relative}
  #footer2 .link a::after{content:"\f105";font-family:"Font Awesome 5 Free";font-weight:900;position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:12px;opacity:.6}
  #footer2 .snslist{margin-top:14px}

  /* 6. 下の固定の帯：電話の欄が2行にあふれないように */
  .bottoms .contact2021 .info{display:none}
  .bottoms .contact2021 .num{font-size:1.3em;letter-spacing:0}

  /* 6. スクロールで帯を隠す・出す（nk-mobile.js が html に nk-scrollbars を付けたときだけ） */
  html.nk-scrollbars #header{transition:transform .22s ease-out;will-change:transform}
  html.nk-scrollbars .bottoms{transition:transform .22s ease-out;will-change:transform}
  html.nk-scrollbars.nk-hide-top #header{transform:translateY(-100%)}
  html.nk-scrollbars.nk-hide-bottom .bottoms{transform:translateY(100%)}

  /* 上へ戻るボタン：帯の上に離して置き、帯と一緒に動かす */
  #pagetop{width:40px;height:40px;line-height:40px;font-size:18px;right:14px;bottom:72px;background:rgba(55,40,32,.42);transition:bottom .22s ease-out,opacity .2s}
  #pagetop.hide{bottom:-100px}
  html.nk-scrollbars.nk-hide-bottom #pagetop:not(.hide){bottom:16px}
}

/* 2. Topics：スマホ・タブレットでは1列の横長カード（左に写真・右に日付と題名） */
@media only screen and (max-width:870px){
  .home .newscom.newslist2 .news,
  .home .newscom.newslist2 .news:nth-child(1n){width:100%!important;float:none!important;margin:0!important;padding:14px 0!important;
    border-bottom:solid 1px #e6dfd2;clear:both;font-size:1em}
  .home .newscom.newslist2 .news:first-child{border-top:solid 1px #e6dfd2}
  .home .newscom.newslist2 .news .main{display:grid!important;grid-template-columns:104px 1fr;column-gap:14px;align-items:start}
  .home .newscom.newslist2 .news .image,
  .home .newscom.newslist2 .news .bgimg{grid-column:1;grid-row:1 / span 2;width:104px!important;height:78px!important;padding-top:0!important;
    margin:0!important;float:none!important;background-size:cover;background-position:center;border-radius:4px}
  .home .newscom.newslist2 .news .cat{position:static;grid-column:2;grid-row:1;width:auto;height:auto;line-height:1.3;background:none!important;
    color:#a78849;font-size:12px;letter-spacing:.06em;text-align:left;padding:0;margin:0 0 3px}
  .home .newscom.newslist2 .news .cat::after{display:none}
  .home .newscom.newslist2 .news .title{grid-column:2;grid-row:2;font-size:15px!important;font-weight:700!important;line-height:1.55!important;margin:0!important;
    display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#372820}
  .home .newscom.newslist2 .news .tags{margin:8px 0 0 118px;font-size:11.5px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .home .newscom.newslist2 .news .taglink{margin-right:8px}
}

/* 動きを減らす設定の人には動かさない */
@media (prefers-reduced-motion:reduce){
  html.nk-scrollbars #header,html.nk-scrollbars .bottoms,#pagetop{transition:none!important}
}

/* キャッチの改行はスマホだけ */
.nk-catch .nk-sp{display:none}
@media only screen and (max-width:640px){ .nk-catch .nk-catch-main .nk-sp{display:inline} }

/* ===== 2026-11-23 17時 追加（版 20261123m2） ===== */
@media only screen and (max-width:640px){

  /* メニューの最後に「お問い合わせ」（テーマにある隠れた項目 li.mb を出す）。目立つ色に */
  #global li.mb{display:block}
  #global li.mb a{background:#a78849;font-weight:700}
  #global li.mb a::after{content:attr(data-slug);display:block;margin:0 0 0 auto;padding:0 0 0 12px;font-size:11px;line-height:1.2;
    letter-spacing:.06em;color:rgba(255,255,255,.85);font-weight:400;white-space:nowrap}
  #global li.mb a:not([data-slug])::after{content:"Contact"}
  #global li.mb a .nk-mb-text{display:inline}

  /* 店舗情報の3つの枠：文字を大きく・ゆったり */
  .contactlist .block{padding:24px 18px!important}
  .contactlist .desc{line-height:1.7}
  .contactlist .data{display:flex;align-items:baseline;font-size:15px;line-height:1.6;padding:11px 2px;width:100%;max-width:320px;letter-spacing:.04em;text-align:left}
  .contactlist .data:before{flex:0 0 6em;text-indent:0;font-weight:700}
  .contactlist .desc p{font-size:15px;line-height:1.75;letter-spacing:.04em}
  .contactlist .tel{font-size:28px!important;margin:6px 0 4px}
  .contactlist .tel a{font-size:28px;font-weight:700;letter-spacing:.04em}
  .contactlist .note{font-size:14px!important;color:#5a4a40}
  .contactlist .button a{height:54px;line-height:54px;font-size:16px;font-weight:700;max-width:300px;margin:6px auto 0;border-radius:50px}

  /* 地図を少し低く */
  #map_canvas,#mapbox iframe{height:280px!important}

  /* 電車・車でお越しの方へ：アイコンを小さく題名の横に、本文を広く */
  .accesslist .block{padding:20px 18px!important}
  .accesslist .icon{float:none!important;display:inline-block;width:auto!important;font-size:22px!important;line-height:1!important;margin:0 8px 0 0!important;vertical-align:-2px;color:#a78849}
  .accesslist .text{display:inline}
  .accesslist .title{display:inline;font-size:16px!important;font-weight:700}
  .accesslist .desc{display:block;font-size:15px!important;line-height:1.85!important;margin-top:10px;letter-spacing:.04em}

  /* スタジオからのメッセージ・ほめ写の文 */
  #bottoms .about_text .floatbox,.last_banner .about_text .floatbox{font-size:15px;line-height:1.95;letter-spacing:.04em}

  /* 撮影プランのカード：名前は写真に重ねず、写真の下に（写真を隠さない）。9つ目は横いっぱい */
  .plan_menu li a{background:#fff;border:solid 1px #e6dfd2}
  .plan_menu li .txt{position:static!important;background:#fff!important;color:#372820!important;font-size:13px!important;line-height:1.5!important;
    font-weight:700;letter-spacing:.03em;padding:8px 10px 10px!important;min-height:78px;box-sizing:border-box}
  .plan_menu li:last-child:nth-child(odd){width:100%!important;margin-right:0!important}

  /* ページの下の店の紹介：名前・住所・紹介文を分けて読みやすく */
  #footer2 .info{margin-bottom:28px}
  #footer2 .info .name{font-size:17px!important;line-height:1.55!important;font-weight:700;letter-spacing:.04em;margin-bottom:14px}
  #footer2 .info .name .nk-ft-en+br{display:none}
  #footer2 .info .name .nk-ft-en{display:block;font-size:19px;letter-spacing:.06em;color:#a78849;margin-bottom:4px}
  #footer2 .info .desc{font-size:14.5px;line-height:1.9;letter-spacing:.04em;color:#4a3a30}
  #footer2 .info .desc .nk-ft-addr{display:block;font-weight:700;font-size:15px;color:#372820;padding:10px 12px;background:#fff;border-radius:6px;margin-bottom:12px}
  #footer2 .info .desc .nk-ft-addr::before{content:"\f3c5";font-family:"Font Awesome 5 Free";font-weight:900;color:#a78849;margin-right:8px}
  #footer2 .info .desc .nk-ft-addr+br{display:none}
  #footer2 .info hr{display:none}
  /* 地域のページへのリンクの前に小見出し（nk-mobile.js が付ける） */
  #footer2 .link li.nk-ft-head{border-bottom:solid 1px #d9ccb0;padding:18px 0 6px;font-size:13px;font-weight:700;letter-spacing:.1em;color:#a78849}
}

/* 地域の小見出しはスマホだけ */
#footer2 .link li.nk-ft-head{display:none}
@media only screen and (max-width:640px){ #footer2 .link li.nk-ft-head{display:block} }

/* ===== 2026-11-23 18時 追加（版 20261123m4） ===== */
@media only screen and (max-width:640px){
  /* キャッチの下のお知らせの帯：左右の矢印を見えやすく */
  .topics .navi a{color:#a78849}
  /* Topics の「more」の上をあける */
  .contents-topics .newslist2 + .button{margin-top:28px}
}

/* ===== 2026-11-23 夜 追加（版 20261123m5） ===== */
/* 下の固定の帯：電話番号の下に営業時間と定休日を2行で（nk-mobile.js が2つに分ける。m1 で隠していたのを戻す） */
@media only screen and (max-width:640px){
  .bottoms .contact2021 .info{display:block!important;margin:2px 0 0;font-size:10.5px;line-height:1.35;letter-spacing:.02em;color:#5a4a40;white-space:nowrap}
  .bottoms .contact2021 .info .nk-bh{display:block}
  .bottoms .contact2021 .info .nk-bs{display:none}
}

/* 撮影プラン：管理画面「固定ページ → トップのおすすめプラン」で選んだプランを先頭に大きく
   （nk-feature-plan.php が ul に nk-has-feature、li に nk-feature を付ける。選んでいないときは何も変わらない） */
.plan_menu .nk-feature-label{display:table;font-size:12px;font-weight:700;line-height:1.6;letter-spacing:.08em;color:#fff;background:#a78849;padding:1px 10px;margin:0 0 6px}
.plan_menu.nk-has-feature{display:grid;grid-template-columns:repeat(3,1fr);gap:20px 2%;margin-bottom:0}
.plan_menu.nk-has-feature::before,.plan_menu.nk-has-feature::after{display:none}
.plan_menu.nk-has-feature>li{width:auto!important;margin:0!important;float:none!important;clear:none!important}
.plan_menu.nk-has-feature>li.nk-feature{grid-column:span 2;grid-row:span 2}
.plan_menu.nk-has-feature>li.nk-feature a{height:100%}
.plan_menu.nk-has-feature>li.nk-feature .bgimg{height:100%;padding-top:0;margin:0}
.plan_menu.nk-has-feature>li.nk-feature .txt{font-size:17px;letter-spacing:.06em;padding:12px 20px}
@media only screen and (max-width:640px){
  .plan_menu.nk-has-feature{grid-template-columns:1fr 1fr;gap:10px 2%}
  .plan_menu.nk-has-feature>li.nk-feature{grid-column:1 / -1;grid-row:auto}
  .plan_menu.nk-has-feature>li.nk-feature a{height:auto}
  .plan_menu.nk-has-feature>li.nk-feature .bgimg{height:auto;padding-top:58%}
  .plan_menu.nk-has-feature>li.nk-feature .txt{min-height:0;font-size:16px!important;padding:12px 14px 14px!important}
  .plan_menu.nk-has-feature>li:last-child:nth-child(even){grid-column:1 / -1}
}
@media only screen and (max-width:400px){ .plan_menu.nk-has-feature{gap:0} }

/* ページの下（どの幅でも）：撮影プランの子の項目を少し下げる・リンクの文字を濃い茶色に（前の橙色は地の色との差が小さく読みにくい）・電話と営業時間の表 */
#footer2 .link li.nk-ft-sub a{padding-left:1em}
#footer2 .link a{color:#4a3a30}
#footer2 .nk-ft-hours{margin:0 0 14px;padding:0;font-size:14px;line-height:1.7;color:#372820}
#footer2 .nk-ft-hours div{display:flex;gap:12px;padding:3px 0}
#footer2 .nk-ft-hours dt{flex:0 0 5em;font-weight:700;color:#7a6650;margin:0}
#footer2 .nk-ft-hours dd{margin:0}
#footer2 .nk-ft-hours a{display:inline;color:#372820;font-weight:700;letter-spacing:.04em}

/* ページの下（PC・タブレット）：まとまりの見出し・リンクの文字の大きさと間 */
@media only screen and (min-width:641px){
  #footer2 .block:nth-child(2)::before,#footer2 .block:nth-child(3)::before{display:block;font-size:13px;font-weight:700;line-height:1.6;letter-spacing:.12em;color:#a78849;
    padding:0 0 6px;border-bottom:solid 1px #d9ccb0;margin-bottom:8px}
  #footer2 .block:nth-child(2)::before{content:"サイトのご案内"}
  #footer2 .block:nth-child(3)::before{content:"撮影プラン"}
  #footer2 .link li.nk-ft-head{display:block;font-size:13px;font-weight:700;line-height:1.6;letter-spacing:.12em;color:#a78849;padding:18px 0 6px;border-bottom:solid 1px #d9ccb0;margin-bottom:8px}
  #footer2 .link a{font-size:14px;line-height:1.6;letter-spacing:.04em;padding:4px 0}
  #footer2 .link a:hover{opacity:1;color:#a78849;text-decoration:underline;text-underline-offset:3px}
  #footer2 .link li:first-child a[href$="/plan/"]{font-weight:700}
  #footer2 .info .name .nk-ft-en{color:#a78849}
  #footer2 .info .desc{color:#4a3a30;line-height:1.9}
  #footer2 .info .desc .nk-ft-addr{display:block;font-weight:700;color:#372820;margin:0 0 10px}
  #footer2 .info .desc .nk-ft-addr::before{content:"\f3c5";font-family:"Font Awesome 5 Free";font-weight:900;color:#a78849;margin-right:8px}
  #footer2 .info .desc .nk-ft-addr+br{display:none}
  #footer2 .nk-ft-hours{border-top:solid 1px #e1d8c6;border-bottom:solid 1px #e1d8c6;padding:8px 0}
  #footer2 .info hr{display:none}
}
