/*
Theme Name: 銀座暁法律事務所
Theme URI: https://cinaca.jp/g-akatsukilaw/
Author: CINACA
Description: 銀座暁法律事務所 コーポレートサイト用オリジナルテーマ
Version: 2.0
Text Domain: akatsukilaw
*/

/* ==========================================================================
   Design tokens — 深い焦茶 × ビビッドなオレンジ × ゴールド
   ========================================================================== */
:root{
  --c-dark:#8a3a20;
  --c-dark2:#4f2013;
  --c-dark3:#d9723f;
  --c-primary:#e64339;
  --c-primary-dark:#b7362d;
  --c-gold:#f4a233;
  --c-gold-light:#f9cf6e;
  --c-yellow:#ffe23e;
  --c-text:#241a15;
  --c-text-light:#8a7c72;
  --c-bg:#ffffff;
  --c-bg-alt:#f7f5f2;
  --c-white:#ffffff;
  --c-border:#e9e4dd;
  --font-serif:"Noto Serif JP", serif;
  --font-sans:"Noto Sans JP", sans-serif;
  --maxw:1180px;
  --sidebar-w:272px;
  --topbar-h:88px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-sans);
  color:var(--c-text);
  background:var(--c-bg);
  line-height:1.85;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:var(--c-primary);text-decoration:none;}
