@charset "utf-8";
/* COCKPIT CAMP（page-cockpit.php）専用のスタイル。
 *
 * デザイナー提供の standalone HTML(cockpit-style v3-3) から起こしたもの。
 * 元の CSS に対して機械的に以下を施してある:
 *
 *   - すべてのセレクタを .cockpit の下にスコープ
 *   - :root の変数は .cockpit に移動
 *   - body の指定は .cockpit そのものに移動
 *   - standalone 自前のクロム（.site-header / .brand / .main-nav /
 *     .hamburger / footer / .footer-brand）は捨てた。テーマが出すので不要
 *   - .container はテーマの common.css の .container（width:100%;min-width:100%）
 *     と衝突して max-width が効かなくなるため .cp-wrap にリネーム
 *
 * ファイル末尾の「テーマとの折り合い」より下が手で足した部分。
 * デザイナーから新しい版をもらったら、上の機械変換だけやり直して
 * 末尾のブロックはそのまま残すこと。
 *
 * 読み込みは functions.php の tf_cockpit_styles()（このテンプレートのみ）。
 */

/* --- ブラウザ既定値の復元 -------------------------------------------------
 * standalone は CSS リセットを読んでいないので、見出しと段落の余白は
 * ブラウザ既定値のまま成立していた。テーマは html5reset.css と common.css で
 * それを潰すため、ここで既定値を戻す。
 *
 * 必ずデザイナーの指定より前に置くこと。同じ詳細度なので、
 * 後ろに置くとデザイナーが明示した余白を上書きしてしまう。
 */
.cockpit h1{margin-bottom:.67em}
.cockpit h2{margin-bottom:.83em}
.cockpit h3{margin-bottom:1em}
.cockpit h4,.cockpit h5,.cockpit h6{margin-bottom:1.33em}
.cockpit p{margin-bottom:1em}
.cockpit img{margin:0}

