/*
Theme Name: Tokiwa Credit
Theme URI: https://example.jp/
Author: Tokiwa Credit Information
Description: 指定信用情報機関向けの企業サイトテーマ。フォーマルな日本語タイポグラフィ、Contact Form 7 対応のお問い合わせページ、カスタマイザーによる会社情報設定を備えています。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokiwa
Tags: business, japanese, custom-menu, custom-logo, theme-options
*/

:root{
  --ink:oklch(0.24 0.03 255);
  --navy:oklch(0.28 0.07 255);
  --navy-dk:oklch(0.22 0.06 255);
  --navy-band:oklch(0.26 0.06 255);
  --navy-foot:oklch(0.2 0.04 255);
  --heading:oklch(0.2 0.05 255);
  --body:oklch(0.4 0.02 255);
  --muted:oklch(0.45 0.02 255);
  --line:oklch(0.9 0.008 255);
  --line-2:oklch(0.88 0.008 255);
  --paper:#f7f6f2;
  --tint:oklch(0.97 0.006 255);
  --error:oklch(0.5 0.16 25);
  --accent:#c9a45c;
  --serif:'Shippori Mincho',serif;
  --sans:'Zen Kaku Gothic New',sans-serif;
  --mono:'IBM Plex Mono',monospace;
  --hatch:repeating-linear-gradient(135deg,oklch(0.92 0.008 255) 0 1px,oklch(0.955 0.005 255) 1px 11px);
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;line-height:1.7}
img{max-width:100%;height:auto;display:block}
a{color:oklch(0.32 0.08 255);text-decoration:underline;text-underline-offset:3px}
a:hover{color:var(--navy-dk)}
h1,h2,h3{margin:0}
p{margin:0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px)}
.wrap{max-width:1200px;margin:0 auto;padding-left:32px;padding-right:32px}
.wrap-narrow{max-width:960px;margin:0 auto;padding-left:32px;padding-right:32px}