a:hover{opacity:.75;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{font-family:var(--font-serif);color:var(--c-dark);line-height:1.5;margin:0 0 .6em;}
p{margin:0 0 1em;}
.container{max-width:var(--maxw);margin:0 auto;padding:0 32px;}
.section{padding:110px 0;}
.section--alt{background:var(--c-bg-alt);}
.section--dark{
  position:relative;overflow:hidden;
  background:linear-gradient(135deg,var(--c-dark3) 0%,var(--c-dark) 45%,var(--c-dark2) 100%);color:#f7ece0;
}
.section--dark h2,.section--dark h3{color:#fff;}

.section-head{text-align:center;margin-bottom:64px;}
.section-head.is-left{text-align:left;}
.section-head .en{
  align-items:center;gap:14px;
  font-family:var(--font-serif);letter-spacing:.32em;
  font-size:12.5px;margin-bottom:18px;text-transform:uppercase;
}
.section-head .en::before{content:"";width:34px;height:1px;background:var(--c-primary);}
.section-head.is-left .en::before{order:-1;}
.section-head h2{font-weight:400;}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:16px 40px;border-radius:100px;font-weight:700;font-size:15px;letter-spacing:.03em;
  border:1.5px solid var(--c-primary);transition:.25s;
}
.btn::after{content:"→";transition:transform .25s;}
.btn:hover::after{transform:translateX(4px);}
.btn--primary{background:var(--c-primary);color:#fff;}
.btn--primary:hover{background:var(--c-primary-dark);opacity:1;}
.btn--gold{background:var(--c-gold);border-color:var(--c-gold);color:var(--c-dark);}
.btn--gold:hover{background:var(--c-gold-light);opacity:1;}

/* photo placeholder */
.photo-ph{
  background:repeating-linear-gradient(135deg,#efe4d9,#efe4d9 12px,#e7d9ca 12px,#e7d9ca 24px);
  border:1px dashed #c9b8a5;color:#8a7565;
  display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:13px;line-height:1.6;padding:12px;border-radius:6px;min-height:220px;
}

/* decorative dawn-rays pattern, used as background texture */
.deco-rays{
  position:absolute;inset:0;pointer-events:none;opacity:.5;
}

/* ==========================================================================
   Header — 通常の横並びヘッダー（sticky）
   ========================================================================== */
.l-header{
  position:sticky;top:0;z-index:200;background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--c-border);backdrop-filter:blur(6px);
}
.l-header__in{
  max-width:1400px;margin:0 auto;padding:14px 32px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.l-header__logo{display:block;flex:0 0 auto;}
.l-header__logo img{height:52px;width:auto;display:block;}

.l-nav{flex:1;display:flex;justify-content:flex-end;margin-right:32px;}
.l-nav ul{display:flex;gap:34px;}
.l-nav a{
  font-family:var(--font-serif);font-weight:400;letter-spacing:.1em;
  position:relative;padding:6px 0;
}
.l-nav a::after{
  content:"";position:absolute;left:0;right:100%;bottom:0;height:2px;background:var(--c-primary);
  transition:right .25s;
}
.l-nav a:hover{opacity:1;color:var(--c-primary);}
.l-nav a:hover::after{right:0;}

.l-header__cta{display:flex;align-items:center;gap:18px;flex:0 0 auto;}
.l-header__tel{
  display:flex;align-items:center;gap:14px;
  position:relative;overflow:hidden;
  border-radius:14px;padding:9px 20px 10px;
  background:linear-gradient(135deg,#C44126 0%,#CF6E2A 55%,#DA9726 100%);
  
  transition:box-shadow .2s,transform .2s;
}
.l-header__tel::before{
  content:"";position:absolute;top:0;left:0;right:0;height:3px;
  background:linear-gradient(90deg,var(--c-gold),var(--c-gold-light));
}
.l-header__tel:hover{opacity:1;transform:translateY(-1px);}
.l-header__tel-icon{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;
  display:flex;align-items:center;justify-content:center;
}
.l-header__tel-text{display:flex;flex-direction:column;}
.l-header__tel-num{font-family:var(--font-serif);font-size:20px;font-weight:700;color:#fff;letter-spacing:.02em;line-height:1.2;}
.l-header__tel-divider{display:block;width:100%;height:1px;background:rgba(255,255,255,.22);margin:6px 0 5px;}
.l-header__tel-hours{display:flex;flex-direction:column;gap:3px;}
.l-header__tel-hours-row{display:flex;align-items:center;gap:6px;font-family:var(--font-sans);font-size:10.5px;font-weight:400;color:rgba(255,255,255,.8);}
.l-header__tel-hours-row em{
  flex:0 0 auto;font-style:normal;font-size:9px;font-weight:700;color:var(--c-dark2);
  background:var(--c-gold-light);border-radius:4px;padding:1px 6px;letter-spacing:.02em;
}
.l-header__cta .btn{padding:13px 30px;font-size:14px;}
.l-menu-btn{display:none;background:none;border:none;cursor:pointer;padding:8px;}
.l-menu-btn span{display:block;width:24px;height:2px;background:var(--c-dark);margin:5px 0;transition:.2s;}

@media(max-width:960px){
  .l-header__logo img{height:38px;}
  .l-nav{display:none;}
  .l-header__tel{display:none;}
  .l-header__cta .btn{padding:11px 22px;font-size:13px;}
  .l-menu-btn{display:block;}
}

/* モバイルメニュー（ドロワー） */
.l-nav.is-open{
  display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;
  background:#fff;padding:20px 24px;border-bottom:1px solid var(--c-border);
}
.l-nav.is-open ul{display:flex;flex-direction:column;gap:4px;width:100%;}
.l-nav.is-open a{display:block;padding:12px 4px;font-size:15px;border-bottom:1px solid var(--c-border);}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position:relative;overflow:hidden;
  background:var(--c-dark);color:#fff;
  display:flex;align-items:center;
}
.hero-slides{position:absolute;inset:0;z-index:0;}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.8s ease;}
.hero-slide.is-active{opacity:1;}
.hero-slide img,.hero-slide .hero-slide__ph{width:100%;height:100%;object-fit:cover;min-height:0;border:none;border-radius:0;}
.hero::before{
  content:"";position:absolute;inset:0;z-index:1;
}
.hero__rays{
  display:none;
  position:absolute;inset:0;z-index:1;opacity:.7;mix-blend-mode:screen;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Ccircle cx='980' cy='120' r='430' fill='none' stroke='white' stroke-opacity='0.16' stroke-width='1'/%3E%3Ccircle cx='980' cy='120' r='300' fill='none' stroke='white' stroke-opacity='0.12' stroke-width='1'/%3E%3Ccircle cx='140' cy='680' r='320' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3Ccircle cx='1080' cy='700' r='150' fill='none' stroke='white' stroke-opacity='0.14' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:cover;
}
.hero__in{position:relative;z-index:2;width:100%;max-width:1400px;margin:0 auto;padding:0 32px;}
.hero__photo{position:absolute;top:0;right:0;bottom:0;width:70%;z-index:1;clip-path:polygon(6% 0,100% 0,100% 100%,0 100%);}
.hero__photo img{width:100%;height:100%;object-fit:cover;object-position:center 15%;display:block;}

.hero__content{max-width:620px;}
.hero__eyebrow{
  align-items:center;gap:14px;
  color:#fff;margin-bottom:28px;font-family:var(--font-serif);
}
.hero__eyebrow::before{content:"";width:34px;height:1px;background:var(--c-gold);}
.hero h1{color:#fff;text-shadow:0 2px 24px rgba(20,8,4,.35);}
.hero h1 .line{display:inline-block;color:#fff;padding:8px 20px;margin-bottom:6px;white-space:nowrap;line-height:1.3;}
.hero h1 em{color:#fff;}
.hero p{color:#fff;font-size:16px;}
.hero__actions{display:flex;gap:18px;flex-wrap:wrap;}
@media(max-width:640px){ .hero h1{font-size:34px;} .hero__photo{display:none;} }

/* page header (for sub pages) */
.page-header{
  position:relative;padding:100px 0 70px;color:#fff;overflow:hidden;
  background:linear-gradient(125deg,var(--c-dark3) 0%,var(--c-dark) 50%,var(--c-dark2) 100%);
}
.page-header::before{
  content:"";position:absolute;inset:0;opacity:.7;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='400'%3E%3Ccircle cx='1000' cy='0' r='300' fill='none' stroke='white' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='120' cy='380' r='220' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:cover;
}
.page-header .container{position:relative;z-index:1;}
.page-header h1{color:#fff;font-size:36px;}
.page-header .bc{font-size:12.5px;color:var(--c-gold-light);letter-spacing:.05em;position:relative;z-index:1;}
.page-header .bc a{color:#f0dcc2;}

/* ==========================================================================
   Intro / message
   ========================================================================== */
.intro{padding:120px 0 90px;}
.intro__in{margin:0 auto;text-align:center;}
.intro__in p{color:var(--c-text);}

/* ==========================================================================
   Features
   ========================================================================== */
.features{display:grid;gap:2px;background:var(--c-border);border:1px solid var(--c-border);}
.feature{background:#fff;padding:44px 28px;}
.feature__num{font-family:var(--font-serif);color:var(--c-primary);letter-spacing:.15em;margin-bottom:18px;}
.feature h3{margin-bottom:14px;}
.feature p{margin:0;}
@media(max-width:900px){.features{grid-template-columns:repeat(2,1fr);}}
@media(max-width:520px){.features{grid-template-columns:1fr;}}

/* ==========================================================================
   Services (top page boxes)
   ========================================================================== */
.services-main{display:grid;grid-template-columns:1fr 1fr;gap:2px;margin-bottom:2px;background:var(--c-border);}
.services-main__box{
  position:relative;padding:52px 40px;background:var(--c-dark);color:#fff;overflow:hidden;
}
.services-main__box::before{
  content:"";position:absolute;inset:0;
}
.services-main__box *{position:relative;z-index:1;}
.services-main__box .tag{display:inline-block;font-size:11.5px;letter-spacing:.18em;background:var(--c-gold);padding:5px 14px;border-radius:100px;margin-bottom:20px;font-weight:700;}
.services-main__box h3{color:#fff;font-size:25px;}
.services-main__box p{color:#fff;margin-bottom:24px;}
.services-sub{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:var(--c-border);}
.services-sub li{background:#fff;padding:24px 16px;text-align:center;font-size:14px;font-weight:700;color:var(--c-dark);}
@media(max-width:820px){.services-main{grid-template-columns:1fr;} .services-sub{grid-template-columns:repeat(2,1fr);}}
@media(max-width:480px){.services-sub{grid-template-columns:1fr;}}

/* ==========================================================================
   Message (代表挨拶)
   ========================================================================== */
.message{display:grid;grid-template-columns:380px 1fr;gap:70px;align-items:start;}
.message__photo .photo-ph{aspect-ratio:3/4;min-height:0;border-radius:4px;}
.message__body .role{color:var(--c-primary);font-size:13px;letter-spacing:.15em;margin-bottom:8px;font-weight:700;}
.message__body h3{font-size:26px;margin-bottom:26px;}
.message__body p{font-size:15.5px;color:var(--c-text);}
.message__points{margin-top:28px;display:flex;flex-direction:column;gap:12px;}
.message__points li{padding-left:24px;position:relative;color:var(--c-text);font-weight:600;}
.message__points li::before{content:"";position:absolute;left:0;top:7px;width:10px;height:10px;background:var(--c-primary);border-radius:2px;transform:rotate(45deg);}
@media(max-width:780px){.message{grid-template-columns:1fr;}.message__photo{max-width:280px;margin:0 auto;}}
.section--dark .message__body p,
.section--dark .message__points li{color:#f7f0e8;}
.section--dark .message__body .role{color:var(--c-gold-light);}

/* ==========================================================================
   News list
   ========================================================================== */
.news-list{border-top:1px solid var(--c-border);}
.news-item{display:flex;gap:28px;padding:22px 0;border-bottom:1px solid var(--c-border);align-items:baseline;}
.news-item time{font-family:var(--font-serif);font-size:13.5px;color:var(--c-text-light);flex:0 0 110px;}
.news-item .cat{flex:0 0 auto;font-size:11px;padding:4px 14px;background:var(--c-bg-alt);color:var(--c-primary);border-radius:100px;font-weight:700;}
.news-item a{flex:1;font-size:15px;color:var(--c-text);}
.news-item a:hover{color:var(--c-primary);}
.news-more{text-align:center;margin-top:40px;}
@media(max-width:560px){.news-item{flex-wrap:wrap;gap:8px 16px;}.news-item a{flex-basis:100%;order:3;}}

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band{
  position:relative;overflow:hidden;
  color:#fff;padding:64px 0;text-align:center;
}
.cta-band::before{
  content:"";position:absolute;inset:0;opacity:.8;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='500'%3E%3Ccircle cx='980' cy='60' r='340' fill='none' stroke='white' stroke-opacity='0.14' stroke-width='1'/%3E%3Ccircle cx='150' cy='460' r='260' fill='none' stroke='white' stroke-opacity='0.1' stroke-width='1'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:center;background-size:cover;
}
.cta-band .container{position:relative;}
.cta-band h2{color:#fff;font-size:27px;margin-bottom:12px;}
.cta-band .note{margin-bottom:32px;}
.cta-band__actions{display:flex;gap:20px;justify-content:center;flex-wrap:wrap;align-items:center;}
.cta-band__tel{font-family:var(--font-serif);font-size:28px;font-weight:700;color:#fff;}
.cta-band__tel small{display:block;font-weight:400;font-family:var(--font-sans);}
.cta-badges{display:flex;gap:10px;justify-content:center;margin-top:22px;flex-wrap:wrap;}
.cta-badges span{border:1px solid rgba(255,255,255,.55);border-radius:100px;color:#fff;}

/* ==========================================================================
   Office / lawyers / staff
   ========================================================================== */
.office-photo .photo-ph{aspect-ratio:16/8;min-height:0;margin-bottom:40px;}
.office-lead{max-width:780px;margin:0 auto 70px;font-size:16px;}
.office-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--c-border);}
.office-table th,.office-table td{padding:20px 24px;border-bottom:1px solid var(--c-border);text-align:left;font-size:inherit;}
.office-table th{background:var(--c-bg-alt);font-weight:700;color:var(--c-dark);}
.office-table tr:last-child th,.office-table tr:last-child td{border-bottom:none;}
.map-frame{margin-top:44px;border:1px solid var(--c-border);}
.map-frame iframe{width:100%;height:380px;border:0;display:block;}

.staff-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:2px;margin-top:24px;background:var(--c-border);border:1px solid var(--c-border);}
.staff-card{background:#fff;text-align:center;padding:36px 24px;}
.staff-card .photo-ph{aspect-ratio:1/1;border-radius:50%;max-width:150px;margin:0 auto 20px;min-height:0;}
.staff-card h4{font-size:17px;margin-bottom:6px;}
.staff-card .role{font-size:12.5px;color:var(--c-primary);font-weight:700;letter-spacing:.05em;}
@media(max-width:600px){.staff-grid{grid-template-columns:1fr;}}

/* ==========================================================================
   Lawyers detail
   ========================================================================== */
.lawyer{display:grid;grid-template-columns:320px 1fr;gap:56px;padding:64px 0;border-bottom:1px solid var(--c-border);}
.lawyer:last-child{border-bottom:none;}
.lawyer__photo .photo-ph{aspect-ratio:3/4;min-height:0;border-radius:4px;}
.lawyer__name{font-size:27px;margin-bottom:4px;}
.lawyer__name small{display:block;font-size:13px;color:var(--c-text);font-family:var(--font-sans);margin-top:6px;font-weight:400;}
.lawyer__meta{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 26px;}
.lawyer__meta span{font-size:12px;background:var(--c-dark);color:#fff;padding:6px 16px;border-radius:100px;font-weight:700;}
.lawyer dl{display:grid;grid-template-columns:110px 1fr;gap:12px 20px;font-size:14px;margin-top:26px;}
.lawyer dt{color:var(--c-dark);font-weight:700;}
.lawyer dd{margin:0;}
@media(max-width:760px){.lawyer{grid-template-columns:1fr;}.lawyer__photo{max-width:240px;}}

/* ==========================================================================
   Services detail
   ========================================================================== */
.service-block{padding:60px 0;border-bottom:1px solid var(--c-border);}
.service-block:last-child{border-bottom:none;}
.service-block__head{display:flex;align-items:baseline;gap:20px;margin-bottom:22px;}
.service-block__head .no{font-family:var(--font-serif);font-size:16px;color:var(--c-primary);font-weight:700;}
.service-block__head h3{font-size:24px;margin:0;}
.service-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px;}
.service-tags span{font-size:12.5px;background:var(--c-bg-alt);padding:6px 16px;border-radius:100px;color:var(--c-dark);font-weight:600;}
.service-industries{margin-top:18px;font-size:13px;color:var(--c-text-light);}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:2px;background:var(--c-border);}
.contact-info{background:linear-gradient(165deg,var(--c-dark) 0%,var(--c-dark2) 100%);color:#fff;padding:44px 38px;}
.contact-info h3{color:#fff;font-size:18px;margin-bottom:20px;}
.contact-info .tel{font-family:var(--font-serif);font-size:30px;font-weight:700;color:var(--c-gold-light);display:block;margin-bottom:2px;}
.contact-info dl{margin-top:24px;font-size:13.5px;}
.contact-info dl div{display:flex;gap:14px;padding:10px 0;border-top:1px solid rgba(255,255,255,.15);}
.contact-info dt{flex:0 0 74px;color:var(--c-gold-light);}
.contact-info dd{margin:0;color:#fff;}
.mwform-radio-field,.mwform-checkbox-field{display:inline-block;margin-right:14px;}
.contact-form-wrap{background:#fff;padding:38px;}
.contact-form-wrap input[type=text],
.contact-form-wrap input[type=email],
.contact-form-wrap input[type=tel],
.contact-form-wrap textarea,
.contact-form-wrap select{
  width:100%;padding:13px 16px;border:1px solid var(--c-border);border-radius:6px;font-size:14.5px;font-family:var(--font-sans);
}
.contact-form-wrap textarea{min-height:150px;}
.mw_wp_form .horizontal-item{margin-bottom:22px;}
.contact-form-wrap label{font-weight:700;font-size:13.5px;display:block;margin-bottom:9px;}
.req{color:#fff;background:var(--c-primary);font-size:11px;margin-left:6px;padding:2px 9px;border-radius:100px;}
.mwform-file-delete-box,.error{color:#c0392b;font-size:12.5px;margin-top:4px;display:block;}
.contact-form-wrap .submit-btn{text-align:center;margin-top:14px;}
.contact-form-wrap input[type=submit],.contact-form-wrap input[type=button]{
  background:var(--c-primary);color:#fff;border:none;padding:16px 48px;font-size:15px;font-weight:700;border-radius:100px;cursor:pointer;
}
.contact-form-wrap input[type=button]{background:transparent;color:var(--c-text-light);border:1.5px solid var(--c-border);margin-right:12px;}
.contact-complete{text-align:center;padding:40px 0;}
@media(max-width:820px){.contact-grid{grid-template-columns:1fr;}}

/* ==========================================================================
   Blog / column list
   ========================================================================== */
.post-list{display:grid;grid-template-columns:repeat(3,1fr);}
.post-card{background:#fff;}
.post-card .photo-ph{aspect-ratio:16/9;border-radius:0;min-height:0;}
.post-card__body{padding:24px;}
.post-card time{font-size:12px;color:var(--c-text-light);}
.post-card h3{font-size:15.5px;margin:10px 0 0;}
.post-card h3 a{color:var(--c-dark);}
@media(max-width:820px){.post-list{grid-template-columns:repeat(2,1fr);}}
@media(max-width:560px){.post-list{grid-template-columns:1fr;}}

.single-article{margin:0 auto;}
.single-article time{color:var(--c-text-light);font-size:13px;}
.single-article h1{font-size:28px;margin:12px 0 32px;}
.single-article .content p{margin-bottom:1.4em;}
.pagination{display:flex;justify-content:center;gap:10px;margin-top:56px;}
.pagination a,.pagination span{padding:9px 16px;border:1px solid var(--c-border);border-radius:100px;font-size:13.5px;}

/* ==========================================================================
   404
   ========================================================================== */
.error-404{text-align:center;padding:150px 0;}
.error-404 .code{font-family:var(--font-serif);font-size:88px;color:var(--c-primary);margin-bottom:8px;font-weight:700;}

/* ==========================================================================
   Footer
   ========================================================================== */
.l-footer{background:linear-gradient(175deg,var(--c-dark) 0%,var(--c-dark2) 100%);padding:80px 0 34px;}
.l-footer__top{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;margin-bottom:56px;}
.l-footer__logo{margin:0 0 20px;}
.l-footer__logo img{width:230px;height:auto;display:block;}
.l-footer address{font-style:normal;font-size:13.5px;line-height:2.1;}
.l-footer nav ul{display:flex;flex-wrap:wrap;gap:22px 34px;}
.l-footer nav a{font-size:13.5px;font-weight:600;}
.l-footer nav a:hover{color:var(--c-gold-light);}
.l-footer__bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:26px;font-size:12px;text-align:center;color:#fff;}

/* ==========================================================================
   Utility
   ========================================================================== */
.skip-link{position:absolute;left:-9999px;top:0;background:#fff;padding:10px 16px;z-index:999;}
.skip-link:focus{left:10px;top:10px;}

/* Contact Form 7 */
.contact-form-wrap .wpcf7-form-control-wrap{display:block;}
.contact-form-wrap .wpcf7-not-valid-tip{color:#c0392b;font-size:12.5px;margin-top:6px;display:block;}
.contact-form-wrap .wpcf7 form .wpcf7-response-output{margin:22px 0 0;padding:14px 18px;border-radius:6px;font-size:14px;line-height:1.8;}
.contact-form-wrap .wpcf7 form.sent .horizontal-item,.contact-form-wrap .wpcf7 form.sent .submit-btn{display:none;}
.contact-form-wrap .wpcf7-spinner{display:block;margin:12px auto 0;}
.contact-form-wrap .contact-form-title{font-family:var(--font-serif);font-size:18px;font-weight:700;line-height:1.5;letter-spacing:.03em;color:var(--c-dark);margin:0 0 24px;}
/* 表の文字サイズは周囲の本文と同じにする（サイト全体） */
table,th,td{font-size:inherit;}

/* トップ：企業法務・遺産相続カードの見出し装飾（見出しの右に伸びて消えていく金の細線） */
.services-main__box h3{display:flex;align-items:center;gap:20px;margin-bottom:18px;}
.services-main__box h3::after{content:"";flex:1 1 auto;min-width:40px;height:1px;background:linear-gradient(90deg,var(--c-gold-light),rgba(249,207,110,0));}
/* スマホ：見出しの線は下に */
@media (max-width:767px){.services-main__box h3{display:block;}.services-main__box h3::after{display:block;width:120px;min-width:0;margin-top:14px;}}

/* 下層ページ見出し：英字ラベル（トップのセクション見出しと同じ意匠）＋パンくずは見出しの下に */
.page-header h1{margin-bottom:0;}
.page-header__en{display:inline-flex;align-items:center;gap:14px;font-family:var(--font-serif);color:var(--c-gold-light);letter-spacing:.32em;font-size:12.5px;line-height:1.4;margin:0 0 16px;text-transform:uppercase;}
.page-header__en::before{content:"";display:block;width:34px;height:1px;background:var(--c-gold-light);}
.bc-bar{background:#fff;border-bottom:1px solid var(--c-border);}
.bc-bar .bc{margin:0;padding:14px 0;font-size:12.5px;line-height:1.6;color:var(--c-text);letter-spacing:.05em;}
.bc-bar .bc a{color:var(--c-dark);}
.bc-bar .bc a:hover{text-decoration:underline;}

/* お問い合わせ：フォームを上、電話の案内を下に1列で */
.contact-grid--stack{grid-template-columns:1fr;max-width:820px;margin:0 auto;}
.contact-info--tel{text-align:center;padding:36px 38px;}
.contact-info--tel h3{margin-bottom:12px;}
.contact-info--tel .tel{margin-bottom:4px;}
.contact-info__hours{display:block;font-size:13px;color:#fff;letter-spacing:.05em;}

/* ==========================================================================
   テンプレート内のインラインCSSを移設（2026-09-29）
   ========================================================================== */
.section-head.section-head--tight{margin-bottom:28px;}
.section-head.section-head--spaced{margin-top:90px;}
.message__body .message__more{margin-top:26px;}
.empty-note{text-align:center;color:var(--c-text-light);padding:30px 0;}
.empty-note.empty-note--lg{padding:40px 0;}
.single-article.single-article--narrow{max-width:820px;}
.single-article .single-article__back,.single-article__back{text-align:center;margin-top:60px;}
.office-photo{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:50px;}
.staff-card .staff-card__text{font-size:inherit;color:var(--c-text);margin-top:10px;}
.photo-ph.photo-ph--circle{aspect-ratio:1/1;border-radius:50%;max-width:150px;margin:0 auto 18px;}
.photo-ph.photo-ph--portrait{aspect-ratio:3/4;}
.lawyers-note{text-align:center;color:var(--c-text-light);font-size:13px;margin-top:20px;}
.contact-form-wrap.contact-form-wrap--narrow{max-width:640px;margin:0 auto;}
.office-table.office-table--confirm{margin-bottom:30px;}
.contact-complete .contact-complete__note{color:var(--c-text-light);font-size:13.5px;}
.contact-complete .contact-complete__back{margin-top:36px;}
.notfound__lead{color:var(--c-text-light);margin-bottom:36px;}
.contact-form-wrap .contact-form__note{font-size:12px;color:var(--c-text-light);margin-top:16px;}

/* ==========================================================================
   旧：追加CSS（カスタマイザー）から移設（2026-09-29）
   ※ 以前は「外観 › カスタマイズ › 追加CSS」にあった内容。読み込み順を保つため末尾に配置
   ========================================================================== */
/* =========================================================================
 *        
 *    : CINACA
 *    : workspace/02_web-direction/20260907__.md 2
 *    : (yamanishi-law.jp)
 *    :  >  > CSS
 *    ========================================================================= */

/* 1.  */
:root{
	  --c-primary:      #E64339;
	  --c-primary-dark: #B7362D;
	  --c-dark:         #8a3a20;
	  --c-dark2:        #4f2013;
	  --c-dark3:        #d9723f;
	  --c-gold:         #f4a233;
	  --c-gold-light:   #f9cf6e;
	  --c-yellow:       #f9cf6e;
	  --c-text:         #33302b;
	  --c-text-light:   #8c8577;
	  --c-bg:           #faf7f3;
	  --c-bg-alt:       #f2ece3;
	  --c-white:        #ffffff;
	  --c-border:       #e2d9cb;
}

/* 2. */
*, *::before, *::after{
	  border-radius: 0 !important;
}

/* 3.  */
.services-main__box::before{
	  background: linear-gradient(135deg, rgba(179,88,14,.55), transparent 70%);
}
.btn--primary{
	  box-shadow: 0 10px 24px -8px rgba(179,88,14,.55);
}
.deco-rays{
	  background-image:above    radial-gradient(circle at 85% 15%, rgba(227,168,116,.16), transparent 45%),
			    repeating-conic-gradient(from 0deg at 85% 15%, rgba(179,88,14,.05) 0deg 6deg, transparent 6deg 12deg);
}

/* 4.  */
.services-main__box .tag{
	  color: #ffffff;
}

/* 5.  yamanishi-law.jp  */
h1, h2, h3, h4{
	  letter-spacing: .03em;
}
.hero h1{
	  letter-spacing: .04em;
}
.page-header h1{
	  letter-spacing: .04em;
}
.section-head h2{
	  letter-spacing: .04em;
}
.cta-band h2{
	  letter-spacing: .04em;
}

/* 6.  */
.section-head.is-left h2{
	  border-left: 4px solid var(--c-primary);
	  padding-left: 16px;
}

/* ============================================================
 * 7. ヘッダーメニュー文字サイズ拡大
 * ============================================================ */
.l-nav a{
	  font-size: clamp(13px, 1.3vw, 17px);
	  color: #000;
}
@media (max-width: 960px){
	  .l-nav.is-open a{
		    font-size: 17px;
	  }
}

/* ============================================================
 * 8. メインビジュアル高さ短縮・キャッチコピー行間調整
 * ============================================================ */
.hero__eyebrow{
	  display: block;
	  margin: 0 0 16px;
	  font-size: 20px;
	  font-weight: 600;
	  letter-spacing: .12em;
	  line-height: 1.3;
}
.hero__eyebrow::before{
	  display: none;
}
.hero h1{
	  font-size: 44px;
	  line-height: 1.26;
	  margin-bottom: 20px;
}
.hero p{
	  max-width: 620px;
	  margin-bottom: 30px;
}

/* ============================================================
 * 9. メインビジュアル：人物写真プレースホルダーを活かすオーバーレイへ調整
 * ============================================================ */
.hero::before{
	  background: linear-gradient(100deg, rgba(217,72,42,.90) 0%, rgba(230,122,46,.72) 34%, rgba(242,168,42,.40) 58%, rgba(242,168,42,.10) 100%);
}
.hero-slide__ph{
	  color: rgba(255,255,255,.5);
	  border-color: rgba(255,255,255,.22);
}

/* ============================================================
 * 10. キャッチコピー強調ワードを罫線で囲む（eiwa-law-support.com 参考／色は既存パレット）
 * ============================================================ */
.hero h1 em{
	  font-style: normal;
}

/* ============================================================
 * 11. 見出しラベルに背景帯を追加（yamanishi-law.jp の色面装飾技法を参考）
 * ============================================================ */
.section-head .en{
	  display: inline-block;
	  background: linear-gradient(135deg,#D9482A 0%,#F2A82A 100%);
	  color: #fff;
	  padding: 5px 18px;
	  border-radius: 3px;
}
.section-head .en::before{
	  display: none;
}
.section--dark .section-head .en{
	  background: linear-gradient(135deg,#D9482A 0%,#F2A82A 100%);
	  color: #fff;
}

/* ============================================================
 * 12. フッターCTA：背景写真＋半透明オーバーレイ演出（yamanishi-law.jp CONSULTATIONセクション参考）
 *    実写真が届き次第、下記 repeating-linear-gradient を実写真の background-image に差し替えること
 * ============================================================ */
.cta-band{
	  background:
		    linear-gradient(120deg, rgba(217,72,42,.90) 0%, rgba(230,122,46,.80) 55%, rgba(242,168,42,.55) 100%),
		    url('https://cinaca.jp/g-akatsukilaw/wp-content/themes/akatsukilaw/office-room-01.jpg');
	  background-size: cover;
	  background-position: center;
	  background-color: #8a3a20;
}

/* ============================================================
 * 14. ヘッダー電話番号の文字サイズ拡大（代表指示：もう少し大きく）
 * ============================================================ */
.l-header__tel{
	  font-size: 23px;
}
.l-header__tel small{
	  font-size: 11.5px;
}
@media (max-width: 960px){
	  .l-header__tel{
		    font-size: 18px;
	  }
}

/* 15. メインビジュアル見出し背景色をヘッダー電話番号ボックスと同系統の暖色に統一 */
.hero h1 .line{
	  background: linear-gradient(135deg,#D9482A 0%,#E67A2E 55%,#F2A82A 100%);
}

/* ============================================================
 * 15. 選ばれる理由カード：番号・タイトルの文字サイズ拡大
 * ============================================================ */
.feature__num{
	  font-size: 26px;
	  font-weight: 700;
}

/* ============================================================
 * 16. 選ばれる理由カードの説明文：グレーで読みにくいため濃色に変更
 * ============================================================ */
.feature p{
	  color: var(--c-text);
}

/* ============================================================
 * 17. フッターCTA：注記文・バッジ・電話ラベルの文字サイズ拡大
 * ============================================================ */
.cta-band .note{
	  font-size: 16px;
}
.cta-band__tel small{
	  font-size: 13px;
}
.cta-badges span{
	  font-size: 14px;
	  padding: 8px 16px;
}

/* 18. 代表弁護士ご挨拶セクションの斜め線背景は代表確認により削除 */

/* ============================================================
 * 19. btn--light（フッターCTA「お問い合わせフォームへ」等）の標準状態を白背景に変更
 * ============================================================ */
.btn--light{
	  background: #ffffff;
	  color: var(--c-primary-dark);
	  border-color: #ffffff;
}
.btn--light:hover{
	  background: var(--c-bg-alt);
	  color: var(--c-primary-dark);
	  opacity: 1;
}

/* ============================================================
 * 20. 選ばれる理由：PC表示でも2列×2行のグリッドにする（4列だと窮屈で崩れるため）
 * ============================================================ */
.features{
	  grid-template-columns: repeat(2, 1fr);
}

/* ============================================================
 * 21. 見出しの文字化けレンダリング不具合の回避策
 *    「選ばれる理由」等の見出しで「理」「由」等の一部漢字が別字に見える描画不具合を確認。
 *    調査の結果、フォントファイル・エンコーディング・文字コードはすべて正常で、
 *    特定のY座標（サブピクセル位置）でのみ発生するレンダリングエンジン側の再描画不具合と判明。
 *    要素の縦位置をわずかにずらすことで回避できることを確認済み。
 * ============================================================ */
.section-head h2{
	  margin-top: 10px;
}

/* ============================================================
 * 22. メインビジュアル：サイト名(H1)とキャッチコピー(div化)のスタイル
 * ============================================================ */
h1.hero__sitename{
	  font-size: 15px;
	  font-weight: 500;
	  letter-spacing: .08em;
	  color: #ffffff;
	  margin: 0 0 4px;
	  line-height: 1.3;
}
.hero__catch{
	  display: block;
	  font-family: "Noto Serif JP", serif;
	  font-weight: 700;
	  line-height: 1.26;
	  letter-spacing: .04em;
	  color: #ffffff;
	  margin: 0 0 20px;
}
/* ============================================================
 * 23. 「弁護士紹介を見る」等のアウトラインボタン：標準状態を反転（塗り赤×白文字）、hoverでアウトラインに
 * ============================================================ */
.btn--outline{
	  background: var(--c-primary);
	  color: #ffffff;
}
.btn--outline:hover{
	  background: transparent;
	  color: var(--c-primary);
	  opacity: 1;
}

/* ============================================================
 * 24. hero__catch化に伴い、.line の帯背景（元は .hero h1 .line 限定）を再適用
 * ============================================================ */
.hero__catch .line{
	  display: inline-block;
	  background: linear-gradient(135deg, rgb(217, 72, 42) 0%, rgb(230, 122, 46) 55%, rgb(242, 168, 42) 100%);
	  color: #ffffff;
	  padding: 8px 20px;
	  margin-bottom: 6px;
	  white-space: nowrap;
	  line-height: 1.3;
}
.hero__catch{
	  text-shadow: rgba(20, 8, 4, .35) 0 2px 24px;
}
.hero__catch em{
	  font-style: normal;
	  color: #ffffff;
}

/* ============================================================
 * 25. 本文テキストの文字サイズを本文標準（15.5px）に統一
 * ============================================================ */
.services-main__box p{
	  font-size: 15.5px;
}
.message__points li{
	  font-size: 15.5px;
}

/* ============================================================
 * 26. 主な取扱業務／その他対応分野リストの見出し文字サイズを拡大
 * ============================================================ */

/* 25. CTA band text color fix (white) */
.cta-band .note{
	  color: #ffffff;
}
.cta-band__tel small{
	  color: #ffffff;
}

/* 26. Footer text color fix (white) */
.l-footer{
	  color: #ffffff;
}
.l-footer nav a{
	  color: #ffffff;
}

/* 27. Hero JP/EN mobile fit */
@media (max-width: 640px){
	h1.hero__sitename{
		    font-size: 13px;
	}
	.hero__eyebrow{
		    font-size: 13px;
		    letter-spacing: .06em;
	}
}

/* 28. Fluid typography for mobile readability (prevents excessive wrapping) */
.section-head h2{
	  font-size: clamp(24px, 20px + 1.25vw, 32px);
}
.feature h3{
	  font-size: clamp(16px, 14px + 0.625vw, 20px);
}
.feature p{
	  font-size: clamp(13.5px, 12.5px + 0.3125vw, 15.5px);
}
.intro__in p{
	  font-size: clamp(14.5px, 13.25px + 0.39vw, 17px);
}
.services-sub li h3{
	  font-size: clamp(16px, 14.5px + 0.47vw, 19px);
}

/* 29. FEATURES grid mobile fix (single column under 560px, root cause of excessive wrapping) */
@media (max-width: 560px){
	.features{
		    grid-template-columns: 1fr;
	}
}

/* 30. Hero vertical padding reduction (desktop + mobile) and catchphrase overflow fix */
.hero{
	  padding: 90px 0 100px;
	  min-height: 600px;
}
.hero__catch{
	  font-size: clamp(16px, -2px + 5.625vw, 34px);
}
/* 31. Hero paragraph mobile overflow fix (white-space nowrap was causing overflow) */
.hero p{
	  white-space: normal;
	  overflow-wrap: break-word;
	  word-break: break-word;
}
@media (max-width: 640px){
	.hero p{
		    font-size: clamp(13.5px, 12.5px + 0.3125vw, 16px);
		    max-width: 100%;
	}
}

/* 32. Mobile hero photo (below text) and PRACTICE AREAS heading mobile size fix */
.hero__photo-mobile{
	  display: none;
}
@media (max-width: 640px){
	.hero{
		    padding: 60px 0 0;
		    min-height: 480px;
	}
	.hero__photo-mobile{
		    display: block;
		    margin-top: 24px;
		    margin-left: calc(-50vw + 50%);
		    margin-right: calc(-50vw + 50%);
		    width: 100vw;
		    border-radius: 0;
		    overflow: hidden;
	}
	.hero__photo-mobile img{
		    width: 100%;
		    height: auto;
		    display: block;
	}
	.services-main__box h3{
		    font-size: clamp(18px, 11px + 2.1875vw, 25px);
	}
}

/* 33. Intro section (about us) text area width increase for desktop readability */
.intro__in{
	  max-width: 900px;
}

/* CTAボタン：ホバーで赤に反転（お知らせ一覧へボタンと同色） */
.cta-band__actions .btn--light:hover{background:var(--c-primary);color:#fff;border-color:var(--c-primary);opacity:1;}

/* トップのメインビジュアル：PCのみ高さを拡大 */
@media (min-width:1025px){.hero{padding:120px 0 130px;min-height:720px;}}

/* 取扱業務：各分野の見出しを h2 に（見た目は従来の h3 と同じ） */
.service-block .service-block__head h2{font-size:24px;margin:0;}

/* プライバシーポリシー */
.privacy-date{margin-top:40px;text-align:right;}

/* お問い合わせ：見出しを h2 に（見た目は従来の h3 と同じ） */
.contact-info h2{color:#fff;font-size:18px;margin-bottom:20px;}
.contact-info--tel h2{margin-bottom:12px;}

/* 事務所紹介：スタッフ名を h3 に（見た目は従来の h4 と同じ） */
.staff-card h3{font-size:17px;margin-bottom:6px;}

/* お知らせ一覧：3列カード、余白部分のグレー背景なし */
.post-list{background:none;border:0;gap:30px;}
.post-card{border:1px solid rgb(226,217,203);}
@media(max-width:560px){.post-list{gap:20px;}}

/* お知らせ一覧：記事タイトルを h2 に（見た目は従来の h3 と同じ） */
.post-card h2{font-size:15.5px;margin:10px 0 0;}
.post-card h2 a{color:var(--c-dark);}

/* トップ：お知らせ・ブログの記事タイトルは太字にしない */
.news-item a{font-weight:400;}

/* 記事：カテゴリラベル・詳細ページの幅と文字サイズ・アイキャッチ */
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;}
.post-cat{display:inline-block;font-size:11px;line-height:1.4;padding:4px 14px;background:var(--c-bg-alt);color:var(--c-primary);font-weight:700;}
.single-article{max-width:1000px;}
.single-article .content{font-size:16px;}
.single-article .post-meta{margin-bottom:28px;}
.single-article__thumb{margin:0 0 28px;}
.single-article__thumb img{display:block;width:100%;height:auto;}

/* お問い合わせフォーム：2項目目以降の上に余白 */
.wpcf7-form .horizontal-item + .horizontal-item{margin-top:28px;}
/* 固定ページ本文で編集できるようにしたための調整（2026-10-12） */
.section-head p.en{margin-top:0;}
.message__body p.role{margin-bottom:0;}
.services-main__box p.services-main__more{margin-bottom:0;}
h2.service-block__head{font-size:24px;}
.service-tags li{font-size:12.5px;background:var(--c-bg-alt);padding:6px 16px;border-radius:100px;color:var(--c-dark);font-weight:600;}
.contact-info .contact-info__tel{margin:0;}
.office-photo img,.content img{height:auto;}
.lawyers-intro{margin-bottom:20px;}
.lawyer__photo img,.message__photo img{width:100%;height:auto;border-radius:4px;}
.staff-card img{height:auto;margin:0 auto 20px;}
.lawyer__meta li{font-size:12px;background:var(--c-dark);color:#fff;padding:6px 16px;border-radius:100px;font-weight:700;}
/* メインビジュアルのキャッチコピー：PCでは少し大きく（2026-10-12） */
@media (min-width:1025px){.hero__catch{font-size:40px;}}
/* 事務所紹介：スマホでは上部の写真を縦に並べる（2026-10-12） */
@media (max-width:767px){.office-photo{grid-template-columns:1fr;gap:16px;}}
/* 弁護士紹介：スマホでは1人目の写真の上の余白を詰める（2026-10-12） */
@media (max-width:767px){.lawyer:first-child{padding-top:0;}}
/* 弁護士紹介：写真を中央寄せ（縦並びになるスマホ・タブレット表示で効く） */
.lawyer__photo{width:100%;margin-left:auto;margin-right:auto;}
/* 事務所概要の表：見出し列（th）の幅を小さく（2026-10-12） */
.office-table th{width:140px;}
@media (max-width:767px){.office-table th{width:92px;}.office-table th,.office-table td{padding:14px 12px;}}
/* メインビジュアル：オレンジ部分の斜めストライプ装飾（スライドショー廃止後も固定で表示） */
.hero{background-image:repeating-linear-gradient(135deg,#efe4d9,#efe4d9 12px,#e7d9ca 12px,#e7d9ca 24px);}
/* スマホ：本文の文字サイズを全ページ 15.5px に統一（トップ「主な取扱業務」カードの説明文と同じ） */
@media (max-width:767px){body{font-size:15.5px;}.hero p,.intro__in p,.feature p,.office-lead,.single-article .content,.news-item a,.lawyer dl{font-size:15.5px;}}
/* スマホ：メインビジュアルのキャッチコピーを少し大きく（帯の左右余白と字間を詰めて画面幅に収める） */
@media (max-width:640px){.hero__catch{font-size:clamp(17.5px,5.6vw,34px);letter-spacing:.01em;}.hero__catch .line{padding:6px 10px;}}
/* 事務所紹介：紹介文は左揃え（2026-10-12） */
.office-lead{text-align:left;}
/* トップ「当事務所について」：本文は左揃え（見出しは中央のまま） */
.intro__in > p{text-align:left;}
/* スマホ：パンくずリストの下の余白を詰める（全ページ共通） */
@media (max-width:767px){.bc-bar + .section{padding-top:52px;}.bc-bar + .section .service-block:first-child{padding-top:0;}}
/* スマホ：スタッフ紹介の枠と枠の間に余白を入れる */
@media (max-width:767px){.staff-grid{background:transparent;border:0;}.staff-card{border:1px solid var(--c-border);}}

/* トップ：説明付きの主な取扱業務を3件にしたため、PCは3列 */
@media (min-width:821px){.services-main{grid-template-columns:repeat(3,1fr);}.services-main__box{padding:48px 28px;}.services-main__box h3{font-size:clamp(17px,1.5vw,21px);gap:14px;}.services-main__box h3::after{min-width:24px;}.services-main__box h3{white-space:nowrap;}}
@media (min-width:821px) and (max-width:1100px){.services-main__box{padding:44px 20px;}.services-main__box h3{font-size:16px;gap:10px;}.services-main__box h3::after{min-width:16px;}}

/* トップ：小さい取扱業務（8件）はPCで4列×2行 */
@media (min-width:821px){.services-sub{grid-template-columns:repeat(4,1fr);}}

/* 事務所紹介：スタッフカードの一言紹介はPCで少し小さく */
@media (min-width:768px){.staff-card .staff-card__text{font-size:15px;line-height:1.8;}}
.staff-card .staff-card__text{text-align:left;}

/* =====================================================================
   2026-11-24 表示調整（カスタマイズの「追加CSS」から移動・整理）
   画面幅の区切り：スマホ 767px以下／1列表示 820px以下／ハンバーガーメニュー 960px以下（PCは961px以上）
   ===================================================================== */

/* お問い合わせフォームのreCAPTCHAマーク（右下のボックス）を表示しない */
.grecaptcha-badge{visibility:hidden;}

/* 事務所紹介：スタッフ紹介の1人目の写真サイズ */
.staff-grid .staff-card:first-child img{width:320px;height:460px;}

/* ---------- PC（961px以上） ---------- */
@media (min-width:961px){
  /* ヘッダーを追従させない */
  .l-header{position:relative;}
  /* 事務所紹介：冒頭の文章の横幅を、トップ「当事務所について」と同じ900pxに */
  .office-lead{max-width:900px;}
}

/* ---------- 821px以上 ---------- */
@media (min-width:821px){
  /* トップ「主な取扱業務」：「詳しく見る」ボタンをカードの下端でそろえる */
  .services-main__box{display:flex;flex-direction:column;}
  .services-main__box p.services-main__more{margin-top:auto;}
}

/* ---------- 820px以下 ---------- */
@media (max-width:820px){
  /* トップのメインビジュアル：キャッチが画面からはみ出さないよう、画面幅に合わせて文字サイズを調整 */
  .hero__catch{font-size:min(clamp(17.5px,5.6vw,34px), calc((100vw - 84px) / 18.4), 32px);}
  .hero__catch .line{padding:6px 8px;}
}

/* ---------- スマホ（767px以下） ---------- */
@media (max-width:767px){
  /* トップのメインビジュアル：キャッチを大きく。
     2行目は、トップページ編集画面の入力欄で「|」を入れた位置で別の帯に分ける（例：事実と論理で|混迷を打開する法律事務所） */
  .hero__catch{font-size:min(6.4vw, calc((100vw - 84px) / 12.4), 32px);}
  .hero__catch .line.line--split{display:block;background:none;padding:0;box-shadow:none;max-width:none;white-space:nowrap;}
  .hero__catch .line--split .line__part{display:table;padding:6px 8px;background:linear-gradient(135deg,#D9482A 0%,#E67A2E 55%,#F2A82A 100%);margin-top:6px;}
  .hero__catch .line--split .line__part:first-child{margin-top:0;}

  /* トップ「選ばれる理由」：見出しを少し大きく */
  .feature h3{font-size:18px;}

  /* 下層ページの見出し：文字を少し小さく、茶色部分の上下の余白を狭く */
  .page-header{padding:56px 0 48px;}
  .page-header h1{font-size:28px;line-height:1.4;}

  /* 事務所紹介：スタッフ紹介のカード同士の間隔を、「選ばれる理由」と同じ細い線（2px）に */
  .staff-grid{gap:0;}

  /* 弁護士紹介：「学歴」「その他」の右の空きを狭く */
  .lawyer dl{grid-template-columns:4em 1fr;column-gap:14px;}

  /* 弁護士紹介：写真の横幅を、トップ「代表弁護士ご挨拶」と同じ最大280pxに */
  .lawyer__photo{max-width:280px;}

  /* お問い合わせ：フォームの白い背景を広げ、内側の余白を狭く */
  .contact-form-wrap{margin-left:-16px;margin-right:-16px;padding:28px 18px;}
}

/* ---------- 750px以下 ---------- */
@media (max-width:750px){
  /* 事務所紹介：スタッフ紹介の1人目の写真を画面幅に合わせる */
  .staff-grid .staff-card:first-child img{width:100%;height:auto;}
}
/* 404ページ：主要ページへのリンク */
.notfound__links{list-style:none;margin:40px 0 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:12px 32px;}
.notfound__links li{margin:0;}
.notfound__links a{color:var(--c-text);text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:2px;}
.notfound__links a:hover{color:var(--c-primary);}
