/*
Theme Name: AI Mall Corporate
Theme URI: https://ai-mall.jp
Author: 株式会社アイ・モール
Description: 株式会社アイ・モール コーポレートサイト用オリジナルテーマ
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: ai-mall
*/

:root {
  --navy: #0e2a47;
  --navy-dark: #091d33;
  --green: #0e9f6e;
  --green-dark: #0b7f58;
  --ink: #1f2d3d;
  --gray: #5b6b7b;
  --line: #e3e9ef;
  --bg-soft: #f4f7fa;
  --white: #ffffff;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", "游ゴシック Medium", Meiryo, sans-serif;
  color: var(--ink);
  line-height: 1.9;
  font-size: 16px;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { opacity: .85; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.site-logo a { display: flex; align-items: center; gap: 12px; }
.site-logo .logo-symbol { display: block; width: auto; height: 48px; }
.site-logo .logo-name { color: #1e3a5f; font-size: 1.35rem; font-weight: 700; letter-spacing: .04em; }
.site-logo .logo-domain { color: #64748b; font-size: .78rem; letter-spacing: .1em; align-self: flex-end; padding-bottom: 6px; }

.global-nav ul { display: flex; gap: 6px; list-style: none; align-items: center; }
.global-nav a {
  display: block; padding: 8px 14px; color: var(--ink);
  font-size: .95rem; font-weight: 500; border-radius: 6px;
}
.global-nav a:hover { background: var(--bg-soft); opacity: 1; }
.global-nav .nav-contact a {
  background: var(--green); color: #fff; border-radius: 999px; padding: 9px 22px;
}
.global-nav .nav-contact a:hover { background: var(--green-dark); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #123a5e 55%, #0d5c4a 100%);
  color: #fff; padding: 96px 0 104px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,159,110,.35), transparent 70%);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.hero .catch {
  font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 700;
  letter-spacing: .06em; line-height: 1.5; margin-bottom: 20px;
}
.hero .catch .accent { color: #5ee6b0; }
.hero .lead { font-size: 1.05rem; color: #d6e4f0; max-width: 620px; margin-bottom: 36px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 34px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-ghost { border: 2px solid rgba(255,255,255,.7); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .en {
  display: block; color: var(--green); font-size: .8rem;
  font-weight: 700; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 6px;
}
.section-title h2 { color: var(--navy); font-size: 1.7rem; letter-spacing: .08em; }

/* service cards */
.service-intro { text-align: center; max-width: 720px; margin: -18px auto 44px; color: var(--gray); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 32px 26px; box-shadow: 0 2px 10px rgba(14,42,71,.05);
}
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.5rem;
  background: linear-gradient(135deg, var(--green), #17b585); color: #fff; margin-bottom: 18px;
}
.card h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 10px; }
.card p { color: var(--gray); font-size: .93rem; }

/* news */
.news-list { list-style: none; max-width: 780px; margin: 0 auto; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list li:first-child { border-top: 1px solid var(--line); }
.news-list a {
  display: flex; gap: 24px; align-items: baseline; padding: 20px 8px; color: var(--ink);
}
.news-list a:hover { background: var(--bg-soft); opacity: 1; }
.news-list time { color: var(--gray); font-size: .88rem; white-space: nowrap; font-family: "Helvetica Neue", Arial, sans-serif; }
.news-list .cat {
  font-size: .72rem; color: var(--green-dark); border: 1px solid var(--green);
  border-radius: 999px; padding: 1px 12px; white-space: nowrap;
}
.more-link { text-align: center; margin-top: 32px; }
.more-link a { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--green); padding-bottom: 3px; }

/* company table */
.company-table { width: 100%; max-width: 780px; margin: 0 auto; border-collapse: collapse; }
.company-table th, .company-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 30%; color: var(--navy); font-weight: 700; white-space: nowrap; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, #0d5c4a 100%);
  color: #fff; text-align: center; padding: 64px 24px;
}
.cta-band h2 { font-size: 1.5rem; letter-spacing: .08em; margin-bottom: 12px; }
.cta-band p { color: #cfe3dc; margin-bottom: 28px; }

/* ---------- Page (sub pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy), #14486e);
  color: #fff; padding: 56px 0;
}
.page-hero h1 { font-size: 1.8rem; letter-spacing: .1em; }
.page-hero .en { color: #7fd4b4; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; }
.page-body { padding: 64px 0 90px; }
.entry-content { max-width: 820px; margin: 0 auto; }
.entry-content h2 {
  color: var(--navy); font-size: 1.35rem; margin: 48px 0 18px;
  padding-left: 14px; border-left: 5px solid var(--green); line-height: 1.5;
}
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { color: var(--navy); font-size: 1.1rem; margin: 32px 0 12px; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.4em 1.6em; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 13px 15px; text-align: left; }
.entry-content th { background: var(--bg-soft); color: var(--navy); white-space: nowrap; }
.entry-content .wp-block-button__link, .entry-content .btn-primary { background: var(--green); color: #fff; }

/* contact form (Contact Form 7) */
.wpcf7 { max-width: 640px; }
.wpcf7 label { display: block; margin-bottom: 22px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px;
  border: 1px solid #c6d2dd; border-radius: 8px; font-size: 1rem;
  font-family: inherit; font-weight: 400; background: #fff; color: var(--ink);
}
.wpcf7 input:focus, .wpcf7 textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.wpcf7 textarea { min-height: 180px; resize: vertical; }
.wpcf7 .wpcf7-quiz-label { display: block; font-weight: 400; color: var(--gray); font-size: .92rem; margin: 8px 0 2px; }
.wpcf7 input[type="submit"] {
  display: inline-block; background: var(--green); color: #fff; border: none;
  border-radius: 999px; padding: 14px 48px; font-size: 1rem; font-weight: 700;
  font-family: inherit; cursor: pointer; margin-top: 6px;
}
.wpcf7 input[type="submit"]:hover { background: var(--green-dark); }
.wpcf7 .wpcf7-not-valid-tip { color: #d43c3c; font-weight: 400; font-size: .85rem; }
.wpcf7 .wpcf7-response-output { border-radius: 8px; padding: 12px 16px; margin: 20px 0 0; }

/* news article */
.entry-meta { color: var(--gray); font-size: .88rem; margin-bottom: 26px; }
article.single .entry-title { color: var(--navy); font-size: 1.55rem; line-height: 1.55; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #b9c8d6; padding: 56px 0 28px; font-size: .92rem; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.footer-company .name { margin-bottom: 14px; }
.footer-company .name img { display: block; width: auto; height: 64px; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav a { color: #b9c8d6; }
.footer-nav a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 44px; color: #778999; font-size: .8rem; letter-spacing: .05em; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0; }
  .site-logo .logo-symbol { height: 38px; }
  .site-logo .logo-name { font-size: 1.05rem; }
  .site-logo .logo-domain { display: none; }

  .nav-toggle {
    display: block; background: none; border: none; cursor: pointer;
    width: 42px; height: 42px; position: relative; z-index: 210;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--navy);
    margin: 5px auto; transition: .25s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .global-nav {
    position: fixed; inset: 0; background: rgba(9,29,51,.97);
    display: none; align-items: center; justify-content: center; z-index: 200;
  }
  .global-nav.open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 22px; text-align: center; }
  .global-nav a { color: #fff; font-size: 1.15rem; }
  .global-nav a:hover { background: none; }

  .company-table th { display: block; width: 100%; border-bottom: none; padding-bottom: 4px; }
  .company-table td { display: block; padding-top: 0; }
}
