/*
Theme Name: いまさら青森紀行
Theme URI:
Author: Tomoki Kato
Author URI:
Description: 青森県のライターのいまさら青森紀行 - 青森の水と風をイメージした爽やかなデザイン
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aomori-trip
*/

/* ========================================
   CSS Custom Properties
======================================== */
:root {
  --color-base: #F5F9FA;       /* Snow Mist - 澄んだ空気のオフホワイト */
  --color-text: #2C3E50;       /* Deep Navy - 十和田湖の深い水面 */
  --color-accent1: #3A8FB7;    /* Aomori Blue - 陸奥湾の海 */
  --color-accent2: #5B9A6F;    /* Oirase Green - 奥入瀬渓流の苔と木々 */
  --color-sub-bg: #E8F0F2;     /* Breeze Gray - 風を感じる淡いブルーグレー */
  --color-white: #FFFFFF;
  --color-accent1-dark: #2E7396;
  --font-ja: 'Zen Maru Gothic', sans-serif;
  --font-en: 'Montserrat', sans-serif;
  --header-height: 8rem;
}

/* ========================================
   Liquid Layout (1rem = 10px)
======================================== */
html {
  font-size: 0.732vw; /* PC: 1366px時に10px */
}

@media screen and (max-width: 430px) {
  html {
    font-size: 2.325vw; /* SP: 430px時に10px */
  }
}

@media screen and (min-width: 1366px) {
  html {
    font-size: 10px;
  }
}

/* ========================================
   Reset & Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-ja);
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent1);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Layout
======================================== */
.l-inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.l-section {
  padding: 8rem 0;
}

.l-section--sub-bg {
  background-color: var(--color-sub-bg);
}

/* ========================================
   Header
======================================== */
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(245, 249, 250, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.c-header__inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-header__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

.c-header__logo span {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-accent2);
}

/* Navigation */
.c-nav__list {
  display: flex;
  gap: 3rem;
}

.c-nav__link {
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
}

.c-nav__link::after {
  content: '';
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent1);
  transition: width 0.3s ease;
}

.c-nav__link:hover::after {
  width: 100%;
}

.c-nav__link:hover {
  opacity: 1;
  color: var(--color-accent1);
}

/* Hamburger (SP) */
.c-hamburger {
  display: none;
  width: 3rem;
  height: 2.4rem;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
}

.c-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  position: absolute;
  left: 0;
  transition: all 0.3s ease;
}

.c-hamburger span:nth-child(1) { top: 0; }
.c-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.c-hamburger span:nth-child(3) { bottom: 0; }

.c-hamburger.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.c-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}

.c-hamburger.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .c-hamburger {
    display: block;
  }

  .c-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--color-base);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .c-nav.is-active {
    opacity: 1;
    visibility: visible;
  }

  .c-nav__list {
    flex-direction: column;
    align-items: center;
    gap: 4rem;
  }

  .c-nav__link {
    font-size: 2rem;
  }
}

/* ========================================
   MV (Main Visual)
======================================== */
.c-mv {
  position: relative;
  height: 100vh;
  min-height: 60rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Slider */
.c-mv__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.c-mv__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.c-mv__slide.is-active {
  opacity: 1;
}

.c-mv__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay */
.c-mv__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(44, 62, 80, 0.25) 0%,
    rgba(44, 62, 80, 0.50) 100%
  );
  z-index: 0;
}

/* Content */
.c-mv__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 2rem;
}

.c-mv__title {
  font-family: var(--font-en);
  font-size: 5.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.c-mv__copy {
  font-size: 1.8rem;
  line-height: 2;
  max-width: 70rem;
  margin: 0 auto;
}

/* Indicators */
.c-mv__indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 1.2rem;
}

.c-mv__indicator {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid var(--color-white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s ease;
}

.c-mv__indicator.is-active {
  background-color: var(--color-white);
}

@media screen and (max-width: 768px) {
  .c-mv__title {
    font-size: 3.6rem;
  }

  .c-mv__copy {
    font-size: 1.5rem;
  }
}

/* ========================================
   Section Title
======================================== */
.c-section-title {
  text-align: center;
  margin-bottom: 5rem;
}

.c-section-title__en {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent1);
  display: block;
  letter-spacing: 0.05em;
}

.c-section-title__ja {
  font-size: 1.4rem;
  color: var(--color-accent2);
  display: block;
  margin-top: 0.5rem;
}

