@charset "UTF-8";

/*
Theme Name: dennknow
Theme URI: http://dennknow.com
Description: Theme for dennknow
Version: 2.0 / 20250305
Author: dennknow
Author URI: http://dennknow.com
*/

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */
html, body, header, section, footer {
  background: #f0efec;
  /* background: #f1efec; */
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.6;
  color: #333;
}

/* Normalize Adjustments */
article, aside, details, figcaption, figure, footer, header, nav, section, summary {
  display: block;
}

img {
  border: 0;
  display: block;
  max-width: 100%;
}

a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ccc;
}

ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Box Sizing */
* {
  box-sizing: border-box;
}

/* ==========================================================================
   Common Styles
   ========================================================================== */
h1, h2, h3, h4, ul, li, p, dl, dt, dd {
  margin: 0;
  padding: 0;
}

h1 {
  font-family: 'Quicksand', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: normal;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: bold;
}

#read h2 {
  font-family: 'Noto Sans JP', sans-serif;
}

#service h2,
#contact h2,
#about h2,
#other h2 {
  font-family: 'Quicksand', sans-serif;
}

h2 span {
  white-space: nowrap;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

.logo {
  display: flex;
  align-items: center;
}

header img {
  width: 2.4rem;
  height: 2.4rem;
  margin-right: 1rem;
}

header .site-title {
  font-size: 2.4rem;
  color: #333;
}

header .site-title a:hover {
  color: #555;
}

nav {
  margin-left: auto;
}

nav ul {
  display: flex;
}

nav li {
  width: 10rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav a {
  color: #333;
  font-size: 1.6rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  padding: 0 10% 10%;
  width: 100%;
}

/* First View */
#first-view {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10% 10%;
}

#first-view article {
  width: 100%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#first-view h1 .english {
  font-family: 'Quicksand', sans-serif;
  font-weight: normal;
  color: #333;
}

#first-view p .japanese {
  font-family: 'Noto Sans JP', sans-serif;
  color: #222;
  font-size: clamp(1.2rem, 1.5vw, 1.8rem);
  margin-top: 1rem;
}

#read h2,
#service h2,
#contact h2,
#about h2,
#other h2 {
  margin: 5rem 0 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

/* Read */
#read {
  font-size: 1.4rem;
}

.icons-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.browsers {
  text-align: center;
  flex: 1;
  min-width: 10rem;
}

.browsers img {
  max-width: 12rem;
  height: auto;
  margin: 0 auto;
}

.browsers p {
  font-size: 1.4rem;
  margin-top: 1rem;
}

/* Service */
#service .plan {
  margin: 5% 0;
}

#service .plan:first-child {
  margin-top: 0;
}

#service .plan:last-child {
  margin-bottom: 0;
}

#service h3,
#service h4 {
  font-weight: bold;
}

#service h3 {
  margin: 5% 0 5%;
}

#service h4 {
  margin: 5% 0 2%;
}

#service h3 {
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.plan img {
  width: 15rem;
  height: 15rem;
  margin: 4% auto;
}

.cta-wrapper {
  display: block;
  width: 100%;
  max-width: 40rem;
  padding: 1.5rem 2rem;
  margin: 10vh auto;
  color: #fff;
  background: #333;
  border: 1px solid #888;
  border-radius: 0.5rem;
  text-align: center;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cta-wrapper:hover {
  background: #444;
  border-color: #aaa;
}

/* Contact */
#contactContainer {
  border: 1px solid #333;
  border-radius: 0.5rem;
  width: 100%;
}

#parentframe {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* About */
#about img {
  width: 10rem;
  height: 10rem;
  margin: 5rem auto;
}

#about p {
  width: 88%;
  margin: 0 auto 5rem;
  text-align: left;
}

#about dd {
  font-style: italic;
}

dl {
  width: 80%;
  margin: 0 auto;
}

dt {
  font-weight: bold;
  float: left;
  width: 20rem;
  font-style: normal;
}

dd {
  margin-left: 20rem;
  margin-bottom: 2.5rem;
}

dd:last-child {
  margin-bottom: 0;
}

/* Other */
.icons {
  text-align: center;
  display: inline-block;
  min-width: 10rem;
  flex: 1;
}

#other img {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  margin: 0 auto;
}

#other p {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  padding: 0 0 2%;
  text-align: center;
  color: #333;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* 1024px以下 */
@media only screen and (max-width: 1024px) {
  section {
    padding: 0 8% 8%;
  }

  #first-view {
    padding: 0 8% 8%;
  }

  .browsers {
    flex-basis: 30%;
  }
}

/* 767px以下 - Tablets */
@media only screen and (max-width: 767px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 5%;
  }

  nav {
    margin-left: 0;
  }

  nav ul {
    width: 100%;
  }

  nav li {
    width: 100%;
    text-align: left;
    padding: 0.5rem 0;
    justify-content: left;
  }

  #first-view h1 {
    font-size: 2.8rem;
  }

  #first-view p .japanese {
    font-size: clamp(1rem, 1.8vw, 1.6rem);
  }

  .browsers {
    flex-basis: 33.33%;
  }

  .browsers img {
    max-width: 10rem;
  }

  .plan img {
    width: 12rem;
    height: 12rem;
  }

  #about p, dl {
    width: 90%;
  }
}

/* 438px〜767px - 中間サイズ */
@media only screen and (max-width: 767px) and (min-width: 438px) {
  nav ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  nav li {
    width: 8rem;
    text-align: center;
  }
}

/* 480px以下 - Mobile Wide */
@media only screen and (max-width: 480px) {
  section {
    padding: 0 5% 5%;
  }

  #first-view {
    padding: 0 5% 5%;
  }

  #first-view h1 {
    font-size: 1.8rem;
  }

  #first-view p .japanese {
    font-size: clamp(0.9rem, 2vw, 1.4rem);
  }

  #read, #service, #contact, #about, #other {
    font-size: 1.2rem;
  }

  .browsers {
    flex-basis: 33.33%;
  }

  .browsers img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
  }

  .cta-wrapper {
    padding: 1rem 1.5rem;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
  }

  #about p, dl {
    width: 100%;
  }

  dt {
    float: none;
  }

  dd {
    margin-left: 0;
  }

  #other {
    padding: 0 5% 5%;
  }

  .icons {
    min-width: 7rem;
  }

  #other img {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
  }
}

/* 375px以下 - iPhone SE2サイズ */
@media only screen and (max-width: 375px) {
  #read h2,
  #service h2,
  #contact h2,
  #about h2,
  #other h2 {
    font-size: 1.6rem;
  }

  .icons-wrapper {
    padding: 1rem;
  }

  .browsers {
    flex-basis: 33%;
    min-width: 6rem;
  }

  .browsers img {
    width: 6rem !important;
    height: 6rem !important;
    object-fit: cover;
  }

  .icons {
    flex-basis: 33%;
    min-width: 6rem;
  }

  #other img {
    width: 6rem !important;
    height: 6rem !important;
    object-fit: cover;
  }
}

/* 430px以下 - Mobile */
@media only screen and (max-width: 430px) {
  nav {
    float: left;
    margin-top: 1rem;
  }

  nav li {
    width: 7rem;
    text-align: left;
  }

  .plan img {
    width: 8rem;
    height: 8rem;
  }
}