/* --- ここからデザイナー版（機械変換） ----------------------------------- */
.cockpit{--ink:#20231f;--muted:#62675f;--green:#465241;--olive:#778273;--paper:#f7f7f4;--sand:#efeee9;--line:#dce0d8;--container:1180px;--pad:clamp(22px,4.8vw,72px)}
.cockpit *, .cockpit *:before, .cockpit *:after{box-sizing:border-box}
html{scroll-behavior:smooth}
.cockpit{margin:0;background:#fff;color:var(--ink);font-family:"Noto Sans JP","Noto Sans CJK JP","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;-webkit-font-smoothing:antialiased}
.cockpit a{color:inherit;text-decoration:none}
.cockpit button{font:inherit}
.cockpit img{display:block;width:100%;height:auto}
.cockpit h1, .cockpit h2, .cockpit h3, .cockpit p{margin-top:0}
.cockpit p{line-height:1.95}
.cockpit .cp-wrap{max-width:var(--container);padding:0 var(--pad);margin:auto}
.cockpit .overline{font-size:12px;font-weight:800;letter-spacing:.18em;color:var(--green)}
.cockpit .section-kicker{display:flex;align-items:center;gap:14px;margin-bottom:28px}
.cockpit .section-kicker:after{content:"";height:1px;background:var(--line);flex:1}
.cockpit .text-lead{color:#363c35;font-size:16px;line-height:2.05}
.cockpit .muted{color:var(--muted)}
.cockpit .hero{display:grid;grid-template-columns:minmax(0,43%) minmax(0,57%);min-height:610px;background:var(--paper)}
.cockpit .hero-copy{padding:92px 38px 86px max(var(--pad),calc((100vw - 1175px)/2 + 46px));display:flex;flex-direction:column;justify-content:center}
.cockpit .hero-copy .tiny{color:#848980;font-size:14px;letter-spacing:.08em}
.cockpit .hero-copy h1{font-size:clamp(48px,5.25vw,80px);font-weight:900;line-height:1.06;letter-spacing:-.045em;margin:31px 0 26px}
.cockpit .hero-copy .jp{font-size:clamp(20px,2vw,29px);font-weight:800;line-height:1.55;letter-spacing:-.045em;margin:0 0 23px}
.cockpit .hero-copy p{max-width:460px;color:#50574d;font-size:14px;line-height:2}
.cockpit .hero-copy .hero-link{align-self:flex-start;margin-top:25px;padding:0 0 11px;border-bottom:1px solid #505f4e;color:#465241;font-weight:800;font-size:12px;letter-spacing:.07em}
.cockpit .hero-photo{position:relative;min-height:610px;overflow:hidden}
.cockpit .hero-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center}
.cockpit .hero-photo:after{content:"";position:absolute;inset:60% 0 0;background:linear-gradient(transparent,rgba(0,0,0,.46))}
.cockpit .hero-caption{position:absolute;bottom:35px;left:37px;color:white;z-index:1;font-size:12px;letter-spacing:.13em;font-weight:700}
.cockpit .hero-caption strong{font-size:14px;display:block;letter-spacing:.05em;margin-bottom:4px}
.cockpit .subnav{background:#fff;border-bottom:1px solid var(--line)}
.cockpit .subnav-inner{max-width:var(--container);margin:auto;padding:0 var(--pad);display:flex;flex-wrap:wrap;gap:clamp(18px,3vw,44px);align-items:center;min-height:65px}
.cockpit .subnav a{font-size:12px;font-weight:750;color:var(--muted);padding:19px 0}
.cockpit .subnav a:hover{color:var(--green)}
.cockpit .intro{padding:110px 0 112px}
.cockpit .intro-grid{display:grid;grid-template-columns:42% 1fr;gap:10%}
.cockpit .intro h2, .cockpit .heading h2{font-size:clamp(30px,3.4vw,46px);font-weight:850;line-height:1.45;letter-spacing:-.055em}
.cockpit .intro .sub{font-size:20px;color:var(--green);font-weight:750;margin-top:20px}
.cockpit .intro .copy p{font-size:16px;line-height:2.1;color:#3f443d}
.cockpit .statement{background:var(--green);padding:70px 25px;color:white;text-align:center}
.cockpit .statement h2{font-size:clamp(23px,3.1vw,41px);line-height:1.65;letter-spacing:-.04em;margin-bottom:14px}
.cockpit .statement p{color:#e7ebe6;font-size:14px;margin:0}
.cockpit .statement .overline{color:#ccd5ca;margin-bottom:24px;display:block}
.cockpit .features{background:var(--paper);padding:112px 0 120px}
.cockpit .heading{margin-bottom:43px}
.cockpit .heading h2{margin:0 0 10px}
.cockpit .heading p{color:var(--muted);max-width:680px}
.cockpit .feature-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;border:1px solid var(--line);background:var(--line)}
.cockpit .feature{padding:36px clamp(24px,3vw,42px) 35px;min-height:216px;background:#fff;position:relative}
.cockpit .feature .num{color:#b9c2b8;font-size:40px;line-height:1;letter-spacing:-.05em;font-weight:800}
.cockpit .feature h3{font-size:21px;margin:18px 0 9px;font-weight:800}
.cockpit .feature p{font-size:14px;color:#5b6257;margin:0}
.cockpit .feature .eng{position:absolute;right:30px;top:41px;font-size:10px;letter-spacing:.12em;color:#90998d;font-weight:800}
.cockpit .photo-story{padding:115px 0}
.cockpit .photo-story .story-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.cockpit .story-large{grid-row:span 2;position:relative;min-height:566px;overflow:hidden;background:var(--sand)}
.cockpit .story-small{position:relative;min-height:275px;overflow:hidden;background:var(--sand)}
.cockpit .story-img{height:100%;width:100%;object-fit:cover;position:absolute;inset:0}
.cockpit .story-label{position:absolute;bottom:0;left:0;right:0;color:white;padding:45px 28px 24px;background:linear-gradient(transparent,rgba(0,0,0,.58));font-weight:750;font-size:17px}
.cockpit .story-label .overline{color:#f5f7f5;font-size:10px;display:block;margin-bottom:8px}
.cockpit .story-tip{margin:26px 0 0;color:#5b6058;font-size:13px;line-height:1.85}
.cockpit .lineup{padding:108px 0 116px;background:var(--paper)}
.cockpit .lineup-intro{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:end;margin-bottom:44px}
.cockpit .lineup-intro p{font-size:14px;margin-bottom:0}
.cockpit .lineup-intro .heading{margin:0}
.cockpit .lineup-banner{display:flex;align-items:center;justify-content:space-between;padding:16px 21px;background:#2e342e;color:white;margin-bottom:18px;gap:14px;font-size:12px;letter-spacing:.09em;font-weight:750}
.cockpit .lineup-banner span:last-child{font-size:11px;color:#c9cfca;font-weight:550}
.cockpit .table-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}
.cockpit .product{background:#fff;border:1px solid #e1e4dd;overflow:hidden;display:flex;flex-direction:column;min-width:0}
.cockpit .product-image{height:275px;background:#f2f2ee;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cockpit .product-image img{height:100%;width:100%;object-fit:contain}
.cockpit .product-image.photo img{object-fit:cover}
.cockpit .product-body{padding:30px 30px 28px;flex:1;display:flex;flex-direction:column}
.cockpit .product-tag{color:var(--green);font-weight:850;font-size:10px;letter-spacing:.13em;margin-bottom:12px}
.cockpit .product h3{font-size:23px;line-height:1.4;letter-spacing:-.035em;margin-bottom:10px}
.cockpit .product p{font-size:13.5px;color:#596058;line-height:1.85;margin-bottom:15px;flex:1}
.cockpit .product-code{font-size:11px;color:#858b81;letter-spacing:.06em;margin-bottom:14px}
.cockpit .product-meta{display:flex;align-items:end;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding-top:16px}
.cockpit .product-meta .price{font-size:20px;font-weight:850;letter-spacing:-.03em}
.cockpit .product-meta .price small{font-size:11px;font-weight:500;letter-spacing:0}
.cockpit .product-meta a{font-size:12px;font-weight:800;color:var(--green);border-bottom:1px solid currentColor;padding-bottom:5px;white-space:nowrap}
.cockpit .chair-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.cockpit .chair-grid .product-image{height:215px}
.cockpit .chair-grid .product-body{padding:24px 19px}
.cockpit .chair-grid .product h3{font-size:18px}
.cockpit .chair-grid .product p{font-size:12.5px;line-height:1.8}
.cockpit .chair-grid .product-meta{align-items:start;flex-direction:column;gap:15px}
.cockpit .chair-grid .product-meta .price{font-size:19px}
.cockpit .price-note{font-size:11px;color:#70766d;margin:20px 0 0;line-height:1.9}
.cockpit .styles{padding:112px 0 124px}
.cockpit .style-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cockpit .style-card{border-top:2px solid var(--green);background:var(--paper);padding:37px 28px;min-height:265px}
.cockpit .style-card .type{font-size:11px;color:var(--green);letter-spacing:.12em;font-weight:900}
.cockpit .style-card h3{font-size:21px;letter-spacing:-.04em;margin:30px 0 18px}
.cockpit .style-card p{font-size:13.5px;color:#586057;line-height:1.9}
.cockpit .style-card .style-icon{display:flex;gap:6px;margin-top:22px}
.cockpit .style-icon span{width:26px;height:5px;background:#6f7d6d;border-radius:1px}
.cockpit .style-icon span:nth-child(2){width:14px;background:#b8bfb5}
.cockpit .outro{background:#273028;color:#fff;padding:100px 0}
.cockpit .outro .inside{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:60px}
.cockpit .outro .overline{color:#c2cdc0}
.cockpit .outro h2{font-size:clamp(31px,3.2vw,47px);line-height:1.52;letter-spacing:-.04em;margin:20px 0}
.cockpit .outro p{font-size:14px;line-height:2;color:#dae0d9}
.cockpit .outro a{display:inline-flex;justify-content:space-between;gap:30px;align-items:center;border:1px solid #cdd7ca;color:white;padding:17px 22px;margin-top:15px;font-size:13px;font-weight:750}
.cockpit .outro img{height:380px;object-fit:cover;object-position:center}
@media(max-width:980px){
.cockpit .hero-copy{padding-left:var(--pad)}
.cockpit .chair-grid{grid-template-columns:repeat(2,1fr)}
.cockpit .chair-grid .product-meta{flex-direction:row;align-items:end}
}
@media(max-width:760px){
.cockpit .hero{display:flex;flex-direction:column}
.cockpit .hero-copy{padding:62px var(--pad) 57px}
.cockpit .hero-copy h1{font-size:clamp(54px,13vw,76px);margin:22px 0}
.cockpit .hero-copy .jp{font-size:26px;margin-bottom:12px}
.cockpit .hero-photo{min-height:380px}
.cockpit .hero-caption{left:24px;bottom:24px}
.cockpit .subnav-inner{overflow:auto;flex-wrap:nowrap;gap:24px;min-height:55px;white-space:nowrap}
.cockpit .subnav a{font-size:11px;padding:14px 0}
.cockpit .intro{padding:78px 0}
.cockpit .intro-grid{grid-template-columns:1fr;gap:16px}
.cockpit .intro .sub{margin:10px 0 26px}
.cockpit .statement{padding:58px 20px}
.cockpit .features, .cockpit .lineup, .cockpit .styles{padding:80px 0 85px}
.cockpit .photo-story{padding:80px 0}
.cockpit .photo-story .story-grid{grid-template-columns:1fr}
.cockpit .story-large{min-height:360px;grid-row:auto}
.cockpit .story-small{min-height:260px}
.cockpit .lineup-intro{grid-template-columns:1fr;gap:10px}
.cockpit .table-grid{grid-template-columns:1fr}
.cockpit .product-image{height:320px}
.cockpit .style-grid{grid-template-columns:1fr;gap:15px}
.cockpit .style-card{min-height:0;padding:30px 28px}
.cockpit .style-card h3{margin:20px 0 12px}
.cockpit .outro{padding:70px 0}
.cockpit .outro .inside{grid-template-columns:1fr;gap:35px}
.cockpit .outro img{height:350px}
}
@media(max-width:470px){
.cockpit .hero-copy h1{font-size:53px}
.cockpit .hero-copy .jp{font-size:22px}
.cockpit .hero-photo{min-height:305px}
.cockpit .intro .copy p{font-size:14px}
.cockpit .feature-grid{grid-template-columns:1fr}
.cockpit .feature{min-height:0;padding:29px 25px}
.cockpit .feature h3{font-size:19px;margin-top:12px}
.cockpit .feature .num{font-size:34px}
.cockpit .heading h2, .cockpit .intro h2{font-size:33px}
.cockpit .chair-grid{gap:10px}
.cockpit .chair-grid .product-image{height:162px}
.cockpit .chair-grid .product-body{padding:19px 13px}
.cockpit .chair-grid .product h3{font-size:16px}
.cockpit .chair-grid .product p{font-size:12px}
.cockpit .chair-grid .product-meta{flex-direction:column;align-items:start;gap:12px}
.cockpit .chair-grid .product-meta .price{font-size:18px}
.cockpit .chair-grid .product-meta a{font-size:11px}
.cockpit .table-grid .product-image{height:230px}
.cockpit .lineup-banner{flex-direction:column;align-items:start}
.cockpit .story-label{font-size:16px}
}
@media(prefers-reduced-motion:no-preference){
.cockpit a, .cockpit button{transition:opacity .2s ease,color .2s ease,background .2s ease}
.cockpit .product a:hover, .cockpit .outro a:hover{opacity:.72}
}

/* ==========================================================================
 * テーマとの折り合い（ここから下は手で足した部分）
 * ========================================================================== */

/* ページ内アンカーの着地点。
 *
 * standalone のヘッダーは 77px だったので 110px（+33px の余白）だった。
 * テーマのヘッダーは position:fixed で 65px、768px 以下で 40px
 * （common.css の .header）。同じ余白感になるよう付け替える。
 * これを合わせないと、subnav のリンクで飛んだ先の見出しが
 * 黒いヘッダーの裏に隠れる。
 */
html{scroll-padding-top:98px}
@media screen and (max-width:768px){
  html{scroll-padding-top:65px}
}