.c-section-title__desc {
  font-size: 1.5rem;
  line-height: 2;
  color: #5a6d7e;
  margin-top: 2rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Card Grid
======================================== */
.c-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

@media screen and (max-width: 768px) {
  .c-card-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.c-card {
  background-color: var(--color-white);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1.6rem rgba(44, 62, 80, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.c-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0.8rem 2.4rem rgba(44, 62, 80, 0.12);
}

.c-card__thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.c-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-card:hover .c-card__thumb img {
  transform: scale(1.05);
}

.c-card__body {
  padding: 2rem;
}

.c-card__cat {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--color-white);
  background-color: var(--color-accent1);
  padding: 0.2rem 1rem;
  border-radius: 10rem;
  margin-bottom: 1rem;
}

.c-card--travel .c-card__cat {
  background-color: var(--color-accent2);
}

.c-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

.c-card__excerpt {
  font-size: 1.4rem;
  color: #5a6d7e;
  line-height: 1.6;
}

.c-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
}

.c-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.c-card__author img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.c-card__author span {
  font-size: 1.2rem;
  color: var(--color-text);
  font-weight: 500;
}

.c-card__date {
  font-family: var(--font-en);
  font-size: 1.2rem;
  color: #8fa3b5;
}

/* ========================================
   About Section
======================================== */
.c-about {
  display: flex;
  gap: 6rem;
  align-items: center;
}

.c-about__img {
  flex: 0 0 35rem;
  border-radius: 1.2rem;
  overflow: hidden;
}

.c-about__img img {
  width: 100%;
  height: auto;
}

.c-about__text {
  flex: 1;
}

.c-about__name {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.c-about__name-en {
  font-family: var(--font-en);
  font-size: 1.4rem;
  color: var(--color-accent2);
  display: block;
  margin-bottom: 2rem;
}

.c-about__desc {
  font-size: 1.6rem;
  line-height: 2;
}

@media screen and (max-width: 768px) {
  .c-about {
    flex-direction: column;
    gap: 3rem;
  }

  .c-about__img {
    flex: none;
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
  }
}

/* ========================================
   Skills
======================================== */
.c-skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.c-skills--two {
  grid-template-columns: repeat(2, 1fr);
}

.c-skill-card {
  background-color: var(--color-white);
  border-radius: 1.2rem;
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 0.4rem 1.6rem rgba(44, 62, 80, 0.08);
}

.c-skill-card__icon {
  font-size: 4rem;
  margin-bottom: 2rem;
}

.c-skill-card__title {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent1);
  margin-bottom: 1.5rem;
}

.c-skill-card__desc {
  font-size: 1.4rem;
  line-height: 1.9;
  color: #5a6d7e;
  text-align: left;
  margin-bottom: 2rem;
}

.c-skill-card__list {
  font-size: 1.4rem;
  line-height: 2;
  text-align: left;
}

.c-skill-card__list li::before {
  content: '・';
  color: var(--color-accent2);
}

@media screen and (max-width: 768px) {
  .c-skills {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Author Box (Single)
======================================== */
.c-author {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  max-width: 80rem;
  margin: 5rem auto 0;
  padding: 2.5rem 3rem;
  background-color: var(--color-sub-bg);
  border-radius: 1.2rem;
}

.c-author__avatar {
  flex-shrink: 0;
  width: 10rem;
  height: 10rem;
}

.c-author__avatar img {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  object-fit: cover;
}

.c-author__info {
  display: flex;
  flex-direction: column;
}

.c-author__label {
  font-family: var(--font-en);
  font-size: 1.1rem;
  color: #8fa3b5;
  letter-spacing: 0.05em;
}

.c-author__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 0.2rem;
}

.c-author__bio {
  font-size: 1.3rem;
  line-height: 1.8;
  color: #5a6d7e;
  margin-top: 0.8rem;
}

@media screen and (max-width: 768px) {
  .c-author {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ========================================
   CTA Section
======================================== */
.c-cta {
  text-align: center;
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--color-accent1), var(--color-accent2));
  color: var(--color-white);
}

.c-cta__title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.c-cta__text {
  font-size: 1.6rem;
  margin-bottom: 3rem;
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   Button
======================================== */
.c-btn {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 1.4rem 4rem;
  border-radius: 10rem;
  transition: all 0.3s ease;
  text-align: center;
}

.c-btn--primary {
  background-color: var(--color-accent1);
  color: var(--color-white);
}

.c-btn--primary:hover {
  background-color: var(--color-accent1-dark);
  opacity: 1;
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.c-btn--outline:hover {
  background-color: var(--color-white);
  color: var(--color-accent1);
  opacity: 1;
}

.c-btn--more {
  display: block;
  width: fit-content;
  margin: 4rem auto 0;
}

/* ========================================
   Footer
======================================== */
.c-footer {
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 6rem 0 3rem;
}

.c-footer__inner {
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 3rem;
}

.c-footer__logo {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 700;
}

.c-footer__logo span {
  display: block;
  font-family: var(--font-ja);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-accent2);
  margin-top: 0.5rem;
}

.c-footer__nav-list {
  display: flex;
  gap: 2.5rem;
}

.c-footer__nav-link {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.7);
}

.c-footer__nav-link:hover {
  color: var(--color-white);
  opacity: 1;
}

.c-footer__copyright {
  width: 100%;
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media screen and (max-width: 768px) {
  .c-footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .c-footer__nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ========================================
   Fade-in Animation
======================================== */
.js-fade {
  opacity: 0;
  transform: translateY(3rem);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Archive Page
======================================== */
.c-archive-header {
  padding: 12rem 0 4rem;
  text-align: center;
  background-color: var(--color-sub-bg);
}

.c-archive-header__title {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-accent1);
}

.c-archive-header__desc {
  font-size: 1.4rem;
  color: var(--color-accent2);
  margin-top: 0.5rem;
}

/* Pagination */
.c-pagination {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 5rem;
}

.c-pagination a,
.c-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  font-family: var(--font-en);
  font-size: 1.4rem;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.c-pagination a:hover {
  background-color: var(--color-accent1);
  color: var(--color-white);
  opacity: 1;
}

.c-pagination .current {
  background-color: var(--color-accent1);
  color: var(--color-white);
}

/* ========================================
   Single Post
======================================== */
.c-single {
  padding-top: 0;
}

/* Hero Header */
.c-single__hero {
  position: relative;
  min-height: 40rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-text);
}

.c-single__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(44, 62, 80, 0.45) 0%,
    rgba(44, 62, 80, 0.70) 100%
  );
}

.c-single__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 12rem;
  padding-bottom: 5rem;
}

