/*
 * pinadesign overrides — loaded after XeOne's style.css.
 * Edit this file, not style.css, so a theme update doesn't eat your changes.
 */

/* Japanese text: keep XeOne's Latin fonts, fall back to Noto Sans JP for kana/kanji.
   Raleway/Open Sans come first so English words inside Japanese text still match the theme. */
body,
p, .heading-title > span, .getin_form .form-control,
h1, h2, h3, h4, h5, h6 {
   font-family: 'Raleway', 'Noto Sans JP', sans-serif;
}
p, .heading-title > span, .getin_form .form-control {
   font-family: 'Open Sans', 'Noto Sans JP', sans-serif;
}

/* Japanese reads better a little looser, and XeOne's 200-weight headings
   are too thin for kanji. */
.lang-ja p { line-height: 1.9; }
.lang-ja h1, .lang-ja h2, .lang-ja .font-xlight { font-weight: 300; }

/* XeOne's #a5a5a5 body grey is low-contrast for long blog reading. */
body { color: #6b6b75; }

/* XeOne puts text-capitalize on headings everywhere. It does nothing for
   Japanese and mangles lowercase-first names ("pdLink" → "PdLink"). */
.text-capitalize { text-transform: none !important; }

/* ---------- Blog ---------- */

/* Category pills: highlight the active one like XeOne's hover state */
.blog-filter li.active a {
   color: #fff;
   background: #00bcd4;
   border-color: #00bcd4;
}
.blog-filter li a span { opacity: .7; }

.news_item .news_desc h3 a:hover { color: #00bcd4; }

.post-title {
   font-size: 2.25rem;
   font-weight: 300;
   line-height: 1.35;
}

/* Post body. XeOne resets lists and spacing site-wide for its one-page
   layout; long-form writing needs them back. */
.post-body { color: #45464f; }
.post-body p,
.post-body li { font-size: 16px; line-height: 1.9; }
.post-body p,
.post-body ul,
.post-body ol,
.post-body pre,
.post-body table,
.post-body blockquote,
.post-body img { margin-bottom: 1.5rem; }
.post-body h2 { font-size: 1.75rem; font-weight: 400; color: #212331; margin: 2.75rem 0 1rem; }
.post-body h3 { font-size: 1.35rem; font-weight: 500; color: #212331; margin: 2rem 0 .75rem; }
.post-body ul { list-style: disc;    padding-left: 1.5rem; }
.post-body ol { list-style: decimal; padding-left: 1.5rem; }
.post-body li + li { margin-top: .35rem; }
.post-body a { color: #00a3b8; text-decoration: underline; text-underline-offset: 3px; }
.post-body img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
.post-body blockquote {
   border-left: 4px solid #00bcd4;
   padding: .25rem 0 .25rem 1.25rem;
   color: #6b6b75;
   font-style: italic;
}
.post-body code {
   background: #f1f1f4;
   padding: .1em .35em;
   border-radius: 3px;
   font-size: .9em;
   color: #862359;
}
.post-body pre {
   background: #212331;
   color: #e8e8ee;
   padding: 1rem 1.25rem;
   border-radius: 4px;
   overflow-x: auto;
}
.post-body pre code { background: none; color: inherit; padding: 0; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-body th,
.post-body td { border: 1px solid #e4e4e8; padding: .5rem .75rem; text-align: left; }
.post-body th { background: #f6f6f6; color: #212331; }
.post-body iframe { max-width: 100%; }

/* Captioned images: ![alt](IMG.JPG "Caption") */
.post-body figure { margin: 0 0 2rem; }
.post-body figure img { margin-bottom: .6rem; }
.post-body figcaption {
   font-size: 14px;
   color: #8a8a94;
   text-align: center;
   line-height: 1.6;
}

/* ---------- pinadesign blue ----------
   Replaces XeOne's purple→magenta gradient everywhere it appears.
   Sampled from the old pinadesign.jp hero. Change these two values to retheme. */
:root {
   --pd-blue-1: #0d73ba;
   --pd-blue-2: #2c3393;
   --pd-gradient: linear-gradient(90deg, var(--pd-blue-1), var(--pd-blue-2));
}

.gradient_bg,
.rev_slider li.rev_gradient::after,
.fixedmenu,
.back-top,
.btn-gradient-hvr::before,
.just-sidemenu .side-menu,
.loader span {
   background: var(--pd-gradient);
}

/* Slide-out side menu: XeOne's flat cyan → the same blue */
.side-menu { background: var(--pd-gradient); }

/* Inner-page header (blog, products): drop XeOne's stock demo photo */
.page-header {
   background: var(--pd-gradient);
   background-attachment: scroll;
}

/* ---------- Home ---------- */
.home-hero {
   min-height: 82vh;
   padding: 9rem 0 6rem;
}
.home-hero__tagline {
   font-size: clamp(2.2rem, 6vw, 4.5rem);
   font-weight: 300;
   line-height: 1.25;
}
.lang-ja .home-hero__tagline { font-weight: 500; letter-spacing: .04em; }
.home-hero__sub {
   font-size: 1.05rem;
   max-width: 640px;
   margin-left: auto;
   margin-right: auto;
   opacity: .9;
}
.home-hero .button { margin: .35rem; }

.home-build__img img {
   height: 100%;
   min-height: 420px;
   object-fit: cover;
}

.home-contact {
   padding: 2.5rem 2rem;
   border-radius: 8px;
}
.home-contact p { opacity: .9; }

/* ---------- Contact ---------- */
.hp-field {           /* honeypot: off-screen, not display:none (some bots skip hidden inputs) */
   position: absolute;
   left: -10000px;
   width: 1px;
   height: 1px;
   overflow: hidden;
}
.contact-alert {
   padding: .9rem 1.1rem;
   border-radius: 4px;
   font-size: 15px;
}
.contact-alert--ok  { background: #e6f6ee; color: #1d6b42; }
.contact-alert--err { background: #fdecec; color: #9b2c2c; }

/* Hero catchphrase — echoes the logo lockup (DESIGN ART STYLE, ART in logo blue) */
:root { --pd-logo-blue: #2aa9e2; }
.home-hero__catch {
   font-family: 'Raleway', sans-serif;
   font-size: 15px;
   font-weight: 500;
   letter-spacing: .45em;
   margin-bottom: 1.5rem;
   opacity: .95;
}
.home-hero__catch span { color: #7fd3f7; } /* logo blue, lifted so it reads on the gradient */

.home-about__text {
   max-width: 640px;
   margin: 0 auto;
}

/* Contact section */
.contact-logo {
   max-width: 320px;
   width: 100%;
   height: auto;
}
.contact-section .heading-title > span { color: var(--pd-logo-blue); }

/* Blog card without a cover photo */
.card-cover-fallback {
   display: flex;
   align-items: center;
   justify-content: center;
   aspect-ratio: 3 / 2;
   color: #fff;
   font-size: 1.1rem;
   letter-spacing: .3em;
   opacity: .92;
}
.card-cover-fallback:hover { color: #fff; opacity: 1; }
.card-cover-fallback span {
   border: 1px solid rgba(255,255,255,.6);
   padding: .5rem 1.25rem;
}

/* Cover photos in cards: same 3:2 frame, so mixed portrait/landscape covers line up */
.news_item > a.image img {
   aspect-ratio: 3 / 2;
   object-fit: cover;
}

/* =========================================================
   Home v2: photo hero, pd|F points, works gallery, bigger type
   ========================================================= */

/* Photo hero. --hero-pos picks which part of the photo shows
   (the boot-screen shot is portrait, so we aim at the OLED). */
.home-hero--photo {
   --hero-pos: center 62%;
   --hero-overlay: .78;     /* 0 = photo only, 1 = solid blue */
   position: relative;
   background: var(--hero-img) var(--hero-pos) / cover no-repeat, #1b4f9c;
   min-height: 88vh;
   overflow: hidden;
}
.home-hero--photo::before {
   content: "";
   position: absolute;
   inset: 0;
   background: var(--pd-gradient);
   opacity: var(--hero-overlay);
}
.home-hero--photo > .container { position: relative; z-index: 1; }
.home-hero--photo .home-hero__tagline { text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }

/* pd|F feature points */
.home-build__text { font-size: 16px; line-height: 1.9; }
.home-build__points {
   display: inline-block;
   text-align: left;
}
.home-build__points li {
   display: flex;
   align-items: center;
   gap: .75rem;
   font-size: 15px;
   color: #45464f;
   padding: .35rem 0;
}
.home-build__points i {
   width: 1.6rem;
   text-align: center;
   color: var(--pd-blue-1);
   font-size: 1.05rem;
}

/* Works gallery */
.works__intro { max-width: 640px; margin: 0 auto; }
.works__tile {
   position: relative;
   display: block;
   aspect-ratio: 4 / 3;
   overflow: hidden;
   border-radius: 6px;
   background: #e9ebf0;
}
.works__tile img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform .6s ease;
}
.works__tile:hover img { transform: scale(1.05); }
.works__overlay {
   position: absolute;
   left: 0; right: 0; bottom: 0;
   padding: 2.5rem 1.25rem 1.1rem;
   background: linear-gradient(to top, rgba(10, 20, 45, .85), rgba(10, 20, 45, 0));
   color: #fff;
   display: flex;
   flex-direction: column;
   gap: .2rem;
}
.works__overlay strong { font-size: 1.05rem; font-weight: 500; }
.works__overlay small  { font-size: 13px; opacity: .85; }
.works__tile--empty { display: flex; align-items: center; justify-content: center; }
.works__overlay--static {
   position: static;
   background: none;
   text-align: center;
   padding: 1rem;
}

/* Bigger, more confident text across the site (XeOne's 14px is small) */
p { font-size: 15px; }
.home-hero__sub { font-size: 1.2rem; }
.split-box p, .heading-title p.title { font-size: 16px; }


/* Inner pages: the scrolled nav bar is blue, so keep the white logo
   (XeOne swaps to the dark one, which is meant for a white bar). */
.navbar.transparent-bg.fixedmenu .logo-default  { display: inline-block; }
.navbar.transparent-bg.fixedmenu .logo-scrolled { display: none; }

/* Inner pages (blog, products, contact): mobile menu matches the home page —
   plain white links, and the nav bar turns blue while the menu is open
   so the list never spills onto the grey page below. */
@media (max-width: 991.98px) {
   .transparent-bg .navbar-nav .nav-link {
      background: transparent;
   }
   .navbar.transparent-bg:has(.navbar-collapse.show),
   .navbar.transparent-bg:has(.navbar-collapse.collapsing) {
      background: var(--pd-gradient);
      padding-bottom: 1rem;
   }
}