/*
Theme Name: 10G 公式サイト
Theme URI: https://k10g.tokyo/
Author: 株式会社10G
Description: 株式会社10G 第10版のデザインを再現。ページ・事業実績・お知らせを日本語で編集できます。
Version: 2.6.4
Requires PHP: 8.0
Text Domain: ten-g
*/

:root{--ink:#202024;--blue:#00a6df;--paper:#fafaf8;--muted:#6e7077;--line:#dededb;--dark:#17181c;--max:1160px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:var(--paper);font-family:"Noto Sans JP","Yu Gothic",Meiryo,sans-serif;line-height:1.85;font-size:14px}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}.wrap{width:min(var(--max),calc(100% - 48px));margin:auto}
header{height:94px;background:#fff;border-bottom:1px solid #ecece8;display:flex;align-items:center;position:relative;z-index:10}
.head{display:flex;align-items:center;justify-content:space-between;gap:30px}.logo{width:112px;flex-shrink:0}.logo img{width:100%}
nav{display:flex;gap:27px;align-items:center;font-size:11px;letter-spacing:.12em}nav a{padding:10px 0}nav a:hover{color:var(--blue)}.navcontact{border:1px solid #222;padding:10px 16px}
.hero{position:relative;min-height:570px;display:flex;align-items:flex-end;background:#25262b;color:#fff;overflow:hidden}
.hero-img{position:absolute;inset:0;background-position:center;background-size:cover}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,11,15,.73),rgba(10,11,15,.16)),linear-gradient(0deg,rgba(10,11,15,.35),transparent 60%)}
.hero-content{position:relative;z-index:1;padding:90px 0 74px}
.eyebrow{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--blue);font-weight:700}
.hero .eyebrow{color:#8de2ff}.hero h1{font-size:clamp(38px,6vw,72px);font-weight:500;letter-spacing:-.055em;line-height:1.3;margin:16px 0 22px}.hero p{max-width:620px;color:#ededf0;margin:0;font-size:14px}
.page-hero{padding:66px 0 58px;background:#efefeb}.page-hero h1{font-size:clamp(34px,5vw,56px);font-weight:500;letter-spacing:-.04em;line-height:1.3;margin:12px 0}.page-hero p{max-width:740px;color:#5f6065;margin:0}
.section{padding:82px 0}.section.soft{background:#efefeb}.section.dark{background:var(--dark);color:white}.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:36px;margin-bottom:38px}.section-head h2{font-size:clamp(28px,4vw,44px);font-weight:500;letter-spacing:-.04em;line-height:1.35;margin:8px 0 0}.section-head p{max-width:430px;color:var(--muted);margin:0}.dark .section-head p{color:#b8b8c0}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.photo-card{background:#fff;border:1px solid #e8e8e4}.photo-card img{width:100%;height:230px;object-fit:cover}.photo-card .body{padding:23px}.num{font-size:10px;letter-spacing:.15em;color:var(--blue);font-weight:700}.photo-card h3{font-size:20px;line-height:1.5;font-weight:500;margin:7px 0 10px}.photo-card p{font-size:13px;color:#666970;margin:0}
.btn{display:inline-flex;align-items:center;gap:22px;padding:12px 16px;border:1px solid currentColor;font-size:11px;letter-spacing:.08em;margin-top:18px}.btn:hover{background:var(--blue);border-color:var(--blue);color:#fff}.arrow{font-size:18px}
.split{display:grid;grid-template-columns:1fr 1fr;gap:7%;align-items:center}.split img{width:100%;height:440px;object-fit:cover}.split h2{font-size:clamp(30px,4vw,46px);font-weight:500;letter-spacing:-.04em;line-height:1.4;margin:10px 0 22px}.copy p{color:#55575d;margin:0 0 16px}
.statements{list-style:none;padding:0;margin:22px 0}.statements li{padding:14px 0;border-top:1px solid var(--line);display:grid;grid-template-columns:45px 1fr;gap:12px}.statements b{color:var(--blue)}
.project-list{display:grid;grid-template-columns:1fr 1fr;gap:20px}.project{background:#fff}.project img{height:280px;width:100%;object-fit:cover}.project .body{padding:22px}.project .meta{font-size:10px;letter-spacing:.12em;color:var(--blue)}.project h3{font-size:21px;font-weight:500;margin:7px 0}.project p{color:#62646a;margin:0;font-size:13px}
.info-table{width:100%;border-collapse:collapse;border-top:1px solid var(--line)}.info-table th,.info-table td{padding:19px 18px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.info-table th{width:180px;font-weight:500;background:#f0f0ec}.info-table td{background:#fff}
.news{border-top:1px solid var(--line)}.news a{display:grid;grid-template-columns:120px 90px 1fr 20px;gap:14px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line)}.news time{font-size:11px;color:var(--muted)}.tag{font-size:10px;border:1px solid #c5c5c0;padding:2px 7px;justify-self:start}.news .title{font-size:13px}
.contact-band{background:#dff5fc;padding:58px 0}.contact-flex{display:flex;align-items:center;justify-content:space-between;gap:30px}.contact-flex h2{font-size:clamp(27px,4vw,40px);font-weight:500;margin:7px 0}.contact-flex p{margin:0;color:#53666d}
footer{background:var(--dark);color:white;padding:44px 0 22px}.foot-top{display:flex;justify-content:space-between;align-items:flex-start;gap:35px;padding-bottom:32px}.foot-logo{background:#fff;width:125px;padding:7px}.foot-logo img{width:100%}.foot-tag{font-size:12px;color:#bfc0c7;margin-top:12px}.foot-links{display:flex;gap:22px;flex-wrap:wrap;font-size:10px;letter-spacing:.1em}.foot-bottom{border-top:1px solid #3a3b40;padding-top:16px;display:flex;justify-content:space-between;color:#999ba3;font-size:10px}
.breadcrumb{font-size:11px;color:#76777d;padding:16px 0}.breadcrumb a{color:#444}
@media(max-width:760px){.wrap{width:calc(100% - 34px)}header{height:auto;padding:16px 0}.head{align-items:flex-start}.logo{width:88px}nav{gap:11px;flex-wrap:wrap;justify-content:flex-end;font-size:9px}.navcontact{padding:5px 8px}.hero{min-height:530px}.hero-content{padding:70px 0 55px}.section{padding:60px 0}.section-head{display:block}.section-head p{margin-top:14px}.grid2,.grid3,.split,.project-list{grid-template-columns:1fr;gap:18px}.split img{height:300px}.photo-card img{height:210px}.project img{height:230px}.info-table th{width:105px;padding:13px 10px}.info-table td{padding:13px 10px}.news a{grid-template-columns:88px 1fr 16px;gap:8px}.news .tag{display:none}.contact-flex,.foot-top{display:block}.contact-flex .btn{margin-top:18px}.foot-links{margin-top:26px;gap:14px}.foot-bottom{display:block}.foot-bottom span{display:block;margin-top:7px}}

.source-note{font-size:12px;color:#777;border-top:1px solid #ddd;padding-top:18px;margin-top:28px}.project .body{flex:1}

/* Uploaded project imagery */
.project-cover{margin:0 0 36px;display:flex;justify-content:center;background:#f5f5f2;border-radius:4px;overflow:hidden}
.project-cover img{display:block;width:100%;max-height:620px;object-fit:contain}
.project-additional{margin:36px 0 0}.project-additional img{width:100%;height:auto;display:block}

/* Clean square footer brand mark */
.foot-logo{display:flex;align-items:center;justify-content:center;width:116px;height:116px;padding:0;background:#fff;border-radius:2px;overflow:hidden;line-height:0;box-shadow:none}
.foot-logo img{display:block;width:100%;height:100%;object-fit:contain;border:0}
.news-detail{max-width:900px;margin:0 auto}.news-detail h2{font-size:clamp(22px,3vw,33px);line-height:1.6}.news-detail p{line-height:2}.news-detail .detail-label{font-size:12px;letter-spacing:.12em;color:var(--blue)}

/* WP編集コンテンツのレイアウト補助 */
.wp-block-image img{height:auto}.wp-block-gallery{margin:20px 0}.admin-bar header{z-index:20}

/* International Exchange image contains lettering inside the artwork; show it without cropping. */
.photo-card img[alt="学生との文化交流"]{object-fit:contain;object-position:center;background:#fff}


/* v2.6.0 - Contact page layout: scoped to contact content only. */
@media (min-width: 761px) {
  .ten-g-contact-page .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ten-g-contact-page .split .copy { min-width: 0; }
}
.ten-g-contact-page .split .copy .contact-title {
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.45;
  letter-spacing: -.045em;
  overflow-wrap: normal;
  word-break: keep-all;
}
.ten-g-contact-page .split .copy .contact-title br { display: block; }
.ten-g-contact-page .split .copy p { display: block; margin: 0 0 16px; }
.ten-g-contact-page .split .copy p strong,
.ten-g-contact-page .split .copy p a { display: inline; }
@media (max-width: 420px) {
  .ten-g-contact-page .split .copy .contact-title { font-size: clamp(22px, 6vw, 28px); }
}

/* v2.6.1 - News detail typography and return-link layout.
   Scoped to .news-detail; does not alter stored page content. */
.news-detail > p { display:block; margin:0 0 24px; line-height:2; }
.news-detail > h2 { display:block; margin:22px 0 30px; }
.news-detail > p.detail-label { margin:0 0 18px; }
.news-detail > p:has(> a.btn) { display:block; clear:both; margin:34px 0 0; }
.news-detail > p > a.btn { display:inline-flex; vertical-align:middle; margin-top:0; }
@media(max-width:760px) { .news-detail > p { margin-bottom:20px; } .news-detail > h2 { margin:18px 0 24px; } }

/* v2.6.2: isolated report display; other pages unaffected. */
.ten-g-report-fixed > p{display:block;margin:0 0 24px;line-height:2}
.ten-g-report-fixed > h2{display:block;margin:22px 0 30px;line-height:1.6}
.ten-g-report-fixed > .ten-g-report-return{margin-top:34px}
.ten-g-report-fixed > .ten-g-report-return .btn{display:inline-flex}

/* v2.6.4: Only prevent splitting Japanese words in the homepage hero,
   and keep the existing mobile navigation on one row. */
@media (max-width: 760px) {
  .hero h1 { word-break: keep-all; overflow-wrap: normal; }
  header .head { gap: 6px; }
  header .logo { width: 72px; }
  header nav { flex-wrap: nowrap; gap: 4px; font-size: 8px; letter-spacing: 0; white-space: nowrap; }
  header nav a { padding: 6px 0; }
  header nav .navcontact { padding: 5px 3px; }
}