/* Buttons */
.btn{display:inline-flex;align-items:center;gap:14px;border:1px solid var(--navy);background:var(--navy);color:#fff;padding:16px 28px;font-size:15px;font-weight:500;letter-spacing:.04em;text-decoration:none;cursor:pointer;font-family:inherit;transition:background .15s}
.btn:hover{background:var(--navy-dk);color:#fff}
.btn--ghost{background:transparent;color:var(--navy)}
.btn--ghost:hover{background:oklch(0.96 0.01 255);color:var(--navy)}
.btn--white{background:#fff;color:oklch(0.24 0.06 255);border-color:#fff}
.btn--white:hover{background:oklch(0.95 0.01 255);color:oklch(0.24 0.06 255)}
.btn--outline-white{background:transparent;color:#fff;border-color:#fff}
.btn--outline-white:hover{background:rgba(255,255,255,.08);color:#fff}
.btn__rule{width:18px;height:2px;background:var(--accent)}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}

/* Utility bar */
.utility{background:oklch(0.24 0.05 255);color:oklch(0.9 0.01 255);font-size:12px}
.utility .wrap{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
.utility__right{display:flex;gap:20px}
.mono{font-family:var(--mono);letter-spacing:.02em}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.admin-bar .site-header{top:32px}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.brand__mark{width:36px;height:36px;background:var(--navy);display:flex;align-items:center;justify-content:center;flex:none}
.brand__mark span{width:12px;height:12px;border:2px solid var(--accent);transform:rotate(45deg)}
.brand__text{display:flex;flex-direction:column;gap:2px}
.brand__name{font-family:var(--serif);font-weight:700;font-size:19px;letter-spacing:.08em;color:var(--heading)}
.brand__en{font-family:var(--mono);font-size:10px;letter-spacing:.14em;color:oklch(0.5 0.02 255)}
.custom-logo{max-height:48px;width:auto}
.primary-nav{display:flex;align-items:center;gap:28px}
.primary-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:28px}
.primary-nav a{text-decoration:none;color:var(--body);font-size:14px;font-weight:500;padding:6px 0;border-bottom:2px solid transparent}
.primary-nav .current-menu-item>a,.primary-nav .current_page_item>a,.primary-nav a:hover{color:var(--navy);border-bottom-color:var(--navy)}
.primary-nav .btn{padding:12px 20px;font-size:14px}
.nav-toggle{display:none;background:none;border:1px solid var(--line);width:44px;height:44px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.nav-toggle span{display:block;width:18px;height:2px;background:var(--navy)}
@media (max-width:900px){
  .nav-toggle{display:flex}
  .primary-nav{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;padding:8px 32px 24px;gap:8px}
  .primary-nav.is-open{display:flex}
  .primary-nav ul{flex-direction:column;gap:0}
  .primary-nav li a{display:block;padding:14px 0;border-bottom:1px solid var(--line)}
  .primary-nav .btn{justify-content:center;margin-top:12px}
  .admin-bar .site-header{top:46px}
}

/* Section heading */
.eyebrow{font-family:var(--mono);font-size:12px;letter-spacing:.16em;color:oklch(0.45 0.03 255)}
.kicker{display:flex;align-items:center;gap:12px;font-size:13px;letter-spacing:.12em;font-weight:500;color:oklch(0.42 0.03 255)}
.kicker::before{content:"";width:28px;height:2px;background:var(--accent)}
.h2{font-family:var(--serif);font-weight:600;font-size:34px;letter-spacing:.04em;line-height:1.5;color:var(--heading)}
.lead{font-size:15px;line-height:1.9;color:var(--body);max-width:680px;text-wrap:pretty}
.sec-head{display:flex;flex-direction:column;gap:14px}
.sec-head--row{flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap}
.sec{padding-top:104px;padding-bottom:104px;display:flex;flex-direction:column;gap:48px}
.bg-white{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.link-arrow{font-size:14px;font-weight:500}

/* Photo placeholder */
.photo{background:var(--hatch);border:1px solid var(--line);display:flex;align-items:flex-end;padding:20px;overflow:hidden;position:relative}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.photo__label{font-family:var(--mono);font-size:12px;color:var(--muted);background:#fff;padding:6px 10px;position:relative}

/* Hero */
.hero{background:#fff}
.hero__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:64px;align-items:center;padding-top:80px;padding-bottom:88px}
.hero__copy{display:flex;flex-direction:column;gap:28px}
.hero__title{font-family:var(--serif);font-weight:600;font-size:clamp(34px,4.4vw,54px);line-height:1.4;letter-spacing:.04em;color:var(--heading)}
.hero__text{font-size:16px;line-height:2;color:oklch(0.38 0.02 255);max-width:520px;text-wrap:pretty}
.hero .photo{aspect-ratio:4/3.4}
.hero--full{position:relative;color:#fff;background:repeating-linear-gradient(135deg,oklch(0.3 0.05 255) 0 1px,oklch(0.26 0.05 255) 1px 11px);background-size:cover;background-position:center}
.hero--full::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,oklch(0.2 0.05 255 / .88),oklch(0.2 0.05 255 / .55))}
.hero--full .wrap{position:relative;padding-top:128px;padding-bottom:120px;display:flex;flex-direction:column;gap:28px}
.hero--full .hero__title{color:#fff;font-size:clamp(36px,5vw,62px)}
.hero--full .hero__text{color:oklch(0.94 0.01 255);max-width:600px}
.hero--full .kicker{color:#fff}

/* Credentials strip */
.creds{background:var(--tint);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.creds .wrap{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.cred{padding:28px 24px;display:flex;flex-direction:column;gap:8px;border-left:1px solid var(--line)}
.cred__label{font-size:12px;color:var(--muted);letter-spacing:.06em}
.cred__value{font-family:var(--serif);font-size:17px;font-weight:600;color:oklch(0.22 0.05 255)}

/* Service cards */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1px;background:var(--line-2);border:1px solid var(--line-2)}
.card{background:#fff;padding:40px 36px;display:flex;flex-direction:column;gap:18px}
.num{font-family:var(--mono);font-size:13px;color:oklch(0.45 0.03 255)}
.card h3{font-family:var(--serif);font-weight:600;font-size:22px;line-height:1.5;color:oklch(0.22 0.05 255)}
.card p{font-size:14.5px;line-height:1.95;color:var(--body);text-wrap:pretty}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:24px}
.step{display:flex;flex-direction:column;gap:14px;padding-top:20px;border-top:2px solid var(--navy)}
.step__no{font-family:var(--mono);font-size:13px;color:var(--navy);font-weight:500}
.step h3{font-size:17px;font-weight:700;color:oklch(0.22 0.05 255)}
.step p{font-size:14px;line-height:1.9;color:var(--body)}

/* Split */
.split{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:64px;align-items:center}
.split .photo{aspect-ratio:3/2}
.split__copy{display:flex;flex-direction:column;gap:22px}
.split__copy p{font-size:15px;line-height:2;color:var(--body);text-wrap:pretty}

/* Page header */
.page-head{background:#fff;border-bottom:1px solid var(--line)}
.page-head .wrap{padding-top:72px;padding-bottom:64px;display:flex;flex-direction:column;gap:16px}
.page-head h1{font-family:var(--serif);font-weight:600;font-size:40px;letter-spacing:.04em;line-height:1.4;color:var(--heading)}

/* Services detail */
.svc-list{padding-top:40px;padding-bottom:104px}
.svc{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:48px;padding:56px 0;border-bottom:1px solid var(--line-2);align-items:start}
.svc__main{display:flex;flex-direction:column;gap:16px}
.svc__main h2{font-family:var(--serif);font-weight:600;font-size:26px;line-height:1.5;color:oklch(0.22 0.05 255)}
.svc__main p{font-size:15px;line-height:2;color:var(--body)}
.svc__box{background:#fff;border:1px solid var(--line);padding:28px 32px;display:flex;flex-direction:column;gap:14px}
.svc__box strong{font-size:13px;letter-spacing:.06em;color:oklch(0.3 0.05 255)}
.svc__box p{font-size:14px;line-height:1.9;color:var(--body)}
.svc__box hr{border:0;height:1px;background:var(--line);margin:0}

/* About */
.greeting{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:64px;align-items:start;padding-top:88px;padding-bottom:88px}
.greeting .photo{aspect-ratio:4/5;max-width:420px;width:100%}
.greeting__copy{display:flex;flex-direction:column;gap:24px}
.greeting__copy h2{font-family:var(--serif);font-weight:600;font-size:30px;line-height:1.6;color:var(--heading)}
.greeting__copy p{font-size:15px;line-height:2.05;color:oklch(0.38 0.02 255);text-wrap:pretty}
.signature{display:flex;flex-direction:column;gap:4px;padding-top:8px}
.signature small{font-size:13px;color:var(--muted)}
.signature span{font-family:var(--serif);font-size:20px;font-weight:600;letter-spacing:.2em;color:oklch(0.22 0.05 255)}
.profile{border-top:1px solid var(--navy);margin:0}
.profile div{display:grid;grid-template-columns:minmax(120px,200px) minmax(0,1fr);gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}
.profile dt{font-size:14px;font-weight:700;color:oklch(0.3 0.05 255)}
.profile dd{margin:0;font-size:14.5px;line-height:1.85;color:oklch(0.35 0.02 255);white-space:pre-line}
.comp-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px}
.comp{background:#fff;border:1px solid var(--line);padding:32px 28px;display:flex;flex-direction:column;gap:14px}
.comp small{font-size:12px;letter-spacing:.06em;color:var(--muted)}
.comp h3{font-family:var(--serif);font-size:19px;font-weight:600;line-height:1.5;color:oklch(0.22 0.05 255)}
.comp p{font-size:14px;line-height:1.9;color:var(--body)}
.notice{background:var(--tint);border:1px solid var(--line-2);border-top:3px solid var(--navy);padding:44px 40px;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:40px;align-items:center}
.notice h2{font-family:var(--serif);font-weight:600;font-size:24px;color:var(--heading);margin-bottom:14px}
.notice p{font-size:14.5px;line-height:1.95;color:oklch(0.38 0.02 255)}
.notice__cta{display:flex;justify-content:flex-end}

/* Contact */
.contact-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(260px,1fr);gap:56px;align-items:start;padding-top:64px;padding-bottom:104px}
@media (max-width:900px){.contact-grid{grid-template-columns:1fr}}
.form-card{background:#fff;border:1px solid var(--line);padding:44px 40px}
.aside{display:flex;flex-direction:column;gap:20px}
.aside__tel{background:var(--navy-band);color:#fff;padding:32px 28px;display:flex;flex-direction:column;gap:14px}
.aside__tel small{font-size:13px;letter-spacing:.08em;color:oklch(0.9 0.01 255)}
.aside__tel .mono{font-size:26px;font-weight:500}
.aside__tel p{font-size:13px;line-height:1.8;color:oklch(0.9 0.01 255)}
.aside__note{background:#fff;border:1px solid var(--line);padding:28px;display:flex;flex-direction:column;gap:12px}
.aside__note strong{font-size:14px;color:oklch(0.3 0.05 255)}
.aside__note p{font-size:13px;line-height:1.9;color:var(--body)}
.admin-hint{background:var(--tint);border:1px dashed var(--navy);padding:24px;font-size:14px;line-height:1.9}

/* Contact Form 7 */
.wpcf7 form{display:flex;flex-direction:column;gap:28px}
.wpcf7 p{margin:0}
.cf-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.cf-field{display:flex;flex-direction:column;gap:10px}
.cf-field>label,.cf-label{font-size:14px;font-weight:700;display:flex;gap:10px;align-items:center}
.req,.opt{font-size:11px;padding:2px 6px;font-weight:500}
.req{background:var(--navy);color:#fff}
.opt{border:1px solid oklch(0.6 0.02 255);color:var(--body);padding:1px 6px}
.wpcf7 input[type=text],.wpcf7 input[type=email],.wpcf7 input[type=tel],.wpcf7 select,.wpcf7 textarea{width:100%;padding:14px 12px;font-size:15px;font-family:inherit;border:1px solid oklch(0.82 0.01 255);background:#fff;color:var(--ink);border-radius:0}
.wpcf7 textarea{line-height:1.8;resize:vertical;min-height:160px}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:2px solid var(--navy);outline-offset:-1px}
.wpcf7-not-valid{border-color:var(--error)!important}
.wpcf7-not-valid-tip{font-size:12.5px;color:var(--error);margin-top:6px}
.cf-consent{background:var(--tint);padding:20px 22px;display:flex;flex-direction:column;gap:12px}
.cf-consent p{font-size:13px;line-height:1.9;color:var(--body)}
.wpcf7-acceptance label{display:flex;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.wpcf7-acceptance input{width:18px;height:18px;accent-color:var(--navy)}
.cf-submit{display:flex;justify-content:center}
.wpcf7 input[type=submit]{background:var(--navy);color:#fff;border:none;padding:18px 56px;font-size:15px;font-weight:500;letter-spacing:.08em;cursor:pointer;font-family:inherit}
.wpcf7 input[type=submit]:hover{background:var(--navy-dk)}
.wpcf7 input[type=submit]:disabled{opacity:.5;cursor:not-allowed}
.wpcf7-spinner{display:none}
.wpcf7 form .wpcf7-response-output{margin:0;padding:18px 20px;border:1px solid var(--line-2);border-top:3px solid var(--navy);background:#fff;font-size:14px;line-height:1.8}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output{border-top-color:var(--error)}

/* CTA band */
.cta-band{background:var(--navy-band);color:#fff}
.cta-band .wrap{padding-top:72px;padding-bottom:72px;display:flex;justify-content:space-between;align-items:center;gap:32px;flex-wrap:wrap}
.cta-band h2{font-family:var(--serif);font-weight:600;font-size:28px;letter-spacing:.04em;margin-bottom:12px}
.cta-band p{font-size:15px;line-height:1.9;color:oklch(0.9 0.01 255)}

/* Footer */
.site-footer{background:var(--navy-foot);color:oklch(0.88 0.01 255)}
.site-footer .wrap{padding-top:64px;padding-bottom:32px;display:flex;flex-direction:column;gap:48px}
.foot-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:40px}
.foot-brand{grid-column:span 2;min-width:0;display:flex;flex-direction:column;gap:14px}
@media (max-width:600px){.foot-brand{grid-column:auto}}
.foot-brand strong{font-family:var(--serif);font-weight:700;font-size:18px;letter-spacing:.08em;color:#fff}
.foot-brand p{font-size:13px;line-height:1.9;white-space:pre-line}
.foot-col{display:flex;flex-direction:column;gap:12px;font-size:13.5px}
.foot-col h4{margin:0;font-size:12px;font-weight:400;letter-spacing:.1em;color:oklch(0.72 0.02 255)}
.foot-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.foot-col a{color:oklch(0.88 0.01 255);text-decoration:none}
.foot-col a:hover{color:#fff;text-decoration:underline}
.foot-col .is-strong a{color:#fff;font-weight:500}
.foot-bottom{border-top:1px solid oklch(0.32 0.04 255);padding-top:24px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:12px;color:oklch(0.72 0.02 255)}

/* Generic content */
.entry{padding-top:72px;padding-bottom:104px}
.entry-content{font-size:15.5px;line-height:2;color:oklch(0.35 0.02 255)}
.entry-content>*+*{margin-top:1.4em}
.entry-content h2{font-family:var(--serif);font-size:26px;font-weight:600;color:var(--heading);padding-bottom:12px;border-bottom:1px solid var(--line);margin-top:2.4em}
.entry-content h3{font-size:18px;font-weight:700;color:var(--heading);margin-top:2em}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content th,.entry-content td{border-bottom:1px solid var(--line);padding:14px 12px;text-align:left;vertical-align:top}
.entry-content th{color:oklch(0.3 0.05 255);width:30%}
.post-list{display:flex;flex-direction:column;border-top:1px solid var(--navy)}
.post-list article{padding:24px 0;border-bottom:1px solid var(--line);display:flex;gap:24px;flex-wrap:wrap}
.post-list time{font-family:var(--mono);font-size:13px;color:var(--muted);min-width:100px}
.post-list a{color:var(--ink);text-decoration:none;font-weight:500}
.post-list a:hover{text-decoration:underline}
.pagination{margin-top:40px;display:flex;gap:8px}
.pagination .page-numbers{padding:8px 14px;border:1px solid var(--line);text-decoration:none;color:var(--ink);background:#fff}
.pagination .current{background:var(--navy);color:#fff;border-color:var(--navy)}
