/*
Theme Name: Agency Theme
Theme URI: https://example.com/agency-theme
Author: スタッフ・プラス
Author URI: https://example.com
Description: A modern WordPress theme for talent agencies.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agency-theme
*/

/* Reset & Variables */
:root {
  --primary-color: #333333;
  --secondary-color: #666666;
  --background-color: #ffffff;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--primary-color);
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.sp-main {
  background: #008ab8;
  margin: 0 auto;
  text-align: center;
}

.sp-visual {
  max-width: 100%;
  max-height: 80vh;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

/* Sticky footer */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

a {
  color: #0033cc;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #008ab8;
  font-weight: normal;
}

/* Header */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.site-title a {
  color: var(--primary-color);
}

.main-navigation ul {
  display: flex;
  gap: 30px;
}

.main-navigation li {
  display: inline-block;
}

.main-navigation a {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.main-navigation li.current-menu-item a,
.main-navigation li.current_page_item a,
.main-navigation li.current-menu-ancestor a {
  border-bottom: 2px solid #33b2ed;
}

/* Footer */
.site-footer {
  background-color: var(--light-gray);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-nav a {
  color: var(--secondary-color);
}

.site-info {
  font-size: 0.8rem;
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  height: 60vh;
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero h2 {
  font-size: 3rem;
  letter-spacing: 0.2em;
}

/* News List */
.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.news-item:first-child {
  padding-top: 0;
  margin-top: 0;
}

.news-date {
  width: 100px;
  color: var(--secondary-color);
}

.news-title {
  flex: 1;
}

/* Talent Grid */
.talent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.talent-card {
  width: 200px;
  text-align: center;
}

.talent-card a {
  color: var(--primary-color);
}

.talent-thumb {
  background-color: var(--light-gray);
  margin-bottom: 15px;
  overflow: hidden;
}

.talent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  transform-origin: top;
}

.talent-card:hover .talent-thumb img {
  transform: scale(1.05);
}

.talent-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.talent-name-en {
  font-size: 0.8rem;
  color: var(--secondary-color);
  text-transform: uppercase;
}

/* Single Talent */
.talent-detail {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.talent-photo {
  flex: 1;
}

.talent-info {
  flex: 2;
}

.talent-info h1 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.talent-profile table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  table-layout: auto !important;
}

.talent-profile th,
.talent-profile td {
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.talent-profile th {
  color: var(--secondary-color);
  font-weight: normal;
}

/* 一番左の列のtd（とth）だけ、文字数に合わせて横幅を広げる */
.talent-profile tr td:first-child,
.talent-profile tr th:first-child {
  white-space: nowrap !important;
  padding-right: 12px !important;
}

.talent-profile tr {
  vertical-align: top !important;
}

/* Pages */
.page-header {
  text-align: center;
  margin: 30px 0 45px;
}

.page-header h1 {
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}

.company-table th {
  width: 25%;
  background-color: var(--light-gray);
  font-weight: bold;
}

/* Contact Form */
.wpcf7-form p {
  margin-bottom: 20px;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
}

.wpcf7-form input[type="submit"] {
  background-color: #008ab8;
  color: #fff;
  padding: 15px 40px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: opacity 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  opacity: 0.8;
}

/* Outline Button */
.btn-outline {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid #008ab8;
  color: #008ab8 !important;
  text-decoration: none;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.btn-outline:hover {
  background-color: #008ab8;
  color: #fff !important;
  opacity: 1;
}

/* Outline Button */
.btn-outline--secondary {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid #333;
  color: #333 !important;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  a:hover {
    opacity: 1;
  }

  .talent-card:hover .talent-thumb img {
    transform: scale(1);
  }

  .wpcf7-form input[type="submit"]:hover {
    opacity: 1;
  }

  .btn-outline:hover {
    background-color: transparent;
    color: #008ab8 !important;
  }

  .btn-outline--secondary:hover {
    background-color: transparent;
    color: #333 !important;
  }

  .section {
    padding: 20px 0;
  }

  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .main-navigation a {
    font-size: 0.9rem;
  }

  .talent-grid {
    gap: 15px;
  }

  .talent-card {
    width: calc(50% - 8px);
  }

  .talent-detail {
    flex-direction: column;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .page-header {
    margin: 15px 0 25px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
  }

  .talent-detail {
    margin-top: 10px;
  }

  .talent-info h1 {
    font-size: 1.4rem;
    margin-top: 15px;
  }
}