.c-single__cat {
  display: inline-block;
  font-size: 1.2rem;
  color: var(--color-white);
  background-color: var(--color-accent1);
  padding: 0.3rem 1.2rem;
  border-radius: 10rem;
  margin-bottom: 1.5rem;
}

.c-single__title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--color-white);
  text-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.3);
}

.c-single__meta {
  font-family: var(--font-en);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.8);
}

@media screen and (max-width: 768px) {
  .c-single__hero {
    min-height: 30rem;
  }

  .c-single__title {
    font-size: 2.4rem;
  }
}

.c-single__content {
  max-width: 80rem;
  margin: 0 auto;
  font-size: 1.6rem;
  line-height: 2;
}

.c-single__content h2 {
  font-size: 2.4rem;
  font-weight: 700;
  margin: 4rem 0 2rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--color-accent1);
}

.c-single__content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin: 3rem 0 1.5rem;
}

.c-single__content p {
  margin-bottom: 2rem;
}

.c-single__content img {
  border-radius: 0.8rem;
  margin: 2rem 0;
}

/* ========================================
   Page: About
======================================== */
.p-about__hero {
  padding: 12rem 0 6rem;
  text-align: center;
  background-color: var(--color-sub-bg);
}

/* ========================================
   Page: Portfolio
======================================== */
.c-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.c-portfolio-card {
  background-color: var(--color-white);
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1.6rem rgba(44, 62, 80, 0.08);
}

.c-portfolio-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.c-portfolio-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-portfolio-card__body {
  padding: 2.5rem;
}

.c-portfolio-card__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.c-portfolio-card__desc {
  font-size: 1.4rem;
  color: #5a6d7e;
  line-height: 1.8;
}

@media screen and (max-width: 768px) {
  .c-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Utility
======================================== */
.u-mt-0 { margin-top: 0 !important; }
.u-mb-0 { margin-bottom: 0 !important; }
.u-text-center { text-align: center; }
.u-sp-only { display: none; }

@media screen and (max-width: 768px) {
  .u-pc-only { display: none; }
  .u-sp-only { display: block; }
}
