/* Home-only rules: detail pages retain their existing layouts. */
.home-page .hero{height:min(700px,80svh);min-height:600px}
.home-page .home-role{margin:0 0 12px;color:#087f8b;font-size:1.25rem;font-weight:700}
.home-page .hero h1{font-size:clamp(64px,6vw,88px);line-height:1.12;letter-spacing:-.055em}
.home-subjects{display:flex;flex-wrap:wrap;gap:4px 0;max-width:540px;margin:28px 0 0;padding:0;list-style:none;color:#46566a;font-size:1rem}
.home-subjects li{display:flex;align-items:center;white-space:nowrap}
.home-subjects li:not(:last-child)::after{content:"·";margin:0 9px;color:#7b8798}
.home-section{padding:36px 0}
.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.home-section-head h2,.home-contact h2{margin:0;font-size:1.75rem;line-height:1.35;letter-spacing:-.035em}
.home-section-head>a{flex-shrink:0;padding:10px 0;color:#526174;font-size:.875rem;text-decoration:underline;text-underline-offset:5px}
.home-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.home-preview-grid>a{display:block;min-width:0;overflow-wrap:anywhere;transition:transform .2s ease,background-color .2s ease}
.home-preview-grid>a:hover{transform:translateY(-3px)}
.home-preview-grid h3{margin:0;font-size:1.125rem;line-height:1.55;letter-spacing:-.025em;word-break:keep-all}
.home-preview-grid p{margin:8px 0 0;color:#526174;font-size:1rem;line-height:1.6;word-break:keep-all}
.home-card-number{display:block;margin-bottom:22px;color:#087f8b;font:600 .875rem/1.3 Inter,sans-serif}
.home-program-card{padding:22px 18px;border:1px solid var(--line);border-radius:8px;background:#fff}
.home-program-card:hover{background:#f4fafb}
.home-program-card p{font-size:.875rem}
.home-field-card{padding:16px 0;border-top:1px solid var(--line)}
.home-field-card img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;margin-bottom:14px}
.home-field-card time{display:block;margin-bottom:8px;color:#647185;font:500 .875rem/1.4 Inter,sans-serif}
.home-field-card p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.home-columns{background:#f6f9fc}
.home-column-card{padding:20px 18px;min-height:186px;background:#fff;border-top:2px solid #d6e1e8}
.home-column-card:hover{border-top-color:#087f8b}
.home-column-card h3{font-size:1.0625rem}
.home-app-cover{display:flex;flex-direction:column;justify-content:space-between;aspect-ratio:16/10;padding:18px;border-radius:8px;background:#0b1a30;color:#fff;overflow:hidden}
.home-app-cover>span{font:600 .875rem/1.3 Inter,sans-serif;letter-spacing:.06em;color:#91a5ba}
.home-app-cover>b{align-self:flex-end;font:800 clamp(40px,5vw,64px)/1 Inter,sans-serif;letter-spacing:-.04em}
.home-app-cover.education{background:#eaf4f5;color:#076b76}
.home-app-cover.education>span{color:#466973}
.home-app-cover.work{background:#e8edf4;color:#183654}
.home-app-cover.work>span{color:#536781}
.home-app-cover.negotiation{background:#24434b;color:#fff}
.home-app-cover.negotiation>span{color:#b5d3d8}
.home-app-visual{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:8px;background:#071a36}
.home-app-visual>img,.home-app-visual>.home-app-cover{display:block;width:100%;height:100%;aspect-ratio:auto;border-radius:0;object-fit:cover}
.home-app-visual::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,rgba(3,13,34,.58),rgba(3,13,34,.08) 48%,rgba(3,13,34,.48));pointer-events:none}
.home-app-title{position:absolute;z-index:1;top:50%;left:50%;width:88%;transform:translate(-50%,-50%);color:#fff;text-align:center;font:800 clamp(1rem,2.15vw,1.7rem)/1.14 Inter,sans-serif;letter-spacing:-.045em;text-shadow:0 2px 16px rgba(0,0,0,.72);word-break:keep-all}
.home-app-caption{margin-top:12px}
.home-app-caption>p{display:-webkit-box;overflow:hidden;margin:0;color:#344457;font-size:.875rem;line-height:1.55;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.home-clients{padding-top:24px}
.home-client-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0;padding:12px 0;list-style:none;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.home-client-grid li{display:flex;align-items:center;justify-content:center;min-width:0;min-height:58px;padding:12px}
.home-client-grid img{width:100%;max-width:106px;height:28px;object-fit:contain;filter:grayscale(1);opacity:.68}
.home-client-grid .client-mark{gap:6px}
.home-client-grid .client-mark img{width:22px;height:22px;flex:0 0 auto}
.home-client-grid .client-mark span{font-size:14px;font-weight:700;white-space:nowrap;color:#66717d}
.home-contact{padding:48px 0;background:var(--navy);color:#fff;scroll-margin-top:86px}
.home-contact-grid{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:48px}
.home-inquiry{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:52px;padding:12px 20px;border:1px solid #476073;border-radius:8px;font-size:1rem;font-weight:700}
.home-inquiry span{color:var(--cyan)}
.home-inquiry:hover{border-color:var(--cyan)}
.home-contact address{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:16px;color:#c1cad6;font-style:normal;font-size:.875rem}
.home-contact address a{padding:4px 0}
.home-page a:focus-visible{outline:3px solid #087f8b;outline-offset:5px}
.home-page footer a,.home-page footer p{font-size:.75rem}
@media(max-width:1040px){
  .home-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  .home-page .hero{display:flex;flex-direction:column;height:auto;min-height:0;overflow:visible}
  .home-page .hero-content{order:0;height:auto;padding:32px 0 24px}
  .home-page .home-role{margin-bottom:8px;font-size:1rem}
  .home-page .hero h1{font-size:3.25rem;line-height:1.12}
  .home-page .hero-photo{order:1;position:static;inset:auto;width:100%;height:clamp(240px,72vw,340px);object-position:64% 36%}
  .home-page .hero-wash{display:none}
  .home-subjects{max-width:100%;margin-top:18px;font-size:1rem;gap:2px 0}
  .home-subjects li:not(:last-child)::after{margin:0 6px}
  .home-section{padding:28px 0}
  .home-section-head{gap:12px;margin-bottom:16px}
  .home-section-head h2,.home-contact h2{font-size:1.375rem}
  .home-preview-grid{gap:14px 12px}
  .home-preview-grid h3{font-size:1rem;line-height:1.55}
  .home-program-card{padding:16px 12px}
  .home-card-number{margin-bottom:16px}
  .home-column-card{padding:16px 12px;min-height:0}
  .home-field-card{padding-top:12px}
  .home-field-card p{font-size:.875rem}
  .home-app-cover{padding:14px}
  .home-app-cover>span{font-size:.75rem}
  .home-app-title{width:92%;font-size:clamp(.98rem,4.7vw,1.3rem)}
  .home-client-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:8px 0}
  .home-client-grid li{min-height:48px;padding:10px 8px}
  .home-client-grid img{max-width:84px;height:24px}
  .home-client-grid .client-mark{gap:4px}
  .home-client-grid .client-mark img{width:20px;height:20px}
  .home-client-grid .client-mark span{font-size:12px}
  .home-contact{padding:32px 0;scroll-margin-top:70px}
  .home-contact-grid{grid-template-columns:1fr;gap:20px}
  .home-contact address{gap:8px 16px}
}
@media(max-width:360px){
  .home-preview-grid{grid-template-columns:1fr}
  .home-app-cover{aspect-ratio:2/1}
}
@media(prefers-reduced-motion:reduce){
  .home-preview-grid>a{transition:none}
  .home-preview-grid>a:hover{transform:none}
}
.home-column-card{overflow:hidden}.home-column-thumbnail{display:block;width:100%;aspect-ratio:3/2;object-fit:cover;background:#e9eef4}.home-column-copy{padding:20px 18px}.home-column-card:only-child{grid-column:span 2;display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:stretch;padding:0;border-top:0}.home-column-card:only-child .home-column-thumbnail{height:100%;min-height:210px}.home-column-card:only-child .home-column-copy{display:flex;flex-direction:column;justify-content:center;padding:26px 28px}.home-column-card:only-child .home-card-number{margin-bottom:14px}@media(max-width:760px){.home-column-card:only-child{grid-template-columns:1fr}.home-column-card:only-child .home-column-thumbnail{min-height:0;height:auto}.home-column-card:only-child .home-column-copy{padding:18px 16px}}
