/*
Theme Name: R Corporation Official
Theme URI: https://r-co-ltd.net/
Author: R・コーポレーション株式会社
Description: R・コーポレーション株式会社公式サイト専用テーマ
Version: 1.0.4
Text Domain: r-corporation
*/

:root {
  --black: #090b0f;
  --ink: #11151b;
  --blue: #075bd8;
  --navy: #081729;
  --gray: #69717c;
  --line: #d9dde2;
  --warm: #f7f6f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: "Noto Sans JP", "Yu Gothic", YuGothic, sans-serif; font-size: 16px; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
a { color: inherit; text-decoration: none; }
.site-header { height: 86px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid #e3e5e8; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-r { width: 42px; height: 42px; display: grid; place-items: center; background: var(--black); color: #fff; font: 700 26px/1 Georgia, serif; }
.brand b { display: block; font-size: 14px; letter-spacing: .02em; }
.brand small { display: block; margin-top: 4px; color: #626b76; font-size: 9px; letter-spacing: .14em; }
.main-nav { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 28px); font-size: 13px; font-weight: 650; }
.main-nav > a:not(.header-contact) { padding: 34px 0 32px; border-bottom: 2px solid transparent; }
.main-nav > a:not(.header-contact):hover { border-color: var(--blue); }
.header-contact { border: 1px solid #222; padding: 13px 18px; display: flex; align-items: center; gap: 24px; }
.header-contact span { color: var(--blue); }
.menu-button { display: none; width: 40px; height: 40px; padding: 8px; border: 0; background: transparent; }
.menu-button span { display: block; height: 1px; margin: 7px 0; background: #111; }
.home-hero { min-height: 360px; display: grid; grid-template-columns: 66% 34%; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.home-hero-copy { padding: 58px 5vw 52px 7vw; z-index: 2; display: flex; flex-direction: column; justify-content: center; }
.kicker, .section-tag { margin: 0; color: #0752bd; font-size: 12px; font-weight: 800; letter-spacing: .17em; }
.home-hero h1 { margin: 17px 0; font-size: clamp(28px, 2.8vw, 40px); line-height: 1.4; letter-spacing: -.035em; font-weight: 700; }
.home-hero h1 em { color: var(--blue); font-style: normal; }
.home-hero-copy > p:not(.kicker) { max-width: 720px; margin: 0; color: #555f6a; font-size: 14px; line-height: 2; }
.outline-button { width: fit-content; display: inline-flex; align-items: center; justify-content: space-between; gap: 55px; min-width: 230px; margin-top: 28px; padding: 15px 18px; border: 1px solid #222; font-size: 13px; font-weight: 700; transition: .2s; }
.outline-button span { color: var(--blue); }.outline-button:hover { background: #111; color: #fff; }
.architectural-art { position: relative; min-height: 360px; background: #eeeeeb; overflow: hidden; }
.architectural-art:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(30,35,42,.12) 1px, transparent 1px), linear-gradient(90deg,rgba(30,35,42,.12) 1px,transparent 1px); background-size: 90px 90px; }
.plane { position: absolute; transform: skewY(-26deg); transform-origin: left top; }
.plane-white { width: 105%; height: 63%; background: #e5e5e2; left: 4%; top: 17%; border: 1px solid #c5c5c2; }
.plane-black { width: 76%; height: 53%; right: -22%; bottom: -2%; background: linear-gradient(140deg,#15191f,#030405); box-shadow: -30px 25px 65px rgba(0,0,0,.25); }
.plane-blue { width: 105px; height: 100%; background: #0755bf; top: 0; left: 46%; transform: skewY(-26deg); box-shadow: 14px 0 35px rgba(2,33,80,.22); }
.art-label { position: absolute; right: 5vw; top: 23%; text-align: right; color: #10151d; }
.art-label small { display: block; font-size: 10px; letter-spacing: .18em; }
.art-label b { display: block; margin-top: 8px; font: 700 clamp(22px,2.5vw,36px)/1.05 Arial,sans-serif; letter-spacing: -.04em; }
.axis { position: absolute; background: rgba(0,0,0,.18); }.axis-x{height:1px;width:65%;top:42%;left:0}.axis-y{width:1px;height:70%;left:28%;top:0}
.neutral-section { padding: 110px 8vw; }
.neutral-section h2 { margin: 18px 0 0; font-size: clamp(34px,3.5vw,50px); line-height: 1.45; letter-spacing: -.035em; }
.philosophy { display: grid; grid-template-columns: 1fr 1fr; gap: 9vw; align-items: center; }
.philosophy-copy { padding: 30px 0 30px 5vw; border-left: 1px solid var(--line); color: #3f4852; font-size: 16px; line-height: 2.05; }
.philosophy-copy .lead { margin-top: 0; color: #151a21; font-size: 18px; font-weight: 700; }
.philosophy h2, .company-snapshot h2, .company-page h2 { font-size: clamp(28px, 2.7vw, 39px); letter-spacing: -.025em; }
.businesses { background: var(--warm); }
.neutral-head { display: grid; grid-template-columns: 1fr .8fr; gap: 8vw; align-items: end; margin-bottom: 58px; }
.neutral-head > p { margin: 0 0 8px; color: #46505b; font-size: 15px; line-height: 1.9; }
.business-cards { display: grid; grid-template-columns: repeat(2,1fr); border: 1px solid #d6d8da; background: #d6d8da; gap: 1px; }
.business-cards.three { grid-template-columns: repeat(3,1fr); }
.business-card { min-height: 345px; padding: 38px; display: flex; flex-direction: column; background: #fff; transition: .25s; }
.business-card:hover { transform: translateY(-5px); box-shadow: 0 22px 45px rgba(10,20,35,.1); z-index: 2; }
.business-card.accent { color: #fff; background: var(--navy); }
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-top > span { color: var(--blue); font: 23px Georgia,serif; }
.card-top small { color: #626b75; font-size: 10px; letter-spacing: .12em; }
.business-card h3 { margin: 56px 0 16px; font-size: 22px; }
.business-card p { max-width: 590px; margin: 0; color: #46505b; font-size: 15px; line-height: 1.9; }
.business-card.accent p { color: #d1dae4; }
.card-link { margin-top: auto; padding-top: 20px; border-top: 1px solid #e0e3e6; display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.accent .card-link { border-color: #2b3e54; }.card-link span { color: #1780ff; }
.strength { background: #0b1017; color: #fff; display: grid; grid-template-columns: .75fr 1.25fr; gap: 10vw; align-items: center; }
.strength-number { display: flex; align-items: end; gap: 18px; }
.strength-number strong { font: 300 clamp(130px,17vw,240px)/.75 Georgia,serif; color: #fff; letter-spacing: -.08em; }
.strength-number span { color: #7fa6d2; font: 700 12px/1.5 Arial,sans-serif; letter-spacing: .13em; }
.section-tag.light { color: #5b9cea; }
.strength-copy h2 { font-size: clamp(34px,3.4vw,49px); line-height: 1.45; }
.strength-copy > p:not(.section-tag) { color: #c1c9d2; font-size: 16px; line-height: 2; }
.strength-copy > a { display: inline-flex; gap: 45px; margin-top: 20px; padding-bottom: 8px; border-bottom: 1px solid #536170; color: #eef3f8; font-size: 13px; font-weight: 700; }
.strength-copy > a span { color: #2184f6; }
.company-snapshot { display: grid; grid-template-columns: 1fr 1fr; gap: 10vw; align-items: center; }
.company-snapshot > div > p:not(.section-tag) { max-width: 600px; color: #46505b; font-size: 15px; line-height: 1.9; }
.company-snapshot dl { margin: 0; }
.company-snapshot dl div, .company-page dl div { display: grid; grid-template-columns: 95px 1fr; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.company-snapshot dt, .company-page dt { color: #59636e; }.company-snapshot dd, .company-page dd { margin: 0; }
.home-contact { padding: 110px 8vw; text-align: center; background: #f2f4f6; }
.home-contact h2 { max-width: 900px; margin: 22px auto; font-size: clamp(34px,3.8vw,52px); line-height: 1.45; letter-spacing: -.035em; }
.home-contact > p:not(.section-tag) { color: #46505b; font-size: 15px; }
.home-contact > a, .detail-cta > a, .contact-page a { min-width: 250px; margin-top: 28px; padding: 18px 22px; display: inline-flex; align-items: center; justify-content: space-between; gap: 45px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; }
.site-footer { padding: 70px 7vw 25px; color: #fff; background: #060a10; }
.footer-main { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 42px; padding-bottom: 65px; }
.footer-brand .brand-r { background: #fff; color: #111; }.footer-brand small { color: #687686; }
.footer-main > div { display: flex; flex-direction: column; gap: 16px; color: #c0c8d1; font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid #28303a; color: #929eaa; font-size: 11px; letter-spacing: .05em; }
.detail-hero { min-height: 525px; padding: 125px 8vw 90px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.detail-hero:after { content: ""; width: 40%; height: 120%; position: absolute; right: -5%; top: -20%; border-left: 1px solid currentColor; opacity: .1; transform: skewX(-22deg); background-image: linear-gradient(currentColor 1px,transparent 1px); background-size: 100% 80px; }
.detail-hero h1 { max-width: 1100px; margin: 23px 0; font-size: clamp(40px,4.5vw,62px); line-height: 1.4; letter-spacing: -.04em; z-index: 1; }
.detail-hero > p:not(.section-tag) { max-width: 820px; margin: 0; font-size: 17px; line-height: 1.95; z-index: 1; }
.detail-hero.blue { color: #fff; background: linear-gradient(125deg,#06152a,#0b55ae); }
.detail-hero.blue .section-tag { color: #72b8ff; }.detail-hero.blue > p:not(.section-tag) { color: #c2d1e0; }
.detail-hero.dark { color: #fff; background: #0b1017; }.detail-hero.dark > p:not(.section-tag) { color: #aeb6c0; }
.detail-hero.light { background: #f2f3f1; }
.company-hero { min-height: 310px; padding-top: 75px; padding-bottom: 65px; }
.company-hero h1 { margin-top: 0; font-size: clamp(34px, 3.5vw, 48px); }
.detail-intro { padding-bottom: 50px; }
.detail-intro h2 { max-width: 950px; }
.detail-grid { padding-top: 35px; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.detail-grid article { min-height: 265px; padding: 35px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-grid article:nth-child(3n) { border-right: 0; }
.detail-grid article > span { color: var(--blue); font: 20px Georgia,serif; }
.detail-grid h3 { margin: 38px 0 13px; font-size: 18px; }
.detail-grid p { color: #46505b; font-size: 15px; line-height: 1.9; }
.detail-cta { padding: 90px 8vw; text-align: center; background: var(--warm); }
.detail-cta h2 { margin: 0; font-size: clamp(30px,3.2vw,44px); }.detail-cta p { color: #46505b; font-size: 15px; }
.company-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; }
.company-page > div > p:not(.section-tag) { color: #46505b; line-height: 1.9; font-size: 15px; }
.company-page dl { margin: 0; }.company-page dl div { grid-template-columns: 110px 1fr; padding: 21px 0; line-height: 1.8; }
.contact-heading { padding: 68px 8vw 55px; border-bottom: 1px solid var(--line); background: #f5f6f7; }
.contact-heading h1 { margin: 0 0 14px; font-size: clamp(32px,3.2vw,44px); }
.contact-heading p { margin: 0; color: #46505b; font-size: 16px; }
.contact-layout { padding: 75px 8vw 100px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 7vw; align-items: start; }
.contact-form-wrap h2,.contact-info h2 { margin: 0; font-size: 24px; }
.form-note { margin: 10px 0 35px; color: #59636e; font-size: 13px; }.form-note span,.inquiry-form label b { color: #cc2533; }
.inquiry-form { display: grid; gap: 25px; }
.inquiry-form label { display: grid; gap: 10px; }
.inquiry-form label > span { font-size: 14px; font-weight: 700; }
.inquiry-form label b { margin-left: 4px; }
.inquiry-form input,.inquiry-form select,.inquiry-form textarea { width: 100%; padding: 14px 15px; border: 1px solid #bcc3cb; border-radius: 0; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.inquiry-form textarea { resize: vertical; }
.inquiry-form input:focus,.inquiry-form select:focus,.inquiry-form textarea:focus { outline: 2px solid rgba(7,91,216,.2); border-color: var(--blue); }
.form-help { margin: 0; color: #59636e; font-size: 13px; line-height: 1.8; }
.inquiry-form button { width: min(100%,340px); padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; border: 0; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-success,.form-error { padding: 16px 18px; margin: 0 0 28px; line-height: 1.8; }
.form-success { color: #155b34; background: #edf8f1; border: 1px solid #a9d8b9; }
.form-error { color: #8a1f2a; background: #fff0f1; border: 1px solid #e0abb0; }
.contact-info { padding: 35px; background: var(--navy); color: #fff; }
.contact-info h2 { font-size: 18px; }
.contact-info p { margin: 9px 0 0; color: #cbd5df; font-size: 14px; line-height: 1.8; }
.contact-info hr { margin: 35px 0; border: 0; border-top: 1px solid #33465c; }
.phone-number { display: block; margin-top: 18px; color: #fff; font-size: clamp(26px,2.5vw,36px); font-weight: 700; }
.mail-address { display: block; margin-top: 18px; color: #83bdff; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.ai-subnav { min-height: 48px; padding: 0 4.5vw; display: flex; align-items: stretch; justify-content: flex-end; gap: 0; background: #0c131d; color: #d3d9e0; overflow-x: auto; }
.ai-subnav a { padding: 16px 22px; border-left: 1px solid #28313c; white-space: nowrap; font-size: 12px; transition: .2s; }
.ai-subnav a:hover { background: #075bd8; color: #fff; }
.case-hero { min-height: 390px; }
.case-detail { background: #fff; }
.case-heading { display: grid; grid-template-columns: 1.35fr .65fr; gap: 8vw; align-items: end; }
.case-heading h2 { font-size: clamp(35px,4vw,56px); }
.case-status { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.case-status span { padding: 8px 10px; border: 1px solid var(--line); color: #4e5863; font-size: 10px; letter-spacing: .1em; }
.case-summary { max-width: 920px; margin: 70px 0; padding-left: 35px; border-left: 3px solid var(--blue); }
.case-summary h3 { margin: 0 0 16px; font-size: 23px; }.case-summary p { margin: 0; color: #626b75; font-size: 14px; line-height: 2.1; }
.case-functions { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.case-functions article { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-functions article:nth-child(3n) { border-right: 0; }.case-functions span { color: var(--blue); font: 20px Georgia,serif; }
.case-functions h3 { margin: 34px 0 12px; font-size: 18px; }.case-functions p { color: #46505b; font-size: 15px; line-height: 1.9; }
.case-link { display: inline-flex; align-items: center; justify-content: space-between; min-width: 260px; margin-top: 35px; padding: 17px 20px; color: #fff; background: var(--navy); font-size: 11px; font-weight: 700; }
.case-link span { color: #3796ff; }
.case-note { padding: 95px 8vw; text-align: center; background: var(--warm); }
.case-note h2 { margin: 0 0 15px; font-size: clamp(30px,3.2vw,44px); }.case-note p { color: #46505b; font-size: 15px; }
.case-note a { min-width: 260px; margin-top: 25px; padding: 17px 20px; display: inline-flex; justify-content: space-between; color: #fff; background: var(--blue); font-size: 11px; font-weight: 700; }

@media (max-width: 1000px) {
  .site-header { height: 74px; }.main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; padding: 25px 6vw; align-items: flex-start; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(0,0,0,.08); }.main-nav.open { display: flex; }.main-nav > a:not(.header-contact) { padding: 5px 0; }.header-contact { width: 100%; justify-content: space-between; }.menu-button { display: block; }
  .home-hero { grid-template-columns: 1fr 34%; }.home-hero-copy { padding: 52px 5vw; }.architectural-art { min-height: 360px; }
  .business-cards,.business-cards.three { grid-template-columns: 1fr 1fr; }.strength { grid-template-columns: 1fr; }.strength-number strong { font-size: 180px; }.detail-grid { grid-template-columns: repeat(2,1fr); }.detail-grid article:nth-child(3n){border-right:1px solid var(--line)}.detail-grid article:nth-child(2n){border-right:0}.case-functions{grid-template-columns:repeat(2,1fr)}.case-functions article:nth-child(3n){border-right:1px solid var(--line)}.case-functions article:nth-child(2n){border-right:0}
}
@media (max-width: 650px) {
  .site-header { padding: 0 5vw; }.brand-r { width: 34px; height: 34px; font-size: 21px; }.brand b { font-size: 12px; }.brand small { font-size: 8px; }
  .home-hero { grid-template-columns: 1fr; }.home-hero-copy { padding: 46px 6vw 42px; }.home-hero h1 { font-size: 29px; }.architectural-art { min-height: 180px; }.plane-blue { width: 48px; }.art-label { right: 6vw; top: 30%; }.art-label b { font-size: 21px; }
  .neutral-section { padding: 78px 6vw; }.neutral-section h2 { font-size: 31px; line-height: 1.5; }.philosophy,.neutral-head,.company-snapshot,.company-page,.case-heading { grid-template-columns: 1fr; }.philosophy-copy { padding: 28px 0 0; border: 0; border-top: 1px solid var(--line); }.business-cards,.business-cards.three { grid-template-columns: 1fr; }.business-card { min-height: 320px; padding: 30px; }.strength-number strong { font-size: 130px; }.strength-copy h2 { font-size: 31px; line-height: 1.5; }.footer-main { grid-template-columns: 1fr; }.footer-main > div { display: none; }.footer-bottom { flex-direction: column; gap: 8px; }.ai-subnav{justify-content:flex-start;padding:0}.ai-subnav a{padding:15px 17px;font-size:12px}.case-summary{margin:45px 0;padding-left:20px}.case-functions{grid-template-columns:1fr}.case-functions article,.case-functions article:nth-child(3n),.case-functions article:nth-child(2n){border-right:0}
  .detail-hero { min-height: 400px; padding: 82px 6vw 60px; }.detail-hero h1 { font-size: 34px; line-height: 1.5; }.detail-hero > p:not(.section-tag) { font-size: 16px; }.company-hero { min-height: 260px; padding-top: 58px; padding-bottom: 50px; }.company-hero h1 { font-size: 31px; }.philosophy h2,.company-snapshot h2,.company-page h2 { font-size: 28px; }.detail-grid { grid-template-columns: 1fr; }.detail-grid article,.detail-grid article:nth-child(3n),.detail-grid article:nth-child(2n) { border-right: 0; }.contact-page > div { padding: 35px 25px; }
  .contact-heading { padding: 48px 6vw 40px; }.contact-heading h1 { font-size: 31px; }.contact-layout { padding: 55px 6vw 75px; grid-template-columns: 1fr; gap: 45px; }.contact-info { padding: 28px 24px; }
}